homepage

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 trevp
Recipients
Date 2004年03月27日.06:45:54
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=973611
You're right, we should support unsigned strings somehow. 
Adding another argument to the int() and long() constructors 
would be messy, though. How about:
n = long(s, 256) #unsigned
n = long(s, -256) #signed
n.tounsignedstring()
n.tosignedstring()
The "-256" thing is a hack, I admit.. but it kinda grows on 
you, if you stare it at awhile :-)...
History
Date User Action Args
2007年08月23日 15:36:54adminlinkissue923643 messages
2007年08月23日 15:36:54admincreate

AltStyle によって変換されたページ (->オリジナル) /