This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: urllib2.build_opener(
Type: Stage:
Components: Documentation Versions: Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: ajaksu2, georg.brandl, mjb, orsenthil
Priority: normal Keywords:

Created on 2009-02-10 17:15 by mjb, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg81567 - (view) Author: Max Böhm (mjb) Date: 2009-02-10 17:15
The build_opener() function of urllib2 is speciofied as:

urllib2.build_opener([handler, ...])

I think it should be:

urllib2.build_opener(handler, ...)

see
http://docs.python.org/library/urllib2.html?highlight=build_opener
msg81704 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2009-02-12 02:07
I believe those square brackets mean "supplying handlers is optional",
but even so it'd be very ambiguous.
msg81908 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-02-13 11:14
Why is that ambiguous? Can you come up with a better short form?
msg81909 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2009-02-13 11:43
And that is how it is at all others places too.  Optionals are placed inside [].
msg84640 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2009-03-30 20:31
Georg, I think this can be closed as invalid. Thanks.
msg84882 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-03-31 19:44
Closing as invalid.
History
Date User Action Args
2022-04-11 14:56:45adminsetgithub: 49458
2009-03-31 19:44:08georg.brandlsetstatus: open -> closed
resolution: not a bug
messages: + msg84882
2009-03-30 20:31:32orsenthilsetmessages: + msg84640
2009-02-13 11:43:38orsenthilsetnosy: + orsenthil
messages: + msg81909
title: urllib2.build_opener([handler, ...]) incorrect signature in docs -> urllib2.build_opener(
2009-02-13 11:14:10georg.brandlsetmessages: + msg81908
2009-02-12 02:07:30ajaksu2setnosy: + ajaksu2
messages: + msg81704
2009-02-10 17:15:25mjbcreate