Bugs item #1276587, was opened at 2005-08-30 12:52 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1276587&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Interpreter Core Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Mike Foord (mjfoord) Assigned to: Nobody/Anonymous (nobody) Summary: dict('') doesn't raise a value error Initial Comment: The dict function will theoretically accept any sequence or bounded iterable that yields (key, value) tuples. A side effect is that dict('') is valid - producing an emtpy dictionary. dict(x) where x is *any* string other than '' fails with a ValueError. I suggest that dict('') ought to produce a ValueError to as a string is *never* a valid input to the dict function. The current situation allows obscure errors to pass unnoticed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1276587&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com