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
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
Change by Jacob Nilsson :
--
nosy: +ajoino
___
Python tracker
<https://bugs.python.org/issue44905>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Jacob Nilsson :
--
nosy: +ajoino
___
Python tracker
<https://bugs.python.org/issue46227>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Change by Jacob Nilsson :
--
nosy: +ajoino
___
Python tracker
<https://bugs.python.org/issue46771>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
11 matches
Mail list logo