[issue33651] Add get() method to sqlite3.Row class

2018-05-26 Thread Wilfredo Sanchez
Wilfredo Sanchez <wsanc...@wsanchez.net> added the comment: Well, sequence and mapping are not mutually exclusive, and sqlite3.Row does allow mapping-style indexing, which is why I expected .get() to work. But I hear Raymond's point about all field being known, and I think that's a good

[issue33510] [logging] add JSON log formatter

2018-05-25 Thread Wilfredo Sanchez
Wilfredo Sanchez <wsanc...@wsanchez.net> added the comment: Please consider using RFC 7464 (JSON Text Sequences). This allows detection of truncated JSON events without losing the following event. It allows newlines in the JSON data. All this involves is adding an RS between

[issue33651] Add get() method to sqlite3.Row class

2018-05-25 Thread Wilfredo Sanchez
New submission from Wilfredo Sanchez <wsanc...@wsanchez.net>: The sqlite3.Row class has mapping-like behavior but does not implement the get() method, so providing default values in code requires a bit of boilerplate that is not necessary with dictionaries. -- components: Librar

[issue31138] dir argument NamedTemporaryFile should accept a pathlib.Path

2017-08-08 Thread Wilfredo Sanchez
Wilfredo Sanchez added the comment: Huh… my apologies. I must have been fiddling with an older interpreter REPL without noticing when I ran into this. Never mind me. :-) -- stage: -> resolved status: pending -> closed ___ Python tracke

[issue31138] dir argument NamedTemporaryFile should accept a pathlib.Path

2017-08-07 Thread Wilfredo Sanchez
New submission from Wilfredo Sanchez: Or, better, any object which conforms to the file system path protocol (__fspath__). -- components: Library (Lib) messages: 299886 nosy: wsanchez priority: normal severity: normal status: open title: dir argument NamedTemporaryFile should accept

[issue31137] Add a path attribute to NamedTemporaryFile

2017-08-07 Thread Wilfredo Sanchez
New submission from Wilfredo Sanchez: Add a path attribute to NamedTemporaryFile which provides a pathlib.Path object pointing to the file on disk. -- components: Library (Lib) messages: 299884 nosy: wsanchez priority: normal severity: normal status: open title: Add a path attribute

[issue13405] Add DTrace probes

2012-02-28 Thread Wilfredo Sanchez
Wilfredo Sanchez wsanc...@wsanchez.net added the comment: Given that the current Mac OS is 10.7, and 10.8 was just announced, it seems reasonable to limit support to 10.6, if going back any further is more than a little bit of additional work. IIRC, 10.6 is also the last release to support

[issue8013] time.asctime segfaults when given a time in the far future

2010-02-24 Thread Wilfredo Sanchez
Wilfredo Sanchez wsanc...@wsanchez.net added the comment: I get this on Python 2.6, not 2.5. And it seems to be limited to 64-bit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8013

[issue4111] Add Systemtap/DTrace probes

2010-01-15 Thread Wilfredo Sanchez
Changes by Wilfredo Sanchez wsanc...@wsanchez.net: -- nosy: +wsanchez ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___ ___ Python-bugs-list