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

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

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

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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

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

2019-09-04 Thread Ana
Ana added the comment: 1) The OS: Mojave 10.14.6 2) Python is currently here: /usr/local/bin/python 3)Pip is here: /usr/local/bin/pip Here is pip -V: pip 19.2.3 from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip (python 3.8) 4)I know it’s in beta, but I am

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

2019-09-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: What issues to you see? What operating system and version are you on? How did you install Python? Note that Python 3.8 is still in beta and therefore a lot of 3th party libraries do no yet have binary wheels available. You therefore likely need a

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

2019-09-04 Thread Ana
New submission from Ana : So, all in all, if I try to install Numpy, SciPy, pandas or any related libraries via pip I see several issues, no AIX version written (somewhere?) for Python 3.8, as well as pip addresses to mkl_rt, which is not found in the path. I am trying to use python3.8 as a

[issue24416] Have date.isocalendar() return a structseq instance

2019-09-04 Thread STINNER Victor
STINNER Victor added the comment: The main blocker issue (if we decide to accept this feature) is the pickle serialization issue. Serhiy Storchaka: > No, it is not fully backwards-compatible. First, if pickle a namedtuple, it > can't be unpickled in previous versions. Would it be possible

[issue38026] inspect.getattr_static should avoid dynamic lookup

2019-09-04 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +15336 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15676 ___ Python tracker ___

[issue38026] inspect.getattr_static should avoid dynamic lookup

2019-09-04 Thread Inada Naoki
New submission from Inada Naoki : Reported here: https://github.com/python/cpython/commit/feaefc7f60cd3be7bf4ecc2b73e77d2bfe048403 I merged GH-5351 but it broke inspect.getattr_static behavior. It should be reverted. -- components: Library (Lib) keywords: 3.8regression messages:

[issue38025] format

2019-09-04 Thread Eric V. Smith
Eric V. Smith added the comment: When you convert the integer to a float (because of the 'f' in the first format spec), you're losing precision. See: https://docs.python.org/3/tutorial/floatingpoint.html and

[issue38025] format

2019-09-04 Thread Daniel Futterweit
New submission from Daniel Futterweit : f'{10001323121:,.0f}' returns: '10,000,000,000,000,001,761,595,319,084,122,112' f'{10001323121:,}' returns: '10,000,000,000,000,001,323,120,000,000,000,001' --

[issue38025] format

2019-09-04 Thread Daniel Futterweit
Change by Daniel Futterweit : -- nosy: Daniel_Python priority: normal severity: normal status: open title: format type: behavior versions: Python 3.7 ___ Python tracker ___

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

2019-09-04 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38024] adding or subtracting decimals

2019-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38024] adding or subtracting decimals

2019-09-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please include the text of the repl session in issue so that it would be easy to copy past and also more accessible. The issue is as below in the attached image. I guess this is due to floating point representation and has some possible solutions

[issue38024] adding or subtracting decimals

2019-09-04 Thread QA.Nathaniel Logarta
New submission from QA.Nathaniel Logarta : Just try to add decimals It doesn't have any trigger on my end As long as it is a complex decimal or adding decimal zeroes to non-zero -- components: Windows files: adding or subtracting decimals.PNG messages: 351117 nosy: QA.Nathaniel

[issue37970] urllib.parse docstrings incomplete

2019-09-04 Thread sushma
sushma added the comment: hello! I can see that we might want to add documentation for splitting netloc, but I don't understand why we'd have scheme and netloc, but nothing for path and query. What are you suggesting we add for scheme/allow_fragements? Thanks! -- nosy: