[issue29944] Argumentless super() fails in classes constructed with type()

2021-12-07 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue29944> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41232] Python `functools.wraps` doesn't deal with defaults correctly

2020-08-06 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue41232> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39753] inspecting a partial with bound keywods gives incorrect signature

2020-02-27 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue39753> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39775] inspect.Signature.parameters should be an OrderedDict, not a plain dict

2020-02-27 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue39775> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17422] language reference should specify restrictions on class namespace

2020-02-27 Thread Caleb Donovick
Change by Caleb Donovick : -- pull_requests: +18041 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18682 ___ Python tracker <https://bugs.python.org/issu

[issue17422] language reference should specify restrictions on class namespace

2020-02-27 Thread Caleb Donovick
Caleb Donovick added the comment: While It is perfectly fine behavior for CPython to use a dict, as dict is an ordered mapping. I think Eric is right that the data model should not specify that a dict is necessarily used in the absence of __prepare__

[issue17422] language reference should specify restrictions on class namespace

2020-02-07 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue17422> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2019-10-24 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue35113> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37922] inspect.getsource returns wrong class definition when multiple class definitions share the same name (but are defined in different scopes)

2019-08-22 Thread Caleb Donovick
Caleb Donovick added the comment: I think findsource could be made more robust by using __qualname__ if it available. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37922] inspect.getsource returns wrong class definition when multiple class definitions share the same name (but are defined in different scopes)

2019-08-22 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue37922> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35083] Fix documentation for __instancecheck__

2019-07-29 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue35083> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37670] Description of UserDict is misleading

2019-07-24 Thread Caleb Donovick
New submission from Caleb Donovick : The documentation for collections.UserDict states "In addition to supporting the methods and operations of mappings, UserDict instances provide the following attribute: ..." This however is misleading as it supports the operations of mutabl

[issue36881] isinstance raises TypeError for metaclass with metaclass=ABCMeta

2019-07-01 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue36881> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Caleb Donovick added the comment: I have another idea, instead of baking in the semantics of the environmental variables, we could simply add the hooks __VENV_ACTIVATE_EXTRAS__ and __VENV_DEACTIVATE_EXTRAS__ to activate. By default they would be replaced by '', but would allow subclasses

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Caleb Donovick added the comment: >PowerShell has a full programming language and all details can be found in >pyvenv.cfg now as of Python 3.8. So Activate.ps1 can read that file to get >what it needs to set paths and the prompt which is what gets substituted into >the generate

[issue37354] Write PowerShell Activate.ps1 to be static so it can be signed

2019-06-20 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue37354> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Caleb Donovick added the comment: > I didn't say environment variables weren't commonly used. I'm talking about > the specific functionality this issue is about. This is likely true, to most people venv is black magic. That doesn't mean that people wouldn't use it if the functio

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Caleb Donovick added the comment: In regards to the added complexity by needing to be implemented across all shells, the functionality I am requesting already exists across all shells (e.g. setting PYTHONPATH) just not in a extensible way

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Caleb Donovick added the comment: Common python libraries that make use of environmental variables: - django - flask - jupyter - TensorFlow This is just off the top my head. While most developers are probably fine just setting the required variables at a system level that doesn't mean

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Caleb Donovick added the comment: I have basic version working in POSIX. -- ___ Python tracker <https://bugs.python.org/issue37349> ___ ___ Python-bugs-list m

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
Change by Caleb Donovick : -- keywords: +patch pull_requests: +14096 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14272 ___ Python tracker <https://bugs.python.org/issu

[issue37349] venv.EnvBuilder environmental variable hooks

2019-06-20 Thread Caleb Donovick
New submission from Caleb Donovick : Currently EnvBuilder allows for a number of customizations of virtual environments, however, it does not allow for any modifications of the activate script itself (unless one wants to rewrite it completely). Yet, it is fairly common requirement

[issue29282] Fused multiply-add: proposal to add math.fma()

2019-05-16 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue29282> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35297] untokenize documentation is not correct

2019-04-16 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue35297> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17421] Drop restriction that meta.__prepare__() must return a dict (subclass)

2019-03-12 Thread Caleb Donovick
Caleb Donovick added the comment: In my mind this seems like a bug. PEP 3115 states: ''' __prepare__ returns a dictionary-like object which is used to store the class member definitions during evaluation of the class body. In other words, the class body is evaluated as a function block (just

[issue17421] Drop restriction that meta.__prepare__() must return a dict (subclass)

2019-03-12 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker <https://bugs.python.org/issue17421> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35992] Metaclasses interfere with __class_getitem__

2019-02-13 Thread Caleb Donovick
New submission from Caleb Donovick : OS: Debian testing python3 -VV: Python 3.7.2+ (default, Feb 2 2019, 14:31:48) [gcc 8.2.0] The following: ``` class Meta(type): pass class X(metaclass=Meta): def __class_getitem__(cls, key): return key X[10] ``` Results in ``` TypeError