[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-18 Thread Géry
Géry added the comment: Thanks for the review Serhiy. -- ___ Python tracker <https://bugs.python.org/issue44024> ___ ___ Python-bugs-list mailing list Unsub

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-01-19 Thread Géry
New submission from Géry : The API of [`http.server`](https://docs.python.org/3/library/http.server.html) supports the `directory` optional parameter for `CGIHTTPRequestHandler` (which is inherited from `SimpleHTTPRequestHandler`). The CLI of `http.server` supports the corresponding `-d

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-01-19 Thread Géry
Change by Géry : -- nosy: -docs@python ___ Python tracker <https://bugs.python.org/issue46436> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43474] http.server.BaseHTTPRequestHandler end_header() fails

2022-01-20 Thread Géry
Géry added the comment: > http.server.BaseHTTPRequestHandler end_headers() can reference _header_buffer > array before it is assigned. @grumblor I was about to open the same bug after reading the implementation of http.server this morning and noticing that the attribute _headers_buf

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-01-20 Thread Géry
Change by Géry : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue46436> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46285] protocol_version in http.server.test can be ignored

2022-01-23 Thread Géry
Géry added the comment: Thanks Hugo for opening this issue and Éric for inviting me. As you guys pointed out, function test in module http.server expects a real handler class argument (SimpleHTTPRequestHandler or CGIHTTPRequestHandler), not a partial object partial(SimpleHTTPRequestHandler

[issue46436] Pass the -d/--directory command-line option to http.server.CGIHTTPRequestHandler

2022-01-23 Thread Géry
Géry added the comment: Thanks for mentioning this issue @merwok. As you pointed out, function `test` in module [`http.server`](https://github.com/python/cpython/blob/main/Lib/http/server.py) expects a real request handler class argument (`SimpleHTTPRequestHandler` or `CGIHTTPRequestHandler

[issue46285] protocol_version in http.server.test can be ignored

2022-01-28 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +29181 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30999 ___ Python tracker <https://bugs.python.org/issu

[issue34486] "RuntimeError: release unlocked lock" when starting a thread

2022-02-03 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue34486> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38119] resource tracker destroys shared memory segments when other processes should still have valid access

2022-02-10 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue38119> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue46720] Add support of path-like objects to multiprocessing.set_executable for Windows to match Unix-like systems

2022-02-11 Thread Géry
New submission from Géry : Any [path-like object](https://docs.python.org/3/glossary.html) can be passed to `multiprocessing.set_executable`, i.e. objects with `str`, `bytes`, or `os.PathLike` type. For instance these work (tested on MacOS with all start methods: ‘spawn’, ‘fork’, and

[issue46720] Add support of path-like objects to multiprocessing.set_executable for Windows to match Unix-like systems

2022-02-11 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +29439 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31279 ___ Python tracker <https://bugs.python.org/issu

[issue46720] Add support of path-like objects to multiprocessing.set_executable for Windows to match Unix-like systems

2022-02-11 Thread Géry
Change by Géry : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue46720> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46720] Add support for path-like objects to multiprocessing.set_executable for Windows to be on a par with Unix-like systems

2022-02-11 Thread Géry
Change by Géry : -- title: Add support of path-like objects to multiprocessing.set_executable for Windows to match Unix-like systems -> Add support for path-like objects to multiprocessing.set_executable for Windows to be on a par with Unix-like syst

[issue46851] Document multiprocessing.set_forkserver_preload

2022-02-24 Thread Géry
New submission from Géry : I have just notice that the multiprocessing.set_forkserver_preload (which originates from multiprocessing.forkserver.set_forkserver_preload) is not documented: https://github.com/python/cpython/blob/v3.10.2/Lib/multiprocessing/context.py#L180-L185

[issue46851] Document multiprocessing.set_forkserver_preload

2022-02-24 Thread Géry
Change by Géry : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue46851> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue45274] Race condition in Thread._wait_for_tstate_lock()

2022-03-04 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue45274> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue29971] threading.Lock.acquire() not interruptible on Windows

2022-03-04 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue29971> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38738] Fix formatting of True and False

2022-03-04 Thread Géry
Change by Géry : -- nosy: +maggyero nosy_count: 4.0 -> 5.0 pull_requests: +29809 pull_request: https://github.com/python/cpython/pull/31678 ___ Python tracker <https://bugs.python.org/issu

[issue46934] A started multiprocessing.Process instance cannot be serialised

2022-03-05 Thread Géry
New submission from Géry : The Python program: ``` import multiprocessing import time class Application: def __init__(self): self._event = multiprocessing.Event() self._processes = [ multiprocessing.Process(target=self._worker) for _ in range

[issue46934] A started multiprocessing.Process instance cannot be serialised

2022-03-05 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +29821 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31701 ___ Python tracker <https://bugs.python.org/issu

[issue46934] Started multiprocessing.Process instances are unserialisable

2022-03-05 Thread Géry
Change by Géry : -- title: A started multiprocessing.Process instance cannot be serialised -> Started multiprocessing.Process instances are unserialisable ___ Python tracker <https://bugs.python.org/issu

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2022-03-06 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue23882> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue35844] Calling `Multiprocessing.Queue.close()` too quickly causes intermittent failure (BrokenPipeError)

2022-03-14 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue35844> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue47029] Fix a BrokenPipeError when a multiprocessing.Queue is garbage collected

2022-03-15 Thread Géry
New submission from Géry : A `BrokenPipeError` exception is raised when the queue thread of a `multiprocessing.Queue` still sends enqueued items to the write end of the queue pipe *after* the read end of the queue pipe has been [automatically closed during its garbage collection](https

[issue47029] Fix a BrokenPipeError when a multiprocessing.Queue is garbage collected

2022-03-15 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +30006 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31913 ___ Python tracker <https://bugs.python.org/issu

[issue47029] Fix a BrokenPipeError when a multiprocessing.Queue is garbage collected

2022-03-15 Thread Géry
Géry added the comment: I have attached the following patch: pass a reference to the reader end of the queue pipe to the queue thread so that the reader end is not garbage collected and closed before the queue thread has sent all the buffered data to the writer end

[issue47029] Fix a BrokenPipeError when a multiprocessing.Queue is garbage collected

2022-03-16 Thread Géry
Géry added the comment: I forgot to include the output of the above program: ``` Traceback (most recent call last): File "/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/queues.py", line 251, in _feed send_bytes(o

[issue47083] The __complex__ method is missing from the complex, float, and int built-in types

2022-03-21 Thread Géry
New submission from Géry : ## Expected outcome ``` >>> hasattr(complex(), '__complex__') True >>> hasattr(float(), '__complex__') True >>> hasattr(int(), '__complex__') True ``` ## Actual outcome ``` >>> hasattr(complex

[issue672115] Assignment to __bases__ of direct object subclasses

2022-03-22 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue672115> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue672115] Assignment to __bases__ of direct object subclasses

2022-03-22 Thread Géry
Change by Géry : -- versions: +Python 3.11 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue672115> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2022-03-23 Thread Géry
Géry added the comment: Apologies for the long delay. > Do we have any meaningful examples to show that this is desired and useful? A use case of `super()` in a `classmethod` that comes to mind is for parameterized factory methods. It is a variation of the classic factory method des

[issue47122] Fix the table of methods in the collections.abc documentation

2022-03-25 Thread Géry
New submission from Géry : This pull request makes the following changes to the table of methods in the [`collections.abc` documentation](https://docs.python.org/3/library/collections.abc.html): - `Reversible`: add `__iter__` abstract method; - `Generator`: replace `__iter__` with inherited

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2022-03-29 Thread Géry
Géry added the comment: Thanks for the review. @rhettinger > And adding classmethod() support in super_descr_get() would create tight > coupling where there should be separate concerns (no other descriptor call is > classmethod specific). The descriptors `super`, `property`, and

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2022-03-29 Thread Géry
Géry added the comment: > On StackOverflow, there has been some mild interest in the interactions > between super() and classmethod(): > > * https://stackoverflow.com/questions/64637174 > * https://stackoverflow.com/questions/1269217 > * https://stackoverflow.com/question

[issue47083] The __complex__ method is missing from the complex, float, and int built-in types

2022-03-29 Thread Géry
Géry added the comment: > I think this may fine as-is. In general, virtiual classes only promise that > an operation will work rather than promsing the presence of a particular > method. Okay, I just wanted to make sure that the absence of the `__complex__` method was intended a

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2022-03-30 Thread Géry
Géry added the comment: By the way: > I don't think we need two ways to do it. So do you think we could drop the support for single-argument super? Michele said in his article: > There is a single use case for the single argument syntax of super that I am > aware of, but I

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2022-03-30 Thread Géry
Géry added the comment: Alright, thanks. Raymond, any objections before I propose the removal of one-argument super? -- ___ Python tracker <https://bugs.python.org/issue44

[issue47178] Improve the implementations of Sequence.index and MutableSequence.extend in collections.abc

2022-03-30 Thread Géry
New submission from Géry : This P.R. will make the following changes to the `collections.abc` module: - simplify the implementation with slicing in function `Sequence.index`. - remove an unnecessary copy of `self` when a sequence extends itself in function `MutableSequence.extend

[issue47180] Remove unnecessary registration of weakref.WeakSet as a subtype of _collections_abc.Set

2022-03-31 Thread Géry
New submission from Géry : Registering `weakref.WeakSet` as a subtype of `_collections_abc.MutableSet` implies that it is also a subtype of `_collections_abc.Set` since `_collections_abc.MutableSet` is a subtype of `_collections_abc.Set` and the subtype relation is transitive

[issue47206] pickle docs are wrong about nested classes

2022-04-04 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue47206> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue47220] Document the optional callback parameter of weakref.WeakMethod

2022-04-04 Thread Géry
New submission from Géry : - Document the optional *callback* parameter of `weakref.WeakMethod`. - Fix a few spelling mistakes. - Improve wording. -- components: Library (Lib) messages: 416697 nosy: maggyero priority: normal pull_requests: 30376 severity: normal status: open title

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2022-04-05 Thread Géry
Géry added the comment: > Anthony Sottile provided this search to showing that at least a few popular > projects are using the one argument form of super(): Thanks for the link. But it gives lots of false positives. Only two popular projects (> 1k stars) use autosuper (urwid an

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2019-08-25 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue1152248> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue17083] can't specify newline string for readline for binary files

2019-08-25 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue17083> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue37969] urllib.parse functions reporting false equivalent URIs

2019-08-28 Thread Géry
New submission from Géry : The Python library documentation of the `urllib.parse.urlunparse <https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlunparse>`_ and `urllib.parse.urlunsplit <https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlunsplit>`

[issue37969] urllib.parse functions reporting false equivalent URIs

2019-09-02 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +15308 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15642 ___ Python tracker <https://bugs.python.org/issu

[issue37969] urllib.parse functions reporting false equivalent URIs

2019-09-02 Thread Géry
Géry added the comment: @nicktimko Thanks for the historical track. Here is a patch that solves this issue by updating the `urlsplit` and `urlunsplit` functions of the `urllib.parse` module to keep the '?' and '#' delimiters in URIs if present, even if their associated co

[issue37969] Correct urllib.parse functions dropping the delimiters of empty URI components

2019-09-10 Thread Géry
Change by Géry : -- title: urllib.parse functions reporting false equivalent URIs -> Correct urllib.parse functions dropping the delimiters of empty URI components ___ Python tracker <https://bugs.python.org/issu

[issue38255] Replace "method" with "attribute" in the description of super()

2019-09-23 Thread Géry
New submission from Géry : The description of `super()` uses the word "method" instead of the more general word "attribute". > super([type[, object-or-type]]) > Return a proxy object that delegates method calls to a parent or sibling > class of *type*. This is u

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2019-09-24 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue9334> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38255] Replace "method" with "attribute" in the description of super()

2019-09-25 Thread Géry
Géry added the comment: Alright, I am fine with @rhettinger's alternative PR too. I am closing this. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.pyth

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-01 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +16112 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16520 ___ Python tracker <https://bugs.python.org/issu

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-01 Thread Géry
Géry added the comment: I have opened a PR here: https://github.com/python/cpython/pull/16520 -- ___ Python tracker <https://bugs.python.org/issue38336> ___ ___

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-01 Thread Géry
New submission from Géry : The [language documentation](https://docs.python.org/3/reference/datamodel.html#invoking-descriptors) states: > Data descriptors with __set__() and __get__() defined always override a > redefinition in an instance dictionary. In contrast, non-data descripto

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-01 Thread Géry
Change by Géry : -- nosy: +rhettinger ___ Python tracker <https://bugs.python.org/issue38336> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-28 Thread Géry
Change by Géry : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue38336> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43479] Remove a duplicate comment and assignment in http.client

2021-03-12 Thread Géry
New submission from Géry : Remove a duplicate comment and assignment following the usage of a name already assigned in the http.client standard library. -- components: Library (Lib) messages: 388538 nosy: maggyero priority: normal pull_requests: 23597 severity: normal status: open

[issue43639] Do not raise AttributeError on instance attribute update/deletion if data descriptor with missing __set__/__delete__ method found on its type

2021-03-27 Thread Géry
New submission from Géry : Currently, the `object.__setattr__` and `type.__setattr__` methods raise an `AttributeError` during attribute *update* on an instance if its type has an attribute which is a *data* descriptor without a `__set__` method. Likewise, the `object.__delattr__` and `type

[issue43639] Do not raise AttributeError on instance attribute update/deletion if data descriptor with missing __set__/__delete__ method found on its type

2021-03-27 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +23781 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25033 ___ Python tracker <https://bugs.python.org/issu

[issue43814] Fix the error message for disallowed __weakref__ slots

2021-04-12 Thread Géry
New submission from Géry : When ``` TypeError: __weakref__ slot disallowed: either we already got one, or __itemsize__ != 0 ``` is raised, the second condition `base->tp_itemsize != 0` (i.e. the base is a *variable-length* type, like `int`, `tuple` and `bytes`) in the error message

[issue43814] Fix the error message for disallowed __weakref__ slots

2021-04-12 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +24096 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25362 ___ Python tracker <https://bugs.python.org/issu

[issue43857] Fix the AttributeError message for deletion of a missing attribute

2021-04-15 Thread Géry
New submission from Géry : Compare the `AttributeError` messages in this interactive Python session: ```python >>> class A: ... y = 0 ... __slots__ = ('z',) ... >>> A().x […] AttributeError: 'A' object has no attribute 'x' >>>

[issue43857] Fix the AttributeError message for deletion of a missing attribute

2021-04-15 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +24158 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25424 ___ Python tracker <https://bugs.python.org/issu

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Géry
New submission from Géry : This PR updates the page [*Built-in Functions*](https://docs.python.org/3.9/library/functions.html#super) of the Python library documentation: `super` is not a `function` (`isinstance(super, type(lambda: None))` is `False`), it is a `type` (`isinstance(super, type

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +24212 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25489 ___ Python tracker <https://bugs.python.org/issu

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Géry
Géry added the comment: > Looking again, it seems to someone has already started applying class markup > despite previous decisions not to do so. Yes, and he forgot super: class bool([x]) class bytearray([source[, encoding[, errors]]]) class bytes([source[, encoding[, errors]]])

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Géry
Géry added the comment: > Elsewhere in the docs, all the links to this entry use the markup, > :func:`super` which looks nicer in the docs than the class reference. I was suggesting only to update the block Sphinx directive “.. function::” to “.. class::” for defining the signature (s

[issue44024] Use common TypeError message for built-in functions getattr and hasattr

2021-05-03 Thread Géry
New submission from Géry : Problem --- Actual behaviour: ```python >>> getattr('foobar', 123) Traceback (most recent call last): File "", line 1, in TypeError: getattr(): attribute name must be string >>> hasattr('foobar', 123) Tracebac

[issue44024] Use common TypeError message for built-in functions getattr and hasattr

2021-05-03 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +24544 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25863 ___ Python tracker <https://bugs.python.org/issu

[issue44024] Improve the error message for non-string second arguments passed to the built-in functions getattr and hasattr

2021-05-04 Thread Géry
Change by Géry : -- title: Use common TypeError message for built-in functions getattr and hasattr -> Improve the error message for non-string second arguments passed to the built-in functions getattr and hasattr ___ Python tracker <

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2021-05-05 Thread Géry
Change by Géry : -- title: Improve the error message for non-string second arguments passed to the built-in functions getattr and hasattr -> Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasa

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2021-05-09 Thread Géry
New submission from Géry : A use case of one-argument `super` (aka unbound `super`) is Guido van Rossum’s autosuper described in his 2002 article [*Unifying types and classes in Python 2.2*](https://www.python.org/download/releases/2.2.3/descrintro/#cooperation). It works with functions, but

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2021-05-09 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +24660 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26009 ___ Python tracker <https://bugs.python.org/issu

[issue39452] Improve the __main__ module documentation

2021-08-31 Thread Géry
Géry added the comment: @jack__d Thanks for the rewrite! This is a great expansion. Unfortunately I didn’t have the time to review it before the merge. If I find something to be improved I will let you know. @gvanrossum > Your docs seem to promote the second, whereas I've usually p

[issue39452] Improve the __main__ module documentation

2021-08-31 Thread Géry
Géry added the comment: No worries, it was almost twenty years ago. > But it's probably better to raise a dedicated exception in that case and > catch it in main(), rather than just calling sys.exit() deep inside the other > code. Yes I agree, and I think you explained very

[issue38950] argparse uses "optional arguments" for "keyword arguments"

2019-12-01 Thread Géry
New submission from Géry : The argparse module incorrectly uses the terms "optional arguments" for keyword arguments. For instance this argument parser takes a required keyword argument and an optional positional argument, but classifies the former as an "optional argument&quo

[issue9694] argparse required arguments displayed under "optional arguments"

2019-12-03 Thread Géry
Géry added the comment: I have just run into the same issue here: https://bugs.python.org/issue38950 - I prefer Terry J. Reedy's "keyword arguments" as it is clear and consistent with "positional arguments". - But Steven Bethard 's "flag arguments" loo

[issue38950] argparse uses "optional arguments" for "keyword arguments"

2019-12-03 Thread Géry
Géry added the comment: Thanks paul j3 for the link. I am continuing the discussion there. -- ___ Python tracker <https://bugs.python.org/issue38950> ___ ___

[issue39037] Wrong trial order of __exit__ and __enter__ in the with statement

2019-12-13 Thread Géry
New submission from Géry : >>> class A: pass ... >>> with A(): pass ... Traceback (most recent call last): File "", line 1, in AttributeError: __enter__ I expected `AttributeError: __exit__`, since PEP 343 states (https://www.

[issue39037] Wrong trial order of __exit__ and __enter__ in the with statement

2019-12-13 Thread Géry
Géry added the comment: Thanks @mark.dickinson for the link. Can I open a documentation PR for this? -- ___ Python tracker <https://bugs.python.org/issue39

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-13 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue27100> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue39037] Wrong trial order of __exit__ and __enter__ in the with statement

2019-12-14 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +17078 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17608 ___ Python tracker <https://bugs.python.org/issu

[issue39037] Wrong trial order of __exit__ and __enter__ in the with statement

2019-12-14 Thread Géry
Géry added the comment: Done @brett.cannon, would you like to review it? https://github.com/python/cpython/pull/17608 -- ___ Python tracker <https://bugs.python.org/issue39

[issue39037] Fix the trial order of the __exit__ and __enter__ methods in the with statement documentation

2019-12-14 Thread Géry
Change by Géry : -- title: Wrong trial order of __exit__ and __enter__ in the with statement -> Fix the trial order of the __exit__ and __enter__ methods in the with statement documentation ___ Python tracker <https://bugs.python.org/issu

[issue38295] test_relative_path of test_py_compile fails on macOS 10.15 Catalina

2019-12-14 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker <https://bugs.python.org/issue38295> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-14 Thread Géry
Change by Géry : -- pull_requests: +17079 pull_request: https://github.com/python/cpython/pull/17609 ___ Python tracker <https://bugs.python.org/issue27

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-14 Thread Géry
Change by Géry : -- pull_requests: -17079 ___ Python tracker <https://bugs.python.org/issue27100> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39048] Reorder the __aenter__ and __aexit__ checks for async with

2019-12-14 Thread Géry
New submission from Géry : Following https://bugs.python.org/issue27100 which did it for the with statement, what was left to do was to reorder the __aenter__ and __aexit__ method checks for the async with statement. I have opened a PR for this here: https://github.com/python/cpython/pull

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-14 Thread Géry
Change by Géry : -- pull_requests: +17081 pull_request: https://github.com/python/cpython/pull/17609 ___ Python tracker <https://bugs.python.org/issue27

[issue39048] bpo-39048: Reorder the __aenter__ and __aexit__ method checks for the async with statement

2019-12-14 Thread Géry
Change by Géry : -- title: Reorder the __aenter__ and __aexit__ checks for async with -> bpo-39048: Reorder the __aenter__ and __aexit__ method checks for the async with statement ___ Python tracker <https://bugs.python.org/issu

[issue39048] Reorder the __aenter__ and __aexit__ method checks for the async with statement

2019-12-14 Thread Géry
Change by Géry : -- title: bpo-39048: Reorder the __aenter__ and __aexit__ method checks for the async with statement -> Reorder the __aenter__ and __aexit__ method checks for the async with statement ___ Python tracker <https://bugs.pyth

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2019-12-14 Thread Géry
Géry added the comment: @ncoghlan > Reviewing the discussion, I assume this was left open to cover reordering the > __aenter__ and __aexit__ checks for async with, but that can just as easily > be handled as a separate issue (which would also be clearer at the NEWS > level).

[issue39037] Fix the trial order of the __exit__ and __enter__ methods in the with statement documentation

2019-12-15 Thread Géry
Géry added the comment: @gvanrossum By the way, is there any particular reason why the ``try`` statement implementation equivalent to the ``with`` statement given in PEP 343 puts the finally clause in an outer ``try`` statement instead of in the inner ``try`` statement? (cf. https

[issue39037] Fix the trial order of the __exit__ and __enter__ methods in the with statement documentation

2019-12-15 Thread Géry
Géry added the comment: Thanks @ncoghlan, it perfectly answered my question on Stack Overflow: https://stackoverflow.com/questions/59322585/what-is-the-exact-try-statement-equivalent-of-the-with-statement-in-python -- ___ Python tracker <ht

[issue39037] Fix the trial order of the __exit__ and __enter__ methods in the with statement documentation

2019-12-30 Thread Géry
Change by Géry : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue39037> ___ ___

[issue39048] Change the lookup order of __aenter__ and __aexit__ for async with

2020-01-13 Thread Géry
Change by Géry : -- title: Reorder __aenter__ & __aexit__ checks for async with statement -> Change the lookup order of __aenter__ and __aexit__ for async with ___ Python tracker <https://bugs.python.org/

[issue39048] Look up __aenter__ before __aexit__ in async with

2020-01-14 Thread Géry
Change by Géry : -- title: Change the lookup order of __aenter__ and __aexit__ for async with -> Look up __aenter__ before __aexit__ in async with ___ Python tracker <https://bugs.python.org/issu

[issue39037] Look up __enter__ before __exit__ in the with statement documentation

2020-01-14 Thread Géry
Change by Géry : -- title: Fix the trial order of the __exit__ and __enter__ methods in the with statement documentation -> Look up __enter__ before __exit__ in the with statement documentation ___ Python tracker <https://bugs.pyth

[issue39048] Look up __aenter__ before __aexit__ in the async with statement

2020-01-14 Thread Géry
Change by Géry : -- title: Look up __aenter__ before __aexit__ in async with -> Look up __aenter__ before __aexit__ in the async with statement ___ Python tracker <https://bugs.python.org/issu

  1   2   >