Storing objects required by functions.
exarkun at intarweb.us
Tue Dec 30 20:33:44 CET 2003
On Tue, Dec 30, 2003 at 12:43:13PM -0500, Terry Reedy wrote:
> I default args less bothersome than some people. The only problem for me
> is that a caller may accidentally give nonesense second param. If this can
> silently give a junk answer, this is not very acceptable. In this case,
> random objects without a match() method would raise an exception.
> > g = re.compile('...')
> Use _ to indicate 'private' or 'local-use-only' status.
> _hex = re.compile()
Why should it be local-use-only?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 196 bytes
Desc: Digital signature
More information about the Python-list