Changes by Winfried Plappert [EMAIL PROTECTED]:
--
nosy: +wplappert
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4565
___
___
Python-bugs-list mailing
Changes by Winfried Plappert [EMAIL PROTECTED]:
--
nosy: +wplappert
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3476
___
___
Python-bugs-list mailing
Changes by Winfried Plappert [EMAIL PROTECTED]:
--
nosy: +wplappert
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4561
___
___
Python-bugs-list mailing
Georg Brandl [EMAIL PROTECTED] added the comment:
Is that an official way? If yes, it needs to be documented.
--
nosy: +georg.brandl
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4571
___
New submission from Erick Tryzelaar [EMAIL PROTECTED]:
As I mentioned on python-ideas, I my project needs to extend fnmatch to
support zsh-style globbing, where you can use brackets to designate
subexpressions. Say you had a directory structure like this:
foo/
foo.ext1
foo.ext2
bar/
Martin v. Löwis [EMAIL PROTECTED] added the comment:
I understand the rationale behind #4120, but it seems like it only helps
a narrow set of applications, namely applications that link dynamically
with the same version of MSVCR90 as Python and that bundle the MSVCR90
DLL and that can't
Sever Băneșiu [EMAIL PROTECTED] added the comment:
Christian, if the patch looks good to you I think now it's a good time
to commit it.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4263
___
New submission from John Machin [EMAIL PROTECTED]:
Problem in the newline handling in io.py, class
IncrementalNewlineDecoder, method decode. It reads text files in 128-
byte chunks. Converting CR LF to \n requires special case handling
when '\r' is detected at the end of the decoded chunk in
Changes by Antoine Pitrou [EMAIL PROTECTED]:
--
nosy: +pitrou
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4574
___
___
Python-bugs-list mailing list
Mark Dickinson [EMAIL PROTECTED] added the comment:
+1 for a speedy removal of cmp and tp_compare
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1717
___
___
STINNER Victor [EMAIL PROTECTED] added the comment:
I plan to change my patch to come back to a method (x.numbits())
because other integer implementations like Decimal may be slower.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3439
Christian Heimes [EMAIL PROTECTED] added the comment:
We shouldn't remove the tp_compae slot in 3.0. That's going to break too
much 3rd party software. Instead of removing it, a deprecation warning
should be printed when the slot isn't 0.
___
Python tracker
New submission from Mark Dickinson [EMAIL PROTECTED]:
In issue 4506, Skip reported that test_cmath fails on Solaris 10/x86 for
3.0. If my guesses are correct, it probably fails on all x86 systems that
(a) use the x87 coprocessor for floating-point (as opposed to using SSE2,
for example), and
Mark Dickinson [EMAIL PROTECTED] added the comment:
Thanks, Skip. It looks like the top priority is fixing Py_IS_INFINITY,
then (still assuming that I'm not barking up entirely the wrong tree).
I've opened issue 4575 for the Py_IS_INFINITY fix.
I'll look at the changes to AC_CHECK_FUNCS,
New submission from Kandalintsev Alexandre [EMAIL PROTECTED]:
Hello!
It's need to little update Defining new types documentation section
in py3.0 and py3.1:
- self-ob_type-tp_free((PyObject*)self);
+ Py_TYPE(self)-tp_free((PyObject *)self);
--
assignee: georg.brandl
components:
Kandalintsev Alexandre [EMAIL PROTECTED] added the comment:
Rob, could you repeat this test on trunk version of python?
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4535
___
Georg Brandl [EMAIL PROTECTED] added the comment:
Fixed in r67632.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4576
___
Changes by Giampaolo Rodola' [EMAIL PROTECTED]:
--
nosy: +giampaolo.rodola
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4573
___
___
Python-bugs-list
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Documented in r67365.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4571
___
jeff deifik [EMAIL PROTECTED] added the comment:
I don't consider sys.stdout.buffer.write(b'abc')
to be an acceptable solution. There are many programs that need
to produce binary output with standard output. Consider uudecode
and similar programs.
There needs to be a standard, portable,
Christian Heimes [EMAIL PROTECTED] added the comment:
switch to binary mode
sys.stdout = sys.stdout.buffer
switch back
sys.stdout = sys.__stdout__
--
nosy: +christian.heimes
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4571
Christian Heimes [EMAIL PROTECTED] added the comment:
Here is a longer patch that removes cmp, PyObject_Compare and cmpfunc.
The slots has been renamed to tp_reserved. If the slot is used by a type
an exception is raised to notify the user about possible issues.
Missing:
* fix unit tests
* add
Craig Holmquist [EMAIL PROTECTED] added the comment:
I don't quite understand this issue yet. python26.dll is linked with
a manifest. Isn't that good enough?
Apparently not, at least in my testing. It seems that if a DLL is
loaded, Windows will try to resolve its dependencies by looking at
New submission from Sebastian Rittau [EMAIL PROTECTED]:
The attached patch removes all instances of the deprecated apply
function from distutils and thereby fixes warnings when run with -3.
--
components: Distutils
files: distutils.diff
keywords: patch
messages: 77233
nosy: srittau
Sebastian Rittau [EMAIL PROTECTED] added the comment:
Oops, missed a closing parenthesis.
Added file: http://bugs.python.org/file12264/distutils.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4577
Changes by Sebastian Rittau [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file12263/distutils.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4577
___
Mark Dickinson [EMAIL PROTECTED] added the comment:
I'll work on fixing the unit tests if that's helpful.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1717
___
Christian Heimes [EMAIL PROTECTED] added the comment:
Can you fix the decimal module and tests? You know more about the module
than me. I'm half through most of the others modules.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1717
Mark Dickinson [EMAIL PROTECTED] added the comment:
Decimal fixes
Added file: http://bugs.python.org/file12265/remove_cmp_decimal.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1717
___
New submission from Sebastian Rittau [EMAIL PROTECTED]:
The attached patch replaces all instances of x.has_key(k) method calls
by k in x. It also replaces one call to parser.ast2tuple by
parser.st2tuple. This removes deprecation warnings when running in -3 mode.
--
components: Library
Changes by Christian Heimes [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file12262/remove_cmp.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1717
___
Christian Heimes [EMAIL PROTECTED] added the comment:
I've integrated Mark's patch and fixed more tests. Who wants to pick it
up from here?
Added file: http://bugs.python.org/file12267/remove_cmp2.patch
___
Python tracker [EMAIL PROTECTED]
Roumen Petrov [EMAIL PROTECTED] added the comment:
:-( the last my comment is incomplete : work for me after minimal patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4558
___
Roumen Petrov [EMAIL PROTECTED] added the comment:
The support for *-*mingw* host is enhanced to native msys environment.
This include check for device file /dev/ptmx. The MSYS report that file
exist. As the check is skipped on mingw* host os now cugwin environment
can be used too.
Also check
New submission from Mark Florisson [EMAIL PROTECTED]:
f = os.fdopen(os.open('spam!', os.O_TRUNC|os.O_CREAT|os.O_RDWR), 'w')
f.read()
''
f.readline()
Traceback (most recent call last):
File stdin, line 1, in module
IOError: [Errno 9] Bad file descriptor
f.write(spamspamhihi)
f.read()
''
Roumen Petrov [EMAIL PROTECTED] added the comment:
The new patch is attached. Now the patch allow native build for mingw*
host OS. The build id tested in MSYS environment. The issue title is
updated to reflect this.
The main changes:
- native build require four more build-in modules (_functools,
Mark Florisson [EMAIL PROTECTED] added the comment:
Actually, I wouldn't expect it to fail like that, because it's not a bad
file descriptor, it's an actual that doesn't agree with the (userspace)
file mode. What I'd expect is probably a TypeError. Although an IOError,
with a different message,
Mark Florisson [EMAIL PROTECTED] added the comment:
s/actual/operation/
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4579
___
___
Python-bugs-list mailing list
Roumen Petrov [EMAIL PROTECTED] added the comment:
About the regression test results test.
The result from 2008-11-29 is:
306 tests OK.
1 test failed:
test_sundry
54 tests skipped:
Those skips are all expected on win32.
To get those results you mingwex library has to contain fixes for
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Fixed in r67650 and r67651.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4569
___
New submission from Antoine Pitrou [EMAIL PROTECTED]:
The problem is with the `shape` member which doesn't get recalculated as
it should when instantiating a memoryview slice:
a = array('i', range(10))
m = memoryview(a)[2:8]
a
array('i', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
m[:] = array('i',
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Found another bug with memoryview and arrays in #4580.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4509
___
Aaron Gallagher [EMAIL PROTECTED] added the comment:
I can't reproduce this on python 2.5.1, 2.5.2, or 2.6.0 on Mac OS 10.5.4.
Both .read() and .readline() raise an EBADF IOError. 3.0.0 fails in the
same way.
--
nosy: +habnabit
___
Python tracker
New submission from Leger [EMAIL PROTECTED]:
I test PY3K.final under Debian/Lenny.
- Install steps Configure, make, make test, make install don't generate
errors for the modules in lib-dynload.
- /usr/lib/python3.0/lib-dynload, contain modules (time.so, math.so, ...)
- print(sys.path) = ['',
New submission from Neal Norwitz [EMAIL PROTECTED]:
This happens on 2.4 and 3.0, probably all versions:
When running this simple program (save to a file):
print(type(__builtins__))
__import__(__file__.split('/')[-1][:-3])
I get:
type 'module'
type 'dict'
I would expect the type to be
Martin v. Löwis [EMAIL PROTECTED] added the comment:
How did you run configure? What is sys.exec_prefix?
'/usr/lib/python3.0/lib/python3.0/lib-dynload' should not be on
sys.path, but '/usr/lib/python3.0/lib-dynload' should be.
--
nosy: +loewis
___
Martin v. Löwis [EMAIL PROTECTED] added the comment:
This is documented, intentional behavior:
http://docs.python.org/library/__builtin__.html?highlight=__builtins__
--
nosy: +loewis
resolution: - wont fix
status: open - closed
___
Python tracker
Mark Dickinson [EMAIL PROTECTED] added the comment:
remove_cmp3.patch adds to Christian's patch to fix 6 more test_failures:
(test_distutils, test_kqueue, test_list, test_sort, test_sqlite,
test_userlist).
On OS X, the only remaining test failure is test_unittest.py.
Added file:
Roumen Petrov [EMAIL PROTECTED] added the comment:
I'm not sure that recent commits in trunk are correct.
Please confirm that build of dbm module with Berkeley DB is deprecated.
Note that exist another module gdbm[gdbmmodule.c].
___
Python tracker [EMAIL
Krzysztof Pawlik [EMAIL PROTECTED] added the comment:
Attached patch adds new argument: progresshook - it will be passed two
arguments: count of downloaded bytes and total file size (or -1 if it's
not available).
Introducing new argument instead of modifying reporthook maintains
backwards
Mark Dickinson [EMAIL PROTECTED] added the comment:
About unittest:
unittest.TestLoader has an attribute sortTestMethodsUsing, which it
expects to be an old-style comparison.
Should this attribute be updated (and renamed?) to expect a key function
instead, or left as is?
Roumen Petrov [EMAIL PROTECTED] added the comment:
The changes related to issue 4483 break build on dbm based on Berkeley
DB so I update mingw patch to restore bulld to previous state.
Now I expect test_anydbm, test_bsddb and test_whichdb to succeed as
before one week.
Added file:
Changes by Roumen Petrov [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file12269/python-trunk-MINGW.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3871
___
New submission from gumpy [EMAIL PROTECTED]:
This is with r67651 and related to #4569, #4509 and possibly #4580.
from array import array
a = array('i', range(16))
m = memoryview(a)
a.extend(array('i', range(48)))
m[:] = array('i', range(64))
Segmentation fault
from array import array
a
Brett Cannon [EMAIL PROTECTED] added the comment:
On Sun, Dec 7, 2008 at 13:26, Mark Dickinson [EMAIL PROTECTED] wrote:
Mark Dickinson [EMAIL PROTECTED] added the comment:
About unittest:
unittest.TestLoader has an attribute sortTestMethodsUsing, which it
expects to be an old-style
gumpy [EMAIL PROTECTED] added the comment:
I've opened a new memoryview/array segfault issue since #4569 was
closed: #4583
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4509
___
Leger [EMAIL PROTECTED] added the comment:
- configure --with-pydebug --with-doc-strings --enable-shared
--enable-profiling --enable-ipv6 --with-threads --with-tsc --prefix=/usr
- print(sys.exec_prefix)
/usr/lib/python3.0
print(sys.path)
['', '/usr/lib/python3.0', '/home/fred/python',
New submission from Michael Yang [EMAIL PROTECTED]:
doctest.testmod() fails when attempting to echo back a bytes type with
ord() 128.
def ok():
bytes([255,])
b'\xff'
pass
def notOK():
b'\xff'
pass
import doctest
doctest.testmod()
Traceback (most recent call last):
Mark Florisson [EMAIL PROTECTED] added the comment:
Perhaps it's linux specific then. I'm on debian lenny (2.6.26-1-amd64).
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4579
___
Martin v. Löwis [EMAIL PROTECTED] added the comment:
I can't reproduce this. Are you sure you didn't configure with
--prefix=/usr/lib/python3.0 at some point? That would be about the only
way how sys.exec_prefix could get its value?
Can you start over with a clean source tree, and try
New submission from Mark Dickinson [EMAIL PROTECTED]:
There are two recent reports of build failures of Python 3.0 on OS X
10.5.5: see
http://mail.python.org/pipermail/python-list/2008-November/514159.html
and
http://mail.python.org/pipermail/python-3000/2008-December/015404.html
It seems
Georg Brandl [EMAIL PROTECTED] added the comment:
You've included a chr(255) character in your docstring. You need to
escape the backslash in order to include the bytes representation like
it will be generated.
--
nosy: +georg.brandl
resolution: - invalid
status: open - closed
Skip Montanaro [EMAIL PROTECTED] added the comment:
Roumen I'm not sure that recent commits in trunk are correct.
Roumen Please confirm that build of dbm module with Berkeley DB is
Roumen deprecated.
Can you explain how you think they are incorrect? The code to decide how to
build the
Leger [EMAIL PROTECTED] added the comment:
Ok Martin, I delete all source and /usr/lib/python3.0, restart from the
tarball. I apply the patch dbm.diff (issue4581) and after :
configure --with-pydebug --with-doc-strings --enable-shared
--enable-profiling --enable-ipv6 --with-threads --with-tsc
Georg Brandl [EMAIL PROTECTED] added the comment:
Since the compiler package is removed in Python 3, I think it's okay for
it to raise py3k warnings -- in fact, it should raise a quite prominent
one when first imported that it's going to be removed.
--
nosy: +georg.brandl
resolution: -
Georg Brandl [EMAIL PROTECTED] added the comment:
Changed patch to document sys.modules trick and applied in r67654.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4457
New submission from blake madden [EMAIL PROTECTED]:
On the page:
http://docs.python.org/3.0/extending/embedding.html#extending-embedded-python
Note that the function Py_InitModule is used. From what I can tell,
this function no longer exists and regrettably I can't figure out how to
get
Georg Brandl [EMAIL PROTECTED] added the comment:
Should be fixed in r67655.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4586
___
Roumen Petrov [EMAIL PROTECTED] added the comment:
The old if statement was flat:
if find_file(ndbm.h, inc_dirs, []) is not None:
CODE
elif (self.compiler.find_library_file(lib_dirs, 'gdbm')
and find_file(gdbm/ndbm.h, inc_dirs, []) is not None):
CODE
elif db_incs is not None:
CODE
Sebastian Rittau [EMAIL PROTECTED] added the comment:
I'd like to see this fixed, just to decrease the amount of warning spam
I get when testing my own packages. It seems that one of my dependecies
that I have no control over is pulling this in. Adding a warning when
this module is important
Changes by Calvin Spealman [EMAIL PROTECTED]:
--
nosy: +ironfroggy
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4579
___
___
Python-bugs-list mailing
Calvin Spealman [EMAIL PROTECTED] added the comment:
Confirmed this behavior on my ubuntu installations but it fails properly
on Windows.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4579
___
Calvin Spealman [EMAIL PROTECTED] added the comment:
This should be applicable to 2.7, at least, as well. Here is a backport
of the patch against trunk.
--
nosy: +ironfroggy
Added file: http://bugs.python.org/file12273/zsh-fnmatch-2.7.diff
___
Changes by Calvin Spealman [EMAIL PROTECTED]:
--
versions: +Python 2.7
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4573
___
___
Python-bugs-list
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
priority: high - critical
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4199
___
___
Skip Montanaro [EMAIL PROTECTED] added the comment:
Roumen The old if statement was flat:
...
Okay, I understand now.
Roumen The new if statement contain nested if:
Roumen Now the second case is only
self.compiler.find_library_file(lib_dirs,
Roumen 'gdbm'): and if succeed (my
New submission from Skip Montanaro [EMAIL PROTECTED]:
Fixing issue4483 resulted in adding an extra header file check for
gdbm-based header files when the gdbm library was found. This caused
problems for Roumen Petrov. In considering the problems he encountered I
decided we probably need to
Changes by Skip Montanaro [EMAIL PROTECTED]:
--
components: +Build
nosy: +rpetrov
priority: - normal
type: - behavior
versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4587
Christian Heimes [EMAIL PROTECTED] added the comment:
The latest patch removes PyUnicode_Compare as well as lots of __cmp__
functions under Lib/. It also renames and redefines
PyUnicode_CompareWithASCIIString(). The simpler
PyUnicode_EqualToASCIIString() function is easier to use, too.
Skip Montanaro [EMAIL PROTECTED] added the comment:
Skip I'm beginning to think this area needs more work. Let's leave
Skip this ticket closed. I'll open a new one so we can figure out the
Skip best way to tackle this.
http://bugs.python.org/issue4587
Skip
Skip Montanaro [EMAIL PROTECTED] added the comment:
Roumen, can you take a look at (and try) the attached patch? It uses
an environment variable, PYDBMLIBORDER to define the order of libraries
to check for dbm build suitability. If not specified it defaults to
ndbm:gdbm:bdb.
--
Changes by Gregg Lind [EMAIL PROTECTED]:
--
versions: +Python 2.5, Python 2.5.3, Python 2.6, Python 2.7, Python 3.0, Python
3.1
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4568
___
Gregg Lind [EMAIL PROTECTED] added the comment:
Can you show an example of this not working? Works fine for me in
2.4/2.5/2.6.
--
nosy: +gregg.lind
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4320
lion.guo [EMAIL PROTECTED] added the comment:
Why didn't include this patch in python 3.0
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4406
___
___
New submission from jeff deifik [EMAIL PROTECTED]:
I want to make my own data of types bytes in order to write it out.
For example, I want to write out the bytes 0..9
#!/usr/bin/env python3.0
foo = b''
for i in range (0,10):
foo += i
#sys.stdout.buffer.write(foo)
Here is the error:
Changes by Martin v. Löwis [EMAIL PROTECTED]:
--
resolution: - works for me
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4581
___
Benjamin Peterson [EMAIL PROTECTED] added the comment:
bytes([some_number]) should do the trick.
--
nosy: +benjamin.peterson
resolution: - invalid
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4588
jeff deifik [EMAIL PROTECTED] added the comment:
Doesn't work.
#!/usr/bin/env python3.0
import sys
foo = b''
for i in range (0,10):
foo += bytes(i)
sys.stdout.buffer.write(foo)
produces a binary file of 45 bytes. Here is a hex dump (the '.'
represent unprintable characters):
+00000
Martin v. Löwis [EMAIL PROTECTED] added the comment:
Please don't use the bug tracker to obtain help, but only to report
bugs. Use [EMAIL PROTECTED] to get help.
In this specific case, also read Benjamin's answer more carefully.
--
nosy: +loewis
___
New submission from Jeffrey Yasskin [EMAIL PROTECTED]:
When a context manager's __exit__() method returns an object whose
conversion to bool raises an exception, 'with' loses that exception. For
example:
class CM(object):
... def __init__(self, exit_result):
... self.exit_result =
Matthias Klose [EMAIL PROTECTED] added the comment:
In my opinion the tar balls should contain all necessary bits and pieces
to build the docs yourself. It makes no sense to include the Doc/ folder
w/o any means to use them.
+ 1
Let's include sphinxext and document the required versions of
91 matches
Mail list logo