Message45673
| Author |
trevp |
| Recipients |
| Date |
2004年03月27日.06:45:33 |
| 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:54 | admin | link | issue923643 messages |
| 2007年08月23日 15:36:54 | admin | create |
|