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

2008-10-17 Thread Ray Wang
Ray Wang <[EMAIL PROTECTED]> added the comment: Thanks for your big efforts! ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mail

[issue4143] ast.Node objects do not have column number information

2008-10-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: The compiler package is related to ast.c. You can access that through the ast (or _ast) module. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker <[EM

[issue4143] ast.Node objects do not have column number information

2008-10-17 Thread Kevin Watters
New submission from Kevin Watters <[EMAIL PROTECTED]>: I see column number information in ast.c, but it's not accessible via the information by the Node objects returned by compiler.parse. -- components: Library (Lib) messages: 74948 nosy: kevinwatters severity: normal status: open titl

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2008-10-17 Thread Nat
Changes by Nat <[EMAIL PROTECTED]>: -- nosy: -njw23 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing list Unsubs

[issue4136] merge json library with simplejson 2.0.3

2008-10-17 Thread Bob Ippolito
Bob Ippolito <[EMAIL PROTECTED]> added the comment: http://codereview.appspot.com/7311 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2008-10-17 Thread Kevin Walzer
Changes by Kevin Walzer <[EMAIL PROTECTED]>: -- nosy: +wordtech ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2008-10-17 Thread Kevin Walzer
Changes by Kevin Walzer <[EMAIL PROTECTED]>: ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue4136] merge json library with simplejson 2.0.3

2008-10-17 Thread Bob Ippolito
Bob Ippolito <[EMAIL PROTECTED]> added the comment: I don't recall exactly why they aren't in the struct itself, it may not have worked with some compiler on some platform. It's not really a complete rewrite, the encoding path is largely the same and the tests haven't changed. Anyway, there i

[issue4113] functools.partial(), no __name__; wrong __doc__

2008-10-17 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Same in 3.0 -- nosy: +tjreedy ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Pytho

[issue4113] functools.partial(), no __name__; wrong __doc__

2008-10-17 Thread Terry J. Reedy
Changes by Terry J. Reedy <[EMAIL PROTECTED]>: -- components: +Library (Lib) -Extension Modules versions: +Python 2.7, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4104] Namespace inconsistency

2008-10-17 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: I consider the request invalid. Continue the example with B=A.B B The repr of an object cannot now and should not depend on the access path. =or= class C: pass class D: pass D C.D = D C.D Same comment. -- nosy: +tjreedy

[issue3723] Py_NewInterpreter does not work

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > Wouldn't it make more sense to move interpreter initialization things to > Py_NewInterpreter and call it from Py_InitializeEx? Can you propose a specific patch? I'm worried that doing so blindly introduces other bugs.

[issue3626] python3.0 interpreter on Cygwin ignores all arguments

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: IIUC, another error return value (besides -1) is PATH_MAX, meaning that the buffer would overrun; correct me if I'm wrong. If I'm not, I propose that they get handles similarly. In addition, it might be safer to compare to (size_t)-1 (I keep

[issue4136] merge json library with simplejson 2.0.3

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > Actually, if I remove those lines from the equivalent module in simplejson > it no longer works properly with Python 2.5.2. Why aren't the functions pointers in the structs itself? As a procedural note, it seems like this patch is a comp

[issue3435] trace.py tries to get coverage data from non Python files

2008-10-17 Thread Jerry Seutter
Changes by Jerry Seutter <[EMAIL PROTECTED]>: -- nosy: +jseutter ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing

[issue3723] Py_NewInterpreter does not work

2008-10-17 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: Sounds like a good plan, Benjamin -- nosy: +christian.heimes ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3723] Py_NewInterpreter does not work

2008-10-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Wouldn't it make more sense to move interpreter initialization things to Py_NewInterpreter and call it from Py_InitializeEx? ___ Python tracker <[EMAIL PROTECTED]>

[issue3723] Py_NewInterpreter does not work

2008-10-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: I think the patch goes in the right direction. But in addition, Py_NewInterpreter() has to call initstdio() between initmain() and initsite() (the same sequence as in Py_InitializeEx) Found by using the following command string in impo

[issue3626] python3.0 interpreter on Cygwin ignores all arguments

2008-10-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Updated patch, which checks the return value of wcstombs. Added file: http://bugs.python.org/file11823/cygwin_badprintf-2.patch ___ Python tracker <[EMAIL PROTECTED]>

[issue3664] Pickler.dump from a badly initialized Pickler segfaults

2008-10-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Committed r66963. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2008-10-17 Thread Don Dwiggins
New submission from Don Dwiggins <[EMAIL PROTECTED]>: Found on Windows, running Python 2.4.3. SMTP.login() and SMTP.sendmail set one of the attributes ehlo_resp or helo_resp to whatever the server responded (only if they're not already set). SMTP.quit() doesn't clear these attributes, so on the

[issue4141] Dis docs on CALL_FUNCTION a bit unclear

2008-10-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Thanks for the patch. Applied in r66962. -- nosy: +benjamin.peterson resolution: -> accepted status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4136] merge json library with simplejson 2.0.3

2008-10-17 Thread Bob Ippolito
Bob Ippolito <[EMAIL PROTECTED]> added the comment: Actually, if I remove those lines from the equivalent module in simplejson it no longer works properly with Python 2.5.2. File "/Users/bob/src/simplejson/simplejson/decoder.py", line 307, in __init__ self.scan_once = make_scanner(self)

[issue4136] merge json library with simplejson 2.0.3

2008-10-17 Thread Bob Ippolito
Bob Ippolito <[EMAIL PROTECTED]> added the comment: You're probably right, I don't remember what code I was using as a template for that. ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4136] merge json library with simplejson 2.0.3

2008-10-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: About the patch: are those lines really needed? +PyScannerType.tp_getattro = PyObject_GenericGetAttr; +PyScannerType.tp_setattro = PyObject_GenericSetAttr; +PyScannerType.tp_alloc = PyType_GenericAlloc; +PyScannerType.t

[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC

2008-10-17 Thread Koen van de Sande
Koen van de Sande <[EMAIL PROTECTED]> added the comment: In response to 74742: > This issue doesn't stop here, here's another situation: Python is compiled with MSVC9. A user has it and MSVC9 SP1 installed, which has a newer CRT version. If he builds site-packages, these files have an embedded m

[issue4136] merge json library with simplejson 2.0.3

2008-10-17 Thread Bob Ippolito
Bob Ippolito <[EMAIL PROTECTED]> added the comment: patch to r66961 of trunk is attached. -- keywords: +26backport, patch versions: +Python 2.7, Python 3.1 Added file: http://bugs.python.org/file11822/json_issue4136_r66961.diff ___ Python tracker <[EM

[issue4141] Dis docs on CALL_FUNCTION a bit unclear

2008-10-17 Thread David Turner
Changes by David Turner <[EMAIL PROTECTED]>: -- assignee: -> georg.brandl components: +Documentation nosy: +georg.brandl versions: +Python 2.7 ___ Python tracker <[EMAIL PROTECTED]> _

[issue4141] Dis docs on CALL_FUNCTION a bit unclear

2008-10-17 Thread David Turner
New submission from David Turner <[EMAIL PROTECTED]>: This patch improves them. -- files: dis-doc-patch.diff keywords: patch messages: 74928 nosy: novalis_dt severity: normal status: open title: Dis docs on CALL_FUNCTION a bit unclear Added file: http://bugs.python.org/file11821/dis-doc-

[issue4128] Performance regression in long division in 2.6

2008-10-17 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- resolution: -> wont fix status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4128] Performance regression in long division in 2.6

2008-10-17 Thread Fredrik Johansson
Fredrik Johansson <[EMAIL PROTECTED]> added the comment: > I propose to close this as "won't fix"; I'm not interested in 150ms > speed differences when dividing 10 digit numbers. Sure. (I care about differences like this, because they have a tendency to add up. But it's a minor issue, and a

[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: For some reason, the linker *does* generate manifest files for all the .pyds when I try it out. Should that worry me? When I delete them, it still can import them just fine. FWIW, with the patch alone, the manifest in .DLLs will still be nee

[issue4139] Major error in cmath routines

2008-10-17 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: This is not a bug, at least in the sense that the behaviour of Python 2.6 is intentional: asin has branch cuts from 1 to infinity and -1 to - infinity along the real axis. As explained by the note at the top of the cmath documentation, on

[issue1068268] subprocess is not EINTR-safe

2008-10-17 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: Ups, forgot a _no_intr around select.select Index: subprocess.py === --- subprocess.py (revisione 19645) +++ subprocess.py (copia locale) @@ -1178,7 +1178,7 @@

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Hmm. Perhaps icc shouldn't define __x86_64__ either, then? Can you propose a patch to fix that problem? ___ Python tracker <[EMAIL PROTECTED]> __

[issue4138] IDLE crashes in my Windows Vista

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Did you disable your personal firewall as instructed? -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3717] Py_InitModule* is still referenced in docs

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Committed as r66961. -- keywords: +needs review resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> _

[issue4139] Major error in cmath routines

2008-10-17 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: I'm pretty sure that Python 2.6 is correct and Python 2.5 is wrong. Python 2.6: >>> cmath.asin(2.0) (1.5707963267948966+1.3169578969248166j) >>> cmath.asin(2.0+(+1E-300j)) (1.5707963267948966+1.3169578969248166j) >>> cmath.asin(2.0+(-1E-300

[issue3723] Py_NewInterpreter does not work

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Here is a patch that fixed importexc.c. It consists of the following parts: - set m_size of the builtins module and the sys module to -1, indicating that these modules don't support repeated initialization. This should be reviewed; perhaps it

[issue4140] urllib2: request with digest auth through proxy fail

2008-10-17 Thread Jan-Klaas Kollhof
New submission from Jan-Klaas Kollhof <[EMAIL PROTECTED]>: When using a proxy to request URLs that require Digest Auth, a header similar to the following is sent to the server: Authorization: Digest ... uri="http://example.org/foobar/spam"; ... The server then responded with: HTTP/1.1 400 Bad

[issue4139] Major error in cmath routines

2008-10-17 Thread Christian Heimes
Changes by Christian Heimes <[EMAIL PROTECTED]>: -- assignee: -> marketdickinson components: +Extension Modules -Library (Lib) priority: -> critical versions: +Python 2.7, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]>

[issue4139] Major error in cmath routines

2008-10-17 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- nosy: +christian.heimes, marketdickinson ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4139] Major error in cmath routines

2008-10-17 Thread thor222
Changes by thor222 <[EMAIL PROTECTED]>: -- type: -> behavior ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing li

[issue4139] Major error in cmath routines

2008-10-17 Thread thor222
New submission from thor222 <[EMAIL PROTECTED]>: There's an error in the way cmath computes the inverse sine, cosine and tangent functions. Example: In 2.6: cmath.asin(2) returns 1.5707963267948966+1.3169578969248166j However, the answer should be 1.5707963267948966-1.3169578969248166j cmath.asi

[issue1068268] subprocess is not EINTR-safe

2008-10-17 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: Factorized try-except code, merged r65475 from 25-maint. Protetect std[in|out|err] read and write too. Added file: http://bugs.python.org/file11818/subprocess-retry-on-EINTR-std-in-out-err.diff ___ Python

[issue4128] Performance regression in long division in 2.6

2008-10-17 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: > I propose to close this as "won't fix" I agree. > I'm not interested in 150ms speed differences when dividing 10 digit numbers. I'm ok to close the ticket, but I'm also interrested to optimize Python. But the compiler option is not

[issue4138] IDLE crashes in my Windows Vista

2008-10-17 Thread Jianmin Xue
New submission from Jianmin Xue <[EMAIL PROTECTED]>: I just downloaded Python 3.0 RC1 today from python.org and installed in my Windows Vista. However when I tried to run IDLE, it crashed with error message popping up. Screen-shot is attached. Please let me know if any other information is nee

[issue3717] Py_InitModule* is still referenced in docs

2008-10-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Looks good to me. -- keywords: -needs review nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3717] Py_InitModule* is still referenced in docs

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Here is a patch that makes Demo/embed compile and run successfully. -- keywords: +needs review, patch nosy: +loewis Added file: http://bugs.python.org/file11816/embed.diff ___ Python tracker <[EMA

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

2008-10-17 Thread Winfried Plappert
Winfried Plappert <[EMAIL PROTECTED]> added the comment: Interesting: I reran the build of PDFs under Windows (XP) and it works like a charm! Everything is there, the TOC, the Index and the Contents. I have no idea why Ubuntus pdflatex decided to go on strike. Thanks a lot for all your work! ___

[issue2642] MSVCRT packing in Windows Installer (3.0a4)

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I'm closing this issue as out-of-date. Static linking is out of the question, as that will duplicate CRT global various in confusing and risky ways. Installing the CRTs into the Python directory is what Python 2.6 does, and it does not work

[issue4128] Performance regression in long division in 2.6

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The 2.5 build was done by VS 2003, with no PGO, and the 2.6 build was done with VS 2008, and it used profile-guided optimization. To understand why it behaves the way it behaves, you probably need to look at the respective machine code. I p

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

2008-10-17 Thread Winfried Plappert
Winfried Plappert <[EMAIL PROTECTED]> added the comment: Hi Georg, I tried to rebuilt the documentation from scratch (2.6 as well as 3.0rc1) and make fails with the command " \tableofcontents", which is part of the generated *.tex file. I will include the typescript output of the make command. Th

[issue4091] python dll not installed in windows system directory

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Committed as r66958, r66959, and r66960. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> _

[issue4128] Performance regression in long division in 2.6

2008-10-17 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: It may be that one of the builds was done with profile-guided optimization and the other was not. If you are interested in long division performance, you may also take a look at #3451. -- nosy: +loewis, pitrou ___

[issue3626] python3.0 interpreter on Cygwin ignores all arguments

2008-10-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I think cygwin_badprintf.patch needs to consider the case r==PATH_MAX; this happens when the conversion would need more than PATH_MAX bytes for the target buffer. In that case, I think it would be good enough to write "" into cfilename (using

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2008-10-17 Thread Matthew Barnett
Matthew Barnett <[EMAIL PROTECTED]> added the comment: Further to msg74203, I can see no reason why we can't allow duplicate capture group names if the groups are on different branches are are thus mutually exclusive. For example: (?Pa)|(?Pb) Apart from this I think that duplicate names sho

[issue4125] runtests.sh: use -bb flag of Python

2008-10-17 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: r66957. really. fer sher. -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3664] Pickler.dump from a badly initialized Pickler segfaults

2008-10-17 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: Amaury, please apply the patch and close the issue. Thanks! -- priority: deferred blocker -> release blocker ___ Python tracker <[EMAIL PROTECTED]>

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

2008-10-17 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Should be fixed now in r66955. Thanks for your patience! -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue4125] runtests.sh: use -bb flag of Python

2008-10-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Barry, did you *really* apply this change? I can't find it anywhere. r66950 does not contains runtests.sh: http://mail.python.org/pipermail/python-3000-checkins/2008-October/004752.html -- nosy: +amaury.forgeotdarc status: clo

[issue4137] update SIG web pages

2008-10-17 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: Distutils SIG pages contain largely outdated information. http://www.python.org/community/sigs/current/distutils-sig/ It would be good to replace CVS instructions with SVN, add wiki link, mark download page as "archived version" and add

[issue3664] Pickler.dump from a badly initialized Pickler segfaults

2008-10-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The patch is fine. -- nosy: +amaury.forgeotdarc resolution: -> accepted ___ Python tracker <[EMAIL PROTECTED]> ___