[Tutor] socket question

2005-09-13 Thread ray
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

Re: [Tutor] socket question

2005-09-13 Thread Kent Johnson
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

Re: [Tutor] Boa-Constructor

2005-09-13 Thread Luis N
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

Re: [Tutor] Venom / Python23.dll missing

2005-09-13 Thread Luis N
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

Re: [Tutor] socket question

2005-09-13 Thread Alan G
> 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

Re: [Tutor] Where did those spaces come from?

2005-09-13 Thread Michael P. Reilly
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

[Tutor] GETTING AN _.EXE VERSION OF _.PY program to run on a machine that does not have Python installed on it.

2005-09-13 Thread JackA
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

Re: [Tutor] mamelauncher (fwd)

2005-09-13 Thread Danny Yoo
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

Re: [Tutor] mamelauncher (fwd)

2005-09-13 Thread Danny Yoo
> 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

Re: [Tutor] GETTING AN _.EXE VERSION OF _.PY program to run on a machine that does not have Python installed on it.

2005-09-13 Thread Danny Yoo
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

Re: [Tutor] mamelauncher (fwd)

2005-09-13 Thread Max Russell
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(

[Tutor] (no subject)

2005-09-13 Thread jon freddy
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. ___

Re: [Tutor] (no subject)

2005-09-13 Thread David Rock
* 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

Re: [Tutor] mamelauncher (fwd)

2005-09-13 Thread Danny Yoo
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 =

[Tutor] Python as operating system?

2005-09-13 Thread Danny Yoo
> 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

[Tutor] Another regular expression question

2005-09-13 Thread Bernard Lebel
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

Re: [Tutor] Another regular expression question

2005-09-13 Thread Kent Johnson
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:

Re: [Tutor] Download an image of a site?

2005-09-13 Thread Joseph Quigley
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

[Tutor] More IDE's (was: Boa-Constructor)

2005-09-13 Thread D. Hartley
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