Re: Python deadlock using subprocess.popen and communicate

2011-09-23 Thread Nobody
On Thu, 22 Sep 2011 11:19:28 -0700, Atherun wrote: I suggest obtaining a copy of Process Explorer, and using it to investigate the state of both processes (but especially the child) at the point that the deadlock seems to occur. In the one case I can easily reproduce, its in a p4.exe call

Re: Python deadlock using subprocess.popen and communicate

2011-09-23 Thread Chris Angelico
On Fri, Sep 23, 2011 at 3:59 PM, Nobody nob...@nowhere.com wrote: It doesn't even You intrigue me, sir. Does it odd? What is the remainder of this aborted sentence? ChrisA -- http://mail.python.org/mailman/listinfo/python-list

TestFixtures 2.0.0 Released!

2011-09-23 Thread Chris Withers
Hi All, I'm happy to announce a new release major release of TestFixtures. This release is 99% backwards compatible, but a lot has changed under the hood and there's some major new functionality, so thought it was time for a bump. The big changes are: - compare now uses a registry of

Re: Python 2.5 zlib trouble

2011-09-23 Thread Steven D'Aprano
Jesramz wrote: Hello, I am trying to deploy an app on google app engine using bottle, a micro-framework, similar to flask. [...] ImportError: No module named zlib What happens if you explicitly launch Python2.5 and then try to import zlib? -- Steven --

extending class

2011-09-23 Thread Andrea Crotti
I wanted to add a couple of parameters to a class from a given library (paste-script), but without changing the original code. So I thought, I create a wrapper class which adds what I need, and then dispatch all the calls to the super class. My following attempt gives, however, a recursion

Re: Python Mixins

2011-09-23 Thread Duncan Booth
Matt mattj.morri...@gmail.com wrote: I'm curious about what people's opinions are about using mixins in Python. I really like, for example, the way that class based views were implemented in Django 1.3 using mixins. It makes everything extremely customizable and reusable. I think this is a

Re: extending class

2011-09-23 Thread Peter Otten
Andrea Crotti wrote: I wanted to add a couple of parameters to a class from a given library (paste-script), but without changing the original code. So I thought, I create a wrapper class which adds what I need, and then dispatch all the calls to the super class. My following attempt gives,

Re: extending class

2011-09-23 Thread Andrea Crotti
On 09/23/2011 10:31 AM, Peter Otten wrote: Inside __getattribute__() you ask for self.first_var which triggers another __getattribute__() call that once again trys to determine the first_var attribute before it returns... Try using __getattr__() instead which is only triggered for non-existent

Re: PyEval_EvalCodeEx return value

2011-09-23 Thread Mateusz Loskot
On 23/09/11 00:47, Mark Hammond wrote: On 20/09/2011 8:34 PM, Mateusz Loskot wrote: I'm trying to dig out details about what exactly is the return value the of PyEval_EvalCodeEx function in Python 3.x The documentation is sparse, unfortunately. Perhaps I'm looking at wrong function. My aim is

cProfile and name spaces.

2011-09-23 Thread Gelonida N
Hi I have following piece of code in file f1.py # f1.py starts here ### def f(): pass def main(): import profile profile.run('f()') if __name__ == '__main__': main() # -- end of f1.py executing f1.py works as expected. Now I have a file f2.py # f2.py

Develop inter-dependent eggs

2011-09-23 Thread Andrea Crotti
Develop inter-dependent eggs: On a Linux machine I have many eggs to develop, for example - egg1 - egg2 ... Now the eggs depend from each other, so running python setup.py develop in order, doesn't work, because if the dependency required is not already installed then easy_install tries to

Need help with file encoding-decoding

2011-09-23 Thread Yaşar Arabacı
Hi, I'am trying to write a mass html downloader, and it processes files after it downloaded them. I have problems with encodings, and decodings. Sometimes I get UnicodeDecodeErrors, or I get half-pages in after processing part. Or more generally, some things don't feel right. Can you check my

Re: [TIP] TestFixtures 2.0.0 Released!

2011-09-23 Thread Chris Withers
On 23/09/2011 08:46, Chris Withers wrote: I'm happy to announce a new release major release of TestFixtures. This release is 99% backwards compatible, but a lot has changed under the hood and there's some major new functionality, so thought it was time for a bump. Of course, a 2.0.0 release

Re: python install on locked down windows box?

2011-09-23 Thread python
Hi Matt, Enjoyed your list options :) I'm a consultant and have to do what your subject line asks at most clients I work at. Here's the technique I recommend: Install Python for the ***current user*** on another workstation with the appropriate priviledges. Then xcopy this Python folder to a

Re: Need help with file encoding-decoding

2011-09-23 Thread Philip Semanchuk
On Sep 23, 2011, at 7:44 AM, Yaşar Arabacı wrote: Hi, I'am trying to write a mass html downloader, and it processes files after it downloaded them. I have problems with encodings, and decodings. Sometimes I get UnicodeDecodeErrors, or I get half-pages in after processing part. Or more

Re: extending class

2011-09-23 Thread Jean-Michel Pichavant
Andrea Crotti wrote: On 09/23/2011 10:31 AM, Peter Otten wrote: Inside __getattribute__() you ask for self.first_var which triggers another __getattribute__() call that once again trys to determine the first_var attribute before it returns... Try using __getattr__() instead which is only

Re: Odd behavior with imp.reload and logging

2011-09-23 Thread Andrew Berg
On 2011.09.22 03:12 AM, Chris Angelico wrote: In theory, this should mean that you load it fresh every time - I think. If not, manually deleting entries from sys.modules might help, either with or without the list of modules. I've played around with sys.modules, and it seems there are issues

Re: extending class

2011-09-23 Thread Andrea Crotti
Jean-Michel Pichavant jeanmic...@sequans.com writes: Did you consider subclassing your Var class ? This is how you extend a class behavior in OOP. class PSIVar(var): def __init__(self, name, desc, other=None, fun=None): var.__init__(self, name, desc) if other is not None:

Could anybody tell me how to make a version of Nokia Symbian os

2011-09-23 Thread gmszone
I like the Python in my mobile phone.But a don't have the enough money to buy a new phone.And my mobile type is Nokia N72 which is a part of S60v2.And I could program in some boring classes.But the version of my mobile's python is to old.So I hope I coule learn how to compile it for my N72.My

Re: extending class

2011-09-23 Thread Steven D'Aprano
Andrea Crotti wrote: I wanted to add a couple of parameters to a class from a given library (paste-script), but without changing the original code. So I thought, I create a wrapper class which adds what I need, and then dispatch all the calls to the super class. You don't need to use a

pyWin build 216

2011-09-23 Thread python
I have used pyWin for several years now with out issue. I recently installed build 216 for python 2.7 on windows XP pro. The program crashes every time I exit a wxPython program and has crashed a few other times. I does not seem that pyWin has been updated since February of this year. Is

Re: pyWin build 216

2011-09-23 Thread Brian Curtin
On Fri, Sep 23, 2011 at 09:25, python w.g.sned...@gmail.com wrote: I have used pyWin for several years now with out issue.   I recently installed build 216 for python 2.7 on windows XP pro.   The program crashes every time I exit a wxPython program and has crashed a few other times.  I does

Re: Python deadlock using subprocess.popen and communicate

2011-09-23 Thread Atherun
On Sep 23, 12:08 am, Chris Angelico ros...@gmail.com wrote: On Fri, Sep 23, 2011 at 3:59 PM, Nobody nob...@nowhere.com wrote: It doesn't even You intrigue me, sir. Does it odd? What is the remainder of this aborted sentence? ChrisA That is odd, I also find it odd that it deadlocks the

Re: Python 2.5 zlib trouble

2011-09-23 Thread Jesramz
Python 2.5.6 (r256:88840, Sep 22 2011, 13:45:58) [GCC 4.5.2] on linux2 Type help, copyright, credits or license for more information. import zlib Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named zlib But if I run Python2.7 I get: Python 2.7.1+

Re: python install on locked down windows box?

2011-09-23 Thread Chris Withers
Hi Steve On 22/09/2011 13:58, Steven D'Aprano wrote: (7) If all else fails, as an absolute last resort, simply run the Windows installer as a regular, unprivileged user, after selecting the option for a Non-Admin Install under Advanced Options first. Thanks for this, will send on to my friend

Re: Python deadlock using subprocess.popen and communicate

2011-09-23 Thread Atherun
On Sep 23, 7:58 am, Atherun athe...@gmail.com wrote: On Sep 23, 12:08 am, Chris Angelico ros...@gmail.com wrote: On Fri, Sep 23, 2011 at 3:59 PM, Nobody nob...@nowhere.com wrote: It doesn't even You intrigue me, sir. Does it odd? What is the remainder of this aborted sentence?

Re: ANN: Urwid 1.0.0 - Console UI Library

2011-09-23 Thread Michael P. Soulier
On 22/09/11 Ian Ward said: Announcing Urwid 1.0.0 -- Congrats. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python deadlock using subprocess.popen and communicate

2011-09-23 Thread Nobody
On Fri, 23 Sep 2011 06:59:12 +0100, Nobody wrote: kernel32.dll!WaitForSingleObject+0x12 python26.dll!_Py_svnversion+0xcf8 I haven't a clue how this happens. _Py_svnversion just returns a string: In retrospect, I think that's a red herring. 0xcf8 seems like too large an offset for such a

Re: Python deadlock using subprocess.popen and communicate

2011-09-23 Thread Atherun
On Sep 23, 10:47 am, Nobody nob...@nowhere.com wrote: On Fri, 23 Sep 2011 06:59:12 +0100, Nobody wrote: kernel32.dll!WaitForSingleObject+0x12 python26.dll!_Py_svnversion+0xcf8 I haven't a clue how this happens. _Py_svnversion just returns a string: In retrospect, I think that's a red

Re: comments on runpy module

2011-09-23 Thread Alexey Luchko
Example script.py: def f(arg): return g(arg) def g(arg): return arg Reading the Lib/runpy.py I've found, that the temporary module created inside the run_path() calls, is destroyed right after the script.py code executed in the resulting namespace. I've got an idea. It would be

comments on runpy module

2011-09-23 Thread Alexey Luchko
Hi! I've just had fun with the runpy module in Python 2.7. I'm writing to share it :) What I've tried is to load a python script using runpy.run_path(), take a function from the resulting namespace and call it with arbitrary arguments. All the functions in the namespace seem to be ok.

strange behavior from recursive generator

2011-09-23 Thread Dr. Phillip M. Feldman
A few weeks ago, I wrote a class that creates an iterator for solving the general unlabeled-balls-in-labeled boxes occupancy problem. Chris Rebert converted my code to a generator, which made the code cleaner, and I subsequently simplified it somewhat further. My problem is the following: All of

Re: strange behavior from recursive generator

2011-09-23 Thread Arnaud Delobelle
On 23 September 2011 21:09, Dr. Phillip M. Feldman phillip.m.feld...@gmail.com wrote: A few weeks ago, I wrote a class that creates an iterator for solving the general unlabeled-balls-in-labeled boxes occupancy problem. Chris Rebert converted my code to a generator, which made the code

Re: Python 2.5 zlib trouble

2011-09-23 Thread Christian Heimes
Am 23.09.2011 17:41, schrieb Jesramz: Python 2.5.6 (r256:88840, Sep 22 2011, 13:45:58) [GCC 4.5.2] on linux2 Type help, copyright, credits or license for more information. import zlib Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named zlib Are

Re: Python 2.5 zlib trouble

2011-09-23 Thread Jesramz
Thank You Christian Im running on Ubuntu Natty and I am not running a self-compiled install, its a regular release. In order to do this: $ make distclean $ export LDFLAGS=-L/usr/lib/$(dpkg-architecture - qDEB_HOST_MULTIARCH) $ ./configure $ make $ make install $ unset LDFLAGS

Re: strange behavior from recursive generator

2011-09-23 Thread Phillip Feldman
I don't know how many times I stared at that code without seeing the error. Thanks so much! Phillip On Fri, Sep 23, 2011 at 1:26 PM, Arnaud Delobelle arno...@gmail.com wrote: On 23 September 2011 21:09, Dr. Phillip M. Feldman phillip.m.feld...@gmail.com wrote: A few weeks ago, I wrote a

Re: Context manager with class methods

2011-09-23 Thread Gregory Ewing
Terry Reedy wrote: it is normal to look for special methods on the class (and superclasses) of an object rather than starting with the object itself. I suspect there was a deliberate change to correct an anomaly, though this might have been done as part of some other change. It's a

Re: Python 2.5 zlib trouble

2011-09-23 Thread Alec Taylor
No idea, as I said before, if you ask for it they might put in the alpha. On Sat, Sep 24, 2011 at 8:30 AM, Jesse Ramirez jesus.ramirez.ute...@gmail.com wrote: Thanks Alec, might you know when the 2.7 support might come? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 zlib trouble

2011-09-23 Thread Jesramz
Thank You Christian Im running on Ubuntu Natty and I am not running a self-compiled install, its a regular release. In order to do this: $ make distclean $ export LDFLAGS=-L/usr/lib/$(dpkg-architecture - qDEB_HOST_MULTIARCH) $ ./configure $ make $ make install $ unset LDFLAGS If

can't load an script from html...

2011-09-23 Thread Ricardo
Hi everyone I'm trying to use the cgi library to create a python script and loading it from a web page. I have already done the necessary imports, and the default commands to receive data from html are written too. The final version is something like this: #!/usr/bin/python import subprocess

Re: can't load an script from html...

2011-09-23 Thread MRAB
On 24/09/2011 02:42, Ricardo wrote: Hi everyone I'm trying to use the cgi library to create a python script and loading it from a web page. I have already done the necessary imports, and the default commands to receive data from html are written too. The final version is something like this:

Re: Python deadlock using subprocess.popen and communicate

2011-09-23 Thread Matt Joiner
how do you get the call stacks like this? On Sat, Sep 24, 2011 at 3:59 AM, Atherun athe...@gmail.com wrote: On Sep 23, 10:47 am, Nobody nob...@nowhere.com wrote: On Fri, 23 Sep 2011 06:59:12 +0100, Nobody wrote: kernel32.dll!WaitForSingleObject+0x12 python26.dll!_Py_svnversion+0xcf8 I

Why is the shutil module called shutil?

2011-09-23 Thread Fletcher Johnson
The topic says it all: Why is shutil named shutil? What does it stand for? This is just a mild curiosity of mine. The shutil module for reference: http://docs.python.org/library/shutil.html#module-shutil -- http://mail.python.org/mailman/listinfo/python-list

Re: pyWin build 216

2011-09-23 Thread Mark Hammond
On 24/09/2011 12:25 AM, python wrote: I have used pyWin for several years now with out issue. I recently installed build 216 for python 2.7 on windows XP pro. The program crashes every time I exit a wxPython program and has crashed a few other times. There are a number of issues using

Re: Why is the shutil module called shutil?

2011-09-23 Thread Chris Rebert
On Fri, Sep 23, 2011 at 8:36 PM, Fletcher Johnson flt.john...@gmail.com wrote: The topic says it all: Why is shutil named shutil? What does it stand for? This is just a mild curiosity of mine. sh is short for shell, in line with Unix convention, where the default shell is located at /bin/sh.

Re: Why is the shutil module called shutil?

2011-09-23 Thread Fletcher Johnson
On Sep 23, 11:58 pm, Chris Rebert c...@rebertia.com wrote: On Fri, Sep 23, 2011 at 8:36 PM, Fletcher Johnson flt.john...@gmail.com wrote: The topic says it all: Why is shutil named shutil? What does it stand for? This is just a mild curiosity of mine. sh is short for shell, in line with

[issue13031] [PATCH] small speed-up for tarfile.py when unzipping tarballs

2011-09-23 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- assignee: - lars.gustaebel nosy: +lars.gustaebel priority: normal - low versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13031

[issue13032] h2py.py can fail with UnicodeDecodeError

2011-09-23 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Tools/scripts/h2py.py fails with UnicodeDecodeError when a header file contains characters undecodable in current locale. I suggest to use binary mode. I'm attaching a patch. -- components: Demos and

[issue13032] h2py.py can fail with UnicodeDecodeError

2011-09-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13032 ___

[issue13033] recursive chown for shutils

2011-09-23 Thread Low Kian Seong
New submission from Low Kian Seong kianse...@gmail.com: Currently shutils chown still can't do a recursive chown. It would be nice to have this instead of having to do the looping dance we put our selves through each time we need recursion. Ruby's FileUtils already have this. --

[issue13033] recursive chown for shutils

2011-09-23 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: See also issue 12191, where there was a brief discussion of this. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13033

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Andrea Trasatti
New submission from Andrea Trasatti atrasa...@gmail.com: We found a problem with SSL certificates, when they are larger than 1024 bits and you need to check Alternative Subject Names. In our case we have a 2048 bit certificate, issued by Verisign for the domain developer.nokia.com. The

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Extension Modules nosy: +giampaolo.rodola, janssen, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13034 ___

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Attila Csipa
Changes by Attila Csipa launch...@csipa.in.rs: -- nosy: +achipa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13034 ___ ___ Python-bugs-list

[issue13031] [PATCH] small speed-up for tarfile.py when unzipping tarballs

2011-09-23 Thread poq
poq p...@gmx.com added the comment: I don't think you even need the slice, if you use unpack_from. -- nosy: +poq ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13031 ___

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-09-23 Thread ozan caglayan
ozan caglayan ozan...@gmail.com added the comment: Attached patch is a revised version of bz2ms.patch against Python 2.7.2. The patch is tested using tarfile and bz2 modules. It also passes the included tests correctly. It also imports a missing class from BytesIO to fix the tests. It's up

[issue13035] maintainer value clear the author value when registering

2011-09-23 Thread Joshua Bronson
New submission from Joshua Bronson jabron...@gmail.com: This issue was originally opened in the PyPI tracker but was dismissed on the theory that it's a bug in Python: https://sourceforge.net/tracker/index.php?func=detailaid=3396924group_id=66150atid=513503 If in one package's setup.py I

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-09-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: We don’t add news features in stable releases. Nadeem has closed this bug as fixed for 3.3 and it can’t go in 2.7, so I think we’re done here. -- ___ Python tracker rep...@bugs.python.org

[issue11472] upload command fails to read auth information from .pypirc

2011-09-23 Thread Russell Keith-Magee
Russell Keith-Magee freakboy3...@gmail.com added the comment: This isn't just a Python 3 issue -- I'm seeing this with the default Python install on OS X Snow Leopard (i.e. Python 2.6.1). Changing the .pypirc config line to [server-login] fixed the problem for me, too. -- nosy:

[issue13036] time format in logging is wrong

2011-09-23 Thread Yves Dorfsman
New submission from Yves Dorfsman y...@zioup.com: The basic time format in the logging module uses a comma instead of a dot to separate the seconds from the tenth of seconds: import logging logging.basicConfig(format='%(asctime)s %(message)s') logging.warning('hello') 2011-09-23

[issue13036] time format in logging is wrong

2011-09-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +belopolsky, vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13036 ___ ___

[issue13036] time format in logging is wrong

2011-09-23 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Logging's date/time representation is supposed to conform to ISO 8601. From ISO Standard 8601 (Third Edition, dated 2004-12-01): 4.2.2.4 Representations with decimal fraction If necessary for a particular application a decimal fraction of

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for reporting. This trivial patch seems to fix it (still needs a test): diff -r 1b4fae183da3 Modules/_ssl.c --- a/Modules/_ssl.cTue Aug 09 18:48:02 2011 -0500 +++ b/Modules/_ssl.cFri Sep 23 18:16:04 2011 +0200 @@ -590,7 +590,7 @@

[issue7732] imp.find_module crashes Python if there exists a directory named __init__.py

2011-09-23 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Note that Python 2.6 is also vulnerable to the crash. While we do not have an exploit, we did get a report on security@ which led to this bug. I could be convinced to allow the patch to 2.6 on grounds that if the crasher can be exploited,

[issue7732] imp.find_module crashes Python if there exists a directory named __init__.py

2011-09-23 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7732 ___ ___ Python-bugs-list

[issue13031] small speed-up for tarfile.py when unzipping tarballs

2011-09-23 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: [PATCH] small speed-up for tarfile.py when unzipping tarballs - small speed-up for tarfile.py when unzipping tarballs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13031

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For the record, curl uses the (also undocumented) X509_get_ext_d2i() function instead. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13034

[issue13033] Support recursivity in shutil.chown

2011-09-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Wasn’t there a python-ideas discussion on this? If someone could find a link and summarize use cases it would be great. -- nosy: +eric.araujo title: recursive chown for shutils - Support recursivity in shutil.chown type: - feature

[issue13034] Python does not read Alternative Subject Names from SSL certificates larger than 1024 bits

2011-09-23 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: -giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13034 ___ ___

[issue13033] Support recursivity in shutil.chown

2011-09-23 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: http://mail.python.org/pipermail/python-dev/2011-May/111661.html -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13033

[issue13035] maintainer value clear the author value when registering

2011-09-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This was already discussed in #962772 (and reported again in #12840 :) -- nosy: +eric.araujo resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - when both maintainer and author provided, author

[issue13025] mimetypes should read the rule file using UTF-8, not the locale encoding

2011-09-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +1. I’ve finally understood that open using the locale is Evil™. Please use the file from Fedora in a test. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue10884] pkgutil EggInfoDistribution requirements for .egg-info metadata

2011-09-23 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10884 ___ ___ Python-bugs-list

[issue9395] clean does not remove all temp files

2011-09-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: As I can’t recall what the bug was, closing. -- assignee: tarek - eric.araujo resolution: - invalid stage: test needed - committed/rejected status: open - closed ___ Python tracker

[issue8927] Handle version incompatibilities in dependencies

2011-09-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Per Tarek’s pronouncement, closing. -- resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8927

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-09-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi Justin, is there any way I can help you move forward with this? Please tell if you don’t have the time, I can work on completing the patch. -- ___ Python tracker rep...@bugs.python.org

[issue11921] distutils2 should be able to compile an Extension based on the Python implementation

2011-09-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: One remark: I’m not sure distutils2 *runs* at all on other VMs. For one example, parsing sys.version to get the Python version relies on an implementation detail of CPython. -- ___ Python tracker

[issue9306] distutils: raise informative error message when cmd_class is None

2011-09-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Given that it is documented that the argument must be a dictionary, I’m rejecting this. -- assignee: tarek - eric.araujo resolution: - wont fix stage: - committed/rejected status: open - closed ___

[issue1092365] Distutils needs a way *not* to install files

2011-09-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: We don’t have enough information to understand what the bug is and act on it. Closing as invalid, please reopen if you can clarify. -- assignee: tarek - eric.araujo dependencies: -add a resource+files section in setup.cfg resolution:

[issue13008] syntax error when pasting valid snippet into console without empty string after the function def

2011-09-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The example is not in our documentation. I don’t see a bug, closing. -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7732] imp.find_module crashes Python if there exists a directory named __init__.py

2011-09-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 125887a41a6f by Victor Stinner in branch '3.2': Issue #7732: Don't open a directory as a file anymore while importing a http://hg.python.org/cpython/rev/125887a41a6f New changeset 8c6fea5794b2 by Victor Stinner in

[issue13025] mimetypes should read the rule file using UTF-8, not the locale encoding

2011-09-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13025 ___

[issue13033] Add shutil.chowntree

2011-09-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Following Nick’s opinion in the thread, I’d prefer a distinct function. -- title: Support recursivity in shutil.chown - Add shutil.chowntree ___ Python tracker rep...@bugs.python.org

[issue7732] imp.find_module crashes Python if there exists a directory named __init__.py

2011-09-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0f5b64630fda by Victor Stinner in branch '2.7': Issue #7732: Fix a crash on importing a module if a directory has the same name http://hg.python.org/cpython/rev/0f5b64630fda --

[issue13031] small speed-up for tarfile.py when unzipping tarballs

2011-09-23 Thread Justin Peel
Justin Peel pee...@gmail.com added the comment: poq, You're quite right. I've added that change too. By the way, four unnecessary extra tuples are no longer being created for each call to this function too because of these changes. -- Added file:

[issue13037] [Regression] socket.error does not inherit from IOError as documented

2011-09-23 Thread Christopher Egner
New submission from Christopher Egner cbeg...@gmail.com: http://docs.python.org/library/socket.html#socket.error Changed in version 2.6: socket.error is now a child class of IOError. However, this is not the case. $ python Python 2.7.2 (default, Aug 18 2011, 18:26:35) [GCC 4.1.2 20080704 (Red

[issue13037] [Regression] socket.error does not inherit from IOError as documented

2011-09-23 Thread Christopher Egner
Christopher Egner cbeg...@gmail.com added the comment: Or I could learn to type... -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13037 ___

[issue11725] httplib and urllib2 failed ssl connection httplib.BadStatusLine

2011-09-23 Thread Isaac Salsberg
Isaac Salsberg isalsb...@users.sourceforge.net added the comment: The output for the command: $ openssl s_client -connect www.finratrace.org:443 was the same on MAC OS X 10.6 and on Red hat 5 (https works fine under linux). Nevertheless, Ned Deily is right: the bug is on the openssl libs

[issue13012] Allow keyword argument in str.splitlines()

2011-09-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree with Alex. The poorly documented fact that *some* C-coded functions cannot accept arguments identified by keyword rather than position is a bit hole in the function abstraction. +1 to the patch (and the int to bool change) --

[issue12944] Accept arbitrary files for packaging's upload command

2011-09-23 Thread Jean-Paul Calderone
Jean-Paul Calderone invalid@example.invalid added the comment: pysetup run upload -f dist/spam-0.2.tar.gz -f dist/spam-0.2.exe I'm not sure why it's run upload instead of just upload, but maybe that's the convention in pysetup. Apart from that, this looks like a vast improvement to me. As

[issue13013] _ctypes.c: refleak

2011-09-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: My impression is that plugging refleaks (unlike minor speedups) is a bugfix rather than feature addition, so this and the other issues should be marked for 2.7 and 3.2 also. (I am only changing this one.) Deprecating a public (but obscure)

[issue13023] argparse should allow displaying argument default values in addition to setting a formatter class

2011-09-23 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +bethard stage: - test needed versions: -Python 2.7, Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13023 ___

[issue13030] Be more generic when identifying the Windows main dir in installation doc

2011-09-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Windows does not require that executables be on any particular 'drive'. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13030

[issue13012] Allow keyword argument in str.splitlines()

2011-09-23 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The attached patch adds 'keepends=' to a few calls and replaces 0/1 with False/True. The patch can be applied after Mark's patch. Doing two separate commits is probably better. -- Added file:

[issue13023] argparse should allow displaying argument default values in addition to setting a formatter class

2011-09-23 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: Yeah, adding a formatter instance seems overkill for the usual case of wanting to preserver formatting of the epilog. -- nosy: +zbysz ___ Python tracker rep...@bugs.python.org

[issue10141] SocketCan support

2011-09-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: - dummy question: why an address is a tuple with 1 string instead of just the string? Does AF_UNIX also uses a tuple of 1 string? I think the reason behind the tuple is future proofing. Here's the definition of `struct sockaddr_can`

[issue10141] SocketCan support

2011-09-23 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file23225/socketcan_v4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10141 ___

[issue13038] distutils windows installer STATUS_INVALID_CRUNTIME_PARAMETER (C0000417) exception when python dir is read only

2011-09-23 Thread Mitch Frazier
New submission from Mitch Frazier mi...@comwestcr.com: Distutils built installers will fail on Windows with a run-time exception of STATUS_INVALID_CRUNTIME_PARAMETER, error-code: C417 if the python installation directory (e.g. C:\Python27) is read-only for the user running the installer.

[issue13039] IDLE3 editor: shell-like behaviour on line starting with

2011-09-23 Thread etuardu
New submission from etuardu edo...@gmail.com: In the editor window, if a line starts with the shell prompt string , backspacing is inhibited when reaching the first space, just like in the shell window. OS: Linux 2.6.38-11-generic-pae #50-Ubuntu i386 GNU/Linux Python version: 3.2 IDLE

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-09-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Ozan: Thanks for taking the time to backport the patch. Unfortunately, as Éric said, 2.7 is in maintenance mode, so it no longer receives new features. -- ___ Python tracker

  1   2   >