Martin v. Löwis mar...@v.loewis.de added the comment:
IIUC, Manfred's pythonInstallLog.zip is now from a successful installation, so
it is unfortunately of little help. We really would need a log of a failed
installation.
--
___
Python tracker
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment:
Mark Dickinson writes:
Here's a patch (against py3k) incorporating your suggestions. Would you
be willing to review?
Looks fine to me. (Actually the gcc branch makes the same assumptions
as the final branch, but then I expect
New submission from Hallvard B Furuseth h.b.furus...@usit.uio.no:
errno is sometimes read too late after the error: After another call
may have modified it. Here's a patch against py3k. Most of it or a
variant applies to 2.7 too, but I haven't really looked at that.
I've not looked at math
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment:
I wrote:
BTW, do you know of any modern non-Windows platforms that don't define
LLONG_MIN and LLONG_MAX? It may well be that the two's complement
fallback hasn't been exercised in recent years.
Anyting compiled with strict
New submission from Valery Khamenya khame...@gmail.com:
1. The patch introduces autocompletion for keys in dictionaries (patch attached)
2. The patched rlcompleter as such works OK for unicode dictionary keys as
well. All tests pass OK. HOWEVER, readline's completion mechanism seem to be
New submission from Valery Khamenya khame...@gmail.com:
rlcompleter.py has no test_rlcompleter in trunk, see
http://svn.python.org/view/python/trunk/Lib/test/
There is one in 2.7 though.
Remark: the issue http://bugs.python.org/issue10351 introduces autocompletion
patch and comes with new
Ron Adam ron_a...@users.sourceforge.net added the comment:
What about http://bugs.python.org/issue2001#msg114326 ?
Thanks for the reminder.
To Nick:
However, the public (albeit undocumented) nature of the APIs implementing the
old Tk GUI means I'm not comfortable committing the patch in a
Georg Brandl ge...@python.org added the comment:
trunk is no longer active. The real trunk is the py3k branch, which does
have test_rlcompleter.
--
nosy: +georg.brandl
resolution: - invalid
status: open - closed
___
Python tracker
Walter Dörwald wal...@livinglogic.de added the comment:
Using the original encoding of the Python source file might be the politically
correct thing to do, but it complicates handling of the output of trace.py. For
each file you have to do the encoding detection dance again. It would be great
STINNER Victor victor.stin...@haypocalc.com added the comment:
... it complicates handling of the output of trace.py.
For each file you have to do the encoding detection dance again ...
What? You just have to call one function! tokenize.open() :-) Well, ok, it's
not commited yet, but it
Weeble clockworksa...@gmail.com added the comment:
Is there any way to write code that's safe with or without this fix? If I have
code that currently does this:
subprocess.check_call('c:\some path with spaces arg1 arg2 a quoted arg',
shell=True)
...will it break when running on a version of
New submission from Peter p.j.a.c...@googlemail.com:
Consider the following example unit test using assertAlmostEqual which uses the
places argument as a positional argument, call this places.py:
import unittest
class Tests(unittest.TestCase):
def test_equal_to_five_decimal_places(self):
New submission from Giampaolo Rodola' g.rod...@gmail.com:
import tempfile
tempfile.template = 'XXX'
tempfile.mkdtemp()
'/tmp/tmpPf5lML'
Functions that use template use it as an argument default, so changing it
afterwards has no effect.
--
components: Library (Lib)
messages: 120729
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Patch in attachment.
--
keywords: +patch
Added file: http://bugs.python.org/file19541/tempfile.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10354
Nick Coghlan ncogh...@gmail.com added the comment:
Yeah, I'll ask for feedback on python-dev regarding the API breakage.
If we decide not to break the existing API, I'd suggest the following:
- keep both the old serve() and the old gui() (with DeprecationWarning added to
both) (I'd forgotten
Eric Smith e...@trueblade.com added the comment:
The patch looks good to me, but it needs a test.
--
nosy: +eric.smith
stage: - unit test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10354
Changes by Michael Foord mich...@voidspace.org.uk:
--
nosy: -michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10228
___
___
Pascal Chambon chambon.pas...@gmail.com added the comment:
Allright, it actually looks more like a pathological latency behaviour of my
target platforms than a ssl bug...
I was mislead by the heavy history of socket.settimeout(), sorry. _
--
status: open - closed
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Patch including tests is in attachment.
I think I've just found two further bugs though:
tempfile.TemporaryFile().name
'fdopen'
tempfile.TemporaryFile(prefix='xxx').name
'fdopen'
tempfile.SpooledTemporaryFile().name
Traceback (most
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Adding georg.brandl to nosy list as per misc/maintainers.rst.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10354
New submission from Giampaolo Rodola' g.rod...@gmail.com:
import tempfile
tempfile.SpooledTemporaryFile().name
Traceback (most recent call last):
File stdin, line 1, in module
File /home/giampaolo/svn/python-2.7/Lib/tempfile.py, line 574, in name
return self._file.name
AttributeError:
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Created issue 10355 for SpooledTemporaryFile bug while TemporaryFile having no
name seems to be rightful.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10354
New submission from Stefan Krah stefan-use...@bytereef.org:
When the __hash__ method is called directly, the hash of -1
is -1:
from decimal import *
Decimal(-1).__hash__()
-1
hash(Decimal(-1))
-2
I've a patch, which also sneaks in a ValueError.
--
components: Library (Lib)
files:
New submission from Fergal Daly ferg...@gmail.com:
According to the index, the only place that mentions ** in argument lists is
http://docs.python.org/tutorial/controlflow.html#index-1099
and gives no indication of what an object must support to allow **.
When you attempt to ** an object the
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10357
___
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10350
___
___
Peter Hall peter.f.h...@nasa.gov added the comment:
There seems some similarity between this issue and issue #10316 which occurs on
Linux.
--
nosy: +pfhall
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
New submission from Fred L. Drake, Jr. fdr...@acm.org:
The HTML version of the documentation should include style settings for
printing that use fairly dark colors, so that printed copies of pages are more
readable.
Using a printer that reduces colors to grays causes the light colors in code
New submission from Hallvard B Furuseth h.b.furus...@usit.uio.no:
Here are some ISO C conformance patches, and
a minor cleanup I encountered along the way.
Lib/distutils/tests/test_config_cmd.py // comment -- /* comment */.
Lib/distutils/tests/test_build_ext.py,
Objects/weakrefobject.c,
New submission from Tres Seaver tsea...@agendaless.com:
Because application code which tests for the presence of
an object in a WeakSet may not be able to ensure that the
object is weak-referenceable, the set should just return
False for any object passed to '__contains__' which causes
'ref' to
Changes by Tres Seaver tsea...@agendaless.com:
--
components: +Library (Lib)
keywords: +patch
Added file: http://bugs.python.org/file19545/issue10360.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10360
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment:
Hallvard B Furuseth writes:
Looks fine to me.
Hold on.. #elif defined SIZEOF_LONG_LONG would be a bit safer than #else.
--
___
Python tracker rep...@bugs.python.org
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10353
___
___
R. David Murray rdmur...@bitdance.com added the comment:
The change of places to a keyword-only argument in 3.x was reverted last week
in py3k trunk.
--
nosy: +michael.foord, r.david.murray
resolution: - out of date
stage: - committed/rejected
status: open - closed
versions: -Python
R. David Murray rdmur...@bitdance.com added the comment:
Shouldn't the global template variable just be deleted in python3? It is no
longer documented except for what is probably an overlooked mention in the
introduction.
--
nosy: +r.david.murray
Éric Araujo mer...@netwok.org added the comment:
If it’s not too much trouble for you, please post diffs as text files rather
than binary. You can also use “svn diff” to produce one file with all
differences.
--
nosy: +eric.araujo
___
Python
Éric Araujo mer...@netwok.org added the comment:
By the way, do these changes actually fix errors or are they just cleanups and
pedantic (not a slight) fixes? If the latter, I think they won’t go into
stable branches. I don’t do C though, so I won’t be the one to judge. Thanks
for the
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10359
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +asksol
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10348
___
___
Python-bugs-list mailing
Éric Araujo mer...@netwok.org added the comment:
Related issue in msg120647.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9873
___
___
Éric Araujo mer...@netwok.org added the comment:
No problem :)
I’ve had a look at the test and don’t understand the problem. What’s the
client you’re referring to? I thought that in the tests, client-side and
server-side were both under control. Is the problem related to *python* being
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10354
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Is 3.1 incompatible with 2.7 and 3.2? If so, is it best to have 3.2 compatible
with 3.1 or to have 3.1 buggy?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Michael Foord mich...@voidspace.org.uk added the comment:
It's fixed in release31-maint as well.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10353
___
Éric Araujo mer...@netwok.org added the comment:
Thank you for the report and patch. This is a new feature, thus targetting the
py3k branch (future 3.2). If your patch is not against this branch, can you
refresh it? Also, please attach it as text file(s), and generally follow
guidelines
Changes by Łukasz Langa luk...@langa.pl:
--
nosy: +lukasz.langa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10225
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
the .pythonrc.py file is not deprecated. only the user module is deprecated.
Which amounts to the same IMO.
the problem i have with the PYTHONSTARTUP variable is that i find it
is an unecessary intermediate step to set up an initialization
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Sun, Nov 7, 2010 at 4:24 AM, STINNER Victor rep...@bugs.python.org wrote:
..
Ok, the new patch (tokenize_open-2.patch) uses tokenize.open() name and adds a
test for BOM without coding cookie (test utf-8-sig encoding).
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Changing the title to make the latest choice of function name more visible.
--
stage: - patch review
title: tokenize.open_python(): open a Python file with the right encoding -
tokenize.open(): open a Python file
Éric Araujo mer...@netwok.org added the comment:
1. Agreed on both. Extraneous blank lines seem to be favored by people who
need to work around bugs in their editor.
2. Yes, “_” is recommended for a discarded object.
3. Agreed.
4. Even better: print('# coding:', encoding, file=fp). No
Mark Dickinson dicki...@gmail.com added the comment:
Are there situations where this is a problem?
I don't think that there's any requirement that the __hash__ method for a
user-defined Python type not return -1. (It's also allowed to return values
outside the range of hash values; these
R. David Murray rdmur...@bitdance.com added the comment:
What makes you think SpooledTemporaryFile *has* a name attribute? :)
Seriously, though, I presume this bug report is asking for either a better
error message or for .name to raise an attribute error on a
SpooledTemporaryFile?
R. David Murray rdmur...@bitdance.com added the comment:
I think the Glossary entry needs to be updated to point to the authoritative
source for 'mapping' methods:
http://docs.python.org/library/collections.html#abcs-abstract-base-classes
(and yes, I realize that info is not located in a
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
It's not about the hash value, but about consistency: help(Decimal.__hash__)
says x.__hash__() == hash(x), but this is not true for x=Decimal(-1).
--
nosy: +amaury.forgeotdarc
___
Python
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Yes, sorry, I should have been less concise. =)
Seriously, though, I presume this bug report is asking for either a
better error message or for .name to raise an attribute error on a
SpooledTemporaryFile?
I'm not sure what's better.
Éric Araujo mer...@netwok.org added the comment:
From the doc of tempfile.NamedTemporaryFile: “This function operates exactly
as TemporaryFile() does, except that the file is guaranteed to have a visible
name in the file system (on Unix, the directory entry is not unlinked). That
name can be
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
As discussed on #python-dev, building 3.x documentation using python3.x will
require Sphinx 1.1 which will not be released in time for 3.2.
I am adding #10225 as a dependency because I feel that fixing actual errors in
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1195
___
___
Python-bugs-list mailing
Georg Brandl ge...@python.org added the comment:
I agree that 3.2 should eventually be independent of a 2.x Python. Since the
port to 3.x part of Sphinx 1.1 is basically done, I might just do an early
alpha release and use that for Doc/tools before 3.2 final.
--
Changes by Michael Foord mich...@voidspace.org.uk:
--
nosy: +michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10360
___
___
R. David Murray rdmur...@bitdance.com added the comment:
Éric: right, but we're talking about *Spooled*Temprorary file, which doesn't
say anything about a name, and in fact says that the data is kept in memory
(which implies it has no name).
--
___
Changes by Chris Gerhard chris.gerh...@oracle.com:
--
nosy: +Chris.Gerhard
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1236
___
___
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: d...@python - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10357
___
Georg Brandl ge...@python.org added the comment:
A result from IRC is that to be consistent with normal sets, only TypeErrors
coming from ref() should be caught, but not those TypeErrors from the actual
membership test (i.e. the hash functioon of the value).
--
assignee: - rhettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Good catch Stefan. This is a regression from Py2.6. The behavior for decimal
should match that for int.
IDLE 2.6.2
hash(-1)
-2
(-1).__hash__()
-2
from decimal import *
hash(Decimal(-1))
-2
Decimal(-1).__hash__()
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +barry, eric.araujo
versions: +Python 3.2 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5819
___
Changes by Tres Seaver tsea...@agendaless.com:
Removed file: http://bugs.python.org/file19545/issue10360.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10360
___
Tres Seaver tsea...@agendaless.com added the comment:
A new version of the patch, which only traps TypeErrors raises
by ref(item). The test now ensures that hashing errors are
propagated, for compatibility with standard sets.
--
Added file:
Changes by Tres Seaver tsea...@agendaless.com:
Removed file: http://bugs.python.org/file19546/issue10360-redux.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10360
___
Tres Seaver tsea...@agendaless.com added the comment:
One more time, with feeling.
Sorry for the noise, the last patch was not against the 2.7 trunk.
--
Added file: http://bugs.python.org/file19547/issue10360-redux.patch
___
Python tracker
Tres Seaver tsea...@agendaless.com added the comment:
FTR, the patch applies cleanly to the py3k branch, too. (Michael
pointed out that the original code was copied directly from there).
--
___
Python tracker rep...@bugs.python.org
Changes by Tres Seaver tsea...@agendaless.com:
--
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10360
___
___
Éric Araujo mer...@netwok.org added the comment:
Wow, brain fail. What I actually wanted to say: SpooledTemporaryFile
“operates exactly as TemporaryFile() does”, which is not guaranteed to have a
name. The definition of file-like object (linked from tempfile docs) says
nothing about a name
Antoine Pitrou pit...@free.fr added the comment:
What is the behaviour of WeakKeyDictionary here? I don't really agree that
TypeError should be silenced.
--
nosy: +pitrou
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Also encoding and mode properties fail in the same manner.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10355
___
New submission from Éric Araujo mer...@netwok.org:
Looks globally good to me.
http://codereview.appspot.com/2874041/diff/2001/cmd.py
File cmd.py (right):
http://codereview.appspot.com/2874041/diff/2001/cmd.py#newcode55
cmd.py:55: :param distutils.dist.Distribution dist: distribution to work
Éric Araujo mer...@netwok.org added the comment:
Thanks for the patch. Review on Rietveld.
What are “other Python distributions”?
--
components: +Distutils2
versions: +3rd party, Python 3.1, Python 3.2 -Python 2.6
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
Committed in r86327.
--
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10321
Tres Seaver tsea...@agendaless.com added the comment:
WeakKeyDictionary's __contains__:
def __contains__(self, key):
try:
wr = ref(key)
except TypeError:
return 0
return wr in self.data
--
___
Éric Araujo mer...@netwok.org added the comment:
Yay for obscure email interfaces. Sorry for the noise.
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from ProgVal prog...@gmail.com:
Hello,
I had this traceback:
Traceback (most recent call last):
...
File /home/progval/workspace/Supybot/Supybot-plugins/Packages/plugin.py,
line 123, in extractData
file = tarfile.open(fileobj=file_)
File /usr/lib/python2.6/tarfile.py,
New submission from Martin Dunschen mdunsc...@gmail.com:
I found a number of 'handle leaks' in the core code to embed python into a
C/C++ application on windows.
To reproduce:
The simplest possible embedded application only calls:
#include Python.h
void entry()
{
Py_Initialize();
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
With a socket file you cannot rely on autodetection of the format. I suggest to
try
tarfile.open(fileobj=file_, mode='r:')
or
tarfile.open(fileobj=file_, mode='r:gz')
--
nosy: +amaury.forgeotdarc
ProgVal prog...@gmail.com added the comment:
Thanks for your answer.
Sorry, no change...
--
components: +Library (Lib)
versions: +Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10362
New submission from Typo lol.rab...@yahoo.com:
Whenever I run a program in Python 3.1.2 (windows), the color coding
disappears. print() is no longer purple, def is no longer orange, etc. It all
turns black, and there doesn't seem to be a way to repair this. I've installed
and uninstalled
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I'm sure the traceback changed then?
mode='r:' uses a different code path.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10362
ProgVal prog...@gmail.com added the comment:
Here is the new traceback:
Traceback (most recent call last):
...
File /home/progval/workspace/Supybot/Supybot-plugins/Packages/plugin.py,
line 123, in extractData
file = tarfile.open(fileobj=file_, mode='r:')
File
anatoly techtonik techto...@gmail.com added the comment:
Reviewers: merwok,
Message:
I don't know when where will be time to redo the patch, but it would be
nice to get some answers in meanwhile.
http://codereview.appspot.com/2874041/diff/2001/cmd.py
File cmd.py (right):
Terry J. Reedy tjre...@udel.edu added the comment:
This is an editor rather than Python problem. Are you using the IDLE editor or
something else. Which version of Windows?
Orange and purple are IDLE's default for keywords and built-in names. But
running 3.1.2 under XP, I have no problem as
anatoly techtonik techto...@gmail.com added the comment:
This fix is needed for 2.6 releases also to be able to upload packages from
Linux.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9995
Éric Araujo mer...@netwok.org added the comment:
Further replies. There’s still one comment in test_register you haven’t
addressed yet.
Tarek, I’d like to have your decision about one line in the upload
command. (Don’t read the diff in this mail, it’s incomplete, go to
Rietveld.) Thanks in
Typo lol.rab...@yahoo.com added the comment:
I am using Windows Vista. The problem is not within Idle but within the screen
where you create and save coding to use in Idle.
--
___
Python tracker rep...@bugs.python.org
New submission from William Barr webmaster...@gmail.com:
Steps for reproduction:
1. Open IDLE (Python 3.1.2)
2. Open a .py file
3. With the code window (not the shell window) in focus, Ctrl + O to bring up
the open file dialog. Do not select a file or press open.
4. Close the code
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - invalid
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10327
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Reproduced in a console window:
C:\c:\python31\python.exe -m idlelib.idle
Exception in Tkinter callback
Traceback (most recent call last):
File c:\python31\lib\tkinter\__init__.py, line 1399, in __call__
return self.func(*args)
New submission from Terry J. Reedy tjre...@udel.edu:
In 3.x, (object) is now superfluous in class statements. Reference manual
7.7. Class definitions has simply
class Foo: pass
In library manual 2. Built-in Functions, class examples for classmethod and
staticmethod are the same. Class
Barry A. Warsaw ba...@python.org added the comment:
I'll look at this in more detail, but I can at least answer one question right
now:
The bona-fide known bug: the Debian package mantainer for Python decided to
change site-packages to dist-packages in 2.6, for reasons I still don't
quite
Terry J. Reedy tjre...@udel.edu added the comment:
If it is an editor window that you launch from IDLE, with a red script Tk in
the upper left corner, with 'About IDLE' on the help menu, then it is an IDLE
editor window and part of IDLE -- and appropriate for bug reports here ;-).
This could
Éric Araujo mer...@netwok.org added the comment:
Other unneeded uses of object, courtesy of grep:
library/sqlite3.rst:713: class Point(object):
library/multiprocessing.rst:1335: class MathsClass(object):
library/functions.rst:281: class Foo(object):
library/functions.rst:897:
1 - 100 of 156 matches
Mail list logo