[issue13197] subprocess: move shell arguments to a separate keyword param

2011-10-19 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

List not only needs to be joined, it should be quoted as well. But the biggest 
problem will be the change of behavior between Python versions which may 
confuse users even more.

Perhaps it's a good time to start embedding 'best practice' recipes in manual.

--

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



[issue13212] json library is decoding/encoding when it should not

2011-10-19 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

I wonder if there are concrete use cases for loading/dumping basic types.
I see two options here:
1) we decide that load/dump should accept and produce only complete json object 
and go through a deprecation process, raising warnings first and errors then;
2) we decide that the correct behavior (loading/dumping basic types) is fine 
and that should be up to the user to check if the document has an array/object 
at the top level and then just document it (if it's not documented already).

--
nosy: +ezio.melotti

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



[issue13141] get rid of old threading API in the examples

2011-10-19 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Proposed patch to refresh the socketserver examples.

--
keywords: +patch
stage: needs patch - patch review
versions: +Python 3.2
Added file: http://bugs.python.org/file23459/issue13141.diff

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



[issue13210] Support Visual Studio 2010

2011-10-19 Thread Sébastien Sablé

Sébastien Sablé sa...@users.sourceforge.net added the comment:

Martin, what I want to achieve is to ensure that someone can download Python 
sources and compile them without any modification using a standard install of 
Windows + Visual Studio 2010 SP1.

I don't really care what is the default compiler used to generate the official 
binaries, this is a decision that should be taken according to what most people 
use. But a least the compilation should work easily with the recent and popular 
VS2010 compiler.

As I said the patch is for the moment a quick and dirty draft: it breaks 
compilation with VS2008 and assume VS2010. Of course this is not my goal: the 
final patch should work with existing compilers as well as VS2010.

Which part of the changes do you consider unnecessary?

Concerning the target version: I need to use Python 2.7 internally because our 
application has not been migrated to Python 3.
I think other people may be in the same case.

I understand there is a feature freeze on this branch (event though the changes 
in this case are well localized and not intrusive), so I will target primarily 
Python trunk for the inclusion of patches, but I will also maintain internally 
my own set of patches for Python 2.7 (and in the wiki for those who are 
interested).

--

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



[issue13216] Add cp65001 codec

2011-10-19 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

We shouldn't use the MS codec if we have our own, as they may differ.

As for the 65001 bug: is that actually solved by this codec?

--

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



[issue13210] Support Visual Studio 2010

2011-10-19 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 Which part of the changes do you consider unnecessary?

All the parts dealing with packaging, in particular Tools/msi.

 I understand there is a feature freeze on this branch (event though
 the changes in this case are well localized and not intrusive), so I
 will target primarily Python trunk for the inclusion of patches, but
 I will also maintain internally my own set of patches for Python 2.7
 (and in the wiki for those who are interested).

Instead of doing so internally, I really suggest to maintain a public
hg clone, either on hg.python.org (by your name), or on, say, bitbucket.

--

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



[issue13210] Support Visual Studio 2010

2011-10-19 Thread Sébastien Sablé

Sébastien Sablé sa...@users.sourceforge.net added the comment:

Packaging makes it easier to distribute Python among my colleagues and 
customers, so I think it is a nice addition.

OK for the hg clone, I will set up that (I actually already use mercurial 
internally to handle those modifications).

--

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



[issue13216] Add cp65001 codec

2011-10-19 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 We shouldn't use the MS codec if we have our own, as they may differ.

Ok, I agree. MS codec has a nice replacement behaviour (search for a similar 
glyph): cp1252 encodes Ł to b'L' for example. Our codec raises a 
UnicodeEncodeError on u'\u0141'.encode('cp1252').

 As for the 65001 bug: is that actually solved by this codec?

Sorry, which bug?

See tests using CP_UTF8 in test_codecs. Depending on the Windows version, you 
don't get the same behaviour on surrogates. Before Windows Vista, surrogates 
were always encoded, whereas you can now choose the behaviour using the Python 
error handler:

if self.vista_or_later():
tests.append(('\udc80', 'strict', None)) # None=UnicodeEncodeError
tests.append(('\udc80', 'ignore', b''))
tests.append(('\udc80', 'replace', b'?'))
else:
tests.append(('\udc80', 'strict', b'\xed\xb2\x80'))

--

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



[issue13212] json library is decoding/encoding when it should not

2011-10-19 Thread Tomasz Buchert

Tomasz Buchert thin...@gmail.com added the comment:

It wouldn't be a problem if 'json' library would be a thing specific to Python. 
But JSON is used to gule together different technologies and programming 
languages. I'm afraid that the default behavior should be 1).

--

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



[issue13163] `port` and `host` are confused in `_get_socket

2011-10-19 Thread Víctor Terrón

Víctor Terrón quinta...@gmail.com added the comment:

I have added a docstring to _get_socket.

My proposed news entry is almost exactly what you suggested (I have just 
replaced 'identity' with 'identify'): 
Issue #13163: Fix smtplib.SMTP._get_socket so that tracebacks correctly 
identify host and port arguments.

--
Added file: http://bugs.python.org/file23460/issue13163.patch

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



[issue13163] `port` and `host` are confused in `_get_socket

2011-10-19 Thread Víctor Terrón

Changes by Víctor Terrón quinta...@gmail.com:


Removed file: http://bugs.python.org/file23404/smtplib.py.diff

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



[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2011-10-19 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

They were removed because adding new methods to builtin types violated the 
language moratorium.

Now that the language moratorium is over, the transform/untransform convenience 
APIs should be added again for 3.3. It's an approved change, the original 
timing was just wrong.

--
assignee: lemburg - 
nosy: +ncoghlan

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



[issue1602] windows console doesn't print or input Unicode

2011-10-19 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

I done more tests on the Windows console. I focused my tests on output.

To sum up, if we implement sys.stdout using WriteConsoleW() and 
sys.stdout.buffer.raw using WriteConsoleA():

 - print() will not fail anymore on unencodable characters, because the string 
is no longer encoded to the console code page
 - if you set the console font to a TrueType font, most characters will be 
displayed correctly
 - you don't need to change the (console) code page to CP_UTF8 (65001) anymore 
if you just use print()
 - you still need cp65001 if the output (stdout and/or stderr) is redirected or 
if you use directly sys.stdout.buffer or sys.stderr.buffer

Other facts:

 - locale.getpreferredencoding() returns the ANSI code page
 - sys.stdin.encoding is the console encoding (GetConsoleCP())
 - sys.stdout.encoding and sys.stderr.encoding are the console output code page 
(GetConsoleOutputCP())
 - sys.stdout is not a TTY if the output is redirect, e.g. python 
script.py|more
 - sys.stderr is not a TTY if the output is redirect, e.g. python script.py 
21|more (this example redirects stdout and stderr, I don't know how to 
redirect only stderr)
 - WriteConsoleW() is not affected by the console output code page 
(GetConsoleOutputCP)
 - WriteConsoleA() is indirectly affected by the console output code page: if a 
string cannot be encoded to the console output code page (e.g. 
sys.stdout.encoding), you cannot call WriteConsoleA with the result...
 - If the console font is a raster font and and the font doesn't contain a 
character, the console tries to find a similar glyph, or it falls back to the 
character '?'
 - If the console font is a TrueType font, it is able to display most Unicode 
characters

--

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



[issue1602] windows console doesn't print or input Unicode

2011-10-19 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

unicode3.py replaces sys.stdout, sys.stdout.buffer, sys.stderr and 
sys.stderr.buffer to use WriteConsoleW() and WriteConsoleA(). It displays also 
a lot of information about encodings and displays some characters (I wrote my 
tests for cp850, cp1252 and cp65001).

--
Added file: http://bugs.python.org/file23461/unicode3.py

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



[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2011-10-19 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

Sorry, I meant to state my rationale for the unassignment - I'm assuming this 
issue is covered by MAL's recent decision to step away from Unicode and codec 
maintenance issues. If that's incorrect, MAL can reclaim the issue, otherwise 
unassigning leaves it open for whoever wants to move it forward.

--

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



[issue13216] Add cp65001 codec

2011-10-19 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 I consider that it is useless to set the ANSI code page to 65001 in a console

I did more tests on the Windows console, focused on output, see:
http://bugs.python.org/issue1602#msg145898

I was wrong, it *is* useful to change the code page to 65001. Even if we have 
fully Unicode compliant sys.stdout and sys.stderr, setting the code page to 
CP_UTF8 (65001) does still improve Unicode support in some cases:

 - if the output (stdout and/or stderr) is redirected
 - if you encode Unicode to the console code page to use directly 
sys.stdout.buffer and sys.stderr.buffer

--

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



[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda

New submission from Nadeem Vawda nadeem.va...@gmail.com:

Since upgrading to Ubuntu 11.10, I've been getting the following failures in 
test_ssl:

==
FAIL: test_protocol_sslv3 (test.test_ssl.ThreadedTests)
Connecting to an SSLv3 server with various client options
--
Traceback (most recent call last):
  File /home/nadeem/code/src/cpython/def/Lib/test/test_ssl.py, line 1415, 
in test_protocol_sslv3
try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv23, False)
  File /home/nadeem/code/src/cpython/def/Lib/test/test_ssl.py, line 1232, 
in try_protocol_combo
ssl.get_protocol_name(server_protocol)))
AssertionError: Client protocol SSLv23 succeeded with server protocol SSLv3!

==
FAIL: test_protocol_tlsv1 (test.test_ssl.ThreadedTests)
Connecting to a TLSv1 server with various client options
--
Traceback (most recent call last):
  File /home/nadeem/code/src/cpython/def/Lib/test/test_ssl.py, line 1433, 
in test_protocol_tlsv1
try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv23, False)
  File /home/nadeem/code/src/cpython/def/Lib/test/test_ssl.py, line 1232, 
in try_protocol_combo
ssl.get_protocol_name(server_protocol)))
AssertionError: Client protocol SSLv23 succeeded with server protocol TLSv1!

--

and this (presumably related) failure in test_nntplib:

==
ERROR: setUpClass (test.test_nntplib.NetworkedNNTP_SSLTests)
--
Traceback (most recent call last):
  File /home/nadeem/code/src/cpython/def/Lib/test/test_nntplib.py, line 
291, in setUpClass
cls.server = cls.NNTP_CLASS(cls.NNTP_HOST, timeout=TIMEOUT, 
usenetrc=False)
  File /home/nadeem/code/src/cpython/def/Lib/nntplib.py, line 1052, in 
__init__
readermode=readermode, timeout=timeout)
  File /home/nadeem/code/src/cpython/def/Lib/nntplib.py, line 344, in 
__init__
self.getcapabilities()
  File /home/nadeem/code/src/cpython/def/Lib/nntplib.py, line 380, in 
getcapabilities
resp, caps = self.capabilities()
  File /home/nadeem/code/src/cpython/def/Lib/nntplib.py, line 546, in 
capabilities
resp, lines = self._longcmdstring(CAPABILITIES)
  File /home/nadeem/code/src/cpython/def/Lib/nntplib.py, line 513, in 
_longcmdstring
resp, list = self._getlongresp(file)
  File /home/nadeem/code/src/cpython/def/Lib/nntplib.py, line 464, in 
_getlongresp
resp = self._getresp()
  File /home/nadeem/code/src/cpython/def/Lib/nntplib.py, line 437, in 
_getresp
resp = self._getline()
  File /home/nadeem/code/src/cpython/def/Lib/nntplib.py, line 425, in 
_getline
if not line: raise EOFError
EOFError

3.2 gives a different set of failures in test_ssl (with the same failure in 
test_nntplib):

==
ERROR: test_constructor (test.test_ssl.ContextTests)
--
Traceback (most recent call last):
  File /home/nadeem/code/src/cpython/3.2/Lib/test/test_ssl.py, line 82, 
in f
return func(*args, **kwargs)
  File /home/nadeem/code/src/cpython/3.2/Lib/test/test_ssl.py, line 345, 
in test_constructor
ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv2)
  File /home/nadeem/code/src/cpython/3.2/Lib/ssl.py, line 168, in __new__
return _SSLContext.__new__(cls, protocol)
ssl.SSLError: failed to allocate SSL context

==
ERROR: test_protocol (test.test_ssl.ContextTests)
--
Traceback (most recent call last):
  File /home/nadeem/code/src/cpython/3.2/Lib/test/test_ssl.py, line 82, 
in f
return func(*args, **kwargs)
  File /home/nadeem/code/src/cpython/3.2/Lib/test/test_ssl.py, line 356, 
in test_protocol
ctx = ssl.SSLContext(proto)
  File /home/nadeem/code/src/cpython/3.2/Lib/ssl.py, line 168, in __new__
return _SSLContext.__new__(cls, protocol)
ssl.SSLError: failed to allocate SSL context

==
ERROR: test_session_stats (test.test_ssl.ContextTests)
--
Traceback (most recent call last):
  File /home/nadeem/code/src/cpython/3.2/Lib/test/test_ssl.py, line 82, 
in f
return func(*args, 

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

All the tests work fine with OpenSSL 1.0.0d under Mageia. Could you look into 
Ubuntu-specific patches to OpenSSL? They have known to add disruptive changes 
(we already have some Ubuntu-specific code in test_ssl).

Also, how about the system Python? Does it show the same test failures?

--

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



[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Actually, I think you may just have to fix skip_if_broken_ubuntu_ssl() in 
test_ssl.py. Could you give it a try?

--

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



[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda

Nadeem Vawda nadeem.va...@gmail.com added the comment:

 Also, how about the system Python? Does it show the same test failures?

Unfortunately, it seems that the system Python package doesn't install the
test suite; if you try to run python -m test.regrtest, it complains that
it can't find the test modules.

 Actually, I think you may just have to fix skip_if_broken_ubuntu_ssl() in 
 test_ssl.py. Could you give it a try?

I'll take a look over the weekend.

--

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



[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Attached patch updates skip_if_broken_ubuntu_ssl(): OpenSSL in Ubuntu is still 
broken :-( OpenSSL package version is 1.0.0e-2ubuntu4 but in Python, 
ssl.OPENSSL_VERSION_INFO is still (0, 9, 8, 15, 15) !?

--
keywords: +patch
nosy: +haypo
Added file: http://bugs.python.org/file23462/test_ssl_broken_ubuntu.patch

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



[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy:  -giampaolo.rodola

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



[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Attached patch updates skip_if_broken_ubuntu_ssl(): OpenSSL in Ubuntu
 is still broken :-( OpenSSL package version is 1.0.0e-2ubuntu4 but in
 Python, ssl.OPENSSL_VERSION_INFO is still (0, 9, 8, 15, 15) !?

Are you sure? Did you rebuild?

--

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



[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda

Nadeem Vawda nadeem.va...@gmail.com added the comment:

I get (1, 0, 0, 5, 15) for ssl.OPENSSL_VERSION_INFO. A trivial modification
of Victor's patch doesn't seem to fix the failures for me, though :/

--

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



[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda

Nadeem Vawda nadeem.va...@gmail.com added the comment:

Sorry, that wasn't very coherent. What I meant to say is that I tried this:

if ((ssl.OPENSSL_VERSION_INFO, platform.linux_distribution()) in
[((0, 9, 8, 15, 15), ('debian', 'squeeze/sid', '')),
 ((1, 0, 0,  5, 15), ('debian',  'wheezy/sid', ''))]):
raise unittest.SkipTest(Patched Ubuntu OpenSSL breaks behaviour)

on the default branch, and I'm still getting the same failures.

--

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



[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 ssl.OPENSSL_VERSION_INFO is still (0, 9, 8, 15, 15)

After a recompilation, I get (1, 0, 0, 5, 15) and ssl doesn't has 
PROTOCOL_SSLv2. test_ssl is failing with:


==
FAIL: test_protocol_sslv3 (test.test_ssl.ThreadedTests)
Connecting to an SSLv3 server with various client options
--
Traceback (most recent call last):
  File /home/vstinner/prog/python/default/Lib/test/test_ssl.py, line 1415, in 
test_protocol_sslv3
try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv23, False)
  File /home/vstinner/prog/python/default/Lib/test/test_ssl.py, line 1232, in 
try_protocol_combo
ssl.get_protocol_name(server_protocol)))
AssertionError: Client protocol SSLv23 succeeded with server protocol SSLv3!

==
FAIL: test_protocol_tlsv1 (test.test_ssl.ThreadedTests)
Connecting to a TLSv1 server with various client options
--
Traceback (most recent call last):
  File /home/vstinner/prog/python/default/Lib/test/test_ssl.py, line 1433, in 
test_protocol_tlsv1
try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv23, False)
  File /home/vstinner/prog/python/default/Lib/test/test_ssl.py, line 1232, in 
try_protocol_combo
ssl.get_protocol_name(server_protocol)))
AssertionError: Client protocol SSLv23 succeeded with server protocol TLSv1!

--

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



[issue13219] re module doc has minor inaccuracy in character sets

2011-10-19 Thread becky lewis

New submission from becky lewis bex.le...@gmail.com:

The documentation for the re module  (specifically the section for []) states 
that:

If you want to include a ']' or a '-' inside a set, precede it with a 
backslash, or place it as the first character.

However, after finding a typo in a regex I wrote it turns out to be false.

Using the following regex finds a match:
 regex = re.compile(r'[123ab-f-]+')
 regex.match('-')
_sre.SRE_Match object at 0x8dd1b10

I am not sure if this is an issue with the documentation or if the re module 
itself should not allow this behaviour. It would be nice if the documentation 
warned that hyphens (and other 'special' characters such as [) that are not 
escaped may still be matched, even though they are not the first character.

--
assignee: docs@python
components: Documentation
messages: 145911
nosy: becky.lewis, docs@python
priority: normal
severity: normal
status: open
title: re module doc has minor inaccuracy in character sets
versions: Python 2.7

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



[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 AssertionError: Client protocol SSLv23 succeeded with server protocol SSLv3!
 AssertionError: Client protocol SSLv23 succeeded with server protocol TLSv1!

Hmm... I guess Ubuntu may have aliased SSLv23 to SSLv3. Can someone take
a look at Ubuntu patches to OpenSSL?
I also think we could relax these tests. After all, they're testing
OpenSSL's functionality, not really our own code.

Regardless, I really don't like the way Ubuntu change semantics of a
*library* they're packaging...

--

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



[issue13220] print function unable while multiprocessing.Process is being run

2011-10-19 Thread ben

New submission from ben thelen_...@yahoo.com:

print function unable while multiprocessing.Process is being run

Not sure if this really is a bug, but the multiprocessing.Process (or Pool) 
does not allow to print during multiprocessing tasks.

I've copied the example from The Python V3.2.2 documentation, library 
reference, multiprocessing (3rd example).

My systems details are: MS windows xp or Windows 7, IDLE, Python 3.2.2 [MSC 
v.1500 32 bit (Intel)] on win32

from multiprocessing import Process
import os

def info(title):
print(title)
print('module name:', __name__)
print('parent process:', os.getppid())
print('process id:', os.getpid())

def f(name):
info('function f')
print('hello', name)

if __name__ == '__main__':
info('main line')
p = Process(target=f, args=('bob',))
p.start()
p.join()


#return

#main line
#module name: __main__
#parent process: 1588
#process id: 3700

#but function f doesn't get printed.

--
components: Library (Lib)
files: mp.py
messages: 145913
nosy: Ben.thelen
priority: normal
severity: normal
status: open
title: print function unable while multiprocessing.Process is being run
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file23463/mp.py

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



[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Nadeem Vawda

Nadeem Vawda nadeem.va...@gmail.com added the comment:

 Hmm... I guess Ubuntu may have aliased SSLv23 to SSLv3. Can someone take
 a look at Ubuntu patches to OpenSSL?

I don't know enough about OpenSSL to make sense of the actual headers on my
system without spending more time on it, but it seems like Debian have disabled
SSLv2 altogether http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589706.
Could this be the source of the problem?

--

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



[issue13173] Default values for string.Template

2011-10-19 Thread Bfontaine

Bfontaine bati...@yahoo.fr added the comment:

When you are using a lot of string templates like I am doing, I think it's 
better if the defaults is attached directly to the template instance.

This:
[Template0, Template1, Template2, Template3, ...]
is easier to use than:
[(Template0, defaults0), (Template1, defaults1), ...]

--

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



[issue13212] json library is decoding/encoding when it should not

2011-10-19 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

I'm thinking that we should offer a strict-option (off by default) and leave it 
at that.  No need to break existing code.   AFAICT, the OP is the only one to 
have had problems with this in-practice (the JSON module or its ancestor 
simplejson has been around for a long time).

Am marking this as a high priority but want to leave it open for a good while 
to get more comments before taking any action.

--
assignee:  - rhettinger
priority: normal - high

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



[issue13212] json library is decoding/encoding when it should not

2011-10-19 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
nosy: +haypo

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



[issue13212] json library is decoding/encoding when it should not

2011-10-19 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Agreed that a strict parameter would be a good idea to implement this.
Since it's technically a new feature (and not that important), I think only 3.3 
should receive it.

--
nosy: +pitrou

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



[issue6715] xz compressor support

2011-10-19 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Apart from this, is there anything else that needs to be done before this
 change can be committed to the main repo?

Things look fine to me, apart from a couple of minor comments I've made on the 
review tool.

--

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



[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-10-19 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
nosy: +haypo

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



[issue12529] cgi.parse_header fails on double quotes and semicolons

2011-10-19 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 489237756488 by Senthil Kumaran in branch '2.7':
Fix closes Issue12529 - cgi.parse_header failure on double quotes and
http://hg.python.org/cpython/rev/489237756488

--
nosy: +python-dev
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue12529] cgi.parse_header fails on double quotes and semicolons

2011-10-19 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset f5bd78b11275 by Senthil Kumaran in branch '3.2':
3.2 - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
http://hg.python.org/cpython/rev/f5bd78b11275

New changeset 8564d2b240b6 by Senthil Kumaran in branch 'default':
default - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
http://hg.python.org/cpython/rev/8564d2b240b6

--

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



[issue12529] cgi.parse_header fails on double quotes and semicolons

2011-10-19 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

Thanks for the patch, Petri and Ben.Darnell.

--
nosy: +orsenthil

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



[issue13216] Add cp65001 codec

2011-10-19 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 As for the 65001 bug: is that actually solved by this codec?
 
 Sorry, which bug?

#6501 and friends (isn't it interesting that the issue of code page
65001 is reported as bug 6501?)

--

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



[issue13193] test_packaging and test_distutils failures under Windows

2011-10-19 Thread Nadeem Vawda

Nadeem Vawda nadeem.va...@gmail.com added the comment:

 The test creates a temporary directory which is inserted at the head of 
 sys.path.
 packaging.database.get_distribution should thus find Spamlib-0.1.dist-info.
 Can someone with a Windows install help me with this?  Printing sys.path and
 os.listdir(sys.path[0]) would be a good start.

test_resources 
(packaging.tests.test_command_install_data.InstallDataTestCase) ...
sys.path: ['c:\\users\\nadeem\\appdata\\local\\temp\\tmpi7pf1f\\tmp4gdwnp',
   '',
   
'C:\\Users\\Nadeem\\Code\\python3\\python\\PCbuild\\python33_d.zip',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\DLLs',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\lib',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\PCbuild',
   
'C:\\Users\\Nadeem\\AppData\\Roaming\\Python\\Python33\\site-packages',
   'C:\\Users\\Nadeem\\Code\\python3\\python',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\lib\\site-packages']
os.listdir(sys.path[0]): ['Spamlib-0.1.dist-info']
ERROR

I noticed that the test succeeds if you run only the InstallDataTestCase (with
... -v -m InstallDataTestCase test_packaging), but the sys.path info for this
case is the same as before (modulo the name of the temp directory):

test_resources 
(packaging.tests.test_command_install_data.InstallDataTestCase) ...
sys.path: ['c:\\users\\nadeem\\appdata\\local\\temp\\tmpddi17y\\tmp1mnv9z',
   '',
   
'C:\\Users\\Nadeem\\Code\\python3\\python\\PCbuild\\python33_d.zip',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\DLLs',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\lib',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\PCbuild',
   
'C:\\Users\\Nadeem\\AppData\\Roaming\\Python\\Python33\\site-packages',
   'C:\\Users\\Nadeem\\Code\\python3\\python',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\lib\\site-packages']
os.listdir(sys.path[0]): ['Spamlib-0.1.dist-info']
ok

Additionally, I've been getting a similar failure on my Ubuntu machine:

==
ERROR: test_resources 
(packaging.tests.test_command_install_data.InstallDataTestCase)
--
Traceback (most recent call last):
  File 
/home/nadeem/code/src/cpython/def/Lib/packaging/tests/test_command_install_data.py,
 line 129, in test_resources
with packaging.database.get_file('Spamlib', 'spamd') as fp:
  File /home/nadeem/code/src/cpython/def/Lib/packaging/database.py, line 
649, in get_file
return open(get_file_path(distribution_name, relative_path),
  File /home/nadeem/code/src/cpython/def/Lib/packaging/database.py, line 
644, in get_file_path
raise LookupError('no distribution named %r found' % distribution_name)
LookupError: no distribution named 'Spamlib' found

Output from Ubuntu machine:

test_resources 
(packaging.tests.test_command_install_data.InstallDataTestCase) ...
sys.path: ['/tmp/tmpubkdye/tmpdmdybx',
   '',
   '/usr/local/lib/python33.zip',
   '/home/nadeem/code/src/cpython/def/Lib',
   '/home/nadeem/code/src/cpython/def/Lib/plat-linux',
   '/home/nadeem/code/src/cpython/def/build/lib.linux-x86_64-3.3',
   '/home/nadeem/.local/lib/python3.3/site-packages',
   '/usr/local/lib/python3.3/site-packages']
os.listdir(sys.path[0]): ['Spamlib-0.1.dist-info']
ERROR

--
nosy: +nadeem.vawda

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



[issue13221] No edit with IDLE in right click context menu

2011-10-19 Thread Matthias Schreiber

New submission from Matthias Schreiber antexti...@googlemail.com:

I dont have the context menu edit with IDLE anymore.
I installed Python 3.2 first and then 2.7
I tried to open a .py file that's written with 3.2, but it were opened with the 
2.7 IDLE.
So I uninstalled 2.7 and tried to open it again.
Now the context menu were missed.
I tried to open it over Open with... with other applications.
I re-installed 3.2 and also repaired it, but the edit with IDLE is still not 
there.

--
components: IDLE
messages: 145924
nosy: Matthias.Schreiber
priority: normal
severity: normal
status: open
title: No edit with IDLE in right click context menu
versions: Python 3.2

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



[issue13193] test_packaging and test_distutils failures under Windows

2011-10-19 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-10-19 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

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



[issue992389] attribute error due to circular import

2011-10-19 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
stage:  - needs patch
versions: +Python 3.3 -Python 3.2

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



[issue6090] zipfile: Bad error message when zipping a file with timestamp before 1980

2011-10-19 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 649ac338203f by Senthil Kumaran in branch '2.7':
Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
http://hg.python.org/cpython/rev/649ac338203f

New changeset 12f3e86e9041 by Senthil Kumaran in branch '3.2':
3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with 
unrelated
http://hg.python.org/cpython/rev/12f3e86e9041

New changeset 55318658e1be by Senthil Kumaran in branch 'default':
default - Fix closes Issue6090 - Raise a ValueError, instead of failing with 
unrelated
http://hg.python.org/cpython/rev/55318658e1be

--
nosy: +python-dev
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue6090] zipfile: Bad error message when zipping a file with timestamp before 1980

2011-10-19 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

Fixed in all active branches. Thanks for the patch, Petri. 
Mark, for this issue, raising ValueError from zipfile was seemingly a  right 
thing to do, the previous error from struct for a side effect of sending a 
value lower than 1980.

--
nosy: +orsenthil

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



[issue13205] NameErrors in generated setup.py (codecs, split_multiline)

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Excellent, thanks!  I’ll move the tests into the existing test_run.py file.

--

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



[issue5788] datetime.timedelta is inconvenient to use...

2011-10-19 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

Sorry for commenting on a closed issue but I just bumped into a problem 
requiring a total_minute() method I ended up implementing by doing some raw 
math by hand.
Would it be a reasonable addition?
If so I'll open a separate issue.

--
nosy: +giampaolo.rodola

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



[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-10-19 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Thanks for the review, Antoine. Attached an updated the patch:

- The function definition now uses STRINGLIB(...) and the function is only 
defined when !STRINGLIB_IS_UNICODE (so I took both approaches)

- Added a versionadded:: 3.3 to the documentation.

--
Added file: http://bugs.python.org/file23464/issue12170_v2.patch

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



[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-10-19 Thread Petri Lehtinen

Changes by Petri Lehtinen pe...@digip.org:


Removed file: http://bugs.python.org/file23464/issue12170_v2.patch

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



[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-10-19 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset f35514dfadf8 by Senthil Kumaran in branch '2.7':
Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
http://hg.python.org/cpython/rev/f35514dfadf8

New changeset ab028084f704 by Senthil Kumaran in branch '3.2':
3.2 - Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in 
_sre.c
http://hg.python.org/cpython/rev/ab028084f704

New changeset 847afc310190 by Senthil Kumaran in branch 'default':
default - Fix closes Issue 12604 - Use a proper no-op macro expansion for 
VTRACE macro in _sre.c
http://hg.python.org/cpython/rev/847afc310190

--
nosy: +python-dev
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed

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



[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-10-19 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Fixed a minor inconsistency.

--
Added file: http://bugs.python.org/file23465/issue12170_v2.patch

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



[issue13216] Add cp65001 codec

2011-10-19 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

  Sorry, which bug?

 #6501 and friends

Hum, this particular issue, #6501, doesn't concern the code page 65001. The 
typical usecase (issues #7441 and #10920) is:

C:\victor\cpythonchcp 65001
Page de codes active : 65001

C:\victor\cpythonpcbuild\python_d.exe
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: cp65001


The console and console output code pages may be changed by something else.

The current workaround is to set PYTHONIOENCODING environment variable to 
utf-8, but as explained in msg132831, the workaround is not applicable if 
Python is embeded or if the program has been frozen by cx-freeze (cx-freeze 
deliberately sets Py_IgnoreEnvironmentFlag).

--

The issue #6501 was a bug in io.device_encoding(). I fixed it in Python 3.3 and 
I'm waiting... since 5 months... for Graham Dumpleton before backporting the 
fix. The issue suggests also to not fail if the encoding cannot be found (I 
dislike this idea).

--

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



[issue12367] select.error has no errno attribute

2011-10-19 Thread Nadeem Vawda

Nadeem Vawda nadeem.va...@gmail.com added the comment:

The AMD64 FreeBSD 8.2 3.x buildbot has been experiencing sporadic
lockups since changeset 8bbfb24d4824 was committed:


http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.x/builds/1174/steps/test/logs/stdio

http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.x/builds/1180/steps/test/logs/stdio

http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.x/builds/1185/steps/test/logs/stdio

http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.x/builds/1190/steps/test/logs/stdio

The tracebacks say that the lockups are happening in test_errno,
which is weird because the test is supposed to be skipped on
FreeBSD. Is it possible that sys.platform is returning something
that doesn't start with freebsd on this buildbot?

--
nosy: +nadeem.vawda

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



[issue12367] select.error has no errno attribute

2011-10-19 Thread Nadeem Vawda

Nadeem Vawda nadeem.va...@gmail.com added the comment:

Sorry, please disregard my last message - I confused the commit times for
8bbfb24d4824 and f6b8e4226260. There haven't been any further lockups
since f6b8e4226260 was committed.

--

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



[issue12367] select.error has no errno attribute

2011-10-19 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 The tracebacks say that the lockups are happening in test_errno

The test was added by f6b8e4226260 the 17th october, the last lockup occurred 
the 16th (19:08:15).

Before, I added a workaround to see the failure but avoid the lockup: 
60fecfbea397 (Oct 16 20:48:52, just after the last failure).

--

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



[issue13222] Erroneous unclosed file warning

2011-10-19 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola' g.rod...@gmail.com:

/opt/python3.2/lib/python3.2/site-packages/psutil/_pslinux.py:389: 
ResourceWarning: unclosed file _io.FileIO name=7 mode='rb'
  return [x for x in f.read().split('\x00') if x]

I get this while running tests.
The method in question is defined as such:

@wrap_exceptions
def get_process_cmdline(self):
f = open(/proc/%s/cmdline % self.pid)
try:
# return the args as a list
return [x for x in f.read().split('\x00') if x]
finally:
f.close()

...therefore, I'm closing the file object (in the finally block).

--
messages: 145936
nosy: giampaolo.rodola, pitrou
priority: normal
severity: normal
status: open
title: Erroneous unclosed file warning
versions: Python 3.2, Python 3.3

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



[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2011-10-19 Thread Cameron Hayne

New submission from Cameron Hayne cameron.ha...@gmail.com:

If the docstring for a method has example code that uses 'self',
the 'self' will not appear in the HTML generated by pydoc.writedoc

Example:
#-
def getAnswer(self):

Return the answer.
Example of use:
answer = self.getAnswer()

return 42
#-

The generated HTML will have:

getAnswer(self)
Return the answer.
Example of use:
answer = getAnswer()

where the final getAnswer is an HTML link.


I believe the problem arises on line 553 of the Python 2.7 version of pydoc.py 
which is as follows:
results.append(self.namelink(name, methods, funcs, classes))
The appended text is the same whether or not the method call in the docstring 
was prefaced with 'self' or not. The 'self' has been eaten up by the regex and 
is in the 'selfdot' variable which is ignored by the above line.

--
components: Library (Lib)
messages: 145937
nosy: Cameron.Hayne
priority: normal
severity: normal
status: open
title: pydoc removes 'self' in HTML for method docstrings with example code
type: behavior
versions: Python 2.7

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



[issue6715] xz compressor support

2011-10-19 Thread Nadeem Vawda

Changes by Nadeem Vawda nadeem.va...@gmail.com:


Removed file: http://bugs.python.org/file23393/bdf0afbbbd80.diff

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



[issue6715] xz compressor support

2011-10-19 Thread Nadeem Vawda

Changes by Nadeem Vawda nadeem.va...@gmail.com:


Added file: http://bugs.python.org/file23466/371a133b770a.diff

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



[issue13222] Erroneous unclosed file warning

2011-10-19 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Since the name is 7, it's certainly another file than the one opened in:
f = open(/proc/%s/cmdline % self.pid)

It could be that you called open on the result of os.pipe(), or perhaps you 
used a subprocess and didn't call communicate() or close() on it.

--
resolution:  - invalid
status: open - closed

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



[issue13170] distutils2 test failures

2011-10-19 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset cda119958db3 by Éric Araujo in branch 'default':
Kludge around shlex not supporting unicode in 2.x (#13170).
http://hg.python.org/distutils2/rev/cda119958db3

--

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



[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Python 2.7 contains distutils, not distutils2.  You’d have to clone 
hg.python.org/distutils2 and apply the patch I’m attaching.  Thanks for the 
help!

--
Added file: http://bugs.python.org/file23467/distutils2-manifest.diff

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



[issue12915] Add inspect.locate and inspect.resolve

2011-10-19 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 1405df4a1535 by Éric Araujo in branch 'default':
Expand tests and fix bugs in packaging.util.resolve_name.
http://hg.python.org/cpython/rev/1405df4a1535

--
nosy: +python-dev

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



[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-10-19 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 1cc4d822123b by Éric Araujo in branch 'default':
More fixes for PEP 3147 compliance in packaging (#11254)
http://hg.python.org/cpython/rev/1cc4d822123b

--

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



[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Installation was not completely fixed.  Distutils delegates to each command’s 
get_outputs method to make the list of all files to install or package in an 
sdist, and the previous patch missed edits to these get_outputs methods.  I 
should have fixed it in packaging, I’ll port to distutils soon.

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

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



[issue13181] pysetup install creates .pyc files but pysetup remove doesn't delete them

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I think this is #11254, for which I’ve just pushed a fix.  Can you update your 
3.3 clone and try to reproduce?

--

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



[issue12915] Add inspect.locate and inspect.resolve

2011-10-19 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


--
nosy: +eric.snow

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



[issue13224] Change str(class) to return only the class name

2011-10-19 Thread Éric Araujo

New submission from Éric Araujo mer...@netwok.org:

Suggestion by Guido on #868845:

Off-topic: I sometimes wish that the str() of a class would return the class 
name rather than its repr(); that way print(str) would print str instead of 
class 'str'.  (Use case: printing an exception and its message: I wish I 
could print(%s: %s % (err.__class__, err)) instead of having to use 
err.__class__.__name__.)  One could even claim that the repr() of a class could 
be the same, since one of the guiding principles for repr() is that it should, 
if possible, return an expression that (perhaps given a suitable environment) 
could reconstruct the value exactly (and otherwise it should have the ... 
form discussed in this issue).  But both of these wishes are debatable, and if 
anyone cares, they should open a new bug to discuss it.

 I sometimes wish that the str() of a class would return the class name
 rather than its repr(); that way print(str) would print str
 instead of class 'str'.  (Use case: printing an exception and its
 message: I wish I could print(%s: %s % (err.__class__, err)) instead
 of having to use err.__class__.__name__.)

I wrote a simple patch for that.  I just copied the definition of type_repr to 
a new type_str function, edited the format strings and updated the member 
mapping (I checked in another file than casting to reprfunc is okay for a str 
func).  It compiles and runs just fine, but I’m still learning C, so there may 
be things I’ve missed: I don’t know if I have to declare the new function or 
something like that.  The test suite passes with very few edits.


Guido added this:
 One could even claim that the repr() of a class could be the same
I for one think of repr first as “string form for debugging”, so I like the 
angle brackets.  My patch leaves __repr__ alone.


If this get approved, I’ll update my patch with doc changes.  If there is no 
feedback I’ll go to python-ideas.

--
assignee: eric.araujo
components: Interpreter Core
messages: 145945
nosy: eric.araujo
priority: normal
severity: normal
stage: patch review
status: open
title: Change str(class) to return only the class name
type: feature request
versions: Python 3.3

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



[issue13224] Change str(class) to return only the class name

2011-10-19 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
keywords: +patch
Added file: http://bugs.python.org/file23468/change-class-__str__.diff

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



[issue13224] Change str(class) to return only the class name

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Suggestion by Guido on #868845:

 I sometimes wish that the str() of a class would return the class name
 rather than its repr(); that way print(str) would print str
 instead of class 'str'.  (Use case: printing an exception and its
 message: I wish I could print(%s: %s % (err.__class__, err)) instead
 of having to use err.__class__.__name__.)

I wrote a simple patch for that.  I just copied the definition of type_repr to 
a new type_str function, edited the format strings and updated the member 
mapping (I checked in another file than casting to reprfunc is okay for a str 
func).  It compiles and runs just fine, but I’m still learning C, so there may 
be things I’ve missed: I don’t know if I have to declare the new function or 
something like that.  The test suite passes with very few edits.


Guido added this:
 One could even claim that the repr() of a class could be the same
I for one think of repr first as “string form for debugging”, so I like the 
angle brackets.  My patch leaves __repr__ alone.


If this get approved, I’ll update my patch with doc changes.  If there is no 
feedback I’ll go to python-ideas.

--

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



[issue13224] Change str(class) to return only the class name

2011-10-19 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
Removed message: http://bugs.python.org/msg145945

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



[issue868845] Need unit tests for ... reprs

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I opened #13224 with a patch to change str(class).

--

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



[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 Related :  #1565071 and #3990  . There is no reason to keep plat-xxx files if 
 cannot be managed properly.

+1

--

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



[issue11637] Add cwd to sys.path for hooks

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

This was fixed for setup hooks but not command hooks; I have a patch for that.

--
resolution: fixed - 
stage: committed/rejected - commit review
status: closed - open
versions: +3rd party

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



[issue13225] Failing packaging hooks should not stop operation

2011-10-19 Thread Éric Araujo

New submission from Éric Araujo mer...@netwok.org:

As discussed in #11637, failing hooks should not stop operation.  I see 
different issues:

a) a hook is not found
b) a hook is not callable
c) a hook raises an exception

Current code will raise a Packaging exception for a) and b), and let the 
exception propagate in case of c).  I have a patch that makes Packaging ignore 
all three kinds and issue warning or error logging messages.

An option (--strict) would be needed to switch from logging messages to 
exceptions; I wonder if an elegant way to do that would be a custom logging 
handler.

--
assignee: eric.araujo
components: Distutils2
messages: 145950
nosy: alexis, eric.araujo, tarek, vinay.sajip
priority: normal
severity: normal
status: open
title: Failing packaging hooks should not stop operation
versions: 3rd party, Python 3.3

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



[issue12375] Add packages_root to sys.path for hooks

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I have a patch for this.

--
assignee: tarek - eric.araujo
versions: +3rd party

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



[issue12416] packaging needs {pre,post}-{install,remove} hooks

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I’ve opened #13225 about the error handling.

--
assignee: tarek - eric.araujo

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



[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

I don't see why these modules should be auto-generated. The constants
in the modules hardly ever change and are also not affected by architecture
differences (e.g. Mac OS X, Solaris, etc.) AFAICT.

If you think they need to be auto-generated, you should make a case by
example.

Note that we cannot simply drop the modules. Some of the constants are
needed for e.g. socket, ctypes or ldd programming.

--

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



[issue11552] Confusing error message when hook module cannot be loaded

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Maybe your bug was #11637, or one of the other bugs that I fixed in 
1405df4a1535.  Your simple example now works.

--
assignee: tarek - eric.araujo
resolution:  - out of date
stage:  - committed/rejected
status: open - closed
type: crash - behavior

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



[issue12703] Improve error reporting for packaging.util.resolve_name

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I have added tests and fixed one or two bugs in 1405df4a1535.  I have another 
patch that checks that error messages are useful, with one exception: if you 
try to import a.b and b raises an ImportError, then the calling code will see 
an Attribute error.  Right now I don’t see how we can avoid that; checking the 
existence of files like your patch proposes is not possible, as Python modules 
do not come from files.

--
Added file: http://bugs.python.org/file23469/resolve-name-errors.diff

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



[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 you should make a case by example

Did you read comments of this issue and my email thread on python-dev? There 
are differents examples:

 - LONG_MAX is 9223372036854775807 even on 32 bits system
 - On Mac OS X, FAT programs contains 32 and 64 binaries, whereas constants are 
changed for 32 or 64 bits

 we cannot simply drop the modules. Some of the constants
 are needed for e.g. socket, ctypes or ldd programming.

Ah? I removed all plat-* directories and ran the full test suite: no failure. 
The Python socket modules contain many constants (SOCK_*, AF_*,  SO_*, ...):
http://docs.python.org/library/socket.html#socket.AF_UNIX

Which constants are used by the ctypes modules or can be used by modules using 
ctypes? Can you give examples? I listed usages of plat-* modules in the first 
message of my thread on python-dev.

By ldd, you mean ld.so (dlopen)? Yes, I agree that we need to expose  dl 
constants. But the other constants are not used.

--

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



[issue13225] Failing packaging hooks should not stop operation

2011-10-19 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

 An option (--strict) would be needed to switch from logging messages to 

 exceptions; I wonder if an elegant way to do that would be a custom logging 
 handler.

I'm not sure a custom logging handler is the way to go. I think it would be 
better to log the exception condition in all cases, raising it if --strict is 
specified, and swallowing it otherwise. An application developer can configure 
loggers/handlers appropriately if they want.

--

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



[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Victor, please accept that this entire infrastructure was originally added 
because there was a need for it, and the need did not go away. It's probably 
relevant only for a minority of applications, but you would make this 
minority's lifes much more complicated by removing the modules. If they don't 
hurt, why remove them?

--

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



[issue13121] collections.Counter's += copies the entire object

2011-10-19 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 5cced40374df by Raymond Hettinger in branch 'default':
Issue #13121: Support in-place math operators for collections.Counter().
http://hg.python.org/cpython/rev/5cced40374df

--
nosy: +python-dev

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



[issue13164] importing rlcompleter module writes a control sequence in stdout

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Can you give a simpler script (maybe in Python :) to reproduce this?  Also, 2.6 
only gets security fixes now, so please use 2.7, 3.2 or 3.3.

--
nosy: +eric.araujo
versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6

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



[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 If they don't hurt, why remove them?

Bogus constants don't hurt?

--

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



[issue13121] collections.Counter's += copies the entire object

2011-10-19 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue1602] windows console doesn't print or input Unicode

2011-10-19 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +brian.curtin, mhammond

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



[issue12185] Decimal documentation lists first and second arguments, should be self and other

2011-10-19 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

Sorry, I'm going to reject this one.  I applied the patch and looked at the 
generated docs, finding them to be less readable than before.  AFAICT, we've 
had no issues with people mis-reading the text as currently presented.   Also, 
I looked back at the underlying spec, http://speleotrove.com/decimal/daops.html 
, and found that it tended to refer to first and second operand.  I would like 
to keep our docs as close to that as possible.

--
resolution:  - rejected
status: open - closed

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



[issue1602] windows console doesn't print or input Unicode

2011-10-19 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

win_console.patch: a more complete prototype

 * patch the site module to replace sys.stdout and sys.stderr by UnicodeConsole 
and BytesConsole classes which use WriteConsoleW and WriteConsoleA
 * UnicodeConsole inherits from io.TextIOBase and BytesConsole inherits from 
io.RawIOBase
 * Revert the workaround for WriteConsoleA bug from io.FileIO

sys.stdout and/or sys.stderr are only replaced if there are not redirected.

--
Added file: http://bugs.python.org/file23470/win_console.patch

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



[issue1602] windows console doesn't print or input Unicode

2011-10-19 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

test_win_console.py: Small script to test win_console.patch. Write some 
characters into sys.stdout.buffer (WriteConsoleA) and sys.stdout 
(WriteConsoleW). The test is written for cp850, cp1252 and cp65001 code pages.

--
Added file: http://bugs.python.org/file23471/test_win_console.py

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



[issue13224] Change str(class) to return only the class name

2011-10-19 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

It looks like your change breaks backward compatibility (e.g. tests written 
using doctests). I don't know if it's a problem or not.

--
nosy: +haypo

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



[issue11931] Regular expression documentation patch

2011-10-19 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 068d89194ffd by Raymond Hettinger in branch '3.2':
Issue 11931: Minor punctuation/grammar/wording fixups to the regex docs
http://hg.python.org/cpython/rev/068d89194ffd

--
nosy: +python-dev

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



[issue11931] Regular expression documentation patch

2011-10-19 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

Applied many of these changes to 3.2 and 3.3.
If someone is interested, feel free to backport them to 2.7.

--
resolution:  - fixed
status: open - closed
versions:  -Python 3.1, Python 3.2, Python 3.3

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



[issue12668] 3.2 What's New: it's integer-string, not the opposite

2011-10-19 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 48e0db1cf7e4 by Raymond Hettinger in branch '3.2':
Issue 12668: Fix wording in Whatsnew3.2
http://hg.python.org/cpython/rev/48e0db1cf7e4

--
nosy: +python-dev

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



[issue12668] 3.2 What's New: it's integer-string, not the opposite

2011-10-19 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

Thanks for the report.

--
resolution:  - fixed
status: open - closed

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



[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread Jakub Wilk

Jakub Wilk jw...@jwilk.net added the comment:

FYI, in Debian we have at least:
one package using the CDROM module,
3 packages using the IN module,
14 packages using the DLFCN module.

--

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



  1   2   >