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

removed references to deprecated python_utils file #417

Merged
merged 3 commits into from
Nov 17, 2024

Conversation

athyrson06
Copy link
Contributor

Changes Following #13935

In response to #13935, several misleading mentions and incorrect warnings were removed from the wiki. These included:

  • Removal of python_utils mentions: The previous examples using on python_utils.OBJECT and other utility functions has been updated. I’ve replaced them with standard Python constructs and best practices.
  • Fixing the incorrect warning about str function: Some parts of the code were erroneously issuing warnings regarding the use of the str() function. This warning was removed as str() is the correct and accepted way to convert objects to strings in Python 3.

Key Changes:

  • Removed references to python_utils.OBJECT in class definitions, replacing them with standard Python class definitions.
  • Fixed the incorrect warning about using str(): The previous message warning against using str() was incorrect, as str() is the appropriate way to convert to strings in Python 3.

These updates help modernize the wiki, making it more in line with the new Oppia standard.

@athyrson06 athyrson06 closed this Nov 16, 2024
@athyrson06 athyrson06 reopened this Nov 16, 2024
@seanlip
Copy link
Member

seanlip commented Nov 17, 2024

@athyrson06 Please follow the "getting started" instructions in the Oppia wiki https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#setting-things-up -- we can't accept your PRs until you've done that.

Once you've done that, feel free to reopen this PR if you like, and we can review it. I'm closing it for now so that it doesn't get merged accidentally. Thanks!

@seanlip seanlip closed this Nov 17, 2024
@athyrson06
Copy link
Contributor Author

I have now followed the steps, and I would like to request the pull request to be reopened.

@seanlip seanlip reopened this Nov 17, 2024
Copy link
Member

@seanlip seanlip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @athyrson06! Just two comments, PTAL.

Coding-style-guide.md Outdated Show resolved Hide resolved
print("Hello, world!")
""")
with open(filename, 'w') as tmp:
tmp.write("""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deindent this and the following lines by 4.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@athyrson06
Copy link
Contributor Author

I did the necessary adjustments now.

Copy link
Member

@seanlip seanlip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @athyrson06, looks good! Congrats on your first Oppia PR 🎉

@seanlip seanlip merged commit 3085f16 into oppia:develop Nov 17, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants