[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-10-03 Thread Greg Hazel
Changes by Greg Hazel gha...@users.sourceforge.net: -- nosy: +ghazel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9884 ___ ___ Python-bugs-list

[issue9023] distutils relative path errors

2010-08-21 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: The python setup script is for the python module, which is in a subdirectory of the C library project. I am not going to move setup.py to the root directory just to work around a a distutils bug. This distutils bug could cause

[issue9023] distutils relative path errors

2010-08-21 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: Éric Araujo mer...@netwok.org added the comment: I've changed my code to use os.path.abspath() while I wait for a fix. Does this means that your code works with paths that go to the parent directory? I don’t know if it’s right

[issue7171] Add inet_ntop and inet_pton support for Windows

2010-07-20 Thread Greg Hazel
Changes by Greg Hazel gha...@users.sourceforge.net: -- nosy: +ghazel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7171 ___ ___ Python-bugs-list

[issue7171] Add inet_ntop and inet_pton support for Windows

2010-07-20 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: In addition, inet_ntop and inet_pton can be implemented on Windows platforms prior to Vista using WSAAddressToStringA and WSAStringToAddressA. -- ___ Python tracker rep...@bugs.python.org

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2010-07-19 Thread Greg Hazel
Changes by Greg Hazel gha...@users.sourceforge.net: -- nosy: +ghazel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6792 ___ ___ Python-bugs-list

[issue9266] ctypes ValueError: NULL pointer access on Win7 x64

2010-07-15 Thread Greg Hazel
New submission from Greg Hazel gha...@users.sourceforge.net: ctypes on Windows on a 64bit Python installation gets a NULL pointer access where one is not expected. To reproduce the problem, run make.bat then python ctypes_test.py Failure output looks like this: Three! 1 2 __main__.LP_Some

[issue9266] ctypes ValueError: NULL pointer access on Win7 x64

2010-07-15 Thread Greg Hazel
Changes by Greg Hazel gha...@users.sourceforge.net: Removed file: http://bugs.python.org/file18012/ctypes_test.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9266

[issue9266] ctypes ValueError: NULL pointer access on Win7 x64

2010-07-15 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: Ok, this issue is worse, and much easier to reproduce, than I thought. Here is an updated ctypes_test.zip with a repro using only integers and callbacks. Correct output: ('three', (1, 2, 3)) ('four', (1, 2, 3, 4)) ('five', (1, 2, 3, 4

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2010-06-26 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: you should *expect* all those values to persist, so that shouldn't be surprising. It's not something I expected, and the warnings around traceback objects are a good indication that other developers have not expected it either. One

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2010-06-25 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: This is still an issue. The bug I'm reporting had been explained well, I thought, but I'll repeat it in summary: There is no way to pass around traceback objects without holding references to an excessive number of objects. Traceback

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2010-06-25 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: The objects I do want in the traceback are the objects necessary to print a traceback, but not the locals and globals of each frame. For example: def bar(): x = stuff raise Exception(example!) bar() prints: Traceback (most

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2010-06-25 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: It seems this is partially addressed in a big red Warning section of the docs on sys.exc_info: http://docs.python.org/release/3.1/library/sys.html#sys.exc_info and is captured in the Open Issue: Garbage Collection section for PEP-3134

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2010-06-25 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: It depends on how you look at it. Those two issues describe the surprising behavior of the same references I'm talking about here, when the lifetime of the traceback reference is only inside the same frame. This ticket describes

[issue9023] distutils relative path errors

2010-06-18 Thread Greg Hazel
New submission from Greg Hazel gha...@users.sourceforge.net: Probably applies to more versions, but I only tested on 2.5.2 and 2.6.5. Distutils incorrectly constructs paths for the build/temp directory when relative paths are used in the sources list. This can result in failing to make

[issue3423] DeprecationWarning message applies to wrong context with exec()

2010-06-09 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: Searching the file for raise is sort of pointless, since exec() takes a string which might have come from anywhere, and there might be any number of exec() calls in the module. See: http://codepad.org/7EBMhb0O There are at least two

[issue1565509] Repair or Change installation error

2009-03-29 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: IE renamed the file for me. So this is not uncommon. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1565509

[issue1565525] gc allowing tracebacks to eat up memory

2009-01-13 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: But a list of strings is not re-raisable. The co_filename, co_name, and such used to print a traceback are not dependent on the locals or globals. ___ Python tracker rep...@bugs.python.org http

[issue1565525] gc allowing tracebacks to eat up memory

2009-01-13 Thread Greg Hazel
Greg Hazel gha...@users.sourceforge.net added the comment: STINNER Victor Do you need the original traceback? Why not only raising the exception? If the exception was captured in one stack, and is being re-raised in another. It would be more useful to see the two stacks appended instead

[issue4034] traceback attribute error

2008-10-04 Thread Greg Hazel
Greg Hazel [EMAIL PROTECTED] added the comment: There seem to be some other exception type and string inconsistencies, but they are not new to Python 2.6 tb.tb_frame = None Traceback (most recent call last): File stdin, line 1, in module TypeError: 'traceback' object has only read-only

[issue4034] traceback attribute error

2008-10-03 Thread Greg Hazel
New submission from Greg Hazel [EMAIL PROTECTED]: Unrelated to this bug, I would like to have the ability to remove the reference to the frame from the traceback object. Specifically so that the traceback object could be stored for a while without keeping all the locals alive as well. So

[issue3423] DeprecationWarning message applies to wrong context with exec()

2008-07-21 Thread Greg Hazel
New submission from Greg Hazel [EMAIL PROTECTED]: exec()ing a line which causes a DeprecationWarning causes the warning to quote the file exec() occurs in instead of the string. Demonstration of the issue: http://codepad.org/aMTYQgN5 -- components: None messages: 70129 nosy: ghazel

[issue1690840] xmlrpclib methods submit call on __str__, __repr__

2007-09-11 Thread Greg Hazel
Greg Hazel added the comment: How about making ServerProxy a new-style class? _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1690840 _ ___ Python-bugs-list mailing list