Skip to content

Lazy property with nosetter.pascalcase-underscore accessor remains uninitialized #3331

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

Conversation

sashakboo
Copy link
Contributor

@sashakboo sashakboo commented Jun 21, 2023

In my project after upgrading from version 5.2 to 5.3 there is a problem with lazy properties that have nosetter.pascal-underscore accessor in their mapping.

  • After accessing the property it remains uninitialized
  • Each call to a property getter returns a new object

I have added tests which demonstrate the problem.

There is no such problem in version 5.2 #3332

@sashakboo sashakboo marked this pull request as ready for review June 21, 2023 07:22
@sashakboo sashakboo changed the title Lazy property with nosetter.pascalcase-underscore accessor Lazy property with nosetter.pascalcase-underscore accessor remains uninitialized Jun 21, 2023
@fredericDelaporte
Copy link
Member

Thanks for the test case. It has been cherry-picked on a 5.3.x based branch for being included with the fix. See #3345.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants