[issue1693] Please check merge from trunk

2007-12-31 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 59636. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue1716] String format operator '%i' fails for large floats

2007-12-31 Thread Guido van Rossum
Guido van Rossum added the comment: On the one hand, if you want to format a float like that, you should use "%.0f". On the other hand, this should either consistently fail or succeed, not depending on how large the float is. I think in 2.6 we can't change this, but in 3.0, I propose that all t

[issue1716] String format operator '%i' fails for large floats

2007-12-31 Thread Christopher Tur Lesniewski-Laas
New submission from Christopher Tur Lesniewski-Laas: To reproduce: >>> '%i' % 12345678901.0 TypeError: int argument required Contrast with: >>> '%i' % 1234567890.0 '1234567890' Previous experience led me to expect that the '%i' format code would work for all numerical types. Admittedly, there'

[issue1715] Make pydoc list submodules

2007-12-31 Thread Gustavo J. A. M. Carneiro
New submission from Gustavo J. A. M. Carneiro: Often python extension modules define submodules like this: static PyObject * initfoo_xpto(void) { PyObject *m; m = Py_InitModule3("foo.xpto", foo_xpto_functions, NULL); [...] return m; } PyMODINIT_FUNC initfoo(void) { PyObject

[issue1694] floating point number round failures under Linux

2007-12-31 Thread Tim Peters
Tim Peters added the comment: Nice example! Yes, the round() implementation is numerically naive, in this particular case ignoring that x+0.5 isn't necessarily representable (it multiplies the input by 10.0, adds 0.5, takes the floor, then divides by 10.0, and in this specific case adding 0.5 lo

[issue1507224] sys.path issue if sys.prefix contains a colon

2007-12-31 Thread Mattie
Mattie added the comment: This is also proving to be a problem in various places for applications embedding Python 2.5 on Linux. For example, my EventScripts plugin embeds Python into Counter-Strike: Source game servers. It's not uncommon at all for these servers to use a colon in their path name

[issue1694] floating point number round failures under Linux

2007-12-31 Thread Mark Dickinson
Mark Dickinson added the comment: It's worth noting that Python's round function doesn't quite work as advertised, either: Python 2.6a0 (trunk:59634M, Dec 31 2007, 17:27:56) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin Type "help", "copyright", "credits" or "license" for more inform

[issue1692] Syntax Error exception dosen't print string; not informative

2007-12-31 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser: -- nosy: +kbk __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1694] floating point number round failures under Linux

2007-12-31 Thread Tim Peters
Tim Peters added the comment: Right, Unix-derived C libraries generally do IEEE-754 "round to nearest/even" rounding, while Microsoft's do "add a half and chop" rounding. The Python reference manual says nothing about this, and neither does the C standard (well, C89 doesn't; unsure about C99).

[issue1694] floating point number round failures under Linux

2007-12-31 Thread Mark Dickinson
Mark Dickinson added the comment: Is there anything in the Python documentation that implies that '%.1f' % 2.25 should be the string '2.3'? I know that the documentation for the builtin round function implies that round(2.25, 1) should be (the closest representable float to) 2.3, but that's

[issue1714] ConfigParser.py do not allow leading (and trailing) space in values.

2007-12-31 Thread Miroslav Suchy
New submission from Miroslav Suchy: I have some configuration params with leading space. And program (getmail4) which use ConfigParser.py. ConfigParser strip all leading (and trailing) spaces from values. This is very often the most wanted result. But if I want value with leading space I have no

[issue1713] posixpath.ismount() claims symlink to a mountpoint is a mountpoint.

2007-12-31 Thread Christian Heimes
Christian Heimes added the comment: A fix for the problem is easy. One has to replace os.stat() with os.lstat(): def ismount(path): """Test whether a path is a mount point""" try: s1 = os.stat(path) s2 = os.stat(join(path, '..')) except os.error: return False

[issue1690] Crash on cancellation of windows install

2007-12-31 Thread Christian Heimes
Changes by Christian Heimes: -- resolution: -> duplicate status: open -> closed superseder: -> installer crashes on attempted cancellation __ Tracker <[EMAIL PROTECTED]> __ _

[issue1458] installer crashes on attempted cancellation

2007-12-31 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: -> loewis nosy: +loewis priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list m

[issue1455] VS2008, quick hack for distutils.msvccompiler

2007-12-31 Thread Martin v. Löwis
Martin v. Löwis added the comment: This issue is closed, and didn't really deal with VS 2005 at all, so we should avoid tracking any further changes in it. I personally don't care about the PCbuild8 folder at all. It can be removed, updated, replaced with that script - whatever people like most.