Storing objects required by functions.

Jp Calderone exarkun at intarweb.us
Tue Dec 30 14:33:44 EST 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?

  Jp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20031230/d24ea056/attachment.sig>


More information about the Python-list mailing list