isNumber? check

Skip Montanaro skip at pobox.com
Mon Sep 29 17:00:04 EDT 2003


    >> Why do you want to do so?

    Rob> I am writing an interpreter, and my parser has to decide if an
    Rob> expression is a number or not.

Define a regular expression which matches your notion of what numbers look
like in your interpreter while your tokens are still strings.

Skip





More information about the Python-list mailing list