[issue24159] Misleading TypeError when pickling bytes to a file opened as text

2015-05-10 Thread Jon Clements
Changes by Jon Clements : -- nosy: +joncle ___ Python tracker <http://bugs.python.org/issue24159> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23864] issubclass without registration only works for "one-trick pony" collections ABCs.

2015-04-04 Thread Jon Clements
Changes by Jon Clements : -- nosy: +joncle ___ Python tracker <http://bugs.python.org/issue23864> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18925] select.poll.modify is not documented

2013-12-07 Thread Jon Clements
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

[issue19363] Python 2.7's future_builtins.map is not compatible with Python 3's map

2013-10-23 Thread Jon Clements
Changes by Jon Clements : -- nosy: +joncle ___ Python tracker <http://bugs.python.org/issue19363> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Jon Clements
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

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Jon Clements
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

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Jon Clements
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

[issue15136] Decimal accepting Fraction

2012-06-22 Thread Jon Clements
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

[issue9944] Typo in doc for itertools recipe of consume

2010-09-24 Thread Jon Clements
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

[issue8185] re.findall()

2010-03-20 Thread Jon Clements
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