Re: Multiple versions of Python coexisting in the same OS

2010-07-26 Thread Gelonida
Thus my idea of having a pystarter with a config file mentioning which directories (tools) should use which python executable Well, good luck ! I don;t know how this is resolved for you when some scripts executes 'python xxx yyy' or 'someScript.py yyy'. both could be resolved with a

Re: Multiple versions of Python coexisting in the same OS

2010-07-26 Thread Gelonida
On 07/25/2010 10:39 PM, MRAB wrote: News123 wrote: Thus my idea of having a pystarter with a config file mentioning which directories (tools) should use which python executable I think that's the wrong way round. A pystarter should ask the _tool_ which version of Python it needs. Hm, it's

Re: Multiple versions of Python coexisting in the same OS

2010-07-26 Thread Gelonida
On 07/26/2010 06:36 AM, Edward Diener wrote: I start a Python script for version X by going to X's root directory and invoking 'python someScript.py' from the command line. Does that not sound reasonable ? Do you have an example of two (not self written) applications requiring to change the

Re: non-blocking IO EAGAIN on write

2010-07-26 Thread Thomas Guettler
John Nagle wrote: On 7/23/2010 1:45 AM, Thomas Guettler wrote: Hi, I use non-blocking io to check for timeouts. Sometimes I get EAGAIN (Resource temporarily unavailable) on write(). My working code looks like this. But I am unsure how many bytes have been written to the pipe if I get an

Re: hasattr + __getattr__: I think this is Python bug

2010-07-26 Thread Bruno Desthuilliers
dmitrey a écrit : (snip) This doesn't stack with the following issue: sometimes user can write in code myObject.size = (some integer value) and then it will be involved in future calculations as ordinary fixed value; if user doesn't supply it, but myObject.size is involved in calculations, then

ValueError: invalid literal for int():

2010-07-26 Thread lee
Hi, I have a value, partintid = int(Screw plugg (91_10 - untitled)) but i get ValueError: invalid literal for int(): Screw plugg (91_10 - untitled) any help? - Sunny -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiprocessing zombie processes

2010-07-26 Thread Lawrence D'Oliveiro
In message mailman.1127.1280014712.1673.python-l...@python.org, Chris Rebert wrote: Paging Dr. Frankenstein. Dr. Frankenstein to the lab. Paging Dr. Frankenstein. Most people try to /avoid/ making zombies. Is there some connection between Frankenstein and zombies? --

Re: Multiprocessing zombie processes

2010-07-26 Thread Chris Rebert
On Mon, Jul 26, 2010 at 3:30 AM, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message mailman.1127.1280014712.1673.python-l...@python.org, Chris Rebert wrote: Paging Dr. Frankenstein. Dr. Frankenstein to the lab. Paging Dr. Frankenstein. Most people try to /avoid/ making

Re: ValueError: invalid literal for int():

2010-07-26 Thread Chris Rebert
On Mon, Jul 26, 2010 at 3:25 AM, lee san82m...@gmail.com wrote: Hi, I have a value, partintid = int(Screw plugg  (91_10 - untitled)) but i get ValueError: invalid literal for int(): Screw plugg  (91_10 - untitled) any help? That is most certainly not your actual exact code, since it has

Re: hasattr + __getattr__: I think this is Python bug

2010-07-26 Thread Duncan Booth
Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote: If you don't want to create as many Whatever instances as MyClass instances, you can create a single Whatever instance before defining your class: DEFAULT_WHATEVER = Whathever() class MyClass(object): def

Re: ValueError: invalid literal for int():

2010-07-26 Thread Sunny chilgod
Hi Chris, Thanks for your help. but i need to to convert the whole string to int. heres my full code, ptid = 'item_01bom' so item_01bom is a field name in form, so i get its value, partintid = int(form[ptid]). # the value of form[ptid] is 'Screw plugg (91_10 - untitled)' Hence i get the

Re: ValueError: invalid literal for int():

2010-07-26 Thread Chris Rebert
On Mon, Jul 26, 2010 at 4:25 PM, Chris Rebert c...@rebertia.com wrote: On Mon, Jul 26, 2010 at 3:25 AM, lee san82m...@gmail.com wrote: Hi, I have a value, partintid = int(Screw plugg  (91_10 - untitled)) but i get ValueError: invalid literal for int(): Screw plugg  (91_10 -

Re: ValueError: invalid literal for int():

2010-07-26 Thread Steven D'Aprano
On Mon, 26 Jul 2010 04:12:33 -0700, Chris Rebert wrote: On Mon, Jul 26, 2010 at 4:03 AM, Sunny chilgod san82m...@gmail.com wrote: Hi Chris, Thanks for your help. but i need to to convert the whole string to int. heres my full code, ptid = 'item_01bom' so item_01bom is a field name in form,

Re: ValueError: invalid literal for int():

2010-07-26 Thread lee
On Jul 26, 4:30 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Mon, 26 Jul 2010 04:12:33 -0700, Chris Rebert wrote: On Mon, Jul 26, 2010 at 4:03 AM, Sunny chilgod san82m...@gmail.com wrote: Hi Chris, Thanks for your help. but i need to to convert the whole string to

Re: Multiprocessing zombie processes

2010-07-26 Thread Michele Simionato
On Jul 25, 1:11 am, Navkirat Singh navkir...@gmail.com wrote: OK I wanted zombie processes and have been able to regenerate them with multiprocessing. Now lets see how I can handle them. The multiprocessing docs say: Joining zombie processes On Unix when a process finishes but has not been

Re: hasattr + __getattr__: I think this is Python bug

2010-07-26 Thread Bruno Desthuilliers
Duncan Booth a écrit : Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote: If you don't want to create as many Whatever instances as MyClass instances, you can create a single Whatever instance before defining your class: DEFAULT_WHATEVER = Whathever() class

Re: why is this group being spammed?

2010-07-26 Thread Bruno Desthuilliers
be.krul a écrit : Why not moderate this group? This is a hi-traffic group, so it would require a huge team of moderators. -- http://mail.python.org/mailman/listinfo/python-list

I GOT $2,000 FROM ' PAYPAL'

2010-07-26 Thread paypal
I GOT $2,000 FROM ' PAYPAL' At http://veryhotguru.co.cc i have hidden the PayPal Form link in an image. in that website On Top Side Above search box , click on image and enter your PayPal id And Your name. -- http://mail.python.org/mailman/listinfo/python-list

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-26 Thread Burton Samograd
Grant Edwards inva...@invalid.invalid writes: On 2010-07-24, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message mailman.323.1278440923.1673.python-l...@python.org, Robert Kern wrote: There are also utilities for mounting ISOs directly without burning them to a physical

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-26 Thread Robin Becker
On 26/07/2010 16:47, Burton Samograd wrote: Grant Edwardsinva...@invalid.invalid writes: On 2010-07-24, Lawrence D'Oliveirol...@geek-central.gen.new_zealand wrote: In messagemailman.323.1278440923.1673.python-l...@python.org, Robert Kern wrote: There are also utilities for mounting ISOs

Re: Builtn super() function. How to use it with multiple inheritance? And why should I use it at all?

2010-07-26 Thread Ethan Furman
Gregory Ewing wrote: Raymond Hettinger wrote: Every class in the MRO implementing the target method *must* call super() to give the next class in the MRO a chance to run. EXCEPT for the last one, which must NOT call super! The posted example happens to work because object has a default

Re: hasattr + __getattr__: I think this is Python bug

2010-07-26 Thread Ethan Furman
Bruno Desthuilliers wrote: Duncan Booth a écrit : Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote: If you don't want to create as many Whatever instances as MyClass instances, you can create a single Whatever instance before defining your class: DEFAULT_WHATEVER =

What does the output of return os.lstat(logFile)[ST_CTIME] mean?

2010-07-26 Thread alberttresens
Hi, I am trying to get the creation time of a file to be able to correlate it's content timestamps with other log files. In order to get the creation time of the file one a Linux machine i used: return os.lstat(logFile)[ST_CTIME] That returns to me something like: 1279620166 I would like to

Re: Compare two nested dictionaries

2010-07-26 Thread John Nagle
On 7/25/2010 8:03 AM, targetsmart wrote: Hi, I am trying to compare two nested dictionaries, I want to know what is the exact difference between them. d1 = {'a' : 1, 'b' : 2, 'c': 3 } d2 = {'a' : 1, 'b' : 3, 'd': 4 } diff = dict(set(d1.items()) - set(d2.items())) print (diff) {'c': 3,

Re: What does the output of return os.lstat(logFile)[ST_CTIME] mean?

2010-07-26 Thread Steven D'Aprano
On Mon, 26 Jul 2010 09:54:23 -0700, alberttresens wrote: Hi, I am trying to get the creation time of a file to be able to correlate it's content timestamps with other log files. In order to get the creation time of the file one a Linux machine i used: You're out of luck. Neither Unix nor

Re: What does the output of return os.lstat(logFile)[ST_CTIME] mean?

2010-07-26 Thread alberttresens
Hi, thanks for the reply. But what i am more concerned about, as I am trying to correlate logs, is what is the timestamp: 1279620166 mean? Is it seconds since the epoch or the ISO time in seconds? Any idea? Thanks a lot!! Steven D'Aprano-7 wrote: On Mon, 26 Jul 2010 09:54:23 -0700,

Re: Multiple versions of Python coexisting in the same OS

2010-07-26 Thread Thomas Jollans
On 07/26/2010 06:36 AM, Edward Diener wrote: On 7/25/2010 10:42 PM, David Robinow wrote: On Sun, Jul 25, 2010 at 8:40 PM, Edward Diener eldie...@tropicsoft.invalid wrote: On 7/25/2010 5:57 PM, Thomas Jollans wrote: So if a standard library module ( or distributed library ) executes a call

Re: What does the output of return os.lstat(logFile)[ST_CTIME] mean?

2010-07-26 Thread Thomas Jollans
On 07/26/2010 07:24 PM, alberttresens wrote: Hi, thanks for the reply. Alas, you didn't actually read it: But what i am more concerned about, as I am trying to correlate logs, is what is the timestamp: 1279620166 mean? Is it seconds since the epoch or the ISO time in seconds? Any

distutils question - building universal modules on OS X?

2010-07-26 Thread Louis Theran
Is there a standard recipe for getting distutils to built universal .so files for modules that have C/C++ source? -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils question - building universal modules on OS X?

2010-07-26 Thread Robert Kern
On 7/26/10 1:36 PM, Louis Theran wrote: Is there a standard recipe for getting distutils to built universal .so files for modules that have C/C++ source? If your Python was built to be Universal, it will automatically use the same architecture flags to build the extension modules Universal.

Binary compatibility across Python versions?

2010-07-26 Thread Philip Semanchuk
Hi all, Does Python guarantee binary compatibility across major, minor and/or micro versions? I looked through the docs and even with Google's help I wasn't able to find any official statements on this subject. Specifically, I'm concerned with binaries created by SWIG for a C++ library

Re: Binary compatibility across Python versions?

2010-07-26 Thread MRAB
Philip Semanchuk wrote: Hi all, Does Python guarantee binary compatibility across major, minor and/or micro versions? I looked through the docs and even with Google's help I wasn't able to find any official statements on this subject. Specifically, I'm concerned with binaries created by

Re: Binary compatibility across Python versions?

2010-07-26 Thread Christian Heimes
Specifically, I'm concerned with binaries created by SWIG for a C++ library that our project uses. We'd like to ship precompiled binaries for Linux, OS X and Windows for Python 2.5 and 2.6. I'm hoping that it is sufficient to create binaries for each Python for each platform (3 * 2 ==

Re: Binary compatibility across Python versions?

2010-07-26 Thread Robert Kern
On 7/26/10 2:40 PM, MRAB wrote: Philip Semanchuk wrote: Hi all, Does Python guarantee binary compatibility across major, minor and/or micro versions? I looked through the docs and even with Google's help I wasn't able to find any official statements on this subject. Specifically, I'm

Re: Accumulate function in python

2010-07-26 Thread dhruvbird
On Jul 21, 8:17 pm, John Nagle na...@animats.com wrote: On 7/19/2010 9:56 AM, dhruvbird wrote: On Jul 19, 9:12 pm, Brian Victorhomeusen...@brianhv.org  wrote: dhruvbird wrote: Having offered this, I don't recall ever seeing reduce used in real python code, and explicit iteration is

Re: Binary compatibility across Python versions?

2010-07-26 Thread Ned Deily
In article i2kok1$kr...@dough.gmane.org, Christian Heimes li...@cheimes.de wrote: [Philip Semanchuk wrote:] Specifically, I'm concerned with binaries created by SWIG for a C++ library that our project uses. We'd like to ship precompiled binaries for Linux, OS X and Windows for Python

python terminology on classes

2010-07-26 Thread Peng Yu
Hi I'm still kind of confused about the terminology on classes in python. Could you please let me know what the equivalent terms for the following C++ terms? constructor destructor member function member variable virtual member function function I think that C++ function is equivalent to

Updating path.py

2010-07-26 Thread Michael Hoffman
I have been using Jason Orendorff's path.py module for a long time. It is very useful. The only problem is that Python 2.6 deprecates the md5 module it imports, so I (and others using my software) now get this warning whenever they start, which is a little annoying.

python styles: why Use spaces around arithmetic operators?

2010-07-26 Thread Peng Yu
This webpage http://www.python.org/dev/peps/pep-0008/ recommends the following. It looks to me that both styles are fine. Could anybody let me know what the rationale is behind this recommendation? - Use spaces around arithmetic operators: Yes: i = i + 1 submitted

Re: Updating path.py

2010-07-26 Thread Robert Kern
On 7/26/10 5:16 PM, Michael Hoffman wrote: I have been using Jason Orendorff's path.py module for a long time. It is very useful. The only problem is that Python 2.6 deprecates the md5 module it imports, so I (and others using my software) now get this warning whenever they start, which is a

Re: python styles: why Use spaces around arithmetic operators?

2010-07-26 Thread Thomas Jollans
On 07/27/2010 12:20 AM, Peng Yu wrote: This webpage http://www.python.org/dev/peps/pep-0008/ recommends the following. It looks to me that both styles are fine. Could anybody let me know what the rationale is behind this recommendation? Beauty is in the eye of the beholder, even when we call

Re: python styles: why Use spaces around arithmetic operators?

2010-07-26 Thread rantingrick
On Jul 26, 5:20 pm, Peng Yu pengyu...@gmail.com wrote: This webpagehttp://www.python.org/dev/peps/pep-0008/recommends the following. It looks to me that both styles are fine. Could anybody let me know what the rationale is behind this recommendation? The rational is simple. Guido is God and if

Re: python terminology on classes

2010-07-26 Thread Thomas Jollans
On 07/26/2010 11:52 PM, Peng Yu wrote: Hi I'm still kind of confused about the terminology on classes in python. Could you please let me know what the equivalent terms for the following C++ terms? constructor constructor. This consists of the class constructor method, __new__, and of

Re: python styles: why Use spaces around arithmetic operators?

2010-07-26 Thread Martin P. Hellwig
On 07/27/10 00:06, rantingrick wrote: On Jul 26, 5:20 pm, Peng Yupengyu...@gmail.com wrote: This webpagehttp://www.python.org/dev/peps/pep-0008/recommends the following. It looks to me that both styles are fine. Could anybody let me know what the rationale is behind this recommendation? The

Re: Why are String Formatted Queries Considered So Magical?

2010-07-26 Thread Justin Smith
Seeking industry expert candidates I’m Justin Smith, Director of Tech Recruiting at Express Seattle. I am currently seeking candidates to fill Tech Positions for multiple A- List Clients: • Quality Assurance Engineer, • Senior Data Engineer, Search Experience • Senior Software

Re: python styles: why Use spaces around arithmetic operators?

2010-07-26 Thread rantingrick
Martin wrote: Wat is er mis met klompen? Well specifically their made from wood and wood is a very hard substance. Also i did not go into detail but he makes sure to pick shoes that are three sizes too small. You know a good podiatrist can be tough to come by in these times. It's a pretty

Re: python terminology on classes

2010-07-26 Thread Rhodri James
On Mon, 26 Jul 2010 22:52:06 +0100, Peng Yu pengyu...@gmail.com wrote: Hi I'm still kind of confused about the terminology on classes in python. Could you please let me know what the equivalent terms for the following C++ terms? Seriously, we can't keep doing your thinking for you. The

Re: python terminology on classes

2010-07-26 Thread Tim Chase
On 07/26/10 18:15, Thomas Jollans wrote: destructor http://docs.python.org/py3k/reference/datamodel.html#object.__del__ One small caveat -- IIRC, in Java/C++ the destructor is guaranteed to be called with a certain amount of context. I find Python's __del__ almost useless since things it

Re: python styles: why Use spaces around arithmetic operators?

2010-07-26 Thread Steven D'Aprano
On Mon, 26 Jul 2010 17:20:09 -0500, Peng Yu wrote: This webpage http://www.python.org/dev/peps/pep-0008/ recommends the following. It looks to me that both styles are fine. Could anybody let me know what the rationale is behind this recommendation? - Use spaces around arithmetic

How to capture all the environment variables from shell?

2010-07-26 Thread Peng Yu
Hi, R_HOME is set in my shell (bash). But os.environ doesn't have it. I'm not sure what it does when os module is imported. But it seems that os.environ doesn't capture all the environment variable from the shell. Could anybody let me know what is the correct way to inherent all the environment

Re: How to capture all the environment variables from shell?

2010-07-26 Thread Chris Rebert
On Mon, Jul 26, 2010 at 4:36 PM, Peng Yu pengyu...@gmail.com wrote: Hi, R_HOME is set in my shell (bash). But os.environ doesn't have it. I'm not sure what it does when os module is imported. But it seems that os.environ doesn't capture all the environment variable from the shell. Could

Re: How to capture all the environment variables from shell?

2010-07-26 Thread Rhodri James
On Tue, 27 Jul 2010 00:36:12 +0100, Peng Yu pengyu...@gmail.com wrote: R_HOME is set in my shell (bash). But os.environ doesn't have it. I'm not sure what it does when os module is imported. But it seems that os.environ doesn't capture all the environment variable from the shell. Could anybody

Re: python terminology on classes

2010-07-26 Thread Steven D'Aprano
On Mon, 26 Jul 2010 16:52:06 -0500, Peng Yu wrote: Could you please let me know what the equivalent terms for the following C++ terms? constructor destructor member function member variable virtual member function function (1) Python new-style classes have a constructor __new__ and an

Re: How to capture all the environment variables from shell?

2010-07-26 Thread Cameron Simpson
On 26Jul2010 18:36, Peng Yu pengyu...@gmail.com wrote: | R_HOME is set in my shell (bash). But os.environ doesn't have it. I'm | not sure what it does when os module is imported. But it seems that | os.environ doesn't capture all the environment variable from the | shell. Could anybody let me know

Re: python terminology on classes

2010-07-26 Thread Steven D'Aprano
On Tue, 27 Jul 2010 01:15:08 +0200, Thomas Jollans wrote: http://docs.python.org/py3k/reference/datamodel.html should answer all your questions. It should, but as far as I can tell it doesn't. If it defines attribute or method, I can't find it. -- Steven --

Re: Builtn super() function. How to use it with multiple inheritance? And why should I use it at all?

2010-07-26 Thread Raymond Hettinger
[Ethan Furman] Speaking of new-style classes only, don't they all end in object?  And if the MRO is only known at run-time, how is one to know at code-time whether your (new-style) class is at the end of the line? That is a bit of a PITA. One way of handling it is to design your diamond so

Re: python styles: why Use spaces around arithmetic operators?

2010-07-26 Thread geremy condra
On Mon, Jul 26, 2010 at 4:31 PM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Mon, 26 Jul 2010 17:20:09 -0500, Peng Yu wrote: This webpage http://www.python.org/dev/peps/pep-0008/ recommends the following. It looks to me that both styles are fine. Could anybody let me know

Re: How to capture all the environment variables from shell?

2010-07-26 Thread Steven W. Orr
On 07/26/10 20:02, quoth Chris Rebert: On Mon, Jul 26, 2010 at 4:36 PM, Peng Yu pengyu...@gmail.com wrote: You need to export R_HOME in bash (probably in your .bashrc or .bash_profile). See http://www.ibm.com/developerworks/library/l-bash.html#N10074 Please! Never export anything from your

Re: python styles: why Use spaces around arithmetic operators?

2010-07-26 Thread Stephen Hansen
On 7/26/10 3:20 PM, Peng Yu wrote: This webpage http://www.python.org/dev/peps/pep-0008/ recommends the following. It looks to me that both styles are fine. Could anybody let me know what the rationale is behind this recommendation? PEP8 is a style guide. Parts of style guides are rational

Python 2.7 for Windows: Same version of MS VC runtime as Python 2.6?

2010-07-26 Thread python
Python 2.7 for Windows: Does Python 2.7 for Windows use the same version of the MS VC runtime as Python 2.6? Thank you, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: How to capture all the environment variables from shell?

2010-07-26 Thread Tim Chase
On 07/26/10 21:26, Steven W. Orr wrote: Please! Never export anything from your .bashrc unless you really know what you're doing. Almost all exports should be done in your .bash_profile Could you elaborate on your reasoning why (or why-not)? I've found that my .bash_profile doesn't get

Re: How to capture all the environment variables from shell?

2010-07-26 Thread Steven D'Aprano
On Mon, 26 Jul 2010 22:26:27 -0400, Steven W. Orr wrote: Please! Never export anything from your .bashrc unless you really know what you're doing. Almost all exports should be done in your .bash_profile Would you like to explain why, or should we just trust you? -- Steven --

Re: Why are String Formatted Queries Considered So Magical?

2010-07-26 Thread Ben Finney
Justin Smith justin2009sm...@gmail.com writes: Seeking industry expert candidates Please don't reply in an existing thread with an unrelated message. If you want to start a new discussion, compose a new message, not a reply. For job advertisements, please don't use this forum at all; instead

Personal archive tool, looking for suggestions on improving the code

2010-07-26 Thread mo reina
0 down vote favorite i've written a tool in python where you enter a title, content, then tags, and the entry is then saved in a pickle file. it was mainly designed for copy-paste functionality (you spot a piece of code you like on the net, copy it, and paste it into the program), not really

Re: why is this group being spammed?

2010-07-26 Thread Mithrandir
On 07/18/2010 03:58 PM, Edward A. Falk wrote: In article334170d5-a336-4506-bda1-279b40908...@k1g2000prl.googlegroups.com, be.krulbe.k...@gmail.com wrote: why is this group being spammed? They're *all* being spammed. Why? Because they can, and because Google doesn't care. Not only does

[issue7567] Messed up terminal after calling curses.initscr() twice.

2010-07-26 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: shouldn't `initialised_setupterm' be tested instead? -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7567 ___

[issue9381] syntax error in Unicode C API docs

2010-07-26 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r83160. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9381

[issue9259] Python 2.7 breaks assigned __exit__s

2010-07-26 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9259 ___ ___ Python-bugs-list

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-07-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +ezio.melotti, haypo, lemburg, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9377 ___

[issue9382] os.popen referenced but not documented in Python 3.x

2010-07-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: (D) in python 3, os.popen has been reimplemented using subprocess.Popen. So the other mentions of os.popen should probably be replaced with mentions of subprocess.Popen. Your (C) is close...the continued existence of os.popen in Python3

[issue9167] argv double encoding on OSX

2010-07-26 Thread Daniele Varrazzo
Daniele Varrazzo p...@develer.com added the comment: Ronald, Thank you for the interest. For me trying to deal with such a tricky issue on a system whose Best Before date is already passed would be a waste of time. I was only interested in factor out the bugs in my extension module from the

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2010-07-26 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Thomas: could you provide a unit test to go with your patch. -- nosy: +BreamoreBoy stage: - unit test needed versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue1813] Codec lookup failing under turkish locale

2010-07-26 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Does anyone know if this was discussed on python-dev? I've tried searching the archives and didn't find anything, but that's not to say it isn't there. -- nosy: +BreamoreBoy ___ Python

[issue7637] Improve 19.5. xml.dom.minidom doc

2010-07-26 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Thanks for the catch; it was intended to be ', avoiding ...'. Fixed in rev83162, along with the sentence simplification you suggest. -- ___ Python tracker rep...@bugs.python.org

[issue1886] Permit to easily use distutils --formats=tar, gztar, bztar on all systems

2010-07-26 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- assignee: akuchling - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1886 ___ ___ Python-bugs-list

[issue3075] make minidom.toxml() encoding argument useful

2010-07-26 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: This is how toprettyxml looks in 3.1/2 which seems to meet the OP's need, I'll close in a few days time unless someone objects. def toprettyxml(self, indent=\t, newl=\n, encoding=None): # indent = the indentation string to prepend,

[issue1767933] Badly formed XML using etree and utf-16

2010-07-26 Thread Richard Urwin
Richard Urwin soron...@googlemail.com added the comment: I can't produce an automated test, for want of time, but here is a demonstrator. Grab the example XHTML from http://docs.python.org/library/xml.etree.elementtree.html#elementtree-objects or use some tiny ASCII-encoded xml file. Save it

[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-07-26 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Oh, I'm sorry, I forgot about that case. I agree with Arfrever, we should suppress the OSError only if the target file exists as a directory, but not other types. That is, the exist_ok argument in makedirs() should mean dir existing is ok, only

[issue9376] Refer to gnuwin32 diff util on development FAQ

2010-07-26 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: There is diff.py utility that is already available from standard Python distribution. -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9376

[issue1767933] Badly formed XML using etree and utf-16

2010-07-26 Thread Richard Urwin
Richard Urwin soron...@googlemail.com added the comment: Execute bug-test.xml I meant bug-test.py, of course -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1767933 ___

[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-07-26 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Alternatively you could call os.chmod. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___

[issue4686] Exceptions in ConfigParser don't set .args

2010-07-26 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Patch doesn't apply cleanly to 3.1 or earlier. As it is *arguably* a new feature rather than a bugfix I'm closing the issue. I certainly wouldn't argue against someone else backporting though... -- stage: commit review -

[issue1682942] ConfigParser support for alt delimiters

2010-07-26 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: This would change the format of config files that configparser supports. Should there be some discussion of this on python-dev first? The patch for the docs is against the latex docs, so definitely needs updating. -- nosy:

[issue4510] ValueError for list.remove() not very helpful

2010-07-26 Thread Tim Lesher
Tim Lesher tles...@gmail.com added the comment: Ugh. That's a reasonable objection. What's the best thing to do in this case, generally speaking? list.index() does print the full repr on a value error; and a quick grep shows a number of other similar uses, although those don't seem to be as

[issue5412] extend configparser to support [] syntax

2010-07-26 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: There are no docs or tests in the patch. I like the functionality though and doubt it will be controversial. The current api is a bit arcane. So +1 from me. -- nosy: +michael.foord ___

[issue6517] configparser: add possibility to escape formatstrings

2010-07-26 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: This should just be applied. I'll do it shortly unless there is an objection. -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6517

[issue9362] Make exit/quit hint more novice friendly

2010-07-26 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: On Fri, Jul 23, 2010 at 10:24 PM, Alexander Belopolsky rep...@bugs.python.org wrote: I suggest changing Use exit() or Ctrl-D (i.e. EOF) to exit  to Type exit() or quit() and press the Enter key to exit Type exit() or press Ctrl-D

[issue9362] Make exit/quit hint more novice friendly

2010-07-26 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: +1 to improving the message and improving the help message too. -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9362

[issue6517] configparser: add possibility to escape formatstrings

2010-07-26 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: It is (very) unfortunate that configparser.ConfigParser should *not* be used and that configparser.SafeConfigParser is the correct class instead. I would be *in favour* of deprecating ConfigParser and eventually renaming

[issue9376] Refer to gnuwin32 diff util on development FAQ

2010-07-26 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I don't think we should have a list of three alternatives to the single way you really should be creating diffs. If you are working on Python you should have Subversion and run svn diff, or have Mercurual and run hg diff. I guess I'm -0 on this

[issue9376] Refer to gnuwin32 diff util on development FAQ

2010-07-26 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: The better way would be python -m easy_install review python -m review -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9376 ___

[issue9376] Refer to gnuwin32 diff util on development FAQ

2010-07-26 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Until Rietveld has a defined place in our workflow, I don't think that's a good idea. I think that will be a part of the process in the future, but we're not defining that here. -- ___ Python tracker

[issue9362] Make exit/quit hint more novice friendly

2010-07-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jul 26, 2010 at 9:48 AM, anatoly techtonik rep...@bugs.python.org wrote: .. Type exit() or press Ctrl-D to exit. Anatoly, I think you missed the point of the story that I posted. The young user, who was not

[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2010-07-26 Thread Dirk Jülich
Dirk Jülich mucisl...@web.de added the comment: Applies also to Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32. -- nosy: +mucisland versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue9362] Make exit/quit hint more novice friendly

2010-07-26 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: 1) I'm with Michael on this one. 2) Python is not responsible for dotting every i and crossing every t for a computer novice. What would the novice make of my HP keyboard which doesn't have keys marked RETURN or BS, they both have

[issue6517] configparser: add possibility to escape formatstrings

2010-07-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You are right, IMO, at least the current doc patch should be applied. Please go ahead, if you want to, I won't have time to get to it for a couple of days. Maybe you could come up with a new title for this issue that reflects the

[issue9376] Refer to gnuwin32 diff util on development FAQ

2010-07-26 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I believe that the switch to mercurial is months if not years away, so I'd quite happily see just a reference to svn diff. Failing that I wouldn't loose any sleep over closing this, ok to leave it with you Brian? --

[issue9383] PIL Bug with split

2010-07-26 Thread Arrnaud Fabre
New submission from Arrnaud Fabre arnaud...@gmail.com: import Image im = Image.open('whatever') im.split() Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.6/dist-packages/PIL/Image.py, line 1497, in split if self.im.bands == 1: AttributeError:

[issue1767933] Badly formed XML using etree and utf-16

2010-07-26 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Florent: is this something you could pick up, I think it's out of my league. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1767933

[issue9376] Refer to gnuwin32 diff util on development FAQ

2010-07-26 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Brian Curtin cur...@acm.org added the comment: Until Rietveld has a defined place in our workflow, I don't think that's a good idea. 1. AFAIK Python don't have any workflow. Do you speak about your own workflow? 2. What conditions

  1   2   >