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

Use classes without making an object. #56

Open
Almas-Ali opened this issue Apr 13, 2024 · 0 comments
Open

Use classes without making an object. #56

Almas-Ali opened this issue Apr 13, 2024 · 0 comments
Labels
bug Something isn't working built-in classes built-in classes OOP Object Oriented Programming
Milestone

Comments

@Almas-Ali
Copy link
Member

Using a class without making an object.
Example:

File("some/path/file.txt", "r").readlines()

Currently, it is throwing exception. Need to figure out a solution.

f = File(...)
f.readlines()

This syntax is fine.

Will make both syntax comfortable.

@Almas-Ali Almas-Ali added bug Something isn't working OOP Object Oriented Programming built-in classes built-in classes labels Apr 13, 2024
@Almas-Ali Almas-Ali added this to the v0.1 release milestone May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working built-in classes built-in classes OOP Object Oriented Programming
Projects
None yet
Development

No branches or pull requests

1 participant