min and max id numbers
Paul Rubin
http
Sat Dec 6 04:03:45 EST 2003
"r.e.s." <r.s at XXmindspring.com> writes:
> Well, I only meant it as a "crazy crock" kind of game, but without
> modifying the interpreter. Suppose Jane is allowed N keystrokes
> at Python's interactive window, then likewise for John, and none
> of their own code can be imported. Say anyone making the machine
> hang, or not come back to the prompt within 5 minutes, loses. The
> machine only has so much memory, so is it really obvious that John
> can always create an object HI-er than any of Jane's? (Sorry if
> in my ignorance I'm imagining an altogether ridiculous scenario ;o)
What I don't think you can do is make an object "Hi" which necessarily
has a higher address than all other objects in the same Python
instance, including those created later than "Hi", without modifying
the interpreter. I thought that's what you were asking.
More information about the Python-list
mailing list