mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
* More changes due to stricter argument passing rules
* Fixed calendar.py, mimetools.py, whrandom.py to cope with time.time() returning a floating point number. (And fix old bug in calendar) * Add recursion level to mainloop.mainloop(), to make it reentrant.
This commit is contained in:
parent
a2b7f40513
commit
fea2af1e9b
18 changed files with 113 additions and 78 deletions
|
@ -39,7 +39,7 @@ class whrandom:
|
|||
if not xyz:
|
||||
# Initialize from current time
|
||||
import time
|
||||
t = time.time()
|
||||
t = int(time.time())
|
||||
t, x = divmod(t, 256)
|
||||
t, y = divmod(t, 256)
|
||||
t, z = divmod(t, 256)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue