[issue6654] Add path to the xmrlpc dispatcher method

2009-12-16 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Committed revision 76855 to py3k -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6654 ___

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2009-12-16 Thread lekma
New submission from lekma lekma...@gmail.com: It would be nice to have those. See http://udrepper.livejournal.com/20407.html for background. -- components: Library (Lib) messages: 96482 nosy: lekma severity: normal status: open title: add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

[issue7511] msvc9compiler.py: ValueError: [u'path']

2009-12-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I think we have two issues here: First, the default install of VS Express does not support 64-bit tools, so distutils cannot work with a 64-bit Python install. I verified that it _does_ work with a 32-bit Python install. Second, it is

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2009-12-16 Thread lekma
lekma lekma...@gmail.com added the comment: First attempt, against trunk. -- keywords: +patch Added file: http://bugs.python.org/file15573/Issue7523.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7523

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

2009-12-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Here's a patch to add expm1. Rather than putting the code in pymath.c, which is the wrong place (see issue #7518), I've added a new file Modules/_math.c for this; log1p, atanh, etc. should also eventually be moved from pymath.c into this

[issue7522] random.choice should accept a set as input

2009-12-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This would be a new feature, so would have to wait for Python 2.7 / 3.2 (2.6 is only receiving bugfixes). -- assignee: - rhettinger nosy: +mark.dickinson, rhettinger type: behavior - feature request versions: +Python 2.7, Python

[issue7471] GZipFile.readline too slow

2009-12-16 Thread Nir Aides
Nir Aides n...@winpdb.org added the comment: Right, using the io module makes GzipFile as fast as zcat. I submit a new patch this time for Python 2.7, however, it is not a module rewrite, but again minimal refactoring. GzipFile is now derived of io.BufferedRandom, and as result the

[issue7524] Freeze bug with xml.dom

2009-12-16 Thread Gnep
New submission from Gnep jass.z...@gmail.com: I'm using python 2.4.3 on centos5.3. A simple py script contains only one line of: [ka...@gnep:~/test]$ cat dom.py from xml.dom import minidom Then freeze this script and run the binary: [ka...@gnep:~/test]$ ./dom Traceback (most recent call

[issue7525] Yield example doesn't work as is explained in the documentation

2009-12-16 Thread xiscu
New submission from xiscu xi...@email.de: In the documentation the is: ... generator.throw(TypeError, spam) TypeError('spam',) generator.close() Don't forget to clean up when 'close()' is called. ... I'm getting: generator.throw(TypeError, spam) TypeError('spam',) generator.close() Traceback

[issue7396] regrtest single: iterator not subscriptable

2009-12-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for testing. Note that you don't need to use -s to run a single test. You can specify a list of tests to run on the regrtest command line, which can be just one test. -s for running all the tests one at a time so that you restart

[issue7526] tkinter menubutton underline behaviour varies between tkinter * and tkinter.ttk *

2009-12-16 Thread kurt
New submission from kurt kurt.forrester@gmail.com: I am using the Menubutton to provide an accelerator effect via the underline option. When I import the basic widget via from tkinter import * the widget performs as expected (F_ile) is activated on pressing Alt+F and the menu is presented.

[issue7522] random.choice should accept a set as input

2009-12-16 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: The underlying data structure for sets doesn't lend itself to an efficient method of random selection. It is best for the programmer to explictly convert to a sequence and then make the random selection (that way the

[issue7527] Standard Library documentation fails to mention that string.Formatter, etc. are new in Python 2.6

2009-12-16 Thread Forest Bond
New submission from Forest Bond for...@alittletooquiet.net: This page: http://docs.python.org/library/string.html ... should mention that the Formatter class and any associated functions are new in Python 2.6. -- assignee: georg.brandl components: Documentation messages: 96493 nosy:

[issue7527] Standard Library documentation fails to mention that string.Formatter, etc. are new in Python 2.6

2009-12-16 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: 8.1.2 does start with Starting in Python 2.6, although I suppose there could be a versionadded tag. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7527

[issue7521] PyEval_GetRestricted should be removed from C API reference

2009-12-16 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +brett.cannon priority: - normal stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7521 ___

[issue7527] Standard Library documentation fails to mention that string.Formatter, etc. are new in Python 2.6

2009-12-16 Thread Forest Bond
Forest Bond for...@alittletooquiet.net added the comment: Ah, I didn't see it there. Oh well, do what seems right. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7527 ___

[issue3588] sysconfig variable LINKFORSHARED has wrong value for MacOS X framework build

2009-12-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: To be honest: I don't know. Tarek: do you think LINKFORSHARED should contain a value that works outside of Python's build environment? -- ___ Python tracker rep...@bugs.python.org

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

2009-12-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I committed the patch for expm1 in r76861 (trunk) and r76863 (py3k), with one small change: instead of using 2 * exp(x/2) * sinh(x/2), expm1 is now computed using a method due to Kahan that involves only exp and log. This seems a little

[issue7524] Freeze bug with xml.dom

2009-12-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Python 2.4 is no longer support. Unless you can reproduce the bug for 2.6, it should be closed as won't fix. -- nosy: +loewis resolution: - wont fix status: open - closed ___ Python tracker

[issue7518] Some functions in pymath.c should be moved elsewhere.

2009-12-16 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: In general those functions has to be part of, lets call it python runtime/portable interface . With current build system you may create a build-in module lets call it mathport and to add some functions . To the list a will add function

[issue7518] Some functions in pymath.c should be moved elsewhere.

2009-12-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: For the recently added expm1 function (see issue #3366), I've put the substitute code in a new file Modules/_math.c, that's linked into math.so. I plan to move the other substitute libm functions from pymath.c into this file, and to link

[issue3745] _sha256 et al. encode to UTF-8 by default

2009-12-16 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: What about inconsistent module build - as is reported some platform build sha256 module that support unicode but most it is not build if openssl is version 0.8+. Same for sha512 module. If unicode for hashlib is not acceptable for

[issue7518] Some functions in pymath.c should be moved elsewhere.

2009-12-16 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: May be is good to add depends=['_math.h'], for modules in setup.py. About atan2 - lets see comments in mathmodule and configure test. The cmath test case pass on freebsd as buildbot is for for 7.2. What about freebsd 6.2 ? Also I don't

[issue2624] swig support in distutils should use the build and temp dirs

2009-12-16 Thread Russell Owen
Changes by Russell Owen reo...@users.sourceforge.net: -- nosy: +reowen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2624 ___ ___ Python-bugs-list

[issue7108] test_commands.py failing on OS X 10.5.7 due to '@' in ls output

2009-12-16 Thread James G. sack (jim)
James G. sack (jim) jgs...@users.sourceforge.net added the comment: test_commands test_getstatus also fails on linux with SELinux enabled On gnu/linux, info ls reports: Following the file mode bits is a single character that specifies whether an alternate access method such as an

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2009-12-16 Thread lekma
lekma lekma...@gmail.com added the comment: better patch (mainly test refactoring). still against trunk. should I provide one against py3k? -- components: +IO Added file: http://bugs.python.org/file15578/Issue7523_2.diff ___ Python tracker