[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Oh, sorry for that bad look :/ I just want it to look consistent, let me see what I can do further (I'll probably consult a friend of mine who understand this things). By the way, I could've just adjust the values over the existing code if you didn't revert

[issue40355] The ast module fails to reject certain malformed nodes

2020-05-06 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

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

2020-05-06 Thread Florian Bruhin
New submission from Florian Bruhin : A minor issue I just discovered today: When e.g. doing "python3 --foo", the output is: unknown option --foo unknown option --foo unknown option --foo usage: /usr/bin/python3 [option] ... [-c cmd | -m mod | file | -] [arg] ... With more dashes in th

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-06 Thread Chris Jerdonek
Change by Chris Jerdonek : -- pull_requests: +19266 pull_request: https://github.com/python/cpython/pull/19858 ___ Python tracker ___ __

[issue40466] asyncio.ensure_future() breaks implicit exception chaining

2020-05-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: Closing this as a duplicate of https://bugs.python.org/issue29587 It turns out that, as Nathaniel first suggested, this is really just another special case of that issue (the "yield from" case as opposed to the "yield" case). It's just that the particular ex

[issue38227] Setting a signal handler gets multiprocessing.Pool stuck

2020-05-06 Thread Michael
Michael added the comment: Looks like a duplicate of my previous issue https://bugs.python.org/issue29759 Unfortunately some frameworks like Gunicorn are extensively using signal handlers for their internal purposes. -- nosy: +mapozyan ___ Python

[issue38227] Setting a signal handler gets multiprocessing.Pool stuck

2020-05-06 Thread Michael
Michael added the comment: Reproducing issue with attached test (Python 3.8.2 on Ubuntu 16.04). -- Added file: https://bugs.python.org/file49130/mp-signal-bug-python3.8.py ___ Python tracker

[issue31033] Add argument to .cancel() of Task and Future

2020-05-06 Thread Chris Jerdonek
Change by Chris Jerdonek : -- keywords: +patch pull_requests: +19267 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19951 ___ Python tracker ___ _

[issue40528] Improve / Clear ASDL generator

2020-05-06 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : - Better error messages with punctuation - Py_UNREACHABLE() for unreachable states - Removal of several 'unused' and 'undocumented (in Zephyr ASDL spec) built-in types. -- components: Interpreter Core messages: 368235 nosy: BTaskaya priority: norma

[issue31033] Add argument to .cancel() of Task and Future

2020-05-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: I just posted a draft, proof-of-concept PR for one aspect of this issue: https://github.com/python/cpython/pull/19951 Namely, the PR makes it so that cancelled tasks have full tracebacks, all the way to where the code first gets interrupted. I did the C impl

[issue40528] Improve / Clear ASDL generator

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

[issue38227] Setting a signal handler gets multiprocessing.Pool stuck

2020-05-06 Thread Michael
Michael added the comment: Attached working patch. Tested with signal handler set in Lib/test/_test_multiprocessing.py: 2329a2330,2331 > def signal_handler(signum, frame): > pass 2335a2338 > cls.old_handler = signal.signal(signal.SIGTERM, signal_handler) 2342a2346 > signal.

[issue40528] Improve / Clear ASDL generator

2020-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You just read my thoughts. That's what I was going to do tonight. ;) -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue40528] Improve / Clear ASDL generator

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > You just read my thoughts. That's what I was going to do tonight. ;) :) Awesome. Well I'll plan to continue this; @pablogsal and I was discussing the idea of extracting _ast.AST subclasses to python level (which would save a lot of time for new additions)

[issue40528] Improve / Clear ASDL generator

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Currently working on implementing some items from this TODO https://github.com/eliben/asdl_parser/blob/master/TODO -- ___ Python tracker __

[issue40515] test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-06 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +19269 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19953 ___ Python tracker ___

[issue40529] Auto Completions with case insensitive

2020-05-06 Thread Madhusudhan Kasula
New submission from Madhusudhan Kasula : Now, we don't have user option to make completions with case insensitive. It would be nice if user have option to enable/disable case insensitive completions. -- components: Library (Lib) messages: 368241 nosy: mkasula priority: normal severity:

[issue40530] distutils/cygwinccompiler.py doesn't support recent msvc versions

2020-05-06 Thread Vadim Godunko
New submission from Vadim Godunko : Prebuild Python 3.7 package can't be used with GObjectIntrospection library on Windows due to miss of support of used MSVC compiler by distutils/cygwinccompiler.py module. sys.version returns: 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.19

[issue40529] Auto Completions with case insensitive

2020-05-06 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +19270 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19954 ___ Python tracker _

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

2020-05-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19271 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19955 ___ 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: Oh right, that's because Python parses the command line at least 3 times :-) The first 2 times, it is not supposed to log errors. It's a bug: attached PR 19955 fix it. -- ___ Python tracker

[issue31033] Add argument to .cancel() of Task and Future

2020-05-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: Okay, I completed my draft PR (both C and pure Python implementations are done). -- ___ 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: > I was able to bisect this to the following commit: (...) Oh, well done! Yeah, it's all my fault ;-) It's a regression of the PEP 587 (PyConfig) implementation. I chose to share code between Python/preconfig.c and Python/initconfig.c rather than duplicate

[issue40528] Improve / Clear ASDL generator

2020-05-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I was also thinking about getting rid of "string" nodes and just use Constant for those. Having the strings raw make the AST inconsistent because nodes that are 'strings' do not have line numbers and other metadata, making tools that need the source t

[issue40528] Improve / Clear ASDL generator

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > I was also thinking about getting rid of "string" nodes and just use Constant > for those. Having the strings raw make the AST inconsistent because nodes > that are 'strings' do not have line numbers and other metadata, making tools > that need the source

[issue40528] Improve / Clear ASDL generator

2020-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "string" is only used for * type_comment in a number of statements * kind in Constant * tag in type_ignore For which of them a line number is meaningful and useful? -- ___ 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: New changeset 2668a9a5aa506a048aef7b4881c8dcf6b81c6870 by Victor Stinner in branch 'master': bpo-40527: Fix command line argument parsing (GH-19955) https://github.com/python/cpython/commit/2668a9a5aa506a048aef7b4881c8dcf6b81c6870 -- nosy: +corona10 _

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

2020-05-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +19272 pull_request: https://github.com/python/cpython/pull/19956 ___ Python tracker _

[issue40529] Auto Completions with case insensitive

2020-05-06 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +19273 pull_request: https://github.com/python/cpython/pull/19957 ___ Python tracker ___ ___

[issue40528] Improve / Clear ASDL generator

2020-05-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > For which of them a line number is meaningful and useful? Apologies, I was thinking of 'identifier', which is basically a PyObject representing a string. For instance, when parsing function calls like x = ast.parse("f(x=435)") the 'arg' attribute o

[issue40528] Improve / Clear ASDL generator

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Oh, I confuse with it identifier. IMHO replacing identifier with Constant would infer position in some cases. -- ___ Python tracker ___ ___

[issue40528] Improve / Clear ASDL generator

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: A real world example would be tools like `unimport`, that try to remove a certain part of import by looking start/end column offsets. Before (lib2to3), it was using tokens to manipulate source, and what I can tell is that having position information on mult

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

2020-05-06 Thread miss-islington
miss-islington added the comment: New changeset bce4ddafdd188cc6deb1584728b67b9e149ca6a4 by Miss Islington (bot) in branch '3.8': bpo-40527: Fix command line argument parsing (GH-19955) https://github.com/python/cpython/commit/bce4ddafdd188cc6deb1584728b67b9e149ca6a4 -- ___

[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: https://ma

[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 bool

[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 ___ ___

[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: behavi

[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) https://github.com/python/cpython/commit/091951a67c832db83c60

[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 memoryvi

[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

[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 ___ __

[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 dia

[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 an

[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 ___

[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

[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 ___ ___ Python-bugs-lis

[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

[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 hav

[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

[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: https://mail.python.

[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: https://mail.python.

[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 ___ _

[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', comple

[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: 3682

[issue40534] ShUtil doc deficiencies

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

[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

[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 ___ __

[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 ___ __

[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: https://mail.p

[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 ___ _

[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 = set(sys

[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 t

[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

[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 ___ __

[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

[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". --

[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 --

[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 -- __

[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 co

[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 Un

[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. No

[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 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

[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 alr

[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 wh

[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 ___ __

[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 ___ ___

[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 demonstrate

[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) https://github.com/python/cpython/commit/999ec9ab6af536cc2666a0847ec02331aaf00416

[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 seem

[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 ___ ___

[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 same

[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

[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 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 ___

[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 ___ _

[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).

[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 ___

[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 m

[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 ___

[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 Joannah Nanjekye
Change by Joannah Nanjekye : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list m

[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 ___ ___

[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 t

[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 __

[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 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 bu

[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 iss

  1   2   >