[pydotorg-www] Potential error found

Michael Foord michael at voidspace.org.uk
Sun Feb 10 14:16:56 CET 2013


On 10 Feb 2013, at 12:37, "M.-A. Lemburg" <mal at egenix.com> wrote:

> On 10.02.2013 13:23, Michael Foord wrote:
>> 
>> On 10 Feb 2013, at 06:57, Tannyr <tannyr at gmail.com> wrote:
>> 
>>> Source:  http://wiki.python.org/moin/SimplePrograms
>>> 
>>> Description:  The '8 line' example program is not displaying properly.  Missing surrounding 'code box'.
>>> 
>>> 
>>> Current View:
>>> {{{#!/usr/bin/env python # This program adds up integers in the command line import sys try:
>>> 
>>> 	• total = sum(int(arg) for arg in sys.argv[1:]) print 'sum =', total
>>> except ValueError:
>>> 
>>> 	• print 'Please supply integer arguments'
>>> }}}
>>> 
>> 
>> I've "fixed" it - however the wiki still seems to strip the "#!/usr/bin/env python" line.
> 
> That's normal. If you put a # on the first line of a preformatted
> section, moin interprets this as parser directive:
> 
> http://wiki.python.org/moin/HelpOnParsers
> 
> If you still want to have the line to show up, you need to
> place it on the second line.
> 

Well, there's a blank line above it but I guess moin ignores that. This snippet never worked presumably.

Michael

> -- 
> Marc-Andre Lemburg
> eGenix.com
> 
> Professional Python Services directly from the Source  (#1, Feb 10 2013)
>>>> Python Projects, Consulting and Support ...   http://www.egenix.com/
>>>> mxODBC.Zope/Plone.Database.Adapter ...       http://zope.egenix.com/
>>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
> ________________________________________________________________________
> 
> ::::: Try our mxODBC.Connect Python Database Interface for free ! ::::::
> 
>   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>           Registered at Amtsgericht Duesseldorf: HRB 46611
>               http://www.egenix.com/company/contact/
> 


--
http://www.voidspace.org.uk/


May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing 
http://www.sqlite.org/different.html







More information about the pydotorg-www mailing list