Ezio Melotti ezio.melo...@gmail.com added the comment:
What I'm proposing is not to change the default error handler to
'backslashreplace', but just the behavior of sys.displayhook.
--
___
Python tracker rep...@bugs.python.org
Ismail Donmez ism...@namtrac.org added the comment:
Sure thing, I am waiting for alpha2.
Regards.
--
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5442
___
Kurt B. Kaiser k...@shore.net added the comment:
This wasn't backported to 2.5 as it's trivial and life
is short.
I have a clean install of 3.0.1 from the msi installer,
running on an eeePC 1000HA, XP Home, tk 8.5.
If I type a string at the prompt in the IDLE shell
and hit the home key, the
R. David Murray rdmur...@bitdance.com added the comment:
Thanks. Fixed in r71123.
--
nosy: +r.david.murray
priority: - low
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - behavior
versions: -Python 3.0, Python 3.1
Kurt B. Kaiser k...@shore.net added the comment:
Weeble found the problem: it's the numlock key interacting
with a bug. I can reproduce it when I latch numlock.
http://bugs.python.org/msg80478
--
nosy: +weeble
resolution: works for me - accepted
status: pending - open
Kurt B. Kaiser k...@shore.net added the comment:
Thanks for the research on the home key toggle. Let's take that
to issue3851, it seems it's different from the rest of this
issue.
--
nosy: +kbk
superseder: - IDLE: Pressing Home on Windows places cursor before
instead of after.
R. David Murray rdmur...@bitdance.com added the comment:
Are you sure it isn't your Fedora installation that has the problem? My
understanding is that the linker name (the libxxx.so name) should exist
and be a symbolic link to the most recent soname (libxxx.N). So I think
distutils is doing
Changes by R. David Murray rdmur...@bitdance.com:
--
keywords: +easy
versions: +Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue459007
___
Kurt B. Kaiser k...@shore.net added the comment:
r71126. Thanks to everyone for all the work on this!
Note: I still need to patch the Windows install to
bind .py files to a different command string. The
-e option now only opens an editor window, but I need
to remove the -n option.
--
Kurt B. Kaiser k...@shore.net added the comment:
r71126
-e only opens edit window, not shell
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1757831
Tarek Ziadé ziade.ta...@gmail.com added the comment:
done in distutils, will open a specific issue for zip.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5257
___
New submission from Tarek Ziadé ziade.ta...@gmail.com:
test_zipfile writes in its test directory, which can be a problem if
this directory is read-only in some installations.
--
messages: 85382
nosy: tarek
priority: low
severity: normal
status: open
title: test_zipfile writes in its
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
priority: - normal
versions: +Python 2.7, Python 3.1 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2953
___
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
priority: - normal
type: - feature request
versions: +Python 2.7, Python 3.1 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4015
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
priority: - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5616
___
___
Python-bugs-list
Tarek Ziadé ziade.ta...@gmail.com added the comment:
After some discussion at Pycon, I was convinced that MANIFEST.in should
be removed.
I'll send a mail about this in Distutils-SIG and if there's a consensus,
I'll deprecate it and also add glob pattern for package_data.
--
priority:
New submission from Tarek Ziadé ziade.ta...@gmail.com:
Currently, Distutils makes a system call to tar files, using the tar
command. Let's use Python's tarinfo module, so we don't rely on the tar
program anymore.
--
assignee: tarek
components: Distutils
messages: 85384
nosy: tarek
Antoine Pitrou pit...@free.fr added the comment:
You should commit. If there is a problem with other Windows build files,
it will certainly be noticed and fixed by a true Windows developer.
--
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: -haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5110
___
___
New submission from Eric Smith e...@trueblade.com:
If no format specifier is supplied to a float, it's supposed to work
like 'g', but with at least one digit after the decimal. This works for
non-exponential notation:
format(1., '')
'1.0'
format(1., 'g')
'1'
But for exponential notation, it
Changes by Eric Smith e...@trueblade.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5686
___
___
Python-bugs-list mailing
Eric Smith e...@trueblade.com added the comment:
The documentation doesn't agree with the PEP. The docs at
http://docs.python.org/library/string.html#formatstrings just say '' is
the same as 'g'. It does not draw a distinction between exponential and
fixed output.
The PEP has the at least one
Antoine Pitrou pit...@free.fr added the comment:
It looks like there is a disagreement between c-io and py-io as to what
the newline parameter in StringIO means.
I think the c-io version makes more sense (but I'm biased, since I wrote
it), while the py-io results are quite difficult to
Antoine Pitrou pit...@free.fr added the comment:
Can you test with the following patch?
--
keywords: +patch
Added file: http://bugs.python.org/file13610/memio.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5645
Antoine Pitrou pit...@free.fr added the comment:
Buildbots should be green for the release.
--
priority: - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5645
___
Changes by Antoine Pitrou pit...@free.fr:
--
stage: - patch review
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5645
___
___
Mark Dickinson dicki...@gmail.com added the comment:
I don't really see this as a bug in the behaviour. I'd always understood
the purpose of the at least one digit after the decimal to be to make it
possible to visually distinguish floats and integers, in the same way that
repr and str
Changes by Brian Quinlan br...@sweetapp.com:
--
components: Extension Modules
files: docstring.diff
keywords: patch
nosy: bquinlan
severity: normal
status: open
title: Docstring typo in _io
versions: Python 3.1
Added file: http://bugs.python.org/file13611/docstring.diff
Georg Brandl ge...@python.org added the comment:
Yes, that's true. It should be more generally helpful in there.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5634
Georg Brandl ge...@python.org added the comment:
Fixed in r71149.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5642
___
Georg Brandl ge...@python.org added the comment:
Updated docs in r71150.
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5601
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I confirmed the patch works.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5645
___
Antoine Pitrou pit...@free.fr added the comment:
Committed in r71151, thanks!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5645
___
Matthias Klose d...@debian.org added the comment:
fixed for 2.7, 2.6, 3.1
--
assignee: - doko
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3845
Georg Brandl ge...@python.org added the comment:
Easily done. :)
--
nosy: +georg.brandl
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4375
Michael Foord mich...@voidspace.org.uk added the comment:
I'd like to add assertIs and assertNotIs.
We have these at work and I would find them useful whilst writing tests
for another set of changes to unittest I'm currently working on!
--
___
Antoine Pitrou pit...@free.fr added the comment:
Le samedi 04 avril 2009 à 15:06 +, Michael Foord a écrit :
Michael Foord mich...@voidspace.org.uk added the comment:
I'd like to add assertIs and assertNotIs.
Let's call it AssertIsNot (we type x is not None, not x not is
None).
Michael Foord mich...@voidspace.org.uk added the comment:
I would *mmuch* prefer assertIsNot but it is not symmetrical with the
other asserts.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2578
New submission from Matthias Klose d...@debian.org:
[forwarded from http://bugs.debian.org/519454]
As of now, warnings.py provides only re.I flag to re.compile on
warnings.py:160. Recent python-numpy issues way too many warnings, I
was trying to filter them out using warnings.filterwarnings,
Changes by Georg Brandl ge...@python.org:
--
assignee: - georg.brandl
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5142
___
Changes by Georg Brandl ge...@python.org:
--
assignee: - georg.brandl
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5687
___
New submission from Matthias Klose d...@debian.org:
GNU tar now supports lzma compression as a compression method. Please
consider adding lzma support to the tarfile module (either by using the
external lzma program or by adding a lzma extension to the standard
library).
lzma extension at
Changes by Antoine Pitrou pit...@free.fr:
--
priority: - normal
versions: +Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5689
___
Michael Foord mich...@voidspace.org.uk added the comment:
Patch attached.
No docs, if it is agreed I can apply I'll write docs.
After a long discussion we arrived at some semblance of consensus on the
Testing In Python mailing list that this was a good thing (tm).
Only one -1 (thought that
Antoine Pitrou pit...@free.fr added the comment:
I would *mmuch* prefer assertIsNot but it is not symmetrical with the
other asserts.
Well, apparently assertIsNotNone() has been added, so it would be good
to be symmetrical with that :)
--
___
Benjamin Peterson benja...@python.org added the comment:
I found while merging this to Py3k that dicts can't be used in
assertSameElements because they are unorderable in py3k.
--
___
Python tracker rep...@bugs.python.org
Benjamin Peterson benja...@python.org added the comment:
I don't think I'm going to let this block today's release. Martin, I
assume you can just apply the patch locally when you are building the
installers?
--
nosy: +benjamin.peterson
___
Python
New submission from Antoine Pitrou pit...@free.fr:
Compiled with VS 2008 Express:
test test_types failed -- Traceback (most recent call last):
File Z:\py3k\__svn__\lib\test\test_types.py, line 343, in
test_int__format__
test(1234, ',', '1,234')
File
Antoine Pitrou pit...@free.fr added the comment:
There seems to be a problem with ungetwch():
s = msvcrt.getwch()
# Here I type the Euro sign (€)
ascii(s)
'\\u20ac'
msvcrt.ungetwch(s)
u = msvcrt.getwch()
ascii(u)
'\\xac'
--
nosy: +pitrou
type: - behavior
New submission from Antoine Pitrou pit...@free.fr:
This is under Windows XP with VS 2008 Express:
test test_collections failed -- Traceback (most recent call last):
File Z:\py3k\__svn__\lib\test\test_collections.py, line 714, in
test_equalit
y
self.assertNotEqual(od1, od2) #
Benjamin Peterson benja...@python.org added the comment:
Fixed in r71174.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5391
Michael Foord mich...@voidspace.org.uk added the comment:
I'm agnostic on before / after tearDown, so happy to make that change.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5679
___
Changes by Benjamin Peterson benja...@python.org:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5690
___
___
Python-bugs-list
New submission from Antoine Pitrou pit...@free.fr:
Under Windows XP with VS 2008 Express:
test test_zipfile failed -- Traceback (most recent call last):
File Z:\py3k\__svn__\lib\test\test_zipfile.py, line 334, in testExtract
self.assertEqual(writtenfile, correctfile)
AssertionError:
Benjamin Peterson benja...@python.org added the comment:
Fixed in r71176.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5691
Michael Foord mich...@voidspace.org.uk added the comment:
Patch with assertIs and assertIsNot. Docs but nothing in NEWS as already
covered.
Ok to apply?
--
Added file: http://bugs.python.org/file13613/unittest-assertis.diff
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Fixed in r71176.
Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5691
___
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I got SEGV on test_types on VC6, but after clean build, it seems SEGV
was gone. Maybe build problem?
--
nosy: +ocean-city
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
If somebody would provide a patch that adds prctl to the posix module,
that would be fine with me - we have a long tradition of exposing all
available system calls if somebody wants them.
As for Windows: no, there is no equivalent of prctl.
Antoine Pitrou pit...@free.fr added the comment:
Actually, it works in debug mode, but not in release mode.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5690
___
Martin v. Löwis mar...@v.loewis.de added the comment:
I agree with David. The .so name must exist; if it doesn't, your
installation does indeed lack the necessary prerequisite.
Closing as invalid.
--
nosy: +loewis
resolution: - invalid
status: open - closed
Michael Foord mich...@voidspace.org.uk added the comment:
Patch for Py3k with fallback for comparing unsortable sequences in
assertSameElements.
Removed the expected failure and added another test case to confirm that
this patch works for unsortable sequences that are the same (no fail)
and
Antoine Pitrou pit...@free.fr added the comment:
Well, actually it also happens under Linux in non-debug mode.
--
title: test_types fails under Windows - test_types fails in non-debug mopde
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
title: test_types fails in non-debug mopde - test_types fails in non-debug mode
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5690
___
Martin v. Löwis mar...@v.loewis.de added the comment:
As for an lzma module - I would prefer one that isn't LGPL'ed. Instead,
it should link against a system-provide lzma library (which then might
or might not licensed under lpgl). I would probably exclude the lzma
module from Windows, as
Martin v. Löwis mar...@v.loewis.de added the comment:
Tim, thanks for the patch. Applied in r71179, r71180, r71181 and r71182.
Hope it still goes into the tag.
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
Benjamin Peterson benja...@python.org added the comment:
I think this can wait until the first beta.
--
nosy: +benjamin.peterson
priority: release blocker - deferred blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5410
Benjamin Peterson benja...@python.org added the comment:
Let's worry about this after the alpha.
--
nosy: +benjamin.peterson
priority: release blocker - deferred blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5692
Changes by Eric Smith e...@trueblade.com:
--
assignee: - eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5690
___
___
Python-bugs-list
Eric Smith e...@trueblade.com added the comment:
Problem was a debug #ifdef in the wrong place. Sorry for not testing in
non-debug mode.
Fixed in r71184.
--
priority: release blocker - normal
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Committed in r71185.
Thanks Antoine for the review!
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5682
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
This happens when running test from root directory. Following patch can
workaround this, but this code is there because it is needed, isn't it?
(Related to #4710?)
Index: Lib/zipfile.py
Antoine Pitrou pit...@free.fr added the comment:
Seeing how a change in assertNotEqual unveiled a bug in OrderedDict,
would it be desireable for each of assertEqual and assertNotEqual to
test both the '!=' and '==' operators?
--
___
Python tracker
Robert Collins robe...@robertcollins.net added the comment:
It should run after tearDown so that teardown can do actions that may
require cleanup; because the cleanups run in LIFO you can acquire
resources in setUp and have cleanups clean them up,
--
nosy: +rbcollins
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Sorry, I was wrong. I think I noticed that the case size==1 was handled
differently, and incorrectly inferred the same for size==0.
(btw, the patch for trunk was not updated)
--
___
Python
Robert Collins robe...@robertcollins.net added the comment:
Actually let me phrase that differently.
standard practice for setUp is
super.setUp()
my_setup_code()
and tearDown is
my_teardown_code()
super.tearDown()
because of the LIFO need.
If you imagine that clean ups are being done in the
New submission from Robert Collins robe...@robertcollins.net:
Currently if you alter the way TestSuite iterates one must always
implement countTestCases, run, debug etc. The attached patch would make
this simpler.
If this looks ok I'll write up a test for it.
--
components: Library
Michael Foord mich...@voidspace.org.uk added the comment:
+1 it's a minor change.
--
nosy: +michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5693
___
Antoine Pitrou pit...@free.fr added the comment:
teardown
Why should they? It's only an implementation choice, and not a wise one
I would say (precisely because people are used to the fact that the
standard tearDown() method does nothing, and doesn't need to be called).
I explained my proposal
Benjamin Peterson benja...@python.org added the comment:
This looks correct. Just while your at it, you can fix the if statement
in the debug() method by putting the body on another line.
--
nosy: +benjamin.peterson
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Sorry, roundup screwed the quoting. I was responding to the following
sentence:
“If you imagine that clean ups are being done in the base class teardown”.
--
___
Python tracker rep...@bugs.python.org
Marcelo Fernández fernandez...@yahoo.com.ar added the comment:
Fine, I'll try to make a patch based on the procname project in Google
Code. Here are some more links with more approaches to solve this issue
(while I learn how to make a patch :-) )
R. David Murray rdmur...@bitdance.com added the comment:
Tony, I don't think I agree with your reading of the RFC. IMO, your
inversion of test_rfc2047_without_whitespace is not correct. '=' is not
a 'special' in RFC[2]822 terms, so the atom does not end at the apparent
end of the encoded word.
Nick Coghlan ncogh...@gmail.com added the comment:
No, because the rich comparison docs explicitly state that the
interpreter makes no assumptions about the relationship between != and
== (or, more precisely, __eq__ and __ne__).
There are no implied relationships among the comparison operators.
Robert Collins robe...@robertcollins.net added the comment:
On Sat, 2009-04-04 at 22:09 +, Antoine Pitrou wrote:
Antoine Pitrou pit...@free.fr added the comment:
teardown
Why should they? It's only an implementation choice, and not a wise one
I would say (precisely because people are
Michael Foord mich...@voidspace.org.uk added the comment:
Antoine, Robert suggests calling it after tearDown so that tearDown can
also perform actions that need clean up. Not a common use case but at
least a use case. What do you mean by:
so that test cases can also use it to initialize
Antoine Pitrou pit...@free.fr added the comment:
def setUp(self):
dirname = mkdtemp()
self.addCleanup(shutils.rmtree, dirname, ignore_errors=True)
db = make_db(dirname)
self.addCleanup(db.tearDown)
Sure, but that's an example of doing something which is
Michael Foord mich...@voidspace.org.uk added the comment:
The main use case for addCleanup is resource allocation in tests. Why
does this require clean ups to be executed before tearDown?
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
The main use case for addCleanup is resource allocation in tests. Why
does this require clean ups to be executed before tearDown?
If your cleanup relies on something which has been set up during setUp
and will be dropped during tearDown (a
Tony Nelson tony_nel...@users.sourceforge.net added the comment:
The email package does not follow the RFCs in anything to do with header
parsing or decoding. This is a known deficiency. So no, I am not
thinking of atoms at all -- and neither is email.header.decode_header()! :-(
Until
Changes by Benjamin Peterson benja...@python.org:
--
priority: deferred blocker - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4136
___
Changes by Benjamin Peterson benja...@python.org:
--
priority: deferred blocker - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5410
___
Changes by Benjamin Peterson benja...@python.org:
--
priority: deferred blocker - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5692
___
New submission from Antoine Pitrou pit...@free.fr:
This happens e.g. when searching for refleaks (the -R option to regrtest).
./python -m test.regrtest test_logging test_logging
Could not find '/home/antoine/py3k/debug/Lib/test' in sys.path to remove it
test_logging
test_logging
test
Terry J. Reedy tjre...@udel.edu added the comment:
Bingo. I can also switch behaviors with Numlock (which I routinely have
engaged). Neither of us was crazy ;-) Thank you 'weeble'.
--
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
There seems to be a problem with ungetwch()
I tested Visual C++ Express 2008 and it looks like _ungetwch() only
keep 8 lower bits (like _ungetwch(x 255)). But it's a bug in
Microsoft library, not in Python code (I added some
New submission from Benjamin Peterson benja...@python.org:
Thanks! Fixed in r71205.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5687
Tim Wegener twege...@fastmail.fm added the comment:
I encountered this bug at my previous place of employment. I've since
moved on, so I don't have access to the code/setup where this originally
occurred.
I tried to setup a test case to reproduce this, but was thwarted by
another bug, probably
Alexandre Vassalotti alexan...@peadrop.com added the comment:
I have the following tests leaking on my Linux build of py3k:
test_structmembers leaked [102, 102, 102] references, sum=306
test_structmembers leaked [102, 102, 102] references, sum=306
test_structmembers leaked [102, 102, 102, 102]
Antoine Pitrou pit...@free.fr added the comment:
Strange, I don't see any leaks in test_structmembers here.
test_structmembers
beginning 9 repetitions
123456789
.
1 test OK.
[89785 refs]
This is with r71202 on a 64-bit build.
--
___
Python
1 - 100 of 111 matches
Mail list logo