Emulating Pascal input

Carel Fellinger carel.fellinger at iae.nl
Thu May 23 21:31:49 EDT 2002


On Fri, May 24, 2002 at 02:58:26AM +0200, Carel Fellinger wrote:
...
>    >>> def readln(from, *types, seperator=None):

argh, this used to work (I think:), but now seperator must preceed
*types, and that means it's useless.  So extra trickery is needed:(

   >>> def readln(from, *types, **kws):
   ...     assert kws.keys() in [["seperator"], []]
   ...     seperator = kws.get("seperator", None)







More information about the Python-list mailing list