[issue19193] Improve cross-references in tutorial

2013-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset ac826284fdd1 by Serhiy Storchaka in branch '2.7': Issue #19193: Improved cross-references in the tutorial. http://hg.python.org/cpython/rev/ac826284fdd1 New changeset 012380d57e44 by Serhiy Storchaka in branch '3.3': Issue #19193: Improved

[issue19193] Improve cross-references in tutorial

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Georg for the review. -- assignee: docs@python - serhiy.storchaka resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue19190] Improve cross-references in builtins documentation.

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses more Georg's comments. -- Added file: http://bugs.python.org/file32011/refs.builtins_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19190

[issue19196] Improve cross-references in distutils documentation

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Georg's comments. -- Added file: http://bugs.python.org/file32012/refs.distutils_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19196

[issue19158] BoundedSemaphore.release() subject to races

2013-10-09 Thread STINNER Victor
STINNER Victor added the comment: You should mention the change in Misc/NEWS. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19158 ___ ___

[issue19199] Remove PyThreadState.tick_counter field

2013-10-09 Thread Armin Rigo
Armin Rigo added the comment: Better remove this field if its value is now useless anyway. If someone needs it again for a similar reason, he can contribute a patch like I did in 2002 :-) -- ___ Python tracker rep...@bugs.python.org

[issue19165] Change formatter warning to DeprecationWarning in 3.5

2013-10-09 Thread Esa Peuha
Esa Peuha added the comment: The wanted patch seems to be very simple: change PendingDeprecationWarning to DeprecationWarning on line 24 of Lib/formatter.py but only for Python 3.5 (i.e. no need to do anything until 3.4 is released). On a related note, should formatter be added to PEP 4?

[issue19202] Additions to docs

2013-10-09 Thread Esa Peuha
New submission from Esa Peuha: Here are some additions to documentation of a few functions: all, any: alternative definitions using functools.reduce enumerate: alternative definition using zip and itertools.count sum: equivalent definition using functools.reduce and operator.add

[issue19202] Additions to docs

2013-10-09 Thread Georg Brandl
Georg Brandl added the comment: Most of these changes should not be applied: the alternate equivalents in terms of reduce() will not help understanding, Equivalents for reduce() may be useful, but I would limit them to one per case, possibly even just one function that covers both cases.

[issue19195] Improve cross-references in C API

2013-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9b855a701e28 by Serhiy Storchaka in branch '2.7': Issue 19195: Improved cross-references in C API documentation. http://hg.python.org/cpython/rev/9b855a701e28 New changeset f0491617b098 by Serhiy Storchaka in branch '3.3': Issue 19195: Improved

[issue19190] Improve cross-references in builtins documentation.

2013-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7565df5939de by Serhiy Storchaka in branch '2.7': Issue #19190: Improve cross-references in builtin types and functions documentation. http://hg.python.org/cpython/rev/7565df5939de New changeset 207e1e1cb17a by Serhiy Storchaka in branch '3.3':

[issue19196] Improve cross-references in distutils documentation

2013-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset e0b9e0ed561a by Serhiy Storchaka in branch '2.7': #19196: Improved cross-references in distutils documentation. http://hg.python.org/cpython/rev/e0b9e0ed561a New changeset 0879b60de41f by Serhiy Storchaka in branch '3.3': #19196: Improved

[issue19195] Improve cross-references in C API

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the review Georg. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19195

[issue19190] Improve cross-references in builtins documentation.

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the review Georg. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19190

[issue19196] Improve cross-references in distutils documentation

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the review Georg. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19196

[issue19194] Improve cross-references in fcntl documentation

2013-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 372abcca25fc by Serhiy Storchaka in branch '2.7': #19194: Improved cross-references in the fcntl module documentation. http://hg.python.org/cpython/rev/372abcca25fc New changeset 9015a84d694e by Serhiy Storchaka in branch '3.3': #19194: Improved

[issue19194] Improve cross-references in fcntl documentation

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the review Georg. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19194

[issue19203] Improve cross-references in curses howto

2013-10-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which fixes internal references in the howto of the curses module. -- assignee: docs@python components: Documentation files: refs.curses-howto.patch keywords: patch messages: 199291 nosy: akuchling, docs@python, serhiy.storchaka

[issue18758] Fix internal references in the documentation

2013-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Improve cross-references in curses howto ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18758 ___

[issue19203] Improve cross-references in curses howto

2013-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file32014/refs.curses-howto.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19203 ___

[issue19203] Improve cross-references in curses howto

2013-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file32015/refs.curses-howto.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19203 ___

[issue18758] Fix internal references in the documentation

2013-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Improve cross-references in urllib documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18758 ___

[issue19204] Improve cross-references in urllib documentation

2013-10-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which fixes internal references in the documentation of the urllib package. -- assignee: docs@python components: Documentation files: refs.urllib.patch keywords: patch messages: 199292 nosy: docs@python, orsenthil, serhiy.storchaka

[issue19199] Remove PyThreadState.tick_counter field

2013-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ce0102e4c1f by Victor Stinner in branch 'default': Close #19199: Remove ``PyThreadState.tick_counter`` field http://hg.python.org/cpython/rev/3ce0102e4c1f -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open

[issue19205] Don

2013-10-09 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: christian.heimes priority: normal severity: normal status: open title: Don ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19205 ___

[issue19206] Support disabling file I/O when doing traceback formatting

2013-10-09 Thread Itamar Turner-Trauring
New submission from Itamar Turner-Trauring: In certain situations it is best to avoid doing file I/O. For example, a program that runs in an event loop may wish to avoid any potentially blocking operations; reading from a file usually is fast, but can sometimes take arbitrary long. Another

[issue19205] Don't import re and sysconfig in site.py

2013-10-09 Thread Christian Heimes
New submission from Christian Heimes: The site module is loaded at every startup. Nowadays it imports the re and the sysconfig modules. The re module is used for venv config parsing and inside sysconfig. sysconfig is loaded to find the location of the user's site-packages directory.

[issue19205] Don't import re and sysconfig in site.py

2013-10-09 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- keywords: +patch Added file: http://bugs.python.org/file32017/site_no_re.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19205 ___

[issue19207] Improve cross-references in os documentation

2013-10-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which fixes internal references in the documentation of the os, os.path and posix modules. -- assignee: docs@python components: Documentation files: refs.os.patch keywords: patch messages: 199296 nosy: docs@python, loewis,

[issue18758] Fix internal references in the documentation

2013-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Improve cross-references in os documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18758 ___

[issue19200] grammar in forkserver docs

2013-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0f3d18d79fd by Georg Brandl in branch 'default': Closes #19200: small grammar fix in multiprocessing docs. Thanks to Elazar Gershuni. http://hg.python.org/cpython/rev/c0f3d18d79fd -- nosy: +python-dev resolution: - fixed stage: -

[issue19208] Bas64.decodestring() returns data instead of throwing exception

2013-10-09 Thread Tymoteusz Paul
New submission from Tymoteusz Paul: What happens (and how to reproduce): import base64 str = GET http://www.google.com.hk/search?q=hotels+near+airportpws=1igu=1ip=0.0.0.0safe=imagesgl=CNgll=39.913889,116.391667near=chinahl=zh-CN HTTP/1.0\nContent-Length: 0\nUser-Agent: Opera/9.80 (X11; Linux

[issue18758] Fix internal references in the documentation

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here is a patch with small changes which doesn't worth separated issue. -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file32019/refs.patch ___ Python tracker

[issue18758] Fix internal references in the documentation

2013-10-09 Thread Georg Brandl
Georg Brandl added the comment: Looks good, except that buffer doesn't really correspond to bytearray. No memoryview involved there? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18758

[issue18758] Fix internal references in the documentation

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No. BytesWarning is related only to bytes and bytearray. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18758 ___

[issue18758] Fix internal references in the documentation

2013-10-09 Thread Georg Brandl
Georg Brandl added the comment: OK then -- so much the better. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18758 ___ ___ Python-bugs-list

[issue19209] Remove import copyreg from os module

2013-10-09 Thread Christian Heimes
New submission from Christian Heimes: The patch removes import copyreg from the os module and moves the registration of the hooks to copyreg. This speeds up the startup of the interpreter a tiny bit. -- files: os_no_copyreg.patch keywords: patch messages: 199303 nosy: christian.heimes

[issue19209] Remove import copyreg from os module

2013-10-09 Thread Georg Brandl
Georg Brandl added the comment: +1 -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19209 ___ ___ Python-bugs-list mailing

[issue19209] Remove import copyreg from os module

2013-10-09 Thread STINNER Victor
STINNER Victor added the comment: I don't know the copyreg module! Does it have a unit test for the registered os objects? If not, how can it be tested manually? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue19209] Remove import copyreg from os module

2013-10-09 Thread Christian Heimes
Christian Heimes added the comment: import os import pickle pickle.dumps(os.stat(.))

[issue19209] Remove import copyreg from os module

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What will happen when do not register stat_result and statvfs_result at all? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19209

[issue19201] lzma and 'x' mode open

2013-10-09 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19201 ___

[issue19210] Unicode Objects in Tuples

2013-10-09 Thread Stephen Tucker
New submission from Stephen Tucker: If a tuple consists of a single unicode object with non-ASCII characters in it, the printing of the tuple causes the non-ASCII characters to appear correctly as characters. If the tuple contains such a unicode object and anything else (even if it contains

[issue19209] Remove import copyreg from os module

2013-10-09 Thread Christian Heimes
Christian Heimes added the comment: You can still pickle and unpickle the objects but the result is no longer platform-independent as it refers to posix or nt instead of os. import os, pickle, pickletools pickletools.dis(pickle.dumps(os.stat(.))) 0: \x80 PROTO 3 2: cGLOBAL

[issue19097] bool(cgi.FieldStorage(...)) may be False unexpectedly

2013-10-09 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- versions: +Python 3.3, Python 3.4 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19097 ___

[issue19165] Change formatter warning to DeprecationWarning in 3.5

2013-10-09 Thread Brett Cannon
Brett Cannon added the comment: Esa is right; this is a placeholder bug to remind me to do this in Python 3.5. And Esa is also right about adding formatter to PEP 4; I'll reopen the original bug to remind me to do that. -- ___ Python tracker

[issue19165] Change formatter warning to DeprecationWarning in 3.5

2013-10-09 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- dependencies: +Deprecate the formatter module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19165 ___

[issue18716] Deprecate the formatter module

2013-10-09 Thread Brett Cannon
Brett Cannon added the comment: Need to add a note to PEP 4. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18716 ___ ___

[issue19097] bool(cgi.FieldStorage(...)) may be False unexpectedly

2013-10-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: Addressing storchaka's review comments. Here is the updated patch. -- Added file: http://bugs.python.org/file32021/19092-v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19097

[issue19202] Additions to docs

2013-10-09 Thread Esa Peuha
Esa Peuha added the comment: How would you give a single definition of reduce() that helps people to understand both 2-arg and 3-arg variants? The way it is implemented in C is impossible to duplicate in pure Python; the best you could do is a hack that works unless someone *tries* to break

[issue19210] Unicode Objects in Tuples

2013-10-09 Thread Eric V. Smith
Eric V. Smith added the comment: Can you provide some code which demonstrates this? It's easier to address this if we have known working (or non-working) examples. Thanks. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org

[issue19202] Additions to docs

2013-10-09 Thread Georg Brandl
Georg Brandl added the comment: What about def reduce(function, iterable, initializer=None): it = iter(iterable) if initializer is None: value = next(it) else: value = initializer for element in it: value = function(value, element) return value

[issue19205] Don't import re and sysconfig in site.py

2013-10-09 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19205 ___ ___ Python-bugs-list mailing

[issue19209] Remove import copyreg from os module

2013-10-09 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19209 ___ ___ Python-bugs-list mailing

[issue9548] locale can be imported at startup but relies on too many library modules

2013-10-09 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9548 ___ ___ Python-bugs-list mailing

[issue19210] Unicode Objects in Tuples

2013-10-09 Thread Peter Otten
Peter Otten added the comment: Be aware that for a 1-tuple the trailing comma is mandatory: print (uäöü) # this is a string despite the suggestive parens äöü print (uäöü,) # this is a tuple (u'\xe4\xf6\xfc',) -- nosy: +peter.otten ___ Python

[issue19208] Bas64.decodestring() returns data instead of throwing exception

2013-10-09 Thread R. David Murray
R. David Murray added the comment: You are looking for the (new in Python 3) 'validate' option of b64decode: base64.b64decode(bGET http://www.google.com.hk/search?q=hotels+near+airportpws=1igu=1ip=0.0.0.0safe=imagesgl=CNgll=39.913889,116.391667near=chinahl=zh-CN;, validate=True) Traceback

[issue1507011] Use a set to keep interned strings

2013-10-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- superseder: - Use a set for interned strings ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1507011 ___

[issue19187] Use a set for interned strings

2013-10-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This exact issue was discussed in #19187 and #7224 many years ago. -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19187 ___

[issue19187] Use a set for interned strings

2013-10-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The first reference above should have been to #1507011. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19187 ___

[issue19211] from relative_module import seems to import wrong module

2013-10-09 Thread Ethan Glasser-Camp
New submission from Ethan Glasser-Camp: I have a library lib. lib/__init__.py does the following: from .subdir import a from . import a import sys print(sys.modules['lib.a']) This code fails with a KeyError. It seems that despite the second line, lib.a does not get imported.

[issue19210] Unicode Objects in Tuples

2013-10-09 Thread Eric V. Smith
Eric V. Smith added the comment: This isn't strictly related to printing a tuple. It's the difference between str() and repr(): print (uäöü) # uses str äöü print repr(uäöü) u'\xe4\xf6\xfc' When the tuple is printed, it uses the repr of its constituent parts. --

[issue19209] Remove import copyreg from os module

2013-10-09 Thread STINNER Victor
STINNER Victor added the comment: Can't we modify the qualified name instead? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19209 ___ ___

[issue19211] from relative_module import seems to import wrong module

2013-10-09 Thread R. David Murray
R. David Murray added the comment: I believe that this is because once you execute the first line, 'a' exists as a name in the 'lib' namespace, so 'from . import a' sees that 'a' already exists, and does nothing. The same import sequence in abc.py will put 'a' into the 'abc' namespace, but

[issue19209] Remove import copyreg from os module

2013-10-09 Thread Georg Brandl
Georg Brandl added the comment: But for pickling something, you have to import pickle, which always imports copyreg anyway, doesn't it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19209

[issue19211] from relative_module import seems to import wrong module

2013-10-09 Thread Ethan Glasser-Camp
Ethan Glasser-Camp added the comment: Thanks for the explanation. I had a feeling I was overlooking something obvious but couldn't figure out what it was. Feel free to close as invalid. -- ___ Python tracker rep...@bugs.python.org

[issue19158] BoundedSemaphore.release() subject to races

2013-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 369fabf9b2ba by Tim Peters in branch '3.3': Issue 19158: a rare race in BoundedSemaphore could allow .release() too often. http://hg.python.org/cpython/rev/369fabf9b2ba New changeset 9ddc33174ddf by Tim Peters in branch 'default': Issue 19158: a

[issue19209] Remove import copyreg from os module

2013-10-09 Thread Christian Heimes
Christian Heimes added the comment: Exactly, the pickle module depends on the copyreg module. It's a submodule that acts as a registry for pickle-related lookups and hooks. My patch just moves the registration of these hooks out of the os module into the copyreg module. --

[issue19211] from relative_module import seems to import wrong module

2013-10-09 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19211 ___

[issue19209] Remove import copyreg from os module

2013-10-09 Thread Georg Brandl
Georg Brandl added the comment: I don't see a problem with that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19209 ___ ___ Python-bugs-list

[issue19209] Remove import copyreg from os module

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How much this speed up the startup of the interpreter? Proposed patch looks contrary to purpose of the copyreg module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19209

[issue19205] Don't import re and sysconfig in site.py

2013-10-09 Thread Christian Heimes
Christian Heimes added the comment: The site and sysconfig module are too intermingled to remove the import of sysconfig from the site module. However the sysconfig module doesn't use the re module in most cases anymore. The parsing functions for Makefile and pyconfig.h are only used by

[issue19185] Allow multiprocessing Pool initializer to return values

2013-10-09 Thread Matteo Cafasso
Matteo Cafasso added the comment: On 07/10/13 13:32, Richard Oudkerk wrote: Richard Oudkerk added the comment: I think misuse is an exageration. Various functions change some state and return a value that is usually ignored, e.g. os.umask(), signal.signal(). These functions are compliant

[issue19187] Use a set for interned strings

2013-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19187 ___ ___ Python-bugs-list

[issue19187] Use a set for interned strings

2013-10-09 Thread STINNER Victor
STINNER Victor added the comment: Raymond FWIW, I'm dubious that there will be any benefit from this at all. The savings of one-pointer is the dictionary is likely to be insignificant compared to the size of the string object themselves. As I wrote in python-dev, the dictionary is usually

[issue19209] Remove import copyreg from os module

2013-10-09 Thread Christian Heimes
Christian Heimes added the comment: The speedup is minimal but it's a start. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19209 ___ ___

[issue19209] Remove import copyreg from os module

2013-10-09 Thread STINNER Victor
STINNER Victor added the comment: os_no_copyreg.patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19209 ___ ___

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Raymond's patch looks even more cumbersome than previous code. And it doesn't work in some cases: it = itertools.cycle([-2, -1]) class Index: ... def __index__(self): return next(it) ... itertools.repeat(42, times=Index()) repeat(42, -1) --

[issue19209] Remove import copyreg from os module

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think we should tangent code for such tiny benefit. copyreg is lightweight module specially designed to break coupling of the code. -- ___ Python tracker rep...@bugs.python.org

[issue19187] Use a set for interned strings

2013-10-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: In embedded systems, every byte of memory counts It is not just embedded systems. The range 192 KB to 1.5 MB is where typical L2 cache sizes are these days. I would expect that the intern dictionary is accessed very often and much more often than

[issue19187] Use a set for interned strings

2013-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I afraid that adding new parameter to the set_contains_key function will slow down other set operations. It will be better return a key as the result of the function (NULL if not found). -- ___ Python tracker

[issue19185] Allow multiprocessing Pool initializer to return values

2013-10-09 Thread Richard Oudkerk
Richard Oudkerk added the comment: These functions are compliant with POSIX standards and the return values are actually useful, they return the previously set masks and handlers, often are ignored but in complex cases it's good to know their previous state. Yes. But my point was that

[issue16355] inspect.getcomments() does not work in the interactive shell

2013-10-09 Thread R. David Murray
R. David Murray added the comment: Looking at the source, the suppression of errors is clearly intentional. Looking at the change that added the TypeError check, we see this from Jeremy Hilton in March 2002 (9c2ca37bdeec): It appears that getcomments() can get called for classes defined

[issue17134] Use Windows' certificate store for CA certs

2013-10-09 Thread Christian Heimes
Christian Heimes added the comment: The current implementation doesn't check the trust settings and purpose of certs. CertGetCertificateContextProperty() with CERT_ENHKEY_USAGE_PROP_ID returns a ASN.1 structure. I just have to figure out how to parse the CTL_USAGE struct ...

[issue18891] Master patch for content manager addtion to email package.

2013-10-09 Thread R. David Murray
R. David Murray added the comment: Updating the patch to address Stephen's review comments (thanks, Stephen!). The biggest change is adding a MIMEPart class, and renaming MIMEMessage to EmailMessage. Other significant changes are: only moving 'Content-*' headers in 'make' methods, adding

[issue14984] netrc module allows read of non-secured .netrc file

2013-10-09 Thread bruno Piguet
bruno Piguet added the comment: I apologise for coming back to this issue lately, after its closing. I must have misconfigured something in my tracking system. Thank-you everybody for the work done, especiallly the careful handling and documenting of the case only if password is present in

[issue19212] Invitation to connect on LinkedIn

2013-10-09 Thread Caitlin Potter
New submission from Caitlin Potter: LinkedIn Python, I'd like to add you to my professional network on LinkedIn. - Caitlin Caitlin Potter Freelance Developer at freelance software developer self employed Toronto, Canada Area Confirm that you know Caitlin Potter:

[issue19213] platform.linux_distribution detects Oracle Linux as Red Hat Enterprise Linux

2013-10-09 Thread Alexander Boyd
New submission from Alexander Boyd: Tested on 3.3.2 and 2.6.6. On Oracle Linux, platform.linux_distribution detects the current distribution as Red Hat Enterprise Linux: import platform platform.linux_distribution() ('Red Hat Enterprise Linux Server', '6.2', 'Santiago') I would have

[issue9548] locale can be imported at startup but relies on too many library modules

2013-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch for 3.4. -- nosy: +benjamin.peterson, christian.heimes versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9548

[issue9548] locale can be imported at startup but relies on too many library modules

2013-10-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file32025/bootlocale2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9548 ___

[issue18785] Add get_body and iter_attachments to provisional email API

2013-10-09 Thread R. David Murray
R. David Murray added the comment: Serhiy's review comments were addressed by changes made on the master patch issue. Closing this one in favor of that one. -- resolution: - out of date stage: patch review - committed/rejected superseder: - Master patch for content manager addtion

[issue18785] Add get_body and iter_attachments to provisional email API

2013-10-09 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18785 ___ ___

[issue18860] Add content manager API to email package

2013-10-09 Thread R. David Murray
R. David Murray added the comment: Closing in favor of the master patch issue 18891. -- resolution: - out of date stage: patch review - committed/rejected status: open - closed superseder: - Master patch for content manager addtion to email package.

[issue18890] Add a raw_data_manager content manager to the email package.

2013-10-09 Thread R. David Murray
R. David Murray added the comment: Closing in favor of the master patch issue 18891. -- resolution: - out of date stage: patch review - committed/rejected status: open - closed superseder: - Master patch for content manager addtion to email package.

[issue14984] netrc module allows read of non-secured .netrc file

2013-10-09 Thread R. David Murray
R. David Murray added the comment: Nothing stops us from have a post-mortem discussion on a closed issue :) The rationale for only doing the check for .netrc is that that is backward-compatibility-wise fairly safe, because other tools will already be insisting on the same security. But for

[issue19212] Invitation to connect on LinkedIn

2013-10-09 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg199343 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19212 ___

[issue19212] Spam

2013-10-09 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - closed title: Invitation to connect on LinkedIn - Spam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19212 ___

[issue17748] Condition.wait timeout can't be set to more than 50 ms

2013-10-09 Thread Bill Sobel
Bill Sobel added the comment: I'd like to suggest a easy fix here (I saw this was closed, but the posters were asking for a behavior change). With this fix there is no behavior change to callers or new parameters to the API. if remaining = 4.0: maxDelay = 1 else: maxDelay = .05

[issue19213] platform.linux_distribution detects Oracle Linux as Red Hat Enterprise Linux

2013-10-09 Thread R. David Murray
R. David Murray added the comment: You might expect that, but platform.linux_distribution is basing its report on what is in /etc/xxx-version or xxx-release. Most likely this is an Oracle bug, although they might be providing both their own version file and the version file for the RH

[issue19210] Unicode Objects in Tuples

2013-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, this is a feature, even though it may seem an odd one. -- nosy: +pitrou resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19210

  1   2   >