Hello Greg,
thank you for your answer. I have checked it twice and the file is really
empty.
I even opened it with a hex editor - no content.
BUT in order to create a bug ticket I tried to make a mcve and I didn't
succeed.
I copied the function (load_plugins) 1 to 1, but outside my program it
works
There is a simple and obvious way to make sure you have a tuple by invoking the
keyword/function in making it:
>>> a=('first')
>>> type(a)
>>> a=("first",)
>>> type(a)
>>> a=tuple("first")
>>> type(a)
That seems more explicit than adding a trailing comma. It also is a simple way
to make an
On 2020-09-20 23:59, Avi Gross via Python-list wrote:
There is a simple and obvious way to make sure you have a tuple by invoking the
keyword/function in making it:
a=('first')
type(a)
a=("first",)
type(a)
a=tuple("first")
type(a)
That seems more explicit than adding a trailing comm
On 21/09/20 10:59 am, Avi Gross wrote:
a=tuple("first")
type(a)
That seems more explicit than adding a trailing comma.
It doesn't do what you want, though:
>>> a = tuple("first")
>>> print(a)
('f', 'i', 'r', 's', 't')
If you really want to use tuple() to create a 1-tuple without
using a tr
('M','R','A','B') is correct. I appreciate the correction. I did not look to
see the content of what I created, just the type!
>>> a = tuple("first")
>>> a
('f', 'i', 'r', 's', 't')
>>> type(a)
But I thought adding a comma would help and it does not!
>>> b = tuple("first",)
>>> b
('f', 'i', 'r'
On 20Sep2020 20:33, Avi Gross wrote:
>('M','R','A','B') is correct. I appreciate the correction. I did not look to
>see the content of what I created, just the type!
>
a = tuple("first")
a
>('f', 'i', 'r', 's', 't')
type(a)
>
>
>But I thought adding a comma would help and it does no