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
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
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
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
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
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
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
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
Christian Heimes added the comment:
Ubuntu Linux x86
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1469
__
___
Python-bugs-list mailing list
Unsubscribe:
http
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
Changes by Christian Heimes:
--
keywords: +py3k
versions: +Python 3.0
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1138
__
___
Python-bugs-list mailing list
Changes by Christian Heimes:
--
keywords: +py3k
versions: +Python 3.0
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1034
__
___
Python-bugs-list mailing list
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
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
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
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
Changes by Christian Heimes:
--
components: +Library (Lib) -None
versions: +Python 2.6, Python 3.0
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1189216
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
Changes by Christian Heimes:
--
components: +Library (Lib) -None
versions: +Python 2.6
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1620174
_
___
Python-bugs
Changes by Christian Heimes:
--
versions: +Python 2.6, Python 3.0
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1735632
_
___
Python-bugs-list mailing list
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
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
Changes by Christian Heimes:
--
versions: +Python 2.6, Python 3.0
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1675455
_
___
Python-bugs-list mailing list
Changes by Christian Heimes:
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1474
__
___
Python-bugs-list mailing list
Changes by Christian Heimes:
--
status: pending - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1488
__
___
Python-bugs-list mailing list
Unsubscribe:
http
Christian Heimes added the comment:
Applied in r59132
Thanks!
--
nosy: +tiran
resolution: - fixed
status: open - closed
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1754273
Christian Heimes added the comment:
Applied in r59132
Thanks!
--
nosy: +tiran
resolution: - fixed
status: open - closed
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1754271
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
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
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
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
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
Changes by Christian Heimes:
--
keywords: +py3k
nosy: +tiran
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1498
__
___
Python-bugs-list mailing list
Unsubscribe
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
Christian Heimes added the comment:
__origin__
__footing__
__radix__
__namespace__
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1498
__
___
Python-bugs-list mailing list
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Christian Heimes:
--
assignee: - loewis
nosy: +loewis
priority: - low
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1512
__
___
Python-bugs-list mailing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Christian Heimes:
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1528
__
___
Python-bugs-list mailing list
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
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
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
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
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
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
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
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
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
Christian Heimes added the comment:
I've reverted the changes.
--
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1109
__
___
Python-bugs-list
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Christian Heimes:
--
assignee: - georg.brandl
keywords: +patch
nosy: +georg.brandl
priority: - low
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1547
Changes by Christian Heimes:
--
assignee: - georg.brandl
keywords: +patch
nosy: +georg.brandl
priority: - low
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1548
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
Changes by Christian Heimes:
--
assignee: - gvanrossum
nosy: +gvanrossum
priority: - high
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1549
__
___
Python-bugs-list
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
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
301 - 400 of 6455 matches
Mail list logo