[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-26 Thread Arthur Milchior
Change by Arthur Milchior : -- pull_requests: +28486 pull_request: https://github.com/python/cpython/pull/30271 ___ Python tracker <https://bugs.python.org/issue20

[issue46182] `super` and descriptor clarification

2021-12-26 Thread Arthur Milchior
Arthur Milchior added the comment: I do regret to have created a single bug, as I now realize that there are two issues that are less related than I first imagined. Is there a way to split a bug in two, so that both discussion can be discussed in different places. Actually, after more

[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-26 Thread Arthur Milchior
Arthur Milchior added the comment: "a base class ``B`` following ``A``" shouldn't it be "the base class"? . After all, there is at most one base class following ``A``. Also, I find it unclear what means "``x`` is returned unchanged, since in this context ``x`` is

[issue46182] `super` and descriptor clarification

2021-12-26 Thread Arthur Milchior
Arthur Milchior added the comment: "a base class ``B`` following ``A``" shouldn't it be "the base class"? . After all, there is at most one base class following ``A``. Also, I find it unclear what means "``x`` is returned unchanged, since in this context ``x`` is

[issue46182] `super` and descriptor clarification

2021-12-26 Thread Arthur Milchior
Arthur Milchior added the comment: I just realized that https://bugs.python.org/issue20751 already tackled some of my issues. While I still believe that some things can be improved, this mean that some of the critiques in my first messages are not entirely up to date. -- versions

[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-26 Thread Arthur Milchior
Arthur Milchior added the comment: Shouldn't those change be ported to 3.10 and maybe even earlier version? They are great, but hard to find if you read the current version manual. I'm just surprised by the term "dotted lookup". The remaining of the documentation mention "a

[issue46182] `super` and descriptor clarification

2021-12-26 Thread Arthur Milchior
New submission from Arthur Milchior : I find super documentation confusing because it uses multiple variables that are never introduced. Once you understand super, the meaning of those variables gets easier to understand, but still, I believe that it would help the documentation to rephrase

[issue46087] format library documentation error

2021-12-15 Thread Arthur Milchior
Arthur Milchior added the comment: ipypthon3 does not print the loop content. python3 does. I only tested with ipython. I beg your pardon. I didn't know about this difference in behavior -- nosy: -eric.smith title: Zip library documentation error -> format library documentat

[issue46087] Zip library documentation error

2021-12-15 Thread Arthur Milchior
Change by Arthur Milchior : -- keywords: +patch pull_requests: +28345 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30126 ___ Python tracker <https://bugs.python.org/issu

[issue46087] Zip library documentation error

2021-12-15 Thread Arthur Milchior
New submission from Arthur Milchior : I don't have permission to assign the issue, but I intend to post the change in a few minutes as a PR Copied from Richard Hyde's email to doc mailing list. One of the examples of string formatting doesn't work. This applies to prior versions of Python

[issue45922] Many method, function, built-in... are not clickable and should be

2021-11-29 Thread Arthur Milchior
Arthur Milchior added the comment: Thanks for the warning about double link. I agree with you. I guess it's another reason why it would be non trivial to automate here. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45922] Many method, function, built-in... are not clickable and should be

2021-11-28 Thread Arthur Milchior
New submission from Arthur Milchior : I would like to work on this documentation improvement. Before spending time on it, I would like to know whether it would be accepted in principle and whether the way I would intend to improve the documentation would be accepted. # Problem: In a lot

[issue45920] make doctest fails

2021-11-28 Thread Arthur Milchior
Arthur Milchior added the comment: I know understand one thing I missed. I needed to do `make venv` after changing the make file to get 3.10 in virtual environment. The issue being that this would make doc harder to create on ubuntu since 3.10 is not yet easily accessible through apt/snap

[issue45920] make doctest fails

2021-11-28 Thread Arthur Milchior
New submission from Arthur Milchior : On current main, f87ea0350286837e9e96de03f8bfa215176c2928 , ``` cd cpython/Doc make doctest ``` fails. Due to: Document: library/functions --- Warning, treated as error

[issue45646] Star expression in comprehension wrongly indicates to use or_expression after the star

2021-11-02 Thread Arthur Milchior
Arthur Milchior added the comment: Thank you very much Dennis. For two reasons. First, because I like a lot what you wrote. I suspect that it would have saved me time and make things less confusing. That's not certain, because at the time I was reading the documentation of or_expr, I may

[issue45584] Clarifying truncating in documentation

2021-11-01 Thread Arthur Milchior
Arthur Milchior added the comment: Done -- ___ Python tracker <https://bugs.python.org/issue45584> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45584] Clarifying truncating in documentation

2021-11-01 Thread Arthur Milchior
Arthur Milchior added the comment: I'm quite fan of your suggestion. Should I push it on the PR? Do you create another PR? I'm not used to BPO, I beg your pardon, only to github -- ___ Python tracker <https://bugs.python.org/issue45

[issue45646] Star expression in comprehension wrongly indicates to use or_expression after the star

2021-10-28 Thread Arthur Milchior
Change by Arthur Milchior : -- keywords: +patch pull_requests: +27571 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29303 ___ Python tracker <https://bugs.python.org/issu

[issue45646] Star expression in comprehension wrongly indicates to use or_expression after the star

2021-10-28 Thread Arthur Milchior
Arthur Milchior added the comment: Message 405188 was supposed to be another bug report. My bad. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45646] Star expression in comprehension wrongly indicates to use or_expression after the star

2021-10-28 Thread Arthur Milchior
Change by Arthur Milchior : -- title: "expression" is erroneous in the doc -> Star expression in comprehension wrongly indicates to use or_expression after the star ___ Python tracker <https://bugs.pytho

[issue45647] "expression" is erroneous in the doc

2021-10-28 Thread Arthur Milchior
New submission from Arthur Milchior : https://docs.python.org/3/reference/expressions.html#grammar-token-python-grammar-expression is wrong This line state: `expression ::= conditional_expression | lambda_expr` and it is a problem because, by the way sphinx understand reference

[issue45646] "expression" is erroneous in the doc

2021-10-28 Thread Arthur Milchior
Arthur Milchior added the comment: https://docs.python.org/3/reference/expressions.html#grammar-token-python-grammar-expression is wrong This line state: `expression ::= conditional_expression | lambda_expr` and it is a problem because, by the way sphinx understand reference

[issue45646] The documentation wrongly uses or_expr for star expresion in displays

2021-10-28 Thread Arthur Milchior
New submission from Arthur Milchior : According to the current documentation, I believe there is an error in list_display, set_display and dict_display. According to list display, this is a valid expression [* l1 ^ l2] parsed as list_display: "[" starred_list: st

[issue45640] Production tokens are not clickable

2021-10-27 Thread Arthur Milchior
Change by Arthur Milchior : -- keywords: +patch pull_requests: +27525 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29260 ___ Python tracker <https://bugs.python.org/issu

[issue45640] Production tokens are not clickable

2021-10-27 Thread Arthur Milchior
New submission from Arthur Milchior : In the current documentation, production tokens are not clickable. For example in https://docs.python.org/3/reference/expressions.html#yield-expressions , you highlight `yield_from` as a token but do not link to it. I suppose that the goal, when using

[issue45619] Mentioning structural pattern matching in the list of binding

2021-10-26 Thread Arthur Milchior
Change by Arthur Milchior : -- keywords: +patch pull_requests: +27495 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29232 ___ Python tracker <https://bugs.python.org/issu

[issue45619] Mentioning structural pattern matching in the list of binding

2021-10-26 Thread Arthur Milchior
New submission from Arthur Milchior : https://docs.python.org/3/reference/executionmodel.html list all of the way a variable may be bound. However, it seems that it was not updated. Indeed, structural pattern matching in 3.10 also allows to bind a variable and is not mentionned

[issue45602] The grammar misses links that are present everywhere else

2021-10-24 Thread Arthur Milchior
New submission from Arthur Milchior : The grammar, in https://docs.python.org/3/reference/grammar.html , lacks some utilities that the remaining of the documentation have. While it remains usable, it is hard to navigate. As an example https://www.python.org/dev/peps/pep-0634/ 's

[issue45584] Clarifying truncating in documentation

2021-10-22 Thread Arthur Milchior
New submission from Arthur Milchior : While floor/ceil 's documentation are very precise, `truncate` was not explained. I actually had to search online to understand the difference between `truncate` and `floor` (admittedly, once I remembered that numbers are signed, and that floating

[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-22 Thread Arthur Milchior
New submission from Arthur Milchior : In 3.8, int() default implementation changed, using __index__() if it is available instead of __trunc__(). The file function.rst was updated accordingly, but the redundant information in datamodel.rst contained out of date information I offer

[issue42140] asyncio.wait function creates futures set two times

2020-10-26 Thread Justin Arthur
Justin Arthur added the comment: > So the behaviour you describe will happen anyway. Unless we make your change against the 3.9 branch, in which case the fix will make it into the 3.9.x series of patch releases. -- ___ Python tracker <

[issue42140] asyncio.wait function creates futures set two times

2020-10-26 Thread Justin Arthur
Justin Arthur added the comment: I believe the documentation may be referring to the English set and not a Python set, but I could be wrong. Yury changed the wording from sequence to set in 3.7, but we didn't document a breaking change as far as I know. The purpose of those set

[issue42140] asyncio.wait function creates futures set two times

2020-10-26 Thread Justin Arthur
Justin Arthur added the comment: Your change makes perfect sense to me. It would be a backport-only change as the 2nd set creation is actually getting removed for the development version (3.10) to finalize the deprecation of wait's coroutine scheduling. -- nosy: +JustinTArthur

[issue38912] test_asyncio altered the execution environment

2020-10-13 Thread Justin Arthur
Justin Arthur added the comment: The "'NoneType' object has no attribute 'close'" error is likely caused by a race against the loop calling the test protocol object's connection_made callback. I was able to reproduce this case occasionally on macOS and it's likely platform-agnos

[issue38912] test_asyncio altered the execution environment

2020-10-13 Thread Justin Arthur
Change by Justin Arthur : -- nosy: +JustinTArthur nosy_count: 5.0 -> 6.0 pull_requests: +21662 pull_request: https://github.com/python/cpython/pull/22691 ___ Python tracker <https://bugs.python.org/issu

[issue33533] Provide an async iterator version of as_completed

2020-10-08 Thread Justin Arthur
Change by Justin Arthur : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue33533> ___ ___ Python-bugs-list mailin

[issue33533] Provide an async iterator version of as_completed

2020-10-02 Thread Justin Arthur
Change by Justin Arthur : -- title: Provide an async-generator version of as_completed -> Provide an async iterator version of as_completed ___ Python tracker <https://bugs.python.org/issu

[issue33533] Provide an async-generator version of as_completed

2020-10-02 Thread Justin Arthur
Justin Arthur added the comment: Thanks, Hrvoje. I've updated the patch to match this bug's suggested format and have updated the documentation and What's New. The one quirk that comes with the benefit of getting the same futures back is that we still allow both coroutines and futures

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2020-10-01 Thread Justin Arthur
Justin Arthur added the comment: Not sure if there is consensus on how to fix, but fixing #12731 will fix this for most of the cases I've seen complaints about as a side effect. -- ___ Python tracker <https://bugs.python.org/issue38

[issue33533] Provide an async-generator version of as_completed

2020-10-01 Thread Justin Arthur
Justin Arthur added the comment: I've added a new PR, PR 22491. This one has as_completed returning an iterator and includes tests for both the old and new style. I see a trivial amount of latency added in extra call stack over Guido's original implementation. Should we decide to deprecate

[issue33533] Provide an async-generator version of as_completed

2020-10-01 Thread Justin Arthur
Change by Justin Arthur : -- nosy: +JustinTArthur nosy_count: 5.0 -> 6.0 pull_requests: +21508 pull_request: https://github.com/python/cpython/pull/22491 ___ Python tracker <https://bugs.python.org/issu

[issue40128] IDLE Show completions/ autocomplete pop-up not working

2020-03-31 Thread Arthur
New submission from Arthur : Hi, I am new to python, I am learning it now. In the course the guy is using autocomplete and when he writes "math." he gets an autocomplete menu. on my device for some reason it is not working. I also tried the key combination to force pop-up but nothi

[issue39449] New Assignment operator

2020-01-24 Thread Arthur Fibich
New submission from Arthur Fibich : It's just a personal thing, but I kind of miss the following possibility in Python (and likewise every other language I know): Like a += 1 is the same as a = a + 1 I'd love to see a .= b() as an opportunity to express a = a.b() Possible usages

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2019-09-07 Thread Justin Arthur
Change by Justin Arthur : -- nosy: +JustinTArthur ___ Python tracker <https://bugs.python.org/issue12731> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-05 Thread Justin Arthur
Justin Arthur added the comment: Ned, can you confirm that 2to3 is not intended for cumulative/incremental runs over the same codebase? If it's not intended to be run on previously ported code, this will just need to be fixed on the lib2to3 downstream projects like awpa and Black

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-09-04 Thread Justin ARthur
New submission from Justin ARthur : Python 3 code with an identifier that has a non-spacing mark in it does not get tokenized by lib2to3 and will result in an exception thrown in the parsing process. Parsing the attached file (badvar.py), results in `ParseError: bad token: type=58, value

[issue2506] Add mechanism to disable optimizations

2019-08-26 Thread Arthur Goldberg
Arthur Goldberg added the comment: Appreciate you working on this Serhiy and Victor! -- ___ Python tracker <https://bugs.python.org/issue2506> ___ ___ Python-bug

[issue36808] Understanding "cannot import name" exception

2019-05-05 Thread Arthur Goldberg
New submission from Arthur Goldberg : I'm attempting to better understand an ImportError: cannot import name '' error by reading the cpython source. But I cannot find this error in the source. The closest I find is in cpython/Python/ceval.c, lines 5060 & 5068, but they both

[issue2506] Add mechanism to disable optimizations

2019-01-07 Thread Arthur Goldberg
Arthur Goldberg added the comment: This issue is well into the 2nd decade of debate. Who has the power to effect this change? Happy New Year Arthur -- ___ Python tracker <https://bugs.python.org/issue2

[issue35259] Py_FinalizeEx unconditionally exists in Py_LIMITED_API

2018-11-20 Thread Arthur Neufeld
Change by Arthur Neufeld : -- keywords: +patch pull_requests: +9868 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35259> ___ ___ Py

[issue35259] Py_FinalizeEx unconditionally exists in Py_LIMITED_API

2018-11-15 Thread Arthur Neufeld
New submission from Arthur Neufeld : In application compiled with #define Py_LIMITED_API 0x0304 this method was used Py_FinalizeEx() Tested application with: SET PATH=...;C:\Program Files\Python35 APPLICATION.EXE Result: Entry Point Not Found (X) The procedure entry point

[issue2506] Add mechanism to disable optimizations

2018-08-28 Thread Arthur Goldberg
Arthur Goldberg added the comment: I'm another user of Ned's coverage tool. Our team at the Mount Sinai School of Medicine is building tools to model the dynamics of biochemistry inside individual cells. Our short term aims are to better understanding microbiology and model microorganisms

[issue31025] io.BytesIO: no way to get the length of the underlying buffer without copying data

2017-07-26 Thread Arthur Darcet
Arthur Darcet added the comment: BytesIO is heavily optimised to avoid copying bytes when it can. For case (1), if you want to modify the data, then there is no need to actually copy it before overwriting it, because no-one else is using it For case (2), if you want to change something

[issue31025] io.BytesIO: no way to get the length of the underlying buffer without copying data

2017-07-25 Thread Arthur Darcet
Arthur Darcet added the comment: it's a tiny bit slow, but that works, thank you. I guess we can close this % python -m timeit -s "import io; b = io.BytesIO(b'0' * 2 ** 30)" "p = b.tell(); b.seek(0, 2); b.tell(); b.seek(p)" 100 loops, best of 3: 0.615 usec per loop %

[issue31025] io.BytesIO: no way to get the length of the underlying buffer without copying data

2017-07-25 Thread Arthur Darcet
New submission from Arthur Darcet: If I'm not mistaken, a BytesIO buffer can be in three states: (1) `b = BytesIO(b'data')` -> free of any constraints (2) `d = b'data'; b = BytesIO(d)` -> cannot modify the underlying bytes without copying them (3) `b = BytesIO(b'data'); d = b.get

[issue30679] __aexit__ not called when `run_until_complete` is interrupted by SIGINT

2017-06-15 Thread Arthur Darcet
Arthur Darcet added the comment: Ok, thank you. I'm guessing the patch I proposed in the PR is not an option, for my curiosity, why is that? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30679] __aexit__ not called when `run_until_complete` is interrupted by SIGINT

2017-06-15 Thread Arthur Darcet
New submission from Arthur Darcet: Here is the example code I am running: ``` import asyncio class it: async def __aenter__(self): return self async def __aexit__(self, *_): print('EXIT') async def main(): async

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-13 Thread Arthur Darcet
Changes by Arthur Darcet <arthur+pyt...@darcet.fr>: -- nosy: +rthr ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29406> ___ _

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-05-11 Thread Arthur Gutman
Changes by Arthur Gutman <arthur.s.gut...@gmail.com>: -- nosy: +archibald ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27240> ___

[issue30002] Minor change to https://docs.python.org/3.6/extending/building.html

2017-04-05 Thread Arthur Goldberg
New submission from Arthur Goldberg: The core example on this page starts: from distutils.core import setup, Extension module1 = Extension('demo', sources = ['demo.c']) ... I suggest that 'sources = ['demo.c']' be changed to 'sources = ['demomodule.c']', because

[issue29997] Suggested changes for https://docs.python.org/3.6/extending/extending.html

2017-04-05 Thread Arthur Goldberg
Arthur Goldberg added the comment: Also, Incorrect number agreement: s/strategy that minimizes this kind of errors/strategy that minimizes this kind of error/ -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29997] Suggested changes for https://docs.python.org/3.6/extending/extending.html

2017-04-05 Thread Arthur Goldberg
New submission from Arthur Goldberg: I've just taught myself how to write C extensions to Python with https://docs.python.org/3.6/extending/extending.html. I think it's quite good. Nevertheless, I've some suggested improvements. These all use the vi s/// replacement syntax. Ambiguous 'it': s

[issue29280] gdbm & ndbm support missing in Windows

2017-01-15 Thread Arthur Vanwalleghen
New submission from Arthur Vanwalleghen: When I tried to work with GDBM and Ndbm files I saw that their supporting modules were not found. This can be verified with Pydoc: Pydoc\Python36-32\lib \dbm(package)\Package Contents\gnu|ndbm ErrorDuringImport: problem in dbm.gnu

[issue27280] Paste fail in ipaddress documentation

2016-06-09 Thread Arthur Carcano
New submission from Arthur Carcano: There is a type in the `IPv6Network' constructor doc, fixed in attached patch. -- assignee: docs@python components: Documentation files: patch_doc_ipaddress.patch keywords: patch messages: 267999 nosy: NougatRillettes, docs@python priority: normal

[issue24592] global var defined in module not returned by function

2015-07-08 Thread arthur
New submission from arthur: defined global var, glob.myVar, in separated module imported module containing glob.myVar in function1, func1(): glob.myVar = func1Var = func2() in function2, func2(): if (...): glob.myVar+= abc func2() # call func2() again - recursive else: return glob.myVar I

[issue6818] remove/delete method for zipfile/tarfile objects

2013-04-11 Thread Arthur Darcet
Changes by Arthur Darcet arthur.dar...@gmail.com: -- nosy: +Arthur.Darcet ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6818 ___ ___ Python-bugs

[issue4643] cgitb.html fails if getattr call raises exception

2012-12-06 Thread Arthur Petitpierre
Arthur Petitpierre added the comment: I attached a patch containing both the fix suggested by Allan and a test case. Tested against trunk and python2.7. -- keywords: +patch nosy: +arthur.petitpierre Added file: http://bugs.python.org/file28229/issue4643.patch

[issue1378] fromfd() and dup() for _socket on WIndows

2012-05-09 Thread Arthur Kantor
Arthur Kantor artkan...@gmail.com added the comment: Hi guys It appears, that this patch was meant to go into both the 2.x and 3.x series, but it never made into 2.x Are there still plans to apply it to 2.7? (apologies if I'm asking this in the wrong forum) -- nosy: +Arthur.Kantor