[issue8903] Add module level now() and today() functions to datetime module

2010-06-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue8903] Add module level now() and today() functions to datetime module

2010-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I concur with the rejection. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-li

[issue8820] IDLE not launching correctly

2010-06-10 Thread Tal Einat
Tal Einat added the comment: Joseph, please mention which version of Python you are trying this with. If 2.6.4, please try with 2.6.5 to see if it still happens. -- nosy: +taleinat ___ Python tracker _

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-10 Thread Michael Curran
Michael Curran added the comment: The issue does not occure with Python 2.7 beta 1, but does occure in Python 2.7 beta 2. So, with this in mind, its probably more likely that it may have been caused by the following change: "- On Windows, ctypes does no longer check the stack before and after

[issue8968] token type constants are not documented

2010-06-10 Thread Éric Araujo
Éric Araujo added the comment: It is. Constants should be documented in the regular doc, not only by introspection or reading the source. See the doc for tokenize: “All constants from the token module are also exported from tokenize, as are two additional token type values”. Thanks for the r

[issue8961] compile Python-2.7rc1 on AIX 5.3 with xlc_r

2010-06-10 Thread Tamás Gulácsi
Changes by Tamás Gulácsi : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue8961] compile Python-2.7rc1 on AIX 5.3 with xlc_r

2010-06-10 Thread Tamás Gulácsi
Tamás Gulácsi added the comment: srid, You must be right, but the question is: How can I compile Python-2.7rc1 on AIX 5.3? I'd never said that this is a Python fault... I downloaded and extracted a fresh tarball, but the result is the same with the given ./configure call. So the problem is w

[issue8903] Add module level now() and today() functions to datetime module

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jun 10, 2010 at 10:37 PM, R. David Murray wrote: > > R. David Murray added the comment: > > I actually agree with Anatoly here.  I find it much more intuitive to do > >  import datetime > >   timestamp = datetime.now() > > than to do > >   timest

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-10 Thread Michael Curran
Michael Curran added the comment: Issue does not occure using Python 3.1.2. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue3129] struct allows repeat spec. without a format specifier

2010-06-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17624/issue3129.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue3129] struct allows repeat spec. without a format specifier

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attached patch works and passes the tests. The failing test was clearly wrong. I am still not sure that it is right to raise TypeError rather than struct.error on invalid offset in pack_into, but this is a separate issue. -- Added file: http:/

[issue3129] struct allows repeat spec. without a format specifier

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching an updated patch, but it fails one of the old tests. Need to investigate this some more. -- resolution: accepted -> Added file: http://bugs.python.org/file17624/issue3129.diff ___ Python track

[issue3129] struct allows repeat spec. without a format specifier

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Looks reasonable to me as well. Code patch applies cleanly, but tests don't. I'll get it ready for commit. -- assignee: -> belopolsky nosy: +belopolsky resolution: -> accepted versions: -Python 2.6, Python 2.7, Python 3.1 __

[issue8903] Add module level now() and today() functions to datetime module

2010-06-10 Thread R. David Murray
R. David Murray added the comment: I actually agree with Anatoly here. I find it much more intuitive to do import datetime timestamp = datetime.now() than to do timestamp = datetime.datetime.now() I always have to remember that 'now' is a class method, often after getting a "date

[issue8870] --user-access-control=force produces invalid installer on Vista

2010-06-10 Thread R. David Murray
Changes by R. David Murray : -- superseder: -> friendly errors for UAC misbehavior in windows installers ___ Python tracker ___ ___ Py

[issue8885] markerbase declaration errors aren't recoverable

2010-06-10 Thread Mark Nottingham
Mark Nottingham added the comment: Attaching test case. -- Added file: http://bugs.python.org/file17623/testcase_8885.py ___ Python tracker ___ __

[issue8885] markerbase declaration errors aren't recoverable

2010-06-10 Thread Mark Nottingham
Mark Nottingham added the comment: I'm using it from HTMLParser; try to parse a document with the DTD given when error is something like: def error(self, msg): self.errors += 1 and it will loop. -- ___ Python tracker

[issue850997] mbcs encoding ignores errors

2010-06-10 Thread STINNER Victor
STINNER Victor added the comment: New version of the patch: - decode_mbcs() calls raise_translate_exception() to set the error (in the previous patch, I'm not sure that the error was set) - include #8784 patch (tarfile uses utf-8 as the default encoding) - ctypes: use mbcs is strict mode ins

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file17621/issue8965-test-1.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Sorry for extra traffic. I thought my patch introduced an indentation error, but it looks like you truly don't check sys.getfilesystemencoding() output if not on darwin. -- ___ Python tracker

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17619/issue8965-test.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file17620/issue8965-test.diff ___ Python tracker ___ ___ Python-bugs-list

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2010-06-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: Since the function was also added to 2.6, the 2.6 What's New should mention it; added in rev81887. -- ___ Python tracker ___ ___

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file17619/issue8965-test.diff ___ Python tracker ___ ___ Python-bugs-list

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Nope. $ ./python.exe -m test.regrtest test_sys test test_sys failed -- Traceback (most recent call last): File "Lib/test/test_sys.py", line 877, in test_getfilesystemencoding self.assertEqual(fs_encoding, 'utf-8') AssertionError: b'utf-8\n' != 'utf-8

[issue850997] mbcs encoding ignores errors

2010-06-10 Thread STINNER Victor
STINNER Victor added the comment: I worked again on the patch. I opened new issues to prepare the new mbcs codec: - #8966: ctypes: remove implicit conversion between unicode and bytes - #8967: Create PyErr_GetWindowsMessage() function - #8969: Windows: use (mbcs in) strict mode to encode/deco

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread STINNER Victor
STINNER Victor added the comment: Hum. To avoid regression, we should maybe have a test with the C locale. @belopolsky: Can you try test_sys.patch on Mac OS X? -- Added file: http://bugs.python.org/file17617/test_sys.patch ___ Python tracker

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread STINNER Victor
STINNER Victor added the comment: Patch commited as r81883 (blocked in 3.1: r81884). > Can you add a sys module test for this issue? Ok, I added a test to test_sys: r81885 (blocked in 3.1: r81886). > I don't really know where Py_FileSystemDefaultEncoding > is set on Darwin. :-) In Python/bl

[issue8969] Windows: use (mbcs in) strict mode to encode/decode filenames, and enable os.fsencode()

2010-06-10 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +lemburg, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue8969] Windows: use (mbcs in) strict mode to encode/decode filenames, and enable os.fsencode()

2010-06-10 Thread STINNER Victor
New submission from STINNER Victor : mbcs encoding doesn't support surrogateescape (see #850997), and mbcs should only be used in strict mode to encode/decode filenames. os.fsencode() should also be enabled on Windows. First I tried to disable this function on Windows to avoid the evil mbcs en

[issue1402289] Allow mappings as globals (was: Fix dictionary subclass ...)

2010-06-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: -> patch review type: -> feature request versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___

[issue8968] token type constants are not documented

2010-06-10 Thread Ilya Sandler
New submission from Ilya Sandler : the token module defines constants for token types e.g NAME = 1 NUMBER = 2 STRING = 3 NEWLINE = 4 etc. These constants are very useful for any code which needs to tokenize python source, yet they are not listed in the documentation. Is this a documenta

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2010-06-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: Demo/embed/demo.c calls PySys_SetArgv(), which may be where some people are copying their code from. I've updated it to use PySys_SetArgvEx() and added an explanatory comment in rev. 81881. -- nosy: +akuchling ___ Py

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On the second thought, test_imp is not the right place to test this. Can you add a sys module test for this issue? -- stage: -> unit test needed ___ Python tracker ___

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Victor, Your patch works for me and makes sense even though I don't really know where Py_FileSystemDefaultEncoding is set on Darwin. :-) -- ___ Python tracker _

[issue8967] Create PyErr_GetWindowsMessage() function

2010-06-10 Thread STINNER Victor
New submission from STINNER Victor : PyErr_SetExcFromWindowsErrWithFilenameObject() and PyErr_SetFromErrnoWithFilenameObject() have the same code to read the localized error message. The code can be factorized in a new function PyErr_GetWindowsMessage(). About the patch: - free s_buf just af

[issue4113] Add custom __repr__ to functools.partial

2010-06-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4113] Add custom __repr__ to functools.partial

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I understand that the latest RFE in this issue is to provide a custom __repr__ to functools.partial. Something along the lines of class partial(functools.partial): def __repr__(self): return "functools.partial(%r, %s)" % (self.func,

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread STINNER Victor
STINNER Victor added the comment: Oooh. That's my fault. I introduced this regression in issue #8610 (commit r81190). Can you try attached patch please? The file system encoding is hardcoded to 'utf-8' on Mac OS X (it should not depend on the locale). -- keywords: +patch nosy: +haypo

[issue1516] make _ctypes work with non-gcc compilers

2010-06-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: -> feature request versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs

[issue3453] PyType_Ready doesn't ensure that all bases are ready

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: My knowledge may be out of date, but I thought multiple inheritance was only supported at the python level. If this is still the case, then no initialization check is needed. (You cannot get an uninitialized type at python level.) An extra defensive a

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: I haven't looked at the actual test yet, but the filesystem encoding on OSX is UTF-8. -- ___ Python tracker ___ __

[issue8963] test_urllibnet failure

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like your libc calls setlocale(LC_ALL, "") on error. This may or may not be right and not python's problem in any case. What is worth to investigate, however is why @run_with_locale decorator fails to restore the locale after it was modified

[issue8963] test_urllibnet failure

2010-06-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: The culprit seems to be test_bad_address. If I disable this test, or replace the bad URL by a good one, everything works fine. It seems that failing to resolve the domain name changes the current locale... -- ___ P

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-10 Thread STINNER Victor
STINNER Victor added the comment: Updated version of the utf-8 patch: - Use also UTF-8 for Windows CE - Update the documentation - Prepare the NEWS entry -- Added file: http://bugs.python.org/file17609/tarfile_windows_utf8-2.patch ___ Python track

[issue8963] test_urllibnet failure

2010-06-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, so what it boils down to is the following behaviour: >>> import locale, socket >>> sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >>> locale.getlocale(locale.LC_TIME) (None, None) >>> sock.connect(("invalidhost", 80)) Traceback (most recent call l

[issue1452] subprocess's popen.stdout.seek(0) doesn't raise an error

2010-06-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: -> feature request versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs

[issue8963] test_urllibnet failure

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: $ ./python.exe -m test.regrtest -unetwork test_urllibnet test_urllibnet 1 test OK. Also the arguments to strptime from reported error message work fine: >>> import time >>> time.strptime('Thu, 10 Jun 2010 19:03:39 GMT', '%a, %d %b %Y %H:%M:%S GMT') time.

[issue8963] test_urllibnet failure

2010-06-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What is your locale? $ locale LANG=fr_FR.utf8 LC_CTYPE="fr_FR.utf8" LC_NUMERIC="fr_FR.utf8" LC_TIME="fr_FR.utf8" LC_COLLATE="fr_FR.utf8" LC_MONETARY="fr_FR.utf8" LC_MESSAGES="fr_FR.utf8" LC_PAPER="fr_FR.utf8" LC_NAME="fr_FR.utf8" LC_ADDRESS="fr_FR.utf8" LC_TE

[issue8963] test_urllibnet failure

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Antoine, Would s/LC_TIME/LC_ALL/ in my patch fix your problem? I could not find an affected system, but I simulated the problem by adding locale.setlocale(locale.LC_ALL, "") call in the test. I think the patch is worth applying. It fixes the typo in t

[issue8924] Error in error message in logging

2010-06-10 Thread Vinay Sajip
Vinay Sajip added the comment: It seems like the logging message will be Unicode (as you have specified that it should be so) but the exception message will be string. Can you confirm whether this is the case? What type is the return value of Formatter.formatException for the specific excepti

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: FWIW, I agree with Lars: the main use of tar files under Windows is when they come from other systems. Windows users almost never generate tar files by themselves; they will generate zip, rar or 7z files instead. -- nosy: +pitrou

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-10 Thread STINNER Victor
STINNER Victor added the comment: > 2. Create backups for personal use. What? Really? I'm sure that all Windows users will use ZIP or maybe RAR, but never the geek choice. > 1. Download tar archives from a webpage (when no zip is supplied) for viewing > or extracting. Tarballs come from UNI

[issue8964] Method _sys_version() module Lib\platform.py does parse correctly IronPython 2.x version

2010-06-10 Thread Frederic Torres
New submission from Frederic Torres : Method _sys_version() module Lib\platform.py does parse correctly IronPython 2.x version The format of sys.version now start with a version number and ( 2.6.1 (IronPython 2.6.1 (2.6.10920.0) on .NET 4.0.30319.1) File: Lib\platform.py Function: def _sys

[issue8963] test_urllibnet failure

2010-06-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Would s/LC_TIME/LC_ALL/ in my patch fix your problem? As I explained, this wouldn't fix the later failures in test_strptime. -- ___ Python tracker __

[issue8963] test_urllibnet failure

2010-06-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: In setipaddr() in socketmodule.c, the following line appears to change the current locale when DNS lookup fails: error = getaddrinfo(name, NULL, &hints, &res); This is checked by making a call to setlocale(LC_TIME, NULL) before and after the aforemention

[issue8963] test_urllibnet failure

2010-06-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.6, Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8963] test_urllibnet failure

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > The patch is not sufficient, since other > failures can then occur if test_strptime gets > run after test_urllibnet This looks like a bug in support.run_with_locale decorator. It is described as #==

[issue8963] test_urllibnet failure

2010-06-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch is not sufficient, since other failures can then occur if test_strptime gets run after test_urllibnet: == ERROR: test_twelve_noon_midnight (test.test_strptime.Strptime12AMPMTests) --

[issue8958] 2.7rc1 tarfile.py: `bltn_open(targetpath, "wb")` -> IOError: Is a directory

2010-06-10 Thread Lars Gustäbel
Lars Gustäbel added the comment: Unfortunately I do not have access to an OS X machine. Is this problem specific to 2.7rc1 or are other versions affected as well? I thought the OS X filesystem was case sensitive ... -- nosy: +lars.gustaebel ___ Pyt

[issue8958] 2.7rc1 tarfile.py: `bltn_open(targetpath, "wb")` -> IOError: Is a directory

2010-06-10 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2010-06-10, at 1:06 PM, Lars Gustäbel wrote: > Is this problem specific to 2.7rc1 Yes. > or are other versions affected as well? Nope, at least ... I know that 2.6 doesn't have this problem. -- ___ Python

[issue8958] 2.7rc1 tarfile.py: `bltn_open(targetpath, "wb")` -> IOError: Is a directory

2010-06-10 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8963] test_urllibnet failure

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I still cannot reproduce the failure, but please, try the attached patch. -- keywords: +patch Added file: http://bugs.python.org/file17608/issue8963.diff ___ Python tracker _

[issue8963] test_urllibnet failure

2010-06-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Strangely, it also works here from the prompt: >>> import time >>> time.strptime('Thu, 10 Jun 2010 19:03:39 GMT', '%a, %d %b %Y %H:%M:%S GMT') time.struct_time(tm_year=2010, tm_mon=6, tm_mday=10, tm_hour=19, tm_min=3, tm_sec=39, tm_wday=3, tm_yday=161, tm_isds

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Is this check needed on darwin? Why not simply set fs_encoding = 'utf-8'? -- nosy: +flox ___ Python tracker ___ _

[issue8963] test_urllibnet failure

2010-06-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've reported the bug upstream at Mandriva: https://qa.mandriva.com/show_bug.cgi?id=59736 It would be nice to know whether other distributions with a Redhat lineage are affected. Can someone with such a distribution the code in msg107484? In the end, I'm not

[issue8963] test_urllibnet failure

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: What is your locale? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8963] test_urllibnet failure

2010-06-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > How do I enable `network' resource? Use the "-unetwork" flag to regrtest. -- ___ Python tracker ___ _

[issue8963] test_urllibnet failure

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: How do I enable `network' resource? I am getting $ ./python.exe -m test.regrtest test_urllibnet test_urllibnet test_urllibnet skipped -- Use of the `network' resource not enabled 1 test skipped: test_urllibnet Those skips are all expected on darwin.

[issue8963] test_urllibnet failure

2010-06-10 Thread Antoine Pitrou
New submission from Antoine Pitrou : This test failure just happened to me on a py3k checkout: test test_urllibnet failed -- Traceback (most recent call last): File "/home/antoine/py3k/debug/Lib/test/test_urllibnet.py", line 191, in test_data_header time.strptime(datevalue, dateformat)

[issue8958] 2.7rc1 tarfile.py: `bltn_open(targetpath, "wb")` -> IOError: Is a directory

2010-06-10 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue8964] Method _sys_version() module Lib\platform.py does parse correctly IronPython 2.x version

2010-06-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Frederic Torres wrote: > > New submission from Frederic Torres : > > Method _sys_version() module Lib\platform.py does parse correctly IronPython > 2.x version > > The format of sys.version now start with a version number and ( > 2.6.1 (IronPython 2.6.1

[issue8961] compile Python-2.7rc1 on AIX 5.3 with xlc_r

2010-06-10 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: FYI, I cannot reproduce this on AIX 5.1: bash-2.04$ i/bin/python ActivePython 2.7.0c1.0 (ActiveState Software Inc.) based on Python 2.7rc1 (r27rc1:81772, Jun 5 2010, 23:20:01) [C] on aix5 Type "help", "copyright", "credits" or "license" for more informatio

[issue8963] test_urllibnet failure

2010-06-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: This looks like a glibc bug to me. I suspect an unauthorized redhat change; I hope Ulrich Drepper would have never accepted a glibc that causes getaddrinfo to implicitly call setlocale - see http://sources.redhat.com/ml/libc-alpha/2004-03/msg00161.html You

[issue8963] test_urllibnet failure

2010-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: BTW, looking at test_bad_address(), I wonder why it puts extra dots in the url? The comment above it suggests that the intent is to use a name within RFC 2606 .invalid TLD. Not likely to be a problem in your case, but using made up TLD is not a good i

[issue8966] ctypes: remove implicit conversion between unicode and bytes

2010-06-10 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file17610/ctypes_conversion.patch ___ Python tracker ___ ___ Python-bugs-list

[issue8966] ctypes: remove implicit conversion between unicode and bytes

2010-06-10 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file17613/ctypes_tests.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8966] ctypes: remove implicit conversion between unicode and bytes

2010-06-10 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file17612/ctypes_s_set.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8966] ctypes: remove implicit conversion between unicode and bytes

2010-06-10 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file17611/ctypes_conversion.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue8966] ctypes: remove implicit conversion between unicode and bytes

2010-06-10 Thread STINNER Victor
New submission from STINNER Victor : ctypes doesn't have strict separation between bytes and characters, whereas Python3 splitted str/unicode of Python2 into bytes/str which a strict separation. The result is that sometimes it works (no error), sometimes it fails (the first time that the user

[issue8965] test_imp fails on OSX when LANG is set

2010-06-10 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : $ LANG=C ./python.exe -m test.regrtest test_imp test_imp test test_imp failed -- Traceback (most recent call last): File "Lib/test/test_imp.py", line 109, in test_issue5604 self.assertEqual(fs_encoding, 'utf-8') AssertionError: 'ascii' != 'utf-8' -

[issue8950] In getargs.c, make 'L' code raise TypeError for float arguments.

2010-06-10 Thread Mark Dickinson
Changes by Mark Dickinson : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Py

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-10 Thread Lars Gustäbel
Lars Gustäbel added the comment: Maybe I'm going out on a limb here, but I think we should again consider what tarfile users on Windows(!) actually use it for under which circumstances. The following list is probably not exhaustive, but IMHO covers 90%: 1. Download tar archives from a webpage

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: >> 7-zip encodes "à" (U+00e0) as 0x85 (1 byte), and "é" (U+00e9) as 0x82 (1 >> byte). I don't know this encoding. > > That's an old DOS code paged used in Europe: CP850 There is a good chance that they use it because it is the OEM code page on the system. I

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > My tests with 7-zip and WinRAR conviced me that it's not a good idea to use > utf-8 *by default* on Windows. But since mbcs doesn't support surrogateescape > error handler, we should restor

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-10 Thread STINNER Victor
STINNER Victor added the comment: My tests with 7-zip and WinRAR conviced me that it's not a good idea to use utf-8 *by default* on Windows. But since mbcs doesn't support surrogateescape error handler, we should restore the previous behaviour just for this encoding. tarfile_mbcs_errors.patch

[issue8962] IOError: [Errno 13] permission denied

2010-06-10 Thread Mark Dickinson
Mark Dickinson added the comment: Hi, Sorry, but this tracker is for reporting bugs in Python itself, not for getting help with using Python. You might try asking on one of the python mailing lists: http://mail.python.org/mailman/listinfo/python-list or http://mail.python.org/mailman/list

[issue8948] cleanup functions are not executed with unittest.TestCase.debug()

2010-06-10 Thread Michael Foord
Michael Foord added the comment: Committed revision 81875. Committed revision 81874. -- resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue8962] IOError: [Errno 13] permission denied

2010-06-10 Thread Caitlin Kavanaugh
New submission from Caitlin Kavanaugh : Hi, I'm new to python, so I'm sorry if my explanation is terribly concise, I'm trying to explain it with fairly limited terminology. I have been attempting to write data out to a file, yet I continually receive the error: IOError: [Errno 13] permission

[issue8939] Use C type names (PyUnicode etc;) in the C API docs

2010-06-10 Thread Mark Dickinson
Mark Dickinson added the comment: FWIW, I prefer PyLongObject* over PyLong. (Though I'm sure I'm guilty of writing PyLong in comments.) -- nosy: +mark.dickinson ___ Python tracker

[issue8950] In getargs.c, make 'L' code raise TypeError for float arguments.

2010-06-10 Thread Mark Dickinson
Mark Dickinson added the comment: Committed, r81873. Thanks for reviewing, Victor. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue8961] compile Python-2.7rc1 on AIX 5.3 with xlc_r

2010-06-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> tarek nosy: +tarek priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list ma

[issue8961] compile Python-2.7rc1 on AIX 5.3 with xlc_r

2010-06-10 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +srid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue8961] compile Python-2.7rc1 on AIX 5.3 with xlc_r

2010-06-10 Thread Tamás Gulácsi
New submission from Tamás Gulácsi : I'm trying to compile Python2.7rc1 on AIX 5.3 with the following call: FW=/home/kobe/kobed/tgulacsi/freeware CC='xlc_r -q64' CXX='xlC_r -q64' AR='ar -X64' NM='nm -X64' LD='ld -X64' \ LD_LIBRARY_PATH=$FW/lib:$LD_LIBRARY_PATH \ ./configure -C --without-gcc \

[issue8922] Improve encoding shortcuts in PyUnicode_AsEncodedString()

2010-06-10 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 10 juin 2010 14:02:34, vous avez écrit : > Commited in 3.2 (r81869), blocked in 3.1 (r81870). This commit introduced a regression: ISO-8859-15 was seen as an alias to ISO-8859-1 because the normalized string was truncated. Fixed in r81871 (blocked in

[issue8960] 2.6 README

2010-06-10 Thread Vojtěch Rylko
New submission from Vojtěch Rylko : In 2.6 README are this paragraphs from 2.5 README: A number of features are not supported in Python 2.5 anymore. Some support code is still present, but will be removed in Python 2.6. The following systems are still supported in Python 2.5, but support will

[issue8924] Error in error message in logging

2010-06-10 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue8885] markerbase declaration errors aren't recoverable

2010-06-10 Thread R. David Murray
R. David Murray added the comment: "This module is used as a foundation for the HTMLParser and sgmllib modules (indirectly, for htmllib as well). It has no documented public API and should not be used directly." So, #2 is not relevant unless you are talking about a docstring update or comment

[issue8922] Improve encoding shortcuts in PyUnicode_AsEncodedString()

2010-06-10 Thread STINNER Victor
STINNER Victor added the comment: Commited in 3.2 (r81869), blocked in 3.1 (r81870). -- Oops, I don't know why I wrote utf-16 and utf-32. I don't want to add them to the shortcuts. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-10 Thread STINNER Victor
STINNER Victor added the comment: I created a tarball (.tar.gz) on Windows with Python 3.1 (which uses "mbcs" encoding). With locale.getpreferredencoding() == 'cp1252', "é" (U+00e9) is encoded 0xe9 (1 byte) and "à" (U+00e0) as 0xe0 (1 byte). WinRAR displays correctly the file names, but 7-zip

  1   2   >