GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — gh-113317: AC converter: Use add_include() in bad_argument() by vstinner · Pull Request #114324 · python/cpython Conversation
|
|
Ah, my simple CConverter.add_include() implementation reached its limits: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Yeah, I suspected that :) Well, it should be straight forward to support multiple includes in converters; we could extract the nice "condition" logic you added for |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Also, I think the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* Rename the 'clinic' global variable to 'global_clinic'. * Make CConverter.add_include() smarter. Don't fail when adding exactly the same include twice. * Copy converters includes later in output_templates().
b151101 to
5dff970
Compare
There was an error while loading. Please reload this page.
|
Sorry, I should have run tests locally, or mark this PR as a draft. I didn't expect so many back and forth. All issues should now be fixed (let's see what the CI says). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| # added late | ||
| for converter in converters: | ||
| include = converter.include | ||
| if include is not None: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think that can be made an assert.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Not all converters need a special include. Do you mean that include variable is never None?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
commit e14930f was merged instead, I close my PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.