[issue34240] Convert test_mmap to use tempfile

2018-07-26 Thread Eryk Sun
Eryk Sun added the comment: To clarify, TEMPDIR in this case is from the following code in Lib/test/libregrtest/main.py: # When tests are run from the Python build directory, it is best practice # to keep the test files in a subfolder. This eases the cleanup of leftover # files

[issue34241] Segfault while Django template rendering

2018-07-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Interesting. It works fine with Python 3.6 and latest master but segfaults in python 3.7.0 . I will try the latest python 3.7 branch later. # Python 3.6 on Mac (bpo34241-env)mysite git:(master) python Python 3.6.4 (default, Mar 12 2018,

[issue34244] Add support of check logger

2018-07-26 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34244] Add support of check logger

2018-07-26 Thread Chetan kolhe
New submission from Chetan kolhe : Add support in logging library which will check whether the logger object already created or not . Module:- logging Code:- def check_logger(self, logger_name): """ Description :- It will check whether the logger object is already

[issue34239] Convert test_bz2 to use tempfile

2018-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is more reliable to use test.support.unlink(). -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue34241] Segfault while Django template rendering

2018-07-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12743] C API marshalling doc contains XXX

2018-07-26 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.5 ___ Python tracker ___

[issue12743] C API marshalling doc contains XXX

2018-07-26 Thread miss-islington
miss-islington added the comment: New changeset 146ba436cc0457b8ef7fea8b054b9ccb15e24748 by Miss Islington (bot) in branch '3.6': bpo-12743: Delete comment from marshal.rst (GH-8457) https://github.com/python/cpython/commit/146ba436cc0457b8ef7fea8b054b9ccb15e24748 --

[issue12743] C API marshalling doc contains XXX

2018-07-26 Thread miss-islington
miss-islington added the comment: New changeset 21ed29ac290b10d31dcac947f9246ae4d8b94a86 by Miss Islington (bot) in branch '3.7': bpo-12743: Delete comment from marshal.rst (GH-8457) https://github.com/python/cpython/commit/21ed29ac290b10d31dcac947f9246ae4d8b94a86 -- nosy:

[issue12743] C API marshalling doc contains XXX

2018-07-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +8010 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12743] C API marshalling doc contains XXX

2018-07-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +8011 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12743] C API marshalling doc contains XXX

2018-07-26 Thread Berker Peksag
Berker Peksag added the comment: New changeset defcffdf86780e3a184ebb25dc9a7b807753d57a by Berker Peksag in branch 'master': bpo-12743: Delete comment from marshal.rst (GH-8457) https://github.com/python/cpython/commit/defcffdf86780e3a184ebb25dc9a7b807753d57a --

[issue29750] smtplib doesn't handle unicode passwords

2018-07-26 Thread Windson Yang
Windson Yang added the comment: @Vadim Pushtaev I also want to work on it. If you wanna work together. Maybe we can talk on zulipchat. :D -- nosy: +Windson Yang ___ Python tracker

[issue34240] Convert test_mmap to use tempfile

2018-07-26 Thread Eryk Sun
Eryk Sun added the comment: > tests are competing with each other to delete and recreate the file When is this an issue? Each parallel test process should have its own working directory under "{TEMPDIR}/test_python_{pid}". -- nosy: +eryksun ___

[issue23794] http package should support HTTP/2

2018-07-26 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34137] Add Path.lexist() to pathlib

2018-07-26 Thread Anton Patrushev
Change by Anton Patrushev : -- nosy: +apatrushev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33129] Add kwarg-only option to dataclass

2018-07-26 Thread Jimbo Jim
Jimbo Jim added the comment: first post in bugs.python.org... are people normally scary around here? Another usecase of keyword-only arguments is that I can mix default and non-default fields in any order. This could be achieved by either marking all fields as read-only, or by implicitly

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Commutativity guarantees can be delivered by sorting arguments before > summation. No thanks -- that too expensive for such a small payoff. -- ___ Python tracker

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Commutativity guarantees can be delivered by sorting arguments before > summation. No thanks -- that's too expensive for such a small payoff. -- ___ Python tracker

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-26 Thread Raymond Hettinger
Change by Raymond Hettinger : -- Removed message: https://bugs.python.org/msg322453 ___ Python tracker ___ ___ Python-bugs-list

[issue34243] pty.spawn: inconsistent interface

2018-07-26 Thread zerx
New submission from zerx : # spawn(argv, master_read=_read, stdin_read=_read) With stdin_read function it's possible to customize how one can read from stdin, but it makes little sense without stdout counterpart. For example, you cannot use a wrapped ssl socket to forward a terminal over

[issue34239] Convert test_bz2 to use tempfile

2018-07-26 Thread Tim Golden
Tim Golden added the comment: New changeset 6a62e1d365934de82ff7c634981b3fbf218b4d5f by Tim Golden in branch 'master': bpo-34239: Convert test_bz2 to use tempfile (#8485) https://github.com/python/cpython/commit/6a62e1d365934de82ff7c634981b3fbf218b4d5f --

[issue29750] smtplib doesn't handle unicode passwords

2018-07-26 Thread Tal Einat
Tal Einat added the comment: A comment here is all that is needed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27794] setattr a read-only property; the AttributeError should show the attribute that failed

2018-07-26 Thread Anton Patrushev
Change by Anton Patrushev : -- nosy: +apatrushev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11594] 2to3 does not preserve line endings

2018-07-26 Thread Slawomir Nowaczyk
Slawomir Nowaczyk added the comment: I've just tried 2to3 in 3.7.0, and it still breaks line endings for me... Seems like one also needs to fix line 517 in refactor.py fp = io.open(filename, "w", encoding=encoding, newline='') -- nosy: +Slawomir Nowaczyk

[issue34242] configparser: SectionProxy.get is silent on missing options

2018-07-26 Thread Stig Johan Berggren
Change by Stig Johan Berggren : -- keywords: +patch pull_requests: +8009 stage: -> patch review ___ Python tracker ___ ___

[issue34242] configparser: SectionProxy.get is silent on missing options

2018-07-26 Thread Stig Johan Berggren
New submission from Stig Johan Berggren : `get()` on a ConfigParser object behaves differently from `get()` on a section. The former raises an exception when the key does not exist and no fallback has been explicitly set. The latter returns None, with no option to raise an error for missing

[issue29750] smtplib doesn't handle unicode passwords

2018-07-26 Thread Vadim Pushtaev
Vadim Pushtaev added the comment: Hello. I would like to work on this, should the issue be assigned on me or this comment is enough? -- nosy: +Vadim Pushtaev ___ Python tracker

[issue34238] When BROWSER is set on Mac webbrowser.register_standard_browsers doesn't work

2018-07-26 Thread Jason
Jason added the comment: Serhiy, I believe you are correct. I updated my local python and it passed. However, I think there might be a bug with the implementation that doesn't correctly respect the BROWSER preference. If I do: ``` ➜ BROWSER=lynx python3 Python 3.7.0 (default, Jul 23 2018,

[issue25461] Unclear language (the word ineffective) in the documentation for os.walk

2018-07-26 Thread Jonathan Fine
Change by Jonathan Fine : -- nosy: +jfine2358 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32395] asyncio.StreamReader.readuntil is not general enough

2018-07-26 Thread Anton Patrushev
Change by Anton Patrushev : -- nosy: +socketpair ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34240] Convert test_mmap to use tempfile

2018-07-26 Thread Tim Golden
Change by Tim Golden : -- keywords: +patch pull_requests: +8008 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34241] Segfault while Django template rendering

2018-07-26 Thread vhelke
New submission from vhelke : I have found a segfault in Django 2.0 while rendering a template. Detailed info here, and instructions of how to reproduce the fault: ​https://github.com/vhelke/django-cas-crash *** Here are the traces I was able to collect. $ gdb python Program received

[issue34240] Convert test_mmap to use tempfile

2018-07-26 Thread Tim Golden
New submission from Tim Golden : test_mmap currently uses the test.support.TESTFN functionality which creates a temporary file local to the test directory named around the pid. This can give rise to race conditions where tests are competing with each other to delete and recreate the file.

[issue34238] When BROWSER is set on Mac webbrowser.register_standard_browsers doesn't work

2018-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is fixed in issue31014. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue34239] Convert test_bz2 to use tempfile

2018-07-26 Thread Tim Golden
Change by Tim Golden : -- keywords: +patch pull_requests: +8007 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32814] smtplib.send_message mishandles 8BITMIME RFC 6152

2018-07-26 Thread Segev Finer
Segev Finer added the comment: Merged into the PR that is. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34239] Convert test_bz2 to use tempfile

2018-07-26 Thread Tim Golden
New submission from Tim Golden : test_bz2 currently uses the test.support.TESTFN functionality which creates a temporary file local to the test directory named around the pid. This can give rise to race conditions where tests are competing with each other to delete and recreate the file.

[issue34238] When BROWSER is set on Mac webbrowser.register_standard_browsers doesn't work

2018-07-26 Thread Jason
Change by Jason : -- type: crash -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-07-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 56b29b6d6fa3eb32bb1533ee3f21b1e7135648a0 by Victor Stinner in branch 'master': bpo-34170, test_embed: write Py_Initialize() tests (GH-8484) https://github.com/python/cpython/commit/56b29b6d6fa3eb32bb1533ee3f21b1e7135648a0 --

[issue34238] When BROWSER is set on Mac webbrowser.register_standard_browsers doesn't work

2018-07-26 Thread Jason
New submission from Jason : Description: When BROWSER is set, webbrowser.get fails because register_standard_browsers throws an error. Work around: You can still use `webbroswer._browsers[key][1].open(url)` to open a browser. Operating system: macOS High Sierra v10.13.6 Reproduction 1:

[issue32814] smtplib.send_message mishandles 8BITMIME RFC 6152

2018-07-26 Thread Segev Finer
Segev Finer added the comment: > OK, the #32663 test fix I mentioned in the review is merged. Yeah. I already merged it in. -- ___ Python tracker ___

[issue34229] Possible access to unintended variable in "cpython/Objects/sliceobject.c" line 116

2018-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your PR Karthikeyan! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34229] Possible access to unintended variable in "cpython/Objects/sliceobject.c" line 116

2018-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2bea7716093012319b5e6a4260fe802b15031f21 by Serhiy Storchaka (Xtreak) in branch '2.7': bpo-34229: Check start and stop of slice object to be long when they are not int in PySlice_GetIndices (GH-8480)

[issue34225] distutils._msvccompiler should trim INCLUDE/LIB directories

2018-07-26 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-07-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8006 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2018-07-26 Thread Anthony Sottile
Anthony Sottile added the comment: I was able to reproduce both the `PermissionError` and the `FileNotFoundError` under these circumstances: $ docker run --user 123:123 -ti python python Python 3.7.0 (default, Jul 17 2018, 11:04:33) [GCC 6.3.0 20170516] on linux Type "help", "copyright",

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2018-07-26 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +8005 stage: -> patch review ___ Python tracker ___ ___

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Commutativity guarantees can be delivered by sorting arguments before summation. In any case the sorting is needed for more accurate summation (from smaller to larger). -- ___ Python tracker

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't want to make any guarantees beyond what the doc patch says. Commutativity guarantees are difficult to deliver without exact summation. A switchover to C's hypot() creates an external dependency such that we can't make any more guarantees than

[issue34206] Move and clarify Py_Main documentation

2018-07-26 Thread Eric Snow
Change by Eric Snow : -- nosy: +emilyemorehouse ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34206] Move and clarify Py_Main documentation

2018-07-26 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32083] sqlite3 Cursor.description can't return column types

2018-07-26 Thread Berker Peksag
Berker Peksag added the comment: Good catch, Zackery, thanks! This is indeed a duplicate of issue 11691. -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> sqlite3 Cursor.description doesn't set type_code

[issue29750] smtplib doesn't handle unicode passwords

2018-07-26 Thread Tal Einat
Tal Einat added the comment: Never mind, I won't have time for this any time soon, better if someone else can do it. -- ___ Python tracker ___

[issue34237] faq/design: PEP 572 adds assignment expressions

2018-07-26 Thread Jonathan Fine
New submission from Jonathan Fine : The title says it all. faq/design: PEP 572 adds assignment expressions https://docs.python.org/3.8/faq/design.html#why-can-t-i-use-an-assignment-in-an-expression [Can't use] this C idiom: while (line = readline(f)) { // do something with line }

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2018-07-26 Thread Anton Patrushev
Anton Patrushev added the comment: I created small script showing the error. -- nosy: +apatrushev versions: +Python 3.7 Added file: https://bugs.python.org/file47714/test.py ___ Python tracker

[issue32814] smtplib.send_message mishandles 8BITMIME RFC 6152

2018-07-26 Thread R. David Murray
R. David Murray added the comment: OK, the #32663 test fix I mentioned in the review is merged. -- versions: -Python 3.5 ___ Python tracker ___

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-07-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset d145775b451bbae549391eb49ed612fb3b03bde1 by Victor Stinner in branch 'master': bpo-34170: Cleanup pymain_read_conf() (GH-8476) https://github.com/python/cpython/commit/d145775b451bbae549391eb49ed612fb3b03bde1 --

[issue32663] SMTPUTF8SimTests are not actually being run

2018-07-26 Thread R. David Murray
R. David Murray added the comment: Thanks, Chason. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32663] SMTPUTF8SimTests are not actually being run

2018-07-26 Thread R. David Murray
R. David Murray added the comment: New changeset cecbe0ade87360cd37cc1389fe33dd92f2cf52ba by R. David Murray (Miss Islington (bot)) in branch '3.6': bpo-32663 Make SMTPUTF8SimTests run (GH-5314) (#8470) https://github.com/python/cpython/commit/cecbe0ade87360cd37cc1389fe33dd92f2cf52ba

[issue32663] SMTPUTF8SimTests are not actually being run

2018-07-26 Thread R. David Murray
R. David Murray added the comment: New changeset 89352b08aad447d046551fa0cd374becd7941c91 by R. David Murray (Miss Islington (bot)) in branch '3.7': bpo-32663 Make SMTPUTF8SimTests run (GH-5314) (#8471) https://github.com/python/cpython/commit/89352b08aad447d046551fa0cd374becd7941c91

[issue34236] Test6012 in test_capi is not run as part of make test

2018-07-26 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Test6012 is not run as part of make test since it's not added to support.run_unittest at the end of the file. Hence running the test as a single file causes error. It seems argparsing related test which is a part of _testcapi.module.c in Python 3

[issue31830] asyncio.create_subprocess_exec doesn't capture all stdout output

2018-07-26 Thread Anton Patrushev
New submission from Anton Patrushev : The issue is invalid. I just added the following lines to the end of your main: ``` line = await asyncio.wait_for(process.stderr.readline(), 10) print(line) ``` and got additional info: ``` b'/bin/bash: echo local: command not found\n' ``` So the

[issue32083] sqlite3 Cursor.description can't return column types

2018-07-26 Thread Zackery Spytz
Zackery Spytz added the comment: This seems to be a duplicate of #11691. -- nosy: +ZackerySpytz ___ Python tracker ___ ___

[issue34231] PYTHONBREAKPOINT is not documented with python --help

2018-07-26 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- components: +Documentation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34231] PYTHONBREAKPOINT is not documented with python --help

2018-07-26 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: just updated the python man page -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34201] Make ndarray.readonly a bool

2018-07-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +8004 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34235] PyArg_ParseTupleAndKeywords: support required keyword arguments

2018-07-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In Python the function can have 4 kinds of parameters: def f(a, b=1, *, c, d=2): 1. a is a required positional-or-keyword parameter. 2. b is an optional positional-or-keyword parameter. 3. c is a required keyword-only parameter. 4. d is an optional

[issue34229] Possible access to unintended variable in "cpython/Objects/sliceobject.c" line 116

2018-07-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +8003 stage: needs patch -> patch review ___ Python tracker ___

[issue33837] Closing asyncio.Server on asyncio.ProactorEventLoop causes all active servers to stop listening

2018-07-26 Thread Anton Patrushev
Anton Patrushev added the comment: This issue was fixed in: git319c0345cdd8fddb49d235462e71883f1dd51b99 -- nosy: +apatrushev ___ Python tracker ___

[issue34197] Make csv.Dialect attributes skipinitialspace, doublequote and strict booleans

2018-07-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue20260] Argument Clinic: add unsigned integers converters

2018-07-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.4 ___ Python tracker ___

[issue34234] Use _PyAnyInt_Check() and _PyAnyInt_CheckExact() in 2.7

2018-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Most changes are made automatically by the Coccinelle (http://coccinelle.lip6.fr) script. spatch --sp-file anyint.cocci --dir . --in-place -- Added file: https://bugs.python.org/file47713/anyint.cocci ___

[issue34233] subprocess.check_output goes to infinte loop

2018-07-26 Thread Eryk Sun
Eryk Sun added the comment: `cmd.exe dir` ignores the unrecognized `dir` argument and runs the interactive shell. The shell is waiting for input on stdin. You can type "exit" and press enter to return to Python. When you run this from IDLE (i.e. via pythonw.exe), there's no StandardInput

[issue34234] Use _PyAnyInt_Check() and _PyAnyInt_CheckExact() in 2.7

2018-07-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +8002 stage: -> patch review ___ Python tracker ___ ___

[issue34234] Use _PyAnyInt_Check() and _PyAnyInt_CheckExact() in 2.7

2018-07-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR adds two private helpers #define _PyAnyInt_Check(op) (PyInt_Check(op) || PyLong_Check(op)) #define _PyAnyInt_CheckExact(op) (PyInt_CheckExact(op) || PyLong_CheckExact(op)) and make it used it in the code. This may help to avoid bugs like

[issue34225] distutils._msvccompiler should trim INCLUDE/LIB directories

2018-07-26 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +8001 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34201] Make ndarray.readonly a bool

2018-07-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34225] distutils._msvccompiler should trim INCLUDE/LIB directories

2018-07-26 Thread Steve Dower
Steve Dower added the comment: New changeset 5473f061f518aef5367a535999a407305fb12aff by Steve Dower in branch 'master': bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. (GH-8464) https://github.com/python/cpython/commit/5473f061f518aef5367a535999a407305fb12aff

[issue34233] subprocess.check_output goes to infinte loop

2018-07-26 Thread sanjay patel
New submission from sanjay patel : Below snipped goes to infinite loop when running through windows command prompt but works in python IDLE import subprocess subprocess.check_output('cmd.exe dir', stderr=subprocess.STDOUT) save as:test.py in windows cmd use command: python test.py then it

[issue34201] Make ndarray.readonly a bool

2018-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e0d67f17ccb4645ff88c9a018679b8a5b4fe0a7e by Serhiy Storchaka in branch 'master': bpo-34201: Make ndarray.readonly a bool and use stricter tests in test_buffer. (GH-8414)

[issue20260] Argument Clinic: add unsigned integers converters

2018-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7cb7bcff20a386bba59cbc51e2419542de358bd2 by Serhiy Storchaka in branch 'master': bpo-20260: Implement non-bitwise unsigned int converters for Argument Clinic. (GH-8434)

[issue34197] Make csv.Dialect attributes skipinitialspace, doublequote and strict booleans

2018-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 323748ad7446c76972c80dbbf510534dc5c22ae8 by Serhiy Storchaka in branch 'master': bpo-34197: Make _csv.Dialect attributes booleans. (GH-8440) https://github.com/python/cpython/commit/323748ad7446c76972c80dbbf510534dc5c22ae8 --

[issue34232] Python3.7.0 exe installers (32 and 64 bit) failing on Windows7

2018-07-26 Thread Wolfgang Maier
Change by Wolfgang Maier : Added file: https://bugs.python.org/file47712/Python 3.7.0 (64-bit)_20180726120531.log ___ Python tracker ___

[issue34232] Python3.7.0 exe installers (32 and 64 bit) failing on Windows7

2018-07-26 Thread Wolfgang Maier
New submission from Wolfgang Maier : System: Windows7 Enterprise SP1 64-bit Downloaded the executable installer from python.org (tried both 32- and 64-bit -> same error) Selected the default user-install and got an almost immediate Error message: The TARGETDIR variable must be provided when

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-07-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8000 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34231] PYTHONBREAKPOINT is not documented with python --help

2018-07-26 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : there is no documentation about PYTHONBREAKPOINT when we execute python --help. -- ___ Python tracker ___

[issue34231] PYTHONBREAKPOINT is not documented with python --help

2018-07-26 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +7999 stage: -> patch review ___ Python tracker ___ ___

[issue34231] PYTHONBREAKPOINT is not documented with python --help

2018-07-26 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- assignee: matrixise nosy: matrixise priority: normal severity: normal status: open title: PYTHONBREAKPOINT is not documented with python --help versions: Python 3.7, Python 3.8 ___ Python tracker

[issue34228] Allow PYTHONTRACEMALLOC=0 and -X tracemalloc=0 to disable explicitly tracemalloc

2018-07-26 Thread STINNER Victor
STINNER Victor added the comment: I don't think that it's worth it to backport this change. It's really a corner case and it's almsot a bugfix. I mostly need it for testing _PyCoreConfig and Python initialisation. -- resolution: -> fixed stage: patch review -> resolved status: open

[issue28536] Show the qualified name when a call fails

2018-07-26 Thread Berker Peksag
Change by Berker Peksag : -- stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___ ___

[issue29036] logging module: Add `full_module_name` to LogRecord details

2018-07-26 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34229] Possible access to unintended variable in "cpython/Objects/sliceobject.c" line 116

2018-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You need to expose it in the _testcapi module as Python function. -- ___ Python tracker ___

[issue34229] Possible access to unintended variable in "cpython/Objects/sliceobject.c" line 116

2018-07-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is there a way to test this or trigger this code using Python syntax? `slice(start, stop, step).indices()` uses slice_indices in Objects/sliceobject.c . I checked the function docs https://docs.python.org/2.7/c-api/slice.html#c.PySlice_GetIndices

[issue34210] Small improvements in heapq (refactoring)

2018-07-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Additional notes: * reversed() is preferred over the range(n-1, -1, -1) style both for clarity and speed. If reversed is slower, then it would be mean that something is sly wrong with range.__reversed__ which should be able to iterate backwards as

[issue34221] Any plans to combine collections.OrderedDict with dict

2018-07-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: See the related discussion on python-dev and other tracker entries where this was discussed previously. -- nosy: +rhettinger resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python

[issue34227] Weighted random.sample() (weighted sampling without replacement)

2018-07-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank for the suggestion and patch, but I will decline. To me, the reseviour style algorithm doesn't fit in well (with the slow sorting step and the frequent calls to the random in the key function). For large population sizes (which sample() was

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 6. hypot(x) == abs(x) 7. hypot(x, y) should return the same result as in previous Python version, e.g. should call C lib implementation. 8. hypot(x, y, 0, ...) == hypot(x, y) -- ___ Python tracker

[issue23794] http package should support HTTP/2

2018-07-26 Thread XiangSong Zeng
Change by XiangSong Zeng : -- nosy: +zengxs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think we should guarantee some properties: 1. The result of hypot(x, y, z, ...) shouldn't depend on the order of arguments. 2. It should be monotonic for all arguments: hypot(..., x, ...) <= hypot(..., y, ...) for abs(x) < abs(y). 3. hypot(..., inf,

  1   2   >