[issue10063] file:// scheme will stop accessing via ftp protocol

2010-10-11 Thread Senthil Kumaran
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

[issue9055] test_issue_8959_b fails when run from a service

2010-10-11 Thread Hirokazu Yamamoto
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.

[issue9055] test_issue_8959_b fails when run from a service

2010-10-11 Thread Hirokazu Yamamoto
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

[issue9055] test_issue_8959_b fails when run from a service

2010-10-11 Thread Hirokazu Yamamoto
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 ___

[issue9931] test_ttk_guionly hangs on XP5

2010-10-11 Thread Hirokazu Yamamoto
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 ___

[issue9055] test_issue_8959_b fails when run from a service

2010-10-11 Thread Hirokazu Yamamoto
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) --

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread STINNER Victor
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

[issue10045] poor cStringIO.StringO seek performance

2010-10-11 Thread Fred L. Drake, Jr.
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

[issue10045] poor cStringIO.StringO seek performance

2010-10-11 Thread Fred L. Drake, Jr.
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

[issue10045] poor cStringIO.StringO seek performance

2010-10-11 Thread Antoine Pitrou
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

[issue10045] poor cStringIO.StringO seek performance

2010-10-11 Thread Fred L. Drake, Jr.
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

[issue10045] poor cStringIO.StringO seek performance

2010-10-11 Thread Antoine Pitrou
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? --

[issue10045] poor cStringIO.StringO seek performance

2010-10-11 Thread Fred L. Drake, Jr.
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 ___

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread Marc-Andre Lemburg
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

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread Martin v . Löwis
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

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread Martin v . Löwis
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.

[issue10063] file:// scheme will stop accessing via ftp protocol

2010-10-11 Thread R. David Murray
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

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2010-10-11 Thread Dev Player
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

[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

2010-10-11 Thread Antoine Pitrou
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)

[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

2010-10-11 Thread Antoine Pitrou
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 ___

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread Ronald Oussoren
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

[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

2010-10-11 Thread Martin v . Löwis
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

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread Martin v . Löwis
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

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread Marc-Andre Lemburg
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.

[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

2010-10-11 Thread Antoine Pitrou
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': '',

[issue4758] Python 3.x internet documentation needs work

2010-10-11 Thread Rafe H. Kettler
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

[issue9921] os.path.join('x','') behavior

2010-10-11 Thread Rafe H. Kettler
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

[issue9921] os.path.join('x','') behavior

2010-10-11 Thread Radu Grigore
Radu Grigore radugrig...@gmail.com added the comment: posixpath.py's comment says -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9921 ___ ___

[issue9921] os.path.join('x','') behavior

2010-10-11 Thread Radu Grigore
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

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread Martin v . Löwis
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

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread Antoine Pitrou
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

[issue10066] xmlrpclib does not handle some non-printable characters properly

2010-10-11 Thread Peter Gyorko
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 +++

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread Marc-Andre Lemburg
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

[issue9921] os.path.join('x','') behavior

2010-10-11 Thread Rafe H. Kettler
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

[issue9003] urllib.request and http.client should allow certificate checking

2010-10-11 Thread Antoine Pitrou
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

[issue9921] os.path.join('x','') behavior

2010-10-11 Thread Radu Grigore
Changes by Radu Grigore radugrig...@gmail.com: -- nosy: -rgrig ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9921 ___ ___ Python-bugs-list

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2010-10-11 Thread R. David Murray
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

[issue9003] urllib.request and http.client should allow certificate checking

2010-10-11 Thread Antoine Pitrou
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

[issue5870] subprocess.DEVNULL

2010-10-11 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5870 ___ ___

[issue10045] poor cStringIO.StringO seek performance

2010-10-11 Thread Fred L. Drake, Jr.
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

[issue9003] urllib.request and http.client should allow certificate checking

2010-10-11 Thread Antoine Pitrou
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

[issue10052] Python/dtoa.c:158: #error Failed to find an exact-width 32-bit integer type (FreeBSD 4.11 + gcc 2.95.4)

2010-10-11 Thread Mark Dickinson
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,

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread STINNER Victor
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. --

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread STINNER Victor
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

[issue3865] explain that profilers should be used for profiling, not benchmarking

2010-10-11 Thread Sandro Tosi
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

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread Martin v . Löwis
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

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread STINNER Victor
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

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread STINNER Victor
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

[issue9003] urllib.request and http.client should allow certificate checking

2010-10-11 Thread Senthil Kumaran
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 ___

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread STINNER Victor
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

[issue9991] xmlrpc client ssl check faulty

2010-10-11 Thread Jesse Kaukonen
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!

[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

2010-10-11 Thread STINNER Victor
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

[issue9991] xmlrpc client ssl check faulty

2010-10-11 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9991 ___ ___ Python-bugs-list mailing

[issue8533] regrtest: use backslashreplace error handler for stdout

2010-10-11 Thread STINNER Victor
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.

[issue8533] regrtest: use backslashreplace error handler for stdout

2010-10-11 Thread Hirokazu Yamamoto
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

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2010-10-11 Thread Dev Player
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

[issue10041] socket.makefile(mode = 'r').readline() silently removes carriage return

2010-10-11 Thread kai zhu
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:

[issue10041] socket.makefile(mode = 'r').readline() silently removes carriage return

2010-10-11 Thread R. David Murray
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 ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2010-10-11 Thread Tangaroa
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

[issue10041] socket.makefile(mode = 'r').readline() silently removes carriage return

2010-10-11 Thread kai zhu
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

[issue10041] socket.makefile(mode = 'r').readline() silently removes carriage return

2010-10-11 Thread kai zhu
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

[issue2953] _zip_directory_cache untested and undocumented

2010-10-11 Thread Éric Araujo
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 ___

[issue2953] _zip_directory_cache untested and undocumented

2010-10-11 Thread Éric Araujo
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 ___

[issue2953] _zip_directory_cache untested and undocumented

2010-10-11 Thread Éric Araujo
É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

[issue4758] Python 3.x internet documentation needs work

2010-10-11 Thread Éric Araujo
É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