Senthil Kumaran orsent...@gmail.com added the comment:
On Sun, Oct 10, 2010 at 03:49:42PM +, R. David Murray wrote:
Does it also need a deprecation cycle?
I think, adding a deprecation cycle might just delay this change.
So, I would prefer if we make it in the 3.2 itself.
- This is not a
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Hello. I've been finding the way to determine whether
the process is running as service or not. Does this way
work? On my environment, True is returned. I hope False
will be returned in service environment.
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Oh, I forgot to mention this. I think it can be possible
to disable gui resource on regrtest.py when this function
returns False. (I hope #9931 also can be fixed by this)
--
___
Python
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I'm planning to try it on buildbot XP-5.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9055
___
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
--
dependencies: +test_issue_8959_b fails when run from a service
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9931
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I confirmed window_station_has_display_surfaces() returned False
on XP-5 which is running as service.
See
http://www.python.org/dev/buildbot/builders/x86%20XP-5%203.x/builds/1453/steps/test/logs/stdio
(It ran r85362)
--
STINNER Victor victor.stin...@haypocalc.com added the comment:
... So Antoine and Martin: which encoding do you prefer?
I still propose to drop the fsname encoding. Then this question goes away.
You mean that we should use the following encoding for the command line
arguments, environment
Changes by Fred L. Drake, Jr. fdr...@acm.org:
--
nosy: +fdrake
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10045
___
___
Python-bugs-list
Fred L. Drake, Jr. fdr...@acm.org added the comment:
Causing perfectly good Python 2 applications to degrade in performance is bad,
even if something else is available.
This should be fixed as a regression.
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
This should be fixed as a regression.
As far as I understand, this is not a regression. I don't think the cStringIO
code has changed in years.
--
___
Python tracker rep...@bugs.python.org
Fred L. Drake, Jr. fdr...@acm.org added the comment:
Ok, reading more carefully, it's not a regression. But it's certainly a bug,
and should be fixed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10045
Antoine Pitrou pit...@free.fr added the comment:
Ok, reading more carefully, it's not a regression. But it's certainly
a bug, and should be fixed.
Right. The patch looks straightforward, but I'm not familiar with the
cStringIO code. Could you take a look?
--
Fred L. Drake, Jr. fdr...@acm.org added the comment:
Assigning to myself for review.
--
assignee: - fdrake
keywords: +needs review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10045
___
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
I like this solution because it doesn't change a lot of things. I agree to
drop PYTHONFSENCODING because it looks like PYTHONFSENCODING introduced more
inconsistencies than it solved.
If you remove the
Martin v. Löwis mar...@v.loewis.de added the comment:
You mean that we should use the following encoding for the command line
arguments, environment variables and all filenames/paths:
- Mac OS X: utf-8
- Windows: unicode for command line/env, mbcs to decode filenames
No: unicode for
Martin v. Löwis mar...@v.loewis.de added the comment:
If you remove both, Python will get very poor grades for OS
interoperability on platforms that often deal with multiple
different encodings for file names.
Why that? It will work very well in such a setting, much better
than, say, Java.
R. David Murray rdmur...@bitdance.com added the comment:
If it's been reviewed on python-dev and the consensus was to turn it into an
error in 3.2, then I'm fine with it. But I'll bet we'll get at least a few bug
reports :)
--
___
Python tracker
Dev Player devpla...@gmail.com added the comment:
I believe that a 3rd party package is corrupt. Whether it is or not I don't
know. However whether or not a package is corrupt or not is not what I am
reporting as a bug.
I am reporting that python.exe crashes when I do help() modules.
In GUI
Antoine Pitrou pit...@free.fr added the comment:
There are now failures on the FreeBSD 7.2 buildbot:
==
ERROR: test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase)
Antoine Pitrou pit...@free.fr added the comment:
Apparently, the error message is:
gcc: ${LDFLAGS}: No such file or directory
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9437
___
Ronald Oussoren ronaldousso...@mac.com added the comment:
On 09 Oct, 2010,at 02:07 PM, Antoine Pitrou rep...@bugs.python.org wrote:
Antoine Pitrou pit...@free.fr added the comment:
For the command line, it would mean that we
introduced a new encoding: command line encoding, which will be
Martin v. Löwis mar...@v.loewis.de added the comment:
Notice that the error shows further up in the output, at the point where the
test was actually run:
gcc: ${LDFLAGS}: No such file or directory
--
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
There is one reason for not wanting to assume that the encoding is
always UTF-8: the user might access the system from a non-UTF8
terminal (such as when logging in with an SSH session from a system
not using UTF-8, or using an alternate
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:
If you remove both, Python will get very poor grades for OS
interoperability on platforms that often deal with multiple
different encodings for file names.
Antoine Pitrou pit...@free.fr added the comment:
The cause for the failure seems to be a bug in the dreaded _parse_makefile().
When you give it a Makefile such as:
LDFLAGS=-foo
PY_LDFLAGS=-bar
LDSHARED=$(CC) -shared ${LDFLAGS} $(PY_LDFLAGS)
It outputs the following variables:
{'CC': '',
Rafe H. Kettler rafe.kett...@gmail.com added the comment:
I stumbled upon this issue and I feel similarly about the documentation for a
particular module, ftplib. I think that the documentation is a bit too concise
and assumes that the reader in an expert in the protocol when the point of the
Rafe H. Kettler rafe.kett...@gmail.com added the comment:
I think Brian's second solution (the result is simply path2 when path1 is
empty or path2 is an absolute path?) is a strong one. If that were tacked on
towards the end it would add some clarity to the docs for people who will end
up
Radu Grigore radugrig...@gmail.com added the comment:
posixpath.py's comment says
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9921
___
___
Radu Grigore radugrig...@gmail.com added the comment:
Realizing I still don't know what os.join.path does, I looked at the source.
The comment in posixpath.py is:
# Ignore the previous parts if a part is absolute.
# Insert a '/' unless the first part is empty or already ends in '/'.
I find
Martin v. Löwis mar...@v.loewis.de added the comment:
Being pedantic about forcing some encoding onto things that don't
have an encoding won't really work out in practice. Dealing with
file names, OS environments, pipes and sockets is dirty work, so
I think we should go with the 80-20
Antoine Pitrou pit...@free.fr added the comment:
However, I completely fail to see the advantage that the
PYTHONFSENCODING variable has over the LANG variable. If it's
possible to set PTHONFSENCODING in some application, it surely
is also possible to set LANG (or LC_CTYPE), no? Setting the
New submission from Peter Gyorko gyor...@balabit.hu:
If I add a string to the response, which contains non-printable characters, the
output will not be parsed by the most of the XML parsers (I tried with XML-RPC
for PHP).
Here is my quick and dirty fix:
--- a/Lib/xmlrpclib.py
+++
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:
Being pedantic about forcing some encoding onto things that don't
have an encoding won't really work out in practice. Dealing with
file names, OS
Rafe H. Kettler rafe.kett...@gmail.com added the comment:
Radu, while the comments are not as clear for ntpath, the behavior is the same.
So, the comment you detailed from posixpath could be adapted to Windows by
replacing '/' with 'a separator' or something of that nature.
That said, the
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch which also adds 'cafile' and 'capath' keyword arguments to
urlopen().
--
stage: needs patch - patch review
Added file: http://bugs.python.org/file19185/httpcli+urllib.patch
___
Python
Changes by Radu Grigore radugrig...@gmail.com:
--
nosy: -rgrig
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9921
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com added the comment:
What I am saying is that if an extension module (one that provides non-python
code in a load module) is corrupt, then it can totally screw up Python's
internal bookkeeping, and there is nothing Python can do to protect itself
against
Antoine Pitrou pit...@free.fr added the comment:
Here is a new patch with doc updates for urllib.request.
--
Added file: http://bugs.python.org/file19186/httpcli+urllib2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9003
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5870
___
___
Fred L. Drake, Jr. fdr...@acm.org added the comment:
Committed with minor changes in r85366 (release27-maint branch).
--
keywords: -needs review
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
This patch should fix the test hanging issues witnessed on some machines.
--
Added file: http://bugs.python.org/file19187/httpcli+urllib3.patch
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
Anyway, I would like to leave the decision to the core developers.
You mean the core developers other than Stefan? ;-)
I don't have any objection to a patch for this problem, provided that that
patch is specifically targeted at FreeBSD 4,
STINNER Victor victor.stin...@haypocalc.com added the comment:
MvL - Windows: unicode for command line/env, mbcs to decode filenames
MvL No: unicode for filenames also.
Yes, I mean unicode for everything, but decode bytes data from the mbcs
encoding.
--
STINNER Victor victor.stin...@haypocalc.com added the comment:
MAL If you remove the PYTHONFSENCODING, then we have to reconsider
MAL removal of sys.setfilesystemencoding().
Plase, Marc, read my comments. You never consider technical problems,
you just propose to ensure that Python
Sandro Tosi sandro.t...@gmail.com added the comment:
Hello,
Here's a patch that implement what's request by Fredrik.
Regards,
Sandro
--
keywords: +patch
nosy: +sandro.tosi
Added file: http://bugs.python.org/file19188/issue3865-py3k.patch
___
Python
Martin v. Löwis mar...@v.loewis.de added the comment:
You can't possibly expect a user to switch to using UTF-8 for
all his/her applications just because Python needs this to
properly decode file names.
If the user hasn't switched to UTF-8, why would Python need that
to properly decode file
STINNER Victor victor.stin...@haypocalc.com added the comment:
MAL You can't just tell people to go with whatever encoding setup
MAL you prefer to make Python's guessing easier or more correct.
Python doesn't really *guess* the encoding, it just reads the encoding from the
locale.
What do you
STINNER Victor victor.stin...@haypocalc.com added the comment:
I guess LANG and LC_CTYPE can be used for other purposes
such as internationalization.
That's why there are different environement variables:
* LC_MESSAGES for i18n (messages)
* LC_CTYPE for the encoding
* LC_TIME for time and
Senthil Kumaran orsent...@gmail.com added the comment:
Yes, it does solve the problem of httplib and urllib2_localnet tests which
were hanging with the earlier patch on certain machines..
--
Added file: http://bugs.python.org/file19189/unnamed
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
issue9992.patch:
- Remove PYTHONFSENCODING environment variable
- Mac OS X: Use utf-8 to decode command line arguments
- Fix issue #9992 (this issue): attached test, locale_fs_encoding.py, pass
- Fix issue #9988
- Fix issue
Jesse Kaukonen jesse.kauko...@gmail.com added the comment:
This problem also occurs with our service at www.renderfarm.fi with Blender. I
tested the included patch, and can confirm that it works. I'm very interested
in the possibility of seeing this included in the official release ASAP!
STINNER Victor victor.stin...@haypocalc.com added the comment:
I think that issue9992.patch fixes also #4388 because it uses the same encoding
(FS encoding, utf8) on OSX to encode and to decode command line arguments.
--
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9991
___
___
Python-bugs-list mailing
STINNER Victor victor.stin...@haypocalc.com added the comment:
Oops, sorry. I'll withdraw my last patch.
Why? Your patch is useful to run a single test outside regrtest. But you should
not remove the hack on regrtest.py, only keep your patch on unittest/runner.py.
There are not exclusive.
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Thank you. I'll reattach the patch only for Lib/unittest/runner.py
--
Added file:
http://bugs.python.org/file19191/py3k_also_no_unicode_error_on_direct_test_run.patch
___
Python tracker
Dev Player devpla...@gmail.com added the comment:
On Mon, Oct 11, 2010 at 1:43 PM, R. David Murray
rep...@bugs.python.orgwrote:
R. David Murray rdmur...@bitdance.com added the comment:
Can you reproduce the problem using a pure Python 'corrupt' module?
--
When in python.exe, and
kai zhu kaizhu...@gmail.com added the comment:
np antoine :)
this 2 line patch will match socket.makefile() signature with open().
any chance it can b committed b4 python3.2 beta?
i rely on this patch in order to forward-port redis to python3
--
Added file:
R. David Murray rdmur...@bitdance.com added the comment:
Kai: could you write a unit test for this?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10041
___
Tangaroa jspru...@yahoo.com added the comment:
Python 3.1.2, Ubuntu (Lucid)
Caused by Control + Shift + Spacebar
Debugger output from terminal:
Traceback (most recent call last):
File /usr/bin/idle-python3.1, line 5, in module
main()
File /usr/lib/python3.1/idlelib/PyShell.py, line
kai zhu kaizhu...@gmail.com added the comment:
added unittest to patch
tested test.test_socket on debian colinux running under winxp
i get 2 unrelated errors (in both patched and unpatched version) from testRDM
and testStream about socket.AF_TIPC being unsupported:
pub...@colinux 3
kai zhu kaizhu...@gmail.com added the comment:
updated unittest patch
--
Added file:
http://bugs.python.org/file19195/socket.makefile.with.unittest.v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10041
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file13625/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2953
___
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file13638/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2953
___
Éric Araujo mer...@netwok.org added the comment:
Could the recently-added functools.lru_cache help here?
--
components: -Distutils
nosy: +eric.araujo
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2953
Éric Araujo mer...@netwok.org added the comment:
Rafe, thank you for your message and willingness to contribute. I feel what
you’re reporting is another bug: the original report talks about bytes/str
confusion only, not about the simplicity of the APIs. Could you open another
bug with
65 matches
Mail list logo