close
The Wayback Machine - https://web.archive.org/web/20220321120108/https://github.com/python/python-docs-zh-cn/issues/241
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong translation in fnmatch module #241

Open
ayaka14732 opened this issue Feb 28, 2022 · 1 comment
Open

Wrong translation in fnmatch module #241

ayaka14732 opened this issue Feb 28, 2022 · 1 comment

Comments

@ayaka14732
Copy link

@ayaka14732 ayaka14732 commented Feb 28, 2022

Note that the filename separator ('/' on Unix) is not special to this module. See module glob for pathname expansion (glob uses filter() to match pathname segments). Similarly, filenames starting with a period are not special for this module, and are matched by the * and ? patterns.

注意文件名分隔符 (Unix 上为 '/') 不是 此模块所特有的。 请参见 glob 模块了解文件名扩展 (glob 使用 filter() 来匹配文件名的各个部分)。 类似地,以一个句点打头的文件名也不是此模块所特有的,可以通过 * 和 ? 模式来匹配。


原文 special 不是「特有的」,而是「特别的」,意思是 fnmatch 模块不会对 /.* 作单独处理,也就是说它们和普通文件名一样,没有什么特别的。

@silkriver
Copy link

@silkriver silkriver commented Mar 1, 2022

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants