[issue13582] IDLE and pythonw.exe stderr problem

2013-07-03 Thread Dev Player

Dev Player added the comment:

I may be mistaken but I thought, as of not too long ago, that pythonw.exe is no 
longer needed by current versions. 2.7.5

--
nosy: +devplayer

___
Python tracker 

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



[issue18206] license url in site.py should always use X.Y.Z form of version number

2013-07-03 Thread py.user

Changes by py.user :


Added file: http://bugs.python.org/file30755/issue18206_test.diff

___
Python tracker 

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



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-07-03 Thread Frankie Jhou

Frankie Jhou added the comment:

Microsoft using Visual Studio 2012 (VC 11.0) now,
Errors happened again. 
I just want to install Cython.

Error: Unable to find vcvarsall.bat
ValueError: [u'path', u'include', u'lib']
NameError: name 'KEY_BASE' is not defined
KeyError: '9.0'
error: command 'cl.exe' failed: No such file or directory

--
nosy: +Frankie.Jhou

___
Python tracker 

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



[issue18338] python --version should send output to STDOUT

2013-07-03 Thread Berker Peksag

Berker Peksag added the comment:

Here is a patch with an updated test.

The -v flag also sends the output to stderr. Should that be fixed too? See 
Modules/main.c:678 and Lib/test/test_cmd_line.py:l47

--
keywords: +patch
nosy: +berker.peksag
stage: needs patch -> patch review
Added file: http://bugs.python.org/file30756/issue18338.diff

___
Python tracker 

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



[issue18350] Python 3 unittest framework broken?

2013-07-03 Thread Boštjan Mejak

New submission from Boštjan Mejak:

I fired up the test suite runtests.py of wxPython Phoenix and I get this:

File "C:\Program Files\Python 3.3.2\lib\unittest\runner.py", line 63, in 
addSuccess
self.stream.write('.')
TypeError: 'str' does not support the buffer interface

Can you confirm whether this is a bug in the unittest framework on the Python 
side or in the wxPython Phoenix source code side?

--
components: Tests
messages: 192226
nosy: bostjan.mejak
priority: normal
severity: normal
status: open
title: Python 3 unittest framework broken?
type: crash
versions: Python 3.3

___
Python tracker 

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



[issue7292] Multiprocessing Joinable race condition?

2013-07-03 Thread Richard Oudkerk

Changes by Richard Oudkerk :


--
resolution:  -> works for me
stage: test needed -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue18347] ElementTree corrupts cAse of closing tags when html method is specified

2013-07-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM. Please add a reference to this issue in the test.

--

___
Python tracker 

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



[issue18338] python --version should send output to STDOUT

2013-07-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue18350] Python 3 unittest framework broken?

2013-07-03 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

wxPython tests override unittest.TextTestRunner:
self.stream = unittest.runner._WritelnDecorator(BytesIO())

Using bytes is wrong. Output stream should be a text file.

--
nosy: +amaury.forgeotdarc
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue18350] Python 3 unittest framework broken?

2013-07-03 Thread Boštjan Mejak

Boštjan Mejak added the comment:

So how exactly can this critical line of code (that you posted) be fixed to 
make running wxPython Phoenix tests work?

--

___
Python tracker 

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



[issue5639] Support TLS SNI extension in ssl module

2013-07-03 Thread Mark Kubacki

Changes by Mark Kubacki :


Added file: http://bugs.python.org/file30757/python-2.7.5-tlssni.patch

___
Python tracker 

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



[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2013-07-03 Thread Jens Timmerman

Jens Timmerman added the comment:

I believe this pull request fixed this upstream (it did for me)
https://github.com/atgreen/libffi/pull/43

I fixed this by including "xmmintrin.h" instead of switching to 
reg_args->sse[ssecount].m (as per 
http://software.intel.com/en-us/forums/topic/303826 )

--
nosy: +Jens.Timmerman

___
Python tracker 

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



[issue18350] Python 3 unittest framework broken?

2013-07-03 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

This is an issue with wxPython, please report this issue to the wxPython team.

--

___
Python tracker 

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



[issue5639] Support TLS SNI extension in ssl module

2013-07-03 Thread Mark Kubacki

Mark Kubacki added the comment:

Python 2.7 is still used in production. 

Given the scarcity of IPv4-addresses — and with CDNs (think: Amazon, Akamai, 
EdgeCast…) starting to offer HTTP+SSL — the need for SNI arises in order to 
avoid pitfalls such as shared certificates.

The lack of ubiquitous support for TLS SNI could cause delays in 
HTTPS-everywhere–deployments. Therefore, in the light of the latest revelations 
about mass surveillance, I'd like even to argue that this is a matter of 
security and privacy.

--
nosy: +markk

___
Python tracker 

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



[issue5639] Support TLS SNI extension in ssl module

2013-07-03 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Mark, thanks for the patch. However, unless exceptional situations, we don't
backport features to bugfix branches.
The next Python 2.7 version will probably not be released before 2014, so even
if your patch were integrated, widespread deployment would still be delayed
significantly. By contrast, Python 3.2 has SNI support and it was released in
February 2011.

--

___
Python tracker 

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



[issue5639] Support TLS SNI extension in ssl module

2013-07-03 Thread Mark Kubacki

Mark Kubacki added the comment:

Antoine, thank you for the heads-up. As long as I've reminded distribution 
maintainers of this issue and this or a similar patch (always send a 
server_hostname with TLS, if one is missing) will be integrated (please do!) 
I've accomplished my goal.

BTW, today I've encountered a similar certificate. Semper aliquid haeret:

subjectAltName=DNS:cdn.cloudtop.org,DNS:barely-legal-spam.com,DNS:*.banging-ham.com,DNS:jimmyforcongress2014.com
 ;-)

--

___
Python tracker 

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



[issue16113] Add SHA-3 (Keccak) support

2013-07-03 Thread Mark Kubacki

Changes by Mark Kubacki :


--
nosy: +markk

___
Python tracker 

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



[issue18286] Python 3.3 - Slowing down computer

2013-07-03 Thread Ramchandra Apte

Ramchandra Apte added the comment:

The problem is with OP's code; not Python. Please close this bug as invalid. OP 
can ask on the Python mailing list to fix his code.

--
nosy: +Ramchandra Apte

___
Python tracker 

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



[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-03 Thread Brett Cannon

New submission from Brett Cannon:

http://hg.python.org/cpython/file/8e838598eed1/Lib/importlib/_bootstrap.py#l455 
: source_stats does not exist and instead should be source_path.

--
assignee: brett.cannon
components: IO
messages: 192237
nosy: brett.cannon
priority: normal
severity: normal
stage: test needed
status: open
title: Incorrect variable name in importlib._bootstrap._get_sourcefile
type: behavior
versions: Python 3.3, Python 3.4

___
Python tracker 

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



[issue18286] Python 3.3 - Slowing down computer

2013-07-03 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue13582] IDLE and pythonw.exe stderr problem

2013-07-03 Thread Terry J. Reedy

Terry J. Reedy added the comment:

No change. pythonw.exe is still present and in use.

--

___
Python tracker 

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



[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-07-03 Thread William Schwartz

William Schwartz added the comment:

Looks like this issue is closed, but I got IDLE to crash.

On Python 3.3.2, Windows 7, and Tk version 8.5, IDLE crashes when pasting 
\U0001F382 (Unicode birthday cake character). Below is the version string for 
the Python I'm running.

Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit 
(AMD64)] on win32.

According to http://docs.python.org/3.3/whatsnew/changelog.html this issue was 
fixed in Python 3.3.1 RC 1. Indeed the patch discussed above exists in the 
cpython 3.3 branch: 
http://hg.python.org/cpython/file/910ec3471d55/Modules/_tkinter.c. But IDLE 
still crashes, at least for me.

--
nosy: +William.Schwartz

___
Python tracker 

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



[issue18352] collections.Counter with added attributes are not deepcopied properly.

2013-07-03 Thread Olivier Gagnon

New submission from Olivier Gagnon:

The following code shows that the Counter is not deepcopied properly. The 
same code with an user defined class or a dict is copied with the "b" attribute.

import collections
import copy

count = collections.Counter()
count.b = 3
print(count.b) # prints 3

count_copy = copy.deepcopy(count)
print(count_copy.b) # raise AttributeError: 'Counter' object has no attribute 
'b'

--
components: Library (Lib)
messages: 192239
nosy: Olivier.Gagnon
priority: normal
severity: normal
status: open
title: collections.Counter with added attributes are not deepcopied properly.
type: behavior
versions: Python 3.3

___
Python tracker 

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



[issue18352] collections.Counter with added attributes are not deepcopied properly.

2013-07-03 Thread Madison May

Changes by Madison May :


--
nosy: +madison.may

___
Python tracker 

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



[issue17845] Clarify successful build message

2013-07-03 Thread Yogesh Chaudhari

Yogesh Chaudhari added the comment:

Patch to modify setup.py comments on successful build

--
keywords: +patch
nosy: +Yogesh.Chaudhari
Added file: http://bugs.python.org/file30758/issue17845.patch

___
Python tracker 

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



[issue18350] Python 3 unittest framework broken?

2013-07-03 Thread Boštjan Mejak

Boštjan Mejak added the comment:

By "output stream should be a text file", have you ment the line should be

self.stream = unittest.runner._WriteInDecorator(StringIO())

Can you provide me a little hint so that I can make a patch for the wxPython 
team?

--

___
Python tracker 

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



[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-07-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Unfortunately I can't reproduce a crash on Linux. Perhaps this is Windows only 
issue.

--
status: closed -> open

___
Python tracker 

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



[issue18350] Python 3 unittest framework broken?

2013-07-03 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Sorry, this bug tracker is for core Python only. Please discuss this issue on 
wxPython-dev mailing list.

--

___
Python tracker 

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



[issue18352] collections.Counter with added attributes are not deepcopied properly.

2013-07-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a preliminary patch. It changes copying and pickling to preserve 
instance attributes. Actually I'm not sure which attributes should be copied.

I doubt -- should this be considered as a fix or as a new feature?

Perhaps OrderedDict should be changed in same way.

--
keywords: +patch
nosy: +rhettinger, serhiy.storchaka
stage:  -> patch review
versions: +Python 3.4 -Python 3.3
Added file: http://bugs.python.org/file30759/counter_copy_attrs.patch

___
Python tracker 

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



[issue18033] Example for Profile Module shows incorrect method

2013-07-03 Thread Olivier Hervieu

Olivier Hervieu added the comment:

Here is a fixed version for python2.7. Using StringIO instead of io module 
fixes the problem pointed by Ezio.
The print_stats method dumps the stats either on sys.stdout if `Stats` class is 
declared without a stream specification or in the given stream parameter (the 
name print_stats may be a bit misleading).

--
nosy: +ohe
Added file: http://bugs.python.org/file30760/issue18033_py2.patch

___
Python tracker 

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



[issue18353] PyUnicode_WRITE_CHAR macro definition missing

2013-07-03 Thread Wolf Ihlenfeldt

New submission from Wolf Ihlenfeldt:

Above macro is mentioned in the documentation (3.3.2), but does not appear in 
the header files. Associated function PyUnicode_WriteChar() is present and 
works as expected.

--
assignee: docs@python
components: Documentation, Unicode
messages: 192247
nosy: Wolf.Ihlenfeldt, docs@python, ezio.melotti
priority: normal
severity: normal
status: open
title: PyUnicode_WRITE_CHAR macro definition missing
type: compile error
versions: Python 3.3

___
Python tracker 

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



[issue18352] collections.Counter with added attributes are not deepcopied properly.

2013-07-03 Thread Eric Snow

Eric Snow added the comment:

OrderedDict already copies the instance dict in __reduce__().  Are you talking 
about something more than that?

--
nosy: +eric.snow

___
Python tracker 

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

2013-07-03 Thread Mark Kubacki

Mark Kubacki added the comment:

Raw backport for Python 2.7. ›raw‹ like in some options are in _ssl only. 
(_ssl.{err_names_to_codes,err_codes_to_names,lib_codes_to_names,…})

--
nosy: +markk
Added file: 
http://bugs.python.org/file30761/python-2.7.5-tls1.1-and-tls1.2.patch

___
Python tracker 

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

2013-07-03 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ha. If you're insisting on backporting SSL stuff, I think the best option would 
be to create a third-party backport of the whole ssl module on PyPI.

--

___
Python tracker 

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



[issue18354] http://www.python.org/doc/ has outdated note

2013-07-03 Thread Daniel Holth

New submission from Daniel Holth:

Please remove the note.

Note

A new documentation project, which will be merged into the Python documentation 
soon, covers creating, installing and distributing Python packages:

The Hitchhiker's Guide to Packaging (creating and distributing Python 
packages)

--
assignee: docs@python
components: Documentation
messages: 192251
nosy: dholth, docs@python
priority: normal
severity: normal
status: open
title: http://www.python.org/doc/ has outdated note
type: enhancement

___
Python tracker 

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



[issue16933] argparse: remove magic from examples

2013-07-03 Thread paul j3

paul j3 added the comment:

There still is one "choices='XYZ'" example (16.4.5.1. Sub-commands) but the 
focus isn't on choices.

--
nosy: +paul.j3

___
Python tracker 

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



[issue18354] http://www.python.org/doc/ has outdated note

2013-07-03 Thread Brian Curtin

Brian Curtin added the comment:

Can you say why?

--
nosy: +brian.curtin

___
Python tracker 

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



[issue16977] argparse: mismatch between choices parsing and usage/error message

2013-07-03 Thread paul j3

paul j3 added the comment:

test_argparse.py has some "choices='abc'" cases.  

In those should "parser.parse_args(['--foo','bc'])" be considered a success or 
failure?  

The underlying issue here is that while string iteration behaves like list 
iteration, string __contains__ looks for substrings, not just one character 
that matches.  (String __contains__ also returns a TypeError if its argument is 
not a string.)

But other than removing poor examples in documentation and tests, I'm not sure 
this issue requires a change.

--
nosy: +paul.j3

___
Python tracker 

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



[issue11185] test_wait4 error on AIX

2013-07-03 Thread David Edelsohn

David Edelsohn added the comment:

The patch in msg128727 is correct for AIX and should be applied.

--

___
Python tracker 

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



[issue18352] collections.Counter with added attributes are not deepcopied properly.

2013-07-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I mean OrderedDict.copy().

--

___
Python tracker 

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



[issue16463] test_timeout failure on the RHEL buildbot

2013-07-03 Thread STINNER Victor

STINNER Victor added the comment:

The failure still occurs on different buildbots. Another example:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%20dtrace%203.3/builds/711/steps/test/logs/stdio

==
FAIL: testConnectTimeout (test.test_timeout.TCPTimeoutTestCase)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.3.koobs-freebsd/build/Lib/test/test_timeout.py", 
line 222, in testConnectTimeout
self._sock_operation(1, 0.001, 'connect', self.addr_remote)
  File 
"/usr/home/buildbot/python/3.3.koobs-freebsd/build/Lib/test/test_timeout.py", 
line 126, in _sock_operation
self.assertLess(delta, timeout + self.fuzz)
AssertionError: 5.352813243865967 not less than 2.001

--
nosy: +haypo

___
Python tracker 

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



[issue9625] argparse: Problem with defaults for variable nargs when using choices

2013-07-03 Thread paul j3

paul j3 added the comment:

Change "choices='abc'" to "choices=['a', 'b', 'c']", as discussed in issue 
16977  (use of string choices is a bad example)

--
Added file: http://bugs.python.org/file30762/issue9625_2.patch

___
Python tracker 

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



[issue18308] checkRecvmsgAddress wrong in test_socket.py (AIX failures)

2013-07-03 Thread STINNER Victor

STINNER Victor added the comment:

"The scope_id in the original bind call defaults to "0", which represents an 
ambiguous scoped address and allows the IPV6 protocol and implementation to 
choose the interface or site identifier."

Ok, so here is a patch using scope_id=1 to get a reliable IPv6 address. Can you 
please try it on AIX?

--
keywords: +patch
nosy: +haypo
Added file: http://bugs.python.org/file30763/scope_id.patch

___
Python tracker 

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



[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-07-03 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I verified problem continuing problem windows. There is only a 'crash' when 
running under pythonw, which does not happenon linux, as far as I know. When 
running on a console, the error traceback is the same as in msg145581 (with 
line numbers altered). Changing some ValueError to a TclError did not affect 
either UnicodeDecodeError or the problem of error reports crashing Idle because 
there is no stderr to send them to.

This type of crash is a generic problem addressed by #13582. The solution to 
that would solve the crash part of this issue, but not the message. I would 
like to see the 2.x message, possibly improved. Perhaps we should resurrect the 
2.x codec for processing text pasted into the shell.

As for text windows,
# -*- coding: utf-8 -*-
print('𐒢')
# ðミメᄁ
which is not good either.

--
resolution: fixed -> 
versions:  -Python 3.2

___
Python tracker 

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



[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c

2013-07-03 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +eric.snow

___
Python tracker 

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



[issue15767] add ModuleNotFoundError

2013-07-03 Thread Eric Snow

Eric Snow added the comment:

> I'm sorry, but this seems like it should be an importlib internal
> affair.  The new exception is too much in everyone's face, because
> the exception name gets printed on every traceback.

That's the crux of the issue.  If there isn't much utility outside importlib to 
distinguishing between module-not-found and other causes of ImportError, then 
there isn't much point to a new exception.  It just boils down to what the 
other potential causes of ImportError are and how much people care about them.

I keep thinking about PEP 3151 (IOError/OSError hierarchy rework) and the 
lessons we've learned about exception attributes vs. subclasses.  For 
readability and write-ability, I'd rather write this:

  try:
  from _collections import OrderedDict
  except ModuleNotFoundError:
  pass

than this:

  try:
  from _collections import OrderedDict
  except ImportError as e:
  if e.reason is not importlib.machinery.ImportReason.MODULE_NOT_FOUND:
  raise

But the relevant question is, what is the benefit (outside importlib) of either 
over this:

  try:
  from _collections import OrderedDict
  except ImportError:
  pass

--

___
Python tracker 

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



[issue18355] Merge super() guide into documentation

2013-07-03 Thread Russkel

New submission from Russkel:

When looking for documentation on the correct usage on super 
(http://docs.python.org/2/library/functions.html?highlight=super#super), the 
documentation links to this rather will written blog post 
http://rhettinger.wordpress.com/2011/05/26/super-considered-super/ by Mr. 
Hettinger.

I think there is value in merging that blog post into a HOWTO and including in 
the official documentation.

I'm more than willing to create a patch if this is considered a good idea.

--
assignee: docs@python
components: Documentation
messages: 192262
nosy: Russkel, docs@python, rhettinger
priority: normal
severity: normal
status: open
title: Merge super() guide into documentation

___
Python tracker 

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



[issue15767] add ModuleNotFoundError

2013-07-03 Thread Guido van Rossum

Guido van Rossum added the comment:

Right.  Outside importlib there shouldn't be a need to distinguish between the 
cases (especially given that the exception works differently than its name 
suggests).

--

___
Python tracker 

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



[issue18308] checkRecvmsgAddress wrong in test_socket.py (AIX failures)

2013-07-03 Thread David Edelsohn

David Edelsohn added the comment:

The patch in msg192259 probably will work on the particular AIX system runnnig 
the buildbot, but I do not believe that the patch is the correct solution for 
the problem.

scope_id 1 is not necessarily the correct link for IPv6 address ::1. The 
scope_id values are system dependent and the result could be any value 
depending on the interfaces available on the particular system running the 
test. scope_id 1 might not exist on the system, and forcing that value would 
generate an error.

I think the safest solution is not to compare scope_id when comparing addresses.

--

___
Python tracker 

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



[issue16251] pickle special methods are looked up on the instance rather than the type

2013-07-03 Thread Eric Snow

Eric Snow added the comment:

> I think you are overreacting.

Yeah, maybe so. :)  I just found the problem I ran into to be really hard to 
diagnose due to how pickle does lookup, and figured it would be worth 
addressing to save someone else the same headache later.

--

___
Python tracker 

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



[issue18341] enhancements zlib.compress/decompress to accept Py_buffer

2013-07-03 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

This is not a bugfix, but a new feature, and 2.7 is closed for new features. 
Sorry.

If you think the closing of this bug report is a mistake, reopen with your 
argument.

--
nosy: +jcea
resolution:  -> rejected
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue18093] Move main functions to a separate Programs directory

2013-07-03 Thread Eric Snow

Eric Snow added the comment:

Looks good to me.  What else needs to be done in this area that will help with 
work on PEP 432?

--

___
Python tracker 

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



[issue18093] Move main functions to a separate Programs directory

2013-07-03 Thread Eric Snow

Eric Snow added the comment:

What about Modules/main.c?

--

___
Python tracker 

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



[issue18338] python --version should send output to STDOUT

2013-07-03 Thread Ramchandra Apte

Ramchandra Apte added the comment:

On 3 July 2013 15:16, Berker Peksag  wrote:

>
> Berker Peksag added the comment:
>
> Here is a patch with an updated test.
>
> The -v flag also sends the output to stderr. Should that be fixed too? See
> Modules/main.c:678 and Lib/test/test_cmd_line.py:l47
>
> --
> keywords: +patch
> nosy: +berker.peksag
> stage: needs patch -> patch review
> Added file: http://bugs.python.org/file30756/issue18338.diff
>
> No, -v is for debugging purposes and should go to stderr IMO.

--

___
Python tracker 

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



[issue18338] python --version should send output to STDOUT

2013-07-03 Thread Ramchandra Apte

Ramchandra Apte added the comment:

No, I think that

On 3 July 2013 16:06, Serhiy Storchaka  wrote:

>
> Serhiy Storchaka added the comment:
>
> LGTM.
>
> --
> nosy: +serhiy.storchaka
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue18266] Fix test discovery for test_largefile.py

2013-07-03 Thread Zachary Ware

Zachary Ware added the comment:

Here's a stab at fixing that issue.  It works, but I don't know that it's the 
best solution.

This patch converts test_seek into setUp, and attempts to make sure the test 
file is in the same state at the beginning of each test, with a new 
tearDownClass removing the file after each implementation has been tested.  
setUp also tries not to recreate the file from scratch each time, as doing so 
would make the test take an unreasonably long time on Windows (currently the 
test takes around 5 minutes on my Windows 7 machine, creating the file twice.  
I have not yet tested this patch on Windows, but should be able to before 
Saturday).

With this change, load_tests has been removed, and the Py/C test subclasses are 
created manually.

Since this has moved from strictly test discovery fixes to a bit more of a 
refactor, I made a few other minor changes as well.  I removed the verbose 
prints and wrapped a couple of long lines, changed the filesystem test (which 
is now in setUpModule) to remove its test file, and fixed a couple of comments. 
Also, I removed 'oldhandler' from the issue490453 fix (since it was unused and 
only served to confuse me until I did some research on it), though I suppose if 
preferred, it could be saved to reset the signal handler at the end of the run. 
 Either way, that whole fix was also moved into setUpModule with other setup 
code.

This patch is against 3.3; it does not apply cleanly to default due to a 
conflict between IOError and OSError in two places.  It should merge forward 
fine, though.

--
Added file: 
http://bugs.python.org/file30764/test_largefile_discovery.v2-3.3.diff

___
Python tracker 

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



[issue16468] argparse only supports iterable choices

2013-07-03 Thread paul j3

paul j3 added the comment:

I'd suggest not worrying about the default metavar in the _expand_help() 
method.  The formatted choice string created in that method is only used if the 
help line includes a '%(choices)s' string.  The programmer can easily omit that 
if he isn't happy with the expanded list.

TestHelpVariableExpansion is the only test in test_argparse.py that uses it.

Sig('--foo', choices=['a', 'b', 'c'],
help='foo %(prog)s %(default)s %(choices)s')

--

___
Python tracker 

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



[issue17767] Fix test discovery for test_locale.py

2013-07-03 Thread Zachary Ware

Zachary Ware added the comment:

Here's a new patch addressing Serhiy's Rietveld comment.  This patch also 
includes the addition of 'flush=True' to the verbose print in 
BaseLocalizedTest.setUp to make output look a little nicer.

--
Added file: http://bugs.python.org/file30765/test_locale_discovery.v3.diff

___
Python tracker 

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



[issue18181] super vs. someclass.__getattribute__

2013-07-03 Thread Ronald Oussoren

Ronald Oussoren added the comment:

Updated version of the patch, with some semantic changes and tests for the 
Python level API.

Known issues:

* Patches uses tabs for indentation

* No tests for the C level API

* I don't like implementation of slot_tp_getattro_super

--
Added file: http://bugs.python.org/file30766/issue-18181-poc-v4.txt

___
Python tracker 

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



[issue18181] super vs. someclass.__getattribute__

2013-07-03 Thread Ronald Oussoren

Changes by Ronald Oussoren :


Removed file: http://bugs.python.org/file30546/issue-18181-poc.txt

___
Python tracker 

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



[issue18181] super vs. someclass.__getattribute__

2013-07-03 Thread Ronald Oussoren

Changes by Ronald Oussoren :


Removed file: http://bugs.python.org/file30555/issue-18181-poc-v3.txt

___
Python tracker 

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



[issue18181] super vs. someclass.__getattribute__

2013-07-03 Thread Ronald Oussoren

Changes by Ronald Oussoren :


Removed file: http://bugs.python.org/file30528/supers.py

___
Python tracker 

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



[issue18181] super vs. someclass.__getattribute__

2013-07-03 Thread Ronald Oussoren

Changes by Ronald Oussoren :


Removed file: http://bugs.python.org/file30556/super-hook-proposal.rst

___
Python tracker 

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



[issue18181] super vs. someclass.__getattribute__

2013-07-03 Thread Ronald Oussoren

Ronald Oussoren added the comment:

Also updated the draft PEP text

--
Added file: http://bugs.python.org/file30767/super-hook-proposal.rst

___
Python tracker 

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