Re: The Mailing List Digest Project

2019-03-27 Thread Abdur-Rahmaan Janhangeer
continuing a better effort here: https://github.com/PythonCHB/PythonListsSummaries moving to an impersonal repo later! Garanti sans virus. www.avast.com

[issue36459] A possible double PyMem_FREE() due to tokenizer.c's tok_nextc()

2019-03-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: The Mailing List Digest Project

2019-03-27 Thread Abdur-Rahmaan Janhangeer
hum maybe beacuse i speak french some settings got configured but i don't see how. btw we are moving to a better repo with sphinx Garanti sans virus. www.avast.com

[issue36459] A possible double PyMem_FREE() due to tokenizer.c's tok_nextc()

2019-03-27 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +12541 stage: -> patch review ___ Python tracker ___ ___

[issue36459] A possible double PyMem_FREE() due to tokenizer.c's tok_nextc()

2019-03-27 Thread Zackery Spytz
New submission from Zackery Spytz : Commit cb90c89de14aab636739b3e810cf949e47b54a0c added a PyMem_FREE(tok->buf) call in tok_nextc() if a PyMem_REALLOC() call fails. This will cause a double free when PyTokenizer_Free() is called on the tokenizer state. -- components: Interpreter

[issue36457] functools.singledispatchmethod interacts poorly with subclasses

2019-03-27 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36458] Compile errors --without-threads

2019-03-27 Thread patrik
patrik added the comment: Not a problem. I wanted to record the issue just in case someone else encounters it, and also because there seems to have been a history of issues with the no-threads option. Happy to hear its sorted in 3.7. -- ___

[issue6422] timeit called from within Python should allow autoranging

2019-03-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Were you working on the additional functionality that you mentioned in > msg272704 or would that be open for someone else to do? Thanks! Please consider it open. I don't expect it to be difficult, it's just finding the Round Tuits. Perhaps an easy first

[issue36458] Compile errors --without-threads

2019-03-27 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. Unfortunately, Python 3.6.8 was the last bugfix release of 3.6 so we now only accept and fix security-related issues for it. I did a quick check and this does not appear to be a problem in 3.7.x but feel free to re-open the issue if it

[issue36458] Compile errors --without-threads

2019-03-27 Thread patrik
New submission from patrik : Compiling python 3.6.8 configured with --without-threads (no other options) fails, with undefined references to PyGILState_GetThisThreadState in pylifecycle.c, and PyGILState_Ensure and PyGILState_Release in object.c. I used Louis' fix from issue #24784 in

[issue36457] functools.singledispatchmethod interacts poorly with subclasses

2019-03-27 Thread Tim Mitchell
New submission from Tim Mitchell : The new functools.singledispatchmethod (issue32380) class interacts poorly with subclasses. There is no way for a sub-class to override or extend the dispatch registry. E.g. class BaseVistor: @singledispatchmethod def visit(self, obj): raise

[issue36455] collections.abc.Sequence doesn't support reflection/introspection

2019-03-27 Thread James Edwards
James Edwards added the comment: Edit conflict -- indeed -- self closing. --- I should point out that this could be fixed with something like the following: @classmethod def __subclasshook__(cls, C): if cls is Sequence: return _check_methods(C, "__reversed__",

[issue36456] task.cancel unbound recursion

2019-03-27 Thread Dima Tisnek
New submission from Dima Tisnek : Cancelling a deadlocked group of tasks results in MaximumRecursionError Inspired by https://stackoverflow.com/questions/55341189/handling-asyncio-deadlocks Given the following test-asyncio.py: ``` import asyncio async def test(): async def f():

[issue36455] collections.abc.Sequence doesn't support reflection/introspection

2019-03-27 Thread Josh Rosenberg
Change by Josh Rosenberg : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36455] collections.abc.Sequence doesn't support reflection/introspection

2019-03-27 Thread Josh Rosenberg
Josh Rosenberg added the comment: This is an exact duplicate of #35190 - "collections.abc.Sequence cannot be used to test whether a class provides a particular interface (doc issue)" -- nosy: +josh.r resolution: -> duplicate superseder: -> collections.abc.Sequence cannot be used to

[issue36455] collections.abc.Sequence doesn't support reflection/introspection

2019-03-27 Thread James Edwards
James Edwards added the comment: This was tagged as 3.7, but the issue still exists AFAICT in the latest github master: https://github.com/python/cpython/blob/master/Lib/_collections_abc.py -- ___ Python tracker

[issue36455] collections.abc.Sequence doesn't support reflection/introspection

2019-03-27 Thread James Edwards
New submission from James Edwards : Consider: from collections.abc import * class DefinitelyNotAList: def __init__(self, backer): self.backer = backer def __getitem__(self, key): return self.backer[key] def __len__(self):

[issue36454] test_time: test_monotonic() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.7

2019-03-27 Thread STINNER Victor
New submission from STINNER Victor : AMD64 FreeBSD 10-STABLE Non-Debug 3.7: https://buildbot.python.org/all/#/builders/170/builds/354 == FAIL: test_monotonic (test.test_time.TimeTestCase)

Re: The Mailing List Digest Project

2019-03-27 Thread Jason Friedman
On Mon, Mar 25, 2019 at 11:03 PM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > As proposed on python-ideas, i setup a repo to turn mail threads into > articles. > > i included a script to build .md to .html (with syntax highlighting) here > is the index > >

[issue36085] Enable better DLL resolution

2019-03-27 Thread Eryk Sun
Eryk Sun added the comment: > There are no specific "import" tests, because it's such a pain to set > those up (I need to delete files from the build directory during the > test, and if other tests have already used them that will fail, or I > need to copy the Python install elsewhere so it

Re: Getting file extensions [linux fs]

2019-03-27 Thread Paulo da Silva
Às 23:09 de 27/03/19, Cameron Simpson escreveu: > On 27Mar2019 21:49, Paulo da Silva wrote: ... > The filefrag manual entry says it works by calling one of 2 ioctls. You > can do that from Python with the ioctl() function in the standard fcntl > module. I haven't tried to do this, but the results

[issue36451] Docs zh-cn roots error in nav bar

2019-03-27 Thread Ned Deily
Change by Ned Deily : -- assignee: -> mdk components: +Documentation ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-03-27 Thread Ben Finney
Alexey Muranov writes: > It would be however more convenient to be able to write instead just > >f(x) = x*x That's not an anonymous function then, is it? You want to assign a name to that function, and (to be useful in development tools, such as a stack trace) the function needs to know its

[issue36453] get_importer only return the first valid path_hook(importer)

2019-03-27 Thread Windson Yang
New submission from Windson Yang : Is it an expected behavior the get_importer function only returns the first valid path_hook(importer) from sys.path_hooks? def get_importer(path_item): """Retrieve a finder for the given path item The returned finder is cached in

Re: configparser - which one?

2019-03-27 Thread Ben Finney
DL Neil writes: > After striking this problem, I was encouraged to take a look at JSON, > and thence YAML. Once there, as they say, didn't look back! > - multi-dimensional possibilities, cf .ini > - similarity/correspondence with Python data structures > - convenient PSL > - easily adopted by

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-27 Thread miss-islington
miss-islington added the comment: New changeset 1ff04dcadfb57a8a8f61a6ea93292e8ae96dca4a by Miss Islington (bot) in branch '3.7': bpo-36245: Fix more empty environment variable checks (GH-12592) https://github.com/python/cpython/commit/1ff04dcadfb57a8a8f61a6ea93292e8ae96dca4a --

Re: Your IDE's?

2019-03-27 Thread Ben Finney
Mr Zaug writes: > On Monday, March 25, 2019 at 5:38:41 PM UTC-4, John Doe wrote: > > What is your favorite Python IDE? > > "Your IDE's?" is not a question It is a topic for discussion though. Hence, appropriate for the Subject field. Especially because he then wrote a full sentence question in

[issue36448] Message "You will need to rebuild pythoncore to see the changes" should mention "make regen-all"

2019-03-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > For some reason, the Travis CI build on > https://github.com/python/cpython/pull/12582 isn't actually starting. It says > "Waiting for status to be reported" but I pushed 10 hours ago. Travis CI had some problem with linux builds

[issue36452] Detect dict iteration "overflow" when changing keys

2019-03-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +inada.naoki, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36452] Detect dict iteration "overflow" when changing keys

2019-03-27 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +12539 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36452] Detect dict iteration "overflow" when changing keys

2019-03-27 Thread Thomas Perl
New submission from Thomas Perl : Using: Python 3.8 (git commit ID: d5a5a33f12b60129d57f9b423b77d2fcba506834), the following code snippet: = a = {0: 0} for i in a: del a[i] a[i+1] = 0 print(i) = Prints the following output: = 0 1 2 3 4 = The reason for this

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

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

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +12538 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-27 Thread Steve Dower
Steve Dower added the comment: New changeset bb89aa24cf71f9874d1d26f3a2440fefa0b6bbcc by Steve Dower in branch '2.7': bpo-36245: Avoid problems when building in a directory containing spaces. (GH-12241) https://github.com/python/cpython/commit/bb89aa24cf71f9874d1d26f3a2440fefa0b6bbcc

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-27 Thread Steve Dower
Steve Dower added the comment: New changeset b95a79c928fc4a6135d91c0c553cb2a63cf15140 by Steve Dower in branch 'master': bpo-36245: Fix more empty environment variable checks (GH-12592) https://github.com/python/cpython/commit/b95a79c928fc4a6135d91c0c553cb2a63cf15140 --

[issue36085] Enable better DLL resolution

2019-03-27 Thread Steve Dower
Steve Dower added the comment: I implemented the feature Eryk was asking for, as it's also by far the easiest way to test the add_dll_directory function. So now ctypes.CDLL (and subclasses) have a `winmode` argument that gets turned directly into LoadLibraryEx flags (changing `mode` would

[issue36451] Docs zh-cn roots error in nav bar

2019-03-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess it will be fixed with https://bugs.python.org/issue36425 -- nosy: +mdk, xtreak, zhsj ___ Python tracker ___

Re: Getting file extensions [linux fs]

2019-03-27 Thread Cameron Simpson
On 27Mar2019 21:49, Paulo da Silva wrote: I don't know if this is the right group to ask ... sorry if it isn't. Is there a way to get the file extensions of a file in linux, the same way as "filefrag -e " does? The purpose is to see if two files are the same file, namely those copied with the

[issue36451] Docs zh-cn roots error in nav bar

2019-03-27 Thread Solo Lee
New submission from Solo Lee : There is no link to zh-cn docs in python docs page, as in the file upload. Thx! -- files: python docs en page.png messages: 338992 nosy: Solo Lee priority: normal severity: normal status: open title: Docs zh-cn roots error in nav bar type: behavior Added

Re: Your IDE's?

2019-03-27 Thread Cameron Simpson
On 27Mar2019 10:55, Anssi Saari wrote: Ben Finney writes: Emacs and a shell multiplexer (today, that's GNU Screen, but others swear that I should try TMux). I've actually been using tmux for a while. The only reason and the only thing I can think of that it does and screen doesn't is that

[issue31327] bug in dateutil\tz\tz.py

2019-03-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31327] bug in dateutil\tz\tz.py

2019-03-27 Thread Cheryl Sabella
Change by Cheryl Sabella : -- stage: -> needs patch versions: +Python 3.7, Python 3.8 -Python 3.6 ___ Python tracker ___ ___

[issue33953] The DEFAULT_ENTROPY variable used to store the current default random bytes value should be documented for `secrets` module

2019-03-27 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +rhettinger versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31292] `python setup.py check --restructuredtext` fails when a include directive is present.

2019-03-27 Thread miss-islington
miss-islington added the comment: New changeset 9cad523328324bd82fa19b597ead1614a0e61ae2 by Miss Islington (bot) in branch '3.7': bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)

[issue31292] `python setup.py check --restructuredtext` fails when a include directive is present.

2019-03-27 Thread miss-islington
miss-islington added the comment: New changeset 600aca47f085a06579e7af4c6423ea7e907b4bb4 by Miss Islington (bot) in branch '2.7': bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)

Create GUI with Python using Tkinter | Youtube Playlist

2019-03-27 Thread Attreya Bhatt
In this series of 30 videos we learn how to create a Music Player from scratch using Python. Youtube Playlist - https://www.youtube.com/playlist?list=PLhTjy8cBISEp6lNKUO3iwbB1DKAkRwutl -- https://mail.python.org/mailman/listinfo/python-list

Getting file extensions [linux fs]

2019-03-27 Thread Paulo da Silva
Hi! I don't know if this is the right group to ask ... sorry if it isn't. Is there a way to get the file extensions of a file in linux, the same way as "filefrag -e " does? The purpose is to see if two files are the same file, namely those copied with the --reflink option in btrfs. A solution

[issue31292] `python setup.py check --restructuredtext` fails when a include directive is present.

2019-03-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks @flying sheep for the PR and @merwok for the review! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7, Python 3.8 -Python 3.5, Python 3.6 ___ Python

[issue36448] Message "You will need to rebuild pythoncore to see the changes" should mention "make regen-all"

2019-03-27 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > As an aside, I thought we had a merge hook to check this on Travis? For some reason, the Travis CI build on https://github.com/python/cpython/pull/12582 isn't actually starting. It says "Waiting for status to be reported" but I pushed 10 hours ago...

[issue31292] `python setup.py check --restructuredtext` fails when a include directive is present.

2019-03-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset d5a5a33f12b60129d57f9b423b77d2fcba506834 by Cheryl Sabella (Philipp A) in branch 'master': bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)

[issue31292] `python setup.py check --restructuredtext` fails when a include directive is present.

2019-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +12537 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31292] `python setup.py check --restructuredtext` fails when a include directive is present.

2019-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +12536 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-03-27 Thread Terry Reedy
On 3/27/2019 4:21 AM, Alexey Muranov wrote: Whey you need a simple function in Python, there is a choice between a normal function declaration and an assignment of a anonymous function (defined by a lambda-expression) to a variable:    def f(x): return x*x or    f = lambda x: x*x PEP 8

Re: Your IDE's?

2019-03-27 Thread Mr Zaug
On Monday, March 25, 2019 at 5:38:41 PM UTC-4, John Doe wrote: > What is your favorite Python IDE? "Your IDE's?" is not a question, nor is any word in English made plural with an apostrophe s. -- https://mail.python.org/mailman/listinfo/python-list

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-03-27 Thread dtrauma
dtrauma added the comment: Yes, exactly, document deprecation status XOR what it does :) -- ___ Python tracker ___ ___

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-03-27 Thread Emmanuel Arias
Emmanuel Arias added the comment: @dtrauma jus for clarify. You say that if loop is not deprecated document it else document it. Right? -- ___ Python tracker ___

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-03-27 Thread dtrauma
dtrauma added the comment: Just to be clear, I don't know if loop is deprecated on this function like on all the others, I just suspect it to be. But it currently is completely undocumented, which either way is a bug. :) -- ___ Python tracker

[issue36448] Message "You will need to rebuild pythoncore to see the changes" should mention "make regen-all"

2019-03-27 Thread Steve Dower
Steve Dower added the comment: So an important aspect of the "fix" is that this message only appears after the fix has been applied. Anyone running into this locally has already updated those files, and just needs to "git add -u" to include them in their next commit. (Unfortunately, MSBuild

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-03-27 Thread Alexey Muranov
On mer., Mar 27, 2019 at 5:00 PM, python-list-requ...@python.org wrote: On 27/03/19 09:21, Alexey Muranov wrote: Whey you need a simple function in Python, there is a choice between a normal function declaration and an assignment of a anonymous function (defined by a lambda-expression) to

Library for parsing binary structures

2019-03-27 Thread Paul Moore
I'm looking for a library that lets me parse binary data structures. The stdlib struct module is fine for simple structures, but when it gets to more complicated cases, you end up doing a lot of the work by hand (which isn't that hard, and is generally perfectly viable, but I'm feeling lazy ;-))

asyncio KeyboardInterrupt in select

2019-03-27 Thread Thomas Grainger
It seems quite easy to cause asyncio to deadlock: File "/usr/lib/python3.6/asyncio/base_events.py", line 1404, in _run_once event_list = self._selector.select(timeout) File "/usr/lib/python3.6/selectors.py", line 445, in select fd_event_list = self._epoll.poll(timeout, max_ev)

[issue35983] tp_dealloc trashcan shouldn't be called for subclasses

2019-03-27 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: To clarify: the purpose of MyList is specifically to check that no double deallocations occur. For this test to make sense, MyList should not use the trashcan itself. -- ___ Python tracker

[issue35983] tp_dealloc trashcan shouldn't be called for subclasses

2019-03-27 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Yes of course. When not using the trashcan, stuff crashes. I don't get your point... -- ___ Python tracker ___

[issue36443] Disable coerce_c_locale and utf8_mode by default in _PyPreConfig?

2019-03-27 Thread STINNER Victor
STINNER Victor added the comment: Done. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36202] Calling Py_DecodeLocale() before _PyPreConfig_Write() can produce mojibake

2019-03-27 Thread STINNER Victor
STINNER Victor added the comment: My commit disabled C locale coercion and UTF-8 Mode by default when Python is embedded which fix this issue in Python 3.8. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue36202] Calling Py_DecodeLocale() before _PyPreConfig_Write() can produce mojibake

2019-03-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset d929f1838a8fba881ff0148b7fc31f6265703e3d by Victor Stinner in branch 'master': bpo-36443: Disable C locale coercion and UTF-8 Mode by default (GH-12589) https://github.com/python/cpython/commit/d929f1838a8fba881ff0148b7fc31f6265703e3d

[issue36443] Disable coerce_c_locale and utf8_mode by default in _PyPreConfig?

2019-03-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset d929f1838a8fba881ff0148b7fc31f6265703e3d by Victor Stinner in branch 'master': bpo-36443: Disable C locale coercion and UTF-8 Mode by default (GH-12589) https://github.com/python/cpython/commit/d929f1838a8fba881ff0148b7fc31f6265703e3d

[issue35983] tp_dealloc trashcan shouldn't be called for subclasses

2019-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Disabling the trashcan mechanism returns the problem for solving which the trashcan mechanism was introduced. >>> from _testcapi import MyList >>> L = None >>> for i in range(100): ... L = MyList((L,)) ... >>> del L Segmentation fault (core

[issue36273] test_thread leaks a core dump on PPC64 AIX 3.x

2019-03-27 Thread Michael Felt
Michael Felt added the comment: I have looked at this briefly. I would consider it a regression, or a spurious incident as the bot run before (https://buildbot.python.org/all/#/builders/10/builds/2223) and after (https://buildbot.python.org/all/#/builders/10/builds/2225) do not show this

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-03-27 Thread Alexandre Brault
On 2019-03-27 10:42 a.m., Paul Moore wrote: > On Wed, 27 Mar 2019 at 12:27, Alexey Muranov wrote: >> On mer., mars 27, 2019 at 10:10 AM, Paul Moore >> wrote: >>> On Wed, 27 Mar 2019 at 08:25, Alexey Muranov >>> wrote: Whey you need a simple function in Python, there is a choice

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-03-27 Thread Rhodri James
On 27/03/2019 16:15, Bev in TX wrote: On Mar 27, 2019, at 10:41 AM, Antoon Pardon wrote: I don't know. Something like the following is already legal: f(x)[n] = x * n And it does something completly different. Where would I find information on what this does in the documentation?

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-03-27 Thread Bev in TX
> On Mar 27, 2019, at 10:41 AM, Antoon Pardon wrote: > > I don't know. Something like the following is already legal: > > f(x)[n] = x * n > > And it does something completly different. Where would I find information on what this does in the documentation? Bev in TX --

[issue20271] urllib.parse.urlparse() accepts wrong URLs

2019-03-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue36338 for a possible security issue for host of value "benign.com[attacker.com]" (spam[::1] format) where attacker.com is parsed as the host name assuming presence of [ and ] to be a IPV6 address without validation of the value

[issue36338] urlparse of urllib returns wrong hostname

2019-03-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I found this page to be uesful : https://url.spec.whatwg.org/#host-parsing and following the steps it seems that this should raise an error since at the 7th step it denotes that asciiDomain shouldn't contain forbidden host code point including

[issue33356] Windows 10 buildbot: test__xxsubinterpreters.test_already_running() fails randomly

2019-03-27 Thread STINNER Victor
STINNER Victor added the comment: The bug is still here. It looks like a race condition triggered on very slow buildbot like AMD64 FreeBSD 10-STABLE Non-Debug 3.x: https://buildbot.python.org/all/#/builders/167/builds/728 0:18:13 load avg: 4.84 [405/420/1] test__xxsubinterpreters failed --

[issue36441] Cannot create venv with debug binaries installed

2019-03-27 Thread miss-islington
miss-islington added the comment: New changeset 65445f65e6080310d612f73083ba172eb2c6e326 by Miss Islington (bot) in branch '3.7': bpo-36441: Fixes creating a venv when debug binaries are installed. (GH-12566) https://github.com/python/cpython/commit/65445f65e6080310d612f73083ba172eb2c6e326

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-27 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +12535 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-27 Thread Steve Dower
Steve Dower added the comment: I did the 2.7 backport, and also fixed two more instances in that file. Pretty sure my automerges won't work without a core dev review, so if someone wants to hit Approve and/or Merge for me, feel free. -- ___

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-27 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +12534 stage: backport needed -> patch review ___ Python tracker ___ ___ Python-bugs-list

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-03-27 Thread Antoon Pardon
On 27/03/19 09:21, Alexey Muranov wrote: > Whey you need a simple function in Python, there is a choice between a > normal function declaration and an assignment of a anonymous function > (defined by a lambda-expression) to a variable: > >    def f(x): return x*x > > or > >    f = lambda x: x*x >

[issue36450] 3D Array Assignment to all 2D sub-arrays

2019-03-27 Thread Eric Snow
Eric Snow added the comment: In Python, multiplication on a list does not make copies of the values in the original list. So what you have done is equivalent to the following: a = [0, 0] b = [a, a] M = [b, b] Hence: >>> M[0] is M[1] True >>> M[0][0] is M[0][1] True >>>

[issue33261] inspect.isgeneratorfunction fails on hand-created methods

2019-03-27 Thread Petr Viktorin
Petr Viktorin added the comment: I just reviewed, and I plan to merge it if I don't see any pushback from the others. Sorry for the extreme delay. -- nosy: +petr.viktorin ___ Python tracker

[issue32312] Create Py_AtExitRegister C API

2019-03-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This may be especially useful to make sure that extension modules that have threads that were not created by Python calling into Python (registering with the interpreter and picking up the GIL) are stopped before the interpreter starts shutting down

[issue36441] Cannot create venv with debug binaries installed

2019-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +12533 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36441] Cannot create venv with debug binaries installed

2019-03-27 Thread Steve Dower
Steve Dower added the comment: New changeset 4a9a505d6f2474a570422dad89f8d1b344d6cd36 by Steve Dower in branch 'master': bpo-36441: Fixes creating a venv when debug binaries are installed. (#12566) https://github.com/python/cpython/commit/4a9a505d6f2474a570422dad89f8d1b344d6cd36 --

[issue32312] Create Py_AtExitRegister C API

2019-03-27 Thread Eric Snow
Eric Snow added the comment: > Neil Schemenauer added the comment: > Regarding m_traverse, maybe the list of finalizers should be stored somewhere > in the interpreter > state, not in the atexit module state. That would make more sense to me. > atexit could merely be > a way to manage it

[issue31904] Python should support VxWorks RTOS

2019-03-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset f4333d0479d6974d142e858522e95cbf8381f016 by Victor Stinner (hliu0) in branch 'master': bpo-31904: Fix test_utf8_mode on VxWorks (GH-12428) https://github.com/python/cpython/commit/f4333d0479d6974d142e858522e95cbf8381f016 --

[issue36450] 3D Array Assignment to all 2D sub-arrays

2019-03-27 Thread John Bachman
Change by John Bachman : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36444] Python initialization: remove _PyMainInterpreterConfig

2019-03-27 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36450] 3D Array Assignment to all 2D sub-arrays

2019-03-27 Thread John Bachman
New submission from John Bachman : Tested on Python3.6 on Ubuntu 18.04 The following code snippet produces the wrong results. Snippet: M = [[[0] * 2] * 2] * 2 M[0][0][0] = 1

[issue36443] Disable coerce_c_locale and utf8_mode by default in _PyPreConfig?

2019-03-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12531 stage: -> patch review ___ Python tracker ___ ___

[issue36202] Calling Py_DecodeLocale() before _PyPreConfig_Write() can produce mojibake

2019-03-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12532 stage: -> patch review ___ Python tracker ___ ___

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-03-27 Thread Paul Moore
On Wed, 27 Mar 2019 at 12:27, Alexey Muranov wrote: > > On mer., mars 27, 2019 at 10:10 AM, Paul Moore > wrote: > > On Wed, 27 Mar 2019 at 08:25, Alexey Muranov > > wrote: > >> > >> Whey you need a simple function in Python, there is a choice > >> between a > >> normal function declaration

[issue35983] tp_dealloc trashcan shouldn't be called for subclasses

2019-03-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35900] Add pickler hook for the user to customize the serialization of user defined functions and types.

2019-03-27 Thread Pierre Glaser
Change by Pierre Glaser : -- pull_requests: +12530 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31341] remove IRIX support code

2019-03-27 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- pull_requests: +12529 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16995] Add Base32 support for RFC4648 "Extended Hex" alphabet (patch attached)

2019-03-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: Is there interest in having this patch converted to a pull request? -- nosy: +cheryl.sabella versions: +Python 3.8 -Python 3.6 ___ Python tracker

Re: Your IDE's?

2019-03-27 Thread Grant Edwards
On 2019-03-25, John Doe wrote: > What is your favorite Python IDE? Unix+Emacs I sometimes wish that Emacs had a better code folding mode when browsing other people's code, but the editors I've tried that do have nice code-folding fall down at too many other tasks. -- Grant Edwards

[issue36446] Need Windows x86-64 MSI installer for Python >= 3.x.x

2019-03-27 Thread Zachary Ware
Zachary Ware added the comment: Our installer scheme was modernized for Python 3.5, and a description of its use can be found here: https://docs.python.org/3/using/windows.html The new scheme is significantly more flexible, though it is somewhat more complex to enable that flexibility. If

[issue36338] urlparse of urllib returns wrong hostname

2019-03-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -12526 ___ Python tracker ___ ___ Python-bugs-list mailing list

  1   2   >