-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[19.0][MIG] sequence_python #3478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 19.0
Are you sure you want to change the base?
Conversation
- Add proper string conversion for non-string return values from Python code
in sequence evaluation to prevent TypeError during string concatenation
- Use isinstance check to only convert non-string values, preserving
original behavior for string results
- Add test case to verify handling of integer return values from Python code
- Use separate sequence in test to avoid interference with other tests
The fix ensures that when Python code in sequence evaluation returns
non-string values (like integers), they are properly converted to strings
before concatenation with prefix and suffix, preventing TypeError.
Fixes potential issue where Python expressions returning integers or
other non-string types would cause concatenation errors.
12ddf28 to
b9fca8c
Compare
|
/ocabot migration sequence_python |
|
Sorry @bosd you are not allowed to mark the addon to be migrated. To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons. If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the |
- Move UUID safe members computation to module level as a constant - Replace repeated computation in _get_python_eval_context with constant lookup - Use _UUID_SAFE_MEMBERS constant instead of computing uuid_elements on each call - Improves performance by avoiding redundant computation on every sequence evaluation This optimization pre-computes the UUID safe members list once at module import time instead of recomputing it on every call to _get_python_eval_context, which can happen frequently during sequence operations.
|
/ocabot migrationsequemce_pythom |
|
Hi @thomaspaulb. Your command failed:
Ocabot commands
More information
|
|
/ocabot migration sequence_python |
thomaspaulb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice additions! Maybe add yourself as a contributor
based on unmerged: #3258