[issue6654] Add "path" to the xmrlpc dispatcher method

2009-12-16 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Committed revision 76855 to py3k -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2009-12-16 Thread lekma
New submission from lekma : 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 type: feature reque

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

2009-12-16 Thread Stefan Krah
Stefan Krah 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 possible to install 64-bit

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

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

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

2009-12-16 Thread Mark Dickinson
Mark Dickinson 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 file. I'm fairly c

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

2009-12-16 Thread Mark Dickinson
Mark Dickinson 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 3.2 -Python 2.6 __

[issue7471] GZipFile.readline too slow

2009-12-16 Thread Nir Aides
Nir Aides 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 functionality of GzipFile

[issue7524] Freeze bug with xml.dom

2009-12-16 Thread Gnep
New submission from Gnep : 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 last): File "dom.py",

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

2009-12-16 Thread xiscu
New submission from xiscu : 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() Tracebac

[issue7396] regrtest single: iterator not subscriptable

2009-12-16 Thread R. David Murray
R. David Murray 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 the interpreter betwe

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

2009-12-16 Thread kurt
New submission from kurt : 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. Conversely when using the tt

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

2009-12-16 Thread Raymond Hettinger
Raymond Hettinger 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 conversion cost isn't hidden). If you d

[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 : 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: forest_atq, georg.brandl s

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

[issue7521] PyEval_GetRestricted should be removed from C API reference

2009-12-16 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon priority: -> normal stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-lis

[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 added the comment: Ah, I didn't see it there. Oh well, do what seems right. -- ___ Python tracker ___ ___ Python-bugs-lis

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

2009-12-16 Thread Ronald Oussoren
Ronald Oussoren 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

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

2009-12-16 Thread Mark Dickinson
Mark Dickinson 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 safer, and guards ag

[issue7524] Freeze bug with xml.dom

2009-12-16 Thread Martin v . Löwis
Martin v. Löwis 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 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 atan2 from math module. I

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

2009-12-16 Thread Mark Dickinson
Mark Dickinson 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 _math.c into the cma

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

2009-12-16 Thread Roumen Petrov
Roumen Petrov 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 trunk than why is not build alw

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

2009-12-16 Thread Roumen Petrov
Roumen Petrov 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 think that python cmath te

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

2009-12-16 Thread Russell Owen
Changes by Russell Owen : -- nosy: +reowen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[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) 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 access control list appli

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2009-12-16 Thread lekma
lekma 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