[issue12390] urllib.parse.urlencode encoding lists as strings

2011-06-23 Thread Joesph
Joesph someone...@gmail.com added the comment: Hrm, yes. 'Tis what I get for working while sick. -- resolution: invalid - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12390

[issue12390] urllib.parse.urlencode encoding lists as strings

2011-06-22 Thread Joesph
New submission from Joesph someone...@gmail.com: 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 dictQuery

[issue12203] isinstance not functioning as documented

2011-05-29 Thread Joesph
Joesph someone...@gmail.com 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

[issue12203] isinstance not functioning as documented

2011-05-29 Thread Joesph
Joesph someone...@gmail.com 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. Thus

[issue12203] isinstance not functioning as documented

2011-05-29 Thread Joesph
Joesph someone...@gmail.com 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 rep...@bugs.python.org wrote: R. David Murray rdmur...@bitdance.com added the comment: You are correct, B

[issue12203] isinstance not functioning as documented

2011-05-28 Thread Joesph
New submission from Joesph someone...@gmail.com: #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