[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2012-03-22 Thread Dave Burton
Dave Burton ncdave4l...@gmail.com added the comment: Well, the exception is NotImplementedError. It's raised explicitly in pygame\__init__.py I uncommented my commented-out print statement in inspect.py, and added a traceback print, and ran pydoc like this: c:\python32\python.exe c

[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2012-03-19 Thread Dave Burton
Dave Burton ncdave4l...@gmail.com added the comment: expect? Did I type that?? Should be try/except, of course. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14367

[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2012-03-18 Thread Dave Burton
New submission from Dave Burton ncdave4l...@gmail.com: I noticed that pydoc doesn't work for pygame under python 3.2.1 or 3.2.2 for Win32; it just reports: NotImplementedError: scrap module not available (ImportError: No module named scrap) I made a small patch to inspect.py to solve

[issue9949] os.path.realpath on Windows does not follow symbolic links

2012-03-10 Thread Dave Burton
Dave Burton ncdave4l...@gmail.com added the comment: It seems that the nt module is implemented in the posixmodule.c source file, and the Python 3 version contains the posix__getfinalpathname entry point, but the Python 2 version does not. I presume that PyWin32 could also be used to work

[issue9949] os.path.realpath on Windows does not follow symbolic links

2012-03-10 Thread Dave Burton
Dave Burton ncdave4l...@gmail.com added the comment: Excellent! The ntpath.py change is nearly identical in Python 2.7 to the change for Python 3.2. The only difference is that instead of: +elif isinstance(path, bytes): +path = os.getcwdb() It is: +elif

[issue9949] os.path.realpath on Windows does not follow symbolic links

2012-03-09 Thread Dave Burton
Dave Burton ncdave4l...@gmail.com added the comment: This is a patch for the os.path.realpath() bug under Windows, http://bugs.python.org/issue9949 os.path.realpath on Windows does not follow symbolic links ntpath.diff fixes the realpath() function to resolve symbolic links