[Patches] [ python-Patches-892821 ] example for urllib2 has SyntaxError

SourceForge.net noreply at sourceforge.net
Sun Feb 8 15:30:04 EST 2004


Patches item #892821, was opened at 2004-02-08 06:42
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=892821&group_id=5470

Category: Documentation
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: George Yoshida (quiver)
Assigned to: Nobody/Anonymous (nobody)
Summary: example for urllib2 has SyntaxError

Initial Comment:
>From the example for urllib2.
http://www.python.org/doc/current/lib/urllib2-
examples.html

> print '...' %
> data

The problem is that the right argument of % operator is 
not in the same line.
This should read:

> print '...' % data


There is another typo from Python Reference Manual.
http://www.python.org/doc/current/ref/encodings.html
> which is recognized by Bram Moolenar's VIM.

Moolenaar is misspelled. His last name is Moolenaar, not 
Moolenar. Check his web site.
http://www.moolenaar.net/vim.html


----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2004-02-08 15:30

Message:
Logged In: YES 
user_id=80475

Accepted and applied.

Thanks for your keen eye.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=892821&group_id=5470



More information about the Patches mailing list