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.

Author vstinner
Recipients ajaksu2, akitada, brianvanden, eric.araujo, kjohnson, mpg, ncoghlan, ping, sunfinite, vstinner
Date 2013-09-23.08:06:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379923610.25.0.176354587394.issue1185124@psf.upfronthosting.co.za>
In-reply-to
Content
+        except:
+            pass
...
+    except TypeError:
+        return None

I don't understand these try/except. First, "except: pass" must never be used, only catch specific exceptions (ex: AttributeError). Can you explain why you expect a TypeError?

If your patch fixes a bug, you must add a new unit test to test_pydoc to check for non-regression.
History
Date User Action Args
2013-09-23 08:06:50vstinnersetrecipients: + vstinner, ping, ncoghlan, kjohnson, brianvanden, ajaksu2, eric.araujo, akitada, mpg, sunfinite
2013-09-23 08:06:50vstinnersetmessageid: <1379923610.25.0.176354587394.issue1185124@psf.upfronthosting.co.za>
2013-09-23 08:06:50vstinnerlinkissue1185124 messages
2013-09-23 08:06:50vstinnercreate