Float to String "%.7e" - diff between Python-2.6 and Python-2.7

2012-10-30 Thread andrew . mackeith
e+02,2.096732151e+02,2.096732160+02] >>> for a in x: ... print ' %.9e%.7e'%(a,a) ... 2.096732130e+022.0967321e+02 2.096732140e+022.0967321e+02 2.096732150e+022.0967321e+02 <<<<<<<< 2.096732151e+022.0967322e+02 4.096732160e+004.

Re: explicit call to __init__(self) in subclass needed?

2009-09-18 Thread Andrew MacKeith
Bruno Desthuilliers wrote: Andrew MacKeith a écrit : I create a class like this in Python-2.6 >>> class Y(str): ... def __init__(self, s): ... pass ... >>> y = Y('giraffe') >>> y 'giraffe' >>> How does the base class (s

explicit call to __init__(self) in subclass needed?

2009-09-17 Thread Andrew MacKeith
I create a class like this in Python-2.6 >>> class Y(str): ... def __init__(self, s): ... pass ... >>> y = Y('giraffe') >>> y 'giraffe' >>> How does the base class (str) get initialized with the value passed to Y.__init__() ? Is this behavior specific to the str type, or do base classes

Re: ANN: PyGUI 2.0.1

2009-04-13 Thread Andrew MacKeith
-packages\GUI\Generic c:\python26\Lib\site-packages\GUI\Resources c:\python26\Lib\site-packages\GUI\Resources\cursors c:\python26\Lib\site-packages\GUI\Win32 Andrew MacKeith -- http://mail.python.org/mailman/listinfo/python-list

PyXML and Python-2.6

2009-04-07 Thread Andrew MacKeith
Is there a guide to porting projects that depend on PyXML to Python-2.6? Andrew MacKeith -- http://mail.python.org/mailman/listinfo/python-list

PyBool_FromLong

2005-09-02 Thread Andrew MacKeith
In the C API Docs, the signature of PyBool from long seems to be incorrect. int PyBool_FromLong(long v) Returns Py_True or Py_False depending on the truth value of v. New in version 2.3. The description would suggest: PyObject* PyBool_FromLong(long v) -- http://mail.python.org/mailman/li