[issue4071] ntpath.abspath fails for long str paths

2008-10-09 Thread Jason Day
Changes by Jason Day [EMAIL PROTECTED]: -- title: ntpath.abspath can fail on Win Server 2008 (64-bit) - ntpath.abspath fails for long str paths ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4071

[issue4083] try statement in language reference not updated for v2.6

2008-10-09 Thread Davi Post
New submission from Davi Post [EMAIL PROTECTED]: Language Reference for the try statement does not show changes for v2.6, specifically the PEP 3110: Exception-Handling Changes. At least, the grammar should include the except ... as syntax.

[issue4084] Decimal.max(NaN, x) gives incorrect results when x is finite and long

2008-10-09 Thread Mark Dickinson
New submission from Mark Dickinson [EMAIL PROTECTED]: Here's a snippet from Python 2.6: from decimal import Decimal, getcontext getcontext().prec = 3 Decimal('NaN').max(Decimal('1234')) Decimal('sNaN234') The result here should be Decimal('1.23E+3')---the specification says that the result

[issue4085] 2.5.2 whatsnew document corrupts names, by having broken HTML, at least on the Web.

2008-10-09 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Your analysis is correct -- the HTML is invalid. However, this problem doesn't occur in new documentation since we don't use the system used until 2.5 anymore. -- resolution: - wont fix status: open - closed

[issue3741] DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an exception

2008-10-09 Thread Christian Boos
Christian Boos [EMAIL PROTECTED] added the comment: Hit the same issue, which is actually only a typo, as self.__path is used nowhere. diff -r 4d10dcbd5f63 Lib/distutils/msvc9compiler.py --- a/Lib/distutils/msvc9compiler.pyThu Oct 09 11:19:40 2008 +0200 +++ b/Lib/distutils/msvc9compiler.py

[issue1905] PythonLauncher not working correctly on OS X 10.5/Leopad

2008-10-09 Thread The Lawnmower man
The Lawnmower man [EMAIL PROTECTED] added the comment: Sorry, but I still have the same problem as Kevin Walzer and I can't understand the solution proposed by Ronald Oussoren. Where is the patch? How can I install it? What I am supposed to do? Thank you very much! -- nosy:

[issue4086] support %z format in time.strftime and _strptime?

2008-10-09 Thread Skip Montanaro
New submission from Skip Montanaro [EMAIL PROTECTED]: While responding to a c.l.py question just now I discovered that numeric timezone offsets don't appear to be supported by either the time.strftime function or the _strptime module. I noticed on my Mac's strftime(3) man page that it supports

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: I build the installation myself and used make altinstall, too. Even the latest checkout of the 2.6 branch fails to print the site information. $ ./configure ... $ make ... $ ./python -m site $ ./python -m platform

[issue4075] Use WCHAR variant of OutputDebugString

2008-10-09 Thread Ulrich Eckhardt
Ulrich Eckhardt [EMAIL PROTECTED] added the comment: Roumen, just and explanation on the TCHAR/WCHAR/CHAR issue under win32... In the old days, DOS/Windows was built with 8-bit characters using codepages. So functions like CreateFile() took a char string that used the current local codepage as

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Platform? It works fine for me (system python is 2.5, local python is trunk - the tildes aren't actually in the printout, I subbed them in for my home directory): ~/devel/python$ python -m site sys.path = [ '~/devel/python',

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Platform? It works fine for me (system python is 2.5, local python is trunk - the tildes aren't actually in the printout, I subbed them in for my home directory): ~/devel/python$ python -m site sys.path = [ '~/devel/python',

[issue4075] Use WCHAR variant of OutputDebugString

2008-10-09 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: Which CE version ? Is the patch required for previous/next CE version ? If the CE can't work with char why the compiler don't threat strings as wide characters always ? -- nosy: +rpetrov ___ Python

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Changes by Nick Coghlan [EMAIL PROTECTED]: ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4082 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Changes by Nick Coghlan [EMAIL PROTECTED]: ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4082 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4087] equality involving Decimals is not transitive; strange set behaviour results

2008-10-09 Thread Mark Dickinson
New submission from Mark Dickinson [EMAIL PROTECTED]: The Decimal module breaks transitivity of equality: Decimal(2) == 2 and 2 == float(2), but Decimal(2) != float(2). The Python set and dict implementations rely on transitivity of equality for correct operation. These two facts together

[issue4075] Use WCHAR variant of OutputDebugString

2008-10-09 Thread Ulrich Eckhardt
Ulrich Eckhardt [EMAIL PROTECTED] added the comment: Actually, even _Py_NegativeRefcount() passes a statically sized buffer with 300 chars. Other than that, there is get_ref_type() which uses one with 350 chars, but AFAICT, that's the largest one. Attached accordingly modified patch.

[issue3724] math.log(x, 10) gives different result than math.log10(x)

2008-10-09 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Mark, is some of the inaccuracy due to double rounding? No, I don't think so; at least, not in the sense of rounding the same value twice (with different precisions). I get similar results on my Core 2 Duo machine, which should be immune

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Changes by Nick Coghlan [EMAIL PROTECTED]: ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4082 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Hmm, that makes for absolutely identical base systems except that mine is i686 where yours is x86_64. What do you see if you stick some debugging messages at module level in site.py? (e.g. printing out __name__) (I'll be going offline shortly -

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: I already added a print __name__ right before the if __name__ == __main__ block. Python 2.5, trunk and 3.0 print: site __main__ while Python 2.6 just prints: site Christian ___ Python tracker [EMAIL

[issue4076] Cannot build non-framework tkinter Python on Mac OS X.5

2008-10-09 Thread Dan OD
Dan OD [EMAIL PROTECTED] added the comment: Confusion - apologies - please remove this report. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4076 ___ ___

[issue3727] poplib module broken by str to unicode conversion

2008-10-09 Thread Giampaolo Rodola'
Giampaolo Rodola' [EMAIL PROTECTED] added the comment: As for issue #3911 this is another module for which an actual test suite would be very necessary. -- nosy: +giampaolo.rodola ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: I'm setting up a 2.6 working area now - we'll see what's to be seen once I have that up and running. None of the runpy or pkgutil stuff has been touched in months though (since PEP 366 was implemented), so I'm a little puzzled how it could be

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Platform? It works fine for me (system python is 2.5, local python is trunk - the tildes aren't actually in the printout, I subbed them in for my home directory): ~/devel/python$ python -m site sys.path = [ '~/devel/python',

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: No joy. 32-bit Ubuntu here, and ./python -m site works fine on the 2.6 branch, as does python2.6 -m site after a make altinstall. Is this an installation you built yourself, or was it packaged by someone else?

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: It's an *installation* of Python 2.6.0 (r26:66714, Oct 2 2008) on Ubuntu Linux AMD64. The feature is broken on the release26-maint branch but it works fine on the trunk. -- versions: -Python 2.7

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Platform? It works fine for me (system python is 2.5, local python is trunk - the tildes aren't actually in the printout, I subbed them in for my home directory): ~/devel/python$ python -m site sys.path = [ '~/devel/python',

[issue4012] Minor errors in multiprocessing docs

2008-10-09 Thread David Ripton
David Ripton [EMAIL PROTECTED] added the comment: Also, two of the example code blurbs in that page still refer to the module as processing instead of multiprocessing. (Search for import processing to find them.) -- nosy: +dripton ___ Python tracker

[issue4085] 2.5.2 whatsnew document corrupts names, by having broken HTML, at least on the Web.

2008-10-09 Thread David Jones
New submission from David Jones [EMAIL PROTECTED]: Consider the web page: http://www.python.org/doc/2.5.2/whatsnew/acks.html (the problem appears throughout the whatsnew document, but that page happens to be short and have more than one instance). On my browser, Safari 3.1.2 on Intel OS X

[issue4088] Patch to implement a real poplib test suite

2008-10-09 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' [EMAIL PROTECTED]: poplib module is currently lacking a test suite which actually connects to a server and uses the POP3 class methods and facilities. Bug #3727, discovered just a bunch of days before the stable release of Python 3.0 is an example of how

[issue4089] linking python2.6.dll crash on windows xp

2008-10-09 Thread Manuel
New submission from Manuel [EMAIL PROTECTED]: On some machines, the application (makehuman, an open source software) crash, immediately, as soon the user try to double click on the exe. The problem happen with the version compiled using python 2.6, while the one compiled with 2.5 work fine. We

[issue4089] linking python2.6.dll crash on windows xp

2008-10-09 Thread Manuel
Manuel [EMAIL PROTECTED] added the comment: gdb output from one of our users: warning: LDR: LdrpWalkImportDescriptor() failed to probe python26.dll for its manifest, ntstatus 0xc0150002 Program received signal SIGSEGV, Segmentation fault. Program received

[issue4089] linking python2.6.dll crash on windows xp

2008-10-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' [EMAIL PROTECTED]: -- nosy: +giampaolo.rodola ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4089 ___ ___ Python-bugs-list

[issue3724] math.log(x, 10) gives different result than math.log10(x)

2008-10-09 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: +1 on a log2 function, especially one that has been generalized to work with long integers. It would help with the numbits problem that comes-up all the time. ___ Python tracker [EMAIL PROTECTED]

[issue4090] Documenting set comparisons and operations

2008-10-09 Thread Terry J. Reedy
New submission from Terry J. Reedy [EMAIL PROTECTED]: RefMan Expressions Comparisons has a subsection headed Comparison of objects of the same type depends on the type with entries for numbers, bytes, strings, tuples, lists, mappings, and most_other (compared by id). Sets (and dict views) are

[issue4087] equality involving Decimals is not transitive; strange set behaviour results

2008-10-09 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: There are two issues involved: 1. documenting set behavior 2. what to do, if anything, about Decimals and other numbers Since users are free to create similar problems, and since sets are missing from the Reference section on comparisons, I

[issue4087] equality involving Decimals is not transitive; strange set behaviour results

2008-10-09 Thread Facundo Batista
Facundo Batista [EMAIL PROTECTED] added the comment: (Ok, remember that I'm not a numeric guy before start hitting me, :p ) I think that if we have Decimal(1)==1, and 1==1.0, to have Decimal(1)==1.0. We always rejected comparison with unsupported types, but having this situation, I'd propose

[issue4087] Document the effects of NotImplemented on == and !=

2008-10-09 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Recommend not doing anything about decimals and other numbers. What you're seeing is a predictable consequence of NotImplemented being returned by some but not all cross type comparisons. IMO, it is perfectly reasonable that both decimals

[issue4090] Documenting set comparisons and operations

2008-10-09 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: I don't think this is necessary. The ordering operators for sets are already documented to mean subset/superset comparisons. Will look at it a bit more and possibly add a parenthetical note reminding people that superset/superset are not

[issue4087] Document the effects of NotImplemented on == and !=

2008-10-09 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: If Decimal(2) == float(2) were to raise an error, set([Decimal(2), float(2)]) would fail, as I would argue it ought to, and the set anomalies would disappear. -- assignee: georg.brandl - priority: low - normal

[issue4072] build_py support for lib2to3 is stale

2008-10-09 Thread Thomas Heller
Changes by Thomas Heller [EMAIL PROTECTED]: -- nosy: +theller ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4072 ___ ___ Python-bugs-list mailing list

[issue4073] distutils build_scripts and install_data commands need 2to3 support

2008-10-09 Thread Thomas Heller
Changes by Thomas Heller [EMAIL PROTECTED]: -- nosy: +theller ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4073 ___ ___ Python-bugs-list mailing list

[issue4091] python dll not installed in windows system directory

2008-10-09 Thread Thomas Heller
New submission from Thomas Heller [EMAIL PROTECTED]: Python 2.6 final and Python 3.0 rc1 do NOT install the python dlls into the windows system directory, even when installing 'for all users' and with admin rights. This causes problems with COM objects implemented in Python. Observed on

[issue4075] Use WCHAR variant of OutputDebugString

2008-10-09 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: If the CE can't work with char why the compiler don't threat strings as wide characters always ? I think this question is pointless - we don't have the power to change how CE works. You might question whether Ulrich's analysis of the issue

[issue4071] ntpath.abspath fails for long str paths

2008-10-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: I think attached patch fix_getfullpathname.patch will fix unicode issue at least. For ansi issue, I followed the manner of win32_chdir for now. After some investigation, GetFullPathNameA fails if output size is more than MAX_PATH even if

[issue4071] ntpath.abspath fails for long str paths

2008-10-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: I feel it's difficult to check this before invoking GetFullPathNameA. And error number via GetLastError() is vogus, sometimes 0, sometimes others. ___ Python tracker [EMAIL PROTECTED]

[issue4092] inspect.getargvalues return type not ArgInfo

2008-10-09 Thread Aaron Brady
New submission from Aaron Brady [EMAIL PROTECTED]: Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win 32 Type help, copyright, credits or license for more information. import inspect type( inspect.getargvalues( inspect.currentframe() ) ) type 'tuple' Docs say:

[issue2190] MozillaCookieJar ignore HttpOnly cookies

2008-10-09 Thread John J Lee
Changes by John J Lee [EMAIL PROTECTED]: -- nosy: +jjlee ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2190 ___ ___ Python-bugs-list mailing list

[issue4075] Use WCHAR variant of OutputDebugString

2008-10-09 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: My experience with windows CE ends with version about 3.1X. I couldn't remember wide character support on this version. PythonCE project use xxxA functions for CE .NET 4.20 platform. Pointless question is for compiler flags and is not related

[issue4076] Cannot build non-framework tkinter Python on Mac OS X.5

2008-10-09 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/issue4076 ___

[issue4091] python dll not installed in windows system directory

2008-10-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The following lines in msi.py seem to be the cause of the change: #dlldir = PyDirectory(db, cab, root, srcdir, DLLDIR, .) #install python30.dll into root dir for now dlldir = root They were added by r61109: Bundle msvcr90.dll

[issue4094] Future statements Doc from 2.6 refers to 2.5

2008-10-09 Thread Martin Marcher
New submission from Martin Marcher [EMAIL PROTECTED]: http://docs.python.org/reference/simple_stmts.html#future-statements says this: The features recognized by Python 2.5 are absolute_import, division, generators, nested_scopes and with_statement. generators and nested_scopes are redundant

[issue4091] python dll not installed in windows system directory

2008-10-09 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: (And I thought that manifests and side-by-side assemblies were supposed to solve the DLL hell) I'm now convinced that they make things worse, to the degree that certain deployments that used to work cannot be longer made to work (e.g. the

[issue4094] Future statements Doc from 2.6 refers to 2.5

2008-10-09 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks for the report! Fixed in r66866. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4094

[issue4093] add gc/memory management tests to pybench

2008-10-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: I'm not sure whether pybench is the right tool for this. Note that pybench disables GC per default for exactly the reasons causing #4074 :-) pybench already has a --with-gc switch, so it's possible to benchmark with or without GC and see

[issue4075] Use WCHAR variant of OutputDebugString

2008-10-09 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Pointless question is for compiler flags and is not related with the OS. I don't think the compiler has any such flag that you might consider useful. Do you have a specific flag in mind? ___ Python

[issue4093] add gc/memory management tests to pybench

2008-10-09 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Note that pybench disables GC per default for exactly the reasons causing #4074 :-) I know, I was thinking to enable the GC only in the GC-specific test of course. The idea is to have a test stressing the GC heavily, such as the example code

[issue4071] ntpath.abspath fails for long str paths

2008-10-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Or, if PyArg_ParseTuple overflowed or GetFullPathNameA failed, (not check GetLastError() because it's vogus) try GetFullPathNameW like attached file quick_hack_for_getfullpathname.patch. This inverses flow if (unicode_file_names()) {

[issue4091] python dll not installed in windows system directory

2008-10-09 Thread Mark Hammond
Changes by Mark Hammond [EMAIL PROTECTED]: -- nosy: +mhammond ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4091 ___ ___ Python-bugs-list mailing list

[issue4071] ntpath.abspath fails for long str paths

2008-10-09 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto [EMAIL PROTECTED]: Added file: http://bugs.python.org/file11758/quick_hack_for_getfullpathname_v2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4071 ___

[issue4093] add gc/memory management tests to pybench

2008-10-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: I'll follow up on this next week. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4093 ___ ___

[issue1028088] Cookies without values are silently ignored (by design?)

2008-10-09 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: You haven't said what the specific problem is. Note that the SimpleCookie class really represents a set of cookies, and the Morsel class represents a single cookie. It seems that setting special value-less cookie-attributes like secure works:

[issue3975] PyTraceBack_Print() doesn't respect # coding: xxx header

2008-10-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Committed r66867, together with #2384. Thanks for your perseverance ;-) -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3975

[issue2384] [Py3k] line number is wrong after encoding declaration

2008-10-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Committed r66867. I had to considerably change the unit tests, because the subprocess output is not utf-8 encoded; it's not even the same as sys.stdout, because the spawned process uses a PIPE, not a terminal: on my winXP, the main

[issue4087] Document the effects of NotImplemented on == and !=

2008-10-09 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: I'll take up the doc fix for the current state of affairs. A change from returning NotImplemented to raising NotImplementedError would need be a separate feature request or PEP. Alternatively, we could decide to allow decimal/float

[issue4070] python tests failure if builddir sourcedir

2008-10-09 Thread Michael Mysinger
Michael Mysinger [EMAIL PROTECTED] added the comment: Just an FYI that I had an error in test_distutils that this patch fixed. I was not doing anything abnormal. Just building from the 2.6 source distribution, making a arch specific sub-directory, using ../configure, make, and then make test.

[issue1028088] Cookies without values are silently ignored (by design?)

2008-10-09 Thread Andres Riancho
Andres Riancho [EMAIL PROTECTED] added the comment: My problem, and the problem if the original bug reporter (sirilyan) is that the load method ignores names that don't have values. Quoting the original bug report: import Cookie q = Cookie.SimpleCookie(pie=good; broken; other=thing) q

[issue3448] Multi-process 2to3

2008-10-09 Thread Nick Edds
Nick Edds [EMAIL PROTECTED] added the comment: I had very little experience with the processing module prior to the creation of this patch, and because pool objects are listed last in the documentation, I did not read about them because I saw a way to achieve what I wanted using Process. But