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 — Add post-processing hook for custom token transformations by hedgert · Pull Request #87 · python-trio/unasync ConversationSummaryunasync currently provides excellent support for single-token replacements Some transformations, however, require replacing one token with multiple
SolutionThis change introduces an optional post-processing hook that runs after The hook receives the token stream and allows more complex transformations Existing users are unaffected unless they choose to provide a MotivationThis extension makes it possible to implement more sophisticated language
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
pquentin
reviewed
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! Do you mind adding a test to clarify how this would be used?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
hedgert
force-pushed
the
multi-token-extension
branch
2 times, most recently
from
d472b42 to
c920028
Compare
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Bug fix (after my testing focused on using the hook to override the post processor method instead of testing the default post processor Co-authored-by: Quentin Pradet <[email protected]> Test demonstrates a simple real world multitoken transformation from: asyncio.current_task() to: current_thread() it also has data to confirm that those tokens on their own are not touched (so asyncio remains asyncio and curent_task() remains current_task())
hedgert
force-pushed
the
multi-token-extension
branch
from
c920028 to
51ae2f0
Compare
|
There was an error while loading. Please reload this page.
|
OK (I had lost the sort directories change that was the subject of a separate - overlapping - pull request). Given the tests here in Github worked, it maybe that has no effect on any environment but mine - but the sorted directories fix is required in my environment or the project structure test fails. My new test is now ready for review. |
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.