[issue4285] Use a named tuple for sys.version_info

2009-01-26 Thread Ross Light
Ross Light rlig...@gmail.com added the comment: Tests added and new patch uploaded. Anything else, anyone? Added file: http://bugs.python.org/file12870/patch-4285d.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4285

[issue4285] Use a named tuple for sys.version_info

2009-01-25 Thread Ross Light
Ross Light rlig...@gmail.com added the comment: Hello, my name is Ross Light. I've written a patch for this, but this is my first patch, so someone please review. This does pass all regression tests, but I did have to modify the test_sys case to not check for sys.version_info being a tuple

[issue4285] Use a named tuple for sys.version_info

2009-01-25 Thread Ross Light
Ross Light rlig...@gmail.com added the comment: Oh yes, you're right. Sorry! Added file: http://bugs.python.org/file12857/patch-4285b.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4285

[issue4285] Use a named tuple for sys.version_info

2009-01-25 Thread Ross Light
Ross Light rlig...@gmail.com added the comment: Okay, here's a patch with the requested changes. You're right in saying that flag is usually boolean, I was just going along with several other files where there's float and int flags (i.e. floatobject.c). Added file: http://bugs.python.org