Re: [Python-ideas] Decorator to avoid a mistake

2016-11-23 Thread Sebastian Kreft
Related thread https://mail.python.org/pipermail/python-ideas/2016-July/041095.html On Nov 23, 2016 20:30, "François Leblanc" wrote: > > I can imagine using a metaclass specialized witch can be activate or > desactivate but the cost of decorator > call still be here... > >

Re: [Python-ideas] Adding a thin wrapper class around the functions in stdlib.heapq

2017-11-20 Thread Sebastian Kreft
_init__() > > self.heapify = partial(heapq.heapify, self) > self.push = partial(heapq.heappush, self) > ... > > self.heapify() > > > Thoughts? > > _______ > Python-ideas mailing list > Python-ide

Re: [Python-ideas] datetime.timedelta literals

2018-06-03 Thread Sebastian Kreft
_ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ > > -- Sebastian Kreft ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

Re: [Python-ideas] Powerset

2018-10-15 Thread Sebastian Kreft
gt; > Sent from my mobile device > Envoye de mon portable > ___ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of

Re: [Python-ideas] Syntax to conditionally define a field in a dict

2019-04-26 Thread Sebastian Kreft
<https://www.linkedin.com/company/arroyo-networks> > <https://www.github.com/ArroyoNetworks> > ___ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Sebastian Kreft ___ 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] Re: Conditional dict declarations

2019-09-05 Thread Sebastian Kreft
https://mail.python.org/archives/list/python-ideas@python.org/message/JNUMEIHLYVLC64MOVZ4P7ABMOOY3SJC4/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Sebastian Kreft ___ Python-ideas mailing list -- python-ideas@python.org To unsub

[Python-ideas] Re: Exceptions with Message Templates

2019-08-08 Thread Sebastian Kreft
> today, it’s not. > > Of course I’d be happy to be proven wrong on that. :) > ___ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailm

[Python-ideas] Re: Exceptions with Message Templates

2019-08-09 Thread Sebastian Kreft
On Fri, Aug 9, 2019 at 12:55 PM Brett Cannon wrote: > > > On Thu, Aug 8, 2019 at 5:24 PM Sebastian Kreft wrote: > >> >> >> On Thu, Aug 8, 2019 at 7:09 PM Andrew Barnert via Python-ideas < >> python-ideas@python.org> wrote: >> >>> On Au

[Python-ideas] Re: Universal parsing library in the stdlib to alleviate security issues

2019-07-25 Thread Sebastian Kreft
o have a (possibly >> private) parsing library in the stdlib". You don't seem to me to have >> persuaded anyone of this basic suggestion yet, > > > Good observation. How do I convince you that complex input validation > tasks should be left to a parser? > > Than

[Python-ideas] Re: Using 'with' with extra brackets for nicer indentation

2019-11-13 Thread Sebastian Kreft
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/RT3RFVV7KRZ2Z6G2CI3GLHCFLTDUS6DG/ >

[Python-ideas] Re: Fwd: Re: Fwd: re.findfirst()

2019-12-05 Thread Sebastian Kreft
iling 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/7P4ZZMIL2ZFJOONUSZPNUBO

[Python-ideas] Re: PEP 584: Add + and += operators to the built-in dict class.

2019-10-23 Thread Sebastian Kreft
thon.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/TE2IFV2PIUADS35TD6BHPEO5KG6DDTNT/ > Code of Conduct: h

[Python-ideas] Re: More descriptive error message than "too many values to unpack"

2020-03-02 Thread Sebastian Kreft
e > deferring the message rendering until it's requested. > ___ > 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/

[Python-ideas] Re: AVG Function as Built-in

2019-12-26 Thread Sebastian Kreft
l 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/NQB6VU6QSC253JT2SWUO3IWCZ3IG36XP/ > Code of Conduct: http://python.org/psf/codeofconduct/ &g

[Python-ideas] Re: Allow writing optional types as ?int

2020-10-07 Thread Sebastian Kreft
ode of Conduct: http://python.org/psf/codeofconduct/ > -- Sebastian Kreft ___ 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

[Python-ideas] Re: PEP 472 - regarding d[x=1, y=2] and similar

2020-08-20 Thread Sebastian Kreft
tps://pypi.org/project/kwkey/ > > -- > Jonathan > ___ > 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

[Python-ideas] Re: PEP 472 - slices in keyword indices, d[x=1:3]

2020-08-24 Thread Sebastian Kreft
rg/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/TOABKD7A5X653BTTU3MZICWURNGPMY47/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Sebastian Kreft ___ Python-ideas mailing list -- p

[Python-ideas] Re: PEP 637 - support for indexing with keyword arguments (Was: Re: PEP 9999 (provisional): ...)

2020-09-29 Thread Sebastian Kreft
On Tue, Sep 29, 2020 at 7:27 PM David Mertz wrote: > On Tue, Sep 29, 2020 at 12:09 PM Sebastian Kreft wrote: > >> On Tue, Sep 29, 2020 at 6:56 PM David Mertz wrote: >> >>> I still think it would improve the PEP significantly if it added one >>> case of mixe

[Python-ideas] Re: PEP 637 - support for indexing with keyword arguments (Was: Re: PEP 9999 (provisional): ...)

2020-09-29 Thread Sebastian Kreft
deas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/2FDXU6H2VNYBKBEN3DCRADY2DFBEBZG7/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Sebastian Kreft ___ Python-ideas ma

[Python-ideas] Re: PEP 637 - support for indexing with keyword arguments (Was: Re: PEP 9999 (provisional): ...)

2020-09-26 Thread Sebastian Kreft
_ > 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-

[Python-ideas] Re: PEP 637 - support for indexing with keyword arguments (Was: Re: PEP 9999 (provisional): ...)

2020-09-30 Thread Sebastian Kreft
On Wed, Sep 30, 2020 at 2:44 AM Steven D'Aprano wrote: > On Sun, Sep 27, 2020 at 07:59:18AM -0300, Sebastian Kreft wrote: > > > Hi Steven, could you share some examples of what you have in mind. > Having a > > more concrete example of an API that would benefit from > mixe

[Python-ideas] Re: PEP 637 - support for indexing with keyword arguments (Was: Re: PEP 9999 (provisional): ...)

2020-09-27 Thread Sebastian Kreft
On Sun, Sep 27, 2020 at 12:43 AM Steven D'Aprano wrote: > On Sat, Sep 26, 2020 at 01:47:56PM -0300, Sebastian Kreft wrote: > > > In this fashion have you considering having keyword only indices, that is > > to only allow either obj[1, 2] or obj[row=1, col=2] (if th

[Python-ideas] Re: Function suggestion: itertools.one()

2020-07-28 Thread Sebastian Kreft
>>> Noam >>> >>> >>> ___ >>> 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-ideas] Re: Additional LRU cache introspection facilities

2021-01-12 Thread Sebastian Kreft
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/C6YULKSV5RV36WSWMGKWPMLUFDL7YN2Y/ > Code of Conduct: http://python.org/psf/codeof