[issue19257] Sub-optimal error message when importing a non-package

2014-03-13 Thread R. David Murray
R. David Murray added the comment: Actually, it could be important even if you are dealing with files and directories (or I'm confused and __path__ is always about same :), since you could be dealing with an alternate loader. Our policy is not to hide the chained traceback unless *all* of the

[issue6142] distutils2 clean command: Remove extension modules built in-place

2014-03-13 Thread Éric Araujo
Éric Araujo added the comment: distutils doc now warns about clean not removing extensions built in place. distutils2 is no more. Closing. -- assignee: - docs@python components: +Documentation -Distutils2 nosy: +docs@python resolution: - out of date stage: needs patch -

[issue20910] Make sleep configurable in tests

2014-03-13 Thread Nick Coghlan
Nick Coghlan added the comment: I've sped up wait for something to happen tests in other contexts and found the best solution to be a polling loop so that success is as fast as possible and failure may be slow. For example, rather than just having a 10 second timeout, it's often better to have

[issue20910] Make sleep configurable in tests

2014-03-13 Thread STINNER Victor
STINNER Victor added the comment: I've sped up wait for something to happen tests in other contexts and found the best solution to be a polling loop so that success is as fast as possible and failure may be slow. more_reliable_tests.patch tries to fix tests to not depend on timings. But it is

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2014-03-13 Thread Peter Santoro
Peter Santoro added the comment: I've attached a zip file which contains a test script and test zip files for the previously submitted Python 3.3.5 patch. See the included README.txt for more information. To view the contents of the included bad.zip file, use the following command: unzip

[issue19359] reversed() does not work with weakref.proxy of sequences

2014-03-13 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - low type: behavior - enhancement versions: +Python 3.5 -Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19359

[issue20902] Which operand is preferred by set operations? Missing information in the documentation

2014-03-13 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20902 ___

[issue20902] Which operand is preferred by set operations? Missing information in the documentation

2014-03-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: As far as I can tell currently there is no rule about this. Intersection prefers the second operand, while union prefers the first. The implementation uses the same logic as found in Lib/sets.py where the intersection operator loops over the SMALLER of

[issue20905] Adapt heapq push/pop/replace to allow passing a comparator.

2014-03-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for submitting a patch. I'm sorry, but I don't think this is the right approach. I will likely keep the current functions as they are now. Under no circumstances do I want to add any overhead to the existing functions (they serve performance

[issue20910] Make sleep configurable in tests

2014-03-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Some tests use time.sleep() as a basic synchronization primitive, because other synchronization primitive cannot be used. For example, lock_tests.py tests locks and so cannot use lock in its tests. The problem is that slow buildbots require long sleep. It

[issue20913] Standard Library documentation needs SSL security best practices doc.

2014-03-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 I think this is sorely needed. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20913 ___

[issue18104] Idle: make human-mediated GUI tests usable

2014-03-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I thought through my design criteria a bit, and in the process, decided on a specific concrete proposal to test. 1. It should be possible to run one test. It should easy to run (or not) the test (or tests) for a module when editing its file. It should be easy

[issue20337] bdist_rpm should support %config(noreplace)

2014-03-13 Thread KV
KV added the comment: Configuration files in RPMs can have several attributes, one important one is 'noreplace' (i.e., %config(noreplace) file-name).  This allows for configuration files that have been changed after the RPM has been installed to not be over-written when the RPM is updated --

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2014-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7950e916f20 by R David Murray in branch '3.3': #7475: Remove references to '.transform' from transform codec docstrings. http://hg.python.org/cpython/rev/d7950e916f20 New changeset 83d54ab5c696 by R David Murray in branch 'default': Merge #7475:

[issue20913] Standard Library documentation needs SSL security best practices doc.

2014-03-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm not so sure about the objection. The text currently says CERT_NONE is the default. Since it does not authenticate the other peer, it can be insecure, especially in client mode where most of time you would like to ensure the authenticity of the server

[issue20905] Adapt heapq push/pop/replace to allow passing a comparator.

2014-03-13 Thread Prashant Sharma
Prashant Sharma added the comment: Did not knew about #13742. I hope it gets merged soon and may be, if possible backport too ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20905 ___

[issue20905] Adapt heapq push/pop/replace to allow passing a comparator.

2014-03-13 Thread Prashant Sharma
Prashant Sharma added the comment: Thanks Raymond for looking at the patch, understood your considerations are reasonable. This discussion can be closed here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20905

[issue20785] Missing symbols in Python27.lib (Windows 64bit)

2014-03-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't know how mingw64 is supposed to work, but going by the 32-bit mingw, you might have to create a libpython27.a first. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue20913] Standard Library documentation needs SSL security best practices doc.

2014-03-13 Thread R. David Murray
R. David Murray added the comment: Someone else told me it was, I'm afraid I didn't actually check myself :(. That said, it is still not clear to me from reading that whether or not I need to do something when using, say, the SMTP_SSL class. And it is the latter kind of question that I'm

[issue6040] bdist_msi does not deal with pre-release version

2014-03-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: As for 2): I believe that bdist_msi doesn't support upgrade installations currently, anyway. To support this, the UpgradeCode property would have to be specified. As it stands, multiple versions of the same PyPI package result in multiple separate

[issue18624] Add alias for iso-8859-8-i which is the same as iso-8859-8

2014-03-13 Thread Kamilla
Kamilla added the comment: I'm not sure about how the aliases are represented. I found some examples: http://web.mit.edu/Mozilla/src/mozilla/intl/uconv/src/charsetalias.properties So I wrote the aliases like this: 'iso-8859-8-i' : 'iso8859_8_I', 'iso-8859-8-e' : 'iso8859_8_E',

[issue20913] Standard Library documentation needs SSL security best practices doc.

2014-03-13 Thread R. David Murray
R. David Murray added the comment: To expand on that point a little: in the past, I could happily use the SMTP_SSL class (say) without thinking about certificates or server hostname verification, or pretty much of anything. This produced no verification, of course, which is the problem we

[issue20265] Bring Windows docs up to date

2014-03-13 Thread Kathleen Weaver
Kathleen Weaver added the comment: I've added a paragraph to the FAQ that refers to the Python Launcher as Éric Araujo suggested. So sorry, but new patch. -- Added file: http://bugs.python.org/file34409/windowsDoc.patch ___ Python tracker

[issue20919] Image.show() does not open the image on windows xp

2014-03-13 Thread Yamini Joshi
Changes by Yamini Joshi yamini.1...@gmail.com: -- components: IDLE nosy: Yamini.Joshi priority: normal severity: normal status: open title: Image.show() does not open the image on windows xp type: behavior versions: Python 2.7 ___ Python tracker

[issue16989] allow distutils debug mode to be enabled more easily

2014-03-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: Searching through the setuptools code base, there's no code reference to DEBUG and only one comment referencing DISTUTILS_DEBUG (which I'm suspicious may be a legacy artifact). In any case, I'm mostly confident that applying the patch as presented would have

[issue20919] Image.show() does not open the image on windows xp

2014-03-13 Thread Yamini Joshi
New submission from Yamini Joshi: On using PIL, this command works fine on Windows 7 and opens the image on default image viewer but on Windows xp, it just opens the viewer w/o the image. -- ___ Python tracker rep...@bugs.python.org

[issue18104] Idle: make human-mediated GUI tests usable

2014-03-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: After correcting bugs in the 'explaining with code' posted before, and making a few other changes, the attached 3.3 diff works. The main substantive change is that I added a parameter to the class to move the tested dialog under the toplevel driver so the

[issue20920] Turtle module transparency.

2014-03-13 Thread Eli Innis
New submission from Eli Innis: Python's Turtle module doesn't support transparency. I emailed the developer that was listed in the Turtle module code, thinking that was the right way to get help updating it. I then messaged Python's Facebook

[issue20919] Image.show() does not open the image on windows xp

2014-03-13 Thread Ned Deily
Ned Deily added the comment: PIL is a third-party distribution and thus not part of the Python standard library. See its page on the Python Package Index here: https://pypi.python.org/pypi/PIL Be aware that, AFAIK, PIL is no longer being developed. If you aren't already using it, you might

[issue20921] DeprecationWarning: The Windows bytes API has been deprecated, use Unicode filenames instead st = os.stat(path)

2014-03-13 Thread Pramod Jadhav
New submission from Pramod Jadhav: C:\Python33\lib\genericpath.py:29: DeprecationWarning: The Windows bytes API has been deprecated, use Unicode filenames instead st = os.stat(path) -- messages: 213517 nosy: pramod.jadhav priority: normal severity: normal status: open title:

<    1   2   3