[issue29946] compiler warning "sqrtpi defined but not used"

2017-03-30 Thread Xiang Zhang
New submission from Xiang Zhang: Ubuntu 16.10, GCC 6.2.0 /home/angwer/repos/cpython/Modules/mathmodule.c:74:21: warning: ‘sqrtpi’ defined but not used [-Wunused-const-variable=] static const double sqrtpi = 1.772453850905516027298167483341145182798; -- components: Build messages

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-30 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-30 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 16f852345bcdec1bbb15e5363fad6b33bf960912 by Xiang Zhang (s-sanjay) in branch 'master': bpo-29913: deprecate compare_networks() in documentation (GH-865) https://github.com/python/cpython/commit/16f852345bcdec1bbb15e5363fad6b

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-03-29 Thread Xiang Zhang
Changes by Xiang Zhang : -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue28415> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24821] The optimization of string search can cause pessimization

2017-03-29 Thread Xiang Zhang
Xiang Zhang added the comment: I can't give a "realistic" example. A more meaningful example may be: '。', '\u3002', the Chinese period which used in almost every paragraph, '地', '\u5730', which is a common used word. ./python3 -m perf tim

[issue29927] Unnecessary code in the c-api/exceptions.c

2017-03-28 Thread Xiang Zhang
Changes by Xiang Zhang : -- versions: -Python 3.5, Python 3.6 ___ Python tracker <http://bugs.python.org/issue29927> ___ ___ Python-bugs-list mailing list Unsub

[issue29927] Unnecessary code in the c-api/exceptions.c

2017-03-28 Thread Xiang Zhang
Changes by Xiang Zhang : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue29927> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue29927] Unnecessary code in the c-api/exceptions.c

2017-03-28 Thread Xiang Zhang
Xiang Zhang added the comment: Since the unnecessary codes have no semantic effect, I think they only need to go in 3.7. Thanks for your report and patch! -- resolution: -> fixed stage: -> resolved ___ Python tracker <http://bugs.p

[issue29927] Unnecessary code in the c-api/exceptions.c

2017-03-28 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset c431854a0963d4ec2875efab2d2425a738895280 by Xiang Zhang (Louie Lu) in branch 'master': bpo-29927: Remove duplicate BufferError init and unnecessary semicolons (GH-866) https://github.com/python/cpython/commit/c431854a0963d4ec2875efab2d2425

[issue28699] Imap from ThreadPool behaves unexpectedly

2017-03-28 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28699] Imap from ThreadPool behaves unexpectedly

2017-03-28 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 9f8e0904580cae3b99f8d343569b76e1be7e6092 by Xiang Zhang in branch '3.5': bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-884) https://github.com/python/cpython/commit/9f8e0904580cae3b99f8d343569b76

[issue28699] Imap from ThreadPool behaves unexpectedly

2017-03-28 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 346dcd65e6b832a35b4cfc15b7309b51a38e9ca2 by Xiang Zhang in branch '3.6': bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-882) https://github.com/python/cpython/commit/346dcd65e6b832a35b4cfc15b7309b

[issue28699] Imap from ThreadPool behaves unexpectedly

2017-03-28 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +786 ___ Python tracker <http://bugs.python.org/issue28699> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28699] Imap from ThreadPool behaves unexpectedly

2017-03-28 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +784 ___ Python tracker <http://bugs.python.org/issue28699> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28699] Imap from ThreadPool behaves unexpectedly

2017-03-28 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 794623bdb232eafd8925f76470209afcdcbcdcd2 by Xiang Zhang in branch 'master': bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-693) https://github.com/python/cpython/commit/794623bdb232eafd8925f76470209a

[issue29934] % formatting fails to find formatting code in bytes type after a null byte

2017-03-28 Thread Xiang Zhang
Xiang Zhang added the comment: Sorry, the fix is for 3.6.2 so 3.6.1 would still suffer from it. :-( -- ___ Python tracker <http://bugs.python.org/issue29

[issue29934] % formatting fails to find formatting code in bytes type after a null byte

2017-03-28 Thread Xiang Zhang
Xiang Zhang added the comment: Yes, this is a regression in 3.6.0 and it has been fixed in #29714 for 3.6.1. Try the new version. :-) -- nosy: +xiang.zhang resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> can't interpolate byte

[issue29923] PEP487 __init_subclass__ incompatible with abc.ABCMeta

2017-03-27 Thread Xiang Zhang
Xiang Zhang added the comment: #29581 has reported a same one. :-) -- nosy: +xiang.zhang resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> __init_subclass__ causes TypeError when used with standard library metaclasses (suc

[issue29921] datetime validation is stricter in 3.6.1 than previous versions

2017-03-27 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue29921> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Xiang Zhang
Xiang Zhang added the comment: +1 for the doc change. -- ___ Python tracker <http://bugs.python.org/issue29913> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Xiang Zhang
Xiang Zhang added the comment: I still hold my opinion that the current behaviour is correct. You are comparing two networks and you should count the mask in. And notice that `neta == netb` is not totally equal to `neta.compare_networks(netb)`. The former can only results True or False but

[issue29913] ipadress compare_networks does not work according to documentation

2017-03-27 Thread Xiang Zhang
Xiang Zhang added the comment: In my mind this is the wanted behaviour. `compare_networks` means compare one network to another and a network should count its mask in. Your example would look rather weird if 1.1.1.0/24 == 1.1.1.0/25. Maybe make the doc from 'network addresses' t

[issue29376] threading._DummyThread.__repr__ raises AssertionError

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset f3a9faba4bad91286b78b498547de928078f55da by Xiang Zhang in branch 'master': bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-236) https://github.com/python/cpython/commit/f3a9faba4bad91286b78b498547de9

[issue29376] threading._DummyThread.__repr__ raises AssertionError

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 8400ae209b5fa3d3bdc39d3876eef13d1ea9a72a by Xiang Zhang in branch '3.5': bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-329) https://github.com/python/cpython/commit/8400ae209b5fa3d3bdc39d3876eef1

[issue29376] threading._DummyThread.__repr__ raises AssertionError

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 4b6c41768a15fc85e3069603ef89344bd97f79af by Xiang Zhang in branch '3.6': bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-330) https://github.com/python/cpython/commit/4b6c41768a15fc85e3069603ef8934

[issue29662] Fix wrong indentation of timeit.Timer's documenation

2017-03-24 Thread Xiang Zhang
New submission from Xiang Zhang: New changeset 8aa1ad892ff3cf4d8881cdae0e95be1a5bad175e by Xiang Zhang in branch '3.6': bpo-29662: fix wrong indentation in timeit.Timer's doc (GH-333) https://github.com/python/cpython/commit/8aa1ad892ff3cf4d8881cdae0

[issue29662] Fix wrong indentation of timeit.Timer's documenation

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 210d6a9f951b621b095bc5b72821cf60198ffea8 by Xiang Zhang in branch 'master': bpo-29662: fix wrong indentation in timeit.Timer's doc (GH-332) https://github.com/python/cpython/commit/210d6a9f951b621b095bc5b72

[issue28598] RHS not consulted in `str % subclass_of_str` case.

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset b4f0e980b6084e9a994e3f069269fac2471e0d78 by Xiang Zhang in branch '2.7': bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operations (GH-366) https://github.com/python/cpyt

[issue29661] Typo in the docstring of timeit.Timer.autorange

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset ecf39bbc97adc0fb67654602e37d0d8313e9be9d by Xiang Zhang in branch 'master': bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331) https://github.com/python/cpython/commit/ecf39bbc97adc0fb67654602e

[issue29661] Typo in the docstring of timeit.Timer.autorange

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset c4a786b8ad2a625594551ab3bc991a6831ba7688 by Xiang Zhang in branch '3.6': bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331) (GH-353) https://github.com/python/cpython/commit/c4a786b8ad2a625594551ab3b

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 267b9d2fa8efce7c5bc34ce50048ebca8fddf04f by Xiang Zhang in branch 'master': bpo-7769: enable xmlrpc.server.SimpleXMLRPCDispatcher.register_function used as decorator (GH-231) https://github.com/python/cpyt

[issue26867] test_ssl test_options fails on ubuntu 16.04

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset c9ba186bcbb309278db028d33a57f039d587 by Xiang Zhang in branch '2.7': bpo-26867: Ubuntu's openssl OP_NO_SSLv3 is forced on by default; fix test. (GH-374) https://github.com/python/cpython/commit/c9ba186bcbb309278db02

[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-03-24 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: -Python 2.7, Python 3.5 ___ Python tracker <http://bugs.python.or

[issue29714] can't interpolate byte string with \x00 before replacement identifier

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset df6d7b406f3d1b2e4e2014751bfa25574c4df222 by Xiang Zhang in branch '3.6': [3.6] bpo-29714: Fix a regression that bytes format may fail when containing zero bytes inside. (GH-504) https://github.com/python/cpyt

[issue29714] can't interpolate byte string with \x00 before replacement identifier

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset b76ad5121e2cfa89d6476d700cbcb65b7ffc39ac by Xiang Zhang in branch 'master': bpo-29714: Fix a regression that bytes format may fail when containing zero bytes inside. (GH-499) https://github.com/python/cpyt

[issue28728] test_host_resolution in test_socket fails

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset d36a71637cefdddc02efd884f1b2c204f370afaa by Xiang Zhang in branch 'master': bpo-28728: clarify possible test failure due to ISP (GH-412) https://github.com/python/cpython/commit/d36a71637cefdddc02efd884f1b2c2

[issue28728] test_host_resolution in test_socket fails

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 284a2ba140cf11216e9804573d8cea6674ab90d9 by Xiang Zhang in branch '3.6': bpo-28728: clarify possible test failure due to ISP (GH-412) (GH-531) https://github.com/python/cpython/commit/284a2ba140cf11216e9804573d8cea

[issue24329] __qualname__ and __slots__

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset c393ee858932f79bd6dabf31550f9a53ea90bc68 by Xiang Zhang in branch 'master': bpo-24329: allow __qualname__ and __classcell__ in __slots__ (GH-495) https://github.com/python/cpython/commit/c393ee858932f79bd6dabf31550f9a

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 78ad039bcf1a8c494cbc8e18380cc30665869c3e by Xiang Zhang in branch '3.6': bpo-26915: Test identity first in index() and count() of collections.abc.Sequence (GH-553) https://github.com/python/cpython/commit/78ad039bcf1a8c494cbc8e18380cc3

[issue29568] undefined parsing behavior with the old style string formatting

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 9f8ad3f39e0a92ed37d012b9dd237399524f0d51 by Xiang Zhang (Serhiy Storchaka) in branch 'master': bpo-29568: Disable any characters between two percents for escaped percent "%%" in the format string for classic string format

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset d5d3249e8a37936d32266fa06ac20017307a1f70 by Xiang Zhang in branch 'master': bpo-26915: Test identity first in membership operation in index() and count() methods of collections.abc.Sequence (GH-503) https://github.com/python/cpyt

[issue29770] Executable help output (--help) at commandline is wrong for option -B

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 0710d754255e731e6fcc3f206b51db6156da17c8 by Xiang Zhang in branch 'master': bpo-29770: remove outdated PYO related info (GH-590) https://github.com/python/cpython/commit/0710d754255e731e6fcc3f206b51db

[issue29770] Executable help output (--help) at commandline is wrong for option -B

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 16416c22f9b8d9e067506d3a98f661756c80389c by Xiang Zhang in branch '3.6': bpo-29770: remove outdated PYO related info (GH-590) (GH-612) https://github.com/python/cpython/commit/16416c22f9b8d9e067506d3a98f661

[issue29770] Executable help output (--help) at commandline is wrong for option -B

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset ce222c87706b1062f7fc03867d1867aa4848dd7b by Xiang Zhang in branch '3.5': bpo-29770: remove outdated PYO related info (GH-590) (GH-613) https://github.com/python/cpython/commit/ce222c87706b1062f7fc03867d1867aa4848dd7b -- nosy: +x

[issue29756] Improve documentation for list methods that compare items by equality

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset b2d77175d1317494b4238b4e07426d310fbf1d19 by Xiang Zhang in branch 'master': bpo-29756: Improve documentation for list methods that compare items by equality (GH-572) https://github.com/python/cpython/commit/b2d77175d1317494b4238b4e07426d

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset faa2cc63e45bc7d7ffab84bebe5a9f4fe065bd96 by Xiang Zhang in branch '3.6': bpo-28856: Let %b format for bytes support objects that follow the buffer protocol (GH-664) https://github.com/python/cpython/commit/faa2cc63e45bc7d7ffab84bebe5a9f

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 7e2a54cdd977078b40b82182e46b201f8163f659 by Xiang Zhang in branch 'master': bpo-28856: Let %b format for bytes support objects that follow the buffer protocol (GH-546) https://github.com/python/cpyt

[issue29873] Need a look for return value checking [_elementtree.c]

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 827c78326aa850257ca40991b401b3db298c54fb by Xiang Zhang in branch '2.7': bpo-29873: fix INCREF for possible NULL value in element_getattr() (GH-757) https://github.com/python/cpython/commit/827c78326aa850257ca40991b401b3

[issue29876] Check for null return value [_elementtree.c : subelement]

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 9c0408d9b68d8f65aad22ca0767f154d6b9f526c by Xiang Zhang in branch '2.7': bpo-29876: fix DECREF for NULL value in subelement() (GH-760) https://github.com/python/cpython/commit/9c0408d9b68d8f65aad22ca0767f154d6b9f526c -- nosy: +x

[issue29849] fix memory leak in import_from

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 4830f581af57dd305c02c1fd72299ecb5b090eca by Xiang Zhang in branch 'master': bpo-29849: fix a memory leak in import_from (GH-712) https://github.com/python/cpython/commit/4830f581af57dd305c02c1fd72299e

[issue29874] Need a look for return value checking [selectmodule.c]

2017-03-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset e6a55dd8391651a7d3a97b6215e70e48e628d3d7 by Xiang Zhang in branch '2.7': bpo-29874: fix INCREF for possible NULL values in select_select() (GH-758) https://github.com/python/cpython/commit/e6a55dd8391651a7d3a97b6215e70e

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-03-23 Thread Xiang Zhang
Xiang Zhang added the comment: Another complaint from #29889. -- ___ Python tracker <http://bugs.python.org/issue29243> ___ ___ Python-bugs-list mailing list Unsub

[issue29889] test_asyncio fails always

2017-03-23 Thread Xiang Zhang
Xiang Zhang added the comment: > Then, when doing a 'make install', it builds the entire thing again and runs > another profile generation run which also fails, then a new profiled build. > Possibly because the first profile run failed? This is a known issue. Some build co

[issue29876] Check for null return value [_elementtree.c : subelement]

2017-03-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue29876> ___

[issue29876] Check for null return value [_elementtree.c : subelement]

2017-03-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +673 ___ Python tracker <http://bugs.python.org/issue29876> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29874] Need a look for return value checking [selectmodule.c]

2017-03-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue29874> ___

[issue29874] Need a look for return value checking [selectmodule.c]

2017-03-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +672 ___ Python tracker <http://bugs.python.org/issue29874> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29873] Need a look for return value checking [_elementtree.c]

2017-03-21 Thread Xiang Zhang
Xiang Zhang added the comment: Fixed. Thanks for your report Alex. -- nosy: +xiang.zhang resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue29874] Need a look for return value checking [selectmodule.c]

2017-03-21 Thread Xiang Zhang
Xiang Zhang added the comment: This has been fixed for 3.x in #18408 but not backported to 2.7. -- nosy: +xiang.zhang ___ Python tracker <http://bugs.python.org/issue29

[issue29874] Need a look for return value checking [selectmodule.c]

2017-03-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue29874> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29873] Need a look for return value checking [_elementtree.c]

2017-03-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +671 ___ Python tracker <http://bugs.python.org/issue29873> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29872] spam

2017-03-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- Removed message: http://bugs.python.org/msg289962 ___ Python tracker <http://bugs.python.org/issue29872> ___ ___ Python-bugs-list m

[issue29872] spam

2017-03-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> not a bug stage: -> resolved status: open -> closed title: My reply -> spam ___ Python tracker <http://bugs.python

[issue29864] Misuse of Py_SIZE in dict.fromkey()

2017-03-21 Thread Xiang Zhang
Xiang Zhang added the comment: I think 3.6 is enough. -- versions: +Python 3.6 ___ Python tracker <http://bugs.python.org/issue29864> ___ ___ Python-bugs-list m

[issue29864] Misuse of Py_SIZE in dict.fromkey()

2017-03-21 Thread Xiang Zhang
Xiang Zhang added the comment: How about 3.6, Serhiy? I see you treat this as a bugfix on the PR. -- nosy: +xiang.zhang ___ Python tracker <http://bugs.python.org/issue29

[issue29849] fix memory leak in import_from

2017-03-20 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue29855] The traceback compounding of RecursionError fails to work with __get__

2017-03-19 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +ebarry, ncoghlan ___ Python tracker <http://bugs.python.org/issue29855> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29849] fix memory leak in import_from

2017-03-18 Thread Xiang Zhang
Changes by Xiang Zhang : -- title: fix memory in import_from -> fix memory leak in import_from ___ Python tracker <http://bugs.python.org/issue29849> ___ ___ Py

[issue29849] fix memory in import_from

2017-03-18 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +632 ___ Python tracker <http://bugs.python.org/issue29849> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29849] fix memory in import_from

2017-03-18 Thread Xiang Zhang
New submission from Xiang Zhang: import_from suffer from memory leak since #29546. Propose a PR to fix it. :-) -- messages: 289825 nosy: barry, brett.cannon, mbussonn, xiang.zhang priority: normal severity: normal stage: patch review status: open title: fix memory in import_from

[issue29835] py_blake2*_new_impl produces inconsistent error messages, and raises OverflowError where ValueError might be better

2017-03-17 Thread Xiang Zhang
Xiang Zhang added the comment: I don't catch up with the progress but just FYI, the documentation of OverflowError states this situation: https://docs.python.org/3/library/exceptions.html#OverflowError. (I wanted to raise similar issues before ;-) -- nosy: +xiang.

[issue28699] Imap from ThreadPool behaves unexpectedly

2017-03-17 Thread Xiang Zhang
Xiang Zhang added the comment: Davin, I propose a PR to solve this problem based on your patch. Hope you are willing to review and let's finish this. ;-) -- stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org

[issue28699] Imap from ThreadPool behaves unexpectedly

2017-03-17 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +566 ___ Python tracker <http://bugs.python.org/issue28699> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-03-16 Thread Xiang Zhang
Changes by Xiang Zhang : -- keywords: +easy stage: -> needs patch ___ Python tracker <http://bugs.python.org/issue28415> ___ ___ Python-bugs-list mai

[issue29813] PyTuple_GetSlice does not always return a new tuple

2017-03-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue29813> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29813] PyTuple_GetSlice does not always return a new tuple

2017-03-14 Thread Xiang Zhang
Xiang Zhang added the comment: I think the description is fine. :-( What leads to your headache? -- nosy: +xiang.zhang ___ Python tracker <http://bugs.python.org/issue29

[issue29676] C method is not profiled by lsprof

2017-03-14 Thread Xiang Zhang
Xiang Zhang added the comment: Actually the current test produces some noises, but it doesn't fail. -- ___ Python tracker <http://bugs.python.org/is

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-14 Thread Xiang Zhang
Xiang Zhang added the comment: I committed the suboptimal patch. I close this issue now and if there is any enhancement solution, let's make it another issue. Thank you all. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +546 ___ Python tracker <http://bugs.python.org/issue28856> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27880] cPickle fails on large objects (still - 2011 and counting)

2017-03-13 Thread Xiang Zhang
Xiang Zhang added the comment: >>> import cPickle [45575 refs] >>> cPickle.dumps('a' * (2 ** 31),-1) Traceback (most recent call last): File "", line 1, in OverflowError: cannot serialize a string larger than 2 GiB [45606 refs] &g

[issue29803] Remove some redandunt ops in unicodeobject.c

2017-03-12 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +541 ___ Python tracker <http://bugs.python.org/issue29803> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29803] Remove some redandunt ops in unicodeobject.c

2017-03-12 Thread Xiang Zhang
Changes by Xiang Zhang : -- components: Interpreter Core nosy: haypo, serhiy.storchaka, xiang.zhang priority: normal severity: normal stage: patch review status: open title: Remove some redandunt ops in unicodeobject.c type: enhancement versions: Python 3.7

[issue29801] amazing!

2017-03-12 Thread Xiang Zhang
Changes by Xiang Zhang : -- Removed message: http://bugs.python.org/msg289525 ___ Python tracker <http://bugs.python.org/issue29801> ___ ___ Python-bugs-list m

[issue22576] ftplib documentation gives a wrong argument name for storbinary

2017-03-12 Thread Xiang Zhang
Changes by Xiang Zhang : -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue22576> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22576] ftplib documentation gives a wrong argument name for storbinary

2017-03-12 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +539 ___ Python tracker <http://bugs.python.org/issue22576> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29756] Improve documentation for list methods that compare items by equality

2017-03-12 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker <http://bugs.python.or

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-12 Thread Xiang Zhang
Xiang Zhang added the comment: What's your opinions Alexander and Ethan? -- ___ Python tracker <http://bugs.python.org/issue28856> ___ ___ Python-bugs-list m

[issue29794] Incorrect error message on invalid __class__ assignments

2017-03-11 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker <http://bugs.python.org/issue29794> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29792] "Fatal Python error: Cannot recover from stack overflow." from pure Python code

2017-03-11 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> duplicate superseder: -> Interpreter aborts when chaining an infinite number of exceptions ___ Python tracker <http://bugs.python.org/i

[issue29792] "Fatal Python error: Cannot recover from stack overflow." from pure Python code

2017-03-11 Thread Xiang Zhang
Xiang Zhang added the comment: Looks same as #6028. -- nosy: +xiang.zhang ___ Python tracker <http://bugs.python.org/issue29792> ___ ___ Python-bugs-list mailin

[issue29770] Executable help output (--help) at commandline is wrong for option -B

2017-03-10 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue29770> ___

[issue29770] Executable help output (--help) at commandline is wrong for option -B

2017-03-10 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +506 ___ Python tracker <http://bugs.python.org/issue29770> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29770] Executable help output (--help) at commandline is wrong for option -B

2017-03-10 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +505 ___ Python tracker <http://bugs.python.org/issue29770> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29784] Erroneous link in shutil.copy description

2017-03-10 Thread Xiang Zhang
Xiang Zhang added the comment: Assigned to Mariatta :-). -- assignee: docs@python -> Mariatta nosy: +Mariatta ___ Python tracker <http://bugs.python.org/issu

[issue29784] Erroneous link in shutil.copy description

2017-03-10 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for your report, Maxime! I open PRs to fix it. -- nosy: +xiang.zhang versions: +Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <http://bugs.python.org/issue29

[issue29784] Erroneous link in shutil.copy description

2017-03-10 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +495 ___ Python tracker <http://bugs.python.org/issue29784> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29782] Use __builtin_clzl for bits_in_digit if available

2017-03-10 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue29782> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29770] Executable help output (--help) at commandline is wrong for option -B

2017-03-09 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +486 ___ Python tracker <http://bugs.python.org/issue29770> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29767] build python failed on test_socket due to unused_port is actually used.

2017-03-08 Thread Xiang Zhang
Xiang Zhang added the comment: Could you show the failure message here? And you could make your patch a PR on GitHub. -- nosy: +xiang.zhang ___ Python tracker <http://bugs.python.org/issue29

[issue29764] PyUnicode_Decode with encoding utf8 crashes

2017-03-08 Thread Xiang Zhang
Xiang Zhang added the comment: You need to first call `Py_Initialize()` to initialize the Python interpreter. It is required. -- nosy: +xiang.zhang resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python track

<    1   2   3   4   5   6   7   8   9   10   >