> You can't import literals. They're syntax, not just bound names.

I'm way out of my comfort zone now, but the parser could for
`123.45_f`
give
`__literal_f__(123.45)`
and then that function should be imported.

I'm sure this idea has many shortcomings that I don't see, but that was the
reason why I wanted to import stuff.

Pål
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to