Skip to content

Add support for 1-9 fractional seconds#133

Merged
lelit merged 4 commits into
python-rapidjson:masterfrom
karlseguin:iso8601
Mar 12, 2020
Merged

Add support for 1-9 fractional seconds#133
lelit merged 4 commits into
python-rapidjson:masterfrom
karlseguin:iso8601

Conversation

@karlseguin

Copy link
Copy Markdown
Contributor

I'm neither a python nor C a programmer, but the existing tests were helpful. I added a few.

I was able to remove a lot of duplication (it became necessary since a 14-length time could now mean 3 things not just 1). I ran the benchmarks but didn't see any huge difference.

@lelit

lelit commented Mar 2, 2020

Copy link
Copy Markdown
Contributor

Thank you, the patch looks good. I will analyze it better in a couple of days.

@lelit

lelit commented Mar 3, 2020

Copy link
Copy Markdown
Contributor

The failure seems related to a different representation of timezone under Python 3.6:
https://travis-ci.org/python-rapidjson/python-rapidjson/jobs/657181475#L1280

Once I get to actually merge this I will try to take care of that.

@lelit lelit merged commit eba3a30 into python-rapidjson:master Mar 12, 2020
@lelit

lelit commented Mar 12, 2020

Copy link
Copy Markdown
Contributor

Thank you Karl: I've merged this with some cosmetic changes, and fixed the Py36 related glitch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants