[issue39199] Improve the AST documentation

2020-03-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +18186 pull_request: https://github.com/python/cpython/pull/18828 ___ Python tracker <https://bugs.python.org/issue39

[issue38894] Path.glob() sometimes misses files that match

2020-03-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset eb7560a73d46800e4ade4a8869139b48e6c92811 by Pablo Galindo in branch 'master': bpo-38894: Fix pathlib.Path.glob in the presence of symlinks and insufficient permissions (GH-18815) https://github.com/python/cpyt

[issue38894] Path.glob() sometimes misses files that match

2020-03-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39199] Improve the AST documentation

2020-03-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 02f64cb79175902705b40e3eaa8ea6c7038754ef by Pablo Galindo in branch 'master': bpo-39199: Use 'eval' mode for the examples with expression nodes (GH-18828) https://github.com/python/cpython/commit/02f64cb79175902705b4

[issue39890] The AST is mangled when compiling starred assignments

2020-03-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the great catch, Brandt! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39890] The AST is mangled when compiling starred assignments

2020-03-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d5aa2e941ccc44412b95d0e3f0a1789fbcccf403 by Brandt Bucher in branch 'master': bpo-39890: Don't mutate the AST when compiling starred assignments (GH-18833) https://github.com/python/cpython/commit/d5aa2e941ccc44412b95d0e3f

[issue39850] multiprocessing.connection.Listener fails to close with null byte in AF_UNIX socket name.

2020-03-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch nosy: +pablogsal nosy_count: 2.0 -> 3.0 pull_requests: +18224 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18866 ___ Python tracker

[issue39850] multiprocessing.connection.Listener fails to close with null byte in AF_UNIX socket name.

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 6012f30beff7fa8396718dfb198ccafc333c565b by Pablo Galindo in branch 'master': bpo-39850: Add support for abstract sockets in multiprocessing (GH-18866) https://github.com/python/cpython/commit/6012f30beff7fa8396718dfb198cca

[issue39850] multiprocessing.connection.Listener fails to close with null byte in AF_UNIX socket name.

2020-03-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +18234 pull_request: https://github.com/python/cpython/pull/18876 ___ Python tracker <https://bugs.python.org/issue39

[issue39850] multiprocessing.connection.Listener fails to close with null byte in AF_UNIX socket name.

2020-03-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +18235 pull_request: https://github.com/python/cpython/pull/18877 ___ Python tracker <https://bugs.python.org/issue39

[issue39850] multiprocessing.connection.Listener fails to close with null byte in AF_UNIX socket name.

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 2235e04170503673471d5ec2e7c693cdadcbdc65 by Pablo Galindo in branch '3.7': [3.7] bpo-39850: Add support for abstract sockets in multiprocessing (GH-18866) (GH-18877) https://github.com/python/cpyt

[issue39850] multiprocessing.connection.Listener fails to close with null byte in AF_UNIX socket name.

2020-03-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39850] multiprocessing.connection.Listener fails to close with null byte in AF_UNIX socket name.

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3ede1bc794a575a73c6cc74addb5586f4e33a1f5 by Pablo Galindo in branch '3.8': [3.8] bpo-39850: Add support for abstract sockets in multiprocessing (GH-18866) (GH-18876) https://github.com/python/cpyt

[issue39829] __len__ called twice in the list() constructor

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks Kim and Eric! I think it still makes sense to do some quick benchmarking and research on passing down the calculated length. I can try to produce a draft PR so we can discuss with something more tangible

[issue38870] Expose ast.unparse in the ast module

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e7cab7f780ac253999512ee86374fc3454342811 by Batuhan Taşkaya in branch 'master': bpo-38870: Simplify sequence interleaves in ast.unparse (GH-17892) https://github.com/python/cpython/commit/e7cab7f780ac253999512ee86374fc

[issue39199] Improve the AST documentation

2020-03-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The first one looks on first inspection "cleaner" but then I tried to look at a random closed bracket/parenthesis like the ones in value=Constant(value=Ellipsis))])])], and trying to guess where t

[issue2506] Add mechanism to disable optimizations

2020-03-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will pick this up from Victor's last patch -- nosy: +pablogsal ___ Python tracker <https://bugs.python.org/i

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

2020-03-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 276a84a0a6c694ce227bf36ec2e2e6ec6686170f by José Roberto Meza Cabrera in branch 'master': bpo-38080: Added "getproxies" to urllib fixes in the 2to3 tool (GH-16167) https://github.com/p

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

2020-03-11 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.or

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD / Linux

2020-03-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Check out https://bugs.python.org/issue39360 foe more context on this issue. -- ___ Python tracker <https://bugs.python.org/issue38

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD / Linux

2020-03-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also, notice that writing Pool().map(sleep, [0.01] * 10) is out of contact as the Pool object can be collected immediately and there is no proper termination and cleanup. The correct way is to use the context manager: with Pool() as pool

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD / Linux

2020-03-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am mentoring @BTaskaya and I asked to take a look a this. After some debugging, we found that the problem is the following: When the pull is not used via the context manager or terminate() is called, there is a system in multiprocessing.util that

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD / Linux

2020-03-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: BTaskaya will create a PR to fix this soon. -- ___ Python tracker <https://bugs.python.org/issue38744> ___ ___ Pytho

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Check out also https://bugs.python.org/issue38744 -- ___ Python tracker <https://bugs.python.org/issue39360> ___ ___

[issue39965] await is valid in non async functions if PyCF_ALLOW_TOP_LEVEL_AWAIT is set

2020-03-14 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : If PyCF_ALLOW_TOP_LEVEL_AWAIT is set this code is valid: def f(): await foo And this should raise a "SyntaxError: 'await' outside async function". The reason is that the PyCF_ALLOW_TOP_LEVEL_AWAIT is global in the c

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-03-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 5.0 -> 6.0 pull_requests: +18355 pull_request: https://github.com/python/cpython/pull/19010 ___ Python tracker <https://bugs.python.org/issu

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-03-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +18357 pull_request: https://github.com/python/cpython/pull/19010 ___ Python tracker <https://bugs.python.org/issue39

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-03-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -18355 ___ Python tracker <https://bugs.python.org/issue39562> ___ ___ Python-bugs-list mailing list Unsub

[issue39965] await is valid in non async functions if PyCF_ALLOW_TOP_LEVEL_AWAIT is set

2020-03-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +18356 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19010 ___ Python tracker <https://bugs.python.org/issu

[issue39965] await is valid in non async functions if PyCF_ALLOW_TOP_LEVEL_AWAIT is set

2020-03-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 90235810ec28ca954bbf4b61a5ae5df7a00db409 by Pablo Galindo in branch 'master': bpo-39965: Correctly raise SyntaxError if await is used outside async functions when PyCF_ALLOW_TOP_LEVEL_AWAIT is set (GH-19010) https://github.

[issue39965] await is valid in non async functions if PyCF_ALLOW_TOP_LEVEL_AWAIT is set

2020-03-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39969] Remove Param expression context from AST

2020-03-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39969] Remove Param expression context from AST

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 8689209e0338943dba9b7ff5566b8a420374764c by Batuhan Taşkaya in branch 'master': bpo-39969: Remove ast.Param node class as is no longer used (GH-19020) https://github.com/python/cpython/commit/8689209e0338943dba9b7ff5566b8a

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > which looks a bit weird to me Is explained in the message in https://bugs.python.org/msg364211: What happens is that is moving that code so is executed in both code paths: explicit termination and multiprocessing finalization. > Unfortunatel

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ac10e0c93218627d1a639db0b7b41714c5f6a883 by Batuhan Taşkaya in branch 'master': bpo-39360: Ensure all workers exit when finalizing a multiprocessing Pool (GH-19009) https://github.com/python/cpyt

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Hummm, the test case from this bug is precisely the test case in PR 19009 so > it should not hang. Oh, actually I am wrong as this is a different issue I had in mind. PR 19009 should fix the case reported in https://bugs.python.org/issue387

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I tried and I cannot reproduce the hang with the code provided in the first message here after PR 19009. (Tested on Linux, Windows and MacOS) -- ___ Python tracker <https://bugs.python.org/issue39

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD / Linux

2020-03-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue38744> ___ ___ Python-bugs-list mailing list Unsub

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD / Linux

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closed via PR 19009 -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38870] Expose ast.unparse in the ast module

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 5b66ec166b81c8a77286da2c0d17be3579c3069a by Batuhan Taşkaya in branch 'master': bpo-38870: Implement support for ast.FunctionType in ast.unparse (GH-19016) https://github.com/python/cpython/commit/5b66ec166b81c8a77286da2c0d17be

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Sadly, I am unable to reproduce, so without more clarification or a reliable reproducer, we cannot start debugging the issue. > For test 1) no traceback on ctrl+c and also no trace logged with faulthandler > installed, so no idea where it hangt

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > ps. I'm arekm@freenode and can give ssh account for playing with the issue Can you send me an email to pablog...@gmail.com to set up ssh access? -- ___ Python tracker <https://bugs.python.org

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I still cannot reproduce it in your system: [test@ixion-pld cpython]$ hostname ixion-pld [test@ixion-pld cpython]$ uname -a Linux ixion-pld 5.5.2-1 #1 SMP Wed Feb 5 19:26:43 CET 2020 x86_64 Common_KVM_processor PLD Linux [test@ixion-pld cpython]$ cat

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I tested it on the master branch with commit 5b66ec166b81c8a77286da2c0d17be3579c3069a -- ___ Python tracker <https://bugs.python.org/issue39

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Oh, sorry, I missed your last message. -- ___ Python tracker <https://bugs.python.org/issue39360> ___ ___ Python-bug

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Can you try applying 4f384af067d05b16a554bfd976934fca9f87a1cf and 4d96b4635aeff1b8ad41d41422ce808ce0b971c8 together? -- ___ Python tracker <https://bugs.python.org/issue39

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > So 3.8 branch + 9ad58acbe8b90b4d0f2d2e139e38bb5aa32b7fb6 + > 4d96b4635aeff1b8ad41d41422ce808ce0b971c8 is working for me. I can confirm that these commits together fix the problem. Victor, are you OK if we backport both changes

[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think Cython makes use of PEP-489 so unless I am missing something all generated extensions use PEP-489 structures. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This code has introduced a regression in AIX in Python 3.7.7 as the new "test_maxcontext_exact_arith" test hangs indefinitely or just segfaults. -- keywords: +3.7regression nosy: +pablogsal resolution: fixed -> status: c

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This looks like a "new feature/improvement". Why was this code backported to a stable version? -- ___ Python tracker <https://bugs.python.o

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-16 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +ned.deily ___ Python tracker <https://bugs.python.org/issue39576> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Thanks for the lecture. This is an esoteric case between bugfix and feature that only occurs with very large context precisions. Nobody is lecturing anyone. I am just asking why this was backported. > If Bloomberg isn't happy with _decima

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > If you are fortunate enough to have access to an AIX system, I guess you have to find out why POWER6 AIX 3.8 and PPC64 AIX 3.8 apparently work on https://buildbot.python.org/ but your 3.7 does not. I am working on trying to debug where the prob

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Btw, this is AIX 7.1.0.0 with xlc in case that is relevant. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I mean, it's not okay to complain about a regression and then mention xlc about 10 mails later. How is this related? Or is not ok to report a behaviour change in a stable release even if the platform is "best-effort"? A regressio

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Acknowledge that gcc builds work on the AIX buildbots (a fact that has been > entirely ignored so far). I do acknowledge that. I am not saying that I am sure there is a bug in the code. For what I know at this point it may be something wi

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > In other words, contrary to your earlier dismissal, you did NOT run _decimal on AIX with MAX_PREC but just ran the 3.7.6 tests that do not include any tests with MAX_PREC. I did, and it raises MemoryError: ❯ uname -a AIX 1 7 powerpc 00CCAD974C00

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Just to be clear: I am saying that the *exact* regression is manifested with the new test because that is the behavioural difference that I experienced and how I found this problem. > but just ran the 3.7.6 tests that do not include any tests w

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: After some debugging, I discovered that the new test succeeds if I configure and compile CPython without 'OBJECT_MODE=64' set. -- ___ Python tracker <https://bugs.python.o

[issue39993] Language Reference - Function definition parameter_list item definition not equivalent to implementation.

2020-03-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Did I miss something? Yep, what you are missing is that the rule is really: (defparameter ("," defparameter)* "," "/" ["," [parameter_list_no_posonly]]) | (parameter_list_no_posonly) which means that

[issue39220] constant folding affects annotations despite 'from __future__ import annotations'

2020-03-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d112c600ab3f5e2910345bcc4bfc39439917ed87 by Pablo Galindo in branch 'master': bpo-39220: Do not optimise annotation if 'from __future__ import annotations' is used (GH-17866) https://github.com/p

[issue39220] constant folding affects annotations despite 'from __future__ import annotations'

2020-03-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39220] constant folding affects annotations despite 'from __future__ import annotations'

2020-03-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue39220> ___ ___ Python-bugs-list mailin

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will try to investigate that but it think this is because without OBJECT_MODE=64 the value of decimal.MAX_PREC is much lower (42500 instead 99) so whatever is happening downstream with the higher does not happen with the lower

[issue40000] Improve AST validation for Constant nodes

2020-03-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0ac59f93c0e3f91fd994d7245578cce65654fb22 by Batuhan Taşkaya in branch 'master': bpo-4: Improve error messages when validating invalid ast.Constant nodes (GH-19055) https://github.com/python/cpyt

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-03-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 9052f7a41b90f2d34011c8da68f9a4facebc8a97 by Batuhan Taşkaya in branch 'master': bpo-39562: Allow executing asynchronous comprehensions in the asyncio REPL (GH-18968) https://github.com/python/cpyt

[issue40026] Create render_*_diff variants to the *_diff functions in difflib

2020-03-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +tim.peters ___ Python tracker <https://bugs.python.org/issue40026> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed ___ Python tracker <https://bugs.python.org/issue39360> ___ ___ Python-bugs-list mailing list Un

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, so sadly it seems that we need to close this issue as is fixed in master but the backport is risky. -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.p

[issue40067] Improve error messages for multiple star expressions in assignment

2020-03-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the quick fix, Furkan! :) -- nosy: +pablogsal resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40067] Improve error messages for multiple star expressions in assignment

2020-03-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset cb6534e1a8833b3f20bd88f52cf62a003426e855 by Furkan Önder in branch 'master': bpo-40067: Improve error messages for multiple star expressions in assignments (GH-19168) https://github.com/python/cpyt

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Wouldn't having more static types slow down startup time? -- nosy: +pablogsal ___ Python tracker <https://bugs.python.org/is

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Wouldn't having less static types slow down startup time? -- ___ Python tracker <https://bugs.python.org/is

[issue40077] Convert static types to PyType_FromSpec()

2020-03-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg365116 ___ Python tracker <https://bugs.python.org/issue40077> ___ ___ Python-bug

[issue40080] Stripping annotations out as a new optimization mode

2020-03-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am -1 to this feature because compared with other optimization levels this can have unknown effects on the runtime, especially on dependencies you do not control. dataclasses is an example, but much more exist. To support this feature we would need

[issue38237] Expose meaningful keyword arguments for pow()

2020-03-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 5a58c5280b8df4ca5d6a19892b24fff96e9ea868 by Ammar Askar in branch 'master': bpo-38237: Use divmod for positional arguments whatsnew example (GH-19171) https://github.com/python/cpython/commit/5a58c5280b8df4ca5d6a19892b24ff

[issue40096] Support _Py_NO_RETURN on XLC

2020-03-29 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40096] Support _Py_NO_RETURN on XLC

2020-03-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0003c2dc1d4cf5b122e73e83177fd274fa9a9913 by Batuhan Taşkaya in branch 'master': bpo-40096: Support __attribute__((__noreturn__)) on xlc (GH-19204) https://github.com/python/cpython/commit/0003c2dc1d4cf5b122e73e83177fd2

[issue40108] Improve error message for -m option when .py is present

2020-03-30 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch nosy: +pablogsal nosy_count: 2.0 -> 3.0 pull_requests: +18596 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19239 ___ Python tracker <https://bugs.p

[issue40108] Improve error message for -m option when .py is present

2020-03-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40108] Improve error message for -m option when .py is present

2020-03-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ef67512b40240f765026ad41d60b0c9a6dacd2b9 by Pablo Galindo in branch 'master': bpo-40108: Improve the error message in runpy when importing a module that includes the extension (GH-19239) https://github.com/python/cpyt

[issue38527] configure script fails to detect "float word ordering" on Solaris

2020-04-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40048] _PyEval_EvalFrameDefault() doesn't reset tstate->frame if _PyCode_InitOpcache() fails

2020-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Will prepare a pr soon -- ___ Python tracker <https://bugs.python.org/issue40048> ___ ___ Python-bugs-list mailin

[issue40141] Add line and column information for keywords in the AST

2020-04-01 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : When inspecting keyword parameters in a function call, the keyword is stored as a string and not as a AST node: >>> import ast >>> r = "f(a, xxa = 34, y=23)" >>> node = ast.parse(r) >&g

[issue40141] Add line and column information for keywords in the AST

2020-04-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +18640 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19283 ___ Python tracker <https://bugs.python.org/issu

[issue40141] Add line and column information for keywords in the AST

2020-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am preparing more PRs for other nodes that are missing the meta-information as well but will open them in a separate issue. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40140] test_builtin crashes when runned in parallel mode on solaris

2020-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Try making bigger the stack size (with ulimit -s ... or similar) -- nosy: +pablogsal ___ Python tracker <https://bugs.python.org/issue40

[issue40140] test_builtin crashes when runned in parallel mode on solaris

2020-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am understanding "crashing" as "segfaulting" -- ___ Python tracker <https://bugs.python.org/issue40140> ___ _

[issue40141] Add line and column information for keywords in the AST

2020-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 168660b547d5f683c5d3c60447cfa8c6d620efc3 by Pablo Galindo in branch 'master': bpo-40141: Add line and column information to ast.keyword nodes (GH-19283) https://github.com/python/cpython/commit/168660b547d5f683c5d3c60447cfa8

[issue40141] Add line and column information for keywords in the AST

2020-04-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40147] Move checking for duplicated keywords to the compiler

2020-04-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +lys.nikolaou ___ Python tracker <https://bugs.python.org/issue40147> ___ ___ Python-bugs-list mailing list Unsub

[issue40147] Move checking for duplicated keywords to the compiler

2020-04-01 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : When a keyword is repeated in a call for instance: 'f(1, x=2, *(3, 4), x=5)' we raise a SyntaxError: File "lel.py", line 1 f(1, x=2, *(3, 4), x=5) ^ SyntaxError: keyword argument repeated This erro

[issue40147] Move checking for duplicated keywords to the compiler

2020-04-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +18648 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19289 ___ Python tracker <https://bugs.python.org/issu

[issue40120] Undefined C behavior going beyond end of struct via a [1] arrays.

2020-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > How is it an undefined C behavior? It works well in practice, no? Famous last words ;) -- nosy: +pablogsal ___ Python tracker <https://bugs.python.org/issu

[issue17005] Add a topological sort algorithm

2020-04-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I just want to echo what Tim mentioned with the extra data point that some of the maintainers of some popular and wide-used open-source libraries that indeed have to deal with this problem or the parallel version of the problem (like gaborbernat in

[issue17005] Add a topological sort algorithm

2020-04-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > We may need two versions then, a full-featured TopologicalSorter() class and > a simple tsort() function that doesn't aspire to be all things to all people. How this other version would differ from using .add() + .static_order() as Ti

[issue17005] Add a topological sort algorithm

2020-04-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Is also notable to mention that you can also provide the graph as a dictionary to the constructor: >>> graph = {D: {B, C}, C: {A}, B: {A}, A:{object}} >>> ts = TopologicalSorter(graph) --

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-04-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Traceback, does it work --without-pymalloc? No, it does also not work with `--without-pymalloc?`. > Has anything emerged xlc-wise? Not for now, I keep investigating and I may try to contact IBM about this, but at this stage, I am gettin

[issue40147] Move checking for duplicated keywords to the compiler

2020-04-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 254ec783411d9d16e51f1116f98918be2ef0e884 by Pablo Galindo in branch 'master': bpo-40147: Move the check for duplicate keywords to the compiler (GH-19289) https://github.com/python/cpython/commit/254ec783411d9d16e51f1116f98918

[issue40141] Add line and column information for keywords in the AST

2020-04-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +18711 pull_request: https://github.com/python/cpython/pull/19348 ___ Python tracker <https://bugs.python.org/issue40

<    19   20   21   22   23   24   25   26   27   28   >