Frank Dana

Results 954 comments of Frank Dana

You know, I wasn't going to bother with the docstrings in `pyparsing.utils`... but then I noticed this one is using a _completely different_ class name than the actual class it's...

OK, I've just checkpointed my `doctests` branch, and pushed it, because (a) I've made a lot of progress, and (b) I've run out of steam for the evening. As of...

Oh, I did punt on one and only one example, so far, the one in `ParserElement.enable_packrat()`: https://github.com/pyparsing/pyparsing/blob/a44710396b0915666ddc9b9fe62df1575ffd0545/pyparsing/core.py#L1133-L1136 There's no reasonable way to test a global-state modification in doctests without potentially...

@ptmcg Will do! In the meantime, I'm in the home stretch (final 20), but I've hit another failing example. The `LineStart` documentation claims it won't match whitespace: https://github.com/pyparsing/pyparsing/blob/a44710396b0915666ddc9b9fe62df1575ffd0545/pyparsing/core.py#L3706-L3726 Buuuuut... ```python...

^ Not true of `AtLineStart('AAA')`, though, which is documented with exactly the same test string as `LineStart` (or was, until I changed it so I could tell them apart in...

OK, as of my latest push a few seconds ago, _all_ of the examples in the code are converted to doctests with the exception of the `enable_packrat()` example that can't...

@ptmcg Well! Sorry for the delay, that took _much_ longer than I planned. But it's finally ready.(I just popped in to see if there were any updates here that I...

@ptmcg Oh, also: the `LineStart` example is still failing the doctest, do you have any thoughts on how best to address that? I can add code to change the default...

So, #415 Documenting Pyparsing via the individual modules would definitely be a more comfortable situation for Sphinx, in at least a couple of ways: 1. I can't remember if I...

Oh, yes, another point in favor of individual module docs: I currently have this section, in the "Writing Doctests" doc: > ### Code location references are not useful > Due...