(original) (raw)
On Apr 6, 2016 6:31 PM, "Brett Cannon" <brett@python.org> wrote:
\>
\>
\>
\> On Wed, 6 Apr 2016 at 16:25 Nathaniel Smith <njs@pobox.com> wrote:
\>>
\>> On Wed, Apr 6, 2016 at 3:46 PM, Brett Cannon <brett@python.org> wrote:
\>> >
\>> >
\>> > On Wed, 6 Apr 2016 at 15:22 Paul Moore <p.f.moore@gmail.com> wrote:
\>> >>
\>> >> So I think we need a builtin.
\>> >
\>> >
\>> > Well, the ugliness shouldn't survive forever if the community shifts over to
\>> > using pathlib while the built-in will. We also don't have a built-in for
\>> > \_\_index\_\_() so it depends on whether we expect this sort of thing to be the
\>> > purview of library authors or if normal people will be interacting with it
\>> > (it's probably both during the transition, but I don't know afterwards).
\>>
\>> For \_\_index\_\_ the "built-in" is:
\>>
\>> from operator import index
\>
\>
\> Which suggests perhaps we should have pathlib.fspath() instead of a built-in.
Would it make sense to instead have pathlib.Path.\_\_init\_\_?
>
\> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
\> Python-Dev mailing list
\> Python-Dev@python.org
\> https://mail.python.org/mailman/listinfo/python-dev
\> Unsubscribe: https://mail.python.org/mailman/options/python-dev/wes.turner%40gmail.com
\>