Barry A. Warsaw writes: > Yes. Move getopt.py to getopt/_getopt.py and put this in > getopt/__init__.py: Actually, I'd call getopt.py getopt/classic.py, but that's just me. ;) > # For backwards compatibility > from _getopt import getopt, error, GetoptError > # For convenience > from OptionParser import OptionParser > > so some such similar incantation (I don't remember off-hand whether > the module names should be fully-qualified or not). Either should be fine, but we've been recommending full package names for general use, so I think using that would be good form. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Zope Corporation
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