[issue39865] getattr silences an unrelated AttributeError

2020-03-05 Thread pasenor
New submission from pasenor : if a class has a descriptor and a defined __getattr__ method, and an AttributeError (unrelated to the descriptor lookup) is raised inside the descriptor, it will be silenced: class A: @property def myprop(self): print("property c

[issue37829] Documentation of stdlib: add example of mixed arguments to dict()

2019-08-12 Thread pasenor
Change by pasenor : -- keywords: +patch pull_requests: +14946 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15220 ___ Python tracker <https://bugs.python.org/issu

[issue37829] Documentation of stdlib: add example of mixed arguments to dict()

2019-08-12 Thread pasenor
New submission from pasenor : The following use of the dict() function with both positional and keyword arguments does follow from the description, but probably needs it's own example: dict({'a': 1}, b=2}) == {'a': 1, 'b': 2} -- assignee: docs@python components: Documentation