[issue21061] Is contextlib.redirect_stdout reentrant or not?

2014-03-25 Thread Timothy Pederick
New submission from Timothy Pederick: The docs are contradictory on whether or not contextlib.redirect_stdout is reentrant, or reusable-but-not-reentrant. This would seem to be an oversight from issue19403, which probably should have changed "reusable but not reentrant" to

[issue19004] datetime: Read in isoformat() output

2013-09-11 Thread Timothy Pederick
New submission from Timothy Pederick: At present, the datetime module does not provide the capability to parse its own output from the isoformat() methods. strptime() can't handle timezones with colons in them (and anyway it seems to me you'd need to try several possible form

[issue14999] ctypes ArgumentError lists arguments from 1, not 0

2012-06-03 Thread Timothy Pederick
New submission from Timothy Pederick : The ctypes ArgumentError exception indicates the location of the problem by argument number. It counts arguments starting from 1, not 0 as is typical in Python. Observed An example (anonymised) traceback: Traceback (most recent call last

[issue8662] bytes join cannot join bytes

2010-05-08 Thread Timothy Pederick
Timothy Pederick added the comment: Brett: Well, I was more thinking along the lines of making join() recognise when it's been passed a bytes object, rather than changing the semantics of indexing bytes. That would be a bit overdramatic! But if it's wontfix, it's wontfix. An

[issue8662] bytes join cannot join bytes

2010-05-08 Thread Timothy Pederick
New submission from Timothy Pederick : This code behaves as expected: >>> ' '.join('cat') 'c a t' This code does not: >>> b'\x00'.join(b'cat') Traceback (most recent call last): ... b'\x00'.join(b'c