[issue3448] Multi-process 2to3

2008-10-03 Thread Collin Winter
Collin Winter [EMAIL PROTECTED] added the comment: You have yet to articulate a reason for that preference. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3448 ___

[issue3909] Building PDF documentation from tex files

2008-10-03 Thread Winfried Plappert
Winfried Plappert [EMAIL PROTECTED] added the comment: Now that the official PDF documentation is released for download on the website - including TOC and Index for every major document, the question arises: what is the difference between the 'official' built and my 'private' built since some of

[issue4024] float(0.0) singleton

2008-10-03 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Will it correctly distinguish between +0.0 and -0.0? -- nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4024 ___

[issue4025] C99 comments in Python 2.6 break build on AIX 6.1

2008-10-03 Thread David Jones
New submission from David Jones [EMAIL PROTECTED]: Doing a plan configure then make; the compilation breaks due to // style comments in a file called Objects/frameobject.c: cc_r -qlanglvl=extc89 -c -DNDEBUG -O -I. -IInclude -I./Include - DPy_BUILD_CORE -o Objects/frameobject.o

[issue1633863] AIX: configure ignores $CC

2008-10-03 Thread David Jones
David Jones [EMAIL PROTECTED] added the comment: This is still a problem for Python 2.6 on AIX 6.1. The simplest fix is to change «CC=cc_r» to «CC=${CC:-xlc_r}» but I have no idea how to go about changing the configure script. -- nosy: +drj versions: +Python 2.6

[issue4026] fcntl extension fails to build on AIX 6.1

2008-10-03 Thread David Jones
New submission from David Jones [EMAIL PROTECTED]: After hacking the configure script to work around the issues http://bugs.python.org/issue4025 and http://bugs.python.org/issue1633863 the build still fails: building 'fcntl' extension xlc_r -DNDEBUG -O -I.

[issue4025] C99 comments in Python 2.6 break build on AIX 6.1

2008-10-03 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Christian, I guess it's all fixed now? -- assignee: - christian.heimes nosy: +christian.heimes, georg.brandl resolution: - fixed status: open - pending ___ Python tracker [EMAIL PROTECTED]

[issue4027] wrong page index number in reference book of python documentation

2008-10-03 Thread Ray Wang
New submission from Ray Wang [EMAIL PROTECTED]: the Glossary's index number is 3, which should be 75, so people could not navigate Glossary by clicking the title showed in Table of Content, or index link which is beside the content in Evince. -- assignee: georg.brandl components:

[issue3932] HTMLParser cannot handle '' and non-ascii characters in attribute names

2008-10-03 Thread yanne
Changes by yanne [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11557/test.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3932 ___ ___

[issue3932] HTMLParser cannot handle '' and non-ascii characters in attribute names

2008-10-03 Thread yanne
yanne [EMAIL PROTECTED] added the comment: It seems that I managed to upload wrong test file the first time. This attached test should fail, I tested it with Python2.6 final both on Linux and Windows. Added file: http://bugs.python.org/file11690/test.py ___

[issue4023] convert os.getcwdu() to os.getcwd(), and getcwdu() to getcwd()

2008-10-03 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Le Friday 03 October 2008 04:44:13 Benjamin Peterson, vous avez écrit : You're patch looks pretty good. Could you write tests for it, though? My patch doesn't work, that's why I don't write unit test :-) - os.getcwdu() was correctly replaced

[issue3187] os.listdir can return byte strings

2008-10-03 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Le Friday 03 October 2008 03:45:44 Amaury Forgeot d'Arc, vous avez écrit : Here is a patch for Windows: (...) test_ntpath also runs functions with bytes. Which charset is used when you use bytes filename? I read somewhere that it's the

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Which charset is used when you use bytes filename? It's the ANSI code page, which is a system-wide admin-modifiable indirection to some real code page (changing it requires a reboot). In the API, it's referred to as CP_ACP. It's also related

[issue4019] 2.6 (final) uses old icons in Start Menu

2008-10-03 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Thanks for pointing that out. I rebuilt the icons file on my build machine, so future releases should pick up the new icons. -- nosy: +loewis resolution: - fixed status: open - closed ___ Python

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: You should also support bytearray() in ntpath: isinstance(path, (bytes, bytearray)) The most generic way of allowing all bytes-alike objects is to write: path = bytes(path) It raises a TypeError if `path` can't export a read-only

[issue3932] HTMLParser cannot handle '' and non-ascii characters in attribute names

2008-10-03 Thread Simon Cross
Simon Cross [EMAIL PROTECTED] added the comment: I've tracked down the cause to the .unescape(...) method in HTMLParser. The replaceEntities function passed to re.sub() always returns a unicode character, even when matching string s is a byte string. Changing line 383 to: return

[issue3187] os.listdir can return byte strings

2008-10-03 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: The most generic way of allowing all bytes-alike objects is to write: path = bytes(path) If you use that, any unicode may fails and the function will always return unicode. The goal is to get: func(bytes)-bytes func(bytearray)-bytes

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Le vendredi 03 octobre 2008 à 11:43 +, STINNER Victor a écrit : STINNER Victor [EMAIL PROTECTED] added the comment: The most generic way of allowing all bytes-alike objects is to write: path = bytes(path) If you use that, any

[issue4024] float(0.0) singleton

2008-10-03 Thread lplatypus
lplatypus [EMAIL PROTECTED] added the comment: No it won't distinguish between +0.0 and -0.0 in its present form, because these two have the same value according to the C equality operator. This should be easy to adjust, eg we could exclude -0.0 by changing the comparison if (fval == 0.0)

[issue4024] float(0.0) singleton

2008-10-03 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: We need maybe more hardcoded floats. I mean a cache of current float. Example of pseudocode: def cache_float(value): return abs(value) in (0.0, 1.0, 2.0) def create_float(value): try: return cache[value] except KeyError:

[issue4024] float(0.0) singleton

2008-10-03 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: Please use copysign(1.0, fval) == 1.0 instead of your memcpy trick. It's the cannonical way to check for negative zero. copysign() is always available because we have our own implementation if the platform doesn't provide one. We might also

[issue3187] os.listdir can return byte strings

2008-10-03 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: path=path is useless most of the code (unicode path), this code is faster if both cases (bytes or unicode)! if not isinstance(path, str): path = bytes(path) * a if b else c: unicode=0.756730079651; bytes=1.93071103096 * if test:

[issue3758] make check suggest a testing target under GNU coding standards

2008-10-03 Thread Ralph Corderoy
Ralph Corderoy [EMAIL PROTECTED] added the comment: The patchcheck target isn't in .PHONY at the end of the file. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3758 ___

[issue4028] Problem compiling the multiprocessing module on sunos5

2008-10-03 Thread JB Robertson
New submission from JB Robertson [EMAIL PROTECTED]: Hello, there's some issues compiling the multiprocessing module on the SunOS I have here, where CMSG_LEN, CMSG_ALIGN, CMSG_SPACE and sem_timedwait are absent. $ uname -av SunOS xxx 5.9 Generic_117171-15 sun4u sparc SUNW,Sun-Fire-V440 it

[issue4018] for me installer problem on x64 Vista

2008-10-03 Thread Steve Lee
Steve Lee [EMAIL PROTECTED] added the comment: I spotted the problem on Vista Home Premium SP1 32bit As John indicates the problem with the 'all users' install is that it requires elevation to run as admin even if logged in as an administrator. That is rather non obvious (John suggests running

[issue4018] for me installer problem on x64 Vista

2008-10-03 Thread Steve Lee
Steve Lee [EMAIL PROTECTED] added the comment: The mozilla bug is https://bugzilla.mozilla.org/show_bug.cgi?id=371359 but looking at it now, especially comment 4, it's not much help. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4018

[issue4029] Documentation displays incorrectly in iexplore.

2008-10-03 Thread David W. Lambert
New submission from David W. Lambert [EMAIL PROTECTED]: I use IEXPLORE version 6.0.2900.2180.xpsp_sp2_gdr.-70227-2254CO without any known customizations and have observed 3 display problems. (And since I guess that the python html libraries generated the manuals, could these libraries be

[issue4030] msi installer does not requires UAC permission on Vista

2008-10-03 Thread Manatsawin Hanmongkolchai
New submission from Manatsawin Hanmongkolchai [EMAIL PROTECTED]: Hello, the Python 2.6 installer on Vista does not requires UAC permission thus does not work with install for All user option. The installer said: You do not have sufficient privilleges to completes the installation for all users

[issue4030] msi installer does not requires UAC permission on Vista

2008-10-03 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: See the Vista Note on http://www.python.org/download/releases/2.6/ Closing as won't fix. -- nosy: +loewis resolution: - wont fix status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue4022] 2.6 dependent on c:\python26\ on windows

2008-10-03 Thread Koen van de Sande
Koen van de Sande [EMAIL PROTECTED] added the comment: Have you tried restarting your machine after installing the Visual C++ runtime from Microsoft? These runtimes will sometimes only finish installing after a reboot. Also, putting them in System/System32 is not allowed by MSVCR90.dll,

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I've committed sys.setfilesystemencoding as r66769. Declaring it as a documentation issue now. Not sure whether it should remain a release blocker; IMO, the documentation can still be produced after the release. -- assignee: loewis -

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: Reducing priority to critical, it's just docs and tweaks from here. You should also support bytearray() in ntpath: isinstance(path, (bytes, bytearray)) No, you shouldn't. I changed my mind on this several times and in the end figured

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: Assigning to Amaury for Windows fix first. -- assignee: georg.brandl - amaury.forgeotdarc ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3187

[issue4031] 08 value popups an stdin error, no date handle allowed

2008-10-03 Thread patricio
New submission from patricio [EMAIL PROTECTED]: a = 08 print a Filestdin,line 1 a = 08 syntax error:invalid token (if I use 07, the 0 is supressed but it compiles display the 7) -- messages: 74258 nosy: pgimelli severity: normal status: open title: 08 value popups an stdin

[issue4031] 08 value popups an stdin error, no date handle allowed

2008-10-03 Thread Tim Gordon
Tim Gordon [EMAIL PROTECTED] added the comment: By prefixing a number with 0, you're actually using octal rather than decimal (i.e., only digits 0 to 7 are valid). For example, try: print 030 24 print 077 63 patricio wrote: New submission from patricio [EMAIL PROTECTED]: a = 08

[issue4031] 08 value popups an stdin error, no date handle allowed

2008-10-03 Thread Tim Gordon
Tim Gordon [EMAIL PROTECTED] added the comment: Whoops, I thought the tracker automatically removed quoted text! :z ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4031 ___

[issue4024] float(0.0) singleton

2008-10-03 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: I question whether this should be done at all. Making the creation of a float even slightly slower is bad. This is on the critical path for all floating point intensive computations. If someone really cares about the memory savings, it is

[issue4031] 08 value popups an stdin error, no date handle allowed

2008-10-03 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]: -- resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4031 ___

[issue2532] file that breaks 2to3 (despite being correct python)

2008-10-03 Thread Collin Winter
Collin Winter [EMAIL PROTECTED] added the comment: Fixed in r66775. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2532 ___

[issue3358] 2to3 Iterative Wildcard Matching

2008-10-03 Thread Collin Winter
Collin Winter [EMAIL PROTECTED] added the comment: Applied as r66775. I used the example file from issue2532 as test data. Thanks for the patch, Nick! -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue3260] fix_imports does not handle intra-package renames

2008-10-03 Thread Collin Winter
Changes by Collin Winter [EMAIL PROTECTED]: -- assignee: collinwinter - ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3260 ___ ___ Python-bugs-list

[issue1706863] Failed to build Python 2.5.1 with sqlite3

2008-10-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: I've committed fix_sqlite3_setup_error.patch in r66766. I think the problem disutils cannot recognize .dll.a as library on cygwin is another issue, so I'll open new tracker item. -- resolution: - fixed status: open - closed

[issue4032] disutils cannot recognize .dll.a as library on cygwin

2008-10-03 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto [EMAIL PROTECTED]: This issue is derived from issue1706863. -- components: Distutils messages: 74265 nosy: amaury.forgeotdarc, ghaering, jlt63, ocean-city, rpetrov, tan2, vitalyy2000 severity: normal status: open title: disutils cannot recognize

[issue4017] IDLE 2.6 broken on OSX (Leopard)

2008-10-03 Thread tommusic
Changes by tommusic [EMAIL PROTECTED]: -- nosy: +tommusic ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4017 ___ ___ Python-bugs-list mailing list

[issue3758] make check suggest a testing target under GNU coding standards

2008-10-03 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- status: closed - open ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3758 ___ ___ Python-bugs-list mailing

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Thanks for testing the non-Windows part of ntpath. Committed patch in r66777. Leaving the issue open: macpath.py should certainly be modified. -- assignee: amaury.forgeotdarc - ___ Python

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: FWIW, I don't see a need to change macpath.py -- it's only used for MacOS 9 and the occasional legacy app. OSX uses posixpath.py. -- resolution: - accepted ___ Python tracker [EMAIL PROTECTED]

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: Sorry Amaury, but there's another issue. test_ntpath now fails when run with -bb: == ERROR: test_expandvars (__main__.TestNtpath)

[issue4000] Additional 2to3 documentation updates

2008-10-03 Thread David W. Lambert
David W. Lambert [EMAIL PROTECTED] added the comment: http://docs.python.org/dev/3.0/library/reprlib.html Back ticks didn't become a part of my python repertoire. I suppose return repr(obj) # is correct replacement for return `obj` ___ Python tracker

[issue3255] [proposal] alternative for re.sub

2008-10-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto [EMAIL PROTECTED]: -- resolution: - duplicate status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3255 ___

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Committed r66779: test_ntpath now passes with the -bb option. It seems that the Windows buildbots do not set -bb. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3187

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: Thanks Amaury! On to Georg for doc tweaks. Summary: - all the os.path functions now work on bytes as well, on all platforms - only on Unix (but not OSX) do we recommend using bytes - os.getcwdu() no longer exists - os.getcwdb() returns

[issue3448] Multi-process 2to3

2008-10-03 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Because I would like to use lib2to3 without the complexity of multiple processes. That it is a good performance boost is excellent, but I don't think it should be a required part of using the library. ___

[issue3448] Multi-process 2to3

2008-10-03 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: I think it's reasonable to only enable multiprocessing if the adequate command-line option has been set. It's how `make` already works (next time you compile Python, try `make -jN` where N is your number of CPU cores). -- nosy: +pitrou

[issue4033] python search path - .pth recursion

2008-10-03 Thread jolleyjoe
New submission from jolleyjoe [EMAIL PROTECTED]: I have an a.pth file in dir_a with a line that says: dir_b In dir_b, I have a b.pth file that lists some eggs in dir_b: JCC-1.9-py2.5-linux-i686.egg lucene-2.3.2-py2.5-linux-i686.egg From http://www.python.org/doc/2.5.2/inst/search-path.html:

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I have a patch for macpath.py nonetheless. Tested on Windows (of course ;-) but all functions are pure text manipulation, except realpath(). It was much easier than ntpath.py. I also added tests for three functions which were not

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Amaury, you're patch looks good. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3187 ___ ___

[issue3187] os.listdir can return byte strings

2008-10-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Committed macpath.py in r66781. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3187 ___ ___

[issue2876] Write UserDict fixer for 2to3

2008-10-03 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: The patch looks very good over all. However, I'm not completely sure that 2to3 needs to give a warning on UserDict.UserDict instances. Wouldn't it be better to handle that with a py3k warning in UserDict?

[issue2876] Write UserDict fixer for 2to3

2008-10-03 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Also, I believe the variable initializations at the beginning of the transform method are unneeded. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2876

[issue4008] IDLE: checksyntax() doesn't support Unicode?

2008-10-03 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: @loewis: I guess that your locale is still UTF-8. On Linux (Ubuntu Gutsy) using env -i DISPLAY=$DISPLAY HOME=$HOME xterm to get a new empty environment, I get: $ locale LANG= LC_ALL= LC_CTYPE=POSIX LC_NUMERIC=POSIX LC_TIME=POSIX

[issue4023] convert os.getcwdu() to os.getcwd(), and getcwdu() to getcwd()

2008-10-03 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks for the patch. Reviewed and applied in r66782. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4023

[issue4034] traceback attribute error

2008-10-03 Thread Greg Hazel
New submission from Greg Hazel [EMAIL PROTECTED]: Unrelated to this bug, I would like to have the ability to remove the reference to the frame from the traceback object. Specifically so that the traceback object could be stored for a while without keeping all the locals alive as well. So,

[issue4035] Support bytes for os.exec*()

2008-10-03 Thread STINNER Victor
New submission from STINNER Victor [EMAIL PROTECTED]: os.exec*() functions doesn't support bytes if the program name doesn't use absolute path. The problem is that PATH is used to complete the full path but Python3 disallows bytes+str (which is a good thing!). Example: python -c import os;

[issue4036] Support bytes for subprocess.Popen()

2008-10-03 Thread STINNER Victor
New submission from STINNER Victor [EMAIL PROTECTED]: subprocess doesn't support bytes for the args argument. - On Windows, subprocess._execute_child() converts args to a string if it was a list - On UNIX, subprocess._execute_child() converts args to a list if it's a string If shell=True,

[issue4037] doctest.py should include method descriptors when looking inside a class __dict__

2008-10-03 Thread daaku
New submission from daaku [EMAIL PROTECTED]: doctest.py currently does not include doctests from method descriptors in a class. The patch is simple, in the _find function in class DocTestFinder: Original: # Recurse to methods, properties, and nested classes. if

[issue4015] [patch] make installed scripts executable on windows

2008-10-03 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: As a Windows user, I am not sure I would want this. A run command associated with .py makes all .py files executable. From a command prompt, which I suspect most Windows users never use, typing 'python' is not a big deal. Adding .bat files

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-03 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Using py3k trunk + fix_latin.diff: - compile(b'# coding: latin-1\nu = \xC7\n', 'dummy', 'exec') doesn't fail - test_pep3120.py is ok - but execute a ISO-8859-1 script fails: see attached iso.py Original Python3: $ python iso.py 'Bonjour ma

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-03 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: See also Lib/test/test_shlex.py: trunk is ok, but with fix_latin.diff the test fails. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3574 ___

[issue4001] 2to3 does relative import for modules not in a package.

2008-10-03 Thread Mark Hammond
Mark Hammond [EMAIL PROTECTED] added the comment: I must be going crazy, but I can't see r66707 in the trunk, the py3k branch, or anywhere else in the svn tree. Can you please lend me a clue-stick? ___ Python tracker [EMAIL PROTECTED]

[issue4001] 2to3 does relative import for modules not in a package.

2008-10-03 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Fri, Oct 3, 2008 at 7:39 PM, Mark Hammond [EMAIL PROTECTED] wrote: Mark Hammond [EMAIL PROTECTED] added the comment: I must be going crazy, but I can't see r66707 in the trunk, the py3k branch, or anywhere else in the svn tree. Can

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-03 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: It looks like the problem of fix_latin.diff is the decoding_state: it's set to STATE_NORMAL whereas current behaviour is to stay in state STATE_RAW. I wrote another patch which is a mix of case 1 (utf-8: just set tok-encoding) and case 2

[issue4038] py3k error in distutils file_copy exception handlers

2008-10-03 Thread Mark Hammond
New submission from Mark Hammond [EMAIL PROTECTED]: All the exception handlers i dustutils.file_utils._copy_file_contents() are of the form: |except os.error as e: |(errno, errstr) = e This fails to unpack the exception in py3k. I'm attaching a patch that uses exception attributes rather

[issue4027] wrong page index number in reference book of python documentation

2008-10-03 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: Which version of the Ref Manual is this supposed to be? By Evince do you mean the Gnome document viewer? http://www.gnome.org/projects/evince/ If so, are you trying to view a .pdf downloaded from python.org? If so, did you try viewing it with

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-03 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: But why does iso-8859-1 need to be treated as a special case? UTF-8 is special because it is the default encoding for source. But iso-8859-1 really shouldn't be special, IMO. Your patch does exactly what happens lower when set_readline()

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-03 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Sorry, I mis-spoke: your patch, Victor, doesn't change the state to NORMAL. But my worry still stands; why does iso-8859-1 need to be special-cased? It suggests to me that some more fundamental needs to be dealt with instead of just patching

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-03 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: @brett.cannon: I found it: ast.c used a hack for iso-8859-1! Since this hack introduces a bug (your compile(...) example), I prefer to remove it to simplify to code. The new patch just removes the hack in tokenizer.c and ast.c. It does also

[issue4029] Documentation displays incorrectly in iexplore.

2008-10-03 Thread David W. Lambert
David W. Lambert [EMAIL PROTECTED] added the comment: multiple underscores could be replaced by a gif. latex2html solves a bunch of font problems this way. I tried to dump IE but was warned it would break microsoft office, which I need for work. If you happen to know how to adjust the

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-03 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: After reading tokenizer.c 1000 times, I finally used grep: $ grep -l -i 'iso.8859.1' $(find -name *.c) ./Python/ast.c ~~~ WTF? ./Objects/unicodeobject.c ./Parser/tokenizer.c ./Modules/cjkcodecs/_codecs_iso2022.c ./Modules/expat/xmltok.c

[issue1040026] os.times() is bogus

2008-10-03 Thread David W. Lambert
David W. Lambert [EMAIL PROTECTED] added the comment: I don't know what is HZ, but if it's hertz then a division is necessary. total_clocks time = - clocks_per_second otherwise there's no hope. -- nosy: +LambertDW