On Sun, Nov 14, 2021 at 9:51 AM Chris Angelico <ros...@gmail.com> wrote:

>  Also, it's entirely possible that future
> versions of Python will have a concept of optional arguments that
> don't *have* defaults,


As noticed earlier in this thread, it seems it's currently possible to do
that with functions written in C. (see bisect in Python 3.8). Sorry to be
too lazy to go see how that's done, but as you've been digging into this
code I figured you'd already know.

So how hard would it be to expose that functionality in pure Python? Maybe
that's worth pursuing to get around the "no perfect sentinel" problem.

-CHB

-- 
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
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/BSVSHMC5UGDEUEF5XEQUXJMAM6NA2AJV/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to