[perl-python] Python文档讽刺(续) [英] [perl-python] Python documentation moronicities (continued)

查看:52
本文介绍了[perl-python] Python文档讽刺(续)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://python.org/doc /2.4.1/lib/module-re.html
http://python.org/doc/2.4.1/lib/node114.html


---------

QUOTE

模块定义了几个函数,常量和异常。一些

的函数是全功能方法的简化版本

用于编译的正则表达式。大多数非平凡的应用总是

使用编译后的表格

UNQUOTE

想要使用正则表达式的程序员从这篇文章中得到什么? br $> b b b b b b b b b



----------

报价

编译(

pattern [,flags])


将正则表达式模式编译成正则表达式对象,

哪个可以用于匹配使用其match()和search()方法,

如下所述。


表达式'的行为可以通过指定一个来修改旗帜

价值。值可以是以下任何变量,使用

按位OR(|运算符)组合。

UNQUOTE

究竟是什么他妈的说?


我想使用正则表达式找到&替换文字。我已经在一个文件中读到了。

试着读这个他妈的文件是一个痛苦的屁股。什么是这些

" flags"?我能做什么


re.compile(r''mypat'',''M'')或

re.compile(r''mypat' ',M)

或者

re.compile(r''mypat'',re.M)


M不是他妈的变数。为什么文档无法使用那个

术语?

他妈的是什么意思不明确的意思是OR运营商用

妈妈他妈的有点行话?


所有正在阅读正则表达式的人都想看看如何使用字符串

模式并用另一个替换它。他妈的医生不可能写得更糟糕了。


他妈的他妈的是IT行业的编程员。


所以,是

re.compile(r''mypat'',''M'')

re.compile(r''mypat'',' 'MULTILINE'')

相当于?


和那个他妈的按位狗屎它的意思是说像

re。编译(r''matat'',''M''|''U'')




为什么不能把这片狗屎写给一个使用的例子?

和母亲混乱组织,他妈的变量术语

作家不懂他妈的,同时总是试图发声

大混蛋并且不要因为提到一本正则表达式书而停止手淫。

毫不犹豫地提到另一种语言Perl。他妈的蠢货。


用于展示IT'他妈的愚蠢的文档和他们的fuckhead程序员,

见:
http://xahlee.org/Periodic_dosage_di...ami_cukta.html


a清理此帖子的帐号将附加到上面的

博览会。


--------


这里最后一条建议是清醒那些目前被冒犯和挑衅的傻瓜:你想问自己这个问题:

可以是一位经验丰富的程序员,至少是两种语言的专家,也是Perl的专家,并且知道正则表达式,并且还阅读了

官方Python教程并且已经编写了至少10个简单的python

程序,在一个月的时间里,可以这样一个人,还没有用b / b
在Python中使用正则表达式但是现在想在Python中使用正则表达式并且只是

阅读文档,他是否必须通过多次试错才能看到文件正在讨论的内容?


但是,可以这个文档是(重新)有效而且容易编写的,所以任何

程序员在阅读后都不需要进行试验吗?


这些问题的答案是响亮的,你他妈的屁股。


paypal我一百美元,我将重写整个re doc几个

小时。


操你标准IT蠢事。对不起,我没有时间

写一个更加连贯和详细的分析

re doc的愚蠢。


Xah
xa*@xahlee.org

a ?? http://xahlee.org/PageTwo_dir/more.html

http://python.org/doc/2.4.1/lib/module-re.html
http://python.org/doc/2.4.1/lib/node114.html

---------
QUOTE
The module defines several functions, constants, and an exception. Some
of the functions are simplified versions of the full featured methods
for compiled regular expressions. Most non-trivial applications always
use the compiled form
UNQUOTE
What does a programer who wants to use regex gets out from this piece
of motherfucking irrevalent drivel?

----------
QUOTE
compile(
pattern[, flags])

Compile a regular expression pattern into a regular expression object,
which can be used for matching using its match() and search() methods,
described below.

The expression''s behaviour can be modified by specifying a flags
value. Values can be any of the following variables, combined using
bitwise OR (the | operator).
UNQUOTE
What exactly is it fucking saying?

I wanted to use regex to find & replace on text. I''ve read in a file.
Trying to reading this fucking doc is a pain in the ass. What are these
"flags"? Do i do

re.compile(r''mypat'',''M'') or
re.compile(r''mypat'',M)
or perhaps
re.compile(r''mypat'',re.M)

The M isn''t a fucking variable. Why does the doc incompetently use that
term?
And what the fuck is it unclearly meant by "OR" operator with the
mother fucking bitwise jargon?

All a person reading regex really wanted is to see how to use a string
pattern and replace it with another. The fucking doc cannot be possibly
fucking worsely written.

Fuck the mother fucking coders in the IT industry.

So, is
re.compile(r''mypat'',''M'')
re.compile(r''mypat'',''MULTILINE'')
equivalent?

and, by that fucking bitwise shit is it meant to say like
re.compile(r''mypat'',''M''|''U'')
?

why cannot this piece of shit writing give a single example of usage?
and motherfucking confusedly organized, with fucking variable terms the
writer don''t fucking understand, and meanwhile always trying to sound
big asshole and don''t stop at masturbation by mention a regex book and
not hesitate to mention another language Perl. Fucking morons.

for a exposition of IT''s fucking stupid docs and their fuckhead coders,
see:
http://xahlee.org/Periodic_dosage_di...ami_cukta.html

a cleaned up account of this post will be appended to the above
exposition.

--------

One final piece of advice here to sober up the fuckheads who are
currently offended and defiant: you want to ask yourself this question:
Can a seasoned programer, who is expert at least 2 languages, who is
also a expert at Perl and knew regex well, and who has also read the
official Python tutorial and has written at least 10 simple python
programs over a span of a month, can such a person, who have not yet
used regex in Python but now wants to use regex in Python and have just
read the doc, must he, resort to many trial and error to see exactly
what the doc is talking about?

But, can this doc be (re-)written effectively and easily so that any
programers needn''t do trial''n''error post-reading?

The answer to the questions are resounding yeses, you fucking asses.

paypal me a hundred dollars and i''ll rewrite the whole re doc in a few
hours.

Fuck you the standard IT morons. Excuse me for i didn''t have time to
write a more coherent and detailed analysis of the stupidities of the
re doc.

Xah
xa*@xahlee.org
a?? http://xahlee.org/PageTwo_dir/more.html a??

推荐答案

我已经受够了。


* PLONK *

-

Michael Hoffman
I''ve had enough.

*PLONK*
--
Michael Hoffman


Xah Lee写道:
Xah Lee wrote:
of motherf ***不成功的支持?
of motherf***ing irrevalent drivel?




我很开心。

冒充Xah Lee的巨魔让xah看起来像个白痴。

LOL



I am greatly amused.
A troll impersonating Xah Lee has made xah look like a total moron.
LOL


xa*@xahlee.org / 2005-04-12 03:25:33 -0700:
# xa*@xahlee.org / 2005-04-12 03:25:33 -0700:
QUOTE
编译(
pattern [,flags])

编译一个常规的将表达模式转换为正则表达式对象,
可以使用其match()和search()方法进行匹配,如下所述。

表达式的行为可以通过speci修改打旗子
值。值可以是以下任何变量,使用按位OR(|运算符)组合。
UNQUOTE
他妈的是什么意思不明确的意思是OR操作员与他妈的他妈的按位行话?


按位OR(|运算符):它没有说OR

运算符,是吗?对于IT'他妈的愚蠢的文档和他们的fuckhead程序员的博览会,请参阅:
,请参阅:
http://xahlee.org/Periodic_dosage_di...ami_cukta.html

有趣的阅读,我可能会发给你一个很少我的宠儿因为包含在内。

你想问自己这个问题:
一位经验丰富的程序员,至少是两种语言的专家,谁呢?还是Perl的专家,并且很了解正则表达式,并且刚刚阅读了文档,
必须他,通过许多反复试验才能确切地看到该文档正在谈论什么?
QUOTE
compile(
pattern[, flags])

Compile a regular expression pattern into a regular expression object,
which can be used for matching using its match() and search() methods,
described below.

The expression''s behaviour can be modified by specifying a flags
value. Values can be any of the following variables, combined using
bitwise OR (the | operator).
UNQUOTE And what the fuck is it unclearly meant by "OR" operator with the
mother fucking bitwise jargon?
"bitwise OR (the | operator)": it doesn''t speak about an "OR
operator", does it?
for a exposition of IT''s fucking stupid docs and their fuckhead coders,
see:
http://xahlee.org/Periodic_dosage_di...ami_cukta.html
Interesting reading, I might send you a few of my pet peeves for
inclusion.
you want to ask yourself this question:
Can a seasoned programer, who is expert at least 2 languages, who is
also a expert at Perl and knew regex well, and have just read the doc,
must he, resort to many trial and error to see exactly what the doc is
talking about?




虽然我理解你的挫折感(当我尝试使用Python文档时我诅咒同样的诅咒),你正在破坏你的消息

(IMNSHO很好,但仍然是无益的亵渎。


不幸的是,python社区似乎沐浴在

错误组织的半文档中,参见e。 g。
http:/ /marc.theaimsgroup.com/?l=pyth...3919606261&w=2

特别回复(正如我所读)建议反向

工程作为文档的可行替代方案。


-

多少越南兽医需要拧一个灯泡?

你不知道,伙计。你不知道。

因为你不是在那里。 http://bash.org/?255991


这篇关于[perl-python] Python文档讽刺(续)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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