Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Committed as r66056.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3611
___
New submission from ivo [EMAIL PROTECTED]:
I tested metode urllib2.read() on 2000 web_pages and there was a
exception ValueError in only one case, here is short code:
import urllib2
req = urllib2.urlopen('http://www.peachbit.org/')
req.read()
Traceback (most recent call last):
File
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Amaury, are these patches ok to check in?
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3668
___
___
New submission from Chris Withers [EMAIL PROTECTED]:
Here's an example from a python interpreter session:
Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on
win32
Type help, copyright, credits or license for more information.
def test():
... print hello
... raise
Chris Withers [EMAIL PROTECTED] added the comment:
Here's the full test file.
Added file: http://bugs.python.org/file11301/doctestbug.py
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3722
___
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Yes, let them go in!
--
resolution: - accepted
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3668
___
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]:
The example Demo/embed/importexc.c crashes, because Py_NewInterpreter
cannot reimport builtins and sys modules. This problem seems important
for embedding applications like mod_python, for example.
(the import exceptions statement does
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
In your patch, it is not correct to declare main as
main(int argc, wchar_t **argv)
It is simply not the correct signature: the OS only supports char** argv.
You have to perform the conversion yourself. Look for example at
New submission from Florian Mayer [EMAIL PROTECTED]:
I have found out that the result of math.log(x, 10) is slightly more
inaccurate than the one of math.log10(x). Probably the best example is
math.log(1000, 10) and math.log10(1000). I have attached a patch that
forces math.log to internally use
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Good catch! Here is a patch for 3.0.
--
keywords: +needs review, patch
nosy: +amaury.forgeotdarc
priority: - release blocker
Added file: http://bugs.python.org/file11303/baditer.patch
___
New submission from Dmitry Vasiliev [EMAIL PROTECTED]:
Simple example:
from telnetlib import Telnet
t = Telnet(google.com, 80)
t.write(GET / HTTP/1.1\r\n)
Traceback (most recent call last):
File stdin, line 1, in module
File /py3k/Lib/telnetlib.py, line 280, in write
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]:
--
priority: - critical
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3725
___
___
Python-bugs-list
Dmitry Vasiliev [EMAIL PROTECTED] added the comment:
I think only bytes need to be allowed for write() and read*() because of
low-level nature of Telnet. I can create a patch later.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3725
Ismail Donmez [EMAIL PROTECTED] added the comment:
Maybe do a s/object is no more an iterator/is no longer an iterator
--
nosy: +cartman
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3720
___
New submission from Will Maier [EMAIL PROTECTED]:
Currently, logging.config.fileConfig() inconsistently handles lines like:
[handlers]
keys = spam, eggs
[formatters]
keys = foo, bar
It does, however, correctly handle the ', ' delimiter in the [loggers]
section. This is because the various
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file11305/baditer.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3720
___
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file11303/baditer.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3720
___
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
New patches, with the suggested spelling.
For 3.0 and 2.6.
Added file: http://bugs.python.org/file11306/baditer-2.6.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3720
New submission from Dmitry Vasiliev [EMAIL PROTECTED]:
Example:
from poplib import POP3
p = POP3(localhost)
p.user(user)
Traceback (most recent call last):
File stdin, line 1, in module
File /py3k/Lib/poplib.py, line 179, in user
return self._shortcmd('USER %s' % user)
File
New submission from Dmitry Vasiliev [EMAIL PROTECTED]:
Example:
from imaplib import IMAP4
m = IMAP4(localhost)
Traceback (most recent call last):
File stdin, line 1, in module
File /py3k/Lib/imaplib.py, line 185, in __init__
self.welcome = self._get_response()
File
Raghuram Devarakonda [EMAIL PROTECTED] added the comment:
This seems to be duplicate of #1210.
--
nosy: +draghuram
resolution: - duplicate
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3728
Tim Peters [EMAIL PROTECTED] added the comment:
As the doctest docs say,
Examples containing both expected output and an exception
are not supported. Trying to guess where one ends and
the other begins is too error-prone, and that also makes
for a confusing test.
Since this is
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
What about using PyNumber_AsSsize_t? it uses PyNumber_Index to accept
integral-like types, and refuses floats.
--
nosy: +amaury.forgeotdarc
___
Python tracker [EMAIL PROTECTED]
Hagen Fürstenau [EMAIL PROTECTED] added the comment:
Sounds ok, but then you get a more generic object cannot be interpreted
as an integer at the point where len() is called, instead of the
clearer __len__() should return an int. I'm not sure if this could be
confusing.
New submission from Chris AtLee [EMAIL PROTECTED]:
The BaseHTTPServer docs don't mention 'server' as an instance variable
in the instance variable section for BaseHTTPRequestHandler. It is
mentioned in passing a few paragraphs above in the BaseHTTPServer class
description, but it's too easy to
Hagen Fürstenau [EMAIL PROTECTED] added the comment:
Of course we can do both: Accept integral-like types and reset the
exception text. The new patch does this and adds a test for the new
behaviour.
Review carefully - I'm a newbie! ;-)
Added file:
New submission from Antoine Pitrou [EMAIL PROTECTED]:
I get the following when running regrtest.py -uall under trunk:
/home/antoine/cpython/__svn__/Lib/multiprocessing/__init__.py:82:
ImportWarning: Not importing directory
'/home/antoine/cpython/__svn__/Modules/_multiprocessing': missing
James Antill [EMAIL PROTECTED] added the comment:
So if I add a:
class _WrapForRecv:
def __init__(self, obj):
self.__obj = obj
def __getattr__(self, name):
if name == recv: name = read
return getattr(self.__obj, name)
...and then change:
r.recv =
Raymond Hettinger [EMAIL PROTECTED] added the comment:
It would be a damned shame to slow down the entire language to save
code that is intentionally shooting itself in the foot. EVERYONE will
pay a cost -- NO ONE will benefit. My two cents.
--
nosy: +rhettinger
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Committed in r66057 and r66058.
--
resolution: accepted - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3668
___
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Amaury, I believe the first part of encode-leak.patch is wrong, you
should Py_DECREF the bytearray after it has been converted to bytes, not
before. Here is an alternate patch.
Added file: http://bugs.python.org/file11309/encode-leak2.patch
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Not bad! some remarks though:
- It's better to avoid the expensive call to PyErr_Occurred() when
possible. Here, an exception is set if (and only if) len==-1.
For example, it is enough to add these lines after the __len__() should
return
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Oops, you are right of course.
I remove my patch so we don't get confused.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3660
___
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file11285/encode-leak.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3660
___
Changes by Ali Polatel [EMAIL PROTECTED]:
--
nosy: +hawking
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3678
___
___
Python-bugs-list mailing list
Georg Brandl [EMAIL PROTECTED] added the comment:
That is *not* wanted. We had a discussion on the list about changing the
return value of the sq_length slot to allow larger lengths to be
reported, and while I don't recall why this wasn't done, I do recall
that the consensus was that if
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Here are some timings, on winXP, vs2008 release build:
# t.py
def f(l=range(5000)):
for x in l: pass
# before the patch
python -m timeit -s from t import f f()
1 loops, best of 3: 159 usec per loop
# after the patch
python
Changes by Florian Mayer [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file11302/log.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3724
___
___
Arfrever Frehtes Taifersar Arahesis [EMAIL PROTECTED] added the comment:
I'm confirming that the newer patch also fixes this bug.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3678
___
Changes by Florian Mayer [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file11310/log.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3724
___
___
Raymond Hettinger [EMAIL PROTECTED] added the comment:
Go for it. There's really no question about fixing possible
segfaulters. Was just voicing my displeasure at this sort of
exercise. The code has been around since at least 2.2 and hasn't
caused the slightest problem. It bugs me to put
Armin Rigo [EMAIL PROTECTED] added the comment:
The same approach can be used to segfault many more places. See
http://svn.python.org/projects/python/trunk/Lib/test/crashers/iter.py .
--
nosy: +arigo
___
Python tracker [EMAIL PROTECTED]
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Ok, after the two patches plus the patch in #3667, I get the following:
test_asyncore leaked [84, -84] references, sum=0
test_distutils leaked [141, 142] references, sum=283
test_docxmlrpc leaked [-85, 0] references, sum=-85
test_logging
Terry J. Reedy [EMAIL PROTECTED] added the comment:
Just to clarify: Python can be built as UCS2 or UCS4 build (not UTF-16
vs. UTF-32)
I recently read most of the Unicode 5 standard and as near as I could
tell it no longer uses the term UCS, if it ever did. Chapter 3 has only
the following 3
New submission from Marc-Andre Lemburg [EMAIL PROTECTED]:
d:\Python26\lib\msilib\__init__.py:5: DeprecationWarning: the sets
module is deprecated
import sets, os, string, re
Should be easy to solve.
--
components: Distutils, Library (Lib)
keywords: easy
messages: 72162
nosy: lemburg
Antoine Pitrou [EMAIL PROTECTED] added the comment:
The crashers which were deleted in rev58032 should at least have been
turned into unittests... well.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2548
Terry J. Reedy [EMAIL PROTECTED] added the comment:
Was it really intended that 3.0 pickles unpickle on 2.6?
What about other changes like moving something from one module to
another (reduce from built-in to functools), changing all classes to new
style (several examples), or adding methods to a
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Was it really intended that 3.0 pickles unpickle on 2.6?
He used protocol 2, so he explicitly asked for something inpickleable
with 2.6. If it's not the intended behaviour, then protocols 3 should
be deprecated.
--
nosy: +pitrou
Terry J. Reedy [EMAIL PROTECTED] added the comment:
Things like this tend to be system specific, and sometimes even machine
specific, so please include platform/os with reports, even I you do not
think it relevant.
In this case, Home works as it should on my WinXP 3.0b2
(which is fortunate
New submission from Tarek Ziadé [EMAIL PROTECTED]:
The windows installer could add two entries in the PATH environment
variable. This would make Python.exe and other binaries available from
the command prompt without having to change PATH manually.
--
components: Installation, Windows
New submission from Blair [EMAIL PROTECTED]:
The following is quoted from the Python docs (ref/numeric_types):
Note: If the right operand's type is a subclass of the left operand's
type and that subclass provides the reflected method for the operation,
this method will be called before the left
New submission from David Decotigny [EMAIL PROTECTED]:
I posted a recipe on ASPN: http://code.activestate.com/recipes/576462/
and Jesse, cheerleader for the inclusion of (multi)processing into
python-core, suggested that it could be interesting to add this feature
to the next pythons.
This
Daniel Diniz [EMAIL PROTECTED] added the comment:
This patch fixes Armin's list of crashers for trunk. Looking for others
like them.
--
nosy: +ajaksu2
versions: +Python 2.6
Added file: http://bugs.python.org/file11311/itercrashers.diff
___
Python
Changes by Daniel Diniz [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file11311/itercrashers.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3720
___
Daniel Diniz [EMAIL PROTECTED] added the comment:
Hopefully the right patch this time :/
Added file: http://bugs.python.org/file11312/itercrashers.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3720
Raymond Hettinger [EMAIL PROTECTED] added the comment:
Amaury, if you decide to go forward with this, please clean-up the
patches to eliminate common subexpressions.
Wonder if there is an alternate solution that keeps the next slot
filled with something that raises an Attribute error.
New submission from Tarek Ziadé [EMAIL PROTECTED]:
super is defined as a built-in function
http://docs.python.org/dev/library/functions.html
but it is a type, shouldn't it be replaced ?
--
assignee: georg.brandl
components: Documentation
messages: 72174
nosy: georg.brandl, tarek
Changes by Kevin Watters [EMAIL PROTECTED]:
--
nosy: +kevinwatters
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue836035
___
___
Python-bugs-list
Terry J. Reedy [EMAIL PROTECTED] added the comment:
I share Raymond's annoyance. The ultimate solution for segfaults is for
bad pointer references to be catchable (trappable) the same as math
errors are are now. I remember when 1/0 was fatal, not EDOM. Then the
interpreter could print a
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Ok, here is a patch which seems to cover all bases. It fixes the present
bug, adds tests for the aforementioned ex-crashers, backports the
somewhat smarter recursion checking from py3k, and improves the latter
by fixing a nasty recursion bug
Changes by Antoine Pitrou [EMAIL PROTECTED]:
--
keywords: +needs review
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2548
___
___
Python-bugs-list
Daniel Diniz [EMAIL PROTECTED] added the comment:
Raymond, I think a different solution would be great, as the performance
penalty might become nasty in tight loops if we miss some detail.
Regarding the possible impact, I hope we can get a better estimate since
the other examples of
Raymond Hettinger [EMAIL PROTECTED] added the comment:
Am already working on the docs for super().
--
assignee: georg.brandl - rhettinger
nosy: +rhettinger
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3736
Changes by Antoine Pitrou [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file11313/excrecurse.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2548
___
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Ouch, there were a couple of useless lines in ceval.h. New patch.
Added file: http://bugs.python.org/file11314/excrecurse.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2548
Raymond Hettinger [EMAIL PROTECTED] added the comment:
It's not just performance -- the patch code is grotesque. Lots of code
would need to be changed just before the release candidate (usually a
bad idea). And the underlying problem doesn't seem to be one that has
*ever* affected a real
Antoine Pitrou [EMAIL PROTECTED] added the comment:
After thinking about it a bit, I think the whole recursion checking
thing has gone a bit mad. It probably deserves proper discussion on the
mailing-list. In the meantime, I'm downgrading this bug to critical.
--
priority: release
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment:
This patch will partialy backport r53335
--
keywords: +patch
nosy: +ocean-city
Added file: http://bugs.python.org/file11315/fix_deprecated_sets.patch
___
Python tracker [EMAIL PROTECTED]
Dwayne Litzenberger [EMAIL PROTECTED] added the comment:
Could -*- coding: ascii -*- and other equivalent encodings be fixed,
at least, before the release?
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2384
69 matches
Mail list logo