Joesph added the comment:
Hrm, yes. 'Tis what I get for working while sick.
--
resolution: invalid -> accepted
___
Python tracker
<http://bugs.python.org
New submission from Joesph :
"""
Per the documentation urlencode is supposed to encode a structure returned by
parse_qs back to a query string. However, urlencode appears to not be
processing the lists associated with each key.
Example:
"""
import urllib.parse
dic
Joesph added the comment:
Beautiful, thank you. This should be in the isinstance documentation for
clarity.
On May 29, 2011 9:28 PM, "R. David Murray" wrote:
>
> R. David Murray added the comment:
>
> You are correct, B is not an instance of A. But both B and A
Joesph added the comment:
It only fails when checking for 'object'. To think classes are instances is
absurd. Its like saying the chicken is the egg. I can understand that
classes are an instance of object in the interpreter, but, that isn't the
case in the interpreted.
Joesph added the comment:
And much sense is made. If there is a generic instance test that I have
missed I'd be willing to work around this minor flaw. That the definition is
an instance of 'object' is a case that should be handled by the function
though.
On May 28, 2011 6:1
New submission from Joesph :
#Example:
class a(object):
pass
b = a()
print([isinstance(a,object), isinstance(b,object)])
'''
outputs: [True, True]
expected: [False, True]
As class a is not instantiated it should return false. As-is isinstance is just
a synonym