On Tue, Mar 20, 2018 at 4:25 AM, Nathaniel Smith <n...@pobox.com> wrote:
> On Tue, Mar 20, 2018 at 1:03 AM, Wes Turner <wes.tur...@gmail.com> wrote: > > I added trio to the comparison table > > (Things are mostly just async-wrapped, > > though pathlib_not_trio does show a few missing methods?). > > trio.Path is an automatically generated, exact mirror of pathlib.Path, > so I don't think it's very useful to have in your table? Also the > missing attributes are actually handled via __getattr__, so they > aren't actually missing, they're just invisible to your detection > mechanism :-) > > In [21]: trio.Path("/a/b").anchor > Out[21]: '/' > > In [22]: trio.Path("/a/b").name > Out[22]: 'b' > Ah, good call. Didn't even look. Is there a reason that the pathlib methods shouldn't just be similarly async-wrapped? > > -n > > -- > Nathaniel J. Smith -- https://vorpus.org >
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/