[issue5764] 2.6.2 Python Manuals CHM file seems broken

2009-09-21 Thread Ding Xuan
Ding Xuan dx...@163.com added the comment: thanks very much for your kindly notification :) On Mon, Sep 21, 2009 at 3:44 AM, Georg Brandl rep...@bugs.python.orgwrote: Georg Brandl ge...@python.org added the comment: 2.6.3 will be out soon with a valid chm again. -- resolution:

[issue1766304] improve xrange.__contains__

2009-09-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: As a small style note, I would prefer if the patch assigned in conditionals less and split them out to the line before. I see that rangeobject.c has a mixed style with regards to this, so the clearer one should win! :) -- nosy:

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6958 ___ ___ Python-bugs-list mailing

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +vsajip priority: - normal versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6958 ___

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Doug Hellmann
Changes by Doug Hellmann doug.hellm...@gmail.com: -- nosy: +doughellmann ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6958 ___ ___

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

2009-09-21 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: I'll test your patch on Windows. Are you working against the trunk or the py3k branch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3366

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

2009-09-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks! The patch is against the trunk. (It doesn't quite apply cleanly to py3k, but the changes needed to make it do so should be minimal.) Hmm. Rereading my previous comment, I seem to have a blindness for negative signs: gamma(x)

[issue6954] DISTUTILS_DEBUG causes stack trace, really simple fix

2009-09-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Mmm, the problem is deeper for the second stack trace: distutils.fancy_getopt.longopt_xlate was changed from a translation mapping into a lambda in py3, that's why you have it. I'm fixing back this problem too. -- versions: +Python

[issue6952] deprecated conversion from string constant to char *

2009-09-21 Thread Barry Alan Scott
Barry Alan Scott barry-sc...@users.sourceforge.net added the comment: I'd guess that this change can first be made against 2.7 and 3.2 so that API's do not change. Where do I find the source code to generate the patch against for 2.7 and 3.2? -- ___

[issue6954] DISTUTILS_DEBUG causes stack trace, really simple fix

2009-09-21 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6954 ___ ___ Python-bugs-list

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

2009-09-21 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: I'm only setup to test the official Windows build setup under PCbuild. I'm not testing the legacy build setups under PC/VC6, PC/VS7.1, or PC/VS8.0. The patch against the trunk failed for PC/VC6/pythoncore.dsp. I don't need

[issue6952] deprecated conversion from string constant to char *

2009-09-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Take a look at http://www.python.org/dev, specifically the 'How to Get Started' article (which points you to the developer's FAQ, which explains how to do an anonymous checkout of the source). -- nosy: +r.david.murray

[issue6954] DISTUTILS_DEBUG causes stack trace, really simple fix

2009-09-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Everything is covered now, and the mentioned bug is fixed in trunk (r74994), py3k (r74999) and release31 (75000). Thanks ! -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6952] deprecated conversion from string constant to char *

2009-09-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm setting the targets to 2.7/3.2 per the discussion in issue #1699259. Perhaps the question of whether or not it is really an API change could be revisited, but if so that would probably have to go through python-dev. --

[issue1699259] replacing char* with const char* in sysmodule.c/.h

2009-09-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: See also issue 6952, which seems to be a broader request of the same nature. Moving the 3.1 target to 3.2, since 3.1 is out. -- nosy: +r.david.murray versions: +Python 3.2 -Python 3.1 ___

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

2009-09-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Many thanks, Daniel. The patch against the trunk failed for PC/VC6/pythoncore.dsp. I don't need that to build, though. I've no idea why that would happen. A line-ending issue, perhaps? If it doesn't stop me committing the change, then

[issue3451] Asymptotically faster divmod and str(long)

2009-09-21 Thread steve21
Changes by steve21 steve872929...@yahoo.com.au: -- nosy: +steve21 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3451 ___ ___ Python-bugs-list

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I get the idea. The Python part of the patch demonstrates what you're getting at, though it can't be used as is - for example the getattr(logging, a, a) could lead to problems. However a more intelligent parser (which looked for specific

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: I get the idea. The Python part of the patch demonstrates what you're getting at, though it can't be used as is - for example the getattr(logging, a, a) could lead to problems. However a more intelligent parser (which looked for specific

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If you want to add flags to the main executable, it deserves a discussion on python-dev IMO. It could be obtained through an environment variable, e.g. PYLOGGING_CONFIG; which has the nice side-effect of working for executable scripts too.

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

2009-09-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: gamma5.patch. very minor changes from the last patch: - add (int) cast suggested by Daniel Stutzbach - Misc/NEWS entry - ..versionadded in docs - minor corrections to some comments -- Added file:

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: The C code looks basically okay to me. I'd probably use strdup() instead of the malloc/strlen/strcpy calls. And as Thomas said, the cleanup needs a little bit of work. -- ___ Python tracker

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Also possibly relevant was the recent python-dev discussion about replicating (some of) the command line argument parsing in python so that it can be used by things other than the 'python' command:

[issue6236] os.popen causes illegal seek on AIX in Python 3.1rc

2009-09-21 Thread egreen
egreen egr...@operamail.com added the comment: The problem is that the fileio struct in Modules/_io/fileio.c defines the 2-bit seekable field as int. From the C99 standard, §6.7.2: for bit-fields, it is implementation-defined whether the specifier int designates the same type as signed int or

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Also, don't forget to update the python -h help text. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6958 ___

[issue6959] OS X 10.6 / Snow Leopard

2009-09-21 Thread cscscs
Changes by cscscs ch...@schleiermachers.de: -- nosy: cscscs severity: normal status: open title: OS X 10.6 / Snow Leopard type: compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6959

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Why does this need to be built into the interpreter? The script / app should have logging config support. -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org

[issue6959] OS X 10.6 / Snow Leopard: building 2.6 maintenance release fails for some modules (architecture issue)

2009-09-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: By default on 10.6, gcc builds in 64-bit mode. Nav is one of the deprecated classic Macintosh platform modules and has been removed in Python 3. It and many other of the deprecated Mac modules use Carbon interfaces that are only available in 32-bit

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Why does this need to be built into the interpreter? The script / app should have logging config support. It does not need to, but it would be nice. I think the '-l' flag should be similar to the -W flag. Or consider for example using

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: If we do include interpreter support, there should be an option to invoke a configuration file, too: -l config=path Mutually exclusive with all the other options. So, you can either use it to invoke basicConfig or to invoke an arbitrary

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: I think I'm with Michael on this one. I'd rather add logging configuration to any stdlib modules that support being run directly and want to support logging. -- ___ Python tracker

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I don't think this is about logging in stdlib modules that are run directly. I think this is about a library that contains logging calls (eg: multiprocessing), and is used in j-random-application, and while prototyping/debugging the

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: How about putting this into the logging module instead? Instead of python logging options program program options, making it python -m logging logging options program program options. This: * involves no changes to the core

[issue6348] solaris/aix: Py_Initialize: can't initialize sys standard streams

2009-09-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - duplicate status: open - closed superseder: - os.popen causes illegal seek on AIX in Python 3.1rc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6348

[issue6236] os.popen causes illegal seek on AIX in Python 3.1rc

2009-09-21 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- nosy: +srid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6236 ___ ___ Python-bugs-list

[issue6236] os.popen causes illegal seek on AIX in Python 3.1rc

2009-09-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6236 ___ ___ Python-bugs-list

[issue6958] Add Python command line flags to configure logging

2009-09-21 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: How do these global settings (either via the interpreter or a wrapper in the logging module) change what an app might do on its own? IOW, if my app is already written to configure logging, and someone invokes it with these other settings,

[issue6960] test_telnetlib gives spurious output

2009-09-21 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: I just got the following traceback: Exception in thread Thread-538: Traceback (most recent call last): File /home/antoine/py3k/__svn__/Lib/threading.py, line 509, in _bootstrap_inner self.run() File

[issue6961] test_distutils failure

2009-09-21 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: I get the following (deterministic) failure on the py3k branch: test_distutils 0 blocks find: `/home/antoine/tmp/tmpX6PtRb/foo/build/bdist.linux-x86_64/rpm/BUILDROOT/foo-0.1-1.x86_64/usr/lib/debug': Aucun fichier ou dossier de ce type 0 blocks

[issue6236] os.popen causes illegal seek on AIX in Python 3.1rc

2009-09-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for the patch! Committed in r75007, r75008, r75009, r75010. If there's any problem, please reopen. -- resolution: accepted - fixed status: open - closed versions: +Python 2.6, Python 2.7, Python 3.2

[issue6961] test_distutils failure

2009-09-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It also fails on release31-maint, but not on trunk. -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6961 ___

[issue6962] traceback.format_exception_only does not return SyntaxError carot correctly

2009-09-21 Thread thewtex
New submission from thewtex m...@mmmccormick.com: On Python 2.6.2, and possibly other versions, in the traceback module, format_exception_only does not behave correctly when printout out a SyntaxError. An extra newline is inserted before the carot. E.g. 38 exceptionType,

[issue1766304] improve xrange.__contains__

2009-09-21 Thread Robert Lehmann
Robert Lehmann lehman...@gmail.com added the comment: Thanks for your feedback. I added a few tests and changed the bits you criticized. -- Added file: http://bugs.python.org/file14945/range.patch ___ Python tracker rep...@bugs.python.org

[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2009-09-21 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Is this open or closed? Wondering as I just updated my checkout and I am now segfaulting at the command-line whenever I import something under readline 6.0 which was working fine. import tokenize Program received signal EXC_BAD_ACCESS, Could

[issue6823] time.strftime does unnecessary range check

2009-09-21 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: time.strftime() now normalizes tm_isdst. 2.7: r75011 3.2: r75012 This could probably be backported to 2.6/3.1, but since this is purely a convenience thing and it is a (very) minor change in semantics I am not going to bother. Thanks, Robert,

[issue6845] Restart support in binary upload for ftplib

2009-09-21 Thread Alejandro Santos
Changes by Alejandro Santos alej...@alejolp.com: -- nosy: +alejolp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6845 ___ ___ Python-bugs-list

[issue6845] Restart support in binary upload for ftplib

2009-09-21 Thread Facundo Batista
Facundo Batista facu...@taniquetil.com.ar added the comment: I like this. I'd love to see a test of this, though. Pablo, do you think you could came up with a test? Thanks! -- ___ Python tracker rep...@bugs.python.org

[issue6105] json.dumps doesn't respect OrderedDict's iteration order

2009-09-21 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6105 ___

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2009-09-21 Thread Charles Cazabon
Changes by Charles Cazabon charlesc-pyt...@pyropus.ca: Removed file: http://bugs.python.org/file14946/worker-lifetime-python2.6.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6963 ___

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2009-09-21 Thread Charles Cazabon
Changes by Charles Cazabon charlesc-pyt...@pyropus.ca: Added file: http://bugs.python.org/file14947/worker-lifetime-python2.6.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6963 ___

<    1   2