[issue43535] Make str.join auto-convert inputs to strings.

2021-03-23 Thread Jacob Nilsson
Jacob Nilsson added the comment: For what my opinion is worth, I agree with Grégory's suggestion because the ',' part of ','.join(...) is almost as unintuitive as the problems Raymond's suggestions are trying to fix. I was going to suggest a builtin to work on both str and bytes, like join

[issue43595] Can not add a metclass that inherits both ABCMeta & ABC to a Union

2021-03-23 Thread Jacob Nilsson
Jacob Nilsson added the comment: Hi, I tried both code snippets, and they work for me with the output: typing.Union[str, abc.ABC] For your second code snippet. Tested on 3.7.6 (IPython though) on a Windows machine, can test it on Linux tomorrow. -- nosy: +ajoino

[issue44905] Abstract instance and class attributes for abstract base classes

2021-08-13 Thread Jacob Nilsson
Change by Jacob Nilsson : -- nosy: +ajoino ___ Python tracker <https://bugs.python.org/issue44905> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44905] Abstract instance and class attributes for abstract base classes

2021-08-16 Thread Jacob Nilsson
Jacob Nilsson added the comment: Could one possible downside of this suggestion be, if implemented like in https://newbedev.com/python-abstract-class-shall-force-derived-classes-to-initialize-variable-in-init, a slowdown in code creating a lot of instances of a class with metaclass ABCMeta

[issue46227] add pathlib.Path.walk method

2022-01-02 Thread Jacob Nilsson
Change by Jacob Nilsson : -- nosy: +ajoino ___ Python tracker <https://bugs.python.org/issue46227> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45586] Use starred expressions in list indices

2021-10-23 Thread Jacob Nilsson
Jacob Nilsson added the comment: I don't understand, do you mean that lists should work like in your example? Or that your example code doesn't run? If you mean the first issue, that is ok I guess but I've never used indexing like that outside of numpy, pandas and the like. If you mean

[issue45586] Use starred expressions in list indices

2021-10-23 Thread Jacob Nilsson
Jacob Nilsson added the comment: Oh yeah, the reason lists don't allow the starred expression has nothing to do with the starred expression itself, it's syntactically correct and in your case a[1, *[2, 3], 4] is equivalent to a[1, 2, 3, 4]. The "problem" is that lists do not allo

[issue45586] Use starred expressions in subscripts

2021-10-26 Thread Jacob Nilsson
Jacob Nilsson added the comment: Ok, I see. >>> a[1, 2, *[3, 4]] Would still faith with PEP 646 because lists don't accept tuples, right? >>> a[(1, 2, *[3, 4])] Traceback (most recent call last): File "", line 1, in TypeError: list indices must be i

[issue46461] Kodi crashing

2022-03-06 Thread Jacob Nilsson
Jacob Nilsson added the comment: >From Kodi GH issues, they suspect is related to the work on subinterpreters >https://github.com/xbmc/xbmc/issues/19961#issuecomment-1008151611: "The bulk of this issue is due to how python and it's modules handle sub interpreters. There are s

[issue46771] Add some form of cancel scopes

2022-02-16 Thread Jacob Nilsson
Change by Jacob Nilsson : -- nosy: +ajoino ___ Python tracker <https://bugs.python.org/issue46771> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47137] MemoryError

2022-03-27 Thread Jacob Nilsson
Jacob Nilsson added the comment: Python 3.6 reach end of life in December 2021, is this error reproducible in Python 3.7 and above? If that is still the case, do you have an example of an exact input causing this crash? "random input" is not a lot to go by. -- nos