Re: Proposal: SimpleNamespace "recursive" parameter

2020-08-13 Thread Marco Sulla
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

Whitespace not/required

2020-08-13 Thread dn via Python-list
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

Re: Support

2020-08-13 Thread Igor Korot
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

Re: Support

2020-08-13 Thread dn via Python-list
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

Re: EuroPython 2020: Live Stream Recordings available

2020-08-13 Thread Terry Reedy
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 *

RE: Support

2020-08-13 Thread Alexa Oña
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

Re: [Python-ideas] Universal set

2020-08-13 Thread Marco Sulla
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

Re: Spam, bacon, sausage and Spam (was: EuroPython 2020: Data Science Track)

2020-08-13 Thread M.-A. Lemburg
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

EuroPython 2020: Live Stream Recordings available

2020-08-13 Thread M.-A. Lemburg
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

Proposal: SimpleNamespace "recursive" parameter

2020-08-13 Thread David Rashty
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: >>>