[issue37224] test__xxsubinterpreters failed on AMD64 Windows8.1 Refleaks 3.8

2019-09-15 Thread Kyle Stanley
Kyle Stanley added the comment: Clarification: In the above comment when I was referring to the commit made by Eric Snow, I meant to link to https://github.com/python/cpython/commit/7f8bfc9b9a8381ddb768421b5dd5cbd970266190. -- ___ Python tracker

[issue37224] test__xxsubinterpreters failed on AMD64 Windows8.1 Refleaks 3.8

2019-09-15 Thread Kyle Stanley
Kyle Stanley added the comment: Note that I'm not particularly experienced with the c-api, I'm just trying to take a stab at understanding why the buildbot failure is occuring. -- ___ Python tracker

[issue37224] test__xxsubinterpreters failed on AMD64 Windows8.1 Refleaks 3.8

2019-09-15 Thread Kyle Stanley
Kyle Stanley added the comment: Upon digging through Modules/_xxsubinterpretersmodule.c, I noticed that on line 2059, `PyInterpreterState_Delete(interp);` is commented out

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-15 Thread Ned Deily
Ned Deily added the comment: macOS 3.9, 3.8, 3.7 installers updated to 1.1.1d, macOS 2.7 installer updated to 1.0.2t. Leaving open for Windows installers updates. -- nosy: +benjamin.peterson versions: +Python 2.7 ___ Python tracker

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-15 Thread Ned Deily
Ned Deily added the comment: New changeset 8dd358caf0d3f300ee64799812a020fe0de53637 by Ned Deily in branch '2.7': bpo-38117: Updated OpenSSL to 1.0.2t in macOS installer for 2.7.x. (GH-16171) https://github.com/python/cpython/commit/8dd358caf0d3f300ee64799812a020fe0de53637 --

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-15 Thread miss-islington
miss-islington added the comment: New changeset 346b7c928b82d9da8f6654391e9cfe55625dcfac by Miss Islington (bot) in branch '3.8': bpo-38117: Updated OpenSSL to 1.1.1d in macOS installer. (GH-16170) https://github.com/python/cpython/commit/346b7c928b82d9da8f6654391e9cfe55625dcfac --

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-15 Thread miss-islington
miss-islington added the comment: New changeset 26c44b5144a51f452dd0693b0278ec69d6a954a1 by Miss Islington (bot) in branch '3.7': bpo-38117: Updated OpenSSL to 1.1.1d in macOS installer. (GH-16170) https://github.com/python/cpython/commit/26c44b5144a51f452dd0693b0278ec69d6a954a1 --

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +15783 pull_request: https://github.com/python/cpython/pull/16173 ___ Python tracker ___

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-15 Thread Ned Deily
Ned Deily added the comment: New changeset 24d1597e430498ebe2d3d18fba2cacb3957b494d by Ned Deily in branch 'master': bpo-38117: Updated OpenSSL to 1.1.1d in macOS installer. (GH-16170) https://github.com/python/cpython/commit/24d1597e430498ebe2d3d18fba2cacb3957b494d --

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +15782 pull_request: https://github.com/python/cpython/pull/16172 ___ Python tracker ___

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-15 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +15781 pull_request: https://github.com/python/cpython/pull/16171 ___ Python tracker ___

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2019-09-15 Thread Eryk Sun
Eryk Sun added the comment: Here are a couple more: * WSA_FLAG_NO_HANDLE_INHERIT is supported. Code related to `support_wsa_no_inherit` in Modules/socketmodule.c can be removed. * AddDllDirectory and RemoveDllDirectory are supported. os__add_dll_directory_impl and

kmeans clustering

2019-09-15 Thread Sharan Basappa
Can someone please help me to clarify the different between fit and predict functions of kmeans? -- https://mail.python.org/mailman/listinfo/python-list

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-15 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +15780 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16170 ___ Python tracker ___

[issue20066] PyStructSequence_NewType() not setting proper heap allocation flag?

2019-09-15 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: As commented in issue15729, the Py_TPFLAGS_HEAPTYPE flag is now set in PyType_FromSpecWithBases() which is called by PyStructSequence_NewType(). I think this is no longer an issue. -- nosy: +nanjekyejoannah ___

[issue15729] PyStructSequence_NewType enhancement

2019-09-15 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: All enhancements specified in this issue have since been done. PyStructSequence_NewType() calls PyType_FromSpecWithBases() which sets the needed flags and even the qualname: PyObject * PyType_FromSpecWithBases(PyType_Spec *spec, PyObject *bases) {

Re: itertools product(infinite iterator) hangs

2019-09-15 Thread Oscar Benjamin
On Sat, 14 Sep 2019 at 07:22, ast wrote: > > Le 14/09/2019 à 04:26, Oscar Benjamin a écrit : > > > > What am I missing? > > here is a pseudo code for product: > > def product(*args, repeat=1): > # product('ABCD', 'xy') --> Ax Ay Bx By Cx Cy Dx Dy > # product(range(2), repeat=3) --> 000

Re: itertools product(infinite iterator) hangs

2019-09-15 Thread Oscar Benjamin
On Sat, 14 Sep 2019 at 03:26, Oscar Benjamin wrote: > > I've been staring at this for a little while: > > from itertools import product > > class Naturals: > def __iter__(self): > i = 1 > while True: > yield i > i += 1 > > N = Naturals() >

[issue31956] Add start and stop parameters to the array.index()

2019-09-15 Thread Anders Lorentsen
Anders Lorentsen added the comment: I have actually managed to lost my local branch of this fix, though I assume I can just start another one, manually copy over the changes, somehow mark this current PR as cancelled, aborted, or in my option the best: "replaced/superseeded by: [new PR]".

``pipenv + pycharm'' refrash/rescan packages index without restart pycharm.

2019-09-15 Thread Hongyi Zhao
Hi, I use pycharm with pipenv for env management. When I do some changes on the packages, say, add/remove some of them. How to let pycharm efrash/ rescan packages index without restart it? -- https://mail.python.org/mailman/listinfo/python-list

Re: What about idea of making a "Pythonic Lisp"...i.e. a Lisp that more closely resembles the syntax of Python?

2019-09-15 Thread Morten W. Petersen
goto main; Blogging at http://blogologue.com Tweeting at https://twitter.com/blogologue On Instagram https://instagram.com/morphexx søn. 15. sep. 2019, 03.07 skrev Christian Seberino : > Python is my goto main language. However, sometimes I'm tempted to > play with a Lisp like language just

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-15 Thread Diego Barriga
Change by Diego Barriga : -- keywords: +patch pull_requests: +15779 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16169 ___ Python tracker

[issue38180] Test pyexpat fails on Fedora 30

2019-09-15 Thread Diego Barriga
Diego Barriga added the comment: $ cat /etc/os-release NAME=Fedora VERSION="30 (Workstation Edition)" ID=fedora VERSION_ID=30 VERSION_CODENAME="" PLATFORM_ID="platform:f30" PRETTY_NAME="Fedora 30 (Workstation Edition)" ANSI_COLOR="0;34" LOGO=fedora-logo-icon

[issue38180] Test pyexpat fails on Fedora 30

2019-09-15 Thread Diego Barriga
Change by Diego Barriga : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38180] Test pyexpat fails on Fedora 30

2019-09-15 Thread Diego Barriga
New submission from Diego Barriga : $ ./python -m test -j8 test_pyexpat Run tests in parallel using 8 child processes 0:00:00 load avg: 0.66 [1/1/1] test_pyexpat failed test test_pyexpat failed -- Traceback (most recent call last): File

[issue38179] Test subprocess fails on Fedora 30: test_group and test_extra_groups

2019-09-15 Thread Diego Barriga
Diego Barriga added the comment: $ cat /etc/os-release NAME=Fedora VERSION="30 (Workstation Edition)" ID=fedora VERSION_ID=30 VERSION_CODENAME="" PLATFORM_ID="platform:f30" PRETTY_NAME="Fedora 30 (Workstation Edition)" ANSI_COLOR="0;34" LOGO=fedora-logo-icon

[issue38179] Test subprocess fails on Fedora 30: test_group and test_extra_groups

2019-09-15 Thread Diego Barriga
New submission from Diego Barriga : == ERROR: test_extra_groups (test.test_subprocess.POSIXProcessTestCase) -- Traceback (most recent call last): File

[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-15 Thread Ned Deily
Ned Deily added the comment: The Windows and macOS installers also need to by updated to the new versions. -- components: +Windows, macOS nosy: +lukasz.langa, ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware priority: normal -> release blocker resolution:

Re: What about idea of making a "Pythonic Lisp"...i.e. a Lisp that more closely resembles the syntax of Python?

2019-09-15 Thread Michael Torrie
On 9/15/19 9:10 AM, Christian Seberino wrote: > Say if I may ask a tangential question...I've always wondered whether it > would be not too hard to compile Python source code to a Lisp like source > code? How hard would it be to say compile Python source to Clojure source? I'm sure a compiler

[issue38100] Spelling error in unittest.mock code

2019-09-15 Thread Marco Antonio Ramirez Valdes
Change by Marco Antonio Ramirez Valdes : -- pull_requests: +15778 pull_request: https://github.com/python/cpython/pull/16168 ___ Python tracker ___

[issue38080] 2to3 urllib fixer: missing fix for urllib.getproxies

2019-09-15 Thread Roberto Meza
Change by Roberto Meza : -- keywords: +patch nosy: +robertpro nosy_count: 1.0 -> 2.0 pull_requests: +15776 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16167 ___ Python tracker

[issue37828] Fix default mock_name in unittest.mock.assert_called error message

2019-09-15 Thread Abraham
Change by Abraham : -- keywords: +patch pull_requests: +15775 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16166 ___ Python tracker ___

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-15 Thread Diego Barriga
Diego Barriga added the comment: I'm interest on this for my first contribution :D -- ___ Python tracker ___ ___ Python-bugs-list

[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-09-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: I had thought that use a locales were deemed an anti-pattern (not easy-to-use, not thread-safe, etc). -- nosy: +rhettinger ___ Python tracker

[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-09-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38100] Spelling error in unittest.mock code

2019-09-15 Thread Maritza Esparza
Change by Maritza Esparza : -- pull_requests: +15774 pull_request: https://github.com/python/cpython/pull/16165 ___ Python tracker ___

[issue38100] Spelling error in unittest.mock code

2019-09-15 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +15773 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16164 ___ Python tracker ___

Re: TechRepublicDEVELOPERCXO JPMorgan's Athena has 35 million lines of Python code, and won't be updated to Python 3 in time

2019-09-15 Thread Peter J. Holzer
On 2019-09-14 08:10:50 -0500, Spencer Graves wrote: >   As I'm thinking about it, the companies that provide cybersecurity > insurance could be the best points of leverage for this, because they think > about these kinds of things all the time. Insurance companies for decades I wouldn't set

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-09-15 Thread Diego Barriga
Change by Diego Barriga : -- nosy: +umoqnier ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: TechRepublicDEVELOPERCXO JPMorgan's Athena has 35 million lines of Python code, and won't be updated to Python 3 in time

2019-09-15 Thread Spencer Graves
On 2019-09-14 07:30, Gene Heskett wrote: On Saturday 14 September 2019 04:37:14 Larry Martell wrote: On Fri, Sep 13, 2019 at 1:37 PM Skip Montanaro wrote: https://www.techrepublic.com/google-amp/article/jpmorgans-athena-has

[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: Raymond, sorry if I was so quick in applying. The patch is very trivial and obvious. I am pretty sure that Yuri and Victor approve it. The PR doesn't fix a mistake, the code is still valid. But we all changed our mind what is the loop role, should it be

[issue38019] asyncio subprocess AttributeError: 'NoneType' object has no attribute '_add_reader' / '_remove_reader'

2019-09-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: This fix cannot land on 3.6, the version is in security-fix only mode. -- versions: -Python 3.6 ___ Python tracker ___

[issue38019] asyncio subprocess AttributeError: 'NoneType' object has no attribute '_add_reader' / '_remove_reader'

2019-09-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks. The correct fix is 'do nothing if stream._transport is None'. We have only two weeks before 3.8rc, thus I'll prepare a fix myself for the sake of fast merging. -- assignee: -> asvetlov ___ Python tracker

[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-15 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: Raymond, no problem; I guess I assumed that the authors are following the bug tracker (or have possibly moved on and are inactive). I also had reason to believe the change to be non-controversial, since it is in line with Yury's own recommendations, e.g. from

[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks Hrvoje! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: I have a PR for the fix. Yuri preliminary agrees with the patch but he requested more time for careful review. I've added 'release blocker' priority to don't miss this bugfix for the next release. -- nosy: +lukasz.langa, ned.deily priority: normal

[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-15 Thread miss-islington
miss-islington added the comment: New changeset 1cd6e926d30552056457820a682c1c361ee0f3ff by Miss Islington (bot) in branch '3.8': bpo-38178: Don't explicitly pass "loop" to EchoClientProtocol. (GH-16159) https://github.com/python/cpython/commit/1cd6e926d30552056457820a682c1c361ee0f3ff

[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-15 Thread miss-islington
miss-islington added the comment: New changeset 701c4886bb0e19ad5ed8c8f556f65ab8597841e7 by Miss Islington (bot) in branch '3.7': bpo-38178: Don't explicitly pass "loop" to EchoClientProtocol. (GH-16159) https://github.com/python/cpython/commit/701c4886bb0e19ad5ed8c8f556f65ab8597841e7

[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Hrvoje, thanks for fixing this. Next time, please involve the people who originally wrote the code. They are both still active. If they made mistakes, it helps them to know about it. If they had a specific intent for the code example, it allows them

[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +15772 pull_request: https://github.com/python/cpython/pull/16162 ___ Python tracker ___

[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +15771 pull_request: https://github.com/python/cpython/pull/16161 ___ Python tracker ___

[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-15 Thread miss-islington
miss-islington added the comment: New changeset c717c73fa33a2f3591442059eaf6e7a673e2c725 by Miss Islington (bot) (Hrvoje Nikšić) in branch 'master': bpo-38178: Don't explicitly pass "loop" to EchoClientProtocol. (GH-16159)

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-09-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d6fdfc82dd307161caae938b7a6c85215bc1 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-37798: Prevent undefined behavior in direct calls to the C helper function. (GH-16149) (GH-16160)

[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: The was added originally by Victor and Yuri in c7edff3 and 7c7605ff113 -- nosy: +rhettinger, vstinner ___ Python tracker ___

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +15770 pull_request: https://github.com/python/cpython/pull/16160 ___ Python tracker ___

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-09-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 6e27a0d77520bf2c4412e367496212510f81b983 by Raymond Hettinger in branch 'master': bpo-37798: Prevent undefined behavior in direct calls to the C helper function. (#16149)

Re: # type: a

2019-09-15 Thread MRAB
On 2019-09-15 15:45, Hongyi Zhao wrote: Hi, In pycharm, when I commented out the following line: # type: a The pycharm still told me that: Unresolved reference 'a' Till I commented like the following, the warning will disappear: # type: # a Why? PyCharm has comment-based type hints,

Re: What about idea of making a "Pythonic Lisp"...i.e. a Lisp that more closely resembles the syntax of Python?

2019-09-15 Thread Luciano Ramalho
Take a look at this, Christian: https://github.com/lihaoyi/macropy Best, Luciano On Sun, Sep 15, 2019 at 12:17 PM Christian Seberino wrote: > > > > I had to read this twice. It confused the hell out of me. > > Lol. Certainly didn't mean to be confusing! Hy bring Lisp to Python. I was >

Re: # type: a

2019-09-15 Thread Chris Warrick
On Sun, 15 Sep 2019 at 16:53, Hongyi Zhao wrote: > > Hi, > > In pycharm, when I commented out the following line: > > # type: a > > The pycharm still told me that: > > Unresolved reference 'a' PyCharm interprets PEP 484 type annotations and type comments, as well as PEP 526 variable annotations.

Re: # type: a

2019-09-15 Thread אורי
Try to wait a few minutes, or close and re-open PyCharm. If the problem persists, send a screenshot. אורי u...@speedy.net On Sun, Sep 15, 2019 at 5:51 PM Hongyi Zhao wrote: > Hi, > > In pycharm, when I commented out the following line: > > # type: a > > The pycharm still told me that: > >

[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-15 Thread Hrvoje Nikšić
Change by Hrvoje Nikšić : -- keywords: +patch pull_requests: +15769 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16159 ___ Python tracker ___

Re: What about idea of making a "Pythonic Lisp"...i.e. a Lisp that more closely resembles the syntax of Python?

2019-09-15 Thread Christian Seberino
> Python vs Clojure's syntax difference is superficial compared to their > other differences, like the Clojure's immutable data structures and > having to deal with the JVM. Well there's ClojureScript to run this hypothetical Pythonic Lisp in the browser. > I also don't think it's really

[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-15 Thread Hrvoje Nikšić
New submission from Hrvoje Nikšić : The EchoClientProtocol example receives a "loop" argument, which is not used at all in the TCP example, and is used to create a future in the UDP example. In modern asyncio code the explicit loop arguments are no longer used since the loop can always be

Re: What about idea of making a "Pythonic Lisp"...i.e. a Lisp that more closely resembles the syntax of Python?

2019-09-15 Thread Christian Seberino
> I had to read this twice. It confused the hell out of me. Lol. Certainly didn't mean to be confusing! Hy bring Lisp to Python. I was more interested in making a Lisp that had trivial similarities to Python like using some of the same keywords. A related interested of mine is converting

Re: What about idea of making a "Pythonic Lisp"...i.e. a Lisp that more closely resembles the syntax of Python?

2019-09-15 Thread Michael Torrie
On 9/14/19 8:19 PM, Louis Valence wrote: > I had to read this twice. It confused the hell out of me. Anyhow, I > suppose you should take a look at > > https://github.com/hylang/hy Yup that's probably exactly the opposite of what the OP was asking about. Neat, though. --

[issue27071] unittest.TestCase.assertCountEqual is a very misleading name

2019-09-15 Thread Thomas Grainger
Thomas Grainger added the comment: I think assertPermutation (without the "is") would be the best name -- ___ Python tracker ___

[issue38176] test_threading leaked [1, 1, 1] references: test_threads_join

2019-09-15 Thread Dino Viehland
Change by Dino Viehland : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38176] test_threading leaked [1, 1, 1] references: test_threads_join

2019-09-15 Thread Dino Viehland
Change by Dino Viehland : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

# type: a

2019-09-15 Thread Hongyi Zhao
Hi, In pycharm, when I commented out the following line: # type: a The pycharm still told me that: Unresolved reference 'a' Till I commented like the following, the warning will disappear: # type: # a Why? -- https://mail.python.org/mailman/listinfo/python-list

[issue38176] test_threading leaked [1, 1, 1] references: test_threads_join

2019-09-15 Thread Dino Viehland
Change by Dino Viehland : -- keywords: +patch pull_requests: +15768 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16158 ___ Python tracker ___

[issue38176] test_threading leaked [1, 1, 1] references: test_threads_join

2019-09-15 Thread Dino Viehland
Change by Dino Viehland : -- assignee: -> dino.viehland nosy: +dino.viehland ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32592] Drop support of Windows Vista and 7 in Python 3.9

2019-09-15 Thread Eryk Sun
Eryk Sun added the comment: 3.9 can drop support for console pseudohandles in set_inheritable in Python/fileutils.c and Popen._filter_handle_list in Lib/subprocess.py. Also, _Py_write_impl in Python/fileutils.c can remove the 32767 byte limit for console files (and other character devices

[issue27218] improve tracing performance with f_trace set to Py_None

2019-09-15 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- keywords: +patch pull_requests: +15767 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16157 ___ Python tracker

Re: what's the differences: None and null?

2019-09-15 Thread ast
Le 14/09/2019 à 03:40, Random832 a écrit : On Fri, Sep 13, 2019, at 21:22, Hongyi Zhao wrote: what's the differences: None and null? null isn't really a concept that exists in Python... while None fills many of the same roles that null does in some other languages, it is a proper object,

[issue37635] Using constant for whence arg in seek()

2019-09-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What do you think of the followup PR to make use of the SEEK_* constants > listed in the documentation? I think it would be useful to at least mention > them in the tutorial, or even make use of them directly in the examples. Yes, I think it would be good

Re: Bool variable with json.dumps

2019-09-15 Thread Hongyi Zhao
On Sun, 15 Sep 2019 19:36:20 +1000, Cameron Simpson wrote: > Because that's how the true value is spelt in JavaScript. You _are_ > aware that JSON is "JavaScript Object Notation", are you not? So > json.dumps translates Python values into JavaScript syntax. > > This is likely to be the same

[issue36274] http.client cannot send non-ASCII request lines

2019-09-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38177] test_tools: test.test_tools.test_unparse.UnparseTestCase: test_tools leaked [36, 36, 36] references

2019-09-15 Thread STINNER Victor
STINNER Victor added the comment: Oh, test_unparse.UnparseTestCase.test_nonlocal has been fixed. Maybe by: commit 0247e80f3c529900689425676342cb70ea31a13d Author: Eddie Elizondo Date: Sat Sep 14 09:38:17 2019 -0400 Fix leaks in Python-ast.c (#16127) But there are more leaks.

[issue38177] test_tools: test.test_tools.test_unparse.UnparseTestCase: test_tools leaked [36, 36, 36] references

2019-09-15 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/189/builds/153 $ ./python -m test -R 3:3 test_tools -m test.test_tools.test_unparse.UnparseTestCase.test_nonlocal Run tests sequentially 0:00:00 load avg: 1.48 [1/1] test_tools beginning 6 repetitions 123456

[issue38075] Make random module PEP-384 compatible

2019-09-15 Thread STINNER Victor
STINNER Victor added the comment: > bpo-38075: Port _randommodule.c to PEP-384 (GH-15798) It seems like this change introduced a reference leak: bpo-38176. -- nosy: +vstinner ___ Python tracker

[issue38176] test_threading leaked [1, 1, 1] references: test_threads_join

2019-09-15 Thread STINNER Victor
STINNER Victor added the comment: The regression seems to be introduced by: commit 04f0bbfbedf8d2bb69b012f853de6648b1a9f27f (HEAD, refs/bisect/bad) Author: Dino Viehland Date: Fri Sep 13 11:12:27 2019 +0100 bpo-38075: Port _randommodule.c to PEP-384 (GH-15798) - Migrate

[issue38176] test_threading leaked [1, 1, 1] references: test_threads_join

2019-09-15 Thread STINNER Victor
New submission from STINNER Victor : vstinner@apu$ ./python -m test -R 3:3 test_threading -m test.test_threading.SubinterpThreadingTests.test_threads_join Run tests sequentially 0:00:00 load avg: 1.11 [1/1] test_threading beginning 6 repetitions 123456 .. test_threading leaked [1, 1, 1]

Re: Bool variable with json.dumps

2019-09-15 Thread Cameron Simpson
On 15Sep2019 09:15, Hongyi Zhao wrote: var = True when json.dumps on it, it will become the form `true' Why? Because that's how the true value is spelt in JavaScript. You _are_ aware that JSON is "JavaScript Object Notation", are you not? So json.dumps translates Python values into

Bool variable with json.dumps

2019-09-15 Thread Hongyi Zhao
Hi, var = True when json.dumps on it, it will become the form `true' Why? -- https://mail.python.org/mailman/listinfo/python-list

[issue26360] Deadlock in thread.join on Python 2.7/macOS

2019-09-15 Thread Kirill Smelkov
Kirill Smelkov added the comment: > > Maybe issue38106 related. > > That looks plausible, but unfortunately I'm still able to reproduce the hang > with your PR (commit 9b135c02aa1edab4c99c915c43cd62d988f1f9c1, macOS 10.14.6). Thanks for feedback. Then hereby bug is probably deadlock of

[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-15 Thread Steve Dower
Steve Dower added the comment: I added another PR with the additional error codes listed by Eryk Sun. Theoretically we should be able to test most of them, but I haven't written those tests, and I'm not sure they'd prove enough to be worth the extra code. ntpath.realpath is a "best effort"

[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

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

[issue38166] ast identifies incorrect column for compound attribute lookups

2019-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AST for expression a.b.c is Attribute( value=Attribute( value=Name( id='a', ctx=Load(), lineno=1, col_offset=0, end_lineno=1,

[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-09-15 Thread Karl Ove Hufthammer
Change by Karl Ove Hufthammer : -- nosy: +huftis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38166] ast identifies incorrect column for compound attribute lookups

2019-09-15 Thread Andrew Briand
Andrew Briand added the comment: It looks like the test suite (in particular test_ast) specifically checks for the behavior where the col_offset of c in a.b.c.d is 0. This seems strange to me though, does anyone know if this is intended? If not, I can patch it. -- nosy:

[issue38175] Memory leak in comparison of sqlite.Row objects

2019-09-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +15765 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16155 ___ Python tracker

[issue38175] Memory leak in comparison of sqlite.Row objects

2019-09-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There is a memory leak in comparison of sqlite.Row objects when row descriptors are different. There were not tests for this case. Also, the code compares the result of PyObject_RichCompare() with Py_True and Py_False. It is better to avoid such code,

[issue38155] Add __all__ to the datetime module

2019-09-15 Thread Dong-hee Na
Dong-hee Na added the comment: @ta1hia My idea is that both tests should be added. @p-ganssle's test aims to check the attr is allowed or not. And your test aims to check attribute equalities of pure python module and c module. -- ___ Python

Re: what's the differences: None and null?

2019-09-15 Thread Andrea D'Amore
On Sat, 14 Sep 2019 at 03:40, Random832 wrote: > On Fri, Sep 13, 2019, at 21:22, Hongyi Zhao wrote: > > what's the differences: None and null? > null isn't really a concept that exists in Python... I'd say the opposite, according to [1] "None" is just the name of the null object. [1]:

[issue21023] PyTypeObject tp_name is char* instead of const char*

2019-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It should not be an issue in 2014 as it was fixed in 2005. See af68c874a6803b4e90b616077a602c0593719a1d. -- nosy: +serhiy.storchaka resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-15 Thread Stefan Behnel
Change by Stefan Behnel : -- keywords: -patch resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-15 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset b65be6cd3d9b6102227d27f4f35385f999a7dd7d by Stefan Behnel (Miss Islington (bot)) in branch '3.8': bpo-38158: Removing nonexistant member "doc" from PyType_Spec documentation (GH-16142) (GH-16154)

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +15764 pull_request: https://github.com/python/cpython/pull/16154 ___ Python tracker ___

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +15763 pull_request: https://github.com/python/cpython/pull/16153 ___ Python tracker ___