Message10883
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) |
|
Date |
User |
Action |
Args |
2016-07-30 09:13:14 | progval | set | recipients:
+ progval |
2016-07-30 09:13:14 | progval | set | messageid: <1469869994.75.0.46772376617.issue2510@psf.upfronthosting.co.za> |
2016-07-30 09:13:14 | progval | link | issue2510 messages |
2016-07-30 09:13:13 | progval | create | |
|