This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jimjjewett
Recipients
Date 2004-04-13.15:32:29
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
pydoc function stripid should strip the ID from an object's 
repr.  It assumes that ID will be represented as one of 
two patterns -- but this is not the case with (at least) 
the 2.3.3 distributed binary, because of case-sensitivity.

' at 0x[0-9a-f]{6,}(>+)$' 
fails because the address is capitalized -- A-F.  (Note 
that hex(15) is not capitalized -- this seems to be unique 
to addresses.)

' at [0-9A-F]{8,}(>+)$'
fails because the address does contain a 0x.

stripid checks both as a guard against false alarms, but 
I'm not sure how to guarantee that an address would 
contain a letter, so matching on either all-upper or 
all-lower may be the tightest possible bound.

History
Date User Action Args
2007-08-23 14:20:55adminlinkissue934282 messages
2007-08-23 14:20:55admincreate