Changes by Jon Clements :
--
nosy: +joncle
___
Python tracker
<http://bugs.python.org/issue24159>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jon Clements :
--
nosy: +joncle
___
Python tracker
<http://bugs.python.org/issue23864>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jon Clements added the comment:
Was looking up epoll.modify and noticed in the docs it's listed as "
Modify a register file descriptor." - I believe that should be "Modify a
registered file descriptor"...
--
nosy: +joncle
Changes by Jon Clements :
--
nosy: +joncle
___
Python tracker
<http://bugs.python.org/issue19363>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jon Clements added the comment:
The more I think about this - the shades of grey kick in.
D.from_fraction(F or creatable F)
Then it would be 'reasonable to assume' for a F.to_decimal() to exist.
Possibly with an optional context argument.
Then, what happens if I do D('2.4
Jon Clements added the comment:
Not sure what's going on with my machine today: keep sending things to early.
I meant:
D.from_fraction(F)
where if F is not of type Fraction, then the args are used to construct a
Fraction - so can use an existing or creat
Jon Clements added the comment:
Mark - I bow to your superiour knowledge here. However, would not a classmethod
of .from_fraction be welcome?
ie, I could write:
d = D.from_fraction(5, 7)
Then the documents labour the point about what you've mentioned?
Just an idea, but fully realise y
New submission from Jon Clements :
I'm not a numeric expert but I was looking at a post on S/O which related to
converting a Fraction to a certain amount of decimal places. I've had a hunt on
the tracker but couldn't find anything relevant, but if I've missed it, I
apologi
New submission from Jon Clements :
Very low priority.
def consume(iterator, n):
"Advance the iterator n-steps ahead. If n is none, consume entirely."
# Use functions that consume iterators at C speed.
if n is None:
# feed the entire iterator into a zero-le
Jon Clements added the comment:
Seems consistent to me:
.match, .search and .finditer return a MatchObject whose .group() return the
*entire matched string*. If you use .group(1) you'll get similar results to
.findall() which returns a list of (possibly of tuples) of the captured
grou
10 matches
Mail list logo