Using PyXml with Jython

2007-12-05 Thread barakad11
Hi I'm trying to run some code developed for (C)Python on Jython's interpreter (version 2.2.1). The code uses xpath and I tried to make Pyxml available to the Jython interpreter in order for it to execute. The interpreter still can't import xpath module. When I checked the __init__ file under Jyth

Re: How to split string

2007-12-05 Thread Johny
Thank you all who replied particularly Chris and Tim. L. -- http://mail.python.org/mailman/listinfo/python-list

Re: emacs python mode problem

2007-12-05 Thread Amackera
On Dec 5, 7:01 pm, Toby <[EMAIL PROTECTED]> wrote: > For some reason, emacs python-mode has stopped working for me. It has > been working without any problems since I installed it on Ubuntu Gutsy > Gibbon, but now the "Start Interpreter" causes emacs to hang requiring > me to kill emacs. Other part

Re: SimpleXMLRPCServer interruptable?

2007-12-05 Thread Edward Kozlowski
On Dec 5, 10:19 pm, Edward Kozlowski <[EMAIL PROTECTED]> wrote: > On Dec 5, 6:22 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > > > > En Wed, 05 Dec 2007 18:20:35 -0300, Bret <[EMAIL PROTECTED]> escribió: > > > > I just tried changing this so that I now have a threading.Event() > > > called

romance is a symbal of love.......

2007-12-05 Thread Barathi
Hey, did you know that saying "thank you" regularly is a good way to add tons of romance to your relationship? It's true! Showing your appreciation to your significant other is an important part of making them feel special, and there are few better ways to show your lover how much they mean to y

Re: parsing python code

2007-12-05 Thread Kay Schluehr
On Dec 5, 6:02 pm, "Ryan Krauss" <[EMAIL PROTECTED]> wrote: > 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* >

Re: SimpleXMLRPCServer interruptable?

2007-12-05 Thread Edward Kozlowski
On Dec 5, 6:22 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 05 Dec 2007 18:20:35 -0300, Bret <[EMAIL PROTECTED]> escribió: > > > 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 se

Re: how to pass parameter to a python script when running it in the interactive shell?

2007-12-05 Thread David Tweet
This should work: python -i myscript.py --cl --cs 5 --ce 6 --bw 7 --set 1 On Dec 5, 2007 6:31 PM, wang frank <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am debugging a python script which takes a set of paramters. In the > regular shell, I type: > > myscript.py --cl --cs 5 --ce 6 --bw 7 --se

how to pass parameter to a python script when running it in the interactive shell?

2007-12-05 Thread wang frank
Hi, I am debugging a python script which takes a set of paramters. In the regular shell, I type: myscript.py --cl --cs 5 --ce 6 --bw 7 --set 1 However I want to debug the code in the interactive python shell, I do not know how to run it. I know that execfile("myscript.py") will run th

python 2.4 and compiler combatability

2007-12-05 Thread Michael ODonnell
I am trying to use the scipy module for compiling nested c++ with weave.inline. My question is can I use a more recent microsoft compiler (2005) to do this. I have installed python 2.4.4 and the VC 2003 toolkit. However, the version of the toolkit that I found is for a x64 and my machine is x86.

Re: Why Python 3?

2007-12-05 Thread Terry Reedy
"Chris Gonnerman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |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? Overall, to delete accumulated stuff, much of which would have

Re: contributing to an open source project

2007-12-05 Thread André
On Dec 5, 4:50 pm, kdt <[EMAIL PROTECTED]> wrote: > 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 abl

import problem in zope

2007-12-05 Thread jack139
I installed zope under windows and found a problem when import addition modules - iHotfix and itools. When place itools in python's library path, site-packages, import works fine. When place itools in zope-instance's library path, /zope-instance/lib/python, it seems the the import only work partial

Re: contributing to an open source project

2007-12-05 Thread Daniel Fetchinson
> 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 sou

Very beautiful girls and many useful resources and more, please check it out

2007-12-05 Thread [EMAIL PROTECTED]
Very beautiful girls and many useful resources and more,please check it out http://groups.google.com/group/all-good-things/web/beautiful-girls-and-ladies -- http://mail.python.org/mailman/listinfo/python-list

Re: parsing python code

2007-12-05 Thread Gabriel Genellina
En Wed, 05 Dec 2007 14:02:35 -0300, Ryan Krauss <[EMAIL PROTECTED]> escribió: > 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. [...] > > I think the parser module should e

Re: SimpleXMLRPCServer interruptable?

2007-12-05 Thread Gabriel Genellina
En Wed, 05 Dec 2007 18:20:35 -0300, Bret <[EMAIL PROTECTED]> escribió: > 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

emacs python mode problem

2007-12-05 Thread Toby
For some reason, emacs python-mode has stopped working for me. It has been working without any problems since I installed it on Ubuntu Gutsy Gibbon, but now the "Start Interpreter" causes emacs to hang requiring me to kill emacs. Other parts of python-mode seem to work okay, though. Any suggestions

Re: Optimizing memory usage w/ HypterText package

2007-12-05 Thread [EMAIL PROTECTED]
On Dec 5, 2:13 pm, [EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Here's a hint: go look at comp.lang.python on Google Groups. > > Note that up in the right corner it says "Topics 1-30 of 98305". > > Why do you suppose there is no option to display ALL the topics, > > a

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 ch

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

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.. Than

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 autom

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 b

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.

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(): bre

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 an

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

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, creates

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 >>y

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 pr

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

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 t

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

Re: Optimizing memory usage w/ HypterText package

2007-12-05 Thread Chris
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 while it is normally perfect, there are times where the

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

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 -- http://mail.

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 dire

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

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 www.SexDatingPo

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__ referenc

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.

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 subproces

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 saf

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 #

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.

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, a

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] Priva

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 use

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

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: "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.

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: 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

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

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 -- http://mail

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 o

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: 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: 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 dialog

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 > > cla

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 #

How to browse a C Library with Python

2007-12-05 Thread georg.heiss
Hello, 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? #!/python import dl, time i = 1 line = "Python ist geil, weil ich direkt auf C librarys zugreifen kann! \n"

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" 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 that l

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. Wh

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 -- http://ma

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: 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. Wh

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

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. Wh

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 erro

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 pri

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 seq

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

[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 : m

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: > >

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.

Re: Why Don't Return?

2007-12-05 Thread Victor Subervi
Thanks :) On Dec 3, 2007 6:58 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > > "Victor Subervi" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | def a(): > | b() > > Here is the error: should be > c = b() > > | print c > | > | def b(): > | c = "Hi" > | return c > | > | if __n

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 dateti

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

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 > mo

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 substanc

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 40".ple

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 usi

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: 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. > >

Re: How to split string

2007-12-05 Thread Chris
On Dec 5, 1:46 pm, Johny <[EMAIL PROTECTED]> wrote: > 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 6

Re: An Object's Type

2007-12-05 Thread Christian Heimes
[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? class Example(object): pass class AnotherExample(Example): pass >>> issubclass(Example, object) True >>> issubclass(AnotherExample, object) True >>> issub

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

plpythonu and "hello concurrent world"

2007-12-05 Thread Gerardo Herzig
Hi all. Im having some "problems" with a small concurrent plpython function. Based on a small example [1] about concurrent programming, there is some code which works fine under python: #! /usr/bin/python import threading, random import time def myPrint(str): print 'searching...', str t

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: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-05 Thread Rick Dooling
> Sorry for keeping you guys busy with such a mistake ;) No apologies necessary, especially since you reported the final outcome. Now anybody searching on that message will find a complete thread and a lesson learned. rick -- http://mail.python.org/mailman/listinfo/python-list

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: http://www.ohloh.

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 m

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 tha

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

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. -- http://mail.py

  1   2   >