OpenAnything

K

kj

In Dive Into Python, Mark Pilgrim offers the function openAnything
that can open for reading "anything" (i.e. local files or URLs).

I was wondering if there was already in the standard Python library
an "official" version of this, that could not only open (for reading)
regular files and URLs, but also other data sources such as compressed
files.

TIA!

kynn
 
P

Paul Boddie

In Dive Into Python, Mark Pilgrim offers the function openAnything
that can open for reading "anything" (i.e. local files or URLs).

I was wondering if there was already in the standard Python library
an "official" version of this, that could not only open (for reading)
regular files and URLs, but also other data sources such as compressed
files.

Not in the standard library, but available from the package index:

http://pypi.python.org/pypi/desktop

The desktop.open function just wraps other mechanisms for opening/
launching files or URLs.

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,197
Messages
2,571,040
Members
47,634
Latest member
RonnyBoelk

Latest Threads

Top