A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-January/060116.html below:

[Python-Dev] Path inherits from string

[Python-Dev] Path inherits from string [Python-Dev] Path inherits from stringFredrik Lundh fredrik at pythonware.com
Thu Jan 26 17:35:05 CET 2006
BJörn Lindqvist wrote:

> However, I might be wrong because according to [1] it should work. And
> having to wrap the Path object in str() (open(str(somepath))) each and
> every time the called function expects a string is not a practical
> solution.

in Python, the usual way to access an attribute of an object is to
access the attribute; e.g.

    f = open(p.name)

</F>



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4