Skip to content

Separate out "while True" loop for e.g. 12 h00m04s#425

Closed
jbrockmendel wants to merge 4 commits into
dateutil:masterfrom
jbrockmendel:parse_hms
Closed

Separate out "while True" loop for e.g. 12 h00m04s#425
jbrockmendel wants to merge 4 commits into
dateutil:masterfrom
jbrockmendel:parse_hms

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

The while loop that currently handles things like "12 h00m04s" is one of the hardest pieces of the parser to reason about. This is in part because it tries to capture all of these tokens in one pass. This PR implements a version that allows for looking backwards, so each of the ["12", "00", "04"] gets individually processed.

This also handles the lookback previously at L793.

Last, a tox testenv is added for lightweight testing of just the parser.

@pganssle

pganssle commented Aug 1, 2017

Copy link
Copy Markdown
Member

This assumes #419 is merged, correct?

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

I think I wrote it separately on the assumption I'd rebase when the time came.

@pganssle

pganssle commented Aug 5, 2017

Copy link
Copy Markdown
Member

Superceded by #436

@pganssle pganssle closed this Aug 5, 2017
@pganssle pganssle added this to the wontfix milestone Mar 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants