When I receive a 4-bytes integer using socket.recv, it is stored in a
string. How to convert this string to a integer?
Thanks in advance.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ray wrote:
> When I receive a 4-bytes integer using socket.recv, it is stored in a
> string. How to convert this string to a integer?
Take a look at unpack() in module struct.
Kent
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman
On 9/12/05, Terry Kemmerer <[EMAIL PROTECTED]> wrote:
> Hey Guys,
>
> I am trying to pick an IDE, and it seems to me that Boa-Constructor has
> great potential.
Did you check Boa out of CVS? It tends not to have an intermittent
schedule of releases.
Luis
On 9/11/05, Damien Gouteux <[EMAIL PROTECTED]> wrote:
> Hi all.
> I try to run Venom, a Python binding for the Irrlicht engine. But I need
> python23.dll.
Download a game from pygame.org
Luis.
___
Tutor maillist - Tutor@python.org
http://mail.python
> When I receive a 4-bytes integer using socket.recv, it is stored in
> a
> string. How to convert this string to a integer?
Look at the struct module.
Its unpack method takes a format string which defines how the data
should be interpreted.
Have a look at the section at the end of my file han
On 9/12/05, Tom Tucker <[EMAIL PROTECTED]> wrote:
Tutor,
Good evening! The goal is to parse a simple file and grab column one.
Then print each value horizontally separated by a comma.
Why is Python adding a space padding between each value? Please see below.
Thanks ahead of time.
INPU
I am attaching a word document
copy of this EMail which might be easier to read and follow if your EMail window
rearanges things to much.
I would like thank Dax Reyes and
John Fouhy for taking the trouble to respond to my attempt to create
an _.EXE from
a Python program.
Th
Hi Max,
[Keeping tutor@python.org in CC. Please do not send replies only to me:
make sure tutor@python.org is being included in the reply.]
[Danny]
>> Hint: in the defintion of run_mame_selection, there's some string
>> concatenation going on here:
>>
>> ##
>> def run_mame_selection(selec
> Also, does this work?
>
> ##
> def run_packman():
> os.system("C:\\mame096b\\mame.exe packman")
^^^
Gaaa. My apologies: that was a typo. Correct this (and other places
where I wrote 'packman') with whatever name you use to explicitly tell
MAM
On Mon, 12 Sep 2005, JackA wrote:
> I am attaching a word document copy of this EMail which might be easier
> to read and follow if your EMail window rearanges things to much.
Hi Jack,
Actually, please don't do that. *grin*
Word documents are actually not really usable in a programming langu
There actually seems to be a bit of a problem in the
interaction with the system when it launches mame.
If I run this:
import os
def run_mame_selection(selection):
os.system("C:\\mame096b\\mame.exe"+ selection)
#main
selection = " tnzs"
run_mame_selection(selection)
raw_input(
I am new to Python, about 1 day. And I downloaded from
python.org Pythong2.4, it has the command line and
junk. But what actuall program compiles the source of
python into a program? Any of the programs included in
the package? And also, is Python capable of writing an
OS?
Jon.
___
* jon freddy <[EMAIL PROTECTED]> [2005-09-13 13:37]:
> I am new to Python, about 1 day. And I downloaded from
> python.org Pythong2.4, it has the command line and
> junk. But what actuall program compiles the source of
> python into a program? Any of the programs included in
> the package? And also
On Tue, 13 Sep 2005, Max Russell wrote:
> There actually seems to be a bit of a problem in the interaction with
> the system when it launches mame.
>
> If I run this:
>
> import os
>
> def run_mame_selection(selection):
> os.system("C:\\mame096b\\mame.exe"+ selection)
>
> #main
> selection =
> Python is theoretically capable of being used to write an OS, but that
> is an exercise that is probably left to theory. There are a lot of good
> OS'es out there that would undoubtedly perform much better than a
> PythonOS ever could. That doesn't mean it wouldn't be cool, though. :-)
I haven
Hello, yet another regular expression question :-)
So I have this xml file that I'm trying to find a specific tag in. For
this I'm using a regular expression. Right now, the tag I'm trying to
find looks like this:
So I'm using a regular expression to find:
sceneobject
type="CameraRoot"
My cod
Bernard Lebel wrote:
> Hello, yet another regular expression question :-)
>
> So I have this xml file that I'm trying to find a specific tag in. For
> this I'm using a regular expression. Right now, the tag I'm trying to
> find looks like this:
>
>
>
> So I'm using a regular expression to find:
Kent Johnson wrote:
> I don't think the object returned from urllib2.urlopen() has save() and get()
> > methods. According to the docs urlopen() "returns a file-like object
> with two
> additional methods:
>
>* geturl() -- return the URL of the resource retrieved
>* info() -- return
This thread made me wonder:
Is anyone out there using Eclipse and PyDev? (I started using Eclipse
when I was toying around in Jython, and know others that are using it
for C/C++, but I am curious if others have tried out PyDev and what
they think).
~Denise
19 matches
Mail list logo