New submission from icedream91:
The document (http://docs.python.org/3/library/fractions.html) doesn't mention
Fraction's numerator and denominator properties, I knew these properties from
dir().
Since sometimes these two properties are very useful, for example:
http://projec
New submission from icedream91:
When I ran code below, it printed -1. The question is, the code in variable
snippet, has wrong syntax, it can't be run. I think timeit should return only
non-negative float type.
from timeit import timeit
snippet="""
for i in rang
New submission from icedream91:
I think the documents talking about list.sort() in page
http://docs.python.org/3/library/stdtypes.html#list.sort is not clear enough.
What asterisk means in "sort(*, key=None, reverse=None)", may be cmp argument
from Python 2, or anything else? Or it
icedream91 added the comment:
I did some tests, Richard Oudkerk (sbt) is right. Thanks a lot.
--
___
Python tracker
<http://bugs.python.org/issue18252>
___
___
icedream91 added the comment:
I used Python 3.3.2 to try this problem: http://projecteuler.net/problem=23 ,
and I got a correct answer.
When I wanted to check how long it took, I found something strange:
When I ran 23.py directly, it showed that it took about 13s. But if I use
timeit module
Changes by icedream91 :
Removed file: http://bugs.python.org/file30633/23.py
___
Python tracker
<http://bugs.python.org/issue18252>
___
___
Python-bugs-list mailin
New submission from icedream91:
I used Python 3.3.2 to try this problem: http://projecteuler.net/problem=23 ,
and I got a correct answer.
When I wanted to check how long it took, I found something strange:
When I ran 23.py directly, it showed that it took about 13s. But if I use
timeit module
New submission from icedream91:
In library.pdf file(Release 3.3.2, June 09, 2013), I found a typo in page 149:
I think the quotation marks are wrong in "datetime.isoformat(sep=âTâ)"
sentence, they should both be "'".
But it's right in online documents
(ht