> Programming Languages > Python
Various Topics Home | Disclaimer | Report Adult Posts

Various Topics on Python



Python - "[perl-python] Python do***entation moronicities (continued)" in Programming Languages


Old 04-12-2005   #1
..h ..e
 
Default [perl-python] Python do***entation moronicities (continued)

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 mother****ing 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 ****ing saying?

I wanted to use regex to find & replace on text. I've read in a file.
Trying to reading this ****ing doc is a pain in the ***. 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 ****ing variable. Why does the doc incompetently use that
term?
And what the **** is it unclearly meant by "OR" operator with the
mother ****ing bitwise jargon?

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

**** the mother ****ing coders in the IT industry.

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

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

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

for a exposition of IT's ****ing stupid docs and their ****head 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 ****heads 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 ****ing ***es.

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

**** 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
xah@xahlee.org
http://xahlee.org/PageTwo_dir/more.html

 
Old 04-12-2005   #2
..cha.. ..ffm..
 
Default Re: [perl-python] Python do***entation moronicities (continued)

I've had enough.

*PLONK*
--
Michael Hoffman
 
Old 04-12-2005   #3
..e ..i..
 
Default Re: [perl-python] Python do***entation moronicities (continued)

Xah Lee wrote:

> of motherf***ing irrevalent drivel?


I am greatly amused.
A troll impersonating Xah Lee has made xah look like a total moron.
LOL
 
Old 04-12-2005   #4
..m.. ..uhaus..
 
Default Re: [perl-python] Python do***entation moronicities (continued)

# xah@xahlee.org / 2005-04-12 03:25:33 -0700:
> 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 **** is it unclearly meant by "OR" operator with the
> mother ****ing bitwise jargon?


"bitwise OR (the | operator)": it doesn't speak about an "OR
operator", does it?

> for a exposition of IT's ****ing stupid docs and their ****head 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?


While I understand your frustration (I curse the same when I try to
use the Python do***entation), you are spoiling your message by
the (IMNSHO well granted, but still) unhelpful profanity.

Unfortunately, the python community seems to bathe in the
misorganized half-do***entation, see e. g.
http://marc.theaimsgroup.com/?l=pyth...3919606261&w=2
especially the reply that (as I read it) suggested reverse
engineering as a viable alternative to do***entation.

--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
 
Old 04-12-2005   #5
..ch.. ..nd..
 
Default Re: [perl-python] Python do***entation moronicities (continued)


[Xah]
> mother****ing ... ****ing ... ****ing ... ****ing ... **** ... ****ing
> ****ing ... ****ing ... mother ****ing ... ****ing ... piece of **** ...
> mother****ing ... ****ing ... ****ing ... big ***hole ... masturbation ...
> ****ing morons ... ****ing stupid ... ****head coders ... ****heads ...
> you ****ing ***es.


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


Can we paypal you a hundred dollars to leave us alone? I'll pledge $10.
Are there another nine people here who'll do the same?

--
Richie Hindle
richie@entrian.com

 
Old 04-12-2005   #6
.... .. ..ggis..
 
Default Re: [perl-python] Python do***entation moronicities (continued)

> Can we paypal you a hundred dollars to leave us alone? I'll pledge $10.
> Are there another nine people here who'll do the same?


Me, me. I'm good for ten, too. The current euro-dollar exchange course makes
that the price of a normal size McDonalds Menu - so sparing that makes me
healthier both mentally and physically. Great deal.
--
Regards,

Diez B. Roggisch
 
Old 04-12-2005   #7
..kerfa..
 
Default Re: [perl-python] Python do***entation moronicities (continued)


Gotta say, is we let this man write the docs for us, they'll sure a
sugar be more colorful than the ones we presently have, even if h
doesn't manage to make them better.

"The [insert relation]****ing Python interpreter is usually installe
as /usr/local/bin/python on those g*dd*mn machines where it i
available; putting /usr/local/bin in your ****ing Unix shell's searc
path makes it possible to start it by typing the command python to th
shell. F***er.

--
Pokerface:: Posted from Tactical Gamer - http://www.TacticalGamer.com :

 
Old 04-12-2005   #8
..t
 
Default Re: [perl-python] Python do***entation moronicities (continued)

Xah Lee wrote:

> What does a programer who wants to use regex gets out from this piece
> of motherf**king irrevalent drivel?


Any resume that ever crosses my desk that includes 'Xah Lee' anywhere in
the name will be automatically trashed.
 
Old 04-12-2005   #9
.... ..n ..ningh..
 
Default Re: [perl-python] Python do***entation moronicities (continued)

Hi All--

Richie Hindle wrote:
>
> [Xah]
> > mother****ing ... ****ing ... ****ing ... ****ing ... **** ... ****ing
> > ****ing ... ****ing ... mother ****ing ... ****ing ... piece of **** ...
> > mother****ing ... ****ing ... ****ing ... big ***hole ... masturbation ...
> > ****ing morons ... ****ing stupid ... ****head coders ... ****heads ...
> > you ****ing ***es.

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

>
> Can we paypal you a hundred dollars to leave us alone? I'll pledge $10.
> Are there another nine people here who'll do the same?
>
>


Why don't we pay him $100 to re-write the PERL docs?

Metta,
Ivan
----------------------------------------------
Ivan Van Laningham
God N Locomotive Works
http://www.andi-holmes.com/
http://www.foretec.com/python/worksh...oceedings.html
Army Signal Corps: Cu Chi, Cl*** of '70
Author: Teach Yourself Python in 24 Hours
 
Old 04-12-2005   #10
..cha.. ..ati..
 
Default Re: [perl-python] Python do***entation moronicities (continued)

On Tue, 12 Apr 2005 04:02:20 -0700, Joe Smith wrote:

> Xah Lee wrote:
>
>> of motherf***ing irrevalent drivel?

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


"The ****ing doc cannot be possibly ****ing worsely written."

This is very Xahish though, even if it's not him.

It's right up there with "AND, the writting as usuall is fantastic
incompetent."
 

Thread Tools
Display Modes





Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0