[issue23699] Add a macro to ease writing rich comparisons

2015-03-18 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23699] Add a macro to ease writing rich comparisons

2015-03-18 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue23699] Add a macro to ease writing rich comparisons

2015-03-18 Thread Stefan Krah
Stefan Krah added the comment: Hmm, at least for the version at https://mail.python.org/pipermail/python-ideas/2015-March/032564.html I'm not sure if the optimizer will produce the same code as for the switch statement. Did you look at the asm? -- __

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-18 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: Here is an example to use to test for this bug. Proper use on my computer (PYTHONPATH may need adjusting on other systems): Python2: cd small_example python setup.py build_ext build install --prefix=`pwd` export PYTHONPATH=`pwd`/lib64/python2.7/site-packages

[issue23655] Memory corruption using pickle over pipe to subprocess

2015-03-18 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23701] Drop extraneous comment from winreg.QueryValue's docstring

2015-03-18 Thread Claudiu Popa
New submission from Claudiu Popa: winreg.QueryValue's docstring has an "interesting" comment at the end: "But the underlying API call doesn't return the type, Lame Lame Lame, DONT USE THIS!!!" The documentation (https://docs.python.org/3.4/library/winreg.html#winreg.QueryValue) already menti

[issue23566] RFE: faulthandler.register() should support file descriptors

2015-03-18 Thread Wei Wu
Wei Wu added the comment: The updated patch refactored test code a little bit according to the latest review comments by Victor. -- Added file: http://bugs.python.org/file38546/issue23566_fd_tests_v2.patch ___ Python tracker

[issue23699] Add a macro to ease writing rich comparisons

2015-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: gcc -O3 generates a sequence of cmp-s. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-18 Thread Éric Araujo
Éric Araujo added the comment: Does the patch fix things on Mac OS X and Linux? -- assignee: eric.araujo -> versions: -3rd party, Python 3.1, Python 3.2 ___ Python tracker ___ _

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-18 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: > Does the patch fix things on Mac OS X and Linux? So far as I can tell, the code in question is to do something so that CXX variables like: export CXX="env BAR=FOO g++" work better. However, it is broken for that case, and since it has been broken since at

[issue2211] Cookie.Morsel interface needs update

2015-03-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22334] test_tcl.test_split() fails on "x86 FreeBSD 7.2 3.x" buildbot

2015-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I suggest just upgrade Tcl on this buildbot to release version of 8.6. Or downgrade to release version of 8.5 or 8.4. No need to test Python with beta version of Tcl. 8.6.0 was released years ago. -- ___ Python tr

[issue23701] Drop extraneous comment from winreg.QueryValue's docstring

2015-03-18 Thread Paul Moore
Changes by Paul Moore : -- nosy: +paul.moore ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23695] idiom for clustering a data series into n-length groups

2015-03-18 Thread Paddy McCarthy
Paddy McCarthy added the comment: I like R. David Murray's suggestion, but I am also aware of how it works and so cannot judge how it would look to the intermediate Python programmer who knows iterators and zip, but is new to this grouper; (who I think should be the target audience).

[issue11468] Improve unittest basic example in the doc

2015-03-18 Thread Ezio Melotti
Ezio Melotti added the comment: Raymond, in the meanwhile can the proposed patch be applied? I don't think it's necessary to show that you need to import a module in order to test its functions. Using modules also has the disadvantage that people might not know what result to expect if they ar

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-18 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: On OSX 10.10.1, With the small_example, and with python 3.4.3 and: $ export CXX="env BAR=FOO g++" $ python3 setup.py build_ext build install --prefix=`pwd` running build_ext building '_example' extension swigging example/example.i to example/example_wrap.cpp

[issue23702] docs.python.org/3/howto/descriptor.html still refers to "unbound methods"

2015-03-18 Thread Paul Sokolovsky
New submission from Paul Sokolovsky: Under https://docs.python.org/3/howto/descriptor.html#functions-and-methods , there're several references to unbound methods (including in expected output from the interpreter). As known, unbound methods are gone in Python3, so seeing those are confusing.

[issue23702] docs.python.org/3/howto/descriptor.html still refers to "unbound methods"

2015-03-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue23545] Turn on extra warnings on GCC

2015-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not well experienced with autoconf. Here is my attempt. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file38547/configure_extra_warnings.patch ___ Python tracker

[issue23353] generator bug with exception: tstate->exc_value is not cleared after an except block

2015-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset ac43268da908 by Antoine Pitrou in branch '3.4': Issue #23353: improve exceptions tests for generators https://hg.python.org/cpython/rev/ac43268da908 New changeset b29342f53174 by Antoine Pitrou in branch 'default': Issue #23353: improve exceptions t

[issue23353] generator bug with exception: tstate->exc_value is not cleared after an except block

2015-03-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Do you want to review the patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue23353] generator bug with exception: tstate->exc_value is not cleared after an except block

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: Thanks Antoine! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17799] settrace docs are wrong about "c_call" events

2015-03-18 Thread Maries Ionel Cristian
Changes by Maries Ionel Cristian : -- nosy: +ionel.mc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-18 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch and the testing. I’m not in a position to commit the patch; if no core developer does it in the coming week, feel free to ping python-dev to get action. You can also hop onto IRC at any time and see if someone here can finish this. ---

[issue22903] unittest creates non-picklable errors

2015-03-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue22903] unittest creates non-picklable errors

2015-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file38548/pickle_module_import_failure.patch ___ Python tracker ___

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I left few nitpicks on Rietveld, but in general the patch LGTM. Oh, needed a documentation. -- ___ Python tracker ___ ___

[issue22903] unittest creates non-picklable errors

2015-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: classname is not used in _make_failed_test(). -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue23309] Hang on interpreter shutdown if daemon thread prints to stdout

2015-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch with tests. -- Added file: http://bugs.python.org/file38549/bufio_lock_finalizing_fatal_error2.patch ___ Python tracker ___ ___

[issue22903] unittest creates non-picklable errors

2015-03-18 Thread Robert Collins
Robert Collins added the comment: LGTM please commit. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch addressing Serhiy's comments. -- Added file: http://bugs.python.org/file38550/memoryview_tuple_indexing2.patch ___ Python tracker

[issue22903] unittest creates non-picklable errors

2015-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue22903] unittest creates non-picklable errors

2015-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset f3977f34cf6c by Antoine Pitrou in branch '3.4': Issue #22903: The fake test case created by unittest.loader when it fails importing a test module is now picklable. https://hg.python.org/cpython/rev/f3977f34cf6c New changeset a1b5ac563d8d by Antoine

[issue22941] IPv4Interface arithmetic changes subnet mask

2015-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for trying this! As discussed on python-dev, overflowing the netmask should raise an OverflowError. Also, some tests should be added to Lib/test/test_ipaddress.py. -- nosy: +pitrou stage: -> needs patch versions: +Python 3.5 ___

[issue23673] IntEnum is unpicklable by previous Python versions

2015-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset c93d46fd85ee by Ethan Furman in branch 'default': issue23673 https://hg.python.org/cpython/rev/c93d46fd85ee -- nosy: +python-dev ___ Python tracker ___

[issue23550] Add to unicodedata a function to query the "Quick_Check" property for a character

2015-03-18 Thread Hammerite
Hammerite added the comment: I'm a registered contributor now, in case that is a roadblock. -- ___ Python tracker ___ ___ Python-bugs-

[issue20680] Pickle socket enums by names

2015-03-18 Thread Ethan Furman
Ethan Furman added the comment: Enum members that are replacing constants now pickle by name (see issue23673). -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> IntEnum is unpicklable by previous Python versions _

[issue23673] IntEnum is unpicklable by previous Python versions

2015-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5dd7b5fb65e7 by Ethan Furman in branch '3.4': issue23673 https://hg.python.org/cpython/rev/5dd7b5fb65e7 -- ___ Python tracker ___ _

[issue23673] IntEnum is unpicklable by previous Python versions

2015-03-18 Thread Ethan Furman
Changes by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue23550] Add to unicodedata a function to query the "Quick_Check" property for a character

2015-03-18 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue23550] Add to unicodedata a function to query the "Quick_Check" property for a character

2015-03-18 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Hammerite. Did you see the review comments on Rietveld? -- nosy: +berker.peksag ___ Python tracker ___

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-18 Thread Ned Deily
Ned Deily added the comment: The code in question was added a long time ago by Ronald as part of the initial OS X universal build support (3078fdb7cf3d for Issue1488098). I'm not exactly sure what problem it was trying to solve ao I'm not sure that it's 100% safe to totally remove rather than

[issue23289] concurrent.futures.Executor.map is not equivalent to map.

2015-03-18 Thread Ned Deily
Changes by Ned Deily : -- nosy: +bquinlan versions: -Python 3.2, Python 3.3, Python 3.4, Python 3.6 ___ Python tracker ___ ___ Python

[issue1182143] making builtin exceptions more informative

2015-03-18 Thread George Jenkins
George Jenkins added the comment: Hi, I attempted a solution for this a while back Attached is a (git diff based) patch for review Changes can also been seen at: https://bitbucket.org/bloomberg/cpython/pull-request/2/http-bugspythonorg-issue1182143-add-name/diff (but note the changes in Misc/N

[issue20680] Pickle socket enums by names

2015-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Ethan. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue11468] Improve unittest basic example in the doc

2015-03-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yes, go ahead an apply this patch. -- assignee: rhettinger -> ezio.melotti ___ Python tracker ___ ___

[issue23632] memoryview doesn't allow tuple-indexing

2015-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be good to add examples with multidimensional memoryviews. For example: >>> a = array.array('l', [-, , -, ]) >>> m = memoryview(a).cast('B').cast('l', [2, 2]) >>> m[0, 0] - >>> m[1, 0] - >>> m[-1, -1] 44

<    1   2