[issue13984] Python2.6 compilation breaking on mips64 bit machine

2012-02-10 Thread Shivam
New submission from Shivam shivam.agar...@aricent.com: Hi All, I am getting follwoing error when compiling Python2.6 on mips 64. Failed to find the necessary bits to build these modules: _bsddb _tkinter bsddb185 bz2dl imageop

[issue13960] Handling of broken comments in HTMLParser

2012-02-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I'll fix this for 3.x non-strict and then see if it can be backported to 2.7 (there are still other fixes that should be backported to 2.7 before this can be applied). -- ___ Python tracker

[issue13984] Python2.6 compilation breaking on mips64 bit machine

2012-02-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Python 2.6 is in a mode where only security issues get fixed. Please use Python 2.7 or Python 3.2. -- nosy: +loewis resolution: - out of date status: open - closed ___ Python tracker

[issue13984] Python2.6 compilation breaking on mips64 bit machine

2012-02-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Also understand that this output does not indicate an error. It just means that it couldn't build these modules. Python itself works just fine. -- ___ Python tracker rep...@bugs.python.org

[issue13960] Handling of broken comments in HTMLParser

2012-02-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 242b697449d8 by Ezio Melotti in branch '3.2': #13960: HTMLParser is now able to handle broken comments when strict=False. http://hg.python.org/cpython/rev/242b697449d8 New changeset 44366541dd86 by Ezio Melotti in

[issue13960] Handling of broken comments in HTMLParser

2012-02-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This is now fixed in 3.2/3.3, I'll wait for 2.7 before closing it. On a side note, the empty ! comment doesn't seem to be valid in HTML5. HTMLParser just ignores it, and doesn't report it as an empty comment (so this should be fine).

[issue13985] Menu.tk_popup : menu doesn't disapear when main window is iconified.

2012-02-10 Thread marc dechico
New submission from marc dechico marc.dech...@gmail.com: actions do discover the bug with the source I have given: pushing the right button to get the pop-up menu . going out of the popup_menu still pushing the right button. the menu doesn't disapear when releasing the button. and still

[issue13189] New bdist_simple binary distribution format for packaging

2012-02-10 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: I'm writing a PEP, also as a result of Nick's suggestion on python-ideas. I don't think it will be too hard to get the basic framework of the PEP in place. When I'm done, would you like to see it and comment before I post to the wider

[issue13986] ValueError: cannot convert float NaN to integer

2012-02-10 Thread Shivam
New submission from Shivam shivam.agar...@aricent.com: Hi Team, Kindly help me in resolving below issue which arises when we do make install as it is show stopper for us. Listing /usr/local/lib/python2.7 ... Compiling /usr/local/lib/python2.7/BaseHTTPServer.py ... Traceback (most recent

[issue13986] ValueError: cannot convert float NaN to integer

2012-02-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13986 ___ ___ Python-bugs-list

[issue13986] ValueError: cannot convert float NaN to integer

2012-02-10 Thread Shivam
Shivam shivam.agar...@aricent.com added the comment: Hi Team, I am having this issue on mips 64bit machine running debian. Regards Shivam Agarwal -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13986

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-02-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 29507a2acdb5 by Ned Deily in branch '2.7': Issue #13590: On OS X 10.7 and 10.6 with Xcode 4.2, building http://hg.python.org/cpython/rev/29507a2acdb5 New changeset 5c784b0f263d by Ned Deily in branch '3.2': Issue

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-02-10 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Éric: I've replied to your review comments in Rietveld. Thanks. Ronald: distutils would not only have to check for gcc-4.2 vs. clang, but also needs to strip -arch ppc from the compiler flags when it is present and it cannot use gcc-4.2. Otherwise

[issue13986] ValueError: cannot convert float NaN to integer

2012-02-10 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13986 ___ ___

[issue13982] python returning errorneous value for sqrt

2012-02-10 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13982 ___ ___

[issue13987] Handling of broken markup in HTMLParser on 2.7

2012-02-10 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: The attached patch fixes a few problems with HTMLParser on 2.7. Instead of raising error when invalid markup is detected, the parser now consumes the invalid input and proceeds. This patch is a partial backport of #1486713. After this

[issue13987] Handling of broken markup in HTMLParser on 2.7

2012-02-10 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13987 ___ ___ Python-bugs-list

[issue13966] Add disable_interspersed_args() to argparse.ArgumentParser

2012-02-10 Thread Christophe Kalt
Christophe Kalt k...@taranis.org added the comment: nice, thank you! -- nosy: +kalt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13966 ___ ___

[issue13922] argparse handling multiple -- in args improperly

2012-02-10 Thread Christophe Kalt
Christophe Kalt k...@taranis.org added the comment: Hah.. was just about to report this. I'm in the midst of converting a bunch of scripts from optparse to argparse, and this is one of the problems I'm hitting. -- nosy: +kalt ___ Python tracker

[issue10049] Add a no-op (null) context manager to contextlib

2012-02-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: FWIW, it's likely I'll be adding contextlib.ContextStack (see [1]) for 3.3. While it's far from the primary use case, that API also serves as a no-op context manager (if you never register any contexts or callbacks, the __exit__ impl does

[issue1559549] ImportError needs attributes for module and file name

2012-02-10 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: The patch looks fine for its current semantics except for the fact that the macro doesn't work under clang; ##macro_var is supposed to be used only when concatenating parts of a string to create a complete identifier, not concatenating two

[issue1559549] ImportError needs attributes for module and file name

2012-02-10 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: And to answer David's joke, I carpool from Toronto to Waterloo four days a week so I have an hour each direction to work on stuff. -- ___ Python tracker rep...@bugs.python.org

[issue10049] Add a no-op (null) context manager to contextlib

2012-02-10 Thread Alexander Jones
Alexander Jones aj.d...@gmail.com added the comment: That's very reassuring. Thanks, Nick! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10049 ___

[issue13947] gdbm reorganize() leaves hanging file descriptor

2012-02-10 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I can't reproduce. Sorry. Reading the GDBM documentation, all filedescriptors management seem to be inside gdbm, not Python. Anyway, if I can't reproduce, I can not diagnose neither patch. Sorry. --

[issue1559549] ImportError needs attributes for module and file name

2012-02-10 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Oh, and there are no forward declarations for the new functions added to errors.c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: Following the discussion on python-dev [1], this issue will track the re-organization of Lib/xml/etree to expose the C implementation (_elementtree) by default when importing ElementTree. The test suite will also have to be updated - it's

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Oh, and not to forget: the documentation has to be updated to just not mention cElementTree any longer. For the user, the fact that a fast C library is invoked underneath should be invisible. -- ___

[issue1559549] ImportError needs attributes for module and file name

2012-02-10 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Attached is Brian's patch with the macro fix and forward declarations. -- Added file: http://bugs.python.org/file24476/importerror.diff ___ Python tracker rep...@bugs.python.org

[issue13703] Hash collision security issue

2012-02-10 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: So modulo my (small) review comments, David's patches are ready to go in. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: Eli Bendersky, 10.02.2012 15:52: * The current contents of xml/etree/ElementTree.py will move to xml/etree/pyElementTree.py IIRC, there is a well specified way how accelerator modules should be used by Python modules. I recall a

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Hmm, that may be PEP 399: If an acceleration module is provided it is to be named the same as the module it is accelerating with an underscore attached as a prefix, e.g., _warnings for warnings. The common pattern to access the accelerated

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: IIRC, there is a well specified way how accelerator modules should be used by Python modules. I recall a lengthy discussion on python-dev (or the py3k list?) back in the old pre-3.0 days, maybe there's even a PEP? If there's a convention, I'll

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: Eli Bendersky, 10.02.2012 16:43: I don't see a compelling enough reason to break imports in existing code by removing the cElementTree module, so we should not do that. Agreed. Perhaps it should just be deprecated? Given that

[issue1559549] ImportError needs attributes for module and file name

2012-02-10 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: So I just tried to pass fullname in import.c and it didn't work (of course). Looks like even when I try to use fullname in find_module_path_list() and load_next() it is still leaving out the package name. Ugh. That means either refactoring

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: A note in the doc is easy to miss IMHO, and since DeprecationWarnings are silenced by default, I don't think they will affect the final users. A different problem is that developers will have to check for the Python version if they want

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: If possible I would avoid pyElementTree, I suppose it's possible, but I'm genuinely interested in a technical reason for doing so. The approach suggested in PEP 399 is useful for module in which part of the functionality is implemented in C,

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: If possible I would avoid pyElementTree, Me too: - __name__ and __qualname__ would be less confusing - the cElementTree accelerator uses large parts of Python implementation ElementTree is different - it's pretty much two

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: From a performance point of view, consider the (by far) common case - where _elementtree *is* successfully imported. ... for each invocation, the whole import of the Python code has to be done, just to reach the overriding import * at the

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Oops, in last message: s/there will be circular dependencies/there will not be circular dependencies/ -- stage: needs patch - type: performance - ___ Python tracker rep...@bugs.python.org

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: In xml/etree there is: - ElementTree: tries to import cElementTree. On success, done. On ImportError, imports pyElementTree - pyElementTree: the pure Python implementation - cElementTree: sets up the bootstrap Python code and tries to

[issue4010] configure options don't trickle down to distutils

2012-02-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4010 ___ ___ Python-bugs-list mailing list

[issue13989] gzip always returns byte strings, no text mode

2012-02-10 Thread Peter
New submission from Peter p.j.a.c...@googlemail.com: Consider the following example where I have a gzipped text file, $ python3 Python 3.2 (r32:88445, Feb 28 2011, 17:04:33) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. import

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: What I had in mind is more like:  - ElementTree: defines the python code and if _elementtree is available overrides part of it with the functions imported from it; The problem with this is the bootstrap Python code executed by _elementtree.

[issue13990] Benchmarks: 2to3 failures on the py3 side

2012-02-10 Thread Francisco Martín Brugué
New submission from Francisco Martín Brugué franci...@email.de: Steps to reproduce: after following the usage instructions from make_perf3.sh go to the the py3 benchmarks directory and run the lib/2to3 tests (python3.2 test.py). The result are 3 failures and 17 errors. The equivalent procedure

[issue13989] gzip always returns byte strings, no text mode

2012-02-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13989 ___ ___ Python-bugs-list

[issue1559549] ImportError needs attributes for module and file name

2012-02-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: However you do it, I'm very much in favor of having the full name available. I either wrote or fixed (I can't remember which) that stack walk in pydoc, and you are right, it is very very ugly. This would also be a big benefit for

[issue13961] Have importlib use os.replace()

2012-02-10 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13961 ___ ___ Python-bugs-list

[issue13978] OSError exception in multiprocessing module when using os.remove() on NFS

2012-02-10 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: OSError: [Errno 16] Device or resource busy: '/nfs/tmp/pymp-f7R9S6/.nfse039692f0236' That's because the temporary directory is removed while a file inside is still open. And that's really likely the unix socket used by

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2012-02-10 Thread Eric Talevich
Eric Talevich eric.talev...@gmail.com added the comment: Well, this is not the best month for me to try digging into a new codebase... I would not mind if someone else did the patch for this. -- ___ Python tracker rep...@bugs.python.org

[issue13990] Benchmarks: 2to3 failures on the py3 side

2012-02-10 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: It looks like 2to3 isn't being converted properly. Benjamin, is lib2to3 supposed to work on itself and result in a sane output? If not then the benchmark should probably drop its internal copy of lib2to3. Antoine (since you last looked at the

[issue13990] Benchmarks: 2to3 failures on the py3 side

2012-02-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13990 ___ ___

[issue13703] Hash collision security issue

2012-02-10 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Thanks for reviewing Benjamin. I'm also reviewing this today. Sorry for the delay! BTW, like Schadenfreude? A hash collision DOS issue fix patch for PHP5 was done poorly and introduced a new security vulnerability that was just used to let

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: - ElementTree: defines the python code and if _elementtree is available overrides part of it with the functions imported from it; The problem with this is the bootstrap Python code executed by _elementtree. This might become

[issue13991] namespace packages depending on order

2012-02-10 Thread andrea crotti
New submission from andrea crotti andrea.crott...@gmail.com: I am not really sure that it is a bug, but for me it's at least not the expected behaviour. In short supposing I have two namespace packages ab and ac (as seen in the tar file), this works perfectly: import sys from os import path

[issue13198] Remove duplicate definition of write_record_file

2012-02-10 Thread Mike Hoy
Mike Hoy mho...@gmail.com added the comment: I am unable to work on this issue at this time. On Thu, Feb 9, 2012 at 8:57 PM, Éric Araujo rep...@bugs.python.org wrote: Éric Araujo mer...@netwok.org added the comment: Mike, if you don’t have the time to finish this shortly, I will do it, as

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: The first step is to strip out the cElementTree bootstrap code from the C module. I did it in the attached patch (plus removal of obsolete code for copy() in Python 2.4). This passes the unmodified tests test_xml_etree and

[issue13974] packaging: test for set_platform()

2012-02-10 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: It indeed was permanent. The new patch fixes the issue. -- Added file: http://bugs.python.org/file24480/test-set-platform-2.patch ___ Python tracker rep...@bugs.python.org

[issue13619] Add a new codec: locale, the current locale encoding

2012-02-10 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: According to the discussion on the python-dev mailing list, such codec would add too much confusion to users and so it is better to not add it. http://mail.python.org/pipermail/python-dev/2012-February/116272.html I close the issue

[issue13703] Hash collision security issue

2012-02-10 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Review of add-randomization-(...).patch: - there is a missing ) in the doc, near the types covered by the :option:`-R` option (or its equivalent, :envvar:`PYTHONHASHRANDOMIZATION`. - get_hash() in test_hash.py fails completly on

[issue13991] namespace packages depending on order

2012-02-10 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13991 ___ ___ Python-bugs-list

[issue13703] Hash collision security issue

2012-02-10 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: On Fri, Feb 10, 2012 at 6:02 PM, STINNER Victor  - PYTHONHASHSEED doc is not clear: it should be mentionned that the variable is ignored if PYTHONHASHRANDOMIZATION is not set *That* is why this two-envvar solution bothers me.

[issue10227] Improve performance of MemoryView slicing

2012-02-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Kristján, I ran the benchmarks from http://bugs.python.org/issue10227#msg143731 in the current cpython and pep-3118 repos. In both cases the differences between Linux and Windows are far less pronounced than they used to be. All

[issue13972] set and frozenset constructors don't accept multiple iterables

2012-02-10 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: It is present in union and intersection because chained operations are reasonably common. I don't think it makes much sense in the constructors because it doesn't correspond to how people think of (make this a set). --

[issue13968] Support recursive globs

2012-02-10 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I would like to see this one API remain simple and leave more complex tasks to os.walk et al. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Ezio, We are assuming that _elementtree might be missing, but what are the cases where this might actually happen? Other implementations like PyPy? Exotic platforms that can't compile _elementtree? I guess both. To make the stdlib work on

[issue13959] Re-implement parts of imp in pure Python

2012-02-10 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13959 ___ ___ Python-bugs-list

[issue13966] Add disable_interspersed_args() to argparse.ArgumentParser

2012-02-10 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - bethard nosy: +bethard type: - enhancement versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13966

[issue13966] Add disable_interspersed_args() to argparse.ArgumentParser

2012-02-10 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: The idea and patch seem okay to me. Needs tests though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13966 ___

[issue9750] sqlite3 iterdump fails on column with reserved name

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Petri, I think you can go ahead. Lucas, thanks for your help, even though your patch is not used. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9750

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Florent, thanks for the patch - at this point code is more useful than talk :-) Anyhow, I tried to apply it and a few tests in test_xml_etree_c fail, because it can't find fromstring and fromstringlist. This gets fixed when I import

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13988 ___

[issue13959] Re-implement parts of imp in pure Python

2012-02-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13959 ___

[issue13981] time.sleep() should use nanosleep() if available

2012-02-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13981 ___

[issue13123] bdist_wininst uninstaller does not remove pycache directories

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: So I had a quick look at the code and found the lines in need of a fix. The problem comes as usual from our friend “path + optimize and 'o' or 'c'”. I can read some C, so I tried to replace that with imp.cache_from_source, but a real C

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: See also #13123 for the same bug in bdist_wininst. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11254 ___

[issue13953] Get rid of doctests in packaging.tests.test_version

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks, I’ve got it from that point. Notes for future patches: - Tests should not check the exact contents of error messages, as they are not part of the language - Don’t use assertEqual(..., True) but assertTrue, or if you’re testing

[issue12659] Add tests for packaging.tests.support

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW: in distutils2 I get (not because of this change): Actually I did fix that, but depending on your Python version the conditional in the test may be wrong. What’s the Python version you used? If so, could you provide a patch this time?

[issue13491] Fixes for sqlite3 doc

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: No examples included in the documentation now require createdb.py to be run. Cool! These fixes should make it to 2.7 too; I can propose a patch if you don’t want to backport yourself. In the Doc/includes/sqlite3 directory there are still some

[issue13180] pysetup silently ignores invalid entries in setup.cfg

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: A side effect of this change will be the removal of the Extension class, which was only useful to do some typechecks/conversions on its arguments. In Python code it will be replaced by a dict (with keys 'name', 'sources', 'optional', etc.),

[issue13972] set and frozenset constructors don't accept multiple iterables

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: As a set user (not developer), I think that the proposed feature is not needed, and the change would make set/frozenset less similar to list and tuple, which would be a bad thing. -- nosy: +eric.araujo

[issue12297] Clarifications to atexit.register and unregister doc

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Maybe one of you gentlemen would like to review this. -- nosy: +ezio.melotti, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12297

[issue11122] bdist_rpm fails

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Given that we’ve made changes to distutils for Debian multiarch or Mac OS X compiler breakage, I now think that switching distutils to only use rpmbuild would be reasonable. -- versions: -Python 3.1

[issue1051216] make distutils.core.run_setup re-entrant

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ll reopen this report if someone can provide an example that triggers the bug. -- resolution: - wont fix status: open - closed versions: +Python 3.3 -Python 3.1 ___ Python tracker

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I strongly feel that existing code importing ElementTree or cElementTree should not be broken. Let’s add transparent import from _elementtree to ElementTree without breaking existing uses of cET. I think that 3.2 and 2.7 should get a doc note

[issue13991] namespace packages depending on order

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Are you using pure-stdlib namespace packages, i.e. things using distutils and pkgutil.extend_path, or setuptools’ notion of namespace packages? (I didn’t check your archive, in general we dislike binary files on this tracker and use text all

[issue13974] packaging: test for set_platform()

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: :) Will commit. -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13974 ___

[issue13198] Remove duplicate definition of write_record_file

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: OK. Thanks for your help! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13198 ___ ___

[issue13175] packaging uses wrong line endings in RECORD files on Windows

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I just did pip install distutils2 in a virtualenv. If that doesn't work then yes, I got the wrong one :-( You need to get a development repo to make patches, not a released version, just like for CPython. Do I need to hg clone then do some

[issue13719] bdist_msi upload fails

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t know if the bdist_msi command runs without user interaction. If so, then the test in the attached patch should pass on Windows. Can you please test it? -- Added file:

[issue13952] mimetypes doesn't recognize .csv

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ve been one to argue that additions to the mimetypes registry are clearly new features. Now if two senior devs like you think otherwise, I’m reconsidering. These additions can’t possibly break code, can they? So I can agree with a

[issue13193] packaging.tests.test_manifest and distutils.tests.test_filelist failures

2012-02-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Attached is Vinay’s fix as a diff. Can someone test this patch on Windows or any of the other OSes that showed failures? -- keywords: +patch title: test_packaging and test_distutils failures - packaging.tests.test_manifest and

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-10 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I strongly feel that existing code importing ElementTree or cElementTree should not be broken.  Let’s add transparent import from _elementtree to ElementTree without breaking existing uses of cET. AFAICS there's currently no disagreement

[issue13922] argparse handling multiple -- in args improperly

2012-02-10 Thread Warren Turkal
Changes by Warren Turkal w...@penguintechs.org: -- versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13922 ___ ___