[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

[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

[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

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

Re: Number 7 syntax ERROR

2018-11-08 Thread Jack Dangler
On 11/7/18 8:52 PM, NoHaxAllSwagg wrote: Hello, I have been experiencing difficulty while trying to run scripts on my IDLE software, considering that when I run my program, I get an error at the top of the page in the “Python 3.7.1” area, highlighting the seven telling me that there is a

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

[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

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

[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

[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
Aapo Samuli Keskimolo added the comment: My colleague has made a prospective fix: https://github.com/nierob/cpython/commit/3b76b887b2b339664dc52c5f246bc7cb268ea616 -- ___ Python tracker

Number 7 syntax ERROR

2018-11-08 Thread NoHaxAllSwagg
Hello, I have been experiencing difficulty while trying to run scripts on my IDLE software, considering that when I run my program, I get an error at the top of the page in the “Python 3.7.1” area, highlighting the seven telling me that there is a syntax error, in this case, I cant remove that

Re: installing modules problem

2018-11-08 Thread Siva Sukumar Reddy
Also make sure that the Pythonpath contains the folder where the modules are installed in your machine. - site packages folder. On Thu 8 Nov, 2018, 16:28 Thomas Jollans On 2018-11-08 06:04, Ian K. wrote: > > Hello, > > > > My name is Ian Kilty and I have been having trouble with pip. I have pip

[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

installing modules problem

2018-11-08 Thread Ian K.
Hello, My name is Ian Kilty and I have been having trouble with pip. I have pip installed, and I have tried to install modules they say they are installed in cmd, but when I go into python and import the module, it can't find it. I hope there is a simple solution to this problem, please let me

[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

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

Re: installing modules problem

2018-11-08 Thread Thomas Jollans
On 2018-11-08 06:04, Ian K. wrote: > Hello, > > My name is Ian Kilty and I have been having trouble with pip. I have pip > installed, and I have tried to install modules they say they are installed > in cmd, but when I go into python and import the module, it can't find it. > I hope there is a

[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

[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

[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

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

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

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

Re: Number 7 syntax ERROR

2018-11-08 Thread Peter Otten
NoHaxAllSwagg wrote: > Hello, > I have been experiencing difficulty while trying to run scripts on my IDLE > software, considering that when I run my program, I get an error at the > top of the page in the “Python 3.7.1” area, highlighting the seven telling > me that there is a syntax error, in

[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

[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

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

Re: Number 7 syntax ERROR

2018-11-08 Thread Vlastimil Brom
2018-11-08 2:52 GMT+01:00, NoHaxAllSwagg : > Hello, > I have been experiencing difficulty while trying to run scripts on my IDLE > software, considering that when I run my program, I get an error at the top > of the page in the “Python 3.7.1” area, highlighting the seven telling me > that there is

[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

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

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

[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

[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

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

[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

[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

Suggestions for plotting slide rule & sector scales?

2018-11-08 Thread Adam Funk
I like old scientific instruments & that sort of thing, & am wondering what libraries I could use for programmatically generating mathematical scales, ideally able to display the result in the GUI & save it as a png (or other standard graphics format). Ideally, I'd like to be able to write code

[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

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

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

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

[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

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

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

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

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

[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

What's wrong with these codes as failed to read the strings in Chinese? Is it because Chinese characters can't be read on Mac? Many thanks

2018-11-08 Thread Annie Lu
# -*- coding: UTF-8 -*- ... f = open('/Users/annielu/Desktop/namelist1801.txt') >>> namelist1801txt = f.read() >>> f.close() >>> namelist1801txt

[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

[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

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

how can I solve this problem simply and clearly

2018-11-08 Thread lampahome
I have two categories A,B, and A has 2 items A1,A2, and B have 2 items B1, B2. I have two class A and B, and A will handle A1,A2, B handle B1,B2. I want to parse one of A1,A2,B1,B2 to script and generate the corresponding class(object). Ex: Both in class A and B, all have func1(), func2(). What

[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

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

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

Re: What's wrong with these codes as failed to read the strings in Chinese? Is it because Chinese characters can't be read on Mac? Many thanks

2018-11-08 Thread Cameron Simpson
On 08Nov2018 19:30, Annie Lu wrote: # -*- coding: UTF-8 -*- ... f = open('/Users/annielu/Desktop/namelist1801.txt') namelist1801txt = f.read() f.close() namelist1801txt

[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

[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

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

Re: how can I solve this problem simply and clearly

2018-11-08 Thread dieter
lampahome writes: > I have two categories A,B, and A has 2 items A1,A2, and B have 2 items B1, > B2. > > I have two class A and B, and A will handle A1,A2, B handle B1,B2. > > I want to parse one of A1,A2,B1,B2 to script and generate the corresponding > class(object). > > Ex: Both in class A and

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

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

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

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

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

TEST

2018-11-08 Thread Jack Gilbert
not to tick anybody off, I want to see if this is the correct way to post to the python list. Thanks to all who are helping me. Jack G -- https://mail.python.org/mailman/listinfo/python-list

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

[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

Re: Does this behavior have a better design pattern?

2018-11-08 Thread Peter Otten
Grant Edwards wrote: > On 2018-11-07, Peter Otten <__pete...@web.de> wrote: >> lampahome wrote: >> >>> Above is I thought to make code clear, and this pattern is called simple >>> factory? > > [...] > >>> *Is there better design pattern for me?* > >> Generally speaking you get better solutions

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

[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

[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

Re: Does this behavior have a better design pattern?

2018-11-08 Thread Grant Edwards
On 2018-11-07, Peter Otten <__pete...@web.de> wrote: > lampahome wrote: > >> Above is I thought to make code clear, and this pattern is called simple >> factory? [...] >> *Is there better design pattern for me?* > Generally speaking you get better solutions when you ask yourself > "How can

[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

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

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

Re: Number 7 syntax ERROR

2018-11-08 Thread Terry Reedy
On 11/7/2018 8:52 PM, NoHaxAllSwagg wrote: I have been experiencing difficulty while trying to run scripts on my IDLE software, considering that when I run my program, I get an error at the top of the page in the “Python 3.7.1” area, highlighting the seven telling me that there is a syntax