[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/cpython/./Python/sysmodule.c:900: undefined reference to 
 `_Py_GetAllocatedBlocks'
 collect2: error: ld returned 1 exit status
 make: *** [python] Error 1

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?

--

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



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

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



[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 very old and boring 
 joke, and does nothing to clarify what you are trying to clarify. If you 
 could include real-world examples in your documentation, rather than clever 
 programmer jokes, learners such as myself would have far more respect for 
 the good work you are obviously doing here.

 For example, the section on argparser is full of this sort of rubbish:
 argparse.ArgumentParser(description='A foo that bars')

 Under what circumstances would you ever put that in a program? Are you mad?

 Please take this into consideration.

--
nosy: +chris.jerdonek

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



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

--

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



[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/file28342/ftplib.patch

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue16646
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

On the contrary, the aim is precisely to provide a memory statistics
function which is available for everyone, not only CPython developers.
It is simply not practical right now for a C extension developer to
check for memory leaks.

--

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



[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 name getallocatedblocks(), it would seem reasonable to return
0 in this case and document the fact. I don't think many people use
--without-pymalloc anyhow.

I'm using the option only for Valgrind testing, that's how I found
the build error.

--

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



[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' in branch '3.3':
Fix issue #16646: ftplib.FTP.makeport() might lose socket error details.  
(patch by Serhiy Storchaka)
http://hg.python.org/cpython/rev/b8289a08d720

New changeset a0b1942600a2 by Giampaolo Rodola' in branch 'default':
Fix issue #16646: ftplib.FTP.makeport() might lose socket error details.  
(patch by Serhiy Storchaka)
http://hg.python.org/cpython/rev/a0b1942600a2

--
nosy: +python-dev

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



[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

--

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 side, it might be worth adding an admonition about PATH_INFO and 
non-ascii URLs on the wsgiref docs.

--
assignee:  - docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python

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



[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 details in LMTP.connect()
http://hg.python.org/cpython/rev/6d805653843a

New changeset ddf0fbff94d8 by Andrew Svetlov in branch 'default':
Issue #16647: save socket error details in LMTP.connect()
http://hg.python.org/cpython/rev/ddf0fbff94d8

New changeset 98b73c0103d9 by Andrew Svetlov in branch '2.7':
Issue #16647: save socket error details in LMTP.connect()
http://hg.python.org/cpython/rev/98b73c0103d9

--
nosy: +python-dev

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

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



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

Patch makes urllib.request.urlopen ignore proxies set in the environment. Note 
that this only works for http proxies. https proxies are trickier and require 
more work.

--
components: Tests
files: test_proxy.patch
keywords: patch
messages: 177654
nosy: Jeff.Knupp
priority: normal
severity: normal
status: open
title: Force urllib2_localnet test not to use http proxies
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file28343/test_proxy.patch

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 as err: pass
... 
 err
Traceback (most recent call last):
  File stdin, line 1, in module
NameError: name 'err' is not defined

--

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



[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 value, or save 
the old value, or the compiler will raise an error. But it didn't even warns.

--
components: Interpreter Core
messages: 177657
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: except statement turns defined variable into undefined
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4

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



[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 other than iso-8859-1, we've effectively 
short-circuited that. Since the normal request() calls take care of encoding, 
it seems send() should be for those that 'know what they're doing'. 

Also, nowhere in the send() documentation does it state that send() will 
perform this encoding (and only on a file, but not on a string?).

Removing the burden of encoding if a file-like object is passed seems more 
reasonable and would make the code considerably clearer. If anyone agrees, I'll 
open a new ticket with patch for this issue.

--
keywords: +patch
nosy: +Jeff.Knupp
Added file: http://bugs.python.org/file28345/http_client.patch

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



[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':
Issue 16646 (ftplib): deliberately use intermediate variable after catching 
exception
http://hg.python.org/cpython/rev/da161499d0c0

New changeset 0845a3dbee38 by Giampaolo Rodola' in branch 'default':
Issue 16646 (ftplib): deliberately use intermediate variable after catching 
exception
http://hg.python.org/cpython/rev/0845a3dbee38

--

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue16704
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
messages: 177668
nosy: asvetlov
priority: normal
severity: normal
status: open
title: Use concrete classes inherited from OSError instead of errno check
type: behavior
versions: Python 3.4

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

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



[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
http://bugs.python.org/issue16705
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue16705
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/firstsets.o Parser/grammar.o 
Parser/pgen.o Objects/obmalloc.o Python/dynamic_annotations.o 
Python/mysnprintf.o Python/pyctype.o Parser/tokenizer_pgen.o 
Parser/printgrammar.o Parser/parsetok_pgen.o Parser/pgenmain.o -lpthread -ldl  
-lutil -o Parser/pgen
Parser/tokenizer_pgen.o: In function `tok_new':
/home/antoine/cpython/default/Parser/tokenizer.c:115: undefined reference to 
`_PyMem_DebugMalloc'
Parser/tokenizer_pgen.o: In function `new_string':
/home/antoine/cpython/default/Parser/tokenizer.c:152: undefined reference to 
`_PyMem_DebugMalloc'
Parser/tokenizer_pgen.o: In function `PyTokenizer_FromUTF8':
/home/antoine/cpython/default/Parser/tokenizer.c:799: undefined reference to 
`_PyMem_DebugMalloc'
Parser/tokenizer_pgen.o: In function `PyTokenizer_FromFile':
/home/antoine/cpython/default/Parser/tokenizer.c:819: undefined reference to 
`_PyMem_DebugMalloc'
/home/antoine/cpython/default/Parser/tokenizer.c:831: undefined reference to 
`_PyMem_DebugMalloc'
Parser/tokenizer_pgen.o: In function `PyTokenizer_Free':
/home/antoine/cpython/default/Parser/tokenizer.c:849: undefined reference to 
`_PyMem_DebugFree'
/home/antoine/cpython/default/Parser/tokenizer.c:856: undefined reference to 
`_PyMem_DebugFree'
/home/antoine/cpython/default/Parser/tokenizer.c:858: undefined reference to 
`_PyMem_DebugFree'
/home/antoine/cpython/default/Parser/tokenizer.c:859: undefined reference to 
`_PyMem_DebugFree'
Parser/tokenizer_pgen.o: In function `tok_nextc':
/home/antoine/cpython/default/Parser/tokenizer.c:928: undefined reference to 
`_PyMem_DebugFree'
/home/antoine/cpython/default/Parser/tokenizer.c:936: undefined reference to 
`_PyMem_DebugRealloc'
/home/antoine/cpython/default/Parser/tokenizer.c:939: undefined reference to 
`_PyMem_DebugFree'
/home/antoine/cpython/default/Parser/tokenizer.c:941: undefined reference to 
`_PyMem_DebugFree'
/home/antoine/cpython/default/Parser/tokenizer.c:949: undefined reference to 
`_PyMem_DebugFree'
/home/antoine/cpython/default/Parser/tokenizer.c:957: undefined reference to 
`_PyMem_DebugFree'
/home/antoine/cpython/default/Parser/tokenizer.c:973: undefined reference to 
`_PyMem_DebugMalloc'
/home/antoine/cpython/default/Parser/tokenizer.c:1008: undefined reference to 
`_PyMem_DebugRealloc'
Parser/tokenizer_pgen.o: In function `PyTokenizer_FindEncodingFilename':
/home/antoine/cpython/default/Parser/tokenizer.c:1753: undefined reference to 
`_PyMem_DebugMalloc'
Parser/parsetok_pgen.o: In function `parsetok':
/home/antoine/cpython/default/Parser/parsetok.c:179: undefined reference to 
`_PyObject_DebugMalloc'
/home/antoine/cpython/default/Parser/parsetok.c:193: undefined reference to 
`_PyObject_DebugFree'
/home/antoine/cpython/default/Parser/parsetok.c:199: undefined reference to 
`_PyObject_DebugFree'
/home/antoine/cpython/default/Parser/parsetok.c:217: undefined reference to 
`_PyObject_DebugFree'
/home/antoine/cpython/default/Parser/parsetok.c:275: undefined reference to 
`_PyObject_DebugMalloc'
/home/antoine/cpython/default/Parser/parsetok.c:288: undefined reference to 
`_PyObject_DebugMalloc'
/home/antoine/cpython/default/Parser/parsetok.c:292: undefined reference to 
`_PyObject_DebugFree'
/home/antoine/cpython/default/Parser/parsetok.c:297: undefined reference to 
`_PyMem_DebugFree'
Parser/pgenmain.o: In function `getgrammar':
/home/antoine/cpython/default/Parser/pgenmain.c:111: undefined reference to 
`_PyObject_DebugFree'
Parser/pgenmain.o: In function `PyOS_Readline':
/home/antoine/cpython/default/Parser/pgenmain.c:143: undefined reference to 
`_PyMem_DebugMalloc'
/home/antoine/cpython/default/Parser/pgenmain.c:156: undefined reference to 
`_PyMem_DebugRealloc'
collect2: ld a retourné 1 code d'état d'exécution
make[1]: *** [Parser/pgen] Erreur 1
make[1] : on quitte le répertoire « /home/antoine/cpython/default »
make: *** [Include/graminit.h] Erreur 2

--
components: Interpreter Core
messages: 177671
nosy: pitrou, skrah
priority: low
severity: normal
status: open
title: --with-pydebug and --without-pymalloc are incompatible
type: compile error
versions: Python 3.4

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

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



[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
Added file: http://bugs.python.org/file28346/dropbox dropper.py

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



[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:  - works for me
stage:  - committed/rejected
status: open - pending

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 if dir_index is enabled (which is the default).

This means that files are loaded in an order that isn't reproducable by other 
developers, so bad tests that have isolation issues can be very tricky to track 
down.

Just wrapping the os.listdir() in sorted() would be sufficient to make this 
robust and repeatable, and avoid the headache.

--
components: Library (Lib)
messages: 177675
nosy: ezio.melotti, michael.foord, pitrou, rbcollins
priority: normal
severity: normal
status: open
title: unittest discover order is filesystem specific - hard to reproduce
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

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



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

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



[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 C:\Python33\lib\shutil.py, line 14, in module
import tarfile
  File C:\Python33\lib\tarfile.py, line 48, in module
import copy
  File C:\Users\luke\Documents\Python Code\copy.py, line 4, in module
shutil.copy2(source, destination)
AttributeError: 'module' object has no attribute 'copy2'

--
status: pending - open

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