Skip to content

Use classes without making an object. #56

@Almas-Ali

Description

@Almas-Ali

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OOPObject Oriented ProgrammingbugSomething isn't workingbuilt-in classesbuilt-in classesmediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions