News for hackers. Stuff that matters.
Re:Toolz: A functional standard library for Python by cabalamat on Thursday January 21, 2021 @03:02PM (#25863481)
Given that Python allows unicode characters in source, I'm surprised it doesn't allow lambda to be replaced by the λ character.
Re:Toolz: A functional standard library for Python by JNRowe on Thursday January 21, 2021 @03:25PM (#25863757)
For those, like me, who get excited by this note that there are restrictions on the Unicode categories that are allowed, see the supported characters¹ and gory details². It is often enough to write math-y code in a usable way, but occasionally you'll find you can't use the character you want.

¹ https://docs.python.org/3/reference/lexical_analysis.html#id...

² https://www.python.org/dev/peps/pep-3131/

Re:Toolz: A functional standard library for Python by dragonwriter on Thursday January 21, 2021 @06:24PM (#25866070)
That would be quite unpythonic. Down that road lies Raku.

EDIT: To be clear, I like Raku. But Python has its own distinct aesthetic.

Re:Toolz: A functional standard library for Python by OJFord on Thursday January 21, 2021 @07:51PM (#25866852)
Well you can't do `l = lambda` to replace it either, it's not really anything to do with allowing full unicode identifiers.
Re:Toolz: A functional standard library for Python by alrs on Thursday January 21, 2021 @03:16PM (#25863635)
I'm surprised that you're surprised.