[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

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2020-05-05 Thread Cajetan Rodrigues
Cajetan Rodrigues added the comment: Turns out using _PKG_DIRECTORY as a type for namespace packages ended up making `_find_module` try to search for an __init__.py within them, since it had no understanding of the diff. between a namespace package and a regular one (the lack of __init__.py

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2020-05-05 Thread Cajetan Rodrigues
Change by Cajetan Rodrigues : -- keywords: +patch pull_requests: +19231 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/19917 ___ Python tracker <https://bugs.python.org/issu

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2020-05-02 Thread Cajetan Rodrigues
Cajetan Rodrigues added the comment: Reproduced on Python3.9.0a5+ imp.find_module() simply raised an ImportError in my tests with an implicitly namespaced package (without an __init__.py) About the "type_", I think it should be consistent with _PKG_DIRECTORY, since PEP 420

[issue37551] IDLE: Quitting with a new, unsaved editor window causes an exception

2020-04-24 Thread Cajetan Rodrigues
Cajetan Rodrigues added the comment: Cannot reproduce on Ubuntu 19.10 with idle3.9 (Python 3.9.0a5+ (heads/master:a25a04fea5, Apr 20 2020, 22:35:10)) -- nosy: +cajetan.rodrigues ___ Python tracker <https://bugs.python.org/issue37

[issue40279] Documentation example of module init function lacks error handling

2020-04-24 Thread Cajetan Rodrigues
Change by Cajetan Rodrigues : -- keywords: +patch pull_requests: +19024 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19705 ___ Python tracker <https://bugs.python.org/issu

[issue40279] Documentation example of module init function lacks error handling

2020-04-24 Thread Cajetan Rodrigues
Cajetan Rodrigues added the comment: At the risk of sounding like a jerk, I'd very much want to say that copy-pasters should get what they deserve :) But then I remember I was once a copy-paster too! Hello again, Stefan :) Thanks for watching out for the community - I'll be ha

[issue40340] Programming FAQ about "How do I convert a string to a number?" contains a typo

2020-04-23 Thread Cajetan Rodrigues
Cajetan Rodrigues added the comment: Yes, I think that's acceptable. -- ___ Python tracker <https://bugs.python.org/issue40340> ___ ___ Python-bugs-list m

[issue40340] Programming FAQ about "How do I convert a string to a number?" contains a typo

2020-04-20 Thread Cajetan Rodrigues
Cajetan Rodrigues added the comment: > these interpret the number as decimal I'm no linguist, but I feel both expressions in the subordinate clause have their purposes, with respect to the the main clause: * `int('0144') == 144` to show what works * `int('0x144')

[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2020-04-12 Thread Cajetan Rodrigues
Cajetan Rodrigues added the comment: For the record, I submitted a fix to the dependent: https://github.com/boto/botocore/pull/2015 -- nosy: +Cajetan Rodrigues ___ Python tracker <https://bugs.python.org/issue40