路径模块/类 [英] path module / class

查看:44
本文介绍了路径模块/类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我有一段时间没有看到这个话题,所以我想我会再提高它

...


路径模块/类PEP的状态是什么?有人开始写一个,或者写了一个,还是死了?我真的很想看到类似

Jason Orendorff的路径类进入python标准

库。


似乎经常出现这种情况,提示进行一些讨论,

然后失败:)


最后我检查了python-dev,人们大多数人都同意可以添加

路径模块,只需进行一些修改。 (

线程的顶部在这里: http://thread.gmane.org/gmane.comp.python.devel/69403


该线程未解决的一些问题是:

- 应该将joinpath()称为subpath()吗?我认为joinpath很好,它是b / b
与os.path一致

- 应该将listdir()称为subpaths()吗?我不这么认为,会不会是
listpaths()是一个不错的选择?

- drop getcwd()方法?

- 什么实际应该调用类/模块,它应该在哪里生活?

- unicode支持

- mtime /的timestamp / datetime对象ctime / atime功能


干杯,

克里斯

解决方案

< blockquote> ch*********@gmail.com schrieb:

[...]
路径模块/类PEP的状态是什么?有人开始写一个,还是死了?


我在PEP索引中找不到一个< http://python.org/peps/> ;,所以我

假设没人会写或提交一个。

我真的很想看到像Jason Orendorff的路径类进入python标准库那样的东西。
[...]




如果您认为在标准库中有这样的课程,那么

很重要,那么您应该写一个PEP你自己...

再见,

丹尼斯


ch ********* @ gmail.com schrieb:

[...]
什么是路径模块/类PEP的状态?有人开始写一个,还是死了?


我在PEP索引中找不到一个< http://python.org/peps/> ;,所以我

假设没人会写或提交一个。

我真的很想看到像Jason Orendorff的路径类进入python标准库那样的东西。
[...]




如果您认为在标准库中有这样的课程,那么

很重要,那么您应该写一个PEP你自己...

再见,

丹尼斯


克里斯:

路径模块/类PEP的状态是什么?有人开始写一个,还是死了?我真的希望看到像Jason Orendorff的路径类进入python标准库的东西。




有还没有PEP,但有一个维基页面。
http:// wiki。 python.org/moin/PathClass

Guido没有热情,所以一个很好的步骤就是制作一些令人信服的例子。


Neil


Hi there,

I haven''t seen this topic pop up in a while, so I thought I''d raise it
again...

What is the status of the path module/class PEP? Did somebody start
writing one, or did it die? I would really like to see something like
Jason Orendorff''s path class make its way into the python standard
library.

It seems like this comes up every so often, prompts some discussion,
and then fizzles :)

Last I checked on python-dev, people were mostly in agreement that the
path module could be added, with a few modifications. (The top of the
thread is here: http://thread.gmane.org/gmane.comp.python.devel/69403)

A few issues that were left unresolved by that thread were:
- should joinpath() be called subpath()? I think joinpath is fine, it
agrees with os.path
- should listdir() be called subpaths()? I don''t think so, would
listpaths() be a good alternative?
- drop getcwd() method?
- what the class / module should actually be called, and where should
it live?
- unicode support
- timestamp / datetime objects for mtime/ctime/atime functions

Cheers,
Chris

解决方案

ch*********@gmail.com schrieb:

[...]
What is the status of the path module/class PEP? Did somebody start
writing one, or did it die?
I didn''t find one at the PEP index <http://python.org/peps/>, so I
assume that nobody wrote or submitted one.
I would really like to see something like
Jason Orendorff''s path class make its way into the python standard
library.
[...]



If you think having such a class in the standard library is that
important then you should write a PEP by yourself...
Bye,
Dennis


ch*********@gmail.com schrieb:

[...]
What is the status of the path module/class PEP? Did somebody start
writing one, or did it die?
I didn''t find one at the PEP index <http://python.org/peps/>, so I
assume that nobody wrote or submitted one.
I would really like to see something like
Jason Orendorff''s path class make its way into the python standard
library.
[...]



If you think having such a class in the standard library is that
important then you should write a PEP by yourself...
Bye,
Dennis


Chris:

What is the status of the path module/class PEP? Did somebody start
writing one, or did it die? I would really like to see something like
Jason Orendorff''s path class make its way into the python standard
library.



There is no PEP yet but there is a wiki page.
http://wiki.python.org/moin/PathClass
Guido was unenthusiastic so a good step would be to produce some
compelling examples.

Neil


这篇关于路径模块/类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆