Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • \$\begingroup\$ This is limited to 1e9 characters, though... not technically unlimited. \$\endgroup\$ Commented Jan 30, 2011 at 13:15
  • 2
    \$\begingroup\$ It's not even legal Python, it lacks an argument to os.read(). Should be os.read(0,...) \$\endgroup\$ Commented Jan 30, 2011 at 15:55
  • \$\begingroup\$ @hallvabo, oops you are correct, should be 35 chars.9e9 doesn't work because it is too big to be converted to an int, so 2e9 is as high as it can go. \$\endgroup\$ Commented Jan 30, 2011 at 20:44
  • \$\begingroup\$ what about sys.maxint? \$\endgroup\$ Commented Jan 30, 2011 at 20:46
  • 1
    \$\begingroup\$ @gnibbler: import os,sys is possible. Even os.sys.maxint works for me (might be version/system dependent). \$\endgroup\$ Commented Jan 30, 2011 at 21:16