Baptiste Fontaine

Results 54 comments of Baptiste Fontaine

Please share a minimal reproductible code otherwise we can’t understand the problem.

I’ll let @swaroopch weight in but personnally I’d be interested in some option to `edn_format.loads` such as `string_keys=True` or `string_keyword_keys=True` that would parse all keyword keys as strings.

Hello, sorry for the late response. That’s interesting; I was thinking of post-processing the result of the parsing like you did in your second comment; not of doing that during...

Other weird ones with malformed italics in templates: ```python3 mwparserfromhell.parse("{{foo|''bar}} {{foo|bar''}}").filter_templates() # => ["{{foo|''bar}}", "{{foo|bar''}}"] mwparserfromhell.parse("{{foo|''bar}} ''...'' {{foo|bar''}}").filter_templates() # => ["{{foo|bar''}}"] mwparserfromhell.parse("{{foo|''bar}} ''").filter_templates() # => [] mwparserfromhell.parse("{{foo|''bar}} ''bar''").filter_templates() # =>...

It might be a good solution to use something like `class TimeoutDecoratorError(TimeoutError)`: a class with a different name that inherits from the built-in exception.

That’s true. `requests` uses [`Timeout`](https://github.com/kennethreitz/requests/blob/083aa67a0d3309ebe37eafbe7bfd96c235a019cf/requests/exceptions.py#L44) to avoid the confusion with the built-in `TimeoutError`.

Same issue with 1.10.3: https://github.com/redpen-cc/redpen/releases/tag/redpen-1.10.3

You can do that with SPARQL queries. You can play with your query on https://query.wikidata.org then use [`pywikibot`](https://github.com/wikimedia/pywikibot) to run it in Python. ```python from pywikibot.data.sparql import SparqlQuery q =...

Hello, you’re right in thinking it’s not possible right now, and I definitely agree this would be very helpful.

Sorry I didn’t comment earlier but: I saw the issue, I just don’t have a lot of time right now 😉