[issue16692] Support TLS 1.1 and TLS 1.2

2012-12-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16692 ___ ___ Python-bugs-list mailing list

[issue13390] Hunt memory allocations in addition to reference leaks

2012-12-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: ``./configure --without-pymalloc'' fails here: gcc -pthread -Xlinker -export-dynamic -o python Modules/python.o libpython3.4.a -lpthread -ldl -lutil -lm libpython3.4.a(sysmodule.o): In function `sys_getallocatedblocks':

[issue16694] Add pure Python operator module

2012-12-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16694 ___ ___ Python-bugs-list mailing list

[issue13390] Hunt memory allocations in addition to reference leaks

2012-12-17 Thread STINNER Victor
STINNER Victor added the comment: sys.gettotalrefcount() is only defined when Python is compiled in debug mode. sys.getallocatedblocks() should only be available when the right debug option is present. This function is specific to CPython anyway, Python module should not rely on this (too much)

[issue11176] give more meaningful argument names in argparse documentation

2012-12-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: Also see this e-mail to docs@: http://mail.python.org/pipermail/docs/2012-December/012028.html Subject: [docs] FOO and BAR Do you think it would be possible to write your documentation avoiding the silly usage of FOO and BAR everywhere? This is a very

[issue13390] Hunt memory allocations in addition to reference leaks

2012-12-17 Thread anatoly techtonik
anatoly techtonik added the comment: Memory control over the stuff that Python creates is a practical feature that compensates OS disability for tracking memory usage. If all Python scripts could measure their memory usage, we could see more memory effective and adaptive programs around.

[issue16646] FTP.makeport() loses socket error details

2012-12-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Why did you replace socket.error with OSError? I think we should use socket.create_connection() as a guide line: http://hg.python.org/cpython/file/45dfb657b430/Lib/socket.py#l401 A patch is in attachment. -- Added file:

[issue16646] FTP.makeport() loses socket error details

2012-12-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- assignee: - giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16646 ___ ___

[issue16646] FTP.makeport() loses socket error details

2012-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: socket.error is alias to OSError since 3.3 (PEP 3151). For versions 3.3 socket.error should be preserved. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16646

[issue16646] FTP.makeport() loses socket error details

2012-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that copying a code from socket.create_connection() is a good idea. Modernizing socket.error to OSError can be done in a separated issue. -- stage: patch review - commit review ___ Python tracker

[issue13390] Hunt memory allocations in addition to reference leaks

2012-12-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: sys.gettotalrefcount() is only defined when Python is compiled in debug mode. sys.getallocatedblocks() should only be available when the right debug option is present. This function is specific to CPython anyway, Python module should not rely on this (too

[issue13390] Hunt memory allocations in addition to reference leaks

2012-12-17 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou rep...@bugs.python.org wrote: Hmm, interesting. When built --without-pymalloc, we could make sys.getallocatedblocks() always return 0, or we could not define it all (which would make like a bit harder for regrtest). What do you think? Given the

[issue16646] FTP.makeport() loses socket error details

2012-12-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset b7419f88c628 by Giampaolo Rodola' in branch '3.2': Fix issue #16646: ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka) http://hg.python.org/cpython/rev/b7419f88c628 New changeset b8289a08d720 by Giampaolo Rodola'

[issue16646] FTP.makeport() loses socket error details

2012-12-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6e07be3dfb6b by Giampaolo Rodola' in branch '2.7': Fix issue #16646: ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka) http://hg.python.org/cpython/rev/6e07be3dfb6b --

[issue16646] FTP.makeport() loses socket error details

2012-12-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16646

[issue16692] Support TLS 1.1 and TLS 1.2

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

[issue16679] Wrong URL path decoding

2012-12-17 Thread Claude Paroz
Claude Paroz added the comment: Thanks for the explanations (and history). I realize that changing the behaviour is probably not an option. As an example in a framework, we are currently discussing how we will cope with this in Django: https://code.djangoproject.com/ticket/19468 On the

[issue16647] LMTP.connect() loses socket error details

2012-12-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1a2ead9faa3f by Andrew Svetlov in branch '3.2': Issue #16647: save socket error details in LMTP.connect() http://hg.python.org/cpython/rev/1a2ead9faa3f New changeset 6d805653843a by Andrew Svetlov in branch '3.3': Issue #16647: save socket error

[issue16647] LMTP.connect() loses socket error details

2012-12-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks, Serhiy. -- nosy: +asvetlov resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16647

[issue15974] Optional compact and colored output for regrest

2012-12-17 Thread Brett Cannon
Brett Cannon added the comment: Clang's test runner output is really nice; green-coloured progress bar on one line, next line listing what is executing. Eventual output listing details of the run (e.g. counts of what was run, expected failures, etc.). --

[issue16702] Force urllib2_localnet test not to use http proxies

2012-12-17 Thread Jeff Knupp
New submission from Jeff Knupp: test_urllib2_localnet is concerned with testing connections only using 'localhost' or '127.0.0.1' hosts. If a user has the http_proxy environment variable set, these test will likely fail as the proxy won't have any idea where to send a request for 'localhost'.

[issue16644] Wrong code in ContextManagerTests.test_invalid_args() in test_subprocess.py

2012-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For 3.3+ the patch can be modernized. -- Added file: http://bugs.python.org/file28344/test_subprocess_test_invalid_args_3.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16644

[issue16646] FTP.makeport() loses socket error details

2012-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I doubt about the committed variant of patch. Note that both my original patch and socket.create_connection() use intermediate variable for catching an exception. This is done deliberately. Example: err = None try: raise ValueError ... except ValueError

[issue16703] except statement turns defined variable into undefined

2012-12-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Example: err = None try: raise ValueError ... except ValueError as err: pass ... err Traceback (most recent call last): File stdin, line 1, in module NameError: name 'err' is not defined It is expected that either the variable will have the catched

[issue16658] Missing return in HTTPConnection.send()

2012-12-17 Thread Jeff Knupp
Jeff Knupp added the comment: I'm assuming this is the patch you were looking for. However, there are a couple of unrelated issues with http.client.send that jumped out at me: 1. Encoding a file handed directly to send() seems wrong. If a client wants to send a file encoded using something

[issue16646] FTP.makeport() loses socket error details

2012-12-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset dcefa2c8386b by Giampaolo Rodola' in branch '3.2': Issue 16646 (ftplib): deliberately use intermediate variable after catching exception http://hg.python.org/cpython/rev/dcefa2c8386b New changeset da161499d0c0 by Giampaolo Rodola' in branch '3.3':

[issue16703] except statement turns defined variable into undefined

2012-12-17 Thread Mark Dickinson
Mark Dickinson added the comment: This is a deliberate feature of Python 3. See PEP 3110. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16703 ___

[issue16646] FTP.makeport() loses socket error details

2012-12-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Ouch! My bad. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16646 ___ ___ Python-bugs-list mailing

[issue16703] except statement turns defined variable into undefined

2012-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I understand that such behavior change needed was a good reason. But the current behavior is quite confusing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16703

[issue16704] Get rid of select.error in stdlib. Use OSError instead

2012-12-17 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- assignee: asvetlov components: Library (Lib) nosy: asvetlov priority: normal severity: normal status: open title: Get rid of select.error in stdlib. Use OSError instead type: enhancement versions: Python 3.4

[issue16648] stdib should use new exception types from PEP 3151

2012-12-17 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- dependencies: +Get rid of select.error in stdlib. Use OSError instead ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16648 ___

[issue16704] Get rid of select.error in stdlib. Use OSError instead

2012-12-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Note that tests use a mock with overloaded `error` attribute. -- nosy: +serhiy.storchaka stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16704

[issue16704] Get rid of select.error in stdlib. Use OSError instead

2012-12-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16704 ___ ___

[issue16704] Get rid of select.error in stdlib. Use OSError instead

2012-12-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset eb8032781eba by Andrew Svetlov in branch 'default': Issue #16704: Get rid of select.error in stdlib. Use OSError instead. http://hg.python.org/cpython/rev/eb8032781eba -- nosy: +python-dev ___ Python

[issue16704] Get rid of select.error in stdlib. Use OSError instead

2012-12-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16704 ___

[issue9022] TypeError in wsgiref.handlers when using CGIHandler

2012-12-17 Thread And Clover
And Clover added the comment: (This issue should be closed; it is superseded by the fix for 10155 in Python 3.2.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9022 ___

[issue10155] Add fixups for encoding problems to wsgiref

2012-12-17 Thread And Clover
And Clover added the comment: (belated close-fixed) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10155 ___

[issue16705] Use concrete classes inherited from OSError instead of errno check

2012-12-17 Thread Andrew Svetlov
New submission from Andrew Svetlov: Probably it is long enough work and should be done in several iteration after converting all exceptions like IOError, EnvironmentError, WindowsError, mmap.error, socket.error and select.error to OSError. -- assignee: asvetlov components: Library

[issue16648] stdib should use new exception types from PEP 3151

2012-12-17 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- dependencies: +Use concrete classes inherited from OSError instead of errno check ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16648

[issue16706] Get rid of os.error. Use OSError instead

2012-12-17 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- assignee: asvetlov components: Library (Lib) nosy: asvetlov priority: normal severity: normal status: open title: Get rid of os.error. Use OSError instead type: behavior versions: Python 3.4 ___

[issue16705] Use concrete classes inherited from OSError instead of errno check

2012-12-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7aa2ccc5aef1 by Andrew Svetlov in branch 'default': Replace mmap.error with OSError, #16705 http://hg.python.org/cpython/rev/7aa2ccc5aef1 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue16705] Use concrete classes inherited from OSError instead of errno check

2012-12-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 061e9a439f54 by Andrew Svetlov in branch 'default': Get rig of EnvironmentError (#16705) http://hg.python.org/cpython/rev/061e9a439f54 -- ___ Python tracker rep...@bugs.python.org

[issue16707] --with-pydebug and --without-pymalloc are incompatible

2012-12-17 Thread Antoine Pitrou
New submission from Antoine Pitrou: Here is what happens when combining --with-pydebug and --without-pymalloc: gcc -pthread -g -O0 -Wall -Wstrict-prototypes Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/bitset.o Parser/metagrammar.o

[issue16707] --with-pydebug and --without-pymalloc are incompatible

2012-12-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: make clean fixed the build. Sorry for the noise. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16707 ___

[issue13390] Hunt memory allocations in addition to reference leaks

2012-12-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset a85673b55177 by Antoine Pitrou in branch 'default': Following issue #13390, fix compilation --without-pymalloc, and make sys.getallocatedblocks() return 0 in that situation. http://hg.python.org/cpython/rev/a85673b55177 --

[issue16708] Module: shutil will not import when writen in the text editor but will in the python shell

2012-12-17 Thread luke wood
Changes by luke wood dj_...@live.com: -- components: Library (Lib) files: dropbox dropper.py nosy: dj_law priority: normal severity: normal status: open title: Module: shutil will not import when writen in the text editor but will in the python shell type: behavior versions: Python 3.3

[issue16708] Module: shutil will not import when writen in the text editor but will in the python shell

2012-12-17 Thread R. David Murray
New submission from R. David Murray: It works fine for me. Are you on windows by any chance? I suspect you should take this to python-list for help, but you could paste the traceback you are getting if you still think it is a bug in Python. -- nosy: +r.david.murray resolution: -

[issue15911] can't step through _frozen_importlib/importlib._bootstrap using gdb

2012-12-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15911 ___

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2012-12-17 Thread Robert Collins
New submission from Robert Collins: Openstack recently switched from nose to using discover. discover walks the filesystem using os.listdir(), and that is just a thin layer over readdir. On ext3/ext4 filesystems, readdir is in an arbitrary order dependent on file insertion into the directory

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2012-12-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1. It also makes test output nicer. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16709 ___ ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-12-17 Thread Mikhail Korobov
Changes by Mikhail Korobov kmik...@gmail.com: -- nosy: +kmike ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing

[issue16706] Get rid of os.error. Use OSError instead

2012-12-17 Thread Hynek Schlawack
New submission from Hynek Schlawack: Ah yeah I support this endeavor, I fixed a few instances in rmtree while working on it. It’s just confusing. JFTR, is there any rationale/reason to do it? Last time I checked it wasn’t deprecated. -- nosy: +hynek

[issue16708] Module: shutil will not import when writen in the text editor but will in the python shell

2012-12-17 Thread luke wood
luke wood added the comment: ok i dont really know what python list is. i googled it but it just came up with the documentation. Traceback (most recent call last): File C:\Users\luke\Documents\Python Code\dropbox dropper.py, line 1, in module import shutil File