Re: Python is not a good name, should rename to Athon

2007-12-05 Thread Hendrik van Rooyen
Gabriel Genellina [EMAIL PROTECTED] wrote: En Tue, 04 Dec 2007 14:49:36 -0300, Dennis Lee Bieber [EMAIL PROTECTED] escribió: How about the cognate: Kulkukan? You meant Kukulkan. If you got it wrong from Apocalypto (Mel Gibson), well, it's just one of many errors in the film... Either way its

Re: Python is not a good name, should rename to Athon

2007-12-05 Thread Hendrik van Rooyen
Dennis Lee Bieber [EMAIL PROTECTED] wrote: Euler? (most non-tech types would probably think that's a reference to someone who squirts lubricants into the workings of a steam engine) You have just destroyed a long held image in my mind with this horrible homophone - I used to conjure up images

Why did no one tell me about import antigravity?

2007-12-05 Thread Ant
Python on xkcd: http://xkcd.com/353/ -- Ant. -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting wxPython to work on a Mac

2007-12-05 Thread cmpython
On Dec 4, 9:35 pm, Timothy Smith [EMAIL PROTECTED] wrote: Not sure exactly what I need to do to get wxPython to work on either of my Macs. (One's a notebook running Tiger (OS X 10.4.11), the other a Mac Pro running Leopard (10.5.1.)) I downloaded what should be the latest binary, and it

Re: Timezones in python

2007-12-05 Thread Matt Nordhoff
[EMAIL PROTECTED] wrote: Is there any build in solution in python to handle timezones? My problem is I have to convert +4 time to +0. In the worst case i can just add +4 to the houer but I'm not very happy about that. Another problem is the summer/winter timechange which happen with one week

Re: Standalone USB Web Server and Python Interpeter

2007-12-05 Thread Johny
Or you can look at http://www.portablepython.com/ L. -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting wxPython to work on a Mac

2007-12-05 Thread Timothy Smith
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: If you don't get an answer here, you should try the wxPython mailing list: http://www.wxpython.org/maillist.php I'm sure they'll be able to help you out (I don't have a Mac, so I don't know). OK, will try there. Thanks. --

Re: Why Python 3?

2007-12-05 Thread A.T.Hofkamp
On 2007-12-05, Chris Gonnerman [EMAIL PROTECTED] wrote: I spent some time today reading about Python 3, and specifically the differences between Python 3 and Python 2, and I was left with a question... why? Why bother to change to Python 3, when the CPython implementation is slower, and

Re: Why did no one tell me about import antigravity?

2007-12-05 Thread Jarek Zgoda
Adrian Cherry napisał(a): Python on xkcd: http://xkcd.com/353/ Another good comic from xkcd, I'm surprised by the muted response on here. Don't forget to check out the alt. text on the comic Alt text: I wrote 20 short programs in Python yesterday. It was wonderful. Perl, I'm leaving

Re: Why did no one tell me about import antigravity?

2007-12-05 Thread Tim Leslie
On 5 Dec 2007 10:08:48 GMT, Adrian Cherry [EMAIL PROTECTED] wrote: Ant [EMAIL PROTECTED] wrote in news:52f0eca3-e807-4890-b21d- [EMAIL PROTECTED]: Python on xkcd: http://xkcd.com/353/ Another good comic from xkcd, I'm surprised by the muted response on here. Don't forget to check out

pl see the beautiful pitcure

2007-12-05 Thread rosi
pl see the beautiful pitcure http://ribodire.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Why did no one tell me about import antigravity?

2007-12-05 Thread Richard Jones
Ant wrote: http://xkcd.com/353/ I laughed :) Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting wxPython to work on a Mac

2007-12-05 Thread Piet van Oostrum
Timothy Smith [EMAIL PROTECTED] (TS) wrote: TS Not sure exactly what I need to do to get wxPython to work on either of TS my Macs. (One's a notebook running Tiger (OS X 10.4.11), the other a Mac TS Pro running Leopard (10.5.1.)) TS I downloaded what should be the latest binary, and it

Re: How to debug Python program with GUI (Tkinter)?

2007-12-05 Thread Nir
On Nov 28, 11:18 am, Davy [EMAIL PROTECTED] wrote: Hi all, How todebugPython program with GUI, especially Tkinter? Mydebug environment is PythonWin. For example, when I single step in the program, the step will go to mainloop() and always loop there. How can I know where the program is

Re: Python surpasses Perl in TIOBE index

2007-12-05 Thread BlueBird
On Dec 4, 4:08 pm, [EMAIL PROTECTED] wrote: This is *not* an attempt to start yet another Python-versus- AnyOtherProgrammingLanguage flame war, but I thought people might be interested in this: http://www.tiobe.com/tpci.htm Marc I find Ohloh comparisons also useful:

Re: Omitting results with id3reader [Beginner]

2007-12-05 Thread Chris
Ok, just noticed you linked the id3reader. I tested my code and it worked fine. -- http://mail.python.org/mailman/listinfo/python-list

Re: Omitting results with id3reader [Beginner]

2007-12-05 Thread Chris
On Dec 5, 1:43 pm, Ionis [EMAIL PROTECTED] wrote: Hey guys, hope you can help me here. I've been playing with python for about a week or two and I've been reading A Byte Of Python to get me on my feet. I've decided to write a program which will list all ID3 information in a directory of .mp3

Re: os.access() under windows

2007-12-05 Thread Tim Golden
[apologies if this double-posts; my email server's playing up] Martin v. Löwis wrote: In a POSIX world, you need read permission on the directory. In Windows, with the bypass-traversal-check privilege, you only need read permission on the directory if you want to list it, not to access a

Re: os.access() under windows

2007-12-05 Thread Tim Golden
Martin v. Löwis wrote: In a POSIX world, you need read permission on the directory. In Windows, with the bypass-traversal-check privilege, you only need read permission on the directory if you want to list it, not to access a file in the directory. Is it actually possible for

Re: Why did no one tell me about import antigravity?

2007-12-05 Thread Adrian Cherry
Ant [EMAIL PROTECTED] wrote in news:52f0eca3-e807-4890-b21d- [EMAIL PROTECTED]: Python on xkcd: http://xkcd.com/353/ Another good comic from xkcd, I'm surprised by the muted response on here. Don't forget to check out the alt. text on the comic Alt text: I wrote 20 short programs in

Re: Standalone USB Web Server and Python Interpeter

2007-12-05 Thread Shane Geiger
mcl wrote: I would like to have a USB pen drive, which can execute python scripts including CGI versions, which I can take to any Windows PC and run without having to install anything on the PC. My days of hacking are past so I am looking for something very simple. I would envisage a batch

Re: Timezones in python

2007-12-05 Thread Gabriel Genellina
En Wed, 05 Dec 2007 06:43:49 -0300, [EMAIL PROTECTED] escribió: Thanks guys for your answers! I know those library's but I was wondering is there something build-in for this simple convert convert. I have to do it only from +4 to +0. Copying the example from the tzinfo docs: from datetime

Re: reloading modules and isinstance()

2007-12-05 Thread Diez B. Roggisch
Steven D'Aprano wrote: On Tue, 04 Dec 2007 15:41:48 +0100, Diez B. Roggisch wrote: You just discovered one reason why reload() is a bad idea and IMHO shouldn't be used at all - as tempting it might be. I disagree -- I find reload() extremely useful for interactively testing modules.

Re: Python is not a good name, should rename to Athon

2007-12-05 Thread Boris Borcic
Russ P. wrote: If I had invented Python, I would have called it Newton or Euler, arguably the greatest scientist and mathematician ever, respectively. This makes your taste on the matter dubious. Such choice of a name implies either a claim to the fame of the Person that's devoid of

Re: An Object's Type

2007-12-05 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : Hi, Is it possible to find out if an object is of a certain type or of a type derived from this type? You have the answer, thanks to Diez and Christian. Now unless you have a *very* compelling reason to check the type of an object, *just forget about it*. 9

Re: Why did no one tell me about import antigravity?

2007-12-05 Thread J. Clifford Dyer
On Wed, 2007-12-05 at 10:08 +, Adrian Cherry wrote: Ant [EMAIL PROTECTED] wrote in news:52f0eca3-e807-4890-b21d- [EMAIL PROTECTED]: Python on xkcd: http://xkcd.com/353/ Another good comic from xkcd, I'm surprised by the muted response on here. Don't forget to check out the

RE: Timeout test hangs IDLE

2007-12-05 Thread Andreas Tawn
On Dec 5, 6:00 am, Andreas Tawn [EMAIL PROTECTED] wrote: I'm trying to integrate the timeout function from herehttp://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/47 3878into a long running automation script and the following code causes IDLE after 20 or 30 iterations in countTest.

Re: Why Python 3?

2007-12-05 Thread Christian Heimes
A.T.Hofkamp wrote: Well, Python 3 design is from the ground up, and aimed at the future, so they are quite a few steps ahead of today's coding practice, let alone today's code base (which is still 1.5 compatible as you discovered). Just a small note from me: Several people think that we are

Re: Tkinter vs. py2exe problem

2007-12-05 Thread msunderwd
On Dec 5, 9:50 am, [EMAIL PROTECTED] wrote: Having a problem with compiling a Tkinter/python program using py2exe (and pyinstaller, for that matter)... I have several dialogs that are derived from the tkSimpleDialog.Dialog class. These work just fine if run through the interpreter. When I

Re: Python is not a good name, should rename to Athon

2007-12-05 Thread Adrian Cherry
Russ P. [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED] ups.com: Speaking of stupid names, what does C++ mean? I think it's the grade you get when you just barely missed a B--. But I can't deny that it *is* good for searching. For that matter C# is no better, I thought that # was

Re: Python is not a good name, should rename to Athon

2007-12-05 Thread Dotan Cohen
On 04/12/2007, Hendrik van Rooyen [EMAIL PROTECTED] wrote: Dotan Cohen dotanail.com wrote: Newton was the bridge between science and superstition. Without him, we would not have science. For that he is notable. He is both magician and scientist. It was Newton's belief in the occult

Re: Why Python 3?

2007-12-05 Thread Kay Schluehr
On 5 Dez., 15:32, Christian Heimes [EMAIL PROTECTED] wrote: Athttp://www.joelonsoftware.com/articles/fog69.htmlJoel explains why rewriting from the scratch is often the worst strategy. About migration strategies: I do not exactly recollect whether it was in Eastland or Jugemanland,

Re: sending commands to parallel printer through python

2007-12-05 Thread Larry Bates
hari wrote: Hi all, I need to automate printer command testing, prinetr supports parallel/ serial/USB.How can i send the commands from python to printer. I have got pyparallel, as am new to python, no idea how to work on it. Please give some tips,The comamnd to be sent to the printer is

Re: How to split string

2007-12-05 Thread Tim Chase
In other words, the string should be split at every 10th possition but if the 10th character is space, then the string must be split at the nearest space before the 10th possition. It could be better explained if the length of split strings will be 20. S='this is just a random sequence

Re: Tkinter vs. py2exe problem

2007-12-05 Thread msunderwd
On Dec 5, 9:50 am, [EMAIL PROTECTED] wrote: Having a problem with compiling a Tkinter/python program using py2exe (and pyinstaller, for that matter)... I have several dialogs that are derived from the tkSimpleDialog.Dialog class. These work just fine if run through the interpreter. When I

Re: [SQL] plpythonu and hello concurrent world

2007-12-05 Thread Tom Lane
Gerardo Herzig [EMAIL PROTECTED] writes: Hi all. Im having some problems with a small concurrent plpython function. Don't even *think* about starting multiple threads inside the Postgres backend. It's an excellent way to break things. regards, tom lane --

Re: Why did no one tell me about import antigravity?

2007-12-05 Thread Paul McGuire
On Dec 5, 5:12 am, Richard Jones [EMAIL PROTECTED] wrote: Ant wrote: http://xkcd.com/353/ I laughed :) ... I cried, it's a part of me! -- Paul -- http://mail.python.org/mailman/listinfo/python-list

sending commands to parallel printer through python

2007-12-05 Thread hari
Hi all, I need to automate printer command testing, prinetr supports parallel/ serial/USB.How can i send the commands from python to printer. I have got pyparallel, as am new to python, no idea how to work on it. Please give some tips,The comamnd to be sent to the printer is hex data 1B

Re: Python Class Best Practice

2007-12-05 Thread cptnwillard
On Dec 5, 12:18 am, Rod Person [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been doing python programming for about 2 years as a hobby and now I'm finally able to use it at work in an enterprise environment. Since I will be creating the base classes and

find a man at www.SexDatingPoint.com

2007-12-05 Thread itayka3
find a man at www.SexDatingPoint.com find a man looking for a woman at www.SexDatingPoint.com meet adult male at www.SexDatingPoint.com men seeking women at www.SexDatingPoint.com women seeking men www.SexDatingPoint.com woman seeking man www.SexDatingPoint.com woman looking for man

Re: reloading modules and isinstance()

2007-12-05 Thread Gabriel Genellina
En Wed, 05 Dec 2007 15:06:43 -0300, Tlis [EMAIL PROTECTED] escribi�: With all the problems of the reload() function, I still hope, that there should be possible to write a safe module 'reloader', that would fix the references, as required (e.g. by changing the variable.__class__ references).

Re: Python is not a good name, should rename to Athon

2007-12-05 Thread Piet van Oostrum
Adrian Cherry [EMAIL PROTECTED] (AC) wrote: AC For that matter C# is no better, I thought that # was pronounced AC hash, I still refer to C# as C-hash. Are you musically illiterate? -- Piet van Oostrum [EMAIL PROTECTED] URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4] Private email:

Re: Python is not a good name, should rename to Athon

2007-12-05 Thread Robert Boyd
On Dec 4, 2007 10:02 AM, George Sakkis [EMAIL PROTECTED] wrote: On Dec 3, 12:50 pm, Russ P. [EMAIL PROTECTED] wrote: I know this because I've been through it myself. When I tell people that I use Python, I often qualify it by pointing out that it is used extensively at Google. In other

RE: Timeout test hangs IDLE

2007-12-05 Thread Andreas Tawn
On Dec 5, 6:00 am, Andreas Tawn [EMAIL PROTECTED] wrote: I'm trying to integrate the timeout function from herehttp://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/47 3878into a long running automation script and the following code causes IDLE after 20 or 30 iterations in

Re: sending commands to parallel printer through python

2007-12-05 Thread Gabriel Genellina
En Wed, 05 Dec 2007 10:19:51 -0300, hari [EMAIL PROTECTED] escribi�: Hi all, I need to automate printer command testing, prinetr supports parallel/ serial/USB.How can i send the commands from python to printer. I have got pyparallel, as am new to python, no idea how to work on it.

Re: Tkinter vs. py2exe problem

2007-12-05 Thread msunderwd
On Dec 5, 10:07 am, [EMAIL PROTECTED] wrote: On Dec 5, 9:50 am, [EMAIL PROTECTED] wrote: Having a problem with compiling a Tkinter/python program using py2exe (and pyinstaller, for that matter)... I have several dialogs that are derived from the tkSimpleDialog.Dialog class. These

Re: How to browse a C Library with Python

2007-12-05 Thread Rafael Sachetto
This could be a solution import commands callables = commands.getoutput(nm -D /lib/libc.so.6 | egrep ' T ' ).split(\n) callables = [c.split()[2] for c in callables] print callables On Dec 5, 2007 5:26 PM, Rafael Sachetto [EMAIL PROTECTED] wrote: with Python it is simple to call direct

Re: Getting wxPython to work on a Mac

2007-12-05 Thread Chris Mellon
On Dec 4, 2007 8:35 PM, Timothy Smith [EMAIL PROTECTED] wrote: Not sure exactly what I need to do to get wxPython to work on either of my Macs. (One's a notebook running Tiger (OS X 10.4.11), the other a Mac Pro running Leopard (10.5.1.)) I downloaded what should be the latest binary, and it

Re: reloading modules and isinstance()

2007-12-05 Thread Tlis
On 5 Dec, 13:18, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: On Tue, 04 Dec 2007 15:41:48 +0100, Diez B. Roggisch wrote: You just discovered one reason why reload() is a bad idea and IMHO shouldn't be used at all - as tempting it might be. I disagree -- I find reload()

Re: How to browse a C Library with Python

2007-12-05 Thread Rafael Sachetto
with Python it is simple to call direct functions from c-librarys. Is there a way to browse over a library i.e. '/lib/libc.so' with python, to see all possible functions in a library? You could use the subprocess module to execute 'nm /lib/libc.so' and look at lines with type T. To do

Re: Python is not a good name, should rename to Athon

2007-12-05 Thread Bjoern Schliessmann
Piet van Oostrum wrote: Adrian Cherry [EMAIL PROTECTED] (AC) wrote: For that matter C# is no better, I thought that # was pronounced hash, I still refer to C# as C-hash. Are you musically illiterate? I wonder what Cb (C-flat) would be. Ada? :) Regards, Björn -- BOFH excuse #351:

Re: Optimizing memory usage w/ HypterText package

2007-12-05 Thread [EMAIL PROTECTED]
On Dec 5, 1:35 pm, [EMAIL PROTECTED] wrote: I've been using the HyperText module for a while now (http://dustman.net/andy/python/HyperText/), and I really like it. I've run into a situation where I have code to construct a table and while it is normally perfect, there are times where the

How to get the fullname of AcroExch.PDDoc?

2007-12-05 Thread Kelie
Hello group, I'm trying to perform some simple pdf file processing using PyWin32 package with Adobe's COM support. After searching the whole Acrobat Interapplication Communication Reference, I didn't find a way to get the fullname (file path) of AcroExch.PDDoc which does have a GetFileName method

Re: reloading modules and isinstance()

2007-12-05 Thread Chris Mellon
On Dec 5, 2007 12:06 PM, Tlis [EMAIL PROTECTED] wrote: On 5 Dec, 13:18, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: On Tue, 04 Dec 2007 15:41:48 +0100, Diez B. Roggisch wrote: You just discovered one reason why reload() is a bad idea and IMHO shouldn't be used at all - as

import antigravity

2007-12-05 Thread dlp
Guess what made xkcd today: http://xkcd.com/353/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is not a good name, should rename to Athon

2007-12-05 Thread Bjoern Schliessmann
Dennis Lee Bieber wrote: I wouldn't be that harsh... Though I've never heard # as hash... Python programmer and never heard of the hashbang? :) Also see: http://en.wikipedia.org/wiki/Number_sign Regards, Björn -- BOFH excuse #170: popper unable to process jumbo kernel --

Re: An Object's Type

2007-12-05 Thread Neil Cerutti
On 2007-12-05, Bruno Desthuilliers [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] a écrit : Is it possible to find out if an object is of a certain type or of a type derived from this type? You have the answer, thanks to Diez and Christian. Now unless you have a *very* compelling reason to check

Re: How to browse a C Library with Python

2007-12-05 Thread Gabriel Genellina
En Wed, 05 Dec 2007 12:32:31 -0300, georg.heiss [EMAIL PROTECTED] escribi�: with Python it is simple to call direct functions from c-librarys. Is there a way to browse over a library i.e. '/lib/libc.so' with python, to see all possible functions in a library? You could use the subprocess

Re: YOU MUST KNOW THIS MAN

2007-12-05 Thread Piet van Oostrum
Deltantor [EMAIL PROTECTED] (D) wrote: D Does c.l.python get religious spam that much? Of all of the places to be D spammed the least likely I expected would be here. Is that the reason you find it necessary to repeat it? -- Piet van Oostrum [EMAIL PROTECTED] URL: http://www.cs.uu.nl/~piet

Re: import antigravity

2007-12-05 Thread Chris
On Dec 5, 10:14 pm, [EMAIL PROTECTED] wrote: Guess what made xkcd today: http://xkcd.com/353/ rofl, pity it's on page 2 already of the group ;( -- http://mail.python.org/mailman/listinfo/python-list

AIX Subversion Python Swig Bindings fix for core dump

2007-12-05 Thread Reedick, Andrew
If you're on AIX and Python immediately dumps core when trying to import any SVN module, then adding -Wl,-brtl to LINKFORSHARED in the Makefile seems to fix the problem. Bad:LINKFORSHARED=-Wl,-bE:Modules/python.exp -lld Good: LINKFORSHARED=-Wl,-bE:Modules/python.exp -lld

SimpleXMLRPCServer interruptable?

2007-12-05 Thread Bret
I'm coming back to Python after an absence and it's surprising how many things I've forgotten since wandering (against my will) into Java land. Anyway, I have a need for a way to make SimpleXMLRPCServer interruptable. Basically, I have a main server that, in response to certain RPC calls,

Re: How to split string

2007-12-05 Thread Neil Cerutti
On 2007-12-05, Tim Chase [EMAIL PROTECTED] wrote: http://docs.python.org/lib/module-textwrap.html The Python library has already done all the heavy lifting--no need to re-invent the wheel. Well no, clearly we need xwrap methods and a ctextwrap module. ;) -- Neil Cerutti --

Re: Tkinter vs. py2exe problem

2007-12-05 Thread msunderwd
On Dec 5, 10:46 am, [EMAIL PROTECTED] wrote: On Dec 5, 10:07 am, [EMAIL PROTECTED] wrote: On Dec 5, 9:50 am, [EMAIL PROTECTED] wrote: Having a problem with compiling a Tkinter/python program using py2exe (and pyinstaller, for that matter)... I have several dialogs that are derived

Tkinter vs. py2exe problem

2007-12-05 Thread msunderwd
Having a problem with compiling a Tkinter/python program using py2exe (and pyinstaller, for that matter)... I have several dialogs that are derived from the tkSimpleDialog.Dialog class. These work just fine if run through the interpreter. When I compile this with py2exe, I don't see any errors,

Re: SimpleXMLRPCServer interruptable?

2007-12-05 Thread Bret
I just tried changing this so that I now have a threading.Event() called self.done, which is set within the body of the shutdown() method. The serverWrapper loop now looks like this: def serverWrapper(): while True: server.handle_request() if self.done.isSet():

Re: Python surpasses Perl in TIOBE index

2007-12-05 Thread George Sakkis
On Dec 5, 7:34 am, BlueBird [EMAIL PROTECTED] wrote: On Dec 4, 4:08 pm, [EMAIL PROTECTED] wrote: This is *not* an attempt to start yet another Python-versus- AnyOtherProgrammingLanguage flame war, but I thought people might be interested in this: http://www.tiobe.com/tpci.htm Marc I

Re: Converting LF/FF delimited logs to XML w/ Python?

2007-12-05 Thread kyosohma
On Dec 5, 3:19 pm, Kadin2048 [EMAIL PROTECTED] wrote: This is a very noob-ish question so I apologize in advance, but I'm hoping to get some input and advice before I get too over my head. I'm trying to convert some log files from a formfeed- and linefeed-delimited form into XML. I'd been

Re: Getting wxPython to work on a Mac

2007-12-05 Thread Timothy Smith
In article [EMAIL PROTECTED], Piet van Oostrum [EMAIL PROTECTED] wrote: TS I set PYTHONPATH to TS System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 Why would you do that? Don't know, as it's not clear (to me) from the documentation whether PYTHONPATH has to include a

Converting LF/FF delimited logs to XML w/ Python?

2007-12-05 Thread Kadin2048
This is a very noob-ish question so I apologize in advance, but I'm hoping to get some input and advice before I get too over my head. I'm trying to convert some log files from a formfeed- and linefeed-delimited form into XML. I'd been thinking of using Python to do this, but I'll be honest

Re: Optimizing memory usage w/ HypterText package

2007-12-05 Thread Chris
On Dec 5, 10:17 pm, Chris [EMAIL PROTECTED] wrote: On Dec 5, 9:35 pm, [EMAIL PROTECTED] wrote: I've been using the HyperText module for a while now (http://dustman.net/andy/python/HyperText/), and I really like it. I've run into a situation where I have code to construct a table and

Need Help to start with RTP

2007-12-05 Thread niket mhatre
Hello to every one. I currently working on project where, I need to handle my audio streaming , For that reason I m looking for some python lib or any python module, which wl help me to construct RTP packets. Or any one can able to lead me to any resource wl also help lot..

Re: Timeout test hangs IDLE

2007-12-05 Thread Sergio Correia
I once made a small app that used threads on IDLE. There was a strange error when using 'print' threads. When what I printed filled the entire screen, instead of moving all the text up, IDLE just hanged. Try running your code from the shell instead, to see if the problem is in IDLE. HTH, Sergio

Re: An Object's Type

2007-12-05 Thread Bruno Desthuilliers
Neil Cerutti a écrit : On 2007-12-05, Bruno Desthuilliers [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] a écrit : Is it possible to find out if an object is of a certain type or of a type derived from this type? You have the answer, thanks to Diez and Christian. Now unless you have a *very*

Re: Converting LF/FF delimited logs to XML w/ Python?

2007-12-05 Thread Chris Mellon
On Dec 5, 2007 3:19 PM, Kadin2048 [EMAIL PROTECTED] wrote: This is a very noob-ish question so I apologize in advance, but I'm hoping to get some input and advice before I get too over my head. I'm trying to convert some log files from a formfeed- and linefeed-delimited form into XML. I'd

Re: Tkinter vs. py2exe problem

2007-12-05 Thread msunderwd
On Dec 5, 9:50 am, [EMAIL PROTECTED] wrote: Having a problem with compiling a Tkinter/python program using py2exe (and pyinstaller, for that matter)... I have several dialogs that are derived from the tkSimpleDialog.Dialog class. These work just fine if run through the interpreter. When I

Re: Omitting results with id3reader [Beginner]

2007-12-05 Thread Ionis
Thank you for your help, it is really appreciated. I'll post back if there are any more problems. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why Python 3?

2007-12-05 Thread Michael Spencer
Kay Schluehr wrote: This unexpected attack in his rear frightened him so much, that he leaped forward with all his might: the horse's carcase dropped on the ground, but in his place the wolf was in the harness, and I on my part whipping him continually: we both arrived in full career safe at

[OT] Guide me on Apache Virtual server+mod_python

2007-12-05 Thread Ravi Kumar
HI, I am sorry for OT here. But I search google, could not quench my thrist, so came here, and for single question, I don't want to subscribe in Apache Newsgroup. The problem is : i wwant to implement a mod_python based Website + Reporting Application on my system. In the domain, my system is :

Re: Omitting results with id3reader [Beginner]

2007-12-05 Thread Bruno Desthuilliers
Ionis a écrit : Hey guys, hope you can help me here. I've been playing with python for about a week or two and I've been reading A Byte Of Python to get me on my feet. I've decided to write a program which will list all ID3 information in a directory of .mp3 files into a .html file. The

Timeout test hangs IDLE

2007-12-05 Thread Andreas Tawn
I'm trying to integrate the timeout function from here http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473878 into a long running automation script and the following code causes IDLE after 20 or 30 iterations in countTest. This is in 2.5, XP and there's no traceback. Could someone point

Re: Converting LF/FF delimited logs to XML w/ Python?

2007-12-05 Thread Kadin2048
In article [EMAIL PROTECTED], Chris Mellon [EMAIL PROTECTED] wrote: This is a pretty simple problem and is well suited for a beginner project. The file() builtin will get you the data in your log file. Using the split() method of the string object, you can break your logfile into chunks.

Re: How to split string

2007-12-05 Thread Peter Otten
Johny wrote: I have a string of a variable length and I need to split the string in strings of 6 characters . But if the 6th character is not space then I must split the string at possition before the 6th character. For example: if the main string S is S='abcde fghc ijkl mnop' the

Re: How to split string

2007-12-05 Thread Johny
On Dec 5, 11:55 am, Chris [EMAIL PROTECTED] wrote: On Dec 5, 10:55 am, Johny [EMAIL PROTECTED] wrote: I have a string of a variable length and I need to split the string in strings of 6 characters . But if the 6th character is not space then I must split the string at possition

Re: An Object's Type

2007-12-05 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: Hi, Is it possible to find out if an object is of a certain type or of a type derived from this type? http://docs.python.org/lib/built-in-funcs.html Look for isinstance. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: How to split string

2007-12-05 Thread Chris
On Dec 5, 10:55 am, Johny [EMAIL PROTECTED] wrote: I have a string of a variable length and I need to split the string in strings of 6 characters . But if the 6th character is not space then I must split the string at possition before the 6th character. For example: if the main string S

Re: os.access() under windows

2007-12-05 Thread Martin v. Löwis
* R_OK: A process with bypass-traversal-check priv. enabled doesn't need any access to intervening directories in order to get the attributes of a file within them. This means that our existing R_OK result is accurate for any file: if we can get its attributes then you can open the file for

An Object's Type

2007-12-05 Thread bg_ie
Hi, Is it possible to find out if an object is of a certain type or of a type derived from this type? Thanks, Barry -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is not a good name, should rename to Athon

2007-12-05 Thread Boris Borcic
Russ P. wrote: Speaking of stupid names, what does C++ mean? According to Special Relativity, C++ is a contradiction in terms :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Timezones in python

2007-12-05 Thread lukasz . f24
Thanks guys for your answers! I know those library's but I was wondering is there something build-in for this simple convert convert. I have to do it only from +4 to +0. -- http://mail.python.org/mailman/listinfo/python-list

How to split string

2007-12-05 Thread Johny
I have a string of a variable length and I need to split the string in strings of 6 characters . But if the 6th character is not space then I must split the string at possition before the 6th character. For example: if the main string S is S='abcde fghc ijkl mnop' the result should be abcde

Re: reloading modules and isinstance()

2007-12-05 Thread Steven D'Aprano
On Tue, 04 Dec 2007 15:41:48 +0100, Diez B. Roggisch wrote: You just discovered one reason why reload() is a bad idea and IMHO shouldn't be used at all - as tempting it might be. I disagree -- I find reload() extremely useful for interactively testing modules. But I would never dream of

Re: Timeout test hangs IDLE

2007-12-05 Thread kyosohma
On Dec 5, 6:00 am, Andreas Tawn [EMAIL PROTECTED] wrote: I'm trying to integrate the timeout function from herehttp://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473878into a long running automation script and the following code causes IDLE after 20 or 30 iterations in countTest. This

contributing to an open source project

2007-12-05 Thread kdt
Hi, I am looking for an open source project to contribute to, to enhance my python skills. I have about 6 months experience in the language. I have searched freshmeat.net, but as I'm pretty new, I'm not sure which projects I would be able to contribute to. If anyone can suggest any open source

Re: Omitting results with id3reader [Beginner]

2007-12-05 Thread Chris
On Dec 5, 2:04 pm, Ionis [EMAIL PROTECTED] wrote: On Dec 5, 11:59 am, Chris [EMAIL PROTECTED] wrote: Ok, just noticed you linked the id3reader. I tested my code and it worked fine. Thanks alot Chris. Could you comment your code so I can see what each line is doing? I hope that isn't a

Re: Omitting results with id3reader [Beginner]

2007-12-05 Thread Ionis
On Dec 5, 11:59 am, Chris [EMAIL PROTECTED] wrote: Ok, just noticed you linked the id3reader. I tested my code and it worked fine. Thanks alot Chris. Could you comment your code so I can see what each line is doing? I hope that isn't a problem. Still pretty new to python. --

parsing python code

2007-12-05 Thread Ryan Krauss
I need to parse a Python file by breaking it into blocks matching indentation levels so that function definitions, for loops, and classes are kept together as blocks. For example, if I have something like from scipy import* from pylab import* g = .6 Input_freq = 10.0 def load_data(path):

Re: Timeout test hangs IDLE

2007-12-05 Thread kyosohma
On Dec 5, 10:37 am, Andreas Tawn [EMAIL PROTECTED] wrote: On Dec 5, 6:00 am, Andreas Tawn [EMAIL PROTECTED] wrote: I'm trying to integrate the timeout function from herehttp://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/47 3878into a long running automation script and the

Re: PyObjC and Webkits

2007-12-05 Thread kyosohma
On Dec 4, 1:01 pm, Tommy Grav [EMAIL PROTECTED] wrote: I am trying to install PyObjC 1.4 on my Mac OS X 10.4.11. I run: [EMAIL PROTECTED] Temporary/pyobjc-1.4 -- python setup.py bdist_mpkg -- open ** using pyobjc source-deps py2app for building running bdist_mpkg installing to

Re: Distutils help for sub-packages

2007-12-05 Thread kyosohma
On Dec 3, 9:44 am, Rick Muller [EMAIL PROTECTED] wrote: I need some distutils help. I currently run a python library (PyQuante) that, until recently, had all of its modules in a single directory, called PyQuante. The setup command in my setup.py module had a single packages line:

  1   2   >