[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Ethan Furman added the comment: Hopefully the last update. :) -- Added file: http://bugs.python.org/file30512/pep-0435.11.stoneleaf.patch ___ Python tracker ___

[issue18169] struct.pack() behaves strangely for 'L' on 64bit Linux

2013-06-08 Thread Roman Zeyde
Roman Zeyde added the comment: You are correct - the documentation is right: "Format characters have the following meaning; the conversion between C and Python values should be obvious given their types. The ‘Standard size’ column refers to the size of the packed value in bytes when using stan

[issue18169] struct.pack() behaves strangely for 'L' on 64bit Linux

2013-06-08 Thread Roman Zeyde
Changes by Roman Zeyde : -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue18168] plistlib output self-sorted dictionary

2013-06-08 Thread halfjuice
halfjuice added the comment: Thanks for giving out docs and start a detail discussion on this Mher! Sorry I'm not familiar with Apple plist tool (I'm using cocos2d-x on win32 for the moment...) Are you saying that plutil is used everytime we output a valid plist? Another thing is whether the

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Ethan Furman added the comment: Hmm -- I was confusing member names with member values; I'll put 'unique' back in. -- ___ Python tracker ___ ___

[issue18054] Add more exception related assertions to unittest

2013-06-08 Thread Robert Collins
Robert Collins added the comment: Hey, feel free to +nosy me on unittest things :). Julian pinged me on IRC about this - Jml and I would be delight to prepare a patchset for assertThat for unittest and as much of the core of Matchers as makes sense. The bare core can come in without any of the

[issue18081] test_logging failure in WarningsTest on buildbots

2013-06-08 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Ethan Furman added the comment: Doc updates are in. I removed the 'unique, constant' from the first line of the intro, as neither of those things are necessarily true. -- Added file: http://bugs.python.org/file30511/pep-0435.10.stoneleaf.patch ___ P

[issue4153] Unicode HOWTO up to date?

2013-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: amk's latest patch looks like a very nice improvement to me. One suggested wording tweak for the aside about the simplified history: s/The average Python programmer doesn't need to know the historical details/The precise historical details aren't relevant to under

[issue18162] Add index attribute to IndexError

2013-06-08 Thread Éric Araujo
Éric Araujo added the comment: regex? do you mean weakref? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18111] Add a default argument to min & max

2013-06-08 Thread Julian Berman
Julian Berman added the comment: New patchset addressing review. Not sure why upload.py isn't working for me (I assume it should?) -- Added file: http://bugs.python.org/file30510/minmax.patch ___ Python tracker __

[issue18053] Add checks for Misc/NEWS in make patchcheck

2013-06-08 Thread R. David Murray
R. David Murray added the comment: It's not about saving lines in the output, it's about saving space in the developer's brain/workflow efficiency. That said, it is only valuable if it is reasonably reliable. -- ___ Python tracker

[issue18170] define built-in exceptions in Python code

2013-06-08 Thread Brett Cannon
New submission from Brett Cannon: This quite possibly won't work because of performance, but I have been wondering how feasible it would be to define as many core exception types as possible in pure Python code and then freeze the module for loading. It would have the benefit of making mainten

[issue6632] Include more fullwidth chars in the decimal codec

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue18101] Tk.split() doesn't work with nested Unicode strings

2013-06-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18038] Unhelpful error message on invalid encoding specification

2013-06-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18106] There are unused variables in Lib/test/test_collections.py

2013-06-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue18034] Last two entries in the programming FAQ are out of date (import related)

2013-06-08 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Document/deprecate imp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue4153] Unicode HOWTO up to date?

2013-06-08 Thread A.M. Kuchling
A.M. Kuchling added the comment: Updated version of my patch, which adds two more todo items and handles Ezio's review comments: * Switch from Greek examples to French, and remove non-Latin-1 characters. * Change language for bytes.decode to "but supports a few more possible handlers". * Des

[issue18034] Last two entries in the programming FAQ are out of date (import related)

2013-06-08 Thread Brett Cannon
Brett Cannon added the comment: Hasn't been moved yet. And the __import__ question should probably be rephrased as "don't do this". -- ___ Python tracker ___ ___

[issue12226] use HTTPS by default for uploading packages to pypi

2013-06-08 Thread Donald Stufft
Donald Stufft added the comment: Uploading always hits the backend servers and thus has the same logging as before Merely switching to HTTPS only provides protections against passive attacks. You need verification to protect against active attacks (which are simple and easy to do as well). Li

[issue12226] use HTTPS by default for uploading packages to pypi

2013-06-08 Thread anatoly techtonik
anatoly techtonik added the comment: If somebody sponsor my visit to EuroPython, I will dedicate some time to prepare a demo uploading rogue packages using sniffed credentials over WiFi without owner's consent. After moving to CDN no upload logs are available, so it is even more secure for att

[issue12226] use HTTPS by default for uploading packages to pypi

2013-06-08 Thread Donald Stufft
Donald Stufft added the comment: I would +! backporting this, but It's not massively required since it only protects against passive attacks. It would however make things a little nicer. -- ___ Python tracker ___

[issue18053] Add checks for Misc/NEWS in make patchcheck

2013-06-08 Thread Ezio Melotti
Ezio Melotti added the comment: Not sure it's worth making the logic more complicated just to save one line in some occasions. Hiding the messages about configure and pyconfig.h.in when they are not needed would save two lines and it should be simpler to do, but if you have something specific

[issue17691] Fix test discovery for test_univnewlines.py

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue18126] Update links to NumPy resources in documentation

2013-06-08 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue18126] Update links to NumPy resources in documentation

2013-06-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset dacd8f430e0e by Ezio Melotti in branch '2.7': #18126: update NumPy links in the documentation. Patch by Yury V. Zaytsev. http://hg.python.org/cpython/rev/dacd8f430e0e New changeset aafa11c1dd61 by Ezio Melotti in branch '3.3': #18126: update NumPy

[issue18124] Broken build on target machine with incorrect hostname (non-ascii)

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12226] use HTTPS by default for uploading packages to pypi

2013-06-08 Thread anatoly techtonik
anatoly techtonik added the comment: This should have been backported to Python 2. I expect some related attacks on EuroPython. -- ___ Python tracker ___ ___

[issue18048] Merging test_pep263.py and test_coding.py

2013-06-08 Thread Ezio Melotti
Ezio Melotti added the comment: > e.g. test_source_encoding This SGTM. I particularly dislike test_pep*, especially when I can't remember the pep number. -- ___ Python tracker ___

[issue17691] Fix test discovery for test_univnewlines.py

2013-06-08 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue17691] Fix test discovery for test_univnewlines.py

2013-06-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2e093e98d45 by Ezio Melotti in branch '3.3': #17691: test_univnewlines now works with unittest test discovery. Patch by Zachary Ware. http://hg.python.org/cpython/rev/a2e093e98d45 New changeset d1b5e41acf28 by Ezio Melotti in branch 'default': #1

[issue18169] struct.pack() behaves strangely for 'L' on 64bit Linux

2013-06-08 Thread Stefan Krah
Stefan Krah added the comment: The docs say: "Native size and alignment are determined using the C compiler’s sizeof expression. This is always combined with native byte order." sizeof(long) is 8 on your platform, so I don't see anything wrong here. Or is another part of the documentation unc

[issue18033] Example for Profile Module shows incorrect method

2013-06-08 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the patches, however the Python 2 example doesn't work. I think a BytesIO should be used instead of a StringIO, and print_stats() only returns a pstats.Stats instance, without actually printing any result. I wonder if print_results was an old method tha

[issue18034] Last two entries in the programming FAQ are out of date (import related)

2013-06-08 Thread Ezio Melotti
Ezio Melotti added the comment: FTR here is a link to the FAQs: http://docs.python.org/3/faq/programming.html#import-x-y-z-returns-module-x-how-do-i-get-z -- ___ Python tracker

[issue18036] "How do I create a .pyc file?" FAQ entry is out of date

2013-06-08 Thread Ezio Melotti
Ezio Melotti added the comment: FTR here's a link to the FAQ: http://docs.python.org/3/faq/programming.html#how-do-i-create-a-pyc-file -- keywords: +easy ___ Python tracker ___

[issue4153] Unicode HOWTO up to date?

2013-06-08 Thread A.M. Kuchling
A.M. Kuchling added the comment: Continuing my tour of the howtos, here's a patch making many of the changes discussed here and on issue13997. Changes made: * state that python3 source encoding is UTF-8, and give examples * mention surrogateescape in the 'tips and tricks' section, and backsl

[issue18034] Last two entries in the programming FAQ are out of date (import related)

2013-06-08 Thread Ezio Melotti
Ezio Melotti added the comment: imp.reload() doesn't seem to be deprecated, and importlib.reload() doesn't exist. Is there another alternative or it just hasn't been moved somewhere else? -- ___ Python tracker _

[issue18041] mention issues with code churn in the devguide

2013-06-08 Thread Ezio Melotti
Ezio Melotti added the comment: > I’ve actually seen two contrary kinds of advice and the best approach is most of the times something in between. Doing minor cleanups while touching the code is fine, but if most of the changes are cleanups then it gets distracting. In that case it's better

[issue18169] struct.pack() behaves strangely for 'L' on 64bit Linux

2013-06-08 Thread Roman Zeyde
New submission from Roman Zeyde: Reproduction: Python 2.7.4 (default, Apr 19 2013, 18:28:01) [GCC 4.7.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import struct >>> struct.pack('!L', 0x01020304) '\x01\x02\x03\x04' >>> struct.pack('>L', 0x01020304) '\x0

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue18168] plistlib output self-sorted dictionary

2013-06-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +hynek, ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7796] No way to find out if an object is an instance of a namedtuple

2013-06-08 Thread Eric Snow
Eric Snow added the comment: It may not enough, but the use of namedtuples (vs. plain tuples) with functools.singledispatch() would be messier without a NamedTuple ABC (or other base type). Of course, when would you want to dispatch specifically on namedtuple? I can think of a few relatively

[issue18168] plistlib output self-sorted dictionary

2013-06-08 Thread Mher Movsisyan
Mher Movsisyan added the comment: I think this is not a bug. plistlib api accepts dict (not OrderedDict) and sorted output is a valid output. plistlib sorts dictionaries to be consistent with Apple's tools. property list format [1] uses CFDictionary [2] with CFString keys. CFDictionary is uno

[issue14797] Deprecate imp.find_module()/load_module()

2013-06-08 Thread Thomas Heller
Thomas Heller added the comment: > The modulefinder usage is directly exposed in its API as the return > value of a find_module method, which makes removal a pain. Adding > Thomas Heller to see what he has to say. Some months ago, I have started to implement a brand-new modulefinder, which is ba

[issue18143] ssl.get_default_verify_paths()

2013-06-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > How about a single return value: > > DefaultVerifyPaths = collections.namedtuple("DefaultVerifyPaths", > "cafile capath openssl_cafile_env openssl_cafile openssl_capath_env > openssl_capath") Sounds good. --

[issue17134] Use Windows' certificate store for CA certs

2013-06-08 Thread Christian Heimes
Christian Heimes added the comment: New patch with fixed doc string and indention. http://msdn.microsoft.com/en-us/library/windows/desktop/aa377189%28v=vs.85%29.aspx explains how encoding type shall be interpreted. I haven't seen PKCS#7 certs on my Windows system, though. Instead of a flag I

[issue14015] surrogateescape largely missing from documentation

2013-06-08 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- nosy: +akuchling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18152] Idle: add 2.7 backport script

2013-06-08 Thread Ezio Melotti
Ezio Melotti added the comment: > 'Import' is as easy to use as Graft and as far as I know, the result > when successful is the same. I use import while importing patches from the tracker, but once I committed on 2.x it's easier to just graft instead of importing again (importing often requir

[issue18156] Add an 'attr' attribute to AttributeError

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18119] urllib.FancyURLopener does not treat URL fragments correctly

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue18110] Nested set comprehensions in class scope fail

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue18113] Memory leak in curses.panel

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18159] ConfigParser getters not available on SectionProxy

2013-06-08 Thread João Bernardo
João Bernardo added the comment: > Overriding __getattr__ doesn't look like the best solution Another idea would be to allow the proxy class to be selectable, but this would require the user to do much more coding for this simple thing... I believe a proxy should be dynamic enough to avoid hav

[issue8902] add datetime.time.now() for consistency

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15528] Better support for finalization with weakrefs

2013-06-08 Thread Richard Oudkerk
Richard Oudkerk added the comment: > PJE suggests importing atexit and registering finalize only when it's > actually used. I guess this would be the easiest workaround. Done. -- status: open -> closed ___ Python tracker

[issue18143] ssl.get_default_verify_paths()

2013-06-08 Thread Christian Heimes
Christian Heimes added the comment: How about a single return value: DefaultVerifyPaths = collections.namedtuple("DefaultVerifyPaths", "cafile capath openssl_cafile_env openssl_cafile openssl_capath_env openssl_capath") -- ___ Python tracker

[issue18042] Provide enum.unique class decorator

2013-06-08 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18042] Provide enum.unique class decorator

2013-06-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: +1 for the decorator! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Eli Bendersky
Eli Bendersky added the comment: I sent a fresh review - nothing major; it's very near commit readiness now. Additional changes can be done after the initial commit. We have time until 3.4 beta (November 2013) to tweak stuff (and the documentation whenever...) -- _

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Ethan Furman added the comment: Good idea, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Eli Bendersky
Eli Bendersky added the comment: Nick prudently moved the unique discussion to its own issue - 18042. Let's get the initial implementation & docs committed first (without unique in the implementation, although it's fine to have it as an example in the docs for now), close this issue, and then

[issue1772673] Replacing char* with const char*

2013-06-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17375] Add docstrings to methods in the threading module

2013-06-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Ethan Furman added the comment: So, which is better? To have a @unique class decorator as part of the module, or to have a UniqueEnum recipe in the docs? A decorator is immediately usable, but requires remembering an extra line of code. An example requires being put into a local utility modu

[issue15528] Better support for finalization with weakrefs

2013-06-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6ad9d7468f7 by Richard Oudkerk in branch 'default': Issue #15528: Delay importing atexit until weakref.finalize() used. http://hg.python.org/cpython/rev/d6ad9d7468f7 -- ___ Python tracker

[issue18143] ssl.get_default_verify_paths()

2013-06-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your "raw" parameter is one too many IMO. You should find a way to present all relevant information in a single API call. -- ___ Python tracker ___

[issue7796] No way to find out if an object is an instance of a namedtuple

2013-06-08 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue17343] Add a version of str.split which returns an iterator

2013-06-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue16715] Get rid of IOError. Use OSError instead

2013-06-08 Thread koobs
koobs added the comment: Apologies for the noise Terry, rebuilding passes. Unsetting versions: 3.3 Is the failure on the build I reported worth opening an issue for? -- versions: -Python 3.3 ___ Python tracker

[issue18111] Add a default argument to min & max

2013-06-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue16715] Get rid of IOError. Use OSError instead

2013-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't think so. The idle test, test_idle, passed. The patch did not even affect any of the three idle files that it currently tests. Just because a commit triggers a test does not mean that it is the cause of any failure that happens. The log says the failur

[issue15528] Better support for finalization with weakrefs

2013-06-08 Thread Łukasz Langa
Łukasz Langa added the comment: Your patch leaks references with subinterpreters, which was exposed by functools.singledispatch using weakref. While the actual bug is in atexit (which doesn't properly unregister on subinterpreter termination), now all uses of weakref leak. Context: http://mai

[issue16715] Get rid of IOError. Use OSError instead

2013-06-08 Thread koobs
koobs added the comment: Commit to 3.3 broke at least my FreeBSD buildbot: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%20dtrace%203.3/builds/641/steps/test/logs/stdio Also setting +Version: Python 3.3 on this. -- nosy: +koobs versions: +Python 3.3 ___

[issue18129] Fatal Python error: Cannot recover from stack overflow.

2013-06-08 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18112] PEP 442 implementation

2013-06-08 Thread Phil Connell
Changes by Phil Connell : -- nosy: +isoschiz, pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue18111] Add a default argument to min & max

2013-06-08 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Ethan Furman added the comment: Apologies for the noise -- was having trouble getting the correct patch attached. :/ -- Added file: http://bugs.python.org/file30506/pep-0435.09.stoneleaf.patch ___ Python tracker

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Changes by Ethan Furman : Removed file: http://bugs.python.org/file30505/pep-0435.08.stoneleaf.patch ___ Python tracker ___ ___ Python-bugs-li

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Changes by Ethan Furman : Added file: http://bugs.python.org/file30505/pep-0435.08.stoneleaf.patch ___ Python tracker ___ ___ Python-bugs-list

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Changes by Ethan Furman : Removed file: http://bugs.python.org/file30504/pep-0435.08.stoneleaf.patch ___ Python tracker ___ ___ Python-bugs-li

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Ethan Furman added the comment: Hopefully the final bit of code, plus docs. Code changes: _names_ are reserved Doc changes (different from the PEP): examples of AutoEnum, UniqueEnum, and OrderedEnum -- Added file: http://bugs.python.org/file30504/pep-0435.08.stoneleaf.patch