James Thomas <[EMAIL PROTECTED]> added the comment:
I believe this patch solves the problem.
I added the line
Py_DECREF(temp)
after the code block shown above.
I also changed the line
if (PyDict_SetItemString(temp, #name, Py_BuildValue("i", name)) < 0) return
to
if (P
James Thomas <[EMAIL PROTECTED]> added the comment:
Your patch works perfectly on windows. Thanks for your help.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
James Thomas <[EMAIL PROTECTED]> added the comment:
Here is the patch (apply to platform.py)
--
keywords: +patch
Added file: http://bugs.python.org/file10594/platform.patch
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
James Thomas <[EMAIL PROTECTED]> added the comment:
Ah, ok, the code under except AttributeError: gives me some good ideas.
Should I use the methods utilized there to extract information from the
system?
___
Python tracker <[EMAIL PROTECTE
James Thomas <[EMAIL PROTECTED]> added the comment:
Alright, that makes things much clearer.
I'm looking at this code snippet in platform.py:
if system == 'unknown':
system = ''
if node == 'unknown':
node = ''
i
James Thomas <[EMAIL PROTECTED]> added the comment:
much handling code already seems to exist under the line
except AttributeError:
in platform.py (function uname(), lines 1101-1161 platform.py)
i'm not too familiar with the Python codebase (i just began developing
with Python a fe
James Thomas <[EMAIL PROTECTED]> added the comment:
i'm looking at the source and there doesn't appear to be a function
uname within os.py. are we just considering the uname function in
platform.py?
___
Python tracker <[EMAI
James Thomas <[EMAIL PROTECTED]> added the comment:
I can work on this task.
--
nosy: +jjt009
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho