[issue1438480] shutil.move raises OSError when copystat fails

2019-06-02 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-02 Thread Mark Dickinson
Mark Dickinson added the comment: @David Ratcliffe > the sum of the first n positive integers is binomial(n+1, 2), and the formula > should still work if n is zero. I agree that's a convincing use-case. Can you think of any practical uses for allowing negative `k`? I can't. -- ___

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-02 Thread Mark Dickinson
Mark Dickinson added the comment: > @David Ratcliffe Radcliffe! Apologies for the misspelling. It's still early in this timezone and I haven't had any coffee yet. -- ___ Python tracker

[issue37128] Add math.perm()

2019-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5ae299ac78abb628803ab7dee0997364547f5cc8 by Serhiy Storchaka in branch 'master': bpo-37128: Add math.perm(). (GH-13731) https://github.com/python/cpython/commit/5ae299ac78abb628803ab7dee0997364547f5cc8 -- ___

[issue37128] Add math.perm()

2019-06-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue37128] Add math.perm()

2019-06-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue36879] bug with round() and "numpy floats"

2019-06-02 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> third party stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ _

[issue36027] Support negative exponents in pow() where a modulus is specified.

2019-06-02 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset c52996785a45d4693857ea219e040777a14584f8 by Mark Dickinson in branch 'master': bpo-36027: Extend three-argument pow to negative second argument (GH-13266) https://github.com/python/cpython/commit/c52996785a45d4693857ea219e040777a14584f8 --

[issue36027] Support negative exponents in pow() where a modulus is specified.

2019-06-02 Thread Mark Dickinson
Mark Dickinson added the comment: Done. Closing. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36839] Support the buffer protocol in code objects

2019-06-02 Thread Stefan Krah
Stefan Krah added the comment: On Sun, Jun 02, 2019 at 02:38:21AM +, Inada Naoki wrote: > What instance means? code object? co_code? > Anyway, Dino didn't propose such thing. He only proposed accepting buffer > object for code constructor. > He didn't describe how to use buffer object.

[issue37131] all(range()...)) is needlessley slow

2019-06-02 Thread Terji
New submission from Terji : Checking if a range's items are ll truthy can be done y checking if 0 the range contains 0, however currently Python iterates over the range, making the operation slower than needed. >>> rng = range(1, 1_000_000) >>> timeit all(rng) 19.9 ms ± 599 µs per

[issue37131] all(range()...)) is needlessley slow

2019-06-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: Why should ``all()`` special case ``range``? Apart from showing off benchmarks, what's the point? Should ``any()`` also special case it? How about other lazy sequences and computed iterables, such as itertools.count objects, itertools.cycle objects, iterto

[issue37131] all(range()...)) is needlessley slow

2019-06-02 Thread Terji
Terji added the comment: >> Why should ``all()`` special case ``range``? Apart from showing off >> benchmarks, what's the point? Mostly to avoid silly mistakes, and the overhead of doing it would be very small, so a very small trade-off. >> Should ``any()`` also special case it? No, ``any(

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2019-06-02 Thread Mark Dickinson
Mark Dickinson added the comment: I'm working on a PR that finally changes the DeprecationWarnings that Serhiy introduced to TypeErrors; I think that should be acceptable, four Python versions and some years later. With that PR: - int will always return something of exact type `int` (or rais

[issue37131] all(range()...)) is needlessley slow

2019-06-02 Thread Terji
Terji added the comment: >> If there were special dunders __all__ and __any__ it would be easy to >> encapsulate this behaviour inside the range objects themselves, and neither >> any() nor all() would need to know anything about range objects. This sounds very interesting, and more general.

[issue37131] all(range()...)) is needlessley slow

2019-06-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: > >> Why should ``all()`` special case ``range``? Apart from showing off > >> benchmarks, what's the point? > > Mostly to avoid silly mistakes What sort of silly mistakes? > and the overhead of doing it would be very small, so a very small trade-off. Its

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2019-06-02 Thread Mark Dickinson
Change by Mark Dickinson : -- assignee: ethan.furman -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2019-06-02 Thread Mark Dickinson
Change by Mark Dickinson : -- pull_requests: +13623 pull_request: https://github.com/python/cpython/pull/13740 ___ Python tracker ___ __

[issue37132] Add a module for integer related math functions

2019-06-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The math module contains as function for floating-point numbers, as wells as functions for integer only numbers: factorial(), gcd(). Yet few integer specific functions was added in 3.8: isqrt(), perm(), comb(). The proposed PR adds the new imath module,

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 13ed07998ad93dbdd94991ba0451b9b559f07972 by Andrew Svetlov in branch 'master': bpo-35621: Support running subprocesses in asyncio when loop is executed in non-main thread (#13630) https://github.com/python/cpython/commit/13ed07998ad93dbdd94991b

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue37132] Add a module for integer related math functions

2019-06-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +13624 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13741 ___ Python tracker ___

[issue35635] asyncio.create_subprocess_exec() only works in main thread

2019-06-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed by #35621 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> asyncio.create_subprocess_exec() only works with main event loop ___ Python tracker

[issue36027] Support negative exponents in pow() where a modulus is specified.

2019-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 13266 introduced a compiler warning. Objects/longobject.c: In function ‘long_invmod’: Objects/longobject.c:4246:25: warning: passing argument 2 of ‘long_compare’ from incompatible pointer type [-Wincompatible-pointer-types] if (long_compare(a, _PyLon

[issue32052] Provide access to buffer of asyncio.StreamReader

2019-06-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: Closing. Brief: 1. Access to an internal buffer is not an option. 2. Pushing data back to stream after fetching is not an option too: it kills almost any possible optimization and makes code overcomplicated. aiohttp used to have "unread_data()" API but we dep

[issue37132] Add a module for integer related math functions

2019-06-02 Thread Mark Dickinson
Mark Dickinson added the comment: Some questions: - What's the plan for the existing functions `math.gcd` and `math.factorial`? Do they eventually get deprecated, or do we keep `gcd` and `factorial` in both `math` and `imath`? - Does PEP 399 apply here? If so, we'll need a pure Python versi

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2019-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not sure that raising an error is the best option. We can just convert an integer subclass to an exact int using _PyLong_Copy(). I am not sure that converting to an exact int in low-level C API functions is the best option. In many cases we use only t

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-06-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +13625 pull_request: https://github.com/python/cpython/pull/13630 ___ Python tracker ___ __

[issue31087] asyncio.create_subprocess_* should honor `encoding`

2019-06-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: encoding was explicitly disabled by #36686 Now its usage generates ValueError. asyncio stdio/stdout/stderr streams are bytes. If you want to propose a patch that supports text streams -- please create another issue for that. -- nosy: +asvetlov resolu

[issue37132] Add a module for integer related math functions

2019-06-02 Thread Mark Dickinson
Mark Dickinson added the comment: > Should `imath.isqrt` be renamed to `imath.sqrt`? On futher reflection, I don't think it should. It's a different function, so it's not like comparing `math.sqrt` and `cmath.sqrt`. One more: I suggest renaming the new function `ilog` to `ilog2`, for consis

[issue32115] Ignored SIGCHLD causes asyncio.Process.wait to hang forever

2019-06-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: #35621 fixes the problem for default ThreadedChildWatcher -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> asyncio.create_subprocess_exec() only works with main event loop ___

[issue37132] Add a module for integer related math functions

2019-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > What's the plan for the existing functions `math.gcd` and `math.factorial`? I think they should eventually get deprecated, but with long term of deprecation. Deprecation warning should be added only when imath versions are already available in older Pyth

[issue37132] Add a module for integer related math functions

2019-06-02 Thread Mark Dickinson
Mark Dickinson added the comment: I think the new `as_integer_ratio` also needs discussion: it was agreed at some point in the past to add `as_integer_ratio` *methods* on all numeric built-in types, and there's a PR for that. Adding `as_integer_ratio` as a new function too seems like two way

[issue37132] Add a module for integer related math functions

2019-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually it was ilog2. There was just an error in the documentation. Currently we have two ways to represent the number as an integer ratio. The official way is two properties numerator and denominator, every number should have them. And some concrete nume

[issue37131] all(range()...)) is needlessley slow

2019-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can implement it yourself. _all = all def all(obj): if isinstance(obj, range): return 0 not in obj return _all(obj) I do not see reasons to do this in the stdlib. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> r

[issue37132] Add a module for integer related math functions

2019-06-02 Thread Mark Dickinson
Mark Dickinson added the comment: I'm pretty much out of core-dev cycles for this weekend; I'm happy to review GH-13741, but won't have time to do so before next weekend. I'm overall -0 on this change; there's a minor benefit in the separation, but for me it's outweighted by the duplication

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Kubilay Kocak
Change by Kubilay Kocak : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Kubilay Kocak
Kubilay Kocak added the comment: New buildbot failure on koobs-freebsd10 that appears related to (includes) this changeset Full log attached -- nosy: +koobs Added file: https://bugs.python.org/file48384/koobs-freebsd-10-non-debug-3x-build-1170.txt __

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-06-02 Thread Marco Sulla
Marco Sulla added the comment: Well, what about the modification to VIRTUAL_ENV? I think it's little and without harm. -- ___ Python tracker ___ _

[issue37119] Equality on dict.values() are inconsistent between 2 and 3

2019-06-02 Thread 林自均
林自均 added the comment: Hi Karthikeyan and Serhiy, Thank you for the explanation. I'll check the references you gave me. -- ___ Python tracker ___ _

[issue37133] Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10

2019-06-02 Thread Андрей Казанцев
New submission from Андрей Казанцев : Where to get "ffi.h" file? -- components: Build messages: 344287 nosy: heckad priority: normal severity: normal status: open title: Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10 versions: Python 3.8

[issue37133] Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10

2019-06-02 Thread SilentGhost
Change by SilentGhost : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware type: -> behavior ___ Python tracker ___

[issue37133] Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10

2019-06-02 Thread SilentGhost
SilentGhost added the comment: How are you building python? Have you been following these instructions? https://cpython-core-tutorial.readthedocs.io/en/latest/build_cpython_windows.html -- nosy: +SilentGhost ___ Python tracker

[issue37126] test_threading is leaking references

2019-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7ffcf848df214135abeea7f6c6faa4135fd0928f by Pablo Galindo in branch 'master': bpo-37126: Allow structseq objects to be tracked by the GC (GH-13729) https://github.com/python/cpython/commit/7ffcf848df214135abeea7f6c6faa4135fd0928f --

[issue37126] test_threading is leaking references

2019-06-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37133] Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10

2019-06-02 Thread Андрей Казанцев
Андрей Казанцев added the comment: No, I used https://devguide.python.org/setup/ guide. I have downloaded the latest version of Visual Studio 2019 and evaluated in PowerShell "PCBuild\build.bat". After this, I opened "PCBuild\pcbuild.sln" and trying to build "python" solution and run it. Inst

[issue37024] SQLite flag in configure due to homebrew not linking sqlite

2019-06-02 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: This can be most likely be closed. In the last days I had some unrelated problems with my mac and had to do a full format. After reinstalling macOS the problem went away, so it must have been something specific to my previous state of things that trigger

[issue37024] SQLite flag in configure due to homebrew not linking sqlite

2019-06-02 Thread Ned Deily
Change by Ned Deily : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-02 Thread Tim Peters
Tim Peters added the comment: I'm not convinced, although I agree relaxing k <= n is less damaging than relaxing k >= 0. Python isn't aimed at mathematicians (although some 3rd-party packages certainly are, and they're free to define things however they like). We have to trade off convenie

[issue36670] test suite broken due to cpu usage feature on win 10/ german

2019-06-02 Thread Андрей Казанцев
Андрей Казанцев added the comment: I have the same problem in Russian locale. Adding "oem" encoding in the decode method solve problem with decoding but got: File "C:\Users\User\Documents\Projects\cpython\lib\test\libregrtest\win_utils.py", line 98, in getloadavg load = float(toks[1].repla

[issue30786] getaddrinfo emulation does not support AI_NUMERICSERV

2019-06-02 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'm going to close this as the OP hasn't provided a response to Benjamin's question. It can be re-opened if additional information is provided. Thanks! -- nosy: +cheryl.sabella resolution: -> out of date stage: -> resolved status: open -> closed

[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -10657 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue37134] Use PEP570 syntax in the documentation

2019-06-02 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : In the documentation, there are a lot of mismatches regarding function and method signatures that use positional-only arguments with respect to the docstrings (that properly use PEP570 syntax for documenting positional-only parameters). Not that th

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +easy stage: -> needs patch title: Use PEP570 syntax in the documentation -> [EASY] Use PEP570 syntax in the documentation type: -> enhancement ___ Python tracker

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +13626 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13743 ___ Python tracker ___

[issue37132] Add a module for integer related math functions

2019-06-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 I prefer these functions get left in the regular math module and just organize the docs to separate out integer functions. Additional namespacing creates cognitive load and creates a findability problem. Also, I really don't want gcd() to be moved yet

[issue37132] Add a module for integer related math functions

2019-06-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: After the beta feature freeze, I'll write up an edit the math module docs that makes in easier to find functions (by splitting out a section of the docs for these functions and by creating a summary link table at the top like we do for builtins). I reall

[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -10656 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR 5968 was previously linked here due to my title editing mistake, soon reversed, on the PR. -- ___ Python tracker ___

[issue34261] Add description to clinic.py

2019-06-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-06-02 Thread Tim Hoffmann
Change by Tim Hoffmann : -- pull_requests: +13627 pull_request: https://github.com/python/cpython/pull/8518 ___ Python tracker ___ _

[issue37124] test_msilib is potentially leaking references and memory blocks

2019-06-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +lukasz.langa priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12639] msilib Directory.start_component() fails if keyfile is not None

2019-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: test_msilib is leaking references https://bugs.python.org/issue37124 -- nosy: +pablogsal ___ Python tracker ___ __

[issue12178] csv writer doesn't escape escapechar

2019-06-02 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: -Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't especially like 'prompt_last_line', but cannot think of anything better. Removing the duplication now will make any future change easier. -- ___ Python tracker ___

[issue35047] Better error messages in unittest.mock

2019-06-02 Thread Petter S
Change by Petter S : -- pull_requests: +13628 pull_request: https://github.com/python/cpython/pull/13746 ___ Python tracker ___ ___

[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6bdc4dee01788599808c7858e2fe9fdd72cf6792 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307) https://github.com/python/cpython/commit/6bdc4dee01788599808c7858e2fe9f

[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +13629 pull_request: https://github.com/python/cpython/pull/13747 ___ Python tracker ___ __

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-06-02 Thread Petter S
Change by Petter S : -- pull_requests: +13630 pull_request: https://github.com/python/cpython/pull/13748 ___ Python tracker ___ ___

[issue36670] test suite broken due to cpu usage feature on win 10/ german

2019-06-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue26836] Add memfd_create to os module

2019-06-02 Thread Pierre Glaser
Pierre Glaser added the comment: >From a quick skim at the man page of memfd_create, this looks promising. -- ___ Python tracker ___ __

[issue37124] test_msilib is potentially leaking references and memory blocks

2019-06-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +13631 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13750 ___ Python tracker __

[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread miss-islington
miss-islington added the comment: New changeset b4e0bfd4778e142f037f50c19c4bb5bd123b4641 by Miss Islington (bot) in branch '3.7': bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307) https://github.com/python/cpython/commit/b4e0bfd4778e142f037f50c19c4bb5bd123b4641 --

[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue37124] test_msilib is potentially leaking references and memory blocks

2019-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The leak is because creating a 'msilib.Directory' adds an entry on a global variable '_directories', therefore leaking. My first PR will make sure the _directories is cleared out after the test to stop the leak, but it seems to me that the variable is

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Also seems to occur on Ubuntu : https://buildbot.python.org/all/#/builders/141/builds/1912/steps/5/logs/stdio karthi@ubuntu-s-1vcpu-1gb-blr1-01:~/cpython$ ./python -m unittest test.test_asyncio.test_unix_events ...Exception in threa

[issue37133] Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10

2019-06-02 Thread Zachary Ware
Zachary Ware added the comment: Did running PCbuild/build.bat successfully download dependencies to the `externals` directory? -- ___ Python tracker ___ _

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It seems the assertion has to use ThreadedChildWatcher instead of SafeChildWatcher as the default seems to be changed at [0] . If changing assertion fixes the test I am curious why it didn't fail in the primary CI. [0] https://github.com/python/c

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2019-06-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can we at least switch to PyLong_CheckExact? That would fix Barry's original issue and should run slightly faster. -- nosy: +rhettinger ___ Python tracker _

[issue37126] test_threading is leaking references

2019-06-02 Thread STINNER Victor
STINNER Victor added the comment: You forgot to call PyObject_GC_UnTrack() in structseq_dealloc(), no? -- resolution: fixed -> status: closed -> open ___ Python tracker ___ _

[issue37126] test_threading is leaking references

2019-06-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +13632 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/13751 ___ Python tracker ___ ___

[issue37126] test_threading is leaking references

2019-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > You forgot to call PyObject_GC_UnTrack() in structseq_dealloc(), no? Yep, thanks for the catch! -- stage: patch review -> resolved ___ Python tracker _

[issue37124] test_msilib is potentially leaking references and memory blocks

2019-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c0295dba259accc4b247beb22a0b2cc2f31d9850 by Pablo Galindo in branch 'master': bpo-37124: Fix reference leak in test_msilib (GH-13750) https://github.com/python/cpython/commit/c0295dba259accc4b247beb22a0b2cc2f31d9850 --

[issue36829] Add sys.unraisablehook() to customize how "unraisable exceptions" are logged

2019-06-02 Thread STINNER Victor
Change by STINNER Victor : -- title: Add sys.unraisablehook() to custom how "unraisable exceptions" are logged -> Add sys.unraisablehook() to customize how "unraisable exceptions" are logged ___ Python tracker

[issue32912] Raise non-silent warning for invalid escape sequences

2019-06-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm seeing these warnings pop up from time to time with various third party packages (such as pyparsing which is invoked by ensurepip). Am wondering whether this should be deferred for another version or so until be have good confidence that the major thi

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I cannot reproduce this issue locally :( -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: When I ran the tests, the watcher I get is a SafeChildWatcher -- ___ Python tracker ___ __

[issue36829] Add sys.unraisablehook() to customize how "unraisable exceptions" are logged

2019-06-02 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13633 pull_request: https://github.com/python/cpython/pull/13752 ___ Python tracker ___ __

[issue37080] Cannot compile Python3.7.3 on Alt-F (ARM)

2019-06-02 Thread Jarl Gullberg
Jarl Gullberg added the comment: That's correct, CPython. I'm not sure if MicroPython would fit the bill for me, since this system is a full-blown Linux system. On Fri, 31 May 2019 at 23:26, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > I presume you are trying to compile

[issue37014] [First easy issue] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-06-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +13634 pull_request: https://github.com/python/cpython/pull/13753 ___ Python tracker ___ __

[issue37014] [First easy issue] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-06-02 Thread Ezio Melotti
Ezio Melotti added the comment: New changeset aca273e2401ca3151e15e984f400233b7f255e15 by Ezio Melotti (Michele Angrisano) in branch 'master': bpo-37014: Update docstring and Documentation of fileinput.FileInput(). (GH-13545) https://github.com/python/cpython/commit/aca273e2401ca3151e15e984f

[issue37080] Cannot compile Python3.7.3 on Alt-F (ARM)

2019-06-02 Thread Jarl Gullberg
Jarl Gullberg added the comment: After some more testing, I can add that the same issue crops up when attempting to compile Python 2.7.16 as well. -- ___ Python tracker ___ _

[issue36829] Add sys.unraisablehook() to customize how "unraisable exceptions" are logged

2019-06-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset cdce0574d03005e27b843fc110c54c99c7a76412 by Victor Stinner in branch 'master': bpo-36829: test_threading: Fix a ref cycle (GH-13752) https://github.com/python/cpython/commit/cdce0574d03005e27b843fc110c54c99c7a76412 --

[issue36985] typing.ForwardRef is undocumented

2019-06-02 Thread Guido van Rossum
Guido van Rossum added the comment: Huh. I think I have mellowed with age. IOW SGTM. On Sat, Jun 1, 2019 at 17:07 Ivan Levkivskyi wrote: > > Ivan Levkivskyi added the comment: > > Guido, I remember you were against exposing `ForwardRef` as public at some > point, but recently you approved >

[issue37126] test_threading is leaking references

2019-06-02 Thread STINNER Victor
STINNER Victor added the comment: Thanks. commit 3caf4de6f05f68c3a175f4d8ce870d7a0016622a Author: Pablo Galindo Date: Sun Jun 2 21:52:49 2019 +0100 Call PyObject_GC_UnTrack in structseq dealloc (GH-13751) -- FYI I also fixed test_threading: commit cdce0574d03005e27b843fc110c54c99c7a

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +13635 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/13754 ___ Python tracker ___ __

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report! The failure depends on tests order execution (maybe you use -jN flag?). Before default child watcher was SafeChildWatcher, not it is ThreaderChildWather. The watcher is a global variable (a property of global event loop policy). The fa

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > The failure depends on tests order execution (maybe you use -jN flag?). Oh, I understand now! > See https://github.com/python/cpython/pull/13754 for the fix Thanks for the fix, Andrew! :) -- ___ Python t

[issue20602] sys.flags and sys.float_info disappear at shutdown

2019-06-02 Thread STINNER Victor
STINNER Victor added the comment: Honestly, I'm not sure that this issue is really a major bug. I don't think that it's worth it to backport the change. It's more a subtle change in Python finalization which is super fragile code. I prefer to only change the master branch, so I close the iss

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2019-06-02 Thread Ezio Melotti
Ezio Melotti added the comment: New changeset e1179a5096fb12297ececd7a1c79969aa5747e28 by Ezio Melotti (Michele Angrisano) in branch 'master': bpo-19184: Update the documentation of dis module. (GH-13652) https://github.com/python/cpython/commit/e1179a5096fb12297ececd7a1c79969aa5747e28

  1   2   >