[issue23103] ipaddress should be Flyweight

2014-12-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which makes IPv4Address and IPv6Address more lightweight (for other classes the size is not so important). It makes _version the class attribute and adds __slots__. -- keywords: +patch resolution: wont fix - stage: - patch review

[issue23108] pysha3 fails with obscure internal error

2014-12-24 Thread Lukas Barth
New submission from Lukas Barth: Hi! Since there is no separate bug tracker for pysha3 (and it is being discussed in some other bug on this tracker), I figured that this is the right place to file this bug. I hope I'm right. I'm trying to import pysha3, and it fails with the error

[issue23109] French quotes in the documentation are often ungrammatical

2014-12-24 Thread Clément
New submission from Clément: From https://docs.python.org/3/howto/unicode.html: For a while people just wrote programs that didn’t display accents. In the mid-1980s an Apple II BASIC program written by a French speaker might have lines like these: PRINT FICHIER EST COMPLETE. PRINT

[issue433030] SRE: Atomic Grouping (?...) is not supported

2014-12-24 Thread irdb
Changes by irdb dalba.w...@gmail.com: -- nosy: +irdb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue433030 ___ ___ Python-bugs-list mailing list

[issue23109] French quotes in the documentation are often ungrammatical

2014-12-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +haypo, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23109 ___ ___

[issue23108] pysha3 fails with obscure internal error

2014-12-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: pysha3 has been compiled against a debug build of Python and you are running an non-debug one. -- nosy: +benjamin.peterson resolution: - third party status: open - closed ___ Python tracker

[issue23108] pysha3 fails with obscure internal error

2014-12-24 Thread Lukas Barth
Lukas Barth added the comment: D'Oh. Thanks for the hint. So, is it on purpose that there is some piece of software that's only working on debug builds installable via pip? There was no warning whatsoever when I installed pysha3 via pip.. -- resolution: third party - status: closed -

[issue23109] French quotes in the documentation are often ungrammatical

2014-12-24 Thread R. David Murray
R. David Murray added the comment: Heh, I never claimed I understood French, but none of our French speakers decided to review my fake-french examples :) (I can't speak to the examples from the unicode howto.) -- nosy: +r.david.murray ___ Python

[issue23108] pysha3 fails with obscure internal error

2014-12-24 Thread R. David Murray
R. David Murray added the comment: I doubt that it is on purpose, but it is not a CPython bug. You have one bug in pysha3 (a third party product) and one possible bug (I don't know enough to know if it is one) in pip, which has its own tracker (we track *ensurepip* bugs here, but not pip

[issue23110] Document if argument to Py_SetPath requires static storage.

2014-12-24 Thread Robert Snoeberger
New submission from Robert Snoeberger: The documentation for the Py_SetPath API does not indicate if the argument should point to a wide character array in static storage. However, the documentation for Py_GetPath says, The returned string points into static storage; the caller should not

[issue23110] Document if argument to Py_SetPath requires static storage.

2014-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 08972a47f710 by Benjamin Peterson in branch '3.4': doucment that Py_SetPath copies its argument (closes #23110) https://hg.python.org/cpython/rev/08972a47f710 New changeset edf4ea3cfe68 by Benjamin Peterson in branch 'default': merge 3.4 (#23110)

[issue19776] Provide expanduser() on Path objects

2014-12-24 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19776 ___ ___ Python-bugs-list

[issue23103] ipaddress should be Flyweight

2014-12-24 Thread Eric Snow
Eric Snow added the comment: @sbromberger, there's no need for your own package. Just use something like this: _addr_cache = {} def ipaddr(addr): try: return _addr_cache[addr] except KeyError: _addr_cache[addr] = ipaddress.ipaddress(addr) return

[issue23103] ipaddress should be Flyweight

2014-12-24 Thread Josh Rosenberg
Josh Rosenberg added the comment: Serhiy: I believe you need to add a bunch of __slots__ = () to various base classes in the module, even though they lack member variables. Every link in the inheritance chain must declare __slots__, or the child class will have __dict__ and __weakref__.

[issue22269] Resolve distutils option conflicts with priorities

2014-12-24 Thread sorin
sorin added the comment: Can't we do something about this bug? I think that most python devs are ignoring the severity of this one, especially because it does break distribution of packages (or at least their testing) On OS X the experience is awful as --user doesn't work at all and as a

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2014-12-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22231 ___ ___ Python-bugs-list mailing

[issue23109] French quotes in the documentation are often ungrammatical

2014-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 55462210ba2d by Benjamin Peterson in branch '2.7': improve incorrect French (#23109) https://hg.python.org/cpython/rev/55462210ba2d New changeset 2c87dd2d821e by Benjamin Peterson in branch '3.4': improve incorrect French (#23109)

[issue23111] ftplib.FTP_TLS's default constructor does not work with TLSv1.1 or TLSv1.2

2014-12-24 Thread varde
New submission from varde: When trying to connect to a server which only supports TLS version 1.1 or 1.2, the following error is raised: ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:598) For some reason, the SSL version is set to ssl.PROTOCOL_TLSv1 before

[issue23109] French quotes in the documentation are often ungrammatical

2014-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 181dfe9288d4 by Benjamin Peterson in branch '3.4': update correct French examples (#23109) https://hg.python.org/cpython/rev/181dfe9288d4 -- ___ Python tracker rep...@bugs.python.org

[issue23040] Better documentation for the urlencode safe parameter

2014-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 126aff7c6a33 by R David Murray in branch '3.4': #23040: Clarify treatment of encoding and errors when component is bytes. https://hg.python.org/cpython/rev/126aff7c6a33 New changeset 367ba031a743 by R David Murray in branch 'default': Merge:

[issue23040] Better documentation for the urlencode safe parameter

2014-12-24 Thread R. David Murray
R. David Murray added the comment: Thanks, Wojtek. -- resolution: - fixed stage: - resolved status: open - closed versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23040

[issue22932] email.utils.formatdate uses unreliable time.timezone constant

2014-12-24 Thread R. David Murray
R. David Murray added the comment: Is there any way to write a test for this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22932 ___ ___

[issue1703178] link_objects in setup.cfg crashes build

2014-12-24 Thread R. David Murray
R. David Murray added the comment: This issue is marked for 2.7, 3.4, and 3.5, but the test runs only on 3.5. -- assignee: - eric.araujo nosy: +r.david.murray stage: commit review - patch review ___ Python tracker rep...@bugs.python.org

[issue22932] email.utils.formatdate uses unreliable time.timezone constant

2014-12-24 Thread Akira Li
Changes by Akira Li 4kir4...@gmail.com: -- nosy: +akira ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22932 ___ ___ Python-bugs-list mailing list

[issue22673] document the special features (eg: fdclose=False) of the standard streams

2014-12-24 Thread Akira Li
Akira Li added the comment: Two minor details: 1. It is possible that `fileno(stdout) != 1` even in C [1]. I don't know what happens if the code from the answer is run on Windows. In principle, it may break eryksun's workaround. I don't know how likely it is in practice. 2. you