[issue1306] Embedded python reinitialization

2007-11-20 Thread Christian Heimes
Christian Heimes added the comment: The patch solves one issue. It resets the Py_DefaultFileSystemEncoding to NULL when no default value was given. However the finalization fails after the 3rd round at if (op == refchain || op-_ob_prev-_ob_next != op || op-_ob_next-_ob_prev

[issue1480] sqlite module is leaking lots of references

2007-11-20 Thread Christian Heimes
New submission from Christian Heimes: test_sqlite leaked [325, 325, 325, 325] references, sum=1300 -- components: Extension Modules keywords: py3k messages: 57729 nosy: tiran priority: high severity: normal status: open title: sqlite module is leaking lots of references versions: Python

[issue1469] SSL tests leak memory

2007-11-20 Thread Christian Heimes
Christian Heimes added the comment: I don't see leaks when I run the tests with $ ./python Lib/test/regrtest.py -R:: test_ssl.py test_ssl beginning 9 repetitions 123456789 . 1 test OK. [80034 refs] -- nosy: +tiran priority: - normal __ Tracker

[issue1475] test_popen fails when the directory contains a space

2007-11-21 Thread Christian Heimes
Christian Heimes added the comment: In Python 3.x os.popen is implemented based on subprocess. I believe it's still a problem with subprocess. Python 3.x also drops support for Windows 95 to ME. Would the additional quoting be ok when the code checks for COMPSPEC == cmd.exe first? # Supply

[issue1481] test_uuid is warning about unreliable functions

2007-11-21 Thread Christian Heimes
New submission from Christian Heimes: I'm putting the report into the tracker as a reminder. WARNING: uuid.getnode is unreliable on many platforms. It is disabled until the code and/or test can be fixed properly. WARNING: uuid._ifconfig_getnode is unreliable on many platforms

[issue1306] Embedded python reinitialization

2007-11-21 Thread Christian Heimes
Christian Heimes added the comment: I've added some debugging code to _Py_ForgetReference and now I'm getting this: $ ./reinit_test round 1 [23832 refs] round 2 [24558 refs] round 3 * ob object : refcnt 0 at 0x821d728 type: str refcount: 0 address : 0x821d728 * op-_ob_prev-_ob_next object

[issue1482] IMAP4 SSL isn't working

2007-11-21 Thread Christian Heimes
New submission from Christian Heimes: The SSL version of the imap4 client isnt' working under 3.0. After I applied the patch from http://bugs.python.org/issue1210 I tried to connect to an IMAP server over SSL. The connection hangs. import imaplib conn = imaplib.IMAP4_SSL(mailbox.rwth-aachen.de

[issue1083] Confusing error message when dividing timedelta using /

2007-11-21 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +patch Added file: http://bugs.python.org/file8792/py3k_datetime_1083.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1083

[issue1469] SSL tests leak memory

2007-11-21 Thread Christian Heimes
Christian Heimes added the comment: Ubuntu Linux x86 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1469 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1488] PCBuild9 _ssl.vcproj improperly launches build

2007-11-22 Thread Christian Heimes
Christian Heimes added the comment: Thanks, I'll check it later. -- assignee: - tiran keywords: +patch, py3k priority: - normal versions: +Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1488

[issue1138] Fixer needed for __future__ imports

2007-11-23 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +py3k versions: +Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1138 __ ___ Python-bugs-list mailing list

[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2007-11-23 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +py3k versions: +Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1034 __ ___ Python-bugs-list mailing list

[issue1755179] Deadlocks with fork() and multithreading

2007-11-23 Thread Christian Heimes
Christian Heimes added the comment: It sounds like the importer dead lock problem. These problems are almost impossible to unit test because they are usually race conditions. I don't see a problem in moving the import to the module name space. errno is a built-in module and the import isn't

[issue1746656] IPv6 Interface naming/indexing functions

2007-11-23 Thread Christian Heimes
Christian Heimes added the comment: How do you know that the patch is working when you don't know how to test it? Nobody is going to apply new features without unit tests. -- nosy: +tiran _ Tracker [EMAIL PROTECTED] http://bugs.python.org

[issue765228] Subclassing from Modules

2007-11-23 Thread Christian Heimes
Christian Heimes added the comment: I agree. Python can't stop the developer from doing stupid things. We could remove Py_TPFLAGS_BASETYPE from the module type but that could cause incompatibilities with existing code. I'm assigning the bug to our beloved dictator to ask for his opinion

[issue1767787] MSVC++8 x86 tkinter build patch for trunk

2007-11-23 Thread Christian Heimes
Christian Heimes added the comment: I've fixed the builds a while ago. -- nosy: +tiran resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1767787

[issue1189216] zipfile module and 2G boundary

2007-11-23 Thread Christian Heimes
Changes by Christian Heimes: -- components: +Library (Lib) -None versions: +Python 2.6, Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1189216

[issue1731068] Importing a submodule fails after unloading its parent

2007-11-23 Thread Christian Heimes
Christian Heimes added the comment: Yes, it's fixed in Python 2.5 and newer. -- nosy: +tiran resolution: - out of date status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1731068

[issue1620174] Improve platform.py usability on Windows

2007-11-23 Thread Christian Heimes
Changes by Christian Heimes: -- components: +Library (Lib) -None versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1620174 _ ___ Python-bugs

[issue1735632] Add O_NOATIME to os module

2007-11-23 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.6, Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1735632 _ ___ Python-bugs-list mailing list

[issue1230540] sys.excepthook doesn't work in threads

2007-11-23 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.5, Python 2.6 -Python 2.4 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1230540 _ ___ Python-bugs-list

[issue1488] PCBuild9 _ssl.vcproj improperly launches build

2007-11-22 Thread Christian Heimes
Christian Heimes added the comment: I've fixed (1) and (2) in r59130. I don't understand what you mean with (3). -- resolution: - fixed status: open - pending __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1488

[issue1675455] Use getaddrinfo() in urllib2.py for IPv6 support

2007-11-23 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.6, Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1675455 _ ___ Python-bugs-list mailing list

[issue1474] PCbuild9 patch for trunk

2007-11-23 Thread Christian Heimes
Changes by Christian Heimes: -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1474 __ ___ Python-bugs-list mailing list

[issue1488] PCBuild9 _ssl.vcproj improperly launches build

2007-11-23 Thread Christian Heimes
Changes by Christian Heimes: -- status: pending - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1488 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1754273] Deprecation warning for (NOTEQUAL)

2007-11-23 Thread Christian Heimes
Christian Heimes added the comment: Applied in r59132 Thanks! -- nosy: +tiran resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1754273

[issue1754271] Deprecation warning for `backticks`

2007-11-23 Thread Christian Heimes
Christian Heimes added the comment: Applied in r59132 Thanks! -- nosy: +tiran resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1754271

[issue1493] Patch to remove unbound methods

2007-11-23 Thread Christian Heimes
New submission from Christian Heimes: Here is a first patch to remove unbound method objects. 6 tests failed: test_descr test_inspect test_pyclbr test_typechecks test_unittest test_weakref -- assignee: gvanrossum components: Interpreter Core files: py3k_remove_unbound.patch

[issue1493] Patch to remove unbound methods

2007-11-24 Thread Christian Heimes
Christian Heimes added the comment: Do you still believe in the tooth fairy, too? :p __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1493 __ ___ Python-bugs-list mailing list

[issue1497] Patch to remove API to create new unbound methods

2007-11-25 Thread Christian Heimes
Changes by Christian Heimes: -- components: Interpreter Core files: py3k_remove_newunbound.patch keywords: patch, py3k nosy: georg.brandl, tiran priority: high severity: normal status: open title: Patch to remove API to create new unbound methods versions: Python 3.0 Added file: http

[issue1412] test_subprocess fails on SuSE 10

2007-11-25 Thread Christian Heimes
Christian Heimes added the comment: I've fixed a bug in py3k and 2.6 where a test in test_shutil has removed an empty TMP directory. I regard the issue as a minor inconvenience. We can't work around every edge case. -- resolution: - works for me status: open - closed

[issue1497] Patch to remove API to create new unbound methods

2007-11-26 Thread Christian Heimes
Christian Heimes added the comment: The new patch adds new.boundcfunction as a replacement for new.instancemethod(id, None, cls). I'm going to add docs if you like the approach. Added file: http://bugs.python.org/file8810/py3k_remove_newunbound2.patch __ Tracker

[issue1498] Rename __builtins__ to __root_namespace__?

2007-11-26 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +py3k nosy: +tiran __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1498 __ ___ Python-bugs-list mailing list Unsubscribe

[issue1498] Rename __builtins__ to __root_namespace__?

2007-11-26 Thread Christian Heimes
Christian Heimes added the comment: A simple replace with sed -i works just fine. Afterwards the code needs only minor adjustments and cleanups. find -name \*.py -or -name \*.c -or -name \*.h | xargs sed -i 's/__builtins__/__root__/g' __ Tracker [EMAIL

[issue1498] Rename __builtins__ to __root_namespace__?

2007-11-26 Thread Christian Heimes
Christian Heimes added the comment: __origin__ __footing__ __radix__ __namespace__ __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1498 __ ___ Python-bugs-list mailing list

[issue1497] Patch to remove API to create new unbound methods

2007-11-27 Thread Christian Heimes
Christian Heimes added the comment: Guido van Rossum wrote: - Please clean up the comment in classobject.c starting with Method objects are used for one purposes: -- to begin with, one purposes is ungrammatical. Best to remove the (a) bullet and rephrase the whole thing more like Method

[issue1497] Patch to remove API to create new unbound methods

2007-11-27 Thread Christian Heimes
Christian Heimes added the comment: I've committed the changes in r59189. The documentation still needs updates. I had only time to fix some of the docs. -- resolution: - fixed status: open - pending __ Tracker [EMAIL PROTECTED] http://bugs.python.org

[issue1504] Add 2to3 fixer for (un)bound methods

2007-11-27 Thread Christian Heimes
New submission from Christian Heimes: Todo: im_self - __self__ im_func - __func__ im_class - __self__.__class__ instancemethod(func, self, cls) - instancemethod(func, self) -- assignee: collinwinter components: 2to3 (2.x to 3.0 conversion tool) keywords: py3k messages: 57870 nosy

[issue1505] Changes to PyMethod_New breaks ctypes on Windows

2007-11-27 Thread Christian Heimes
New submission from Christian Heimes: The problem is in _ctypes.c:create_comerror() around line 4620. -- assignee: theller components: Extension Modules, Windows keywords: py3k messages: 57871 nosy: theller, tiran priority: high severity: normal status: open title: Changes

[issue1455] VS2008, quick hack for distutils.msvccompiler

2007-11-27 Thread Christian Heimes
Christian Heimes added the comment: I've created another patch to add VS 2008 support to distutils. The new patch requires you to copy the msvccompiler.py first: $ cd Lib/distutils $ svn copy msvccompiler.py msvc9compiler.py $ cd ../.. $ patch -p0 py3k_vs2008_4.patch Martin, if you are going

[issue1504] Add 2to3 fixer for (un)bound methods

2007-11-27 Thread Christian Heimes
Christian Heimes added the comment: Added fix_methodattrs with an unit test in r59196. Can you check it please. By the way how do you know my IRC nick? Are you lurking in #python? :) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1504

[issue1504] Add 2to3 fixer for (un)bound methods

2007-11-27 Thread Christian Heimes
Christian Heimes added the comment: You are too fast. I haven't written a fixer for new.instancemethod yet. Do we need one? -- status: closed - open __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1504

[issue1504] Add 2to3 fixer for (un)bound methods

2007-11-27 Thread Christian Heimes
Christian Heimes added the comment: How should I issue a warning in the new module? Should and can I check for the -3 warning option or should I warn w/o checks for the -3 option? from warnings import warn as _warn _warn(The 'new' module is not supported in 3.x, DeprecationWarning, 2

[issue1504] Add 2to3 fixer for (un)bound methods

2007-11-27 Thread Christian Heimes
Christian Heimes added the comment: Guido van Rossum wrote: Guido van Rossum added the comment: There's C code like this: if (Py_Py3kWarningFlag PyErr_Warn(PyExc_DeprecationWarning, apply() not supported in 3.x) 0) return NULL; I

[issue1510] help for file/open should state which is prefered.

2007-11-28 Thread Christian Heimes
Christian Heimes added the comment: I agree! Can you provide a patch please? -- assignee: - tiran nosy: +tiran priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1510

[issue1509] Documentation lacking for the sqlite3 module.

2007-11-28 Thread Christian Heimes
Christian Heimes added the comment: Are you able to provide a patch? Please use a snapshot or svn checkout of 2.5 for the patch. We have a new documentation system. -- nosy: +tiran __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1509

[issue1508] Removal of stale code in _csv.c / pyexpat.c

2007-11-28 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r59214 Thanks Joseph! Can you find more? -- keywords: +py3k nosy: +tiran resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1508

[issue1505] Changes to PyMethod_New breaks ctypes on Windows

2007-11-28 Thread Christian Heimes
Christian Heimes added the comment: The removal of unbound methods made it hard to bind CFunctions. I rewrote the code in r59215. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1505

[issue1512] Removal of stale code in pyconfig.h

2007-11-28 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - loewis nosy: +loewis priority: - low __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1512 __ ___ Python-bugs-list mailing

[issue1513] object.c do_compare comparison ordering error

2007-11-28 Thread Christian Heimes
Christian Heimes added the comment: Guido, do we want cmp(None, None) to return a value or is the exception expected? -- assignee: - gvanrossum nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1513

[issue1517] lookdict should INCREF/DECREF startkey around PyObject_RichCompareBool

2007-11-29 Thread Christian Heimes
Christian Heimes added the comment: Two questions: * Which versions of Python are vulnerable to the problem? You forgot to fill in the version list. * How do we fix the problem? Is it enough to incref the key or must startkey be protected, too? -- nosy: +tiran

[issue1518] Fast globals/builtins access (patch)

2007-11-29 Thread Christian Heimes
Christian Heimes added the comment: When I run the code of test_gc.py test_function() in a shell I'm getting the expected result of 2 collected items: gc: collectable dict 0xb78aa13c gc: collectable function 0xb78a9374 However the same code embedded in the test suite collects two additional

[issue1522] pyvm module patch

2007-11-29 Thread Christian Heimes
New submission from Christian Heimes: I've created a pyvm module for Python 3.0. So far it just contains a bunch of internal types. What methods do you like to add to pyvm? Somebody suggested internal functions from sys like the check internal. -- components: Extension Modules

[issue1517] lookdict should INCREF/DECREF startkey around PyObject_RichCompareBool

2007-11-29 Thread Christian Heimes
Christian Heimes added the comment: Guido van Rossum wrote: The key that needs to be INCREF'ed is actually startkey. Patch attached. What about the second PyObject_RichCompareBool(startkey, key, Py_EQ) a few lines below inside the for loop? Christian

[issue1522] pyvm module patch

2007-11-29 Thread Christian Heimes
Christian Heimes added the comment: I don't see it as an option. I'd rather keep the types in the 'types' module than to add them to the sys module. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1522

[issue1522] pyvm module patch

2007-11-29 Thread Christian Heimes
Christian Heimes added the comment: Why such a strong opinion? 'sys' is pretty close to the VM too... sys is a very important and often used module, too. I don't like the idea to remove one module (types) and clutter an important module with its content. The list of types has grown pretty

[issue1522] pyvm module patch

2007-11-29 Thread Christian Heimes
Christian Heimes added the comment: Guido van Rossum wrote: Stuff in sys that people don't use doesn't really confuse anyone IMO. I really don't think that this warrants a new module. Many of the datatype-related types (e.g. dict_keys) should not go there but in _collections anyway. I

[issue1522] pyvm module patch

2007-11-29 Thread Christian Heimes
Christian Heimes added the comment: I've split the patch into two tasks. The first patch adds all types in Objects/ to the appropriate header files. I've renamed some types, too. The second patch contains the new pyvm.c module plus a modification to Modules/Setup.dist. Added file: http

[issue1522] pyvm module patch

2007-11-29 Thread Christian Heimes
Christian Heimes added the comment: I like to apply the py3k_add_types_to_h.patch before the next alpha and discuss the fate of pyvm after the alpha. Added file: http://bugs.python.org/file8831/py3k_pyvm3.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org

[issue1522] pyvm module patch

2007-11-29 Thread Christian Heimes
Changes by Christian Heimes: Removed file: http://bugs.python.org/file8824/py3k_pyvm.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1522 __ ___ Python-bugs-list mailing

[issue1522] pyvm module patch

2007-11-29 Thread Christian Heimes
Changes by Christian Heimes: Removed file: http://bugs.python.org/file8829/py3k_pyvm2.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1522 __ ___ Python-bugs-list mailing

[issue1524] os.system() fails for commands with multiple quoted file names

2007-11-29 Thread Christian Heimes
Christian Heimes added the comment: I don't think that we can do anything about your problem. The user of os.system() is responsible to do the quoting himself. os.system() is just a tiny wrapper around the low level C function. We don't plan to chance the fact that os.system() doesn't handling

[issue1522] pyvm module patch

2007-11-29 Thread Christian Heimes
Christian Heimes added the comment: Guido van Rossum wrote: Sure, go ahead and submit the uncontroversial part. Applied py3k_add_types_to_h.patch in r59229 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1522

[issue1528] Add os.fchmod

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: I've applied the combined patch in r59242. I've tested Georg's fchmod/fchown on my Linux system. They functions are working as expected. However lchmod is not available on my system although it is in the header files. It should be available on Mac and some

[issue1514] missing constants in socket module

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: Marc-Andre Lemburg wrote: Marc-Andre Lemburg added the comment: Interesting. It appears as if r57142 caused this change. Good work, Marc-Andre! I've restored the old semantic in r57142. Christian __ Tracker [EMAIL

[issue1534] sys.maxfloat patch

2007-11-30 Thread Christian Heimes
New submission from Christian Heimes: Currently Python has no information about the maximum and minimum value of a float. The patch adds a dict with all important information to sys: pprint.pprint(sys.maxfloat) {'dig': 15, 'epsilon': 2.2204460492503131e-16, 'mant_dig': 53, 'max

[issue1514] missing constants in socket module

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: On my system (Ubuntu 7.10, i386, Kernel 2.6.20) the _socket modules of Python 2.5 and trunk have the TCP_ constants. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1514

[issue1414] Fix for refleak tests

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: I don't know how to fix the problem. You have to assign the bug to somebody who has experience with Tcl/Tk. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1414

[issue1528] Add os.fchmod

2007-11-30 Thread Christian Heimes
Changes by Christian Heimes: -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1528 __ ___ Python-bugs-list mailing list

[issue1528] Add os.fchmod

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: I'm adding lchmod, too. -- nosy: +tiran __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1528 __ ___ Python-bugs-list mailing list

[issue1527] Problem with static libs on Windows

2007-11-30 Thread Christian Heimes
New submission from Christian Heimes: patrickkidd (IRC nick) has reported a problem with creating a static libraries on Windows. He suggested the appended patch. -- assignee: loewis components: Windows files: trunk_staticlib.patch keywords: patch, py3k messages: 57991 nosy: loewis

[issue1504] Add 2to3 fixer for (un)bound methods

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: The deprecation warning in 'new' is a -3 warning. I've added a new method warning.warnpy3k for the job. You are right about the rest. Can you start a discussion on the list? The last time I tried to kick off a poll it ended up a lots of bad jokes

[issue1504] Add 2to3 fixer for (un)bound methods

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: Whatever you say. But shouldn't we make people to use types.MethodType() or whatever we use as the new module for PyMethod_Type()? People are going to use types.MethodType() when they see the deprecation warning. By the way I've updated the docs in r59248

[issue1138] Fixer needed for __future__ imports

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r59235 It was easier to add a new fixer for the problem. -- nosy: +tiran resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1138

[issue1514] missing constants in socket module

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: I've added Lemburg, Löwis and Skip to the nosy list. svn ann shows their names frequently. -- nosy: +loewis, skip.montanaro __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1514

[issue1514] missing constants in socket module

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: On my Linux box (Ubuntu 7.10, i386, 2.6.22) the TCP_* constants are also missing. This patch solves the bug. Index: Modules/socketmodule.h === --- Modules/socketmodule.h (revision 59228

[issue1532] Refleak run of test_tcl fails

2007-11-30 Thread Christian Heimes
New submission from Christian Heimes: $ ./python Lib/test/regrtest.py -R:: test_tcl test_tcl beginning 9 repetitions 123456789 test test_tcl failed -- Traceback (most recent call last): File Lib/test/test_tcl.py, line 125, in testLoadTk tcl.loadtk() File Lib/lib-tk/Tkinter.py, line 1641

[issue1109] Warning required when calling register() on an ABCMeta subclass

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r59233. Please adjust the error message if you don't like it. TypeError: register() cannot be called on an ABCMeta subclass, use class Example(metaclass=abc.ABCMeta) instead. -- resolution: - fixed status: open - closed

[issue1109] Warning required when calling register() on an ABCMeta subclass

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: I've reverted the changes. -- status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1109 __ ___ Python-bugs-list

[issue1504] Add 2to3 fixer for (un)bound methods

2007-11-30 Thread Christian Heimes
Christian Heimes added the comment: Some cases aren't covered by the fixer. I'm not sure if we need fixers for two cases: Python 2.x: Cls.method = types.MethodType(function, None, Cls) Python 3.0: Cls.method = function Python 2.x: instance.method = types.MethodType(function, instance, instance

[issue1534] sys.maxfloat patch

2007-12-01 Thread Christian Heimes
Christian Heimes added the comment: Applied in r59254. I've moved the code to floatobject.c/h and added PyFloat_GetMax() and PyFloat_GetMin(), too. The intobject.c file has a similar function. -- resolution: - fixed status: open - closed __ Tracker

[issue1438] Calling base class methods is slow due to __instancecheck__ override in abc.py

2007-12-01 Thread Christian Heimes
Christian Heimes added the comment: Unbound methods are gone and so is the isinstance check in method_call(). -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1438

[issue1535] Rename __builtin__ to builtins

2007-12-01 Thread Christian Heimes
Christian Heimes added the comment: Here is a fixer for the new name. Added file: http://bugs.python.org/file8843/2to3_builtins.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1535 __Index: tests/test_fixers.py

[issue1535] Rename __builtin__ to builtins

2007-12-01 Thread Christian Heimes
Christian Heimes added the comment: I had to copy the __builtin__.rst prior to patch. svn cp Doc/library/__builtin__.rst Doc/library/builtins.rst svn patch -p0 builtins.diff svn del --force Doc/library/__builtin__.rst -- keywords: +patch, py3k nosy: +tiran priority: - high

[issue1534] sys.maxfloat patch

2007-12-01 Thread Christian Heimes
Christian Heimes added the comment: I've checked all major platforms before committing the patch. They all have a float.h with the information available. Do you know of a platform where this information isn't available? I could add a lot of #ifdef but I don't feel like bloating the code unless

[issue1534] sys.maxfloat patch

2007-12-01 Thread Christian Heimes
Christian Heimes added the comment: Thanks for checking it out for me! Do you have a reliable online source for the ANSI C89 standard? I'm usually using the GNU C Library docs but the site doesn't list what's available in C89. __ Tracker [EMAIL PROTECTED] http

[issue1469] SSL tests leak memory

2007-12-01 Thread Christian Heimes
Christian Heimes added the comment: Are you sure that the SSL tests are still leaking memory? The tests aren't leaking references on Windows nor on Linux. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1469

[issue1537] Change GeneratorExit's base class from Exception to BaseException

2007-12-02 Thread Christian Heimes
Christian Heimes added the comment: Can you also add a comment to ./Doc/reference/expressions.rst and update Misc/NEWS please? The rest of the patch is looking good. -- assignee: - tiran keywords: +patch nosy: +tiran priority: - normal __ Tracker

[issue1537] Change GeneratorExit's base class from Exception to BaseException

2007-12-02 Thread Christian Heimes
Christian Heimes added the comment: You make a good point. Can you take it to the mailing list, please? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1537 __ ___ Python-bugs

[issue1539] test_collections: failing refleak test

2007-12-02 Thread Christian Heimes
New submission from Christian Heimes: The refleak tests of test_collections are broken. I fear that my changes to regrtest.py have cause the problem but I don't understand why it's broken. Can you have a look please? -- assignee: gvanrossum components: Tests keywords: py3k messages

[issue1540] Refleak tests: test_doctest and test_gc are failing

2007-12-02 Thread Christian Heimes
New submission from Christian Heimes: I've seen the problem on Windows only. test_doctest fails and the problem also causes test_gc to fail when it is run after test_doctest. W/o a prior run of test_doctest test_gc doesn't fail. File c:\dev\python\py3k\lib\test\test_doctest.py, line 1570

[issue1542] Ship 32 and 64bit libs with MSI installer

2007-12-02 Thread Christian Heimes
New submission from Christian Heimes: Hello Martin! How do you like the idea to ship the 32bit and 64bit libs with the MSI installer? The 64bit libs could be stored in libs64 while the 32bit libs stay in libs. I'm working on a task for the GHOP to add cross compiling support to msvc9compiler

[issue1546] Win32 Platform SDK conflict

2007-12-03 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the report. I prefer several false alarms over one bug slipping throught! :) You are right with your concern. The two values *are* different. I've changed the name to PY_WRITE_RESTRICTED. The other names should also be prefixed with PY_ to avoid

[issue1545] shutil fails when copying to NTFS in Linux

2007-12-03 Thread Christian Heimes
Christian Heimes added the comment: Better patch: import errno try: copystat(src, dst) except OSError, err: # can't change stats on NTFS partition even if # OS supports it if err.errno != errno.EPERM: raise -- keywords: +patch nosy: +tiran priority: - normal

[issue1547] Minor typos in whatsnew26

2007-12-03 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - georg.brandl keywords: +patch nosy: +georg.brandl priority: - low __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1547

[issue1548] Tiny typo in doc\using\cmdline.rst

2007-12-03 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - georg.brandl keywords: +patch nosy: +georg.brandl priority: - low __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1548

[issue1455] VS2008, quick hack for distutils.msvccompiler

2007-12-03 Thread Christian Heimes
Christian Heimes added the comment: I've applied the patch to the trunk in r59290 together with a fix for the cygwin compiler. distutils now support VS 2005 and VS 2008 (both tested) and cygwin (only tested for msvcr80). -- resolution: accepted - fixed status: open - closed

[issue1549] Regression with __hash__ definition and rich comparison operators

2007-12-03 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - gvanrossum nosy: +gvanrossum priority: - high __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1549 __ ___ Python-bugs-list

[issue1537] Change GeneratorExit's base class from Exception to BaseException

2007-12-03 Thread Christian Heimes
Christian Heimes added the comment: Applied in r59300 to the trunk. (This time for real. At first I committed it together with some junk to py3k branch. :/) -- resolution: accepted - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http

[issue1551] Port Python/import.c to py3k branch

2007-12-03 Thread Christian Heimes
New submission from Christian Heimes: Dear Nick! I wasn't able to get your modification to Python/import.c from r59288 to run. Can you please port the files to py3k yourself? Thanks! Christian -- assignee: ncoghlan components: Interpreter Core keywords: py3k messages: 58155 nosy

<    1   2   3   4   5   6   7   8   9   10   >