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

2012-06-17 Thread Raymond Hettinger

New submission from Raymond Hettinger :

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 outgoing headers:

"If-None-Match: 105800d-4af6-4c29d893d69c0"

If the site returns a 304 Not Modified, then the full content download isn't 
needed.

--
components: Library (Lib)
messages: 163021
nosy: rhettinger
priority: normal
severity: normal
status: open
title: Add etag support to urllib.request.urlretrieve()
type: enhancement
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-17 Thread Roundup Robot

Roundup Robot  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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-17 Thread Nick Coghlan

Nick Coghlan  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 handle that, though - the interfaces of the v4 and v6 
variants are deliberately very similar, so documenting everything twice seems 
like a rather user hostile thing to do.

--
priority: release blocker -> deferred blocker

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14055] Implement __sizeof__ for etree Element

2012-06-17 Thread Martin v . Löwis

Martin v. Löwis  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.

But I'm certainly fine with making this more clear.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14928] Fix importlib bootstrapping issues

2012-06-17 Thread Martin v . Löwis

Martin v. Löwis  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 adjusted as well (with a separate 
project that is a prerequisite for pythoncore).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6727] ImportError when package is symlinked on Windows

2012-06-17 Thread Roundup Robot

Roundup Robot  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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6727] ImportError when package is symlinked on Windows

2012-06-17 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
versions:  -Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Isn't this a duplicate of issue1508475?

--
nosy: +storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15044] _dbm not building on Fedora 17

2012-06-17 Thread Nick Coghlan

Nick Coghlan  added the comment:

Patch works for me, and looks pretty safe for other platforms.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6727] ImportError when package is symlinked on Windows

2012-06-17 Thread Jason R. Coombs

Jason R. Coombs  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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Why not simple gzip.GzipFile(fileobj=u).read()?

--
nosy: +storchaka
status: pending -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15044] _dbm not building on Fedora 17

2012-06-17 Thread Roundup Robot

Roundup Robot  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 'default':
Merge from 3.2. (Issue #15044: Handle Fedora 17's approach to ndbm 
compatibility)
http://hg.python.org/cpython/rev/1f6c23ed8218

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6727] ImportError when package is symlinked on Windows

2012-06-17 Thread Jason R. Coombs

Jason R. Coombs  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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15044] _dbm not building on Fedora 17

2012-06-17 Thread Roundup Robot

Roundup Robot  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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15044] _dbm not building on Fedora 17

2012-06-17 Thread Nick Coghlan

Nick Coghlan  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)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14055] Implement __sizeof__ for etree Element

2012-06-17 Thread Roundup Robot

Roundup Robot  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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14055] Implement __sizeof__ for etree Element

2012-06-17 Thread Martin v . Löwis

Changes by Martin v. Löwis :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15044] _dbm not building on Fedora 17

2012-06-17 Thread Ross Lagerwall

Ross Lagerwall  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Roundup Robot

Roundup Robot  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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Roundup Robot

Roundup Robot  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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15091] ImportError when package is symlinked on Unix

2012-06-17 Thread Jason R. Coombs

New submission from Jason R. Coombs :

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:

fail:
 x86 Gentoo 3.x
 x86 Gentoo Non-Debug 3.x
 x86 Ubuntu Shared 3.x
 AMD64 FreeBSD 9.0 3.x
 x86 debian parallel 3.x
 x86 RHEL 6 3.x
 ARM Ubuntu 3.x
 x86 Solaris 11 3.x
pass:
 AMD64 Gentoo Wide 3.x
 AMD64 Ubuntu LTS 3.x
 AMD64 OpenIndiana 3.x
 AMD64 Fedora without threads 3.x
 AMD64 Ubuntu LTS bigmem 3.x
 x86 Tiger 3.x
 x86 OpenIndiana 3.x
 x86 FreeBSD 7.2 3.x
 x86 FreeBSD 6.4 3.x

As far as I can tell, the failures don't seem to have an obvious correlation. I 
will be disabling this test for non-Windows boxes, but it's probably worth 
tracking down why the test is failing.

I should also note that this test is included in Python 2.7 and does not fail 
on the Unix.

--
components: Interpreter Core
messages: 163039
nosy: brett.cannon, jason.coombs
priority: normal
severity: normal
status: open
title: ImportError when package is symlinked on Unix
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15091] ImportError when package is symlinked on Unix

2012-06-17 Thread Roundup Robot

Roundup Robot  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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6727] ImportError when package is symlinked on Windows

2012-06-17 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

I've disabled the test on non-Windows systems and created issue15091 to track 
the issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Roundup Robot

Roundup Robot  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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15092] Using enum PyUnicode_Kind

2012-06-17 Thread Serhiy Storchaka

New submission from Serhiy Storchaka :

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 use of int's. Probably this hint allows compiler to better 
utilize the optimizer. The proposed patch replaces all string kind's 
declarations of local variables and private functions to `enum PyUnicode_Kind`. 
If this will not impact significantly on the performance, then at least the 
unification will enhance the readability and will allow to avoid some of the 
errors (missing switch cases).

--
components: Interpreter Core
files: enum_PyUnicode_Kind.patch
keywords: patch
messages: 163043
nosy: storchaka
priority: normal
severity: normal
status: open
title: Using enum PyUnicode_Kind
type: performance
versions: Python 3.3
Added file: http://bugs.python.org/file26033/enum_PyUnicode_Kind.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15093] ntpath.isdir returns False for directory symlinks

2012-06-17 Thread Jason R. Coombs

New submission from Jason R. Coombs :

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 correctly discern the directory-ness of a symlink (especially 
since in Windows, the symlink itself has a directory-ness).

--
components: Windows
messages: 163044
nosy: jason.coombs
priority: normal
severity: normal
status: open
title: ntpath.isdir returns False for directory symlinks
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +flox

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14973] restore python2 unicode literals in "ur" strings

2012-06-17 Thread Vinay Sajip

Vinay Sajip  added the comment:

See also

http://mail.python.org/pipermail/python-list/2012-June/625406.html

--
nosy: +aronacher, vinay.sajip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Nick Coghlan

Nick Coghlan  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15091] ImportError when package is symlinked on Unix

2012-06-17 Thread Jason R. Coombs

Jason R. Coombs  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14928] Fix importlib bootstrapping issues

2012-06-17 Thread Antoine Pitrou

Antoine Pitrou  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 _freeze_importlib
executable to be rebuilt, but it should really depend on the
_freeze_importlib.c timestamp). Do you have an idea to avoid that?

> Is it then the plan to drop importlib.h from version control?

No.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15091] ImportError when package is symlinked on Unix

2012-06-17 Thread Waldemar Kornewald

Changes by Waldemar Kornewald :


--
nosy: +wkornewald

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Serhiy Storchaka

New submission from Serhiy Storchaka :

#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 machine.

--
components: Extension Modules, Tkinter
files: tkinter_endif.patch
keywords: patch
messages: 163050
nosy: storchaka
priority: normal
severity: normal
status: open
title: Incorrectly placed #endif in _tkinter.c.
type: compile error
versions: Python 3.3
Added file: http://bugs.python.org/file26034/tkinter_endif.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14928] Fix importlib bootstrapping issues

2012-06-17 Thread Martin v . Löwis

Martin v. Löwis  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 idea to avoid that?

Recursive make invocation may help. Before running _freeze_importlib,
add '$(MAKE) _freeze_importlib'.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Nick Coghlan

Nick Coghlan  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 specified as arguments run too late to allow 
python-gdb.py to be loaded with the current command line invocation.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15092] Using enum PyUnicode_Kind

2012-06-17 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +haypo
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +loewis

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
resolution: invalid -> out of date
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Antoine Pitrou

Antoine Pitrou  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
resolution:  -> duplicate
status: open -> closed
superseder:  -> transparent gzip compression in urllib

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15093] ntpath.isdir returns False for directory symlinks

2012-06-17 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Nick Coghlan

New submission from Nick Coghlan :

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 improved assertion 
methods for containment testing):

==
FAIL: test_logincapa (test.test_imaplib.RemoteIMAPTest)
--
Traceback (most recent call last):
  File "/home/ncoghlan/devel/py32/Lib/test/test_imaplib.py", line 236, in 
test_logincapa
self.assertIn('LOGINDISABLED', self.server.capabilities)
AssertionError: 'LOGINDISABLED' not found in ('IMAP4REV1', 'LITERAL+', 'ID', 
'ENABLE', 'ACL', 'RIGHTS=KXTE', 'QUOTA', 'MAILBOX-REFERRALS', 'NAMESPACE', 
'UIDPLUS', 'NO_ATOMIC_RENAME', 'UNSELECT', 'CHILDREN', 'MULTIAPPEND', 'BINARY', 
'CATENATE', 'CONDSTORE', 'ESEARCH', 'SORT', 'SORT=MODSEQ', 'SORT=DISPLAY', 
'THREAD=ORDEREDSUBJECT', 'THREAD=REFERENCES', 'ANNOTATEMORE', 'LIST-EXTENDED', 
'WITHIN', 'QRESYNC', 'SCAN', 'XLIST', 'URLAUTH', 'URLAUTH=BINARY', 
'MUPDATE=MUPDATE://MUPDATE.ANDREW.CMU.EDU/', 'AUTH=GSSAPI', 'AUTH=PLAIN', 
'AUTH=ANONYMOUS', 'SASL-IR', 'STARTTLS')

--
messages: 163053
nosy: ncoghlan
priority: normal
severity: normal
status: open
title: test_imaplib problem - intermittent skips and LOGINDISABLED not reported
versions: Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Roundup Robot

Roundup Robot  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 from 3.2 (Issue #15095: Use better assertions in test_imaplib)
http://hg.python.org/cpython/rev/bbe1a2049ca1

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13455] Reorganize tracker docs in the devguide

2012-06-17 Thread Ezio Melotti

Ezio Melotti  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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13515] Consistent documentation practices for security concerns and considerations

2012-06-17 Thread Ezio Melotti

Ezio Melotti  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Roundup Robot

Roundup Robot  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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Ezio Melotti

Changes by Ezio Melotti :


--
resolution:  -> fixed
stage: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14469] Python 3 documentation links

2012-06-17 Thread Ezio Melotti

Changes by Ezio Melotti :


--
type:  -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Nick Coghlan

Nick Coghlan  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Roundup Robot

Roundup Robot  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 by Ezio Melotti in branch '3.2':
#14840: Add a bit on the difference between tuples and lists.  Initial patch by 
Zachary Ware.
http://hg.python.org/cpython/rev/3550416d83b3

New changeset 2fad115408e9 by Ezio Melotti in branch 'default':
#14840: merge with 3.2.
http://hg.python.org/cpython/rev/2fad115408e9

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Ezio Melotti

Ezio Melotti  added the comment:

Fixed, thanks for the patch!

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Michael Foord

Michael Foord  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?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15096] Drop support for the "ur" string prefix

2012-06-17 Thread Nick Coghlan

New submission from Nick Coghlan :

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
Python 2.7.3 (default, Apr 30 2012, 21:18:11) 
[GCC 4.7.0 20120416 (Red Hat 4.7.0-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print(ur'\u03B3')
γ

By contrast, they really are raw strings in 3.x, because the default UTF-8 
source code encoding allows arbitrary Unicode characters to be included 
directly in the literal:

$ ./python
Python 3.3.0a4+ (default:cfbf6aa5c9e3+, Jun 17 2012, 15:25:45) 
[GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> r"γ"
'γ'
>>> "\U03B3"
'γ'
>>> r"\U03B3"
'\\U03B3'
>>> ur"\U03B3"
'\\U03B3'

Rather than reintroducing this weird legacy not-really-raw string behaviour, 
I'd prefer to revert this aspect of the PEP 414 changes completely.

--
components: Interpreter Core
messages: 163062
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Drop support for the "ur" string prefix
type: behavior
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15096] Drop support for the "ur" string prefix

2012-06-17 Thread Nick Coghlan

Changes by Nick Coghlan :


--
priority: normal -> release blocker

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15096] Drop support for the "ur" string prefix

2012-06-17 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15096] Drop support for the "ur" string prefix

2012-06-17 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Nick Coghlan

Nick Coghlan  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" information as is 
available for the other PEPs. It does appear the individual PEPs and the index 
do use differently templates though, so that may be the source of the 
discrepancy.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Ezio Melotti

Ezio Melotti  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 index.

--
nosy: +ezio.melotti

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Serhiy Storchaka

Serhiy Storchaka  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: http://bugs.python.org/file26035/re_unicode_escapes-2.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15038] Optimize python Locks on Windows

2012-06-17 Thread Kristján Valur Jónsson

Kristján Valur Jónsson  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15096] Drop support for the "ur" string prefix

2012-06-17 Thread Christian Heimes

Christian Heimes  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 you! :)

--
keywords: +patch
nosy: +christian.heimes
Added file: http://bugs.python.org/file26036/issue15096-1.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread R. David Murray

Changes by R. David Murray :


--
components: +email
nosy: +barry, r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Merlijn van Deen

New submission from Merlijn van Deen :

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 for that thread in any way. 
Failing to abide by this restriction can lead to a deadlock if the spawned 
thread directly or indirectly attempts to import a module."

which, I think, fails to make the main point: a call to import acquires the 
import lock. A call to import from a second thread will thus block.

As such, I would suggest rephrasing it to something like:
"Firstly, an import acquires the import lock for that thread. Therefore, the 
import should not have the side effect of waiting for a different thread in any 
way, as this can lead to a deadlock if that thread directly or indirectly 
attempts to import a module."

There are two additional points that might be interesting to note:
(1) Any module can be imported. If the import causes a deadlock, that is a bad 
thing. Every module *will* be imported by tools such as nosetests.
(1b) so: never, ever, have code that causes locks in a different thread  in 
module level code witout 'if __name__=="__main__" ' blocks?

(2) The lock is also acquired if a module has already been imported. For 
instance, in

import sys # (1)
def f():
import sys # (2)

the import lock is acquired in (1) /and/ (2).


Adding example code and/or a flow diagram might be a bit too much, but it does 
clarify how easy it is to make this mistake. See the attached for an example 
(both a simple example script, as well as a flow diagram explaining what 
happens).

--
assignee: docs@python
components: Documentation
files: deadlock.py
messages: 163068
nosy: docs@python, valhallasw
priority: normal
severity: normal
status: open
title: Improving wording on the thread-safeness of import
type: enhancement
Added file: http://bugs.python.org/file26037/deadlock.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Merlijn van Deen

Changes by Merlijn van Deen :


Removed file: http://bugs.python.org/file26037/deadlock.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Merlijn van Deen

Changes by Merlijn van Deen :


Added file: http://bugs.python.org/file26038/deadlock.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1508475] transparent gzip compression in urllib

2012-06-17 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Martin v . Löwis

Martin v. Löwis  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
restrictions on threaded imports due to inherent limitations in the way
that thread-safety is provided:"

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.

> Adding example code and/or a flow diagram might be a bit too much,
> but it does clarify how easy it is to make this mistake. See the
> attached for an example (both a simple example script, as well as a
> flow diagram explaining what happens).

The entire notion of an import lock is obsolete. Python 3.3 does not
have that anymore.

--
nosy: +loewis

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Éric Araujo

Éric Araujo  added the comment:

Great addition, thanks!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Merlijn van Deen

Merlijn van Deen  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 notion of an import lock is obsolete. Python 3.3 does not
> have that anymore.

" This warning is still valid but for a different reason " or " this warning is 
no longer valid in 3.3 "?


Assuming the first (which is what I guess based on the fact the deadlock still 
occurs in 3.3), I think the text can still be improved; the current wording 
suggests to me

a) it's OK to wait for a thread as long as you did not create it

and

b) it's OK to import something that waits for a thread as long as you do it 
from the main module

 - while both cases can still lead to a deadlock. 

so, leaving the implementation details out, this is my suggestion:

"Firstly, an import should not have the side effect of waiting for a thread in 
any way. This can lead to a deadlock if that thread directly or indirectly 
attempts to import a module."

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15098] "TypeError" can give a misleading message

2012-06-17 Thread Marco Buccini

New submission from Marco Buccini :

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 you will get a TypeError exception, 
claiming this ...
 -> TypeError: 'method' takes at least 2 arguments (2 given)

(I am referring to this particular method: 
http://www.voidspace.org.uk/python/mock/mock.html#mock.Mock.mock_add_spec)

@patch('xyz.subprocess.Popen')
def test_xyz(self, mocked_popen):
mocked_popen.mock_add_spec(spec_set=True)

I think the right error message should be different, in particular should be 
this:
 -> TypeError: 'method' takes at least 2 arguments (1 given)

--
components: Interpreter Core
messages: 163072
nosy: markon
priority: normal
severity: normal
status: open
title: "TypeError" can give a misleading message
type: behavior
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15098] "TypeError" can give a misleading message

2012-06-17 Thread R. David Murray

R. David Murray  added the comment:

This is fixed in Python3:

>>> def foo(a, b=None):
...   pass
... 
>>> foo(b=1)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: foo() missing 1 required positional argument: 'a'

--
nosy: +r.david.murray
resolution:  -> out of date
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-17 Thread Éric Araujo

Éric Araujo  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 python-checkins email; my diff colorizer 
extension was disabled due to mailer version update so I delete the -checkins 
messages and to read changesets on hgweb now.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-17 Thread Éric Araujo

Éric Araujo  added the comment:

Forgot the reference: 
http://sphinx.pocoo.org/domains.html#directive-py:exception

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 :


--
nosy: +jcea

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14928] Fix importlib bootstrapping issues

2012-06-17 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

New patch incorporating Martin's and Nick's suggestions.

--
Added file: http://bugs.python.org/file26039/cfreeze2.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15096] Drop support for the "ur" string prefix

2012-06-17 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +aronacher, flox

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Matthew Barnett

Matthew Barnett  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)

@larry: If the parameter was "default", would that mean that you could provide 
a different default, such as:

mo.groupdict(default="")

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15096] Drop support for the "ur" string prefix

2012-06-17 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +vinay.sajip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15096] Drop support for the "ur" string prefix

2012-06-17 Thread Serhiy Storchaka

Serhiy Storchaka  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Thanks.  I didn't know that this had already been added to 3.2

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12014] str.format parses replacement field incorrectly

2012-06-17 Thread Ben Wolfson

Ben Wolfson  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Larry Hastings

Larry Hastings  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-06-17 Thread Nick Coghlan

Nick Coghlan  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14657] Avoid two importlib copies

2012-06-17 Thread Roundup Robot

Roundup Robot  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.
http://hg.python.org/cpython/rev/e3a984076837

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14657] Avoid two importlib copies

2012-06-17 Thread Antoine Pitrou

Antoine Pitrou  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:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15071] TLS get keys and randoms

2012-06-17 Thread Daniel C.

Daniel C.  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?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15071] TLS get keys and randoms

2012-06-17 Thread Antoine Pitrou

Antoine Pitrou  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 bytestring of the given length, shared 
between client and server.

The low-level implementation of the ssl module is in Modules/_ssl.c. We 
probably want to add a method to PySSLSocket_Type there. Then in Lib/ssl.py 
there'll have to be a SSLSocket method to call the former method.

Tests should go in Lib/test/test_ssl.py.

--
stage:  -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12014] str.format parses replacement field incorrectly

2012-06-17 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +flox

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-17 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

> the interfaces of the v4 and v6 variants are deliberately very similar

I am hoping that means 'identical, once the obvious translations are made': v4 
to v6, xxx.xxx.xxx.xxx to , and anything else?

> documenting everything twice seems like a rather user hostile thing to do.

Agreed. Please factor out common stuff. I see two choices.

1. Document in parallel after an intro explaining the translations

4(args)
6(args)
Return ... (either in 4 terms which user translate for 6 or generic terms).

# This might be better if you expect people to be doing one type of thing with 
both v4 and v6.


2. Document serially, first v4 stuff then v6 stuff (at present, though order 
might be reversed in the future ;-).

v4 stuff
---
4(args)
Return ...

v6 stuff
---
The following v6 functions are the same as the v4 functions above, except that 
ipv4address'es become ipv6address'es etc.
6(args)

# This might be better if you expect people to be doing multiple things with 
either v4 or v6, but not both.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com