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

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

[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

[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

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

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

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

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

[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

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

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

[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

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

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

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

[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

[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

[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

[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

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

[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

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

[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

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

[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

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

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

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

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

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

[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

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

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

[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

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

[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

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

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

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

[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

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

[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

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

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

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

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

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

[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

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

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