Chris Rebert added the comment:
The "import json"s were left for uniformity with the other code samples in the
module's docs.
Also, here's what the pedantically-strict recipes might look like:
def _reject_inf_nan(string):
if string in {'-Infinity',
Chris Rebert added the comment:
Further copyediting.
--
Added file: http://bugs.python.org/file25595/json.rst.patch
___
Python tracker
<http://bugs.python.org/issue14
Chris Rebert added the comment:
Reflect broader scope
--
title: Add link to RFC 4627 from json documentation -> Link to & explain
deviations from RFC 4627 in json module docs
___
Python tracker
<http://bugs.python.org/
Chris Rebert added the comment:
>> for key, value in pairs:
>> if key in pairs:
>
> "if key in obj:"?
Yes, obviously. :-) It wrote those very late at night.
@Ezio: These were per Éric's feedback but
Chris Rebert added the comment:
Notification of any future Rietveld comments would be appreciated.
--
Added file: http://bugs.python.org/file25603/json.rst.patch
___
Python tracker
<http://bugs.python.org/issue14
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file25592/json.rst.patch
___
Python tracker
<http://bugs.python.org/issue14674>
___
___
Python-bugs-list m
Changes by Chris Rebert :
Added file: http://bugs.python.org/file25606/json.rst.patch
___
Python tracker
<http://bugs.python.org/issue14674>
___
___
Python-bugs-list m
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file25591/json.rst.patch
___
Python tracker
<http://bugs.python.org/issue14674>
___
___
Python-bugs-list m
Chris Rebert added the comment:
Patch. Though I ponder whether the expression in question might be equivalent
to simply:
type(obj).__name__.replace('_', ' ')
--
keywords: +patch
nosy: +cvrebert
Added file: http://bugs.python.org/file256
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14845>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
So, does the refactored patch need any further revising, or is it good to go?
--
___
Python tracker
<http://bugs.python.org/issue14
Chris Rebert added the comment:
Hopefully final revision. Thanks for the quick response Éric!
Changes:
- Cover `ensure_ascii` parameter per latest review comment
- Add enhanced "Character Encodings" section for 2.x backport
-- Cover `encoding` parameter & restriction
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14872>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14880>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14617>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue1191964>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue1260171>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Eh, just needs clarification along the lines of:
"Exceptions raised in the child ++Python++ process"
"A ValueError will be raised if Popen is called with invalid arguments
++whose validity is not dependent upon the state of
Chris Rebert added the comment:
The term "invalid arguments" in "A ValueError will be raised if Popen is called
with invalid arguments." is still vague. One could well argue that a
nonexistent executable or bad command is "invalid". Anything resulting in an
OSEr
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14886>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue12779>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14966>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue15039>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file25594/json.rst.patch
___
Python tracker
<http://bugs.python.org/issue14674>
___
___
Python-bugs-list m
Chris Rebert added the comment:
Any further comments now that the matter of encodings is covered more
thoroughly?
--
Added file: http://bugs.python.org/file25999/json.rst.patch
___
Python tracker
<http://bugs.python.org/issue14
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file25606/json.rst.patch
___
Python tracker
<http://bugs.python.org/issue14674>
___
___
Python-bugs-list m
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue9679>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue4442>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Pinging on this, since it's been just short of a month since Éric's "last call"
comment.
--
___
Python tracker
<http://bug
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue1100942>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue15436>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue15360>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue15451>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue12370>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Revised patch yet again to instead speak of "non-object, non-array" values and
"JSON null, boolean, number, or string" values.
Re: Petri, the patch already mentions the specific parameters one can use to
get stricter behavior, albeit no
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13212>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue15136>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14965>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue15731>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
keywords: +patch
Added file: http://bugs.python.org/file27008/issue14880.patch
___
Python tracker
<http://bugs.python.org/issue14
Chris Rebert added the comment:
Updated patch. I concur that anyone creating a type whose name has whitespace
in it is just asking for trouble.
--
Added file: http://bugs.python.org/file27009/reprlib.rst.patch
___
Python tracker
<h
New submission from Chris Rebert:
The cross-references, particularly to Popen.communicate(), in the warning box
in the subprocess docs about using Popen.stdout.read() etc. aren't hyperlinked.
The attached patch fixes that.
--
assignee: docs@python
components: Documentation
Chris Rebert added the comment:
So you can. Neat trick.
Patch changed accordingly.
--
Added file: http://bugs.python.org/file27011/link_communicate_warning.patch
___
Python tracker
<http://bugs.python.org/issue15
Chris Rebert added the comment:
Let's try that again.
--
Added file: http://bugs.python.org/file27012/link_communicate_warning.patch
___
Python tracker
<http://bugs.python.org/is
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file27011/link_communicate_warning.patch
___
Python tracker
<http://bugs.python.org/issue15788>
___
___
New submission from Chris Rebert:
To further dissuade people from using subprocess.Popen's shell=True option
unnecessarily, this patch points out that some common shell features are also
available directly in Python via certain modules & functions.
--
assignee: docs@python
c
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue15767>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Erm, the patch seems to have some ANSI terminal coloring escape code junk (e.g.
"[0;31m") in it...
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.o
Chris Rebert added the comment:
It's been over a year and the patch is trivial. Any chance of it getting
applied soon?
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/is
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue15533>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue7186>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue9650>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14783>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14870>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
+1 on including am/pm-related codes. Blame us backwards, non-metric Americans.
Sounds GTM otherwise.
--
___
Python tracker
<http://bugs.python.org/issue9
Chris Rebert added the comment:
Revised patch in response to comments.
--
Added file: http://bugs.python.org/file27029/subprocess.rst.patch
___
Python tracker
<http://bugs.python.org/issue15
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue15798>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue15806>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
Added file: http://bugs.python.org/file27090/json.rst.patch
___
Python tracker
<http://bugs.python.org/issue14570>
___
___
Python-bugs-list m
Chris Rebert added the comment:
Attached updated patches.
--
Added file: http://bugs.python.org/file27091/json_init.patch
___
Python tracker
<http://bugs.python.org/issue14
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue15873>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Ping. Any further comments?
--
___
Python tracker
<http://bugs.python.org/issue15789>
___
___
Python-bugs-list mailing list
Unsub
Chris Rebert added the comment:
Any reactions? The patch is pretty straightforward...
--
___
Python tracker
<http://bugs.python.org/issue14570>
___
___
Python-bug
Changes by Chris Rebert :
Added file: http://bugs.python.org/file27196/subprocess.rst-2.7.patch
___
Python tracker
<http://bugs.python.org/issue14616>
___
___
Python-bug
Chris Rebert added the comment:
Updated patches to mention pipes.quote().
--
Added file: http://bugs.python.org/file27197/subprocess.rst-3.3.patch
___
Python tracker
<http://bugs.python.org/issue14
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file25570/subprocess_shlex_quote.patch
___
Python tracker
<http://bugs.python.org/issue14616>
___
___
Pytho
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue16048>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
I'm going to bikeshed and again suggest that %I and %p be included for handling
12-hour clock times.
Also, the patch seems to only be for strftime(), and not strptime().
--
___
Python tracker
<http://bugs.py
Chris Rebert added the comment:
This is now hardcore nitpicking, but I'm conflicted as to whether %p should be
grouped with the other locale-related codes or with %I (since it's hard to
imagine using %I or %p in a singleton capacity).
In any case, props to Mike for putting an ac
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue3173>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue16131>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
file.readlines() (and perhaps dare I say even file.readline()) should not even
be mentioned in the tutorial, IMO. It is difficult to imagine a use case where
just iterating over the file object isn't superior. I cannot remember the last
time that I have
Chris Rebert added the comment:
No, the thought merely did not occur to me. I don't recall having seen such
forward-looking notes in Python's documentation before.
Should the pipes.quote() mention be axed from the 3.x patch?
--
___
Pyth
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue16285>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue16309>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue16341>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
AFAICT, there is currently no entry for WebM in IANA's registry
(http://www.iana.org/assignments/media-types/index.html ).
A bug in WebM's tracker regarding its MIME type(s) was closed over a year ago
as WONTFIX (http://code.google.com/p/webm/issues/de
Chris Rebert added the comment:
Per Chris Jerdonek, here's a combined patch that also makes the docs changes
comply with the antiquated line length limit.
--
Added file: http://bugs.python.org/file27759/issue14570.diff
___
Python tracker
Chris Rebert added the comment:
Here's a revised patch against the default branch (3.4 I presume?).
--
Added file: http://bugs.python.org/file27760/subprocess.rst-default.diff
___
Python tracker
<http://bugs.python.org/is
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file27197/subprocess.rst-3.3.patch
___
Python tracker
<http://bugs.python.org/issue14616>
___
___
Python-bug
Chris Rebert added the comment:
Just to keep the ball rolling, in case it ends up being the solution ultimately
chosen, here is a patch against 2.7 to document pipes.quote(). The text is
yanked straight from shlex.quote(), the differences being:
- qualify shlex.split() references
- print
Chris Rebert added the comment:
Even more libraries in this vein:
http://plumbum.readthedocs.org/en/latest/
http://amoffat.github.com/sh/
--
___
Python tracker
<http://bugs.python.org/issue13
Chris Rebert added the comment:
Patch for 2.7. This assumes that changing the parameter notation is permissible.
--
Added file: http://bugs.python.org/file27765/issue14570-2.7.diff
___
Python tracker
<http://bugs.python.org/issue14
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13697>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
So, nobody seems to have cared enough about the policy change to weigh in
during the intervening year and ~3mos...
--
___
Python tracker
<http://bugs.python.org/issue16
Chris Rebert added the comment:
> FWIW, I’m +1 for a doc section about how to achieve strict mode with special
> arguments and callbacks (if the recent doc patch does not already have that)
The docs added by that patch do indeed cover this:
http://docs.python.org/2/library/json.html#st
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue19871>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue16535>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue21080>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue19837>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue17909>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue10976>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Chris Rebert:
Python 3.3.4 (default, Feb 21 2014, 18:00:34)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from json import dumps
&g
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue19475>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue21414>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue21413>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue21347>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
You'll need to also update the "Character Encodings" subsection of the json
docs.
--
___
Python tracker
<http://bugs.pyt
Chris Rebert added the comment:
I agree that the state of encoding detection in the new RFC seems unclear,
given that the old RFC prefaced the part about the encoding detection with:
> Since the first two characters of a JSON text will always be ASCII
> characters
But in the n
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue18820>
___
___
Python-bugs-list mailing list
Unsubscribe:
101 - 200 of 289 matches
Mail list logo