Charles Hixson <charleshixsn at earthlink.net> writes: > Not necessarily. import could be a special function that doesn't need > parentheses around it's arguments or comma separators. That could be > syntax sugar for: > import (names, namedAs, fromModule, searchmethod) or > import (names =[theNames], namedAd=[localNames], > fromModule=fromModule, searchMethod=upFromCurrent) > > OTOH, to me it looks more like Smalltalk than like Python. An > explicit import function without special sugar looks more Pythonic. > (But that would break backward compatibility.) > Perhaps the current method could be deprecated, and an import function > be the replacement? I really don't think you could make that work (unless you want to write math = import("math") everywhere, which you can almost do today...) Cheers, mwh -- Ya, ya, ya, except ... if I were built out of KSR chips, I'd be running at 25 or 50 MHz, and would be wrong about ALMOST EVERYTHING almost ALL THE TIME just due to being a computer! -- Tim Peters, 30 Apr 97
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4