[Python-ideas] Re: Python JIT Compilation Thoughts

2020-06-02 Thread Paul Sokolovsky
Hello, On Wed, 27 May 2020 20:45:15 +0200 Antoine Pitrou wrote: [] > > A recent attempt to collect known Python JITs/compilers: > > https://github.com/pfalcon/awesome-python-compilers (well, > > definitely more recent than > > https://wiki.python.org/moin/PythonImplementations#Compilers). And >

[Python-ideas] Re: Optional keyword arguments

2020-06-02 Thread Rob Cliffe via Python-ideas
On 26/05/2020 07:09, Greg Ewing wrote: Wild idea: Instead of sentinels, have a way of declaring optional arguments with no default, and a way of conditionally assigning a value to them if they are not bound. E.g.     def order(eggs = 4, spam =):     spam ?= Spam() Here the '?=' means "if

[Python-ideas] Re: Optional keyword arguments

2020-06-02 Thread Ricky Teachey
BTW, going back to the question of mutable defaults, it occurs to me > that there is an "obvious" idiom for self-documenting sentinels for > defaults that are deferred because you want a new instance each time > the function is called: use the constructors! Here are some empty > mutables: > >