Marc-Andre Lemburg m...@egenix.com added the comment:
Martin v. Löwis wrote:
Martin v. Löwis mar...@v.loewis.de added the comment:
Your name will end up being partially escaped as surrogate:
'L\udcf6wis'
Further processing will fail
That depends on the further processing, no?
New submission from Torsten Marek shlo...@gmx.net:
The fixer for absolute - relative imports prefixes . to already relative
imports, i.e.
from . import something
will be converted into
from .. import something
if something.py exists. This of course will raise an exception on
Torsten Marek shlo...@gmx.net added the comment:
This file contains the same patch, but as a mercurial revision bundle.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8608
___
Torsten Marek shlo...@gmx.net added the comment:
Forgot the file name last time.
--
Added file:
http://bugs.python.org/file17197/fix-no-prefix-relative-import.bundle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8608
New submission from Nico nico.schloe...@gmail.com:
Hi,
I ran into a bit of an unexpected issue here with itertools.
I need to say that I discovered itertools only recently, and that maybe my way
of approaching the problem is not what I want to do. If you think this may be
the case, please
Mark Dickinson dicki...@gmail.com added the comment:
You'd be better off asking this on the python mailing list
http://mail.python.org/mailman/listinfo/python-list (or in some other forum);
this tracker is for reporting bugs in Python itself, not bugs in code written
in Python.
[The problem
Nico nico.schloe...@gmail.com added the comment:
Okay, thanks for the hint.
Closing as invalid.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8609
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
New version of my patch, which looks much better. Summary:
Issue #8603: Create os.environb and os.getenvb() on POSIX system.
os.unsetenv() encodes str argument using file system encoding and
surrogateescape error handler
STINNER Victor victor.stin...@haypocalc.com added the comment:
I think that fsencode() (and fsdecode()) should be specific to POSIX. I don't
know any good reason to encode a nice and correctly encoded unicode string to
the ugly MBCS encoding.
--
STINNER Victor victor.stin...@haypocalc.com added the comment:
Bytes program name problem should be splitted in two parts:
(a) subprocess.call([b'env']) and subprocess.call([b'env'], env={'PATH':
'/usr/bin'}): bytes program and unicode environ
(b) bytes program and bytes environ
Part (a)
Mark Dickinson dicki...@gmail.com added the comment:
Thanks for the fixes. The latest patch looks good to me.
Alexander, is it okay for me to commit this?
--
resolution: - accepted
___
Python tracker rep...@bugs.python.org
New submission from STINNER Victor victor.stin...@haypocalc.com:
On POSIX (but not on Mac OS X), Python3 calls get_codeset() to get the file
system encoding. If this function fails, sys.getfilesystemencoding() returns
None. PyUnicode_DecodeFSDefaultAndSize() fallbacks to utf-8 whereas
R. David Murray rdmur...@bitdance.com added the comment:
Fair enough. Thank you for your detective work, and hopefully someone will be
interested enough to pick this up again later.
--
status: open - languishing
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
Thanks, but this is a duplicate of issue 8553, which has already been fixed.
--
nosy: +r.david.murray
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - 2to3 breaks relative imports
Tomas Hoger tho...@redhat.com added the comment:
Can anyone move this to Stage: patch review (for the fix approach proposed in
msg90336)? Or does anyone have better idea on how to move this closer to final
fix or wontfix / reject? Thank you!
--
Alexander Belopolsky alexander.belopol...@gmail.com added the comment:
On May 4, 2010, at 7:27 AM, Mark Dickinson rep...@bugs.python.org
wrote:
Mark Dickinson dicki...@gmail.com added the comment:
Thanks for the fixes. The latest patch looks good to me.
Alexander, is it okay for me to
Mark Dickinson dicki...@gmail.com added the comment:
Hi Alexander,
I took the liberty of messing with your patch slightly; I didn't want to ask
you to make further changes since the patch was fine, and my messing was mostly
just to satisfy my own fussiness (only the first two items were
Mark Dickinson dicki...@gmail.com added the comment:
Re emacs:
C-c . python
should set a python 2.x-friendly indentation mode.
There's also a python-new style floating around somewhere on the web (not part
of emacs as standard), suitable for the 4-space indent style that's supposed to
be
STINNER Victor victor.stin...@haypocalc.com added the comment:
I opened a different issue to use surrogates in Python module path: #8611, but
the issue is not specific to surrogates (Python3 doesn't support locale
different than utf8 and an non-ASCII path (POSIX)).
--
Antoine Pitrou pit...@free.fr added the comment:
We could have a separate list storing the original bytes form of sys.path; this
list would be used by find_module() as long as Py_FileSystemDefaultEncoding
isn't initialized.
--
nosy: +pitrou
___
Antoine Pitrou pit...@free.fr added the comment:
Or find_module() could use wcstombs() as long as Py_FileSystemDefaultEncoding
is NULL.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8611
Antoine Pitrou pit...@free.fr added the comment:
Most of this should be solved if the patch in issue8550 gets accepted. As for
test_decode_certificate, it seems it isn't used anywhere, and could therefore
be deleted.
--
___
Python tracker
Gunnlaugur Thor Briem gunnlau...@gmail.com added the comment:
Replacing the message with its repr seems to me at least strongly preferable to
the current “hide it all” behavior. :)
Better, msg.encode('ascii', 'backslashreplace') does what repr does with
unencodable characters, but does not
Antoine Pitrou pit...@free.fr added the comment:
There's a patch in issue8550 to expose SSL contexts as first-class objects. It
allows you to create first your context object(s) and load certificates, then
drop privileges, then create sockets using this/these contexts.
In any case, resolution
Antoine Pitrou pit...@free.fr added the comment:
Can anyone move this to Stage: patch review (for the fix approach
proposed in msg90336)? Or does anyone have better idea on how to move
this closer to final fix or wontfix / reject? Thank you!
I stand by my opinion that adding another hack
Michael Foord mich...@voidspace.org.uk added the comment:
Sounds like a good solution - I'll look at this, thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8313
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
I have a patch implementation most of the point described in my first message.
I have to rework on it before submit it. The patch depends on other issues, and
I prefer to first fix all related issues.
--
New submission from Zaar Hai haiz...@gmail.com:
I'm using INIConfig class from iniparse
module(http://code.google.com/p/iniparse).
I've tried to use multiprocessing.Queue to propagate
configuration changes between the processes. However, INIConfig instances
have troubles being pushed through
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Very recently, issue8533 changed regrtest.py to use 'backslashreplace' when
printing errors. This issue seems very similar
--
nosy: +amaury.forgeotdarc, haypo
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
Precedence fixed in r80753 through r80756.
That still leaves open the problem of what flags should be set; however, we
should discuss this in a separate issue.
--
resolution: - fixed
stage: patch review - committed/rejected
New submission from Mark Dickinson dicki...@gmail.com:
In an effort to keep to one issue per tracker item, I'm pulling this issue out
of the comments on issue 8567.
Issue: if a Decimal operation raises several signals, and one or more of those
signals is trapped, how should that operation
STINNER Victor victor.stin...@haypocalc.com added the comment:
The example raises an AssertionError(u'\n- \ufffd+ \ufffd\ufffd') which is
converted to string by traceback.format_exception(). This function fails in
_some_str() on str(value) instruction. You can reproduce the error with:
STINNER Victor victor.stin...@haypocalc.com added the comment:
Very recently, issue8533 changed regrtest.py to use
'backslashreplace' when printing errors. This issue seems
very similar
Issue #8533 is not directly related because in this issue the error occurs
before writing the traceback
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Tue, May 4, 2010 at 8:34 AM, Mark Dickinson rep...@bugs.python.org wrote:
..
I took the liberty of messing with your patch slightly; I didn't want
to ask you to make further changes since the patch was fine, and my
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
assignee: belopolsky - mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Attached patch fixes _some_str() function of the traceback module: encode
unicode exception message to ASCII using backslashreplace error handler. ASCII
is not the best choice, but str(unicode(...)) uses also ASCII (the default
R. David Murray rdmur...@bitdance.com added the comment:
FWIW I agree with Antoine.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5753
___
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
You mean that socket.create_connection(), httplib (issue 3972) and ftplib
(issue 8594) should have used a different API to implement their
source_address option?
I'm not sure what you mean. The problem here is that you
Paul Moore p.f.mo...@gmail.com added the comment:
One of the tests in test_socket is checking that an attempt to connect to a
port with no server running gives socket.error. For that, we need a port that's
guaranteed to have no server present.
I think that one of the tests in test_httplib
Mark Dickinson dicki...@gmail.com added the comment:
[Some of the Alexander's questions about procedures aren't really related to
this issue; I've answered those offline. Here are the answers to the others.]
- initialize low to NULL, to match the Py_XDECREF(low) (could change
that
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
One of the tests in test_socket is checking that an attempt to connect to a
port with no server running gives socket.error. For that, we need a port
that's guaranteed to have no server present.
A good way to do this is to
Paul Moore p.f.mo...@gmail.com added the comment:
Thanks for the suggestions, I'll see if I can implement something based on them.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8576
___
Mark Dickinson dicki...@gmail.com added the comment:
Applied to trunk in r80758.
Do people want this to go into 2.6 as well? The patch would need to be
modified to produce a warning for floats instead of giving a TypeError (and the
tests would need to be modified to test for that warning).
Alexander Belopolsky alexander.belopol...@gmail.com added the comment:
On Tue, May 4, 2010 at 12:32 PM, Mark Dickinson rep...@bugs.python.org wrote:
Mark Dickinson dicki...@gmail.com added the comment:
Applied to trunk in r80758.
Do people want this to go into 2.6 as well?
Also, should
Jesús Cea Avión j...@jcea.es added the comment:
Someway, the closed state vanished.
--
nosy: -georg.brandl, r.david.murray
priority: normal -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8008
Jesús Cea Avión j...@jcea.es added the comment:
Uhmmm... My browser seems crazy.
--
nosy: +georg.brandl, r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8008
___
Mark Dickinson dicki...@gmail.com added the comment:
+1 for forward-porting/adapting relevant tests to py3k.
--
assignee: mark.dickinson - belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533
Michael Foord mich...@voidspace.org.uk added the comment:
Any idea where this path comes from? I can go spelunking through the code
myself to investigate.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8586
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8611
___
Michael Foord mich...@voidspace.org.uk added the comment:
Ok, so the cause of the bug is 'simple' - not sure what the best fix is.
When I run python from a freshly built py3k I have the following as sys.path:
['', '/dev/null/lib/python32.zip', '/compile/python-trunk3/Lib',
Barry A. Warsaw ba...@python.org added the comment:
Maybe you just want to relax the test in the except clause of
test.support.unlink()? Or change the test to
if error.errno not in (errno.ENOENT, errno.ENOTDIR)
?
--
___
Python tracker
Michael Foord mich...@voidspace.org.uk added the comment:
On trunk the definition of unlink is:
def unlink(filename):
try:
os.unlink(filename)
except OSError:
pass
:-)
Changing it as you suggest fixes the problem though. Ok to commit?
--
New submission from Mark Dickinson dicki...@gmail.com:
test_buffered_reader test_gzip is failing for me since r80720, on trunk on OS X
10.6.3:
==
ERROR: test_buffered_reader (__main__.TestGzip)
Antoine Pitrou pit...@free.fr added the comment:
Can you try the following:
f = open('LICENSE', 'rb')
f.flush()
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8614
___
Barry A. Warsaw ba...@python.org added the comment:
+1
--
assignee: barry - michael.foord
resolution: works for me - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8586
___
Mark Dickinson dicki...@gmail.com added the comment:
Yep, that's enough to trigger it:
Python 2.7b1+ (trunk:80760, May 4 2010, 19:27:27)
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type help, copyright, credits or license for more information.
f = open('LICENSE', 'rb')
[35032 refs]
Antoine Pitrou pit...@free.fr added the comment:
Ok, can you try the following patch then:
Index: Lib/gzip.py
===
--- Lib/gzip.py (révision 80760)
+++ Lib/gzip.py (copie de travail)
@@ -362,7 +362,7 @@
if self.mode ==
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I am attaching a py3k patch that adds new tests. Since there are no end user
visible changes, I don't believe a Misc/NEWS entry is needed. A commit message
may read:
Issue #1533: Tests only. Added tests for consistency
Mark Dickinson dicki...@gmail.com added the comment:
That fixes the failure.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8614
___
___
Sriram sriramrathinav...@yahoo.com added the comment:
Hi,
On second thoughts, it made more sense to validate pdb directly instead of
validating doctest's debugger.
I have also used few inputs, I got from irc chat at #python-dev room in writing
the test case. Thanks to them.
I have attached
Mark Dickinson dicki...@gmail.com added the comment:
Thanks, Antoine. Applied in r80762 through r80765.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - behavior
___
Python tracker rep...@bugs.python.org
Changes by Jean-Paul Calderone exar...@twistedmatrix.com:
--
stage: unit test needed - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5727
___
Giampaolo Rodola' g.rod...@gmail.com added the comment:
As per discussion on #python-dev we think it's better to proceed as follows:
for python 2.7 and 3.2:
- fix __getattr__ error message
- raise a DeprecationWarning if cheap inheritance is used and definitively
remove its support in the
Changes by cburroughs chris.burrou...@gmail.com:
--
nosy: +cburroughs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue812369
___
___
Changes by cburroughs chris.burrou...@gmail.com:
--
nosy: +cburroughs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7835
___
___
Python-bugs-list
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5727
___
___
Gregor Lingl gregorli...@users.sourceforge.net added the comment:
Here, just for your information, the appropriate unified diff (from the version
in 2.7b1 to the new submitted one.
--
keywords: +patch
Added file: http://bugs.python.org/file17207/turtle27b1_to_turtle27.diff
Changes by Brian Curtin cur...@acm.org:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8615
___
___
Python-bugs-list
New submission from Gregor Lingl gregorli...@users.sourceforge.net:
turtleDemo.py contains a string referring to the outdated xturtle.
Should be replaced according to the submitted diff.
Moreover I'd like to propose to add to demo-scripts to the Demo-directory,
namely tdemo_nim.py and
Changes by Gregor Lingl gregorli...@users.sourceforge.net:
Added file: http://bugs.python.org/file17209/tdemo_nim.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8616
___
Changes by Gregor Lingl gregorli...@users.sourceforge.net:
Added file: http://bugs.python.org/file17210/tdemo_round_dance.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8616
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Unfortunately, I feel that you are (again) too late here. 2.7 has already seen
its first beta release, so new features are not acceptable. You can still try
to petition acceptance of new features with the release manager.
--
Changes by Gregor Lingl gregorli...@users.sourceforge.net:
Added file: http://bugs.python.org/file17211/tdemo_scribble.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8616
___
Michael Foord mich...@voidspace.org.uk added the comment:
I get this same failure on Mac OS X 10.6.3 as well.
--
nosy: +michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8432
___
Gregor Lingl gregorli...@users.sourceforge.net added the comment:
As far as I remember, in the past there was a feature - freeze only with the
appearance of beta2?
Maybe I'm wrong. So there remains only to try to interpret the term new
feature appropriately, as all those features are already
Michael Foord mich...@voidspace.org.uk added the comment:
Committed revision 80771.
--
assignee: michael.foord - barry
resolution: accepted - works for me
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker
Gregor Lingl gregorli...@users.sourceforge.net added the comment:
I see, that Benjamin Peterson, the release manager, is on the nosy list now. So
please decide on this issue. If you need any supplementary information, I'll
try to provide it.
(The issue concerning the adoption of this version
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8616
___
___
Python-bugs-list
Shashwat Anand anand.shash...@gmail.com added the comment:
Adding unit-test for the patch
--
keywords: +patch
Added file: http://bugs.python.org/file17212/test_email.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7472
STINNER Victor victor.stin...@haypocalc.com added the comment:
Here is a patch for the first solution: display a fatal error if we are unable
to get the locale encoding. It does always exit with a fatal error if
nl_langinfo(CODESET) is not available (and Py_FileSystemDefaultEncoding is not
New submission from Dave Abrahams d...@boostpro.com:
http://docs.python.org/library/site.html#module-site mentions two variables
that don't appear in my Python 2.6.5 installation's site module:
PYTHONNOUSERSITE
New in version 2.6.
PYTHONUSERBASE
New in version 2.6.
--
assignee:
STINNER Victor victor.stin...@haypocalc.com added the comment:
Patch for the second solution (fallback to utf-8 on get_codeset() failure):
- create a subfunction initfsencoding() (Py_InitializeEx is already very long)
- hardcode the encoding to utf-8 if nl_langinfo(CODESET) is missing
-
STINNER Victor victor.stin...@haypocalc.com added the comment:
@loewis: So do you agree to add os.environb and os.getenvb()?
The documentation of os.environb and os.getenvb() in my last patch is very
short. I'm not inspired.
We told me on IRC to not use function annotations because annotation
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8610
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8610
___
___
Python-bugs-list mailing
New submission from Brian Curtin cur...@acm.org:
Some of the test_alias_* functions in test_winsound are failing with a
RuntimeError Failed to play sound when run on Server 2008 R2.
The sound from each test exists in the registry so the test doesn't end up
getting skipped. I'm guessing there
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8610
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
The downside of using backslashreplace (or repr, for that matter) is
that it does not preserve lengths, so the diff markers can get
misaligned. I find that an acceptable tradeoff, but 'replace' is
another option that preserves
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue665761
___
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4265
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Could you write a test? Use a fake file objects that raise (or not) an IOError
on close(), and then check that close() was closed on both files. There are 4
cases: input.close() raises or not an exception, output.close() raises or
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2091
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Same issue for y#:
y# (...) This variant on s# doesn’t accept Unicode objects, only bytes-like
objects.
s# (...) The string may contain embedded null bytes.
--
y* might mention that it accepts embedded null bytes.
--
grep
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also #8215.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8592
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also #8592.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8215
___
___
R. David Murray rdmur...@bitdance.com added the comment:
Comments on patch:
We prefer patches to be generated from the top level directory of the checkout,
so that it can be applied by doing 'patch -p0 xxx.patch' from the top level
directory without having to look in the patch file to see
R. David Murray rdmur...@bitdance.com added the comment:
These are references to environment variables. The markup marks them as such,
but this does not translate into HTML in a visible way. Without a text
description it is also left to guesswork as to how they function. The 2.7 docs
are
Shashwat Anand anand.shash...@gmail.com added the comment:
I was getting a feel that the inner if-test is not being used in any case.
Submitting the patch which removes the inner if test and adding a unittest.
--
___
Python tracker
Changes by Shashwat Anand anand.shash...@gmail.com:
Added file: http://bugs.python.org/file17215/encoders.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7472
___
Benjamin Peterson benja...@python.org added the comment:
Feature freeze begins at beta 1, therefore I'm rejecting this.
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8615
1 - 100 of 102 matches
Mail list logo