
Chris Rebert, 26.04.2011 04:45:
On Mon, Apr 25, 2011 at 7:35 PM, Steven D'Aprano wrote:
haael wrote:
As I said, I want sometimes to import some non-Python namespace, i.e. a Pascal program. If all identifiers are allowed, there would never be a clash of reserved words.
How do you import non-Python code? I don't understand this argument.
I believe Bartosz is referring to bridges to other languages (e.g. PyObjC), or automatically-generated bindings to non-Python libraries.
Those won't be helped much by this proposal, though, given that other languages are free to allow or deny as identifiers (and types, objects, closures, references, pointers, ...) whatever they like. Wrapping tools will always have to be aware of both sides of the wrapper, and deal with differences and ambiguities in one way or another. The simple feature that "with" could then be used unmangled in Python code does not even touch the surface of this. Stefan