A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-April/023200.html below:

[Python-Dev] Adding Optik to 2.3 standard library

[Python-Dev] Adding Optik to 2.3 standard library [Python-Dev] Adding Optik to 2.3 standard libraryFred L. Drake, Jr. fdrake@acm.org
Fri, 12 Apr 2002 23:14:26 -0400
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