Message10883

Author progval
Recipients progval
Date 2016-07-30.09:13:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469869994.75.0.46772376617.issue2510@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I run the following script:

import time
def fake_time():
    return 42

time.time = fake_time
print(time.time())


With CPython and Pypy, it print 42. With Jython 2.7.1b3, I get this:

Traceback (most recent call last):
  File "foo.py", line 6, in <module>
    print(time.time())
TypeError: unbound method fake_time() must be called with time instance as first argument (got nothing instead)
History
Date User Action Args
2016-07-30 09:13:14progvalsetrecipients: + progval
2016-07-30 09:13:14progvalsetmessageid: <1469869994.75.0.46772376617.issue2510@psf.upfronthosting.co.za>
2016-07-30 09:13:14progvallinkissue2510 messages
2016-07-30 09:13:13progvalcreate