[issue21435] Segfault in gc with cyclic trash

2014-05-09 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Thanks a lot!
The patch fixes crush dump issue with __del__ in aiohttp library tests also.

--
nosy: +asvetlov

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



[issue21456] skip 2 tests in test_urllib2net.py if _ssl module not present

2014-05-09 Thread Remi Pointel

New submission from Remi Pointel:

Hi,

I tested the regress tests on a machine which does not have the ssl module, and 
I have 2 errors in Lib/test/test_urllib2net.py. I think it should skip the test 
instead.

Attached is a diff I wrote, it's based on Lib/test/test_poplib.py.

Don't hesitate if I miss a thing.

Remi.

--
components: Tests
files: Lib_test_test_urllib2net_py.diff
keywords: patch
messages: 218139
nosy: rpointel
priority: normal
severity: normal
status: open
title: skip 2 tests in test_urllib2net.py if _ssl module not present
versions: Python 3.5
Added file: http://bugs.python.org/file35192/Lib_test_test_urllib2net_py.diff

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



[issue21457] NetBSD curses support improvements

2014-05-09 Thread Thomas Klausner

New submission from Thomas Klausner:

NetBSD's curses headers have different include guards than ncurses.
Also, the NetBSD curses library has been improved and some workaround are no 
longer necessary.
Diff against hg attached.

--
components: Extension Modules
files: curses.diff
keywords: patch
messages: 218140
nosy: wiz
priority: normal
severity: normal
status: open
title: NetBSD curses support improvements
type: compile error
versions: Python 3.5
Added file: http://bugs.python.org/file35193/curses.diff

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



[issue21458] MirBSD support

2014-05-09 Thread Thomas Klausner

New submission from Thomas Klausner:

configure needs to know about MirBSD -- it's quite similar to OpenBSD, so 
that's all that's needed.

--
components: Build
files: configure.diff
keywords: patch
messages: 218141
nosy: wiz
priority: normal
severity: normal
status: open
title: MirBSD support
versions: Python 3.5
Added file: http://bugs.python.org/file35194/configure.diff

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



[issue21458] MirBSD support

2014-05-09 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +skrah
stage:  - patch review
type:  - enhancement

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



[issue21459] DragonFlyBSD support

2014-05-09 Thread Thomas Klausner

New submission from Thomas Klausner:

DragonFlyBSD support needs some slight changes.

--
components: Build
files: dragonfly.diff
keywords: patch
messages: 218142
nosy: wiz
priority: normal
severity: normal
status: open
title: DragonFlyBSD support
versions: Python 3.5
Added file: http://bugs.python.org/file35195/dragonfly.diff

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



[issue21460] distutils: use LDFLAGS

2014-05-09 Thread Thomas Klausner

New submission from Thomas Klausner:

There are two possible sources for extra linker arguments:
   - 'extra_link_args' in Extension object
   - LDFLAGS environment variable
The environment variable should take precedence, and
any sensible compiler will give precedence to later
command line args.

--
components: Library (Lib)
files: ldflags.diff
keywords: patch
messages: 218143
nosy: wiz
priority: normal
severity: normal
status: open
title: distutils: use LDFLAGS
versions: Python 3.5
Added file: http://bugs.python.org/file35196/ldflags.diff

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



[issue21460] distutils: use LDFLAGS

2014-05-09 Thread Thomas Klausner

Changes by Thomas Klausner t...@giga.or.at:


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

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



[issue21461] Recognize -pthread

2014-05-09 Thread Thomas Klausner

New submission from Thomas Klausner:

makesetup should know about the -pthread compiler flag.

--
components: Extension Modules
files: pthread.diff
keywords: patch
messages: 218144
nosy: wiz
priority: normal
severity: normal
status: open
title: Recognize -pthread
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file35197/pthread.diff

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



[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2014-05-09 Thread Tim Golden

Tim Golden added the comment:

Here's a patch against build_ssl which uses subprocess.check_output and very 
slightly simplifies the output. It successfully finds ActivePerl and builds 
from source; and uses the svn export files when it's not.

I've targetted the development branch; don't know if there's mileage in 
backporting.

--
keywords: +patch
Added file: http://bugs.python.org/file35198/issue10752.patch

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



[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2014-05-09 Thread Tim Golden

Tim Golden added the comment:

I've just looked at issue21141 which is a substantial rework of this
area. This change should be incorporated over there as well / instead.

--

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



[issue21141] Don't mention Perl in Windows build output

2014-05-09 Thread Tim Golden

Tim Golden added the comment:

I'm at least +0 on this, not because I've ever been that bothered by the Perl 
messages, but because it tidies things up a little smooths the way very 
slightly for people trying to build Python on Windows and I'm always ready to 
support that.

--

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



[issue21459] DragonFlyBSD support

2014-05-09 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

What happens to Python 2.7?. Compilation fixes are OK to apply.

Would be wonderful to have a DragonFlyBSD buildbot in our farm...

--
nosy: +jcea

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



[issue21458] MirBSD support

2014-05-09 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

What happens to Python 2.7?. Compilation fixes are OK to apply.

Would be wonderful to have a MirBSD buildbot in our farm...

--
nosy: +jcea

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



[issue21457] NetBSD curses support improvements

2014-05-09 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Thomas, What happens if Python is compiled in an old version of NetBSD?

--
nosy: +jcea

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



[issue20745] test_statistics fails in refleak mode

2014-05-09 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti
stage:  - needs patch
versions: +Python 3.5

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



[issue21141] Don't mention Perl in Windows build output

2014-05-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

+1 for this. The current messages are confusing, and I think I've already 
installed Perl because of them.

--
nosy: +pitrou

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



[issue21456] skip 2 tests in test_urllib2net.py if _ssl module not present

2014-05-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

There isn't much point in introducing a variable named SUPPORTS_SSL, just use 
ssl is not None.

--
nosy: +pitrou

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



[issue21141] Don't mention Perl in Windows build output

2014-05-09 Thread Martin v . Löwis

Martin v. Löwis added the comment:

The patch looks fine to me, including the renaming. Please apply.

--

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



[issue21462] PEP 466: upgrade OpenSSL

2014-05-09 Thread Nick Coghlan

New submission from Nick Coghlan:

PEP 466 includes updating to a newer version of OpenSSL. This may be needed for 
the ssl module feature backports in issue 21308.

--
components: Windows
messages: 218154
nosy: loewis, ncoghlan, steve.dower
priority: normal
severity: normal
status: open
title: PEP 466: upgrade OpenSSL
type: enhancement
versions: Python 2.7

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



[issue21462] PEP 466: upgrade OpenSSL in the Python 2.7 Windows builds

2014-05-09 Thread Nick Coghlan

Changes by Nick Coghlan ncogh...@gmail.com:


--
components: +Build
title: PEP 466: upgrade OpenSSL - PEP 466: upgrade OpenSSL in the Python 2.7 
Windows builds

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



[issue13630] IDLE: Find(ed) text is not highlighted while dialog box is open

2014-05-09 Thread Francisco Gracia

Francisco Gracia added the comment:

The neat program *redemo.py* toggles between *Highlight first match* and 
*Highlight all matches*.

--

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



[issue20745] test_statistics fails in refleak mode

2014-05-09 Thread Ezio Melotti

Ezio Melotti added the comment:

#20746 seems to have a patch for this.

--
nosy: +xdegaye

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



[issue20780] Shadowed (duplicate name but different body) test in test_statistics

2014-05-09 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti
stage:  - patch review

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



[issue21459] DragonFlyBSD support

2014-05-09 Thread Brett Cannon

Brett Cannon added the comment:

We've actually moved away from maintaining OS support in Python itself except 
for major platforms. We prefer that people maintain a patch set on bitbucket, 
github, etc. and get the community to help support that platform.

--
nosy: +brett.cannon

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



[issue21458] MirBSD support

2014-05-09 Thread Brett Cannon

Brett Cannon added the comment:

We've actually been moving away from maintaining OS support in Python itself 
except for major platforms. We prefer that people maintain a patch set on 
bitbucket, github, etc. and get the community to help support that platform.

--
nosy: +brett.cannon

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



[issue14019] Unify tests for str.format and string.Formatter

2014-05-09 Thread Brett Cannon

Brett Cannon added the comment:

Francisco, can you sign the contributor agreement? 
https://www.python.org/psf/contrib/contrib-form/

--

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



[issue13630] IDLE: Find(ed) text is not highlighted while dialog box is open

2014-05-09 Thread Tal Einat

Tal Einat added the comment:

Indeed, redemo.py does include this feature. But it is a completely different 
application with a very specific goal - testing regular expressions.

On the other hand, IDLE's search is meant to be used to find pieces of code in 
the editor, which is a significantly different use case.

Since SearchBar always sets the pointer to the first match, as well as 
highlighting it, there would no real point to only mark the first match.

As for disabling the marking of all other matches (besides the first), what is 
the point? Does marking all other hits really have any downsides? To me it 
seems like a useful feature that users will easily grow accustomed to.

--

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



[issue21226] PyImport_ExecCodeModuleObject not setting module attributes

2014-05-09 Thread Brett Cannon

Brett Cannon added the comment:

LGTM although you forgot to use a loader instance instead of the class.

--

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



[issue20815] ipaddress unit tests PEP8

2014-05-09 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - commit review
type:  - enhancement

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



[issue20826] Faster implementation to collapse consecutive ip-networks

2014-05-09 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti
stage:  - patch review

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



[issue20837] Ambiguity words in base64 documentation

2014-05-09 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - patch review
type:  - enhancement

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



[issue20840] AttributeError: 'module' object has no attribute 'ArgumentParser'

2014-05-09 Thread Ezio Melotti

Ezio Melotti added the comment:

Closing for lack of feedback.
Feel free to re-open if/when more info are available.

--
nosy: +ezio.melotti
status: pending - closed

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



[issue20847] asyncio docs should call out that network logging is a no-no

2014-05-09 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
components: +Documentation
stage:  - needs patch
type:  - enhancement

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



[issue20851] Update devguide to cover testing from a tarball

2014-05-09 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - needs patch
type:  - enhancement

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



[issue20853] pdb args crashes when an arg is not printable

2014-05-09 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - patch review

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



[issue20859] Context of documentation for conditional expressions

2014-05-09 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue21459] DragonFlyBSD support

2014-05-09 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
resolution:  - wont fix
status: open - closed

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



[issue21458] MirBSD support

2014-05-09 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
resolution:  - wont fix
status: open - closed

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



[issue14019] Unify tests for str.format and string.Formatter

2014-05-09 Thread Brett Cannon

Brett Cannon added the comment:

I added some review comments.

--

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



[issue21141] Don't mention Perl in Windows build output

2014-05-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9ef99fafaadd by Zachary Ware in branch 'default':
Issue #21141: The Windows build process no longer attempts to find Perl,
http://hg.python.org/cpython/rev/9ef99fafaadd

--
nosy: +python-dev

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



[issue21141] Don't mention Perl in Windows build output

2014-05-09 Thread Zachary Ware

Zachary Ware added the comment:

Committed.  Thanks for the review, Martin, and for the votes of confidence Tim 
and Antoine!

--
assignee:  - zach.ware
resolution:  - fixed
stage: patch review - resolved
status: open - closed

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



[issue21037] add an AddressSanitizer build option

2014-05-09 Thread Stefan Krah

Stefan Krah added the comment:

The VM is set up. It's on an external unreliable host though. :)

--

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



[issue21157] Update imp docs for a PEP 451 world

2014-05-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9809a791436d by Brett Cannon in branch '3.4':
Issue #21157: Touch up imp docs to be more explicit about importlib
http://hg.python.org/cpython/rev/9809a791436d

New changeset 418780d59502 by Brett Cannon in branch 'default':
Merge for issue #21157
http://hg.python.org/cpython/rev/418780d59502

--
nosy: +python-dev

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



[issue21157] Update imp docs for a PEP 451 world

2014-05-09 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
resolution:  - fixed
status: open - closed

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



[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2014-05-09 Thread Zachary Ware

Zachary Ware added the comment:

The patch looks good to me (only tested on a Perl-less machine, though).  It 
applies cleanly on 3.4, which I think is worth committing.  It still merges 
forward cleanly to default, post-#21141.  I suspect it would even apply fairly 
cleanly to 2.7, but I'm not too worried about that backport.

--
assignee:  - tim.golden
stage: patch review - commit review

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



[issue19186] expat symbols should be namespaced in pyexpat again

2014-05-09 Thread Lukas Vacek

Lukas Vacek added the comment:

Hi Peter,

Thanks for taking the time to report your issue. I just tried on fresh 
up-to-date CentOS 6 and I could not reproduce the issue.

However, I think I figured out what went wrong. I can see you are supplying 
custom -I and -L paths (-I/apps/prod/releases/3.0/include ...) I suspect that 
when compiling pyexpat.c (in Modules/) the header file expat.h is picked up 
from this location before the bundled expat.h (in Modules/expat/) is found. But 
when compiling xmlparse.c (in Modules/expat/) the bundled header file expat.h 
*is* used this time. So we end up with our bundled expat compiled using 
namespacing and so defining symbols like PyExpat_XML_SetCommentHandler while 
pyexpat.c is looking for XML_SetCommentHandler because it is compiled *not* 
using our bundled expat.h.

I am not sure yet why your custom -I comes before 
-I/ae/data/soft/opensource/build/python3/master/Python-3.4.0/Modules/expat as 
it certainly should not. 

So far I tried building with CPPFLAGS and CFLAGS and in both cases my custom 
paths come after -I.../Modules/expat as it should.

Can you please provide your ./configure and make command lines and relevant 
environment variables?

Thanks,
Lucas

--

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



[issue21463] RuntimeError when URLopener.ftpcache is full

2014-05-09 Thread Erik Bray

New submission from Erik Bray:

This is probably a pretty rare corner case, but a coworker reported this to me 
while testing code that does open several ftp connections to different files.

--
components: Library (Lib)
files: urllib-request-ftpcache-error.patch
keywords: patch
messages: 218170
nosy: erik.bray
priority: normal
severity: normal
status: open
title: RuntimeError when URLopener.ftpcache is full
type: crash
Added file: http://bugs.python.org/file35199/urllib-request-ftpcache-error.patch

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



[issue21463] RuntimeError when URLopener.ftpcache is full

2014-05-09 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +orsenthil

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



[issue21462] PEP 466: upgrade OpenSSL in the Python 2.7 Windows builds

2014-05-09 Thread Zachary Ware

Zachary Ware added the comment:

Here's all the patch that should be necessary to do the upgrade.  Running 
test_ssl on 2.7 with 1.0.1g I do have a failure:

==
ERROR: test_socketserver (test.test_ssl.ThreadedTests)
Using a SocketServer to create and manage SSL connections.
--
Traceback (most recent call last):
  File P:\ath\to\2.7\cpython\lib\test\test_ssl.py, line 1179, in 
test_socketserver
f = urllib.urlopen(url)
  File P:\ath\to\2.7\cpython\lib\urllib.py, line 87, in urlopen
return opener.open(url)
  File P:\ath\to\2.7\cpython\lib\urllib.py, line 208, in open
return getattr(self, name)(url)
  File P:\ath\to\2.7\cpython\lib\urllib.py, line 437, in open_https
h.endheaders(data)
  File P:\ath\to\2.7\cpython\lib\httplib.py, line 969, in endheaders
self._send_output(message_body)
  File P:\ath\to\2.7\cpython\lib\httplib.py, line 829, in _send_output
self.send(msg)
  File P:\ath\to\2.7\cpython\lib\httplib.py, line 791, in send
self.connect()
  File P:\ath\to\2.7\cpython\lib\httplib.py, line 1176, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
  File P:\ath\to\2.7\cpython\lib\ssl.py, line 392, in wrap_socket
ciphers=ciphers)
  File P:\ath\to\2.7\cpython\lib\ssl.py, line 148, in __init__
self.do_handshake()
  File P:\ath\to\2.7\cpython\lib\ssl.py, line 310, in do_handshake
self._sslobj.do_handshake()
IOError: [Errno socket error] [Errno 1] _ssl.c:510: error:140770FC:SSL routines:
SSL23_GET_SERVER_HELLO:unknown protocol

--

But this looks closely related to a failure that I have on this machine using 
3.4 (which is probably the fault of the way this network is set up):

==
ERROR: test_socketserver (test.test_ssl.ThreadedTests)
Using a SocketServer to create and manage SSL connections.
--
Traceback (most recent call last):
  File P:\ath\to\3.4\cpython\lib\urllib\request.py, line 1189, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
  File P:\ath\to\3.4\cpython\lib\http\client.py, line 1090, in request
self._send_request(method, url, body, headers)
  File P:\ath\to\3.4\cpython\lib\http\client.py, line 1128, in _send_request
self.endheaders(body)
  File P:\ath\to\3.4\cpython\lib\http\client.py, line 1086, in endheaders
self._send_output(message_body)
  File P:\ath\to\3.4\cpython\lib\http\client.py, line 924, in _send_output
self.send(msg)
  File P:\ath\to\3.4\cpython\lib\http\client.py, line 859, in send
self.connect()
  File P:\ath\to\3.4\cpython\lib\http\client.py, line 1221, in connect
super().connect()
  File P:\ath\to\3.4\cpython\lib\http\client.py, line 839, in connect
self._tunnel()
  File P:\ath\to\3.4\cpython\lib\http\client.py, line 822, in _tunnel
message.strip()))
OSError: Tunnel connection failed: 403 Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File P:\ath\to\3.4\cpython\lib\test\test_ssl.py,line 2315, in 
test_socketserver
f = urllib.request.urlopen(url)
  File P:\ath\to\3.4\cpython\lib\urllib\request.py, line 153, in urlopen
return opener.open(url, data, timeout)
  File P:\ath\to\3.4\cpython\lib\urllib\request.py, line 455, in open
response = self._open(req, data)
  File P:\ath\to\3.4\cpython\lib\urllib\request.py, line 473, in _open
'_open', req)
  File P:\ath\to\3.4\cpython\lib\urllib\request.py, line 433, in _call_chain
result = func(*args)
  File P:\ath\to\3.4\cpython\lib\urllib\request.py, line 1230, in https_open
context=self._context, check_hostname=self._check_hostname)
  File P:\ath\to\3.4\cpython\lib\urllib\request.py, line 1192, in do_open
raise URLError(err)
urllib.error.URLError: urlopen error Tunnel connection failed: 403 Forbidden

--

As such, I'll leave it to someone else to properly test this before committing.

--
keywords: +patch
nosy: +zach.ware
Added file: http://bugs.python.org/file35200/issue21462.diff

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



[issue19186] expat symbols should be namespaced in pyexpat again

2014-05-09 Thread Lukas Vacek

Lukas Vacek added the comment:

Actually CFLAGS do indeed come before any include directories.

I can reproduce your problem:
mkdir /tmp/extra_include
cp /usr/include/expat.h /usr/include/expat_external.h /tmp/extra_include/
make CFLAGS=-I/tmp/extra_include

You should use CPPFLAGS for extra include directories. Not an issue in CPython.

--

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



[issue21438] Document which importlib.machinery loaders don't require an argument for load_module()

2014-05-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 86042348b38a by Brett Cannon in branch '3.4':
Issue #21438: Document what loaders don't require a module name for
http://hg.python.org/cpython/rev/86042348b38a

New changeset e9453f6fa787 by Brett Cannon in branch 'default':
Merge for issue #21438
http://hg.python.org/cpython/rev/e9453f6fa787

--
nosy: +python-dev

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



[issue21438] Document which importlib.machinery loaders don't require an argument for load_module()

2014-05-09 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
resolution:  - fixed
status: open - closed

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



[issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader

2014-05-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9bd844792b32 by Brett Cannon in branch 'default':
Issue #21156: importlib.abc.InspectLoader.source_to_code() is now a
http://hg.python.org/cpython/rev/9bd844792b32

--
nosy: +python-dev

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



[issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader

2014-05-09 Thread Brett Cannon

Brett Cannon added the comment:

I decided to make it a static method instead of relocating it.

--
resolution:  - fixed
status: open - closed

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



[issue21462] PEP 466: upgrade OpenSSL in the Python 2.7 Windows builds

2014-05-09 Thread Steve Dower

Steve Dower added the comment:

I just tried it and had no trouble building and running the ssl tests on 
Windows.

 python Lib\test\regrtest.py -u network -v test_ssl
 ...
 Ran 38 tests in 7.700s
 
 OK (skipped=2)

--

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



[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2014-05-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 160f32753b0c by Tim Golden in branch '3.4':
Issue10752 Be more robust when finding a PERL interpreter to build OpenSSL. 
Initial patch by Gabi Davar
http://hg.python.org/cpython/rev/160f32753b0c

New changeset e492d0ac9abb by Tim Golden in branch 'default':
Issue10752 Be more robust when finding a PERL interpreter to build OpenSSL. 
Initial patch by Gabi Davar
http://hg.python.org/cpython/rev/e492d0ac9abb

--
nosy: +python-dev

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



[issue21452] make_buildinfo.exe with VS2013 fails due ill-formed IntDir path

2014-05-09 Thread Zachary Ware

Zachary Ware added the comment:

Your patch looks fine to me, Tim.

--

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



[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2014-05-09 Thread Tim Golden

Tim Golden added the comment:

Thanks for the check. Committed to 3.4  default

--
resolution:  - fixed

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



[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2014-05-09 Thread Tim Golden

Changes by Tim Golden m...@timgolden.me.uk:


--
stage: commit review - resolved
status: open - closed

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



[issue21462] PEP 466: upgrade OpenSSL in the Python 2.7 Windows builds

2014-05-09 Thread Zachary Ware

Zachary Ware added the comment:

Thanks, Steve.  Nick, I assume 1.0.1g is the target version?

--

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



[issue21452] make_buildinfo.exe with VS2013 fails due ill-formed IntDir path

2014-05-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 469837abe5ca by Tim Golden in branch '3.4':
Issue21452 Add missing backslash to build path for make_buildinfo
http://hg.python.org/cpython/rev/469837abe5ca

New changeset a14420d8b556 by Tim Golden in branch 'default':
Issue21452 Add missing backslash to build path for make_buildinfo
http://hg.python.org/cpython/rev/a14420d8b556

--
nosy: +python-dev

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



[issue21458] MirBSD support

2014-05-09 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Brett, where is the list of major platforms, and how to get in/out of that 
list? :-)

--

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



[issue21452] make_buildinfo.exe with VS2013 fails due ill-formed IntDir path

2014-05-09 Thread Tim Golden

Tim Golden added the comment:

Fixed. Thanks for the report

--
resolution:  - fixed
stage:  - resolved
status: open - closed

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



[issue21434] python -3 documentation is outdated

2014-05-09 Thread Éric Araujo

Éric Araujo added the comment:

Aside: callable was added back in 3.2; warnings for that are now obsolete, and 
people often replaced it with bogus alternatives (like using hasattr on the 
object instead of its type).

--
nosy: +eric.araujo

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



[issue20934] test_multiprocessing is broken by design

2014-05-09 Thread ddve...@ucar.edu

Changes by ddve...@ucar.edu ddve...@ucar.edu:


--
nosy: +ddve...@ucar.edu

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



[issue21439] Numerous minor issues in Language Reference

2014-05-09 Thread Éric Araujo

Éric Araujo added the comment:

Attaching plain text version.

--
nosy: +eric.araujo
Added file: http://bugs.python.org/file35201/PythonRefmanual_3_4_0_Errata.txt

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



[issue21439] Numerous minor issues in Language Reference

2014-05-09 Thread Éric Araujo

Éric Araujo added the comment:

BTW my opinion of the proposed changes is that many of them are good (obvious 
typos, reports of things unclear to a beginner, etc) but I don’t agree with 
some typographic changes, I find that some grammar changes are pedantic, and 
there are even a few misunderstandings of Python.

--

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



[issue20776] Add tests for importlib.machinery.PathFinder

2014-05-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fa439bb9d705 by Brett Cannon in branch 'default':
Issue #20776: Flesh out tests for importlib.machinery.PathFinder.
http://hg.python.org/cpython/rev/fa439bb9d705

--
nosy: +python-dev

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



[issue21463] RuntimeError when URLopener.ftpcache is full

2014-05-09 Thread Éric Araujo

Éric Araujo added the comment:

Thanks for the report and patch.  Would you mind adding a unit test?

(Note that the “crash” type is for segfaults, not Python exceptions.)

--
nosy: +eric.araujo
stage:  - test needed
type: crash - behavior
versions: +Python 2.7, Python 3.4, Python 3.5

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



[issue20776] Add tests for importlib.machinery.PathFinder

2014-05-09 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
resolution:  - fixed
status: open - closed

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



[issue21463] RuntimeError when URLopener.ftpcache is full

2014-05-09 Thread Erik Bray

Erik Bray added the comment:

Ah, didn't know that about crash.

I wanted to add a test but hesitated only because that code is not well tested 
to begin with (perhaps, hence, this going unnoticed for so long).  But I guess 
it could be done by mocking the ftpwrapper class.

--

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



[issue19721] Move all test_importlib utility code into test_importlib.util

2014-05-09 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
resolution:  - fixed
status: open - closed

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



[issue19721] Move all test_importlib utility code into test_importlib.util

2014-05-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4e243b399307 by Brett Cannon in branch 'default':
Issue #19721: Consolidate test_importlib utility code into a single
http://hg.python.org/cpython/rev/4e243b399307

--
nosy: +python-dev

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



[issue21237] Update Python 2/3 porting HOWTO's suggestion for dealing with map()

2014-05-09 Thread Brett Cannon

Brett Cannon added the comment:

I never bothered to mention the iter* methods in the HOWTO, and since it 
becomes very obvious very fast to tweak them I'm not going to worry about it 
and add more complexity to the doc.

--
resolution:  - wont fix
status: open - closed

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



[issue21037] add an AddressSanitizer build option

2014-05-09 Thread Charles-François Natali

Charles-François Natali added the comment:

OK, great, let's see what happens!

--
resolution:  - fixed
stage:  - resolved
status: open - closed

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



[issue21462] PEP 466: upgrade OpenSSL in the Python 2.7 Windows builds

2014-05-09 Thread Tim Golden

Tim Golden added the comment:

Builds  tests ok here on a fresh checkout (of cpython  openssl-1.0.1g)

--
nosy: +tim.golden

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



[issue21435] Segfault in gc with cyclic trash

2014-05-09 Thread Tim Peters

Tim Peters added the comment:

@asvetlov, glad this fixes crashes in aiohttp library tests too, but I hadn't 
heard about that before.  Is there an open bug report about it on this tracker 
(so we can close it)?

--

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



[issue21278] Running the test suite with -v makes the test_ctypes and the test_zipimport erroneously reported as failed

2014-05-09 Thread ddve...@ucar.edu

ddve...@ucar.edu added the comment:

This bug is extremely hard to reproduce in a controlled manner.
I mean, if I run

EXTRATESTOPTS='-x test_gdb -uall -v' make testall

it appears 100% of the times (whereas the same command without the -v 
works just fine, as I initially mentioned).

But I do not want to run the whole thing, so I resorted to

EXTRATESTOPTS='-uall -v -f ctypes_and_zipimport' make testall

where the ctypes_and_zipimport file contains test_ctypes,
test_zipimport and a handful of other tests. For all the tries I did, 
this always succeeded.

So I can't debug this issue, sorry.

--

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



[issue21389] The repr of BoundMethod objects sometimes incorrectly identifies the bound function

2014-05-09 Thread Steven Barker

Steven Barker added the comment:

Here's a patch that changes the behavior of method_repr in 
Objects/classobject.c . It first tries to use __func__.__qualname__, then tries 
__func__.__name__ as a fallback and finally uses ? if neither of those 
attributes are available.

I'm not sure if the __name__ fallback is tested (as it seems that pretty much 
all callables have __qualname__ these days). The last ? case actually does 
get tested by Lib/test/test_descr.py which creates a messed up method with 
classmethod(1).__get__(1) (which oddly does not raise an error immediately upon 
creation, but rather only when it is called).

I've not written C in several years, so please let me know if you see I've done 
something obviously wrong, or any places the patch could be improved. It is 
mostly a copy-and-paste of existing code with a few modifications and 
deletions, so hopefully I can't have messed up anything too badly!

I'm currently ignoring a comment in the code that says we shouldn't use 
repr()/%R to format __self__. I don't really understand that, so I've stick 
with the existing behavior on that front. If that is something that should 
change, I'd be happy to try reworking it in some other way, just let me know 
what the concern is.

Here are some examples of the new repr output in a build with the patch:

 class A():
...   def foo(self):
... pass
...
 class B(A):
...   def foo(self):
... pass
...
 class C(A):
...   pass
...
 class D():
...   @classmethod
...   def bar():
... pass
...
 A().foo
bound method A.foo of __main__.A object at 0x02267508
 B().foo
bound method B.foo of __main__.B object at 0x02267578
 C().foo
bound method A.foo of __main__.C object at 0x02267658
 super(B, B()).foo
bound method A.foo of __main__.B object at 0x022676C8
 D.bar
bound method D.bar of class '__main__.D'

--
keywords: +patch
versions: +Python 3.5
Added file: http://bugs.python.org/file35202/method_repr.diff

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



[issue21448] Email Parser use 100% CPU

2014-05-09 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

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



[issue7776] http.client.HTTPConnection tunneling is broken

2014-05-09 Thread Cybjit

Cybjit added the comment:

I get errors when using pip with a proxy in 3.4.1rc1 on Windows, that does not 
happen on 3.4.0.
I tracked it down to this change to client.py.
OK with client.py from fd2c69cedb25, but not with client.py from 39ee3286d187.

C:\Python34\Scriptsset HTTP_PROXY=http://openwrt.lan:

C:\Python34\Scriptsset HTTPS_PROXY=http://openwrt.lan:

C:\Python34\Scriptspip -v install simplejson
Downloading/unpacking simplejson
  Could not fetch URL https://pypi.python.org/simple/simplejson/: connection err
or: hostname 'openwrt.lan' doesn't match either of '*.c.ssl.fastly.net', 'c.ssl.
fastly.net', '*.target.com', '*.vhx.tv', '*.snappytv.com', '*.atlassian.net', 'p
laces.hoteltonight.com', 'secure.lessthan3.com', '*.atlassian.com', 'a.sellpoint
.net', 'cdn.upthere.com', '*.tissuu.com', '*.issuu.com', '*.kekofan.com', '*.pyt
hon.org', '*.theverge.com', '*.sbnation.com', '*.polygon.com', '*.twobrightlight
s.com', '*.2brightlights.info', '*.vox.com', 'staging-cdn.upthere.com', '*.zeebo
x.com', '*.beamly.com', '*.aticpan.org', 'stream.svc.7digital.net', 'stream-test
.svc.7digital.net', '*.articulate.com', 's.t.st', 'vid.thestreet.com', '*.planet
-labs.com', '*.url2png.com', 'turn.com', 'www.turn.com', 'rivergathering.org', '
social.icfglobal2014-europe.org', '*.innogamescdn.com', '*.pathable.com', '*.sta
ging.pathable.com', '*.kickstarter.com', 'sparkingchange.org', 'www.swedavia.se'
, 'www.swedavia.com', 'js-agent.newrelic.com', '*.fastly-streams.com', 'cdn.bran
disty.com', 'fastly.hightailcdn.com', '*.fl.yelpcdn.com', '*.feedmagnet.com', 'a
pi.contentbody.com', '*.acquia.com', '*.swarmapp.com', '*.lonny.com', '*.stylebi
stro.com', '*.zimbio.com', '*.pypa.io', 'pypa.io', 'static.qbranch.se', '*.krxd.
net', '*.room.co', '*.metrological.com', 'room.co', 'www.ibmserviceengage.com',
'my.ibmserviceengage.com', 'cdn.evbuc.com', 'cdn.adagility.com'
  Will skip URL https://pypi.python.org/simple/simplejson/ when looking for down
load links for simplejson

--
nosy: +Cybjit

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



[issue21464] fnmatch module uses undefined regular expression to perform matching

2014-05-09 Thread Paul Sokolovsky

New submission from Paul Sokolovsky:

fnmatch.translate() ends with:

return res + '\Z(?ms)'

However, https://docs.python.org/3.4/library/re.html#regular-expression-syntax 
states:

Note that the (?x) flag changes how the expression is parsed. It should be used 
first in the expression string, or after one or more whitespace characters. If 
there are non-whitespace characters before the flag, the results are undefined.

Hence, fnmatch uses undefined pattern, and indeed, it fails with alternative 
Perl-compatible regular expression implementations (specifically, PCRE, which 
appear to do something like apply flag at the point of its occurrence).

--
components: Library (Lib)
messages: 218198
nosy: pfalcon
priority: normal
severity: normal
status: open
title: fnmatch module uses undefined regular expression to perform matching
versions: Python 3.4

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



[issue21464] fnmatch module uses regular expression with undefined result to perform matching

2014-05-09 Thread Paul Sokolovsky

Changes by Paul Sokolovsky pfal...@users.sourceforge.net:


--
title: fnmatch module uses undefined regular expression to perform matching - 
fnmatch module uses regular expression with undefined result to perform matching

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



[issue20333] argparse subparser usage message hides main parser usage

2014-05-09 Thread paul j3

paul j3 added the comment:

When `add_subparsers` creates the `_prog_prefix` it uses a list of positionals. 
 That makes sense, since a subparser argument is positional, so the user needs 
to know where it fits in the broader scope of positionals.

But it intentionally skips the 'optionals'.  The problem in the example for 
this bug is that its 'optional' is 'required'.  A fix is to include all 
'required optionals' along with positionals in the usage prefix.  

Attached is a partial patch that does this.  

I also question whether it makes sense to include 'mutually_exclusive_groups' 
in this usage formatting, since all actions in such a group must be 
non-required.  And such a group can include at most one positional (with ? or 
*).  A MXG is marked only if all of its actions are present in the usage list.

The programmer can also customize the subparsers usage with the 'prog' keyword 
of either the 'add_subparsers' or 'add_parser' commands.  I illustrate this in 
the attached 'sample.py' script.

'test_argparse.py' does not seem to test this issue much.  Atleast it isn't 
bothered by these tweaks.

Note that any arguments added to the main parser after the 'add_subparsers' 
command will not appear the subparser usage, since this is defined when the 
subparsers are created.

--
keywords: +patch
Added file: http://bugs.python.org/file35203/issue20333.patch

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



[issue20333] argparse subparser usage message hides main parser usage

2014-05-09 Thread paul j3

Changes by paul j3 ajipa...@gmail.com:


Added file: http://bugs.python.org/file35204/sample.py

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



[issue21465] sqlite3 Row can return duplicate keys when using adapters

2014-05-09 Thread Mark Lawrence

New submission from Mark Lawrence:

Code adopted from here 
https://docs.python.org/3/library/sqlite3.html#default-adapters-and-converters.

import sqlite3
import datetime

con = sqlite3.connect(:memory:, 
detect_types=sqlite3.PARSE_DECLTYPES|sqlite3.PARSE_COLNAMES)
con.row_factory = sqlite3.Row
cur = con.cursor()
cur.execute(create table test(d date, ts timestamp))

today = datetime.date.today()
now = datetime.datetime.now()

cur.execute(insert into test(d, ts) values (?, ?), (today, now))

cur.execute('select current_date as d [date], current_timestamp as ts 
[timestamp]')
row = cur.fetchone()
print(row.keys())

cur.execute('select current_date as nit [date], current_timestamp as nit 
[timestamp]')
row = cur.fetchone()
print(row.keys())

cur.execute('select current_date as  [date], current_timestamp as  
[timestamp]')
row = cur.fetchone()
print(row.keys())

Output ---

c:\Users\Mark\MyPythonsqlite3_error.py
['d', 'ts']
['nit', 'nit']
['', '']

This clearly defeats the purpose of using keys to access the given columns.  
Hardly a show stopper but I thought I'd flag it up.

--
components: Library (Lib)
messages: 218200
nosy: BreamoreBoy
priority: normal
severity: normal
status: open
title: sqlite3 Row can return duplicate keys when using adapters
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

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



[issue21457] NetBSD curses support improvements

2014-05-09 Thread Thomas Klausner

Thomas Klausner added the comment:

Thanks for your reply!
I've checked:
keypad in NetBSD curses was fixed in 2009. All supported NetBSD release (5.x 
and 6.x) have the fix.
nodelay and keyname were fixed even earlier, in 2003.

So this is no problem for older NetBSD releases.

--

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



[issue21458] MirBSD support

2014-05-09 Thread Thomas Klausner

Thomas Klausner added the comment:

Just a final comment:
MirBSD's official packaging system is pkgsrc, which is also the official 
packaging system for NetBSD. (This is the reason I'm sending these in bulk, to 
clean up local pkgsrc changes.)

--

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



[issue21459] DragonFlyBSD support

2014-05-09 Thread Thomas Klausner

Thomas Klausner added the comment:

Just a final comment:
pkgsrc was DragonFlyBSD's official packaging system, which is also the official 
packaging system for NetBSD. (This is the reason I'm sending these in bulk, to 
clean up local pkgsrc changes.)

--

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



[issue7776] http.client.HTTPConnection tunneling is broken

2014-05-09 Thread Nikolaus Rath

Nikolaus Rath added the comment:

On 05/09/2014 02:02 PM, Cybjit wrote:
 C:\Python34\Scriptspip -v install simplejson
 Downloading/unpacking simplejson
   Could not fetch URL https://pypi.python.org/simple/simplejson/: connection 
 err
 or: hostname 'openwrt.lan' doesn't match either of '*.c.ssl.fastly.net', 
 'c.ssl.

This looks as if pip tries to match the hostname in the certificate from
pypi.python.org against the hostname of the local proxy. Looking at the
code, I don't see why it would do that though. HTTPSConnection.connect
definitely tries to match against the final hostname.

Is pip maybe doing its own certificate check, and relying on
HTTPSConnection.host to contain the final hostname rather than the proxy?

--

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



[issue21435] Segfault in gc with cyclic trash

2014-05-09 Thread Peter Inglesby

Peter Inglesby added the comment:

It was actually through playing with aiohttp that I first hit this issue.  I 
think I originally hit the problem with something like:

import asyncio
import aiohttp

@asyncio.coroutine
def do_work(future):
response = yield from aiohttp.request('get', 'http://google.com')
future.set_result(None)

loop = asyncio.get_event_loop()
future = asyncio.Future()
asyncio.Task(do_work(future))
future.add_done_callback(print)
loop.run_forever()

--

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



[issue21389] The repr of BoundMethod objects sometimes incorrectly identifies the bound function

2014-05-09 Thread Steven Barker

Steven Barker added the comment:

Ah, I figured out why using %R may be bad. It breaks for the following silly 
class:

class C():
def __repr__(self):
return repr(self.__repr__) # or use any other bound method

repr(C()) will recurse until the recursion limit is hit, both with and without 
my patch. If this seems like a real issue, I could probably replace the %R code 
with a variation on the base case code in PyObject_Repr:

PyUnicode_FromFormat(%s object at %p,
 v-ob_type-tp_name, v)

--

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



[issue19655] Replace the ASDL parser carried with CPython

2014-05-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b769352e2922 by Eli Bendersky in branch 'default':
Issue #19655: Replace the ASDL parser carried with CPython
http://hg.python.org/cpython/rev/b769352e2922

--
nosy: +python-dev

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



[issue19655] Replace the ASDL parser carried with CPython

2014-05-09 Thread Eli Bendersky

Changes by Eli Bendersky eli...@gmail.com:


--
resolution:  - fixed
stage: patch review - resolved
status: open - closed

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



[issue21425] Python 3 pipe handling breaks python mode in emacs on Windows

2014-05-09 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4 -Python 3.3

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



[issue21427] installer not working

2014-05-09 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I compile 32 bit debug binaries from repository with the free VC++ express 
2010. I presume the 'install' option works.

--
nosy: +terry.reedy

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



[issue21439] Numerous minor issues in Language Reference

2014-05-09 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I suggest at least a patch per chapter (3.x.y, 4.x.y, 6.x.y, ...).

--
nosy: +terry.reedy

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



[issue19655] Replace the ASDL parser carried with CPython

2014-05-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 604e1b1a by Eli Bendersky in branch 'default':
Issue #19655: Add tests for the new asdl parser.
http://hg.python.org/cpython/rev/604e1b1a

--

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