Skip to content
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

"x".upper.replace("y") throws "Method 'method_replace' not found" #113

Open
phorward opened this issue Jul 3, 2023 · 0 comments
Open

"x".upper.replace("y") throws "Method 'method_replace' not found" #113

phorward opened this issue Jul 3, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@phorward
Copy link
Member

phorward commented Jul 3, 2023

By design, this issue points to an inconsistency, as the first method isn't called, and holds a reference to the method call.

This fails:

>>> "Glasflügel".upper.replace("L")
Line 1, column 20: Method 'method_replace' not found

This works:

>>> "Glasflügel".upper().replace("L")
"GASFÜGE"

Such a case should only appear when the #17 *deref-operator is being used.

@phorward phorward added bug Something isn't working tokay labels Jul 3, 2023
@phorward phorward self-assigned this Jul 3, 2023
@phorward phorward changed the title "Glasflügel".upper.replace("L") throws "Method 'method_replace' not found" "x".upper.replace("y") throws "Method 'method_replace' not found" Jul 4, 2023
@phorward phorward changed the title "x".upper.replace("y") throws "Method 'method_replace' not found" "x".upper.replace("y") throws "Method 'method_replace' not found" Jul 5, 2023
@phorward phorward removed the tokay label Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant