[issue35194] A typo in a constant in cp932 codec

2018-11-08 Thread miss-islington
miss-islington added the comment: New changeset 22234f1375d28803074405497ea61315fb37240d by Miss Islington (bot) in branch '3.7': bpo-35194: Fix a wrong constant in cp932 codec (GH-10420) https://github.com/python/cpython/commit/22234f1375d28803074405497ea61315fb37240d -- _

[issue35194] A typo in a constant in cp932 codec

2018-11-08 Thread miss-islington
miss-islington added the comment: New changeset 49ee41f1c3934aa095e32fa751cdf3ba641ae34b by Miss Islington (bot) in branch '3.6': bpo-35194: Fix a wrong constant in cp932 codec (GH-10420) https://github.com/python/cpython/commit/49ee41f1c3934aa095e32fa751cdf3ba641ae34b -- _

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 65e1a1fd311943866361fcb288c0df65dadbe092 by Gregory P. Smith in branch '3.6': bpo-35193: Fix an off by one error in the RETURN_VALUE case. (GH-10418) (GH-10422) https://github.com/python/cpython/commit/65e1a1fd311943866361fcb288c0df65dadbe092

[issue35194] A typo in a constant in cp932 codec

2018-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Maybe add asserts in OUTBYTE1() and similar macros to prevent similar errors in future? -- versions: +Python 2.7, Python 3.6, Python 3.7 ___ Python tracker __

[issue35194] A typo in a constant in cp932 codec

2018-11-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +9705 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35194] A typo in a constant in cp932 codec

2018-11-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +9704 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35194] A typo in a constant in cp932 codec

2018-11-08 Thread miss-islington
miss-islington added the comment: New changeset 7a69cf47a9bbc95f95fd67c982bff121b2a903cb by Miss Islington (bot) (Alexey Izbyshev) in branch 'master': bpo-35194: Fix a wrong constant in cp932 codec (GH-10420) https://github.com/python/cpython/commit/7a69cf47a9bbc95f95fd67c982bff121b2a903cb

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for catching and fixing this error Gregory! -- ___ Python tracker ___ ___ Python-bugs

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +9703 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35131] Cannot access to customized paths within .pth file

2018-11-08 Thread Windson Yang
Windson Yang added the comment: I tried to create a PR for it, However, I don't know how to handle the code at https://github.com/python/cpython/blob/d4c76d960b/Lib/site.py#L159 So how to check UnicodeDecodeError when we just open the file, I use readlines() but it may use too many memory th

[issue35131] Cannot access to customized paths within .pth file

2018-11-08 Thread Valentin Zhao
Valentin Zhao added the comment: I am better just waiting you guys fixing that because it is not urgent. On Sat, Nov 3, 2018 at 10:12 PM Jason R. Coombs wrote: > > Jason R. Coombs added the comment: > > Also, I would argue that this is an enhancement request and not a bug - > that the prior

[issue35105] Document that CPython accepts "invalid" identifiers

2018-11-08 Thread Windson Yang
Windson Yang added the comment: I try to create a PR for it. Should we add 'CPython implementation detail' at the document? Because this happens at cpython as well as pypy. BTW, where should we add the document? I have two choices. * https://docs.python.org/3/reference/datamodel.html#object.

[issue35192] pathlib mkdir throws FileExistsError when not supposed to

2018-11-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. There was a related issue : issue29694 . This was fixed in 3.7 and was backported with https://github.com/python/cpython/commit/d7abeb7024b9755c291c29bdc8c4494246e975ad (3.5.4 and above) . Can you please specify the full vers

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue24412] setUpClass equivalent for addCleanup

2018-11-08 Thread Lisa Roach
Lisa Roach added the comment: New changeset 0f221d09cad46bee38d1b7a7822772df66c53028 by Lisa Roach in branch 'master': bpo-24412: Adds cleanUps for setUpClass and setUpModule. (GH-9190) https://github.com/python/cpython/commit/0f221d09cad46bee38d1b7a7822772df66c53028 -- nosy: +lisro

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-11-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +9702 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread miss-islington
miss-islington added the comment: New changeset f16ebcd460aaeb8d6b31db317d22f5ed68afbcc8 by Miss Islington (bot) in branch '3.7': bpo-35193: Fix an off by one error in the RETURN_VALUE case. (GH-10418) https://github.com/python/cpython/commit/f16ebcd460aaeb8d6b31db317d22f5ed68afbcc8 ---

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +9701 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 49fa4a9f1ef387e16596f271414c855339eadf09 by Gregory P. Smith in branch 'master': bpo-35193: Fix an off by one error in the RETURN_VALUE case. (GH-10418) https://github.com/python/cpython/commit/49fa4a9f1ef387e16596f271414c855339eadf09 --

[issue33196] SEGV in mp.synchronize.Lock.__repr__ in spawn'ed proc if ctx mismatched

2018-11-08 Thread Gus Goulart
Change by Gus Goulart : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue33196] SEGV in mp.synchronize.Lock.__repr__ in spawn'ed proc if ctx mismatched

2018-11-08 Thread Gus Goulart
Gus Goulart added the comment: I couldn't reproduce the error on Debian 9 nor OSX, although I tried tweaking the test script a little bit to force the error. Arcadiy, did you tried reproducing the same issue in a different platform? Did someone report something similar in recent issues on ge

[issue35194] A typo in a constant in cp932 codec

2018-11-08 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +9700 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-08 Thread Dragoljub
New submission from Dragoljub : xref: https://github.com/pandas-dev/pandas/issues/23516 Example: import io import pandas as pd import numpy as np df = pd.DataFrame(np.random.randn(100, 10), columns=('COL{}'.format(i) for i in range(10))) csv = io.StringIO(df.to_csv(index=False)) df2 = pd.r

[issue35194] A typo in a constant in cp932 codec

2018-11-08 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : UBSan with -fsanitize=implicit-integer-truncation found a suspicious one: /scratch2/izbyshev/cpython/Modules/cjkcodecs/_codecs_jp.c:43:17: runtime error: implicit conversion from type 'unsigned int' of value 4294966013 (32-bit, unsigned) to type 'unsigned

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2018-11-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +9699 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue12568] Add functions to get the width in columns of a character

2018-11-08 Thread STINNER Victor
STINNER Victor added the comment: I close the issue as WONTFIX. -- resolution: -> wont fix stage: test needed -> resolved status: open -> closed ___ Python tracker ___ __

[issue30825] csv.Sniffer does not detect lineterminator

2018-11-08 Thread Skip Montanaro
Skip Montanaro added the comment: A couple comments. 1. Terry Reedy wrote: > The csv expert listed in https://devguide.python.org/experts/ is marked as > inactive That would be me. I am indeed inactive w.r.t. fixing broken stuff, and don't want to feel obligated to jump in with both feet wh

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +9698 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue28517] Dead code in wordcode

2018-11-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: the off by one error fix here introduced a new off by one error. PR coming, follow https://bugs.python.org/issue35193 for that. -- nosy: +gregory.p.smith ___ Python tracker

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread Gregory P. Smith
New submission from Gregory P. Smith : An off by one error was introduced to peephole.c by the "off by one error fix" in https://bugs.python.org/issue28517. Clang's memory sanitizer detects it (msan). find_op is ultimately called with h == codelen so it accesses one byte out of bounds. I h

[issue35192] pathlib mkdir throws FileExistsError when not supposed to

2018-11-08 Thread Adam Dunlap
New submission from Adam Dunlap : I have 2 processes (one C, one python) that are started at the same time and both need a certain directory tree to exist to continue, so both processes create the directory tree while ignoring errors about it already existing. In the python process, I'm using

[issue31625] stop using ranlib

2018-11-08 Thread STINNER Victor
STINNER Victor added the comment: (I reopen the issue.) > Would it make sense to backport that to 3.6 as well? Currently this blocks > https://bugs.python.org/issue28015 from being backported to 3.6 There is a risk of regression. Does bpo-28015 fix really depend on this change? Benjamin wro

[issue30825] csv.Sniffer does not detect lineterminator

2018-11-08 Thread Gertjan van den Burg
Gertjan van den Burg added the comment: Note that the current CSV parser in _csv.c doesn't require the line terminator, it eats up \r and \n where necessary. See: https://github.com/python/cpython/blob/fd512d76456b65c529a5bc58d8cfe73e4a10de7a/Modules/_csv.c#L752 This is why the line termina

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface

2018-11-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface

2018-11-08 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue31625] stop using ranlib

2018-11-08 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +9697 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-11-08 Thread Steve Dower
Steve Dower added the comment: That error is a bug in the test, but it only shows up on an error path anyway. Without removing the extra None we don't get to see the actual error output. I can't look into this over the next week or two, but a quick glance at the original PR looks like a lot

[issue34766] BaseProxy cache should be cleaned when Manager client is reconnected

2018-11-08 Thread Yongnan Wu
Yongnan Wu added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue32485] Multiprocessing dict sharing between forked processes

2018-11-08 Thread Tal Einat
Tal Einat added the comment: Is this supposed to work at all? Does multiprocessing support sharing resources between processes forked outside of its own abstractions? Reading the docs[1], calling os.fork() directly doesn't seem to be the way that the multiprocessing module is supposed to be

[issue35081] Move internal headers to Include/internal/

2018-11-08 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +9696 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue35191] socket.setblocking(x) treats multiples of 2**32 as False

2018-11-08 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +9695 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35191] socket.setblocking(x) treats multiples of 2**32 as False

2018-11-08 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : UBSAN with -fsanitize=implicit-integer-truncation reported a suspicious case: testSetBlocking_overflow (test.test_socket.NonBlockingTCPTests) ... /scratch2/izbyshev/cpython/Modules/socketmodule.c:2688:33: runtime error: implicit conversion from type 'long

[issue35188] something confused about numpy.arange

2018-11-08 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> third party ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface

2018-11-08 Thread Miro Hrončok
Miro Hrončok added the comment: I fail to understand what abc classes can be used to test whether a class provides a particular interface, and what abc classes cannot be used that way. What is the difference between those abc classes and why are all those abc classes listed together when they

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface

2018-11-08 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface

2018-11-08 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, the docs need to be clarified. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface

2018-11-08 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +gvanrossum, rhettinger, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue35186] distutils.command.upload uses deprecated platform.dist with bdist_rpm

2018-11-08 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +9694 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface

2018-11-08 Thread Miro Hrončok
New submission from Miro Hrončok : The collections.abc — Abstract Base Classes for Containers documentation says: > This module provides abstract base classes that can be used to test whether a > class provides a particular interface; for example, whether it is hashable or > whether it is a ma

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-11-08 Thread STINNER Victor
Change by STINNER Victor : -- title: EINTR is not being retried -> PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR) ___ Python tracker ___ _

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-11-08 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue6721] Locks in the standard library should be sanitized on fork

2018-11-08 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 3b699932e5ac3e76031bbb6d700fbea07492641d by Gregory P. Smith > (Miss Islington (bot)) in branch '3.7': > bpo-6721: Hold logging locks across fork() (GH-4071) (#9291) It seems like this change caused a regression in the Anaconda installer of F

[issue35189] EINTR is not being retried

2018-11-08 Thread Nierob
Nierob added the comment: PR waits for CLA -- keywords: +patch nosy: +nierob pull_requests: +9693 stage: -> patch review ___ Python tracker ___ __

[issue35189] EINTR is not being retried

2018-11-08 Thread STINNER Victor
STINNER Victor added the comment: > https://github.com/nierob/cpython/commit/3b76b887b2b339664dc52c5f246bc7cb268ea616 Oh, nice! Please rebase this change on the master branch and reuse "int async_err = 0;" pattern from Modules/posixmodule.c. You must not raise a new exception if PyErr_CheckS

[issue35189] EINTR is not being retried

2018-11-08 Thread Aapo Samuli Keskimolo
Aapo Samuli Keskimolo added the comment: My colleague has made a prospective fix: https://github.com/nierob/cpython/commit/3b76b887b2b339664dc52c5f246bc7cb268ea616 -- ___ Python tracker

[issue35189] EINTR is not being retried

2018-11-08 Thread STINNER Victor
STINNER Victor added the comment: You're right, it should, but the fcntl module hasn't been patched. Are you interested to work or on patch, or do you want to me to find someone to do it? -- nosy: +vstinner ___ Python tracker

[issue35189] EINTR is not being retried

2018-11-08 Thread Aapo Samuli Keskimolo
New submission from Aapo Samuli Keskimolo : According to https://www.python.org/dev/peps/pep-0475/ the EINTR interruption should be retried automatically, but somehow it does not work and the exception is raised: 2018-11-05 05:21:35,257 ERROR:storage(23491): Remote storage operation failed (

[issue34885] asyncio documention has lost its paragraph about cancellation

2018-11-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think the issue can be closed -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue35065] Reading received data from a closed TCP stream using `StreamReader.read` might hang forever

2018-11-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue35065] Reading received data from a closed TCP stream using `StreamReader.read` might hang forever

2018-11-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset fd512d76456b65c529a5bc58d8cfe73e4a10de7a by Andrew Svetlov (Vincent Michel) in branch 'master': bpo-35065: Remove `StreamReaderProtocol._untrack_reader` (#10212) https://github.com/python/cpython/commit/fd512d76456b65c529a5bc58d8cfe73e4a10de7a

[issue35188] something confused about numpy.arange

2018-11-08 Thread xiyunlong
Change by xiyunlong : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue35188] something confused about numpy.arange

2018-11-08 Thread xiyunlong
New submission from xiyunlong : when I use:print(np.arange(1,2.2,0.2)) I got: 1.0 1.2 1.4 1.5999 1.7998 1.9998 2.1997 could any one tell me why it's not 1.0,1.2,1.4,1.6,1.8,2.0? Many thanks! -- components: Library (Lib) messages: 329466 n

[issue34987] A possible null pointer dereference in _pickle.c's save_reduce()

2018-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I was wrong. get_class() returns NULL when and only when an exception is set. -- ___ Python tracker ___ ___

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2018-11-08 Thread STINNER Victor
STINNER Victor added the comment: Pablo Galindo reverted the change because it broke Windows buildbots, and we have a policy to revert a change breaking buildbots if the regression cannot be fixed "quickly" event: https://pythondev.readthedocs.io/ci.html#revert-on-fail Is someone working on

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-11-08 Thread Kal Sze
Kal Sze added the comment: Another failure case: >>> from email.utils import parseaddr >>> parseaddr('fo@o...@bar.com') ('', 'fo@o') If I understand the RFC correctly, the correct results should be ('', '') because there are two '@' signs. The first '@' would need to be quoted for the addre

[issue35187] a bug about np.arrange

2018-11-08 Thread Mark Dickinson
Mark Dickinson added the comment: It's also worth taking a look at the documentation: https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.arange.html See particularly the "Result" section, where it says: > Because of floating point overflow, this rule may result in the last >

[issue35187] a bug about np.arrange

2018-11-08 Thread Mark Dickinson
Mark Dickinson added the comment: np.arange is part of NumPy, not core Python; I'd suggest asking this question on the NumPy mailing lists, e.g. https://mail.python.org/pipermail/numpy-discussion/ But no, it's not a bug; it's a well-known gotcha. -- nosy: +mark.dickinson resolution: