You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ResourceLoader.get_data() should accept a PathLike #76627
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2018-01-26.22:04:33.075>created_at=<Date2017-12-29.15:33:19.423>labels= ['3.7']
title='ResourceLoader.get_data() should accept a PathLike'updated_at=<Date2018-01-26.22:04:33.074>user='https://github.com/warsaw'
this would extend to set and get data right?, also would it be good to use the current get_data() (one that reads only string) function for the overloaded one and extract the string path from the os.path object? or would we want the os.path object to be handled separately?
jayyyin commented on Jan 26, 2018
jayyyinmannequin
Mannequin
More actions
nvm I temporarily forgot I was working with python here, I'd need to use "is" to check what the entered "path" is huh?
jayyyin commented on Jan 26, 2018
jayyyinmannequin
Mannequin
More actions
I hope this isn't a dumb question but where is ResourceLoader.get_data() implemented, using ATOM to search the whole project and I can't seem to find it.
I'd also suggest that if you're interested in answering your questions for the curiosity, or want to contribute to Python in other areas, you should join the python-dev mailing list.
Activity
warsaw commentedon Dec 29, 2017
Currently get_data() only accepts a string. It should also accept a os.PathLike
jayyyin commentedon Jan 26, 2018
I'm taking a look now, this looks interesting
jayyyin commentedon Jan 26, 2018
this would extend to set and get data right?, also would it be good to use the current get_data() (one that reads only string) function for the overloaded one and extract the string path from the os.path object? or would we want the os.path object to be handled separately?
jayyyin commentedon Jan 26, 2018
nvm I temporarily forgot I was working with python here, I'd need to use "is" to check what the entered "path" is huh?
jayyyin commentedon Jan 26, 2018
I hope this isn't a dumb question but where is ResourceLoader.get_data() implemented, using ATOM to search the whole project and I can't seem to find it.
warsaw commentedon Jan 26, 2018
Hi Jay. Thanks for your interest in contributing to Python!
Actually, I'm going to close this issue since we ultimately decided to deprecate the ResourceLoader ABC:
https://docs.python.org/3.7/library/importlib.html?highlight=resourceloader#importlib.abc.ResourceLoader
I'd also suggest that if you're interested in answering your questions for the curiosity, or want to contribute to Python in other areas, you should join the python-dev mailing list.