[issue33848] Incomplete format string syntax for Exceptions

2018-06-12 Thread Johannes Raggam
New submission from Johannes Raggam : The following is valid Python 2: >>> 'okay {0:s}'.format(Exception('test')) 'okay test' >>> 'okay {0}'.format(Exception('test')) 'okay test' The following fails on Python 3.6

[issue33846] Misleading error message in urllib.parse.unquote

2018-06-12 Thread Johannes Raggam
New submission from Johannes Raggam : urllib.parse.unquote gives an misleading error message when: >>> import urllib >>> urllib.parse.unquote(b'bytesurl') *** TypeError: a bytes-like object is required, not 'str' while: >>> urllib.parse.unquote

[issue5996] abstract class instantiable when subclassing dict

2009-05-11 Thread johannes raggam
New submission from johannes raggam : when declaring a abstract base class with an abstract property or method and subclassing from dict, the class is instantiable (instanceable?). >>> import abc >>> class A(object): ... __metaclass__ = abc.ABCMeta ... @abc.abstractpr