[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I looked into the idea of treating networks as containers of interface objects rather than addresses - it turns out it gets messy very quickly, because you definitely want your network address and broadcast address to be ordinary addresses,

[issue15089] Add gzip support to urllib.request.retrieve()

2012-06-17 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: Enable retrieve() to take advantage of data compression in HTTP requests. * In the request, add the header Accept-Encoding: gzip. * In the response, check the headers for Content-Encoding: gzip. * Convert the downloaded content

[issue15090] Add etag support to urllib.request.urlretrieve()

2012-06-17 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: Add an optional argument to urlretrieve to specify an etag for previously downloaded content: urlretrieve('example.com/data.txt', etag=105800d-4af6-4c29d893d69c0) That optional argument would add the following to the

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset cacf3b1e20da by Nick Coghlan in branch 'default': Issue #14814: Add first draft of PEP 3144 ipaddress module documentation (initial patch by Sandro Tosi) http://hg.python.org/cpython/rev/cacf3b1e20da --

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: OK, dropping to deferred blocker status, as I think the docs are now good enough for beta 1. We still want to get the public methods and properties for the various objects documented during the beta period, though. I'm not sure how best to

[issue14055] Implement __sizeof__ for etree Element

2012-06-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Given how C's sizeof works, it may be debatable whether it's natural to expect that sys.getsizeof should be recursive. If you have a struct with pointers (say, char*) in C, and you do sizeof, the string length isn't considered, either.

[issue14928] Fix importlib bootstrapping issues

2012-06-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: IIUC, this patch will cause importlib.h to always be built when building from source, since _freeze_importlib will be built. Is it then the plan to drop importlib.h from version control? If so, the Windows build process would need to be

[issue6727] ImportError when package is symlinked on Windows

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset afe67ea94bc6 by Jason R. Coombs in branch 'default': Adding test from issue6727 demonstrating that symlink import issue does not occur here in 3.3 http://hg.python.org/cpython/rev/afe67ea94bc6 --

[issue6727] ImportError when package is symlinked on Windows

2012-06-17 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___

[issue15090] Add etag support to urllib.request.urlretrieve()

2012-06-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15090 ___ ___ Python-bugs-list

[issue15089] Add gzip support to urllib.request.retrieve()

2012-06-17 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Isn't this a duplicate of issue1508475? -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15089 ___

[issue15044] _dbm not building on Fedora 17

2012-06-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Patch works for me, and looks pretty safe for other platforms. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15044 ___

[issue6727] ImportError when package is symlinked on Windows

2012-06-17 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I don't know what changed in 3.3 to address this issue; likely candidates are the VS 2010 upgrade or the rewrite of the import machinery. In either case, best I can tell, 3.3 is no longer implicated. --

[issue15087] Add gzip function to read gzip'd strings

2012-06-17 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Why not simple gzip.GzipFile(fileobj=u).read()? -- nosy: +storchaka status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15087

[issue15044] _dbm not building on Fedora 17

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e2be1f43beed by Nick Coghlan in branch '3.2': Issue #15044: Handle Fedora 17's approach to ndbm compatibility http://hg.python.org/cpython/rev/e2be1f43beed New changeset 1f6c23ed8218 by Nick Coghlan in branch

[issue6727] ImportError when package is symlinked on Windows

2012-06-17 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: It seems that by adding the test to the default branch, the buildbots are now broken for Unix systems (they're failing the test). I'm going to await the results from the Windows buildbots, and then skip the tests on the failing platforms.

[issue15044] _dbm not building on Fedora 17

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4d62f788aa19 by Nick Coghlan in branch '2.7': Issue #15044: Handle Fedora 17's approach to ndbm compatibility (backport from 3.x) http://hg.python.org/cpython/rev/4d62f788aa19 --

[issue15044] _dbm not building on Fedora 17

2012-06-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I committed the fix to at least get things building again, but this should probably get a NEWS entry (since builds that would have previously used gdbm directly will now use it in ndbm compatibility mode instead) --

[issue14055] Implement __sizeof__ for etree Element

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 093dec81ea1f by Martin v. Löwis in branch 'default': Issue #14055: Add __sizeof__ support to _elementtree. http://hg.python.org/cpython/rev/093dec81ea1f -- nosy: +python-dev

[issue14055] Implement __sizeof__ for etree Element

2012-06-17 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14055 ___

[issue15044] _dbm not building on Fedora 17

2012-06-17 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Yeah, after I submitted the patch, I was unsure if that was a good idea or if it should try and use gdbm in native mode if possible. -- ___ Python tracker rep...@bugs.python.org

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2db5010a610c by Nick Coghlan in branch '3.2': Issue #15043: skip test_gdb if the custom hooks can't be loaded http://hg.python.org/cpython/rev/2db5010a610c -- nosy: +python-dev

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ac2f5067c220 by Nick Coghlan in branch '2.7': Issue #15043: skip test_gdb if the custom hooks can't be loaded (backport from 3.x) http://hg.python.org/cpython/rev/ac2f5067c220 --

[issue15091] ImportError when package is symlinked on Unix

2012-06-17 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: In testing issue6727, I added a test (http://hg.python.org/cpython/rev/afe67ea94bc6) to the default branch. The test passes on Windows, but fails on some of the Unix buildbots. Here's a quick breakdown of where it's passing and failing:

[issue15091] ImportError when package is symlinked on Unix

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 939a68f5d14c by Jason R. Coombs in branch 'default': Disable test on Unix. Causes buildbots to fail. See Issue #15091 http://hg.python.org/cpython/rev/939a68f5d14c -- nosy: +python-dev

[issue6727] ImportError when package is symlinked on Windows

2012-06-17 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I've disabled the test on non-Windows systems and created issue15091 to track the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9456591d0761 by Nick Coghlan in branch 'default': Merge from 3.2 (Issue #15043: skip test_gdb if the custom hooks can't be loaded) http://hg.python.org/cpython/rev/9456591d0761 --

[issue15092] Using enum PyUnicode_Kind

2012-06-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka storch...@gmail.com: Now a string kind declared in different places of code as `enum PyUnicode_Kind`, `int` or `unsigned int`. Working on the codecs optimization, I noticed that sometimes the use of `enum PyUnicode_Kind` gives a little advantage over the

[issue15093] ntpath.isdir returns False for directory symlinks

2012-06-17 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: On Unix: python -c import os; os.mkdir('bar'); os.symlink('bar', 'foo'); print(os.path.isdir('foo')) True On Windows: python -c import os; os.mkdir('bar'); os.symlink('bar', 'foo'); print(os.path.isdir('foo')) False Windows should

[issue13823] xml.etree.ElementTree.ElementTree.write - argument checking

2012-06-17 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13823 ___ ___ Python-bugs-list

[issue14973] restore python2 unicode literals in ur strings

2012-06-17 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: See also http://mail.python.org/pipermail/python-list/2012-June/625406.html -- nosy: +aronacher, vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14973

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-06-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Added new section to devguide in http://hg.python.org/devguide/rev/9fee8e6c2619 -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15091] ImportError when package is symlinked on Unix

2012-06-17 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I should point out that some of those failures (e.g. x86 Solaris 11 3.x) weren't triggered by the change, but many were. -- ___ Python tracker rep...@bugs.python.org

[issue14928] Fix importlib bootstrapping issues

2012-06-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: IIUC, this patch will cause importlib.h to always be built when building from source, since _freeze_importlib will be built. Yes indeed. That's not deliberate, but because of how Makefile dependencies are specified (importlib.h needs the

[issue15091] ImportError when package is symlinked on Unix

2012-06-17 Thread Waldemar Kornewald
Changes by Waldemar Kornewald wkornew...@gmail.com: -- nosy: +wkornewald ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15091 ___ ___

[issue15094] Incorrectly placed #endif in _tkinter.c.

2012-06-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka storch...@gmail.com: #endif is placed incorrectly in _tkinter.c. As a result, braces are unbalanced when TCL_UTF_MAX != 3. This is Python 3.3 only error. There are no tests yet. Just wait a few years until TCL will support non-BMP characters or use a time

[issue14928] Fix importlib bootstrapping issues

2012-06-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Yes indeed. That's not deliberate, but because of how Makefile dependencies are specified (importlib.h needs the _freeze_importlib executable to be rebuilt, but it should really depend on the _freeze_importlib.c timestamp). Do you have an

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-06-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Also added an FAQ with the specific ~/.gdbinit entry needed to get it running in http://hg.python.org/devguide/rev/1d81501be702 I did try adding a similar command directly to the gdb invocation, but, as far as I can tell, any commands

[issue15092] Using enum PyUnicode_Kind

2012-06-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15092 ___ ___

[issue15094] Incorrectly placed #endif in _tkinter.c.

2012-06-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15094 ___ ___ Python-bugs-list mailing

[issue15087] Add gzip function to read gzip'd strings

2012-06-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: invalid - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15087 ___

[issue15090] Add etag support to urllib.request.urlretrieve()

2012-06-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: urlretrieve() is the old urllib interface. You probably want to improve the urllib2-inherited urlopen() instead. -- nosy: +orsenthil, pitrou versions: +Python 3.3 -Python 3.4 ___ Python tracker

[issue15089] Add gzip support to urllib.request.retrieve()

2012-06-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - duplicate status: open - closed superseder: - transparent gzip compression in urllib ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15089

[issue15093] ntpath.isdir returns False for directory symlinks

2012-06-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15093 ___ ___

[issue15095] test_imaplib problem - intermittent skips and LOGINDISABLED not reported

2012-06-17 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: When running the test suite on Fedora 17 (and behind a couple of layers of NAT), I see the following problems: Intermittently: skipped Resource 'cyrus.andrew.cmu.edu' is not available Consistently (with a couple of tests updated to use the

[issue15095] test_imaplib problem - intermittent skips and LOGINDISABLED not reported

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4028bb7a5ac2 by Nick Coghlan in branch '3.2': Issue #15095: Use better assertions in test_imaplib http://hg.python.org/cpython/rev/4028bb7a5ac2 New changeset bbe1a2049ca1 by Nick Coghlan in branch 'default': Merge

[issue13455] Reorganize tracker docs in the devguide

2012-06-17 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The attached patch has been committed in 252e2aabc87a, and the wiki pages have been updated to link to the devguide. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue13515] Consistent documentation practices for security concerns and considerations

2012-06-17 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The new theme of the docs should solve the issue about the scary red boxes, but the original report is still valid. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13515

[issue14919] what disables one from adding self to the nosy list

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2171bb071dd6 by Ezio Melotti in branch 'default': #14919: clarify paragraph in the devguide. http://hg.python.org/devguide/rev/2171bb071dd6 -- nosy: +python-dev ___

[issue14919] what disables one from adding self to the nosy list

2012-06-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14919 ___

[issue14469] Python 3 documentation links

2012-06-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14469 ___ ___

[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

2012-06-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I suggest a PEP for 3.4 as the best way forward for this. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13797

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bb63919cde6e by Ezio Melotti in branch '2.7': #14840: Add a bit on the difference between tuples and lists. Initial patch by Zachary Ware. http://hg.python.org/cpython/rev/bb63919cde6e New changeset 3550416d83b3

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-06-17 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the patch! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14840

[issue14215] http://www.python.org/dev/peps/ title is python.org

2012-06-17 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: As the PEPs are development docs, like the Python documentation itself, I wouldn't have *expected* it to be covered by the redesign. Does this require anything more than an update to the PEP index template? --

[issue15096] Drop support for the ur string prefix

2012-06-17 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: When PEP 414 restored support for explicit Unicode literals in Python 3, the ur string prefix was deemed to be a synonym for the r prefix. However, ur in 2.x was only kinda-sorta-raw, since it still supported Unicode escapes: $ python

[issue15096] Drop support for the ur string prefix

2012-06-17 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15096 ___ ___

[issue15096] Drop support for the ur string prefix

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

[issue15096] Drop support for the ur string prefix

2012-06-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15096 ___ ___ Python-bugs-list

[issue14215] http://www.python.org/dev/peps/ title is python.org

2012-06-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I'm expecting the pep2pyramid.py part to change at the very least. However, back on topic, I actually hit the limits of my knowledge of the PEP build process reading that script. As near as I can tell, PEP 0 should have the same title

[issue14215] http://www.python.org/dev/peps/ title is python.org

2012-06-17 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The title for the PEPs seem to be set in the fixfile function, at the line 206. Maybe something like: if pep: title = PEP + pep + -- + title else: title = PEP index works, assuming that only title-less page is the

[issue3665] Support \u and \U escapes in regexes

2012-06-17 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Here is updated (in conforming with PEP 393) patch. In additional octal and hexadecimal escaping cleared, illegal error message for hexadecimal escaping fixed. Added new tests for octal and hexadecimal escaping. -- Added file:

[issue15038] Optimize python Locks on Windows

2012-06-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Ok, I take the lack of negative reviews as a general approvement. I'll improve comments a bit, write the appropriate NEWS item and make a commit soon. -- ___ Python tracker

[issue15096] Drop support for the ur string prefix

2012-06-17 Thread Christian Heimes
Christian Heimes li...@cheimes.de added the comment: +1 Raw unicode strings are rarely used and it's easy to overcome the limitation. I've created a patch that disabled ur'' syntax, updates the docs and adds some tests for u'' syntax. I couldn't find any tests for the syntax ... shame on

[issue15095] test_imaplib problem - intermittent skips and LOGINDISABLED not reported

2012-06-17 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- components: +email nosy: +barry, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15095 ___

[issue15097] Improving wording on the thread-safeness of import

2012-06-17 Thread Merlijn van Deen
New submission from Merlijn van Deen valhall...@gmail.com: http://docs.python.org/library/threading.html#importing-in-threaded-code Currently, the documentation states Firstly, other than in the main module, an import should not have the side effect of spawning a new thread and then waiting

[issue15097] Improving wording on the thread-safeness of import

2012-06-17 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file26037/deadlock.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15097 ___

[issue15097] Improving wording on the thread-safeness of import

2012-06-17 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: Added file: http://bugs.python.org/file26038/deadlock.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15097 ___

[issue15089] Add gzip support to urllib.request.retrieve()

2012-06-17 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/issue15089 ___ ___ Python-bugs-list mailing list

[issue1508475] transparent gzip compression in urllib

2012-06-17 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/issue1508475 ___ ___ Python-bugs-list mailing

[issue15090] Add etag support to urllib.request.urlretrieve()

2012-06-17 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/issue15090 ___ ___ Python-bugs-list mailing list

[issue15097] Improving wording on the thread-safeness of import

2012-06-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: which, I think, fails to make the main point: I disagree. It currently makes it main point, but stops doing so under your rephrasing. The main point of that section is While the import machinery is thread-safe, there are two key

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-06-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Great addition, thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14840 ___ ___

[issue15097] Improving wording on the thread-safeness of import

2012-06-17 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: First off, thank you for your response. The existence of an import lock is deliberately omitted from the text, and the reader is supposed to abide by the restriction as written regardless of the motivation behind it. The entire

[issue15098] TypeError can give a misleading message

2012-06-17 Thread Marco Buccini
New submission from Marco Buccini marcu...@gmail.com: Suppose that you have an instance method that takes 2 arguments: one is required, while the other is a keyword argument. If you call that method without passing the required argument, but instead you only set the keyword argument, then

[issue15098] TypeError can give a misleading message

2012-06-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is fixed in Python3: def foo(a, b=None): ... pass ... foo(b=1) Traceback (most recent call last): File stdin, line 1, in module TypeError: foo() missing 1 required positional argument: 'a' -- nosy: +r.david.murray

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: A small markup error in the doc: in “.. exception:: Custom(ValueError)” (as in “.. class:: SomeThing(BaseThing)”), the parens are supposed to contain the signature for the constructor, not the base classes. (Sorry I’m not replying to the

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Forgot the reference: http://sphinx.pocoo.org/domains.html#directive-py:exception -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___

[issue15082] [httplib] httplib.BadStatusLine on any HTTPS connection in certain unknown cases.

2012-06-17 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/issue15082 ___ ___ Python-bugs-list mailing list

[issue14928] Fix importlib bootstrapping issues

2012-06-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New patch incorporating Martin's and Nick's suggestions. -- Added file: http://bugs.python.org/file26039/cfreeze2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14928

[issue15096] Drop support for the ur string prefix

2012-06-17 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +aronacher, flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15096 ___ ___

[issue14991] Option for regex groupdict() to show only matching names

2012-06-17 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: @rhettinger: The problem with nodefault is that it's negative, so that nodefault=False means that you don't not want the default, if you see what I mean. I think that suppress would be better: mo.groupdict(suppress=True)

[issue15096] Drop support for the ur string prefix

2012-06-17 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15096 ___ ___

[issue15096] Drop support for the ur string prefix

2012-06-17 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I've created a patch that disabled ur'' syntax, updates the docs and adds some tests for u'' syntax. Don't forget tokenize module (see issue15054). -- ___ Python tracker

[issue15087] Add gzip function to read gzip'd strings

2012-06-17 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Thanks. I didn't know that this had already been added to 3.2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15087 ___

[issue12014] str.format parses replacement field incorrectly

2012-06-17 Thread Ben Wolfson
Ben Wolfson wolf...@gmail.com added the comment: I can certainly address those issues---I'll hold off on doing so, though, until it's clearer whether more substantive things come up, so I can just do it in a swoop. -- ___ Python tracker

[issue14991] Option for regex groupdict() to show only matching names

2012-06-17 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: @mrabarnett: That's right--except your tense is wrong. mo.groupdict() has supported the default parameter since the function was first added, way back in 1.5.2. -- ___ Python tracker

[issue14215] http://www.python.org/dev/peps/ title is python.org

2012-06-17 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: As near as I can tell, pep will hold the string value 0 for the PEP index, thus the title should still be getting set. That's why I suspect a templating difference. -- ___ Python tracker

[issue14657] Avoid two importlib copies

2012-06-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e3a984076837 by Antoine Pitrou in branch 'default': Issue #14657: The frozen instance of importlib used for bootstrap is now also the module imported as importlib._bootstrap.

[issue14657] Avoid two importlib copies

2012-06-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, I've committed the patch. I'm closing this issue, but of course potential improvements can be posted under a new issue. -- dependencies: -test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state resolution:

[issue15071] TLS get keys and randoms

2012-06-17 Thread Daniel C.
Daniel C. llaniscud...@gmail.com added the comment: This function solve the problem SSL_tls1_key_exporter http://comments.gmane.org/gmane.comp.encryption.openssl.user/42015 included in the development version of OpenSSL 1.0.1 in the CVS how is the correct way to implement in the python bind?

[issue15071] TLS get keys and randoms

2012-06-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, so it seems the functionality is described in http://tools.ietf.org/html/rfc5705. If I understand correctly, it takes an ASCII label string, an optional context bytestring, and the length of the desired derived key. It then returns a

[issue12014] str.format parses replacement field incorrectly

2012-06-17 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12014 ___ ___ Python-bugs-list