Skip to content

Use pathlib weherever possible #2665

@Bibo-Joshi

Description

@Bibo-Joshi

Object based file handling makes a lot of stuff easier and we have alread started integrating it into PTB by accepting pathlib.Path objects as file input in case of local bot api servers.

We should try to use it wherever possible throughout the examples & lib, arguably even tests. This includes, but is not limited to, every open(...) .

edit: we should probably also check the wiki

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions