answers that I got were very useful.
>
> DG
> ___
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
>
deferred eval :/ —
> Regards,
> DG
> ___
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.or
__
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/A7RPR3FSBXEMRYAUXJVYYROCHVHL7DVP/
> > Code of Conduct: http://python.org/psf/codeofconduct/
>
> ___
> Python-ideas mailing list -- python-i
'se, 'SE', 'Se', 'sE'
> (the last two would have the same effect, but the difference in emphasis
> might clarify the author's thought).
> If nothing else, this would push authors into thinking about the empty
> list case, rather than bein
ttps://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/BBFALX57PJI4ALF4O6YGYMHMLNL4U4YI/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Antoine Rozo
ch as we don't like it.
>
> Eric
>
> ___
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python
If these examples were possible (I wouldn't say they are smart designs)
they would lead to recursion errors.
Limitations on MRO are good, they force to keep a quite simple structure.
Le jeu. 7 avr. 2022 à 17:41, malmiteria a écrit :
> Antoine Rozo writes:
> > If the only feature
I, but your multiply-derived class *written before the
> > refactoring* Just Works. As far as I can see, super(), and maybe even
> > the deterministic MRO, is needed to make that work.
> I'm curious about this exemple, do you have a link to share so i could
> h
5JCWC/
> Code of Conduct: http://python.org/psf/codeofconduct/
--
Antoine Rozo
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/M4
t; https://mail.python.org/archives/list/python-ideas@python.org/message/5TJYKFLBHB26WEFFQXMY6AGWS34XTIUR/
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
>
>
> --
>
> CALVIN SPEALMAN
>
> SENIOR QUALITY ENGINEER
>
> cspea...@redhat.com M: +1.33
> nD arrays is offered by the fact that n-dimensional DFT reduces n-dimensional
> circular convolution to element-wise multiplication.
>
> ___
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ide
d an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/W23G6CWWXPCB3L5M2UGGLOEALO5WN4IN/
> Code of Conduct: http://python.org/psf/codeofcond
5HGECRTS3ERK5OMG3GB77EKSAFJV7R/
>> Code of Conduct: http://python.org/psf/codeofconduct/
>
> ___
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.
(and a check on the length or zip_longest to ensure that there is no
other items)
Le sam. 2 mai 2020 à 18:53, Antoine Rozo a écrit :
>
> And if you can't / don't want to create new lists for the values you
> want to compare, a solution could be to use zip & all builtins:
&
de of Conduct: http://python.org/psf/codeofconduct/
--
Antoine Rozo
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.py
> Would you feel better if `yield` was always required?
Yes but then it's the same as defining a generator-function.
> For almost all the examples I've provided a corresponding equivalent in the
> current syntax, so are you saying that you're still confused now or that you
> can't figure it out
line.strip():
> stripped
> ]
>
> I think both of these look great and are easily better than any of the other
> options. And I think it would be the clear winner in any similar situation -
> no careful judgement needed. This would become the one (and only o
to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/RJLGYE4N7NR6JYFSA64VES375U45PIKW/
> Code of Conduct: http://python.org/psf/codeofconduct/
--
An
-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/VGPNG4IBWGRWPEQOAKCNTLBINWQS4BZO/
> Code of Conduct: http://python.org/psf/codeofconduct/
--
Antoine Rozo
__
g/message/GEBY52WVQBFB7J27MRJPZZPJMWUZZJWO/
> > Code of Conduct: http://python.org/psf/codeofconduct/
> ___
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.py
mail.python.org/archives/list/python-ideas@python.org/message/3VOQUSHPYTKLL65V6BUN4MMKKJOXCIKO/
> Code of Conduct: http://python.org/psf/codeofconduct/
--
Antoine Rozo
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to
of the time
> myself (the behavior is a bit more obvious). I'm mostly just curious if the
> difference between |= and dict.update() would end up being similar as far as
> performance goes, with |= having a negligible advantage over dict.update() in
> most situations.
>
;
What if I want to set my enum item to an empty tuple?
--
Antoine Rozo
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.
deas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/LOWRX42JL3SWG4QSOMV3WX4SOLJ
Dismiss my message, I have read `if "art_wt" not in article`. But in the
same way, you could have a function to reset a value in your dict if the
current value evaluates to False.
2018-05-26 11:21 GMT+02:00 Antoine Rozo :
> > if not article["art_wt"]: article["
Python-ideas@python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
>
>
> ___
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
--
Antoine Rozo
___
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
.
>
> So is my proposal, and as usual urging for constructive conversation.
> (i.e. proposing to write own language/translator is not constructive
> conversation)
>
>
> Cheers,
> Mikhail
> _______
> Python-ideas mailing list
> Python-ideas@python
o execute the
>
> following line in their Python interpreter.
>
>pip("install woolamaloo-sheepshavers-goodies --user")
>
> which will install a package which will in turn, as dependencies,
>
> pull in a number of packages which are relevant for sheep shaving but
>
> which have nevertheless irresponsibly been
Chris Angelico :
> On Sat, Oct 14, 2017 at 5:16 AM, Antoine Rozo
> wrote:
> > Hello,
> >
> > A very useful part of the itertools module's documentation is the section
> > "Recipes", giving utility functions that use itertools iterators.
> > But when y
utils).
Can we consider making itertools a package and adding a module
itertools.recipes that implements all these utilility functions?
Regards.
--
Antoine Rozo
___
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/py
eel at
> home in Python, and adopt it. I see this only has promoting a peaceful
> coexistence.
>
> Another pain point is python uses [].append() and JS uses [].join() Having
> a wrapper for append would be helpful.
>
> And for that matter, why isn't append/extend a global? I can add things to
> lots of different collections. lists, sets, strings...
>
>
>
>
>
--
Antoine Rozo
___
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
gt; anyone really planned for anyone to write multi-language code
> involving Python and JS.
>
> ChrisA
> ___
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of C
t;>> point does a method become a global? A member? Do we take the path that
>>> everything is a global? Or should all methods be members? So far it seems
>>> arbitrary.
>>>
>>
>> Okay, its arbitrary.
>>
>> Why is it called [].len instead of
t()``?
> ---
>
> ``PyThreadState_GetDict`` is a TLS, and some of its existing users
> might depend on it being just a TLS. Changing its behaviour to follow
> the Execution Context semantics would break backwards compatibility.
>
>
> PEP 521
> ---
>
> :pep:`521` propose
understand
>
> ~Paul
>
>
> ___
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
--
Antoine Ro
>> a.foo = 'bar'
> Traceback (most recent call last):
> File "", line 1, in
> AttributeError: 'A' object has no attribute 'foo'
>
> -Mike
>
>
> On 2017-07-28 01:06, Antoine Rozo wrote:
>
>> > If an object has no
, is it not effectively immutable?
>
> -Mike
>
> ___
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
A
n?
>
> I am willing to work on a patch.
>
> Barry
>
> ___
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Antoine Rozo
___
* locals().update(mydict)
2017-06-08 0:59 GMT+02:00 Antoine Rozo :
> I think you want something similar to locals.update(mydict)?
>
> 2017-06-08 0:54 GMT+02:00 Erik :
>
>> On 07/06/17 23:42, C Anthony Risinger wrote:
>>
>>> Neither of these are really comparab
rg/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Antoine Rozo
___
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
ython.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
>
> ___
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
teve
> ___
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Antoine Rozo
__
avaScript's design that couldn't be done
>>> better, and most of what it does are things that Python already does
>>> better and has done better for years. In short, I don't see any
>>> advantages at all to doing classes this way, and there are some
>>> non-negligible disadvantages.
>>>
>>
>> Interesting, didn't know that about Javascript. I also don't like
>> Javascript's prototypes very much but thought adding "JavaScript-like" to
>> the title might help explain what I meant.
>>
>> Leaving the possible replacement for classes aside, do you have an
>> opinion specifically about the following?
>>
>> def obj.my_function(a, b):
>>...
>>
>> as syntactic sugar for
>>
>> def my_function(a, b):
>> ...
>>
>> obj.my_function = my_function
>>
>> In my experience this pattern comes actually up quite a bit. E.g. when
>> working with these "symbolic" machine learning frameworks like theano or
>> tensorflow. Apart from that it mixins very easy.
>>
>> What do you think are the odds of something like this actually making it
>> into the Python and if greater than 0 in which timeframe?
>>
>>
>>
>>> --
>>> Brendan Barnwell
>>> "Do not follow where the path may lead. Go, instead, where there is no
>>> path, and leave a trail."
>>> --author unknown
>>> ___
>>> Python-ideas mailing list
>>> Python-ideas@python.org
>>> https://mail.python.org/mailman/listinfo/python-ideas
>>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
>>
>> Thanks,
>>
>> Simon
>>
>>>
>>>
>> ___
>> Python-ideas mailing list
>> Python-ideas@python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
>>
> ___
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
--
Antoine Rozo
___
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
45 matches
Mail list logo