[issue4554] Missing make altframeworkinstall for Mac OS X

2008-12-05 Thread Kumar McMillan
Changes by Kumar McMillan <[EMAIL PROTECTED]>: -- nosy: +kumar303 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailin

[issue4509] bugs in bytearray with exports (buffer protocol)

2008-12-05 Thread gumpy
gumpy <[EMAIL PROTECTED]> added the comment: I've found that arrays from the array module have similar issues: >>> a = array.array('i', range(2)) >>> m = memoryview(a) >>> bytes(m) b'\x00\x00\x00\x00\x01\x00\x00\x00' >>> a.pop(0) 0 >>> bytes(m) b'\x01\x00\x00\x00\x01\x00\x00\x00' __

[issue4485] fast swap of "default" Windows python versions

2008-12-05 Thread Glenn Linderman
Glenn Linderman <[EMAIL PROTECTED]> added the comment: Ah yes, it could work as a front-end launcher, since # is a comment character for Python anyway, so all Pythons would ignore such a line. So that can be done completely independently of python itself, and installed separately, and used by pe

[issue4509] bugs in bytearray with exports (buffer protocol)

2008-12-05 Thread gumpy
gumpy <[EMAIL PROTECTED]> added the comment: Sorry, forgot to give this issue a more accurate title earlier. -- title: possible memoryview bug -> bugs in bytearray with exports (buffer protocol) ___ Python tracker <[EMAIL PROTECTED]>

[issue4555] Smelly exports

2008-12-05 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- priority: high -> normal ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-l

[issue4558] with_stdc89

2008-12-05 Thread Christian Heimes
New submission from Christian Heimes <[EMAIL PROTECTED]>: The patch adds a configure option --with-stdc89. It also fixes some edge cases in socketmodule.h and linuxaudiodev so all related modules can be build in c89 mode. I'm planning to add the configure option to the build bots in order to det

[issue4555] Smelly exports

2008-12-05 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: I just suggest that somebody should look into it. I neither know how critical the issue is nor how to change them. This bug report serves as a reminder. ___ Python tracker <[EMAIL PROTECTED]>

[issue4509] possible memoryview bug

2008-12-05 Thread gumpy
gumpy <[EMAIL PROTECTED]> added the comment: I found another related bug. In bytes_setslice, when the buffer is resized to a smaller size, a memmove happens regardless of whether the resize is successful or not. >>> b = bytearray(range(10)) >>> m = memoryview(b) >>> b[1:8] = b'X' Traceback (most

[issue4557] array('c') in python 3.0 produces error, doc says it is ok

2008-12-05 Thread jeff deifik
New submission from jeff deifik <[EMAIL PROTECTED]>: def char_sieve(): char_data = array('c') ... produces: File ".../prime.py", line 78, in char_sieve char_data = array('c') ValueError: bad typecode (must be b, B, u, h, H, i, I, l, L, f or d) However, http://docs.python.org/3.0/libra

[issue4556] cmp() function erroneously noted as gone in "What's New"

2008-12-05 Thread Mike Watkins
New submission from Mike Watkins <[EMAIL PROTECTED]>: What's new in 3.0 documentation says cmp() function is gone, yet it isn't: >>> sys.version_info; cmp(1,1); cmp(1,2); cmp(2,1) (3, 0, 0, 'final', 0) 0 -1 1 -- assignee: georg.brandl components: Documentation messages: 77093 nosy: geo

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-05 Thread jeff deifik
jeff deifik <[EMAIL PROTECTED]> added the comment: I fixed the code as follows: return str.join('',lis) I think it is readable, and I understand it. Thanks everyone for clarifying everything ___ Python tracker <[EMAIL PROTECTED]>

[issue4555] Smelly exports

2008-12-05 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Are you suggesting that the init* functions in Python 2.6 should not longer be exported? Why? And how? -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]> __

[issue4555] Smelly exports

2008-12-05 Thread Christian Heimes
New submission from Christian Heimes <[EMAIL PROTECTED]>: I just found about the smelly build target. It checks for smelly exports. $ make smelly [...] nm -p libpython2.6.a | \ sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \ asdl_int_seq_new asdl_seq_new init_ast init_

[issue4199] add shorthand global and nonlocal statements

2008-12-05 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Please review. -- keywords: +needs review stage: -> patch review type: -> feature request ___ Python tracker <[EMAIL PROTECTED]>

[issue4554] Missing make altframeworkinstall for Mac OS X

2008-12-05 Thread Christian Heimes
New submission from Christian Heimes <[EMAIL PROTECTED]>: From http://farmdev.com/thoughts/66/python-3-0-on-mac-os-x-alongside-2-6-2-5-etc-/ $ sudo make frameworkinstall But ... you're not done. There isn't an altframeworkinstall target so you will be overwriting your default python binary. I

[issue4426] UTF7 decoding is far too strict

2008-12-05 Thread Gabriel Genellina
Changes by Gabriel Genellina <[EMAIL PROTECTED]>: -- nosy: +gagenellina ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list

[issue4335] inspect.getsourcelines ignores last line in module

2008-12-05 Thread Gabriel Genellina
Changes by Gabriel Genellina <[EMAIL PROTECTED]>: -- nosy: +gagenellina ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list

[issue4552] Doc/tools/sphinxext not included in the 2.6.1 tarball

2008-12-05 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: This is a duplicate of issue 4551 I do *not* think that Doc/tools should include a complete sphinx checkout; doing "make checkout" is completely acceptable for anybody who wants to build the doc. However, sphinxext is different; this was fix

[issue4528] test_httpservers consistently fails on OS X

2008-12-05 Thread Martin Diers
Martin Diers <[EMAIL PROTECTED]> added the comment: A couple more notes: I am building using a fink installation: --prefix=/sw, in order to gain readline support. The only modules that are not installed are ossaudiodev and spwd. Next, I just did a build from a checkout of the r30 tag on svn. Be

[issue4528] test_httpservers consistently fails on OS X

2008-12-05 Thread Martin Diers
Martin Diers <[EMAIL PROTECTED]> added the comment: A couple more notes: I am building using a fink installation: --prefix=/sw, in order to gain readline support. The only modules that are not installed are ossaudiodev and spwd. Next, I just did a build from a checkout of the r30 tag on svn. Be

[issue1569356] sys.settrace cause curried parms to show up as attributes

2008-12-05 Thread Jean-Paul Calderone
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment: It would be great if this could be backported. ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4540] typo in a module describes utf-8 as uft-8

2008-12-05 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc <[EMAIL PROTECTED]>: -- assignee: -> amaury.forgeotdarc ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4537] webbrowser.UnixBrowser should use builtins.open

2008-12-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Merged the 2nd fix with r67602. -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4522] Module wsgiref is not python3000 ready (unicode issues)

2008-12-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The test should indeed be changed. You may want to use io.BytesIO instead. In any case this test looks like a standard usage of the library. Please make it as pleasant-looking as possible. ___ Pytho

[issue4488] Python Documentation not Newb Friendly

2008-12-05 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Yes, the new docs are much better. Methods are nicely identified in 2.6/3.0 docs that I checked. There is one category that is not: constants. For instance, the following is from the subprocess doc. "stdin, stdout and stderr specify the ex

[issue4553] Results from os.path.islink and os.stat S_ISLNK do not match

2008-12-05 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: The behavior is correct. You want os.lstat, not os.stat. http://docs.python.org/library/os.html#os.lstat -- nosy: +christian.heimes resolution: -> invalid status: open -> closed ___ Python track

[issue4553] Results from os.path.islink and os.stat S_ISLNK do not match

2008-12-05 Thread Nicholas Patterson
New submission from Nicholas Patterson <[EMAIL PROTECTED]>: See attached file, os.path.islink correctly identifies symlinks as symlinks, but S_ISLNK is not reporting them as such. -- components: None files: demo.txt messages: 77079 nosy: npatters severity: normal status: open title: Res

[issue4445] String allocations waste 3 bytes of memory on average.

2008-12-05 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Applied to the trunk in r67601. Will merge to other branches if the buildbots look okay. ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue2110] Implement __format__ for Decimal

2008-12-05 Thread Mark Dickinson
Changes by Mark Dickinson <[EMAIL PROTECTED]>: -- priority: -> high ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mai

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

2008-12-05 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: I'm closing this, for reasons already given. For the proposal to add log2, see issue 3366. -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> _

[issue3501] expm1 missing

2008-12-05 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: I'm absorbing this issue into issue 3366. -- resolution: -> duplicate status: open -> closed superseder: -> Add gamma function, error functions and other C99 math.h functions to math module ___

[issue3366] Add gamma function, error functions and other C99 math.h functions to math module

2008-12-05 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: There have been requests to add other C99 libm functions to Python: expm1 is requested in issue 3501, and log2 came up in the issue 3724 discussion. I'm absorbing those issues into this one. With these two, and the gamma and error functions

[issue4483] Error to build _dbm module during make

2008-12-05 Thread Leger
Leger <[EMAIL PROTECTED]> added the comment: This patch resolve the problem. Evidence with "make test" : ... test_dbm test_dbm_dumb test_dbm_gnu test_dbm_ndbm ... Many thanks Skip. You can close this bug I think. ___ Python tracker <[EMAIL PROTECTED]>

[issue2937] Incorrect rounding in floating-point operations with gcc/x87

2008-12-05 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Closing as invalid. -- resolution: -> invalid status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4552] Doc/tools/sphinxext not included in the 2.6.1 tarball

2008-12-05 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: In my opinion the tar balls should contain all necessary bits and pieces to build the docs yourself. It makes no sense to include the Doc/ folder w/o any means to use them. Let's include sphinxext and document the required versions of sphin

[issue4485] fast swap of "default" Windows python versions

2008-12-05 Thread Mark Tolonen
Mark Tolonen <[EMAIL PROTECTED]> added the comment: I see it as primarily useful in this transition period between 2.x and 3.0, since py3 scripts aren't backward compatible and I see both being installed for the few years. It could be a front-end launcher suitable for "ftype Python.File" that

[issue4552] Doc/tools/sphinxext not included in the 2.6.1 tarball

2008-12-05 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: Wait, should Doc/tools/sphinxext be included in the source tarball or not? I thought it was a documentation build artifact. If so, then we need to clean out the pycs it contains in a different way. In any case, the 3.0 tarballs should incl

[issue1814] Victor Stinner's GMP patch for longs

2008-12-05 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: I agree that this probably isn't right for core Python. But I think this is valuable work, and it would be nice to see this patch available and maintained somewhere, if anyone has the energy. I'm wondering whether the Sage folks would be i

[issue4552] Doc/tools/sphinxext not included in the 2.6.1 tarball

2008-12-05 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: Does it also affect Python 3.0? -- assignee: -> barry nosy: +barry, christian.heimes stage: -> test needed type: -> resource usage ___ Python tracker <[EMAIL PROTECTED]>

[issue4552] Doc/tools/sphinxext not included in the 2.6.1 tarball

2008-12-05 Thread Matthias Klose
New submission from Matthias Klose <[EMAIL PROTECTED]>: Doc/tools/sphinxext not included in the 2.6.1 tarball, but it is checked in. -- components: Build messages: 77067 nosy: doko priority: deferred blocker severity: normal status: open title: Doc/tools/sphinxext not included in the 2.6

[issue4461] parameters of PyLong_FromString() are not checked for NULL

2008-12-05 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Merged. Thanks for the report, Brian. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue4540] typo in a module describes utf-8 as uft-8

2008-12-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: On 2008-12-05 13:28, Amaury Forgeot d'Arc wrote: > Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: > > Attached patch ignores any Exception during module import. > Note that KeyboardInterrupt is not caught: it is not an Except

[issue1030250] distutils' dry-run wants to create some real build dirs

2008-12-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: Looks good. -- nosy: +lemburg stage: patch review -> commit review ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue826897] Proto 2 pickle vs dict subclass

2008-12-05 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- resolution: -> wont fix status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4522] Module wsgiref is not python3000 ready (unicode issues)

2008-12-05 Thread Felix Benner
Felix Benner <[EMAIL PROTECTED]> added the comment: The test uses StringIO. I don't understand the test enough to change that. If I understand the WSGI spec correctly then it would be the test that's wrong. ___ Python tracker <[EMAIL PROTECTED]>

[issue4551] The python 2.6.1 source distribution is missing Doc/tools/sphinxext

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: This was caused by a bug in the release script. Fixed in r67599. Thanks for the report! -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue4551] The python 2.6.1 source distribution is missing Doc/tools/sphinxext

2008-12-05 Thread Andreas Kupries
New submission from Andreas Kupries <[EMAIL PROTECTED]>: The directory Doc/tools/sphinxext is missing in the Python 2.6.1 source distribution. This breaks building the html help. The directory is present in the Python 2.6 source distribution. -- components: Installation messages: 77061

[issue4461] parameters of PyLong_FromString() are not checked for NULL

2008-12-05 Thread Mark Dickinson
Changes by Mark Dickinson <[EMAIL PROTECTED]>: -- versions: -Python 2.6, Python 2.7 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Pyth

[issue4461] parameters of PyLong_FromString() are not checked for NULL

2008-12-05 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: All tests pass with this patch. Committed to trunk, r67590. Will merge to 2.7, 3.0 and 3.1. ___ Python tracker <[EMAIL PROTECTED]> __

[issue4485] fast swap of "default" Windows python versions

2008-12-05 Thread Glenn Linderman
Glenn Linderman <[EMAIL PROTECTED]> added the comment: Since Python hasn't done that until now, it won't help much with the transition from 2to3. The earliest versions that could add that would be 3.1 and 2.7, it would seem, as it is a new fetaure. Perhaps it would be worth doing, in planning f

[issue4244] ihooks incompatible with absolute_import feature

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: ihooks is undocumented and deprecated, so I doubt anything will be done about that. -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue4510] ValueError for list.remove() not very helpful

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Suggested patch attached, handles remove() and index(). -- keywords: +patch nosy: +georg.brandl stage: needs patch -> patch review Added file: http://bugs.python.org/file12244/list-excs.diff ___ Pyth

[issue4457] __import__ documentation obsolete

2008-12-05 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Yes, the simple __import__/sys.modules idiom should be the suggested idiom until a proper function is provided in the standard library. -- nosy: +brett.cannon ___ Python tracker <[EMAIL PROTECTED]> <

[issue4481] Windows installer crash

2008-12-05 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Yes, just as one uses the x86 installer for 32-bit amd chips, like mine ;-) -- nosy: +tjreedy resolution: -> invalid status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue4509] possible memoryview bug

2008-12-05 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Please see patch at http://codereview.appspot.com/10049 -- keywords: +needs review, patch stage: needs patch -> patch review ___ Python tracker <[EMAIL PROTECTED]>

[issue1030250] distutils' dry-run wants to create some real build dirs

2008-12-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The third parameter to mkpath() is 'verbose', not 'dry_run'! Correction is trivial: Index: Lib/distutils/ccompiler.py === --- Lib/distutils/ccompiler.py (revision 67068) +

[issue4457] __import__ documentation obsolete

2008-12-05 Thread Mart Sõmermaa
Mart Sõmermaa <[EMAIL PROTECTED]> added the comment: Brett, don't you think the >>> import sys >>> __import__('x.y.z') >>> mod = sys.modules['x.y.z'] idiom should be recommended instead of/additionally to the lengthy getattr() one? ___ Python tracker <[EMAI

[issue4457] __import__ documentation obsolete

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Attached is a proposed rewrite of the __import__ documentation. -- keywords: +patch Added file: http://bugs.python.org/file12243/import-docs.diff ___ Python tracker <[EMAIL PROTECTED]>

[issue4549] A defect in - (Python3.0)

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks for reporting, there was already a comment in the source about this :) Fixed in r67594. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue4550] Deprecated python 2.x syntax in "HOWTO Use Python in the web"

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, fixed in r67593. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4511] Decorators should have an index entry

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: OK, I've added a back-link in r67591. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-b

[issue826897] Proto 2 pickle vs dict subclass

2008-12-05 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: James Stroud ran into this same issue with 2.5. Here is his 'ugly fix' for working with protocol 2 only. class DictPlus(dict): def __init__(self, *args, **kwargs): self.extra_thing = ExtraThingClass() dict.__init__(self, *args, **k

[issue928332] Python interpreter stalled on _PyPclose.WaitForSingleObject

2008-12-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: os.popen is now deprecated; the subprocess module does all this much better. -- nosy: +amaury.forgeotdarc resolution: -> wont fix status: open -> closed ___ Python tracker <[EMAIL PROTECTED]

[issue1215] Python hang when catching a segfault

2008-12-05 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: I'm in favour of just the doc change now. It's less work and we don't really need to disable that usage. ___ Python tracker <[EMAIL PROTECTED]> __

[issue965036] Fix for #777597 - socketmodule.c connection handling incorec

2008-12-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: A similar patch was applied 4 years ago, in r36739. -- nosy: +amaury.forgeotdarc resolution: -> out of date status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue4507] 3.0 test failure on Mac OS X 10.5.5

2008-12-05 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Closing as duplicate. -- resolution: -> duplicate status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4497] Compiler warnings in longobject.c

2008-12-05 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: > r65789 That should be r67589. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-

[issue4497] Compiler warnings in longobject.c

2008-12-05 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Fixed in r67588 (py3k), r65789 (release30-maint). None of the fixes apply to 2.x. -- resolution: -> fixed status: open -> closed versions: -Python 2.6, Python 2.7 ___ Python tracker <[EMAIL PROTE

[issue4550] Deprecated python 2.x syntax in "HOWTO Use Python in the web"

2008-12-05 Thread Jerry Chen
New submission from Jerry Chen <[EMAIL PROTECTED]>: For people who are following HOWTO guides verbatim, there are two types of Python 2.x'isms in "HOWTO Use Python in the web" (http://www.python.org/doc/3.0/howto/webservers.html): 1. ``print`` statements instead of functions. 2. Use of beloved b

[issue4511] Decorators should have an index entry

2008-12-05 Thread K. C. Wong
K. C. Wong <[EMAIL PROTECTED]> added the comment: My mistake for including 2.6. While having a link to an entry in the Glossary is a huge improvement, it comes about as a result of the index now covering all components of the Python documentation. I feel at the least, there should be a link wi

[issue4535] Build / Test Py3K failed on Ubuntu 8.10

2008-12-05 Thread Kandalintsev Alexandre
Kandalintsev Alexandre <[EMAIL PROTECTED]> added the comment: My results on ubuntu 8.10 x86(with debug features enabled) on Python 3.1a0 (py3k:67586, Dec 5 2008, 19:39:50): 298 tests OK. 23 tests skipped: test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_code

[issue3243] Support iterable bodies in httplib

2008-12-05 Thread Chris AtLee
Chris AtLee <[EMAIL PROTECTED]> added the comment: The attached patch implements this for python 2.7. It also adds support for iterable bodies in urllib2, where it is more generally useful. urllib2 enforces the presence of a Content-Length header in the request if the body is an iterable, where

[issue4549] A defect in - (Python3.0)

2008-12-05 Thread ZX
New submission from ZX <[EMAIL PROTECTED]>: "If a name is declared global, then all references and assignments go directly to the middle scope containing the module’s global names. Otherwise, all variables found outside of the innermost scope are read-only (an attempt to write to such a variable

[issue4506] 3.0 make test failures on Solaris 10

2008-12-05 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Mark> 1. What happens if you build with the '-ffloat-store' option to Mark>gcc? Doesn't quite work: % ./python Python 3.0 (r30:67503, Dec 5 2008, 09:48:42) [GCC 4.2.2] on sunos5 Type "help", "copyright", "credits" or

[issue3171] operator.*slice() should be deprecated in 2.6

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Documented as deprecated in r67581. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4548] OptionParser : Weird comportement in args processing

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: This is not a bug. By default, options in optparse take an argument -- therefore, the -y is taken as the argument to the -p option. Use e.g. add_option(..., action='store_true') to specify an option that doesn't take an argument. -- n

[issue4478] shutil.copyfile documentation

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed in r67580. If we want to start using things like :raises:, it will have to be in some coordinated fashion so that it doesn't occur in isolated places. -- resolution: -> fixed status: open -> closed _

[issue4511] Decorators should have an index entry

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: In the 2.6 and 3.0 docs, decorators do have an index entry, see http://docs.python.org/genindex-D.html. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue4517] improve __getattribute__ documentation

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I've changed "may bypass" to "generally bypasses". It doesn't happen for all methods, but that's an implementation detail. I've also added a glossary entry "special method" in r67579. -- resolution: -> fixed status: open -> closed __

[issue4517] improve __getattribute__ documentation

2008-12-05 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Yes to msg77021. However! I'll pin the difficulty specifically to the word "may". This cost me a lot of time. 1) Please change the phrasing you quoted to "... implicit special method lookup bypasses the __getattribute__() method even o

[issue4548] OptionParser : Weird comportement in args processing

2008-12-05 Thread Olivier Hervieu
New submission from Olivier Hervieu <[EMAIL PROTECTED]>: Hi guys.. i found something strange on the behavior of OptionParser If I have this sample code : import sys from optparse import OptionParser if __name__ == '__main__': parser = OptionParser() parser.add_option("-p", "--p", help

[issue4504] Doc/includes out of date

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, fixed in r67578. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4505] ob_size not removed from docs

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, fixed in r67578. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4547] Long jumps with frame_setlineno

2008-12-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Yes, target is 2.6.2 and up, 3.0.1 and up. -- versions: +Python 3.0 -Python 2.5, Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4336] Fix performance issues in xmlrpclib

2008-12-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson <[EMAIL PROTECTED]> added the comment: I think it would have been better to have endheaders() (and then perhaps _send_output()) deal with the non-string (i.e. filebuffer) case, so that endheaders(body) is semantically equivalent to endheaders(); send(body). The versio

[issue4536] SystemError if invalid arguments passed to range() and step=-1

2008-12-05 Thread Laszlo
Laszlo <[EMAIL PROTECTED]> added the comment: It is changed from PyErr_Clear() to Py_CLEAR(step) because in case someone else makes the same mistake of not checking for an error before calling validate_step() we do not want to hide the error. It is true that if used properly this part will not g

[issue1814] Victor Stinner's GMP patch for longs

2008-12-05 Thread STINNER Victor
Changes by STINNER Victor <[EMAIL PROTECTED]>: -- resolution: -> rejected status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4547] Long jumps with frame_setlineno

2008-12-05 Thread fboule
fboule <[EMAIL PROTECTED]> added the comment: Is it intended to be applied on Python 2.5.x and/or Python 2.6.x (and when)? The current Python 2.6.1 release does not have the fix. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4517] improve __getattribute__ documentation

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Isn't what you refer to covered by this paragraph and the following example: "In addition to bypassing any instance attributes in the interest of correctness, implicit special method lookup may also bypass the __getattribute__() method even of t

[issue4546] Small thingy in "What's New in Python 3.0"

2008-12-05 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: This is already fixed in SVN and will be upated with the next rebuild of the docs. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue4233] open(0, closefd=False) prints 3 warnings

2008-12-05 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: 2.6.1 is released. Should this issue be apply to 2.6.x or not? ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue1814] Victor Stinner's GMP patch for longs

2008-12-05 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: After many benchmarks, I realized that it's not a good idea to use GMP for the int (and long) integers because most integers are very small: less or equals than 32 bits (or 64 bits on a 64 bits CPU). GMP overhead is too big. See other propo

[issue4547] Long jumps with frame_setlineno

2008-12-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Attached patch is similar (it declares the variable as "unsigned char*") and adds a test. -- keywords: +needs review, patch nosy: +amaury.forgeotdarc stage: -> patch review Added file: http://bugs.python.org/file12240/frame_set

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

2008-12-05 Thread Muhammad Alkarouri
Muhammad Alkarouri <[EMAIL PROTECTED]> added the comment: Now that Python 2.6.1 is out, can we expect a new OS X installer built correctly? I think this is pretty important.. -- nosy: +malkarouri ___ Python tracker <[EMAIL PROTECTED]>

[issue4545] doctest seems to always fail on numpy.array2string

2008-12-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Doctest output scrupulously follows the output of an interactive session of python. On my machine: Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more

[issue4485] fast swap of "default" Windows python versions

2008-12-05 Thread Mark Tolonen
Mark Tolonen <[EMAIL PROTECTED]> added the comment: An extension to this idea: Support parsing #! lines in Windows and select the version of Python used. python.exe could examine: #!/usr/bin/python30 pattern match "python##", look in the registry to see if that version of python is installe

[issue4547] Long jumps with frame_setlineno

2008-12-05 Thread fboule
New submission from fboule <[EMAIL PROTECTED]>: This concerns a known bug in the frame_setlineno() function for Python 2.5.x and 2.6.x (maybe in earlier/later version too). It is not possible to use this function when the address or line offset in lnotab are greater than 127. The problem comes fr

[issue1675334] Draft implementation for PEP 364

2008-12-05 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: Withdrawn -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4536] SystemError if invalid arguments passed to range() and step=-1

2008-12-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: It's right that the overflow handling path is never never taken: If "step = PyNumber_Index(step)" succeeds, 'step' is (a subclass of) an int, and PyNumber_AsSsize_t cannot fail, not even on low memory conditions, and large figures are c

[issue4546] Small thingy in "What's New in Python 3.0"

2008-12-05 Thread Paul Melis
New submission from Paul Melis <[EMAIL PROTECTED]>: The second to last item under "Removed Syntax" (about relative imports) shows ReST markup in the HTML file, probably not the way it should read: The only acceptable syntax for relative imports is from .``[*module*] :keyword:`import` *name*; :ke

  1   2   >