Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
simplejson
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
simplejson
Commits
d2d7237ceb81
Commit
d2d7237ceb81
authored
8 years ago
by
Jure Cerjak
Browse files
Options
Downloads
Patches
Plain Diff
docstring fix in JSONEncoder: use_decimal defaults to True
parent
9815b777024a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
simplejson/encoder.py
+1
-1
1 addition, 1 deletion
simplejson/encoder.py
with
1 addition
and
1 deletion
simplejson/encoder.py
+
1
−
1
View file @
d2d7237c
...
@@ -185,7 +185,7 @@
...
@@ -185,7 +185,7 @@
transformed into unicode using that encoding prior to JSON-encoding.
transformed into unicode using that encoding prior to JSON-encoding.
The default is UTF-8.
The default is UTF-8.
If use_decimal is true (
not the default
), ``decimal.Decimal`` will
If use_decimal is true (
default: ``True``
), ``decimal.Decimal`` will
be supported directly by the encoder. For the inverse, decode JSON
be supported directly by the encoder. For the inverse, decode JSON
with ``parse_float=decimal.Decimal``.
with ``parse_float=decimal.Decimal``.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment