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
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
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
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
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
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
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
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
Changes by Wilfredo Sanchez wsanc...@wsanchez.net:
--
nosy: +wsanchez
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4111
___
___
Python-bugs-list