[issue37764] email.Message.as_string infinite loop

2019-09-04 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: Should we get a CVE for this because this is a security issue? -- ___ Python tracker ___ ___

[issue38035] shared_semaphores cannot be shared across unrelated processes

2019-09-04 Thread Vinay Sharma
New submission from Vinay Sharma : Currently, shared semaphores can only be created, and existing semaphores can't be opened. Shared semaphores are opened using the following command. ``` sem_open(name, O_CREAT | O_EXCL, 0600, val) ``` This will raise error if a semaphore which already exists.

[issue38035] shared_semaphores cannot be shared across unrelated processes

2019-09-04 Thread Vinay Sharma
Change by Vinay Sharma : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: How do I give a decorator acces to the class of a decorated function

2019-09-04 Thread dieter
Antoon Pardon writes: > What I am trying to do is the following. > > class MyClass (...) : > @register > def MyFunction(...) > ... > > What I would want is for the register decorator to somehow create/mutate > class variable(s) of MyClass. > > Is that possible or do I have to

[issue38026] inspect.getattr_static should avoid dynamic lookup

2019-09-04 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38026] inspect.getattr_static should avoid dynamic lookup

2019-09-04 Thread miss-islington
miss-islington added the comment: New changeset bdcbb83c6640c2b30d0e1a2a497e9ba34cc53b26 by Miss Islington (bot) in branch '3.8': bpo-38026: fix inspect.getattr_static (GH-15676) https://github.com/python/cpython/commit/bdcbb83c6640c2b30d0e1a2a497e9ba34cc53b26 -- nosy:

[issue37902] Add scrolling for IDLE browsers

2019-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the patch. More IDLE patches would be welcome should you want to attack something else. Possible browser scrolling refinements: 1. Scroll by an integral number of labels. This is easy with text. For our synthesized tree, we would have to

[issue38026] inspect.getattr_static should avoid dynamic lookup

2019-09-04 Thread Inada Naoki
Inada Naoki added the comment: New changeset 8f9cc8771ffb8d0e21be287eaed42ae06087acca by Inada Naoki in branch 'master': bpo-38026: fix inspect.getattr_static (GH-15676) https://github.com/python/cpython/commit/8f9cc8771ffb8d0e21be287eaed42ae06087acca --

[issue38026] inspect.getattr_static should avoid dynamic lookup

2019-09-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +15349 pull_request: https://github.com/python/cpython/pull/15692 ___ Python tracker ___

[issue37764] email.Message.as_string infinite loop

2019-09-04 Thread Abhilash Raj
Change by Abhilash Raj : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37902] Add scrolling for IDLE browsers

2019-09-04 Thread miss-islington
miss-islington added the comment: New changeset 16af39aa84cc3553c51d57461964ab4e28029184 by Miss Islington (bot) in branch '3.7': bpo-37902: IDLE: Add scrolling for IDLE browsers. (GH-15368) https://github.com/python/cpython/commit/16af39aa84cc3553c51d57461964ab4e28029184 --

[issue37902] Add scrolling for IDLE browsers

2019-09-04 Thread miss-islington
miss-islington added the comment: New changeset 9c2654d1aa85968fede1b888fba86aebc06c5be6 by Miss Islington (bot) in branch '3.8': bpo-37902: IDLE: Add scrolling for IDLE browsers. (GH-15368) https://github.com/python/cpython/commit/9c2654d1aa85968fede1b888fba86aebc06c5be6 -- nosy:

Re: pandas loc on str lower for column comparison

2019-09-04 Thread Sayth Renshaw
On Sunday, 1 September 2019 10:48:54 UTC+10, Sayth Renshaw wrote: > I've created a share doc same structure anon data from my google drive. > > https://drive.google.com/file/d/0B28JfFTPNr_lckxQRnFTRF9UTEFYRUVqRWxCNVd1VEZhcVNr/view?usp=sharing > > Sayth I tried creating the df1 dataframe by

[issue38033] Use After Free: PyObject_Free (valgrind)

2019-09-04 Thread Tim Peters
Tim Peters added the comment: You're probably chasing ghosts ;-) Please read about what needs to be done to use valgrind successfully with Python: https://github.com/python/cpython/blob/master/Misc/README.valgrind -- nosy: +tim.peters title: Use After Free: PyObject_Free -> Use

[issue35939] Remove urllib.parse._splittype from mimetypes.guess_type

2019-09-04 Thread Dong-hee Na
Dong-hee Na added the comment: This issue is fixed by https://github.com/python/cpython/pull/15522 -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-09-04 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-09-04 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37902] Add scrolling for IDLE browsers

2019-09-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +15348 pull_request: https://github.com/python/cpython/pull/15690 ___ Python tracker ___

[issue37902] Add scrolling for IDLE browsers

2019-09-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +15347 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/15689 ___ Python tracker ___

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-09-04 Thread Dong-hee Na
Dong-hee Na added the comment: Great! I will close bpo-35939 also. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37902] Add scrolling for IDLE browsers

2019-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2cd902585815582eb059e3b40e014ebe4e7fdee7 by Terry Jan Reedy (GeeTransit) in branch 'master': bpo-37902: IDLE: Add scrolling for IDLE browsers. (#15368) https://github.com/python/cpython/commit/2cd902585815582eb059e3b40e014ebe4e7fdee7

[issue38033] Use After Free: PyObject_Free

2019-09-04 Thread Chiaki Ishikawa
Chiaki Ishikawa added the comment: I found that the inlined functions are used by other functions and resulted in similar issues. Once obmalloc.c is fixed, I think such problems are automatically fixed. -- ___ Python tracker

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-09-04 Thread Abhilash Raj
Abhilash Raj added the comment: I think so, yes. Also, while you are at it, can you also close bpo-35939 with a comment that points to this issue and the right PR for the fix? -- ___ Python tracker

[issue38033] Use After Free: PyObject_Free

2019-09-04 Thread Chiaki Ishikawa
Chiaki Ishikawa added the comment: PyMem_Free and PyMem_Realloc also suffer from similar "Use After Free" issue. The standard version of Python3.7 interpreter does not seem to have debug symbol and so I installed a debug version of it. Now it seems to have a shadow symbol of inlined

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-09-04 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner(my mentor) @maxking Now this issue is solved. I'd like to close this issue. Is it okay? -- nosy: +maxking, vstinner ___ Python tracker

[issue38034] Typo on logging.handlers.QueueListener documentation

2019-09-04 Thread wuck
New submission from wuck : There appears to be a typo on the documentation page for logging.handlers.QueueListener at https://docs.python.org/3/library/logging.handlers.html#logging.handlers.QueueListener The line "Changed in version 3.5: The respect_handler_levels argument was added."

[issue37764] email.Message.as_string infinite loop

2019-09-04 Thread Abhilash Raj
Change by Abhilash Raj : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue37764] email.Message.as_string infinite loop

2019-09-04 Thread Abhilash Raj
Abhilash Raj added the comment: New changeset 6ad0a2c45f78020f7994e47620c1cf7b225f8197 by Abhilash Raj in branch '3.8': [3.8] bpo-37764: Fix infinite loop when parsing unstructured email headers. (GH-15239) (GH-15686)

[issue38031] FileIO.__init__ aborts when opener returns bad fd

2019-09-04 Thread Zackery Spytz
Zackery Spytz added the comment: Thank you for the report. -- components: +Interpreter Core nosy: +ZackerySpytz versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-09-04 Thread miss-islington
miss-islington added the comment: New changeset 8873bff2871078e9f23e6c7d942d3a8edbd0921f by Miss Islington (bot) (Dong-hee Na) in branch '3.7': [3.7] bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH-15522) (GH-15687)

[issue38031] FileIO.__init__ aborts when opener returns bad fd

2019-09-04 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +15346 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15688 ___ Python tracker ___

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-09-04 Thread miss-islington
miss-islington added the comment: New changeset 6d7a786d2e4b48a6b50614e042ace9ff996f0238 by Miss Islington (bot) in branch '3.8': bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH-15522)

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-09-04 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +15345 pull_request: https://github.com/python/cpython/pull/15687 ___ Python tracker ___

[issue37764] email.Message.as_string infinite loop

2019-09-04 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +15344 pull_request: https://github.com/python/cpython/pull/15686 ___ Python tracker ___

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-09-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +15343 pull_request: https://github.com/python/cpython/pull/15685 ___ Python tracker ___

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-09-04 Thread miss-islington
miss-islington added the comment: New changeset 87bd2071c756188b6cd577889fb1682831142ceb by Miss Islington (bot) (Dong-hee Na) in branch 'master': bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH-15522)

[issue38033] Use After Free: PyObject_Free

2019-09-04 Thread Chiaki Ishikawa
Chiaki Ishikawa added the comment: Addtion: PyObject_Realloc also has the issue of Use After Free: this may be more serious. ==31128== Invalid read of size 4 ==31128==at 0x5A48CA: PyObject_Realloc (in /usr/bin/python3.7) ==31128==by 0x5DD8FB: _PyBytes_Resize (in /usr/bin/python3.7)

[issue38033] Use After Free: PyObject_Free

2019-09-04 Thread Chiaki Ishikawa
New submission from Chiaki Ishikawa : Hi, I am new to Python bug tracker, so my setting of the fields may be inadequate. If so, apologies in advance. I think Use After Free bug is a potential security issue and so wanted to report ASAP. First my environment: I am using Debian GNU/Linux, and

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-04 Thread Justin ARthur
New submission from Justin ARthur : Python 3 code with an identifier that has a non-spacing mark in it does not get tokenized by lib2to3 and will result in an exception thrown in the parsing process. Parsing the attached file (badvar.py), results in `ParseError: bad token: type=58,

Re: Formatting floating point

2019-09-04 Thread DL Neil via Python-list
On 5/09/19 5:12 AM, Dave via Python-list wrote: ... My question is why, and where do I find a reliable source of information on formatting numbers?  Not interested in replacement values like '{} {}'.format(1, 2). Agreed: there's ton(ne)s of information 'out there', much of it old, eg

[issue38030] os.stat fails for block devices such as //./PhysicalDrive0

2019-09-04 Thread miss-islington
miss-islington added the comment: New changeset cad7abf8abe657b696b9c8deb4b727e0cefaf36d by Miss Islington (bot) in branch '3.8': bpo-38030: Fix os.stat failures on block devices on Windows (GH-15681) https://github.com/python/cpython/commit/cad7abf8abe657b696b9c8deb4b727e0cefaf36d

[issue38030] os.stat fails for block devices such as //./PhysicalDrive0

2019-09-04 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38030] os.stat fails for block devices such as //./PhysicalDrive0

2019-09-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +15342 pull_request: https://github.com/python/cpython/pull/15682 ___ Python tracker ___

[issue38030] os.stat fails for block devices such as //./PhysicalDrive0

2019-09-04 Thread Steve Dower
Steve Dower added the comment: New changeset 772ec0fad57412daa53d16d7019b6b2fe6e94942 by Steve Dower in branch 'master': bpo-38030: Fix os.stat failures on block devices on Windows (GH-15681) https://github.com/python/cpython/commit/772ec0fad57412daa53d16d7019b6b2fe6e94942 --

[issue38031] FileIO.__init__ aborts when opener returns bad fd

2019-09-04 Thread Maxwell Bernstein
New submission from Maxwell Bernstein : On a debug build, the following causes an abort: import _io _io.FileIO("foobar", opener=lambda name, flags: 100) 100 is not a valid fd. FileIO attempts to raise an IOError from errno, but there is already an exception set when

[issue38030] os.stat fails for block devices such as //./PhysicalDrive0

2019-09-04 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +15341 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15681 ___ Python tracker

[issue37858] CookieLib: MozillaCookieJar.py uses case-sensitive regex to validate cookies file

2019-09-04 Thread Ned Deily
Change by Ned Deily : -- versions: -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38030] os.stat fails for block devices such as //./PhysicalDrive0

2019-09-04 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38030] os.stat fails for block devices such as //./PhysicalDrive0

2019-09-04 Thread Eryk Sun
New submission from Eryk Sun : In issue 37834, I posted a suggest implementation of win32_xstat_impl that included the following snippet of code: if (!GetFileInformationByHandle(hFile, )) { error = GetLastError(); if (error != ERROR_INVALID_PARAMETER &&

Re: How to remove a string from a txt file?

2019-09-04 Thread Tobiah
On 9/4/19 8:08 AM, Spencer Du wrote: Hi I want to remove a string from a txt file and then print out what I have removed. How do I do this. The txt file is in this format and should be kept in this format. txt.txt: laser,cameras, Thanks Do you want to remove one of the fields by using an

Re: How to remove a string from a txt file?

2019-09-04 Thread DL Neil via Python-list
On 5/09/19 3:08 AM, Spencer Du wrote: Hi I want to remove a string from a txt file and then print out what I have removed. How do I do this. The txt file is in this format and should be kept in this format. txt.txt: laser,cameras, Is this a homework assignment? What code do you have so

Re: How to remove a string from a txt file?

2019-09-04 Thread Joel Goldstick
On Wed, Sep 4, 2019 at 11:11 AM Spencer Du wrote: > > Hi > > I want to remove a string from a txt file and then print out what I have > removed. How do I do this. > > The txt file is in this format and should be kept in this format. > > txt.txt: > laser,cameras, > > Thanks > -- >

[issue37858] CookieLib: MozillaCookieJar.py uses case-sensitive regex to validate cookies file

2019-09-04 Thread Ashley Harvey
Change by Ashley Harvey : -- pull_requests: +15340 pull_request: https://github.com/python/cpython/pull/15680 ___ Python tracker ___

[issue37858] CookieLib: MozillaCookieJar.py uses case-sensitive regex to validate cookies file

2019-09-04 Thread Ashley Harvey
Change by Ashley Harvey : -- pull_requests: +15339 pull_request: https://github.com/python/cpython/pull/15679 ___ Python tracker ___

[issue37858] CookieLib: MozillaCookieJar.py uses case-sensitive regex to validate cookies file

2019-09-04 Thread Ashley Harvey
Change by Ashley Harvey : -- keywords: +patch pull_requests: +15338 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15673 ___ Python tracker ___

[issue37934] Docs: Clarify NotImplemented use cases

2019-09-04 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > As you say, we currently have only one usage of NotImplemented outside its > intended purpose. I know at least 3 in CPython, so it's not so rare to use NotImplemented for something else than binary operators: 1. __subclasshook__ 2. reducer_override (in

CVE-2019-9636 - Can this be exploit over the wire?

2019-09-04 Thread Barry Scott
I have been looking into CVE-2019-9636 and I'm not sure that python code that works in bytes is vulnerable to this. The "trick" that to make the CVE dangerous assumes that you have a unicode string with \uff03 (FULLWIDTH NUMBER SIGN') that under NFKC turns into '#'. The discussion in

Re: Formatting floating point

2019-09-04 Thread Dave via Python-list
On 9/4/19 1:38 PM, Rhodri James wrote: On 04/09/2019 18:12, Dave via Python-list wrote: My question is why, and where do I find a reliable source of information on formatting numbers?  Not interested in replacement values like '{} {}'.format(1, 2). Here:

[issue38021] pep425 tag for AIX is inadequate

2019-09-04 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +15337 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15678 ___ Python tracker ___

Re: Formatting floating point

2019-09-04 Thread Dave via Python-list
On 9/4/19 1:25 PM, Chris Angelico wrote: On Thu, Sep 5, 2019 at 3:16 AM Dave via Python-list wrote: All, I have been going in circles trying to format a floating point number so there is only 1 decimal place. In reading all of the gobble-gook that passes for Python advice, it looked like I

[issue38014] Python 3.7 does not compile

2019-09-04 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Formatting floating point

2019-09-04 Thread Rhodri James
On 04/09/2019 18:12, Dave via Python-list wrote: My question is why, and where do I find a reliable source of information on formatting numbers?  Not interested in replacement values like '{} {}'.format(1, 2). Here:

Re: Formatting floating point

2019-09-04 Thread Chris Angelico
On Thu, Sep 5, 2019 at 3:16 AM Dave via Python-list wrote: > > All, > > I have been going in circles trying to format a floating point number so > there is only 1 decimal place. In reading all of the gobble-gook that > passes for Python advice, it looked like I should have done this: > > numStr

[issue37245] Azure Pipeline 3.8 CI: multiple tests hung and timed out on macOS 10.13

2019-09-04 Thread Ned Deily
Ned Deily added the comment: Yeah, I agree that increasing the timeout shouldn't be the answer here. I still have never seen failure modes like this when running my own tests. The idea about CPUs is one worth pursuing although I usually run with -j3. Also I wonder how much memory the VM

Formatting floating point

2019-09-04 Thread Dave via Python-list
All, I have been going in circles trying to format a floating point number so there is only 1 decimal place. In reading all of the gobble-gook that passes for Python advice, it looked like I should have done this: numStr = '3.14159' num = float(numstr) # OK so far numFmt = format(num,

[issue37245] Azure Pipeline 3.8 CI: multiple tests hung and timed out on macOS 10.13

2019-09-04 Thread Steve Dower
Steve Dower added the comment: > Maybe macOS on Azure is running slower and we should just increase the > timeout? (Aside, why don't the macOS buildbots have a tag saying that? Took me ages to find them...) I doubt it's running 6-7x slower. More likely something is causing one of the

[issue37970] urllib.parse docstrings incomplete

2019-09-04 Thread Zachary Ware
Zachary Ware added the comment: I see. I don't think we need to describe each returned component in the docstring; they're some combination of self-explanatory, described in the reference docs, or just industry-standard terms that are easily defined from other sources. I'm not suggesting

[issue38028] Assertion error in Python 3.8

2019-09-04 Thread Ned Deily
Ned Deily added the comment: The traceback you provide in the first message: File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/wheel.py", line 324, in move_wheel_files scheme = distutils_scheme( File

[issue37245] Azure Pipeline 3.8 CI: multiple tests hung and timed out on macOS 10.13

2019-09-04 Thread STINNER Victor
STINNER Victor added the comment: > I'm still seeing this, maybe 1 in 20 builds, so it's semi-random. A new > deadlock, maybe? It seems like only the jobs on Azure are killed by timeout. The jobs on macOS buildbots look fine. Maybe macOS on Azure is running slower and we should just

[issue38021] pep425 tag for AIX is inadequate

2019-09-04 Thread Michael Felt
Michael Felt added the comment: Thank you Ned. Not a justification perhaps, but a way to specify that it is support. Three+ years ago when I first worked on something for Lib/ctypes to get find_library() et al working for AIX I was also asked to add it as _aix.py similar to the macos

[issue9938] Add optional kwargs to argparse

2019-09-04 Thread hai shi
Change by hai shi : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38028] Assertion error in Python 3.8

2019-09-04 Thread Ana
Ana added the comment: Well I have been looking through the interim commands running by the terminal. As far as I can see that’s not Numpy/scipy or whatever. These are the setup tools, wheel and Cython. I may be wrong, but I guess these are pretty universal and are required by many

Re: Proper way to pass Queue to process when using multiprocessing.imap()?

2019-09-04 Thread Chris Angelico
On Thu, Sep 5, 2019 at 2:07 AM Israel Brewster wrote: > > > > > On Sep 3, 2019, at 11:09 AM, Israel Brewster wrote: > > > >> > >> On Sep 3, 2019, at 10:49 AM, Peter Otten <__pete...@web.de> wrote: > >> > >> Israel Brewster wrote: > >> > >>> When using pool.imap to apply a function over a list of

[issue38028] Assertion error in Python 3.8

2019-09-04 Thread Ned Deily
Ned Deily added the comment: NumPy has a very complex build and install process including supplying its own modified version of Distutils. You should take up any build and install issues first with the NumPy project and then, if you both agree that there appears to be a problem in Python

[issue38029] Should io.TextIOWrapper raise an error at instantiation if a StringIO is passed as 'buffer'?

2019-09-04 Thread Brian Skinn
New submission from Brian Skinn : If I read the docs correctly, io.TextIOWrapper is meant to provide a str-typed interface to an underlying bytes stream. If a TextIOWrapper is instantiated with the underlying buffer=io.StringIO(), it breaks: >>> import io >>> tw =

[issue38028] Assertion error in Python 3.8

2019-09-04 Thread Steve Dower
Change by Steve Dower : -- nosy: +Marcus.Smith, dstufft, ncoghlan, paul.moore, pradyunsg ___ Python tracker ___ ___

[issue38028] Assertion error in Python 3.8

2019-09-04 Thread Ana
New submission from Ana : After all, I am trying to install the dev version of Numpy and the other libs. Unfortunately, I am still unable to install them. I have some assertion errors: ERROR: Exception: Traceback (most recent call last): File

Re: Proper way to pass Queue to process when using multiprocessing.imap()?

2019-09-04 Thread Israel Brewster
> > On Sep 3, 2019, at 11:09 AM, Israel Brewster wrote: > >> >> On Sep 3, 2019, at 10:49 AM, Peter Otten <__pete...@web.de> wrote: >> >> Israel Brewster wrote: >> >>> When using pool.imap to apply a function over a list of values, what is >>> the proper way to pass additional arguments to

[issue35923] Update the BuiltinImporter in importlib to use loader._ORIGIN instead of a hardcoded value

2019-09-04 Thread Ned Deily
Change by Ned Deily : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: How to only read words within brackets/ parentheses (in .txt file) using Python

2019-09-04 Thread Peter Otten
A S wrote: > I understand that reading lines in .txt files would look something like > this in Python: > > > with open('filename','r') as fd: >lines = fd.readlines() > > > However, how do I run my code to only read the words in my .txt files that > are within each balanced parenthesis? >

[issue36226] multipart/related header causes false positive StartBoundaryNotFoundDefect and MultipartInvariantViolationDefect

2019-09-04 Thread Ned Deily
Change by Ned Deily : -- nosy: +barry, maxking, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38027] Can't use Numpy, SciPy, pandas in Python3.8.0b4 without conda

2019-09-04 Thread Ned Deily
Change by Ned Deily : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: How do I give a decorator acces to the class of a decorated function

2019-09-04 Thread Peter Otten
Antoon Pardon wrote: > What I am trying to do is the following. > > class MyClass (...) : > @register > def MyFunction(...) > ... > > What I would want is for the register decorator to somehow create/mutate > class variable(s) of MyClass. > > Is that possible or do I have to

[issue37970] urllib.parse docstrings incomplete

2019-09-04 Thread sushma
sushma added the comment: I guess what I'm wondering is this: urlsplit(url, scheme='', allow_fragments=True) Parse a URL into 5 components: :///?# Return a 5-tuple: (scheme, netloc, path, query, fragment). Note that we don't break the components up in smaller bits (e.g.

[issue38027] Can't use Numpy, SciPy, pandas in Python3.8.0b4 without conda

2019-09-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: Ana, The error in "piperroroutput.txt" points to the issue Mark mentioned in msg351131: the current release of Numpy is not compatible with Python 3.8, but the tip of the tree on GitHub is. I can install Numpy from the repository: $ python --version

How to only read words within brackets/ parentheses (in .txt file) using Python

2019-09-04 Thread A S
I understand that reading lines in .txt files would look something like this in Python: with open('filename','r') as fd: lines = fd.readlines() However, how do I run my code to only read the words in my .txt files that are within each balanced parenthesis? I am not sure how to go about

How to remove a string from a txt file?

2019-09-04 Thread Spencer Du
Hi I want to remove a string from a txt file and then print out what I have removed. How do I do this. The txt file is in this format and should be kept in this format. txt.txt: laser,cameras, Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I give a decorator acces to the class of a decorated function

2019-09-04 Thread Chris Angelico
On Thu, Sep 5, 2019 at 12:23 AM Antoon Pardon wrote: > > What I am trying to do is the following. > > class MyClass (...) : > @register > def MyFunction(...) > ... > > What I would want is for the register decorator to somehow create/mutate > class variable(s) of MyClass. > > Is

Re: How do I give a decorator acces to the class of a decorated function

2019-09-04 Thread Rhodri James
On 04/09/2019 15:21, Antoon Pardon wrote: What I am trying to do is the following. class MyClass (...) : @register def MyFunction(...) ... What I would want is for the register decorator to somehow create/mutate class variable(s) of MyClass. Is that possible or do I have to

[issue37970] urllib.parse docstrings incomplete

2019-09-04 Thread Zachary Ware
Zachary Ware added the comment: >I don't understand why we'd have scheme and netloc, but nothing for path and >query. I'm not sure what you mean here; can you please clarify? > What are you suggesting we add for scheme/allow_fragements? Just a brief description of what effect the arguments

How do I give a decorator acces to the class of a decorated function

2019-09-04 Thread Antoon Pardon
What I am trying to do is the following. class MyClass (...) : @register def MyFunction(...) ... What I would want is for the register decorator to somehow create/mutate class variable(s) of MyClass. Is that possible or do I have to rethink my approach? -- Antoon Pardon. --

[issue38027] Can't use Numpy, SciPy, pandas in Python3.8.0b4 without conda

2019-09-04 Thread Ana
Ana added the comment: Thx for the link. Btw, I have tried: pip install git+https://github.com/numpy/numpy.git https://github.com/numpy/numpy.git> That doesn’t work for me. The only way I can install somewhat is downloading the package, building and installing it. > On 4 Sep 2019, at 17:11,

[issue38027] Can't use Numpy, SciPy, pandas in Python3.8.0b4 without conda

2019-09-04 Thread Ana
Ana added the comment: At the end of each error log, there is a message stating different python versions (up to 3.7) and AIX. However, there is no python3.8 + AIX, and there is no corresponding dependency: ERROR: Command errored out with exit status 2: command:

[issue38027] Can't use Numpy, SciPy, pandas in Python3.8.0b4 without conda

2019-09-04 Thread Mark Dickinson
Mark Dickinson added the comment: I forgot to include the NumPy issue link: https://github.com/numpy/numpy/issues/14403 (and other similar issues). The pip error output you posted looks like the same issue to me. -- ___ Python tracker

[issue38027] Can't use Numpy, SciPy, pandas in Python3.8.0b4 without conda

2019-09-04 Thread Mark Dickinson
Mark Dickinson added the comment: There are known Cython-related issues with the latest NumPy *release* and Python 3.8, due to a signature change in PyCode_New. But those issues are already fixed in NumPy master. `pip install numpy` fails for me in a Python 3.8b4 venv, but `pip install

[issue38027] Can't use Numpy, SciPy, pandas in Python3.8.0b4 without conda

2019-09-04 Thread Ana
Ana added the comment: That's huge, so I am attaching it in a separate file -- Added file: https://bugs.python.org/file48591/piperroroutput.txt ___ Python tracker ___

[issue38027] Can't use Numpy, SciPy, pandas in Python3.8.0b4 without conda

2019-09-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: Thanks for the update. What's the error message you get when using pip to install? -- ___ Python tracker ___

[issue36030] add internal API function to create tuple without items array initialization

2019-09-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 60bd1f88f21073965a444c8b39c4202d015da5d6 by Victor Stinner (Zackery Spytz) in branch 'master': bpo-36030: Fix a possible segfault in PyTuple_New() (GH-15670) https://github.com/python/cpython/commit/60bd1f88f21073965a444c8b39c4202d015da5d6

[issue37966] is_normalized is much slower at "no" than the standard's algorithm

2019-09-04 Thread STINNER Victor
STINNER Victor added the comment: Thanks Greg Price for this nice optimization! -- ___ Python tracker ___ ___ Python-bugs-list

[issue37891] Exceptions tutorial page does not mention raise from

2019-09-04 Thread Srinivas Nyayapati
Srinivas Nyayapati added the comment: Here is my first pass at this. I propose the following sentence be added at the end section 8.4: If you need to track related exceptions (exceptions during exception handling), you should use exception chaining. You can chain exceptions by using the

  1   2   >