[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]>

[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

[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]>

[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 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

[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 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

[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]> ___ _

[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]>

[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

[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 ___

[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]> _

[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

[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]> ___ _

[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

[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

[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

[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

[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]> ___ ___

[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]> ___ ___

[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]> ___ _

[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

[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

[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

[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

[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

[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]>

[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_

[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]> __

[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]>

[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

[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

[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

[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]>

[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 Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- priority: high -> normal ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-l

[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]>

[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: 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' __

[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

<    1   2