[issue25879] Code objects from same line can compare equal

2015-12-15 Thread Kirk McDonald
Kirk McDonald added the comment: This is a duplicate of http://bugs.python.org/issue25843 -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue25879] Code objects from same line can compare equal

2015-12-15 Thread Kirk McDonald
Changes by Kirk McDonald : -- components: +Interpreter Core type: -> behavior versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker <http://bugs.python.org/issu

[issue25879] Code objects from same line can compare equal

2015-12-15 Thread Kirk McDonald
New submission from Kirk McDonald: The following code gives an unexpected result: >>> a, b = lambda: 1, lambda: 1.0 >>> a() 1 >>> b() 1 >>> type(b()) >>> a.__code__ is b.__code__ True The cause boils down to this line of code: https://hg

[issue6790] httplib and array do not play together well

2009-09-28 Thread Kirk McDonald
Changes by Kirk McDonald : Removed file: http://bugs.python.org/file14991/issue6790-python2.6.diff ___ Python tracker <http://bugs.python.org/issue6790> ___ ___ Python-bug

[issue6790] httplib and array do not play together well

2009-09-28 Thread Kirk McDonald
Kirk McDonald added the comment: Remove unused 'body'. -- Added file: http://bugs.python.org/file14992/issue6790-python2.6.diff ___ Python tracker <http://bugs.python.

[issue6790] httplib and array do not play together well

2009-09-28 Thread Kirk McDonald
Kirk McDonald added the comment: Oh, I suppose I don't. I had simply copy and pasted those four lines from the previous method. That line could easily be removed. -- ___ Python tracker <http://bugs.python.org/i

[issue6790] httplib and array do not play together well

2009-09-28 Thread Kirk McDonald
Changes by Kirk McDonald : Removed file: http://bugs.python.org/file14978/issue6790-python2.6.diff ___ Python tracker <http://bugs.python.org/issue6790> ___ ___ Python-bug

[issue6790] httplib and array do not play together well

2009-09-28 Thread Kirk McDonald
Kirk McDonald added the comment: I have updated the patch with a unittest for httplib.HTTPConnection.send. -- Added file: http://bugs.python.org/file14991/issue6790-python2.6.diff ___ Python tracker <http://bugs.python.org/issue6

[issue6790] httplib and array do not play together well

2009-09-25 Thread Kirk McDonald
Kirk McDonald added the comment: Here is a patch special-casing array.array in httplib.HTTPConnection.send in Python 2.6. -- keywords: +patch nosy: +KirkMcDonald Added file: http://bugs.python.org/file14978/issue6790-python2.6.diff ___ Python

[issue6790] httplib and array do not play together well

2009-09-25 Thread Kirk McDonald
Kirk McDonald added the comment: And here is a patch removing the array.array.read and .write methods in 2.7. -- Added file: http://bugs.python.org/file14979/issue6790-python2.7.diff ___ Python tracker <http://bugs.python.org/issue6

[issue5611] Auto-detect indentation in C source in vimrc

2009-03-30 Thread Kirk McDonald
New submission from Kirk McDonald : According to PEP 7, older C source files are indented with tabs, and newer ones are indented with spaces. The vimrc file in the repository assumes that existing C source files should be indented with tabs, and it should indent with spaces when you create a new

[issue1643] Add group() to itertools

2007-12-17 Thread Kirk McDonald
New submission from Kirk McDonald: One question which is asked with surprising frequency in #python is how to yield multiple objects at a time from an iterable object. That is, given [1, 2, 3, 4, 5, 6], get [(1, 2), (3, 4), (5, 6)]. The "grouper" function in the itertools recipes pag