This seems to work:
from types import SimpleNamespace
from collections.abc import Iterable
def isIterableNotStr(arg):
return isinstance(arg, Iterable) and not isinstance(arg, str)
class DeepNamespace(SimpleNamespace):
def namespacesFromIterable(self, arg):
vals = []
chang
Although many new-comers are intrigued by the compulsory indentation
rule, I have been surprised to discover that even though whitespace does
not usually feature as a formatting-specification, nevertheless Python
sometimes requires an absence of whitespace.
Will this behavior/requirement conti
Hi,
On Thu, Aug 13, 2020 at 5:46 PM dn via Python-list
wrote:
>
> On 14/08/2020 08:31, Alexa Oña wrote:
> > Helo, I am already subscribed.
> >
> > I
> > De: Alexa Oña
> > Enviado: jueves, 13 de agosto de 2020 18:51
> > Para: python-list@python.org
> > Asunto: Sup
On 14/08/2020 08:31, Alexa Oña wrote:
Helo, I am already subscribed.
I
De: Alexa Oña
Enviado: jueves, 13 de agosto de 2020 18:51
Para: python-list@python.org
Asunto: Support
Hello, I am Alexa
I have tried to install PYTHON 3.8.5, but could not install it on my
On 8/13/2020 9:44 AM, M.-A. Lemburg wrote:
We’re happy to announce the public availability of the live stream
recordings from EuroPython 2020. They were already available to all
conference attendees since the sprint days.
* EuroPython YouTube Channel *
Helo, I am already subscribed.
I
De: Alexa Oña
Enviado: jueves, 13 de agosto de 2020 18:51
Para: python-list@python.org
Asunto: Support
Hello, I am Alexa
I have tried to install PYTHON 3.8.5, but could not install it on my computer.
I would like to receive help
assert(The set that contains everything is God)
Compile with -OO
On Mon, 10 Aug 2020 at 13:23, haael wrote:
>
>
> Forgive me if this has already been discussed.
>
>
> Could we add the idea of "negative" sets to Python? That means sets that
> contain EVERYTHING EXCEPT certain elements.
>
>
> Fir
On 22.07.2020 15:00, Christian Heimes wrote:
> Hi MAL,
>
> would it be possible to reduce the amount of EuroPython spam on
> @python.org mailing lists to a sensible level? This mailing list is a
> general discussion list for the Python programming language. It's not a
> conference advertisement li
We’re happy to announce the public availability of the live stream
recordings from EuroPython 2020. They were already available to all
conference attendees since the sprint days.
* EuroPython YouTube Channel *
http://europython.tv/
We have collected the
It would be nice if you could do this to create a "nested" SimpleNamespace:
>>> d = {"_meta": {"fields": ({"name": "field0"}, {"name": "field1"})}}
>>> sns = SimpleNamespace(**d)
>>> print(sns._meta.fields[0].name) # This is what I wish you could do
'field0'
SimpleNamespace does this though:
>>>
10 matches
Mail list logo