HaveF / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

mutable types used as default values in `parse()` #276

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
 Line 3647, "feedparser.py":

def parse(url_file_stream_or_string, etag=None, modified=None, agent=None, 
referrer=None, handlers=[], request_headers={}, response_headers={}):

Three parameters have mutable default values.  That's generally considered 
incorrect Python, and may not be thread-safe.

Original issue reported on code.google.com by na...@animats.com on 3 May 2011 at 5:04

GoogleCodeExporter commented 9 years ago
Fixed in r551.

Original comment by kurtmckee on 4 May 2011 at 7:02