Martin v. Löwis [EMAIL PROTECTED] added the comment:
Ok, so it seems there is no memory leak. Changing the title accordingly.
--
title: memory leak in make test (in test list), 2.5.2 not 2.5.1, Linux 64bit
- test_list uses unreasonable amounts of memory on 64-bit Linux
Georg Brandl [EMAIL PROTECTED] added the comment:
Ping!
--
nosy: +georg.brandl
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3473
___
___
New submission from Ali Polatel [EMAIL PROTECTED]:
fix_idioms.py generates bad code for conversions in try/except blocks.
Example:
s=(1, 2, 3)
try:
t = list(s)
t.sort()
except TypeError:
pass
fix_idioms.py generates this diff:
--- test.py (original)
+++ test.py (refactored)
@@ -7,8
New submission from Erick Tryzelaar [EMAIL PROTECTED]:
functools.partial functions are not comparable, in both python 2.5 and
3.0:
def foo(): pass
functools.partial(foo) == functools.partial(foo)
False
It can be worked around by comparing the func, args, and keywords, but
this means that
New submission from Matt Giuca [EMAIL PROTECTED]:
A few weeks ago I fixed the struct module's documentation which wasn't
3.0 compliant (basically renaming strings to bytes and unicode to
string). Now I've had a look at the array module, and it's got similar
problems.
Martin v. Löwis [EMAIL PROTECTED] added the comment:
2. Rename tostring and fromstring methods to tobytes and
frombytes. I think this is quite important as the value being returned
can no longer be described as a string.
I'm not a native speaker (of English), but my understanding is that the
Matt Giuca [EMAIL PROTECTED] added the comment:
I'm not a native speaker (of English), but my understanding is that the
noun string, in itself, can very well be used to describe this type:
the result is a byte string, as opposed to a character string.
Merriam-Webster's seems to agree;
Matt Giuca [EMAIL PROTECTED] added the comment:
(Fixed issue title)
--
title: array documentation, method names not 3.0 compliant - array
documentation, method names not 3.0 compliant
___
Python tracker [EMAIL PROTECTED]
Matt Giuca [EMAIL PROTECTED] added the comment:
I renamed tostring/fromstring to tobytes/frombytes in the array module,
as described above. I then grepped the entire py3k tree for tostring
and fromstring, and carefully replaced all references which pertain to
array objects.
The relatively minor
Changes by Matt Giuca [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file11122/doc+bytesmethods.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3565
___
Matt Giuca [EMAIL PROTECTED] added the comment:
Oops .. forgot to update the array.rst docs with the new method names.
Replaced doc+bytesmethods.patch with a fixed version.
Added file: http://bugs.python.org/file11123/doc+bytesmethods.patch
___
Python
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Hi Jack,
Antoine, I looked at your patch and I'm not sure why you applied it
instead of applying mine (or saying +1 on me applying my patch).
Yours uses str.partition which I pointed out is sub-optimal (same big-Oh
but with a larger
Matt Giuca [EMAIL PROTECTED] added the comment:
It's highly debatable whether these should compare true. (Note: saying
they aren't comparable is a misnomer -- they are comparable, they just
don't compare equal).
From a mathematical standpoint, they *are* equal, but it's impossible
(undecidable)
Armin Ronacher [EMAIL PROTECTED] added the comment:
This is actually not a bug. copy_location does not work recursively.
For this example it's more useful to use the fix_missing_locations
function which traverses the tree and copies the locations from the
parent node to the child nodes:
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I'm a little confused on what needs to happen here. It's incomplete
because it gets skipped in merges, but 2.6 ports don't need to be in 3.0.
--
nosy: +benjamin.peterson
___
Python tracker [EMAIL
Martin v. Löwis [EMAIL PROTECTED] added the comment:
Thanks for the report. This is now fixed in r65709.
The right approach is to use the MS wide string API whereever
possible, e.g. invoke MsiSummarySetPropertyInfoW (instead of
MsiSummarySetPropertyInfo, as that defaults to
Changes by Martin v. Löwis [EMAIL PROTECTED]:
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3542
___
___
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Apparently this has been fixed as part of r65335 (Security patches from
Apple: prevent int overflow when allocating memory), although it uses
sys.maxint where sys.maxsize may be more appropriate. Can you check?
--
nosy: +pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Apparently this has been fixed as part of r65335 (Security patches from
Apple: prevent int overflow when allocating memory), although it uses
sys.maxint where sys.maxsize may be more appropriate. Can you check?
--
nosy: +pitrou
Facundo Batista [EMAIL PROTECTED] added the comment:
This is ok, maybe with some small changes in the docs.
I asked in python-dev if this should go now or wait until 2.7/3.1
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue600362
Facundo Batista [EMAIL PROTECTED] added the comment:
Commited in revs 65710 and 65711.
Thank you all!!
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2776
___
Changes by Facundo Batista [EMAIL PROTECTED]:
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2776
___
___
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I wonder if it might be most effective to make a _testcapi interface to
PyErr_NoMemory.
--
nosy: +benjamin.peterson
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3556
Benjamin Peterson [EMAIL PROTECTED] added the comment:
It's due to these lines in fix_idioms:
if next_stmt:
next_stmt[0].set_prefix(sort_stmt.get_prefix())
I'm not sure what the correct way to deal with this is. Anyway I'm
attaching a test case.
--
keywords: +patch
nosy:
Martin v. Löwis [EMAIL PROTECTED] added the comment:
I wonder if it might be most effective to make a _testcapi interface to
PyErr_NoMemory.
How would that work in this case? (I actually don't know what the test
purpose of this test is.)
___
Python tracker
Benjamin Peterson [EMAIL PROTECTED] added the comment:
You're right; this test would be pointless with that. However, I'm
looking at test_exceptions' test_MemoryError that is failing for me
because it gives a OverflowError instead of a MemoryError.
___
Python
Changes by STINNER Victor [EMAIL PROTECTED]:
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3131
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor [EMAIL PROTECTED] added the comment:
I reported the same bug with another patch: #3553. I used __import__
and module.__file__ attribute (and not realpath).
--
nosy: +haypo
___
Python tracker [EMAIL PROTECTED]
New submission from C. Scott Ananian [EMAIL PROTECTED]:
Although HTTP/1.1 says that servers SHOULD send a Connection: close
header if they intend to close a persistent connection (sec 8.1.2.1),
clients (like httplib) MUST be able to recover from asynchronous close
events. Client software SHOULD
Guido van Rossum [EMAIL PROTECTED] added the comment:
I worry that many things were not recoded in Misc/NEWS at all,
especially in the early days of 3.0 development (e.g. in the p3yk branch
:-).
I'm not sure if it's possible to fix this retroactively, however. As
long as we keep the changes
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Let's lower the priority a little then.
--
nosy: +benjamin.peterson
priority: release blocker - critical
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2235
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Done in r65713.
--
resolution: - accepted
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3424
___
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
resolution: - invalid
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3530
___
Antoine Pitrou [EMAIL PROTECTED] added the comment:
I would add that making the comparison right for partial would be
trickier than it seems:
from functools import partial
type == type
True
1 == 1.0
True
partial(type, 1)() == partial(type, 1.0)()
False
If partial(type, 1) and partial(type,
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Can you test with that patch?
--
components: +Tests
keywords: +patch
nosy: +pitrou
type: - resource usage
Added file: http://bugs.python.org/file11125/memerror.patch
___
Python tracker [EMAIL
Facundo Batista [EMAIL PROTECTED] added the comment:
What I think is that the AbstractHTTPHandler is grabbing the headers, in
the do_open() method, in an incorrect way.
Check the get_header() method from Request:
def get_header(self, header_name, default=None):
return self.headers.get(
Facundo Batista [EMAIL PROTECTED] added the comment:
Antoine, it works great, both in 2.6 and in 3.0 (with the obvious small
modification).
--
nosy: +facundobatista
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3556
New submission from Antoine Pitrou [EMAIL PROTECTED]:
I suppose the sunau module hasn't received a lot ot love lately :-)
test test_ossaudiodev failed -- Traceback (most recent call last):
File /home/antoine/py3k/__svn__/Lib/test/test_ossaudiodev.py, line
146, in test_playback
sound_info
New submission from Jacek [EMAIL PROTECTED]:
Hi
I wrote my first program in python, and I found bug in it.
I explain it in example (I do it under Windows XP):
1. At the begining create some directories:
mkdir .\test\
mkdir .\test\.svn
mkdir .\test\cvs
mkdir .\test\pdk
2. Next create file
Facundo Batista [EMAIL PROTECTED] added the comment:
Senthil:
Look at that URL that the server returned in the second redirect:
http://www.wikispaces.com?responseToken=ee3fca88a9b0dc865152d8a9e5b6138d
See that the ? appears without a path between the host and it.
Check the item 3.2.2 in the
Benjamin Peterson [EMAIL PROTECTED] added the comment:
It's a known fact that mutating a list during iteration will cause
problems. You should mutate a copy of the list.
--
nosy: +benjamin.peterson
resolution: - invalid
status: open - closed
___
Terry J. Reedy [EMAIL PROTECTED] added the comment:
With sys.maxint gone in 3.0, test_raisexxx() is also gone in 3.0b2
--
nosy: +tjreedy
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3556
___
Facundo Batista [EMAIL PROTECTED] added the comment:
Terry, I don't get to understand your comment. Could you please explain
in more detail? Thank you!
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3556
New submission from Terry J. Reedy [EMAIL PROTECTED]:
LibRef/built-in functions/eval() has this section
This function can also be used to execute arbitrary code objects (such
as those created by compile()).
In this case pass a code object instead of a string.
The code object must have been
Terry J. Reedy [EMAIL PROTECTED] added the comment:
Since you are just beginning Python, I suggest you report questionable
program behavior on newsgroups comp.lang.python,
gmane.comp.python.general at news.gmane.org, or the python.org mailing
list python-list (all three are equivalent).
Martin v. Löwis [EMAIL PROTECTED] added the comment:
Can you test with that patch?
I personally can't test it for the next three weeks, sorry.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3556
___
Terry J. Reedy [EMAIL PROTECTED] added the comment:
Systems that don't run this test (Windows, ??) cannot catch such problems.
Does adding 'b' fix sunau and the test?
--
nosy: +tjreedy
___
Python tracker [EMAIL PROTECTED]
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I wrote up some documentation for it in r65715.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue896052
New submission from Andy Harrington [EMAIL PROTECTED]:
When you enter help(.find)
you get
...
such that sub is contained within s[start,end]
...
s[start, end] makes no sense. It should be s[start:end].
--
assignee: georg.brandl
components: Documentation
messages: 71240
nosy:
New submission from Antoine Pitrou [EMAIL PROTECTED]:
I've been trying to track down the following failure which very recently
has started to plague the py3k buildbots:
[...]
test_os
Traceback (most recent call last):
File ./Lib/test/regrtest.py, line 1197, in module
main()
File
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Here is a temptative patch. It should fix the problems with test_closerange.
--
keywords: +patch
Added file: http://bugs.python.org/file11128/test_closerange.patch
___
Python tracker [EMAIL
Guilherme Polo [EMAIL PROTECTED] added the comment:
Uhm, this patch can cause trouble if not adapted a bit. The index method
may return None for either index1 or index2, which will cause a
TypeError in that for loop.
If code is needed to confirm this, try the following:
menu =
New submission from Antoine Pitrou [EMAIL PROTECTED]:
Reproducing this bug is simple:
./python -c import os; os.close(2); 1/0
--
components: Interpreter Core
messages: 71244
nosy: pitrou
priority: high
severity: normal
status: open
title: with closed file descriptor #2 (stderr), py3k
cfr [EMAIL PROTECTED] added the comment:
Also with Python 2.5.2 on OS X 10.4.11 (PPC but it is the universal
installer): there is no Preferences... menu.
The help mentions an Options menu. I don't know if that is the
equivalent, but I cannot find that either.
--
nosy: +cfr
Antoine Pitrou [EMAIL PROTECTED] added the comment:
This still happens regularly on buildbots. Just today:
http://www.python.org/dev/buildbot/3.0.stable/amd64%20gentoo%203.0/builds/925/step-test/0
The bsddb tests must be fixed so that exception raised in other threads
(especially when produced
Changes by Guido van Rossum [EMAIL PROTECTED]:
--
nosy: +gvanrossum
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3572
___
___
Python-bugs-list mailing
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Curious. I wonder if this is platform specific because this does not
hang for me on MacOS.
--
nosy: +benjamin.peterson
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3572
Antoine Pitrou [EMAIL PROTECTED] added the comment:
I've finally diagnosed the problem. test_buffer_is_readonly was opening
stdin's file descriptor again in raw mode, and closing it implicitly by
using with.
It should be fixed in r65731.
There's a justice: the test had been checked in by me.
New submission from Guilherme Polo [EMAIL PROTECTED]:
Passing a single directory as a command line argument can make IDLE hang.
To achieve this the user needs to configure IDLE to open an editor
window by default.
The attached patch discards filenames that failed to load, so in the end
it may
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Hmm, sorry, false alarm. This was due to some debugging code I had added
in my working copy.
--
resolution: - invalid
status: open - closed
___
Python tracker [EMAIL PROTECTED]
New submission from Brett Cannon [EMAIL PROTECTED]:
The following leads to a SyntaxError in 3.0:
compile(b'# coding: latin-1\nu = \xC7\n', 'dummy', 'exec')
That is not the case in Python 2.6.
--
messages: 71251
nosy: brett.cannon
severity: normal
status: open
title: compile() cannot
Brett Cannon [EMAIL PROTECTED] added the comment:
Looks like Parser/tokenizer.c:check_coding_spec() considered Latin-1 a
raw encoding just like UTF-8. Patch is in the works.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3574
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Fixed in r65734. I can't guarantee that the whole sunau module is ok,
just that it works enough for the test to pass (and emit the expected
sound...).
--
resolution: - fixed
status: open - closed
Guilherme Polo [EMAIL PROTECTED] added the comment:
Hi there,
The revisions you are after are r59653 and r59654.
I really don't see a reason to not patch release25-maint with those ones.
--
nosy: +gpolo
___
Python tracker [EMAIL PROTECTED]
Gregory P. Smith [EMAIL PROTECTED] added the comment:
looks good to me.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2464
___
___
Python-bugs-list mailing list
Gregory P. Smith [EMAIL PROTECTED] added the comment:
agreed, that should be made to cause the test to fail. a
failureException method that sets a flag that the main thread will
detect and fail on when exiting should do the trick.
side note:
...sadly that failure appears to be a test issue,
Brett Cannon [EMAIL PROTECTED] added the comment:
Here is a potential fix. It broke test_imp because it assumed that
Latin-1 source files would be encoded at Latin-1 instead of UTF-8 when
returned by imp.new_module(). Doesn't seem like a critical change as the
file is still properly decoded.
Brett Cannon [EMAIL PROTECTED] added the comment:
Attached is a test for test_pep3120 (since that is what most likely
introduced the breakage). It's a separate patch since the source file is
marked as binary and thus can't be diffed by ``svn diff``.
--
components: +Interpreter Core
Changes by Brett Cannon [EMAIL PROTECTED]:
--
type: - behavior
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3574
___
___
Python-bugs-list mailing
Senthil [EMAIL PROTECTED] added the comment:
Ah, I that was a simple fix. :) I very much overlooked the problem after
being so much given the hints at the web-sig.
I have some comments on the patch, Facundo.
1) I don't think is a good idea to include that portion in the
http_error_302 method.
Changes by Senthil [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file11133/issue2464-PATCH1.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2464
___
Senthil [EMAIL PROTECTED] added the comment:
Patch for py3k, but please test this before applying.
Added file: http://bugs.python.org/file11134/issue2463-py3k.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2464
Facundo Batista [EMAIL PROTECTED] added the comment:
Senthil: I don't like that.
Creating a public method called fix_broken, introducing new behaviours
now in beta, and actually not fixing the url in any broken possibility
(just the path if it's not there), it's way too much for this fix.
I
73 matches
Mail list logo