[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 import shutil File "C:\Python33\lib\shutil.py",

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

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

2012-12-17 Thread Mikhail Korobov
Changes by Mikhail Korobov : -- nosy: +kmike ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[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 ___ ___ Python-bugs-list mailing list Uns

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

[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 : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

[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 : -- 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 Added file: htt

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

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

[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 Parser/firstset

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

[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

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

2012-12-17 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- 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 ___ Python tracker

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

2012-12-17 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- dependencies: +Use concrete classes inherited from OSError instead of errno check ___ Python tracker ___ _

[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 (Lib

[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 ___ ___ Python-

[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 ___ __

[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 ___ _

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

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

2012-12-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: test needed -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[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 ___ _

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

2012-12-17 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- dependencies: +Get rid of select.error in stdlib. Use OSError instead ___ Python tracker ___ ___ Python

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

2012-12-17 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- 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 ___ Python t

[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 ___ _

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

2012-12-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Ouch! My bad. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

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

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

[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 "", line 1, in NameError: name 'err' is not defined It is expected that either the variable will have the catched va

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

[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

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

[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.). -- __

[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

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

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

[issue16692] Support TLS 1.1 and TLS 1.2

2012-12-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2012-12-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[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 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' i

[issue13390] Hunt memory allocations in addition to reference leaks

2012-12-17 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou 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 name getallocatedbloc

[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 (t

[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

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

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

2012-12-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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: http://bugs.python.org/file2834

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

[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 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) ;

[issue16694] Add pure Python operator module

2012-12-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.

[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': > /home/stefan/hg/cpytho

[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 : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.