Why """, not '''?

Sam Garson peanut.sam at googlemail.com
Thu Mar 6 09:58:15 CET 2008


The """ is for the docstring - if you need the user to know what theyre
doing with the program you can create documentation, and what you put in
those quotes wwill come up in that (I think)

On 3/6/08, Dotan Cohen <dotancohen at gmail.com> wrote:
>
> On 06/03/2008, Dan Bishop <danb_83 at yahoo.com> wrote:
> > On Mar 5, 7:24 pm, Matt Nordhoff <mnordh... at mattnordhoff.com> wrote:
> >
> > > Steven D'Aprano wrote:
> >  > > Surely it would depend on the type of text: pick up any random
> English
> >  > > novel containing dialogue, and you're likely to find a couple of
> dozen
> >  > > pairs of quotation marks per page, against a few apostrophes.
> >  >
> >
> > > That's an idea... Write a novel in Python docstrings.
> >
> >
> > Or better yet, write in Python syntax.
> >
> >
> >  assert len([man for man in now_alive() if
> >  man.remembers(datetime.date(1775, 4, 18))]) <= HARDLY
> >
> >  lantern_count = {'land': 1, 'sea': 2}.get(british.location(), 0)
> >  n_ch_twr.hang(Lantern() for _ in xrange(lantern_count))
> >
> >  if lantern_count:
> >     for village in middlesex:
> >         ride_thru(village)
> >         spread_alarm(village)
> >
>
> That looks ported from lolcode.
> http://lolcode.com/
>
> Dotan Cohen
>
> http://what-is-what.com
> http://gibberish.co.il
> א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> --
> http://mail.python.org/mailman/listinfo/python-list




-- 
I like kids, but I don't think I could eat a whole one...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080306/6cb7759f/attachment.html>


More information about the Python-list mailing list