Re: 2**2**2**2**2 wrong? Bug?

2007-07-09 Thread Jim Langston
Gah! Python goes right to left? Dang, I haven't seen that since APL. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >>> 2**2)**2)**2)**2) 65536 >>> 2**(2**(2**(2**2))) 200352993040684646497907235156025575044782547556975141926501697371089405955631145308950613088

Re: 2**2**2**2**2 wrong? Bug?

2007-07-09 Thread [EMAIL PROTECTED]
On Jul 9, 11:42?pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Jul 9, 11:21 pm, "Jim Langston" <[EMAIL PROTECTED]> wrote:> In Python 2.5 > on intel, the statement > > 2**2**2**2**2 > > evaluates to>>> 2**2**2**2**2 > > > 200352993040684646497907235156025575044782547556975141926501697371089405955

Re: highly einteractive editor for python

2007-07-09 Thread Josiah Carlson
Atul Bhingarde wrote: > Does anybody know an editor that facilitates, interactive python > development. Where GUI etc developed will be possible to see in real time > mode. Boa Constructor? wxGlade embedded in some other software (SPE?) XRCed? What do you mean by "real time mode"? - Josi

Re: trouble controlling vim with subprocess on windows machine

2007-07-09 Thread Josiah Carlson
[EMAIL PROTECTED] wrote: > On Jul 9, 11:06 am, Josiah Carlson <[EMAIL PROTECTED]> > wrote: >> [EMAIL PROTECTED] wrote: >>> I am having trouble contolling vim with subprocess on a windows >>> machine. It appears that vim comes up on the machine all right and it >>> sometimes looks like it is d

RE: 2**2**2**2**2 wrong? Bug?

2007-07-09 Thread brianjiang
>>> 2**2)**2)**2)**2) 65536 >>> 2**(2**(2**(2**2))) 200352993040684646497907235156025575044782547556975141926501697371089405955631145308950613088. The same as "2**2**2**2**2" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTE

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-09 Thread Paul Rubin
Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > > If the assertion is wrong, the compiler signals an error. In > > that sense it's like a unit test; it makes sure the function does what > > the user expects. > > It still boils down to the same problem : possibly valid types are > rejected based

Re: catching empty strings (I guess that's what they are)

2007-07-09 Thread Alex Martelli
Diez B. Roggisch <[EMAIL PROTECTED]> wrote: ... > for uf in user_files: > uf = uf.strip().lower() > if uf: >file_skip_list.append(uf) This is fine; however, another reasonable alternative is: if not uf.isspace(): file_skip_list.append(uf.strip().lower()) I prefer yo

Re: 2**2**2**2**2 wrong? Bug?

2007-07-09 Thread Jim Langston
"Paul Rubin" wrote in message news:[EMAIL PROTECTED] > "Jim Langston" <[EMAIL PROTECTED]> writes: >> In Python 2.5 on intel, the statement >> 2**2**2**2**2 >> evaluates to >> >>> 2**2**2**2**2 > > I get the same number from hugs--why do you think it might be wrong? 2**2

Re: 2**2**2**2**2 wrong? Bug?

2007-07-09 Thread Paul McGuire
On Jul 9, 11:21 pm, "Jim Langston" <[EMAIL PROTECTED]> wrote: > In Python 2.5 on intel, the statement > 2**2**2**2**2 > evaluates to>>> 2**2**2**2**2 > > 200352993040684646497907235156025575044782547556975141926501697371089405955­63114 > 5308950613088093334810103823434290726318182294938211881266886

Re: 2**2**2**2**2 wrong? Bug?

2007-07-09 Thread Paul Rubin
"Jim Langston" <[EMAIL PROTECTED]> writes: > In Python 2.5 on intel, the statement > 2**2**2**2**2 > evaluates to > >>> 2**2**2**2**2 I get the same number from hugs--why do you think it might be wrong? -- http://mail.python.org/mailman/listinfo/python-list

Re: socket.makefile() buggy?

2007-07-09 Thread Frank Swarbrick
ahlongxp wrote: > On Jul 8, 9:54 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >> That's a pretty pejorative subject line for someone who's been >> programming Python [guessing by the date of your first post] for about a >> month. >> > I have to admit it that I'm quite a newbie programmer. >> Perhap

Re: Should I use Python for these programs?

2007-07-09 Thread Michele Simionato
On Jul 10, 5:09 am, CC <[EMAIL PROTECTED]> wrote: > 2. Develop a simple vector drawing program that will allow one to > freehand draw a sketch composed of a few lines, or perhaps render text > in a vector form. Then sample the lines with a certain (user > configurable) spacing, and use the mouse

2**2**2**2**2 wrong? Bug?

2007-07-09 Thread Jim Langston
In Python 2.5 on intel, the statement 2**2**2**2**2 evaluates to >>> 2**2**2**2**2 20035299304068464649790723515602557504478254755697514192650169737108940595563114 53089506130880933348101038234342907263181822949382118812668869506364761547029165 041871916351587966347219442930927982084309104855990570

Re: Should I use Python for these programs?

2007-07-09 Thread Grant Edwards
On 2007-07-10, CC <[EMAIL PROTECTED]> wrote: > I wish to accomplish a few PC programming tasks, and am > considering to learn Python: > > 1. Develop a simple GUI program to run on Linux and Windows >which can send parameters and small blocks of data to an >embedded microcontroller device v

RE: Broken MUA interactions

2007-07-09 Thread Delaney, Timothy (Tim)
Ben Finney wrote: > If your MUA is not using the information, provided in every message > from the mailing list, to do what you want, don't ask mailing list > admmministrators to accomodate your broken MUA. There would be nothing wrong with an MUA for example, having a "reply" button where the us

Should I use Python for these programs?

2007-07-09 Thread CC
Hi: I have considerable C and assembly language experience. However, these are mostly on embedded microcontrollers since I moved away from PC programming all the way back in 1988 :-O I wish to accomplish a few PC programming tasks, and am considering to learn Python: 1. Develop a simple GUI

Pythonic cats (and dogs?)

2007-07-09 Thread Tim Churches
A challenge: an elegant, parsimonious and more general[1] implementation of this, in Python: http://lol.ianloic.com/feed/www.planetpython.org/rss20.xml Tim C [1] Dogs, ponies, babies, politicians... -- http://mail.python.org/mailman/listinfo/python-list

Re: highly einteractive editor for python

2007-07-09 Thread Steve Holden
Atul Bhingarde wrote: > Does anybody know an editor that facilitates, interactive python > development. Where GUI etc developed will be possible to see in real time > mode. > > Thanks > > Atul > > Wind IDE is great for debugging GUI-based programs - you can set breakpoints in event-handling

path backslash escaping trouble

2007-07-09 Thread placid
Hi All, I have these files; which are Merge Request (ClearCase) files that are created by a Perl CGI script (being re-written in Python, as the HTML/ JavaScript have been mixed with Perl, maintainability is zero) MergeTypecodefromlabel BLnameBUILDMODS OldLname BaseVersion:

Re: Error when trying to write unicode xml to zipfile

2007-07-09 Thread Gabriel Genellina
En Mon, 09 Jul 2007 20:11:24 -0300, Martin <[EMAIL PROTECTED]> escribió: > I get below error when trying to write unicode xml to a zipfile. > > zip.writestr('content.xml', content.toxml()) > File "/usr/lib/python2.4/zipfile.py", line 460, in writestr > zinfo.CRC = binascii.crc32(bytes)

Weekly Python Patch/Bug Summary

2007-07-09 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 392 open ( +7) / 3792 closed ( +2) / 4184 total ( +9) Bugs: 1042 open (+13) / 6757 closed (+13) / 7799 total (+26) RFE : 263 open ( +1) / 292 closed ( +1) / 555 total ( +2) New / Reopened Patches __ "%d" form

Re: How do I remotely access Scheduled Tasks from Windows XP to Windows Server 2003?

2007-07-09 Thread kj7ny
On Jun 30, 10:55 am, "Roger Upole" <[EMAIL PROTECTED]> wrote: > "kj7ny" wrote: > > How can I access and manipulateScheduledTasksin Windows using > > Python? > > > I have a Windows XP workstation running Python 2.4.4 using the > > win32all modules to control the windows services on multiple Windows

highly einteractive editor for python

2007-07-09 Thread Atul Bhingarde
Does anybody know an editor that facilitates, interactive python development. Where GUI etc developed will be possible to see in real time mode. Thanks Atul -- http://mail.python.org/mailman/listinfo/python-list

Passing a CookieJar instead of a cookieproc to urllib2.build_opener

2007-07-09 Thread [EMAIL PROTECTED]
urllib2.build_opener happily accepts and ignores a FileCookieJar.I had a bug in my code which looked like urllib2.build_opener(func_returning_cookie_jar()) which should have been urllib2.build_opener(HTTPCookieProcessor(func_returning_cookie_jar()) The problem is that the code ran happily w

Re: "Empty" text

2007-07-09 Thread Miles
On Jul 9, 4:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > On Sun, 08 Jul 2007 22:23:20 +0200, Jan Danielsson wrote: > > >Firefox is very unhappy about the textarea not having separate > > > opening and a closing tags. i.e. I need th

Purpose of delayload in cookielib.FileCookieJar?

2007-07-09 Thread [EMAIL PROTECTED]
What is the reason for delayload=False in the FileCookieJar.__init__ function? It doesn't seem to be used in any of the code that ships with python2.4, and it seems to directly contradict the comment following it """ Cookies are NOT loaded from the named file until either the .loa

Re: Broken MUA interactions

2007-07-09 Thread Ben Finney
"Chris Mellon" <[EMAIL PROTECTED]> writes: > On 7/9/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > > No, it's not correct to modify Reply-To. Some reasons: > > http://www.unicom.com/pw/reply-to-harmful.html > > None of those are reasons, they're opinions and weary old excuses. They're old, bu

Re: Broken MUA interactions

2007-07-09 Thread Ben Finney
"Gabriel Genellina" <[EMAIL PROTECTED]> writes: > No, it's not correct to modify Reply-To. Some reasons: > http://www.unicom.com/pw/reply-to-harmful.html Not to mention that, since the publication of that document, it's now even more clearly incorrect to munge 'reply-to' fields; the standards now

Re: execute script in certain directory

2007-07-09 Thread Gabriel Genellina
En Mon, 09 Jul 2007 14:09:40 -0300, Alex Popescu <[EMAIL PROTECTED]> escribió: > Interesting. I was wondering about the opposit: being in the parent > dir, how can I run a module from a package. (the current behavior when > running python dir_name\module.py is to consider the dir_name the > curr

New release: Crunchy 0.9

2007-07-09 Thread André
Crunchy 0.9 has been released. It is available at http://code.google.com/p/crunchy What is Crunchy? Crunchy is a an application that transforms html Python tutorials into interactive session viewed within a browser. We are not aware of any other application (in any language) similar to Crunchy.

Re: trouble controlling vim with subprocess on windows machine

2007-07-09 Thread [EMAIL PROTECTED]
On Jul 9, 11:06 am, Josiah Carlson <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I am having trouble contolling vim with subprocess on a windows > > machine. It appears that vim comes up on the machine all right and it > > sometimes looks like it is doing the searchs what I am ask

Re: having problems in changing directories doing ftp in python

2007-07-09 Thread dabu11et
On Jul 9, 4:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > Thank you for your cfomment, also I forgot about the case issue, yes > my web server is unix, not windows > > On Jul 9, 4:12 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > > > > En Sat, 07 Jul 2007 09:41:59 -0300,

Re: Comparing modified elements in Sets

2007-07-09 Thread dabu11et
On Jul 9, 2:57 pm, [EMAIL PROTECTED] wrote: > I've got a set with contents like: [filename1.mp3, filename2.mp3, > filename3.mp3, ...] > I've got another set with contents like [filename1.ogg, > filename3.ogg, ...] > And another set with contents like [filename1, filename 2, ...] > > I'd like to be

Re: execute script in certain directory

2007-07-09 Thread Gabriel Genellina
En Mon, 09 Jul 2007 14:14:07 -0300, vasudevram <[EMAIL PROTECTED]> escribió: > On Jul 9, 8:31 pm, brad <[EMAIL PROTECTED]> wrote: >> When I use idle or a shell to execute a python script, the script >> executes in the directory it is currently in (in this case, my desktop). >> However, when usin

Re: Comparing modified elements in Sets

2007-07-09 Thread Steven D'Aprano
On Mon, 09 Jul 2007 19:57:14 +, ChrisEdgemon wrote: > I've got a set with contents like: [filename1.mp3, filename2.mp3, > filename3.mp3, ...] > I've got another set with contents like [filename1.ogg, > filename3.ogg, ...] > And another set with contents like [filename1, filename 2, ...] > > I

Re: PyXML not installing?

2007-07-09 Thread Martin v. Löwis
> error: Python was built with Visual Studio 2003; > extensions must be built with a compiler than can generate compatible > binaries. > Visual Studio 2003 was not found on this system. If you have Cygwin > installed, > you can try compiling with MingW32, by passing "-c mingw32" to > setup.py. > >

Error when trying to write unicode xml to zipfile

2007-07-09 Thread Martin
I get below error when trying to write unicode xml to a zipfile. zip.writestr('content.xml', content.toxml()) File "/usr/lib/python2.4/zipfile.py", line 460, in writestr zinfo.CRC = binascii.crc32(bytes) # CRC-32 checksum UnicodeEncodeError: 'ascii' codec can't encode character u'\

Re: Choosing Tkinter over wxPython...

2007-07-09 Thread [EMAIL PROTECTED]
On Jul 9, 4:08 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote: > I've spent some time playing with both, and while wxPython is nice, > Tkinter just seems to fit my head better, and with appropriate selection > of widgets and interface design, seems to yield up perfectly usable GUI's. > > Can anyone els

S2K DTS and Python

2007-07-09 Thread Phil Runciman
Hi All, I am a Python newbie so please be gentle on me. I have created a program that takes text files within a directory and it successfully parses the information from them to create 3 CSV files. However, I now want to update some tables in MSAccess, and it occurred to me that becaus

Re: having problems in changing directories doing ftp in python

2007-07-09 Thread [EMAIL PROTECTED]
Hi, Thank you for your cfomment, also I forgot about the case issue, yes my web server is unix, not windows On Jul 9, 4:12 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 07 Jul 2007 09:41:59 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribió: > > > I'm trying to write aftpi

Re: Choosing Tkinter over wxPython...

2007-07-09 Thread James Matthews
Sorry i am a wxpython person! TKinter wouldn't work for me so i moved to wxPython. However try pyQT or pyGTK both seem to be good toolkits and have large user bases On 7/9/07, Kevin Walzer <[EMAIL PROTECTED]> wrote: I've spent some time playing with both, and while wxPython is nice, Tkinter jus

Choosing Tkinter over wxPython...

2007-07-09 Thread Kevin Walzer
I've spent some time playing with both, and while wxPython is nice, Tkinter just seems to fit my head better, and with appropriate selection of widgets and interface design, seems to yield up perfectly usable GUI's. Can anyone else who finds Tkinter better for them than wxPython (or the other t

Re: dealing with nested xml within nested xml within......

2007-07-09 Thread Stefan Behnel
Ultrus wrote: > I don't need specific examples, but I'm trying to wrap my head around > parsing xml within xml and even further, not limiting how far someone > will nest xml. I'm already making great use of BeautifulSoup's > BeautifulStoneSoup to parse xml, but what do I do if I come across > somet

Re: PyXML not installing?

2007-07-09 Thread Stefan Behnel
Robert Dailey wrote: > I downloaded the PyXML library and I'm attempting to install it by > following the README file on Windows XP. I currently have Visual > Studio 2005 installed. > >>From the command line I type: > > C:\PyXML-0.8.4>python setup.py build > running build > running build_py > run

PyXML not installing?

2007-07-09 Thread Robert Dailey
Hi, I downloaded the PyXML library and I'm attempting to install it by following the README file on Windows XP. I currently have Visual Studio 2005 installed. >From the command line I type: C:\PyXML-0.8.4>python setup.py build running build running build_py running build_ext error: Python was bu

Re: Distributing python apps

2007-07-09 Thread Robert Dailey
Thanks a ton guys. You both gave me the exact answers I was looking for. -- http://mail.python.org/mailman/listinfo/python-list

Re: dealing with nested xml within nested xml within......

2007-07-09 Thread Ultrus
> You'd probably write a function that called itself to parse something > like this. Unfortunately, I am not a recursion expert. You can read up > on it though: > > http://www.freenetpages.co.uk/hp/alan.gauld/tutrecur.htmhttp://pythonjournal.cognizor.com/pyj2.2/RecursionByAJChung.html Ah! That's t

Re: What is the preferred doc extraction tool?

2007-07-09 Thread Cousin Stanley
> > The tool is Latex plus a lot of utilities > that help make the HTML output good looking. > I spent several hours yesterday editing some html doc files for a python module that had been generated by a tool called LaTeX2HTML That was some of the ugliest and most non-s

Re: A clean way to program an interface

2007-07-09 Thread rh0dium
On Jul 9, 9:59 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > I believe the OP is talking about "interface" as in "hardware > interface", using some form of serial communication. His example does > not use pyserial, but it does refer to a "UnidenConnection" class, > with parameters such as bitrate,

Re: dealing with nested xml within nested xml within......

2007-07-09 Thread kyosohma
On Jul 9, 3:03 pm, Ultrus <[EMAIL PROTECTED]> wrote: > Hello all, > I don't need specific examples, but I'm trying to wrap my head around > parsing xml within xml and even further, not limiting how far someone > will nest xml. I'm already making great use of BeautifulSoup's > BeautifulStoneSoup to

Re: Python's "only one way to do it" philosophy isn't good?

2007-07-09 Thread Douglas Alan
Steve Holden <[EMAIL PROTECTED]> writes: >> I'm relying on a feature that has worked fine since the early '90s, >> and if it is ever changed in the future, I'm sure that plenty of other >> language changes will come along with it that will make adapting code >> that relies on this feature to be th

Re: Distributing python apps

2007-07-09 Thread Thomas Wittek
Robert Dailey schrieb: > Ideally, I would like for someone to be able to use my tools without > having to install Python. What about http://www.py2exe.org/ ? "py2exe is a Python Distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Pyt

Re: Distributing python apps

2007-07-09 Thread kyosohma
On Jul 9, 2:59 pm, Robert Dailey <[EMAIL PROTECTED]> wrote: > Hi, > > I'm creating a set of command-line tools using Python. These tools > manage resources for a game I'm working on. However, many people that > will be using these tools will not want to install Python on their > machines. This woul

dealing with nested xml within nested xml within......

2007-07-09 Thread Ultrus
Hello all, I don't need specific examples, but I'm trying to wrap my head around parsing xml within xml and even further, not limiting how far someone will nest xml. I'm already making great use of BeautifulSoup's BeautifulStoneSoup to parse xml, but what do I do if I come across something like thi

Distributing python apps

2007-07-09 Thread Robert Dailey
Hi, I'm creating a set of command-line tools using Python. These tools manage resources for a game I'm working on. However, many people that will be using these tools will not want to install Python on their machines. This would be a very tedious process (for first time users of my tools). Ideall

Comparing modified elements in Sets

2007-07-09 Thread ChrisEdgemon
I've got a set with contents like: [filename1.mp3, filename2.mp3, filename3.mp3, ...] I've got another set with contents like [filename1.ogg, filename3.ogg, ...] And another set with contents like [filename1, filename 2, ...] I'd like to be able to compare set 1 with set 2 and have it match filena

Re: Decorating instance methods

2007-07-09 Thread Cousin Stanley
> > Try this: > Sesame __Street__ Version ''' NewsGroup comp.lang.python Subject .. Decorating instance methods Post_By .. Alexander Draeger Reply_By . Duncan Booth Edit_By .. Stanley C. Kitching ''' def logging( f ) : def deco( s

Re: Pydev 1.3.7 Released

2007-07-09 Thread James Matthews
I just downlaoded the old one! On 7/9/07, Fabio Zadrozny <[EMAIL PROTECTED]> wrote: Hi All, Pydev and Pydev Extensions 1.3.7 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com

Pydev 1.3.7 Released

2007-07-09 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.3.7 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights: -- * Support for Ecli

sending fastcgi requests

2007-07-09 Thread [EMAIL PROTECTED]
I have a python fastcgi app. Is there any library in python that I can use to send a FASTCGI request to the fastcgi app? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's "only one way to do it" philosophy isn't good?

2007-07-09 Thread Steve Holden
Douglas Alan wrote: > "Chris Mellon" <[EMAIL PROTECTED]> writes: [...] >> The Python language reference explicitly does *not* guarantee the >> behavior of the refcounter. > > Are you suggesting that it is likely to change? If so, I think you > will find a huge uproar about it. > >> By relying on

Re: Portable general timestamp format, not 2038-limited

2007-07-09 Thread Steve Holden
Gabriel Genellina wrote: > En Thu, 05 Jul 2007 17:57:32 -0300, Wojtek <[EMAIL PROTECTED]> escribió: > >> Note: Since I am using the year as a "magic number", some of you >> may think that I am repeating the Y2K problem. Hey, if my application >> is still being used in the year 9998 I am not b

Re: Where is the syntax for the dict() constructor ?! (OT)

2007-07-09 Thread Steve Holden
Hendrik van Rooyen wrote: > "Steve Holden" <[EMAIL PROTECTED]> wrote: > >> Would we do that with esteeth? > > Ok Steve you've got me - my dictionary goes from > estate to esteem to ester... > > The US spelling of "esthete" may have a bearing... > > - Hendrik > Sorry - dreadful joke. Since te

Re: socket.makefile() buggy?

2007-07-09 Thread Steve Holden
ahlongxp wrote: > On Jul 8, 9:54 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >> That's a pretty pejorative subject line for someone who's been >> programming Python [guessing by the date of your first post] for about a >> month. >> [...] > And last but not least, I' here to be helped and help as l

Re: Htmllib help

2007-07-09 Thread Stefan Behnel
[EMAIL PROTECTED] wrote: > The NullWriter worked perfectly. I will certainly look at HTMLParser. You should rather take a look at lxml. It's much easier to use and much more powerful. http://codespeak.net/lxml/ There is even an improved branch with a package called "lxml.html" that will be merg

Re: Python's "only one way to do it" philosophy isn't good?

2007-07-09 Thread Douglas Alan
"Chris Mellon" <[EMAIL PROTECTED]> writes: >> And why would you do that? People rely very heavily in C++ on when >> destructors will be called, and they are in fact encouraged to do so. >> They are, in fact, encouraged to do so *so* much that constructs like >> "finally" and "with" have been reje

Re: Class file location

2007-07-09 Thread axjacob
My mistake. It is Jython. -- Original message -- From: Bjoern Schliessmann <[EMAIL PROTECTED]> > [EMAIL PROTECTED] wrote: > > Is there a way to define a different directory for the generated > > .class(*$py.class) files than the current directory where the > > pyt

Re: compressing consecutive spaces

2007-07-09 Thread [EMAIL PROTECTED]
On Jul 9, 7:38 am, Beliavsky <[EMAIL PROTECTED]> wrote: > How can I replace multiple consecutive spaces in a file with a single > character (usually a space, but maybe a comma if converting to a CSV > file)? Ideally, the Python program would not compress consecutive > spaces inside single or double

Re: What is the most efficient way to test for False in a list?

2007-07-09 Thread Bjoern Schliessmann
Paul Rubin wrote: > Bjoern Schliessmann <[EMAIL PROTECTED]> > writes: >> That's an identity test for True, not for False (the latter was >> requested). Thus, I'm not mistaken. > > No, "true" is not the same thing as "True". Oops, read over that case. Still: No identity test for False. Regards,

Re: Class file location

2007-07-09 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > Is there a way to define a different directory for the generated > .class(*$py.class) files than the current directory where the > python scripts are located and executed from? Excuse me, since when does python generate .class files? Regards, Björn -- BOFH excuse #4

Re: How to Machine A python script execute Machine B python script?

2007-07-09 Thread vasudevram
On Jul 9, 1:30 pm, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > On Jul 8, 6:45 pm, johnny <[EMAIL PROTECTED]> wrote: > > > Anyone know how I can make Machine A python script execute a python > > > script on Machine B ? > > > xmlrpc will work. > > O

ImportError: MemoryLoadLibrary failed loading

2007-07-09 Thread kyosohma
Hi, Recently I began my journey into creating executables. I am using Andrea Gavana's cool GUI2EXE program which works very well and that is a GUI for py2ece. I am also using Inno Setup to create a script/executable. Anyway, today I am putting the program to the test with some volunteer testers an

Re: Htmllib help

2007-07-09 Thread axjacob
Thank you. The NullWriter worked perfectly. I will certainly look at HTMLParser. -- Original message -- From: "Gabriel Genellina" <[EMAIL PROTECTED]> > En Fri, 06 Jul 2007 03:44:20 -0300, <[EMAIL PROTECTED]> escribió: > > > Thats right I don't need the output an

Class file location

2007-07-09 Thread axjacob
Is there a way to define a different directory for the generated .class(*$py.class) files than the current directory where the python scripts are located and executed from? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-09 Thread Chris Mellon
On 07 Jul 2007 23:27:08 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: > "Hamilton, William " <[EMAIL PROTECTED]> writes: > > > Why on earth would anyone prefer taking a failure in the field over > > > having a static type check make that particular failure impossible? > > > > Because st

Python ghost compile

2007-07-09 Thread funtimes
I split a large python (2.5.1) program into three modules. Let's call them mainmod, submod1, and submod2. mainmod imports submod1 and submod2. When I make changes to any of these modules, it is not reflected in the compile. Only if exit idle and re-run idle. I've removed the two relevant .pyc

Re: execute script in certain directory

2007-07-09 Thread vasudevram
On Jul 9, 8:31 pm, brad <[EMAIL PROTECTED]> wrote: > When I use idle or a shell to execute a python script, the script > executes in the directory it is currently in (in this case, my desktop). > However, when using GNOME and right clicking the py script and selecting > 'open with python', the exec

Re: execute script in certain directory

2007-07-09 Thread Alex Popescu
On Jul 9, 6:31 pm, brad <[EMAIL PROTECTED]> wrote: > When I use idle or a shell to execute a python script, the script > executes in the directory it is currently in (in this case, my desktop). > However, when using GNOME and right clicking the py script and selecting > 'open with python', the exec

Re: Python ghost compile

2007-07-09 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > I split a large python (2.5.1) program into three modules. Let's call > them mainmod, submod1, and submod2. mainmod imports submod1 and submod2. > When I make changes to any of these modules, it is not reflected in the > compile. Only if exit idle and re-run idle. I

Re: compressing consecutive spaces

2007-07-09 Thread Paul McGuire
On Jul 9, 9:38 am, Beliavsky <[EMAIL PROTECTED]> wrote: > How can I replace multiple consecutive spaces in a file with a single > character (usually a space, but maybe a comma if converting to a CSV > file)? Ideally, the Python program would not compress consecutive > spaces inside single or double

Python ghost compile

2007-07-09 Thread funtimes
I split a large python (2.5.1) program into three modules. Let's call them mainmod, submod1, and submod2. mainmod imports submod1 and submod2. When I make changes to any of these modules, it is not reflected in the compile. Only if exit idle and re-run idle. I've removed the two relevant .pyc

Re: A clean way to program an interface

2007-07-09 Thread Paul McGuire
I believe the OP is talking about "interface" as in "hardware interface", using some form of serial communication. His example does not use pyserial, but it does refer to a "UnidenConnection" class, with parameters such as bitrate, port, etc. for what looks like serial communication. Some general

Re: Tool for finding external dependencies

2007-07-09 Thread Rob Cakebread
On Jul 9, 9:23 am, Alex Popescu <[EMAIL PROTECTED]> wrote: > Isn't it possible to get from modulefinder what it has found and just > filter it out according to your rules? > This way you are in control and can deicde what is internal/external. > At first glance it looked easy enough, by just filte

Re: Tool for finding external dependencies

2007-07-09 Thread Alex Popescu
On Jul 9, 6:42 pm, Rob Cakebread <[EMAIL PROTECTED]> wrote: > On Jul 9, 7:54 am, [EMAIL PROTECTED] wrote: > > > > > > > mod = modulefinder.ModuleFinder() > > mod.run_script(path/to/python_script.py) > > mod.report() > > > > > > Mike > > Nope. All of those tools and the code above show *all* impo

Re: list.append not working?

2007-07-09 Thread Bruno Desthuilliers
Hardy a écrit : > On 5 Jul., 18:07, infidel <[EMAIL PROTECTED]> wrote: >> On Jul 5, 8:58 am, Hardy <[EMAIL PROTECTED]> wrote: >> >> >> >>> I experience a problem with append(). This is a part of my code: >>> for entity in temp: >>> md['module']= entity.addr.get('module') >>>

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-09 Thread Bruno Desthuilliers
Paul Rubin a écrit : > Bruno Desthuilliers <[EMAIL PROTECTED]> writes: >>> Some users in fact recommend writing an explicit type signature for >>> every Haskell function, which functions sort of like a unit test. >> Stop here. explicit type signature == declarative static typing != >> unit test. >

Re: trouble controlling vim with subprocess on windows machine

2007-07-09 Thread Josiah Carlson
[EMAIL PROTECTED] wrote: > I am having trouble contolling vim with subprocess on a windows > machine. It appears that vim comes up on the machine all right and it > sometimes looks like it is doing the searchs what I am asking it to do > but when I am asking it to load a file it doesn't do an

Re: Tool for finding external dependencies

2007-07-09 Thread Rob Cakebread
On Jul 9, 7:54 am, [EMAIL PROTECTED] wrote: > > > mod = modulefinder.ModuleFinder() > mod.run_script(path/to/python_script.py) > mod.report() > > > > Mike Nope. All of those tools and the code above show *all* imports/ dependencies, which is way too much information. I just need the 'external'

Re: no python install

2007-07-09 Thread kyosohma
On Jul 9, 10:26 am, Beethon <[EMAIL PROTECTED]> wrote: > my computer has no puthon installed > i downloaded some sofware that are shiped with .py files > please explain how the programs become workable ? > > thanks Check the softwares' website(s) to see what the dependencies are and download them.

Re: What is the most efficient way to test for False in a list?

2007-07-09 Thread Paul Rubin
Bjoern Schliessmann <[EMAIL PROTECTED]> writes: > > You are mistaken. all take an iterable and returns if each value > > of it is true. > > That's an identity test for True, not for False (the latter was > requested). Thus, I'm not mistaken. No, "true" is not the same thing as "True". -- http:

Re: What is the most efficient way to test for False in a list?

2007-07-09 Thread Bjoern Schliessmann
Diez B. Roggisch wrote: > Bjoern Schliessmann wrote: >> Paul Rubin wrote: >>> lex <[EMAIL PROTECTED]> writes: but what is your best way to test for for False in a list? >>> >>> status = all(list) >> >> Am I mistaken, or is this no identity test for False at all? > > You are mistaken. all t

execute script in certain directory

2007-07-09 Thread brad
When I use idle or a shell to execute a python script, the script executes in the directory it is currently in (in this case, my desktop). However, when using GNOME and right clicking the py script and selecting 'open with python', the execution occurs in my home directory, not my desktop. Is

no python install

2007-07-09 Thread Beethon
my computer has no puthon installed i downloaded some sofware that are shiped with .py files please explain how the programs become workable ? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: compressing consecutive spaces

2007-07-09 Thread Pomato
On Jul 9, 7:38 am, Beliavsky <[EMAIL PROTECTED]> wrote: > How can I replace multiple consecutive spaces in a file with a single > character (usually a space, but maybe a comma if converting to a CSV > file)? Ideally, the Python program would not compress consecutive > spaces inside single or double

Re: What is the most efficient way to test for False in a list?

2007-07-09 Thread Hrvoje Niksic
Paul McGuire <[EMAIL PROTECTED]> writes: >> >>> False in [3, 2, 1, 0, -1] >> >> True# no False here>>> all([3, 2, 1, 0, -1]) >> >> False # false value present, not necessarily False > > I think if you want identity testing, you'll need to code your own; I'm aware of that, I simply pointed o

Re: What is the most efficient way to test for False in a list?

2007-07-09 Thread Paul Rubin
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > >> status = all(list) > > > > Am I mistaken, or is this no identity test for False at all? > > You are mistaken. all take an iterable and returns if each value of it is > true. all(list) does what the OP's code did, tests for the presence of a fal

Re: Broken MUA interactions (was: Restarting a Python Application)

2007-07-09 Thread Chris Mellon
On 7/9/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Mon, 09 Jul 2007 10:48:39 -0300, Chris Mellon <[EMAIL PROTECTED]> > escribió: > > > It's working as instructed, but that doesn't mean that it's doing the > > best thing. It's common practice for mailing lists to set the reply-to > > to th

Re: What is the preferred doc extraction tool?

2007-07-09 Thread BJörn Lindqvist
On 7/9/07, Emin.shopper Martinian.shopper <[EMAIL PROTECTED]> wrote: > Dear Experts, > > What is the preferred doc extraction tool for python? It seems that there > are many very nice options (e.g., pydoc, epydoc, HappyDoc, and lots of > others), but what is the "standard" tool or at least what is

Re: Tool for finding external dependencies

2007-07-09 Thread kyosohma
On Jul 9, 9:27 am, Rob Cakebread <[EMAIL PROTECTED]> wrote: > On Jul 9, 7:17 am, [EMAIL PROTECTED] wrote: > > > > > Recently I ran into some debugging issues and the freeware app > > "Dependency Walker" was suggested to me. I still haven't used it much > > since I only got it last Friday, but it lo

Re: catching empty strings (I guess that's what they are)

2007-07-09 Thread brad
Diez B. Roggisch wrote: > They are still there because you perform the stripping and lowercasing in > the append-call. Not beforehand. Thank you. I made the changes. It works. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >