[issue30459] PyList_SET_ITEM could be safer

2020-05-06 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 5.0 -> 6.0 pull_requests: +19291 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19975 ___ Python tracker

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2020-05-06 Thread John Andersen
John Andersen added the comment: I haven't made much progress on the fix yet. But I have a workaround here: https://github.com/tpm2-software/tpm2-pytss/commit/9952e374b4d9b854aea12c667dd7d7ab4ad501a9 -- ___ Python tracker

[issue40542] path environment variable not created correctly

2020-05-06 Thread Eryk Sun
Eryk Sun added the comment: Prepending directories ahead of system directories in PATH affects programs that implement their own search, which includes shells such as cmd.exe that do so in order to support PATHEXT efficiently. That said, note that temporarily prepending to PATH in a

Re: Idle not opening

2020-05-06 Thread Souvik Dutta
What exactly are you seeing when you try to open idle? Don't attach any file or photo. Just say verbally. Souvik flutter dev On Wed, May 6, 2020, 7:40 PM Rance Victor wrote: > Hey there, > After successfully installing Python 3.8.2(64 bit) on my system(windows 10 > 64 bit OS), my idle is not

[issue36077] Inheritance dataclasses fields and default init statement

2020-05-06 Thread Laurie Opperman
Laurie Opperman added the comment: Daniel's suggestion (and my PR) introduce a mechanism that is as far as I know almost completely bakwards-compatible. The only issue is if people were wanting (and acting on) a TypeError to be raised on dataclass construction (which I would say is rare to

[issue40539] Docs - difflib.SequenceMatcher quick_ratio and real_quick_ratio improved docs

2020-05-06 Thread Tim Peters
Tim Peters added the comment: Thanks for the effort, but I'm rejecting this. The language deliberately defines nothing about how these are calculated. It defines how `.ratio()` is computed, but that's all. An implementation is free to do whatever it likes for the "quick" versions,

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-05-06 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 3466922320d54a922cfe6d6d44e89e1cea4023ef by Dong-hee Na in branch 'master': bpo-1635741: Port errno module to multiphase initialization (GH-19923) https://github.com/python/cpython/commit/3466922320d54a922cfe6d6d44e89e1cea4023ef --

[issue40397] Refactor typing._GenericAlias

2020-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c1c7d8ead9eb214a6149a43e31a3213c52448877 by Serhiy Storchaka in branch 'master': bpo-40397: Refactor typing._GenericAlias (GH-19719) https://github.com/python/cpython/commit/c1c7d8ead9eb214a6149a43e31a3213c52448877 --

[issue2716] Document license under which audioop is used

2020-05-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.7, Python 3.8, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue40334] PEP 617: new PEG-based parser

2020-05-06 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19290 pull_request: https://github.com/python/cpython/pull/19973 ___ Python tracker ___

[issue2716] Document license under which audioop is used

2020-05-06 Thread Furkan Onder
Change by Furkan Onder : -- keywords: +patch pull_requests: +19289 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19972 ___ Python tracker

[issue40462] [easy] undefined name in Lib/test/mock_socket.py

2020-05-06 Thread Furkan Onder
Change by Furkan Onder : -- pull_requests: +19288 pull_request: https://github.com/python/cpython/pull/19972 ___ Python tracker ___

[issue2716] Document license under which audioop is used

2020-05-06 Thread Furkan Onder
Furkan Onder added the comment: PR has been sent. -- nosy: +furkanonder ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36077] Inheritance dataclasses fields and default init statement

2020-05-06 Thread Eric V. Smith
Eric V. Smith added the comment: It would be good if there were some way of unifying existing usage with positional-only and keyword-only parameters, and also supporting inheritance for dataclasses that use these features at various points in the hierarchy. I don't have any big ideas about

[issue40494] collections.abc.Callable and type variables

2020-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, I am indeed torn. ISTM a subclass just for Callable is slightly better. -- ___ Python tracker ___

[issue40542] path environment variable not created correctly

2020-05-06 Thread Ned Deily
Change by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > I tried both a laptop and desktop and slightly prefer unbolded. How about a > darker blue? Sorry but I have no control over styles. They are pre-defined, I only change the token type and pygments handles the rest of it. I dont know if such a color

[issue40542] path environment variable not created correctly

2020-05-06 Thread Roman
New submission from Roman : The Python 3.8 for Windows installer has an option to add the install folder to the path environment variable. It adds the path to the front of the list so that it is the first item. According to my understanding, this is bad behavior. It should add new path items

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tried both a laptop and desktop and slightly prefer unbolded. How about a darker blue? -- ___ Python tracker ___

[issue40512] Meta issue: per-interpreter GIL

2020-05-06 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-39465: "Design a subinterpreter friendly alternative to _Py_IDENTIFIER". Currently, this C API is not compatible with subinterpreters. -- ___ Python tracker

[issue40539] Docs - difflib.SequenceMatcher quick_ratio and real_quick_ratio improved docs

2020-05-06 Thread Lewis Ball
Change by Lewis Ball : -- keywords: +patch pull_requests: +19287 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19971 ___ Python tracker ___

[issue5879] multiprocessing example "pool of http servers " fails on windows

2020-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I said above, the example was removed from 3.x. At some point, they were all vetted for Windows execution or failure. Zach, thanks for reviewing 2.7 issues. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed

[issue25707] Add the close method for ElementTree.iterparse() object

2020-05-06 Thread Furkan Onder
Furkan Onder added the comment: Python 3.8.2 (default, Apr 8 2020, 14:31:25) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import xml.etree.ElementTree as ET >>> import gc >>> ET.iterparse('/dev/null') .IterParseIterator object at

[issue40541] Add optional weights parameter to random.sample()

2020-05-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +19286 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19970 ___ Python tracker

[issue40541] Add optional weights parameter to random.sample()

2020-05-06 Thread Raymond Hettinger
New submission from Raymond Hettinger : I've seen multiple requests for this and it isn't obvious how to do it with the existing tooling. The example currently given in the recipes section isn't scalable because it involves expanding the population into a big list with repeated elements:

[issue40540] inconstent stdin buffering/seeking behaviour

2020-05-06 Thread Peter Law
New submission from Peter Law : `sys.stdin` (on Windows, tested Pythons 3.6-3.8) appears to have different seeking behaviour depending on the source of the incoming data. This seems arguably reasonable given that `stdin` isn't always seekable, however even in the failing case

[issue40539] Docs - difflib.SequenceMatcher quick_ratio and real_quick_ratio improved docs

2020-05-06 Thread Lewis Ball
New submission from Lewis Ball : Currently the docs for `difflib.SequenceMatcher.quick_ratio()` just says 'Return an upper bound on ratio() relatively quickly', which doesn't give much of an idea about how that upper bound is calculated. `real_quick_ratio` has similarly brief documentation.

[issue40334] PEP 617: new PEG-based parser

2020-05-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 470aac4d8e76556bd8f820f3f3928dca2b4d2849 by Pablo Galindo in branch 'master': bpo-40334: Generate comments in the parser code to improve debugging (GH-19966)

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Attaching 2 different styles python_bold.png (module is bold) and asdl_no_style.png (module has no style) -- Added file: https://bugs.python.org/file49135/python_bold.png ___ Python tracker

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Batuhan Taskaya
Change by Batuhan Taskaya : Added file: https://bugs.python.org/file49136/asdl_no_style.png ___ Python tracker ___ ___ Python-bugs-list

[issue40334] PEP 617: new PEG-based parser

2020-05-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 99db2a1db7a9b468a0ce8377d579f78fa03a2a34 by Pablo Galindo in branch 'master': bpo-40334: Allow trailing comma in parenthesised context managers (GH-19964) https://github.com/python/cpython/commit/99db2a1db7a9b468a0ce8377d579f78fa03a2a34

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't like the red Python in asdl2. Just black, perhaps bold, would be better. Also I like the darker blue in asdl.py, bold or not. Better contrast to me from the greens. But I agree that grape is too clashy. -- nosy: +terry.reedy

[issue18857] urlencode of a None value uses the string 'None'

2020-05-06 Thread James Addison
James Addison added the comment: The pair of pull requests below implement None-preserving urlencode and parse_qs* via a default-disabled flag 'standalone_keys'. - https://bugs.python.org/pull_request19259 - https://bugs.python.org/pull_request19264 (they're also already linked with this

[issue40538] struct.calcsize('L')== 8 but 4 is specified in documentation

2020-05-06 Thread Mark Dickinson
New submission from Mark Dickinson : Use `struct.calcsize('L')` if you want the standard sizes and formats given in the documentation. The note at the top of the struct module documentation describes the difference. See also #1709506. -- nosy: +mark.dickinson resolution: -> not a

[issue40334] PEP 617: new PEG-based parser

2020-05-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19285 pull_request: https://github.com/python/cpython/pull/19969 ___ Python tracker ___

[issue40538] struct.calcsize('L')== 8 but 4 is specified in documentation

2020-05-06 Thread Jo King
Change by Jo King : -- nosy: JoKing priority: normal severity: normal status: open title: struct.calcsize('L')== 8 but 4 is specified in documentation type: behavior versions: Python 3.6 ___ Python tracker

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-06 Thread Dennis Sweeney
Dennis Sweeney added the comment: For some more ideas for features or APIs, you could look at: https://docs.sympy.org/latest/modules/ntheory.html or http://doc.sagemath.org/html/en/reference/rings_standard/sage/arith/misc.html for an absolute upper bound. If there's to be a minimal number

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: (by the way, I did not push this change. I'll push it when you think it is ready) -- ___ Python tracker ___

[issue40537] Typo in Doc/library/sqlite3.rst

2020-05-06 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-06 Thread Steve Dower
Steve Dower added the comment: Thanks Ned. There are some platform.version() checks in there that I'm basically ignoring right now - are those unnecessary? Shall I clean them up too? -- ___ Python tracker

[issue40537] Typo in Doc/library/sqlite3.rst

2020-05-06 Thread Naglis Jonaitis
Change by Naglis Jonaitis : -- keywords: +patch nosy: +naglis nosy_count: 2.0 -> 3.0 pull_requests: +19284 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19965 ___ Python tracker

[issue40537] Typo in Doc/library/sqlite3.rst

2020-05-06 Thread Joannah Nanjekye
New submission from Joannah Nanjekye : >From this: Now you want to store the point in a single SQLite column. First you'll have to choose one of the supported types first to be used for representing the point. First looks repeated. -- assignee: docs@python components: Documentation

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Unfortunately there aren't many `bold` type tokens I can use, so I had to change color of module . If you wish I can make both class names and `Python` bold, or keep it in this way. -- Added file: https://bugs.python.org/file49134/asdl2.png

[issue36284] importlib.import_module() not thread safe if Exception is raised (3.4, 3.5)

2020-05-06 Thread Brett Cannon
Brett Cannon added the comment: @Patrick you will have to open a new issue and be very specific about what the problem is with a reproducible code snippet to show how the current fix is wrong (I also don't know how upgrading Django comes into play since this is not Django's issue tracker).

[issue40528] Improve / Clear ASDL generator

2020-05-06 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +19283 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19968 ___ Python tracker ___

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: The new screenshot looks nice. The colors are much better. Can you post another run with the class names in bold. -- ___ Python tracker

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +19282 pull_request: https://github.com/python/cpython/pull/19967 ___ Python tracker ___

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Hey Raymond, can you give me your feedback on asdl.png (the screenshot of new theme)? -- Added file: https://bugs.python.org/file49133/asdl.png ___ Python tracker

[issue40283] Documentation of turtle.circle()

2020-05-06 Thread Cajetan Rodrigues
Cajetan Rodrigues added the comment: When I checked, I found the following: turtle.circle(50, 50) # counter-clockwise turtle.circle(-50, -50) # counter-clockwise turtle.circle(-50, 50) # clockwise turtle.circle(50, -50) # clockwise So it seems both radius and extent need to be of the

[issue40334] PEP 617: new PEG-based parser

2020-05-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19281 pull_request: https://github.com/python/cpython/pull/19966 ___ Python tracker ___

[issue40506] add support for os.Pathlike filenames in zipfile.ZipFile.writestr

2020-05-06 Thread Domenico Ragusa
Domenico Ragusa added the comment: Here's a small patch to do this. Everything seems to work fine. I don't know if where I placed the test (in OtherTests) is the most appropriate. On Tue, May 5, 2020 at 4:12 AM Domenico Ragusa wrote: > > > New submission from Domenico Ragusa : > > ZipFile

[issue40334] PEP 617: new PEG-based parser

2020-05-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 999ec9ab6af536cc2666a0847ec02331aaf00416 by Lysandros Nikolaou in branch 'master': bpo-40334: Add type to the assignment rule in the grammar file (GH-19963)

[issue40526] documentation bad on asyncio

2020-05-06 Thread Yury Selivanov
Yury Selivanov added the comment: > If so, the main purpose of that example is just to demonstrate basic > async/await syntax, and show asyncio.run() for a trivial case to clearly show > how it's used at a fundamental level; it's intentional that the more involved > examples that

FlaskCon is round the corner!

2020-05-06 Thread Abdur-Rahmaan Janhangeer
Greetings list, FlaskCon is coming soon. It will be a 100% remote event with paper reviews by the Pallets team. It is a collaborative event and a first attempt of it's kind. In an attempt to include as much people as we can from the community we prepared a form to gather some ideas.

[issue40334] PEP 617: new PEG-based parser

2020-05-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19280 pull_request: https://github.com/python/cpython/pull/19964 ___ Python tracker ___

[issue40334] PEP 617: new PEG-based parser

2020-05-06 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19279 pull_request: https://github.com/python/cpython/pull/19963 ___ Python tracker ___

[issue40028] Math module method to find prime factors for non-negative int n

2020-05-06 Thread Mark Dickinson
Mark Dickinson added the comment: Some of the things that might go into a PEP, or into the PEP-creation process: - Arguments for: (a) a new imath module, versus (b) new functions in math, versus (c) a 3rd party package on PyPI. - A handful of plausible use-cases. - Comparisons with

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-06 Thread Paul Ganssle
New submission from Paul Ganssle : One thing that I sort of overlooked in PEP 615 that I think will be a common feature request for zoneinfo is the ability to get a list of time zones available on the current TZPATH. This is more complicated to implement than it sounds like, but luckily I

[issue40509] In argparse, allow REMAINDER(...) arguments in a mutually exclusive group

2020-05-06 Thread Shani Armon
Shani Armon added the comment: Yes. The pull request contains the special handling. For the purpose of REMAINDER positionals, the default is changed to the empty list that was returned if no arguments were passed. For the purpose of positional argument, that is equivalent to nothing being

[issue40521] Make tuple, dict, frame free lists, unicode interned strings, unicode latin1 singletons per-interpreter

2020-05-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset b7aa23d29fa48238dab3692d02e1f0a7e8a5af9c by Victor Stinner in branch 'master': bpo-40521: Disable list free list in subinterpreters (GH-19959) https://github.com/python/cpython/commit/b7aa23d29fa48238dab3692d02e1f0a7e8a5af9c --

[issue40509] In argparse, allow REMAINDER(...) arguments in a mutually exclusive group

2020-05-06 Thread paul j3
paul j3 added the comment: A flagged argument with REMAINDER works just fine in a mutually exclusive group. group.add_argument('-g', nargs='...') positionals in such a group can only have ? or *. If you check the code, and past issues you'll see that those require some special handling.

[issue5879] multiprocessing example "pool of http servers " fails on windows

2020-05-06 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2020-05-06 Thread STINNER Victor
STINNER Victor added the comment: > we may want to consider skipping `test_close_kill_running` for > `MultiLoopWatcher` until we can find one There are more MultiLoopWatcher tests which hang randomly, it's not only test_close_kill_running(). I'm fine with skipping tests until someone can

[issue40533] Subinterpreters: don't share Python objects between interpreters

2020-05-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset d8135e913ab7c694db247c86d0a84c450c32d86e by Victor Stinner in branch 'master': bpo-40533: Disable GC in subinterpreters (GH-19961) https://github.com/python/cpython/commit/d8135e913ab7c694db247c86d0a84c450c32d86e --

[issue40521] Make tuple, dict, frame free lists, unicode interned strings, unicode latin1 singletons per-interpreter

2020-05-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 89fc4a34cf7a01df9dd269d32d3706c68a72d130 by Victor Stinner in branch 'master': bpo-40521: Disable method cache in subinterpreters (GH-19960) https://github.com/python/cpython/commit/89fc4a34cf7a01df9dd269d32d3706c68a72d130 --

[issue40535] While build python 3.8.2 in linux ctypes.so is using libffi.so.6 instead of libffi.so.7

2020-05-06 Thread Ajaya
New submission from Ajaya : i am using libffi-3.3.tgz for building python 3.8.2 in Linux. In windows there is no problem it is using libffi-7.dll.In linux it is using libffi.so.6 instead of libffi.so.7. i am using "./configure --prefix=/u/$loginID/Python$pythonVersion --enable-debug".

[issue40533] Subinterpreters: don't share Python objects between interpreters

2020-05-06 Thread STINNER Victor
STINNER Victor added the comment: > Yep, before per-interpreter GIL is official we must get to the point where > *no* PyObject objects are shared. I would like to add: "no PyObject objects are shared in the stdlib" ;-) -- ___ Python tracker

[issue40334] PEP 617: new PEG-based parser

2020-05-06 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19278 pull_request: https://github.com/python/cpython/pull/19962 ___ Python tracker ___

[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread STINNER Victor
STINNER Victor added the comment: > That was an insanely fast fix - thanks everyone! :) Sorry about that. We are working on this issue to ensure that next bugs will not fixed as quickly a this done ;-) -- ___ Python tracker

[issue40533] Subinterpreters: don't share Python objects between interpreters

2020-05-06 Thread Eric Snow
Eric Snow added the comment: Yep, before per-interpreter GIL is official we must get to the point where *no* PyObject objects are shared. Making PyObject.ob_refcnt atomic until then (only as part of the experiment) should be fine. -- ___ Python

[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-05-06 Thread Eric Snow
Eric Snow added the comment: FYI, with the following additions in Lib/test/test_datetime.py... before = set(sys.modules) try: pure_tests = import_fresh_module(TESTS, fresh=['datetime', '_strptime'], blocked=['_datetime']) _pure =

[issue40512] Meta issue: per-interpreter GIL

2020-05-06 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-40533: "Subinterpreters: don't share Python objects between interpreters". -- ___ Python tracker ___

[issue40533] Subinterpreters: don't share Python objects between interpreters

2020-05-06 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40533] Subinterpreters: don't share Python objects between interpreters

2020-05-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19277 pull_request: https://github.com/python/cpython/pull/19961 ___ Python tracker ___

[issue40521] Make tuple, dict, frame free lists, unicode interned strings, unicode latin1 singletons per-interpreter

2020-05-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19276 pull_request: https://github.com/python/cpython/pull/19960 ___ Python tracker ___

[issue40531] Adding the method find() to list

2020-05-06 Thread João Marcos
João Marcos added the comment: Thanks for the replies!. Here's the link for discussion in the Python Ideas: https://discuss.python.org/t/adding-the-method-find-to-list/4113 -- ___ Python tracker

[issue40534] ShUtil doc deficiencies

2020-05-06 Thread T UA
Change by T UA : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40521] Make tuple, dict, frame free lists, unicode interned strings, unicode latin1 singletons per-interpreter

2020-05-06 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19275 pull_request: https://github.com/python/cpython/pull/19959 ___ Python tracker ___

[issue40534] ShUtil doc deficiencies

2020-05-06 Thread T UA
New submission from T UA : https://docs.python.org/3/library/shutil.html The operational outcome for the various copy functions is not described for the cases in which the target file already exists. Do they overwrite, do they raise exceptions and if so, which ones? -- messages:

[issue40529] Auto Completions with case insensitive

2020-05-06 Thread Madhusudhan Kasula
Madhusudhan Kasula added the comment: Yes. Python is case sensitive language and this feature will not break its essence. This case insensitive completion will help interpreter user for easy typing and choose from the available options. In the following example even user typed 'os.po',

[issue40533] Subinterpreters: don't share Python objects between interpreters

2020-05-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19274 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19958 ___ Python tracker ___

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-05-06 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40533] Subinterpreters: don't share Python objects between interpreters

2020-05-06 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40531] Adding the method find() to list

2020-05-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please take this to Python ideas. My understanding is that index() is supposed to be the one-way-to-do-it going forward. The find() API proved to be problematic because -1 is a valid index and people were hitting bugs by failing to check for the -1 and

[issue40531] Adding the method find() to list

2020-05-06 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi João, ideas like this can also be proposed first on the python-ideas mailing list but as you said in your post there is already a method to do this and it raises ValueError when it is not found which is a common idiom in Python. Other objects don't often

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry about the commit/revert. I fat fingered a comment. Please do resubmit the PR. In general, this is a nice idea. The look just needs to be tweaked a bit. -- ___ Python tracker

[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread Florian Bruhin
Florian Bruhin added the comment: That was an insanely fast fix - thanks everyone! :) -- ___ Python tracker ___ ___

[issue40529] Auto Completions with case insensitive

2020-05-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is a new feature, so it would have to go into 3.9, all older versions are in feature-freeze. -- versions: -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue40529] Auto Completions with case insensitive

2020-05-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: Python is a case-sensitive language. Why would case-insensitive completions be useful? -- nosy: +steven.daprano ___ Python tracker ___

[issue40533] Subinterpreters: don't share Python objects between interpreters

2020-05-06 Thread STINNER Victor
New submission from STINNER Victor : To get one GIL per interpreter (bpo-40512), either PyObject.ob_refcnt member must become an atomic variable, or subinterpreters must not share any object. Right now, subinterpreters share Python objects. For example, PyModule_Type is declared statically

[issue40532] Persmission error

2020-05-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: What reason do you have to think that this is a Python issue rather than a permissions error? Since you haven't told us what permissions the file has, what OS you are using, who set the permissions, or even the actual error message, it is impossible to

[issue40532] Persmission error

2020-05-06 Thread Eric V. Smith
Eric V. Smith added the comment: What editor are you using? What platform? What file are you trying to edit? -- nosy: +eric.smith ___ Python tracker ___

[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread Dong-hee Na
Dong-hee Na added the comment: Thanks for the bug report Florian and for work Victor! I am now closing this issue :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40440] allow array.array construction from memoryview w/o copy

2020-05-06 Thread Benjamin Keen
Benjamin Keen added the comment: memoryview has a lot of overlap with array, but there are still useful methods (index and count for instance) that memoryview does not have. I don't see a workaround that will run with equivalent speed without writing some extension or adding them to

[issue40528] Improve / Clear ASDL generator

2020-05-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 091951a67c832db83c60f4eb22f1fb474b70e635 by Batuhan Taskaya in branch 'master': bpo-40528: Improve and clear several aspects of the ASDL definition code for the AST (GH-19952)

[issue40532] Persmission error

2020-05-06 Thread Code436
New submission from Code436 : When I try to edit a module *as an administrator* is show permission denied even tho in permissions administrator is set to full control -- messages: 368256 nosy: Coder436 priority: normal severity: normal status: open title: Persmission error type:

Idle not opening

2020-05-06 Thread Rance Victor
Hey there, After successfully installing Python 3.8.2(64 bit) on my system(windows 10 64 bit OS), my idle is not opening. I've tried uninstalling and reinstalling it again but still the same result. Looking forward to a fix please. Thanks -- https://mail.python.org/mailman/listinfo/python-list

[issue40531] Adding the method find() to list

2020-05-06 Thread João Marcos
João Marcos added the comment: This is my first issue, is this the right place to discuss enhancements? -- components: +Library (Lib) ___ Python tracker ___

[issue40531] Adding the method find() to list

2020-05-06 Thread João Marcos
New submission from João Marcos : """ PROBLEM: When trying to search the position of an element inside a list, we should use the `in` operator to first check if the element exists, and then use the `index` method to obtain the index. `in` (__contains__) runs a linear search to return the

[issue29759] Deadlock in multiprocessing.pool.Pool on terminate

2020-05-06 Thread Ionel Cristian Mărieș
Change by Ionel Cristian Mărieș : -- nosy: +ionelmc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >