summaryrefslogtreecommitdiff
path: root/psycopg/adapter_pfloat.c
Commit message (Collapse)AuthorAgeFilesLines
* Dropped simple type wrapper functionsDaniele Varrazzo2014-08-151-14/+0
| | | | | These functions don't need to exist: exposing the type in the module is enough. It is actually better as one may use isinstance and such.
* Dropped almost-no-op customized objects repr()Daniele Varrazzo2014-08-151-8/+1
| | | | | | | | The default repr is enough: it prints <TypeName at 0xADDR> instead of <TypeName object at 0xADDR>. The only people being hurt by this change are the ones using doctests: they deserve it.
* Name the types after the module they are exposed fromDaniele Varrazzo2014-08-151-2/+2
|
* Dropped GC support for several objectsDaniele Varrazzo2013-04-051-11/+2
| | | | | | Non-containers don't need GC. It was half-baked anyway as the tp_clear was often not set. Dropped tp_traverse too for these objects as unused.
* PyType_GenericAlloc is the default allocator: no need to specifyDaniele Varrazzo2013-03-201-1/+1
|
* Dropped "customized" pg_free functionsDaniele Varrazzo2013-03-201-29/+1
| | | | The defaut is already to call PyObject_GC_Del.
* Fixed escape for negative numbers prefixed by minus operatorDaniele Varrazzo2011-05-301-3/+22
| | | | Closes ticket #57.
* Add negative infinity support for Python->pg conversionMarti Raudsepp2011-02-121-2/+6
|
* Fixed adaptation in several adapters.Daniele Varrazzo2010-12-311-7/+20
| | | | | The getquoted methods always return bytes. The str() convert this representation to string on the fly.
* The library can be compiled with Python 3.Daniele Varrazzo2010-12-211-2/+2
| | | | | | | | | Just compiled! No test run yet and many points to review, marked in the code. The patch is largely Martin von Löwis work, simplified after refactoring in the previous commits and adapted to the new code (as the patch was originally for Psycopg 2.0.9)
* Import structmember/stringobject headers from python.h.Daniele Varrazzo2010-12-211-1/+0
| | | | stringobject is not to be imported with Python 3.
* Using PyVarObject_HEAD_INIT macro.Daniele Varrazzo2010-12-211-2/+1
|
* Using Py_TYPE and Py_REFCNT macros.Daniele Varrazzo2010-12-211-4/+4
|
* Changed Python const RO -> READONLY.Daniele Varrazzo2010-12-121-1/+1
|
* Internal imports simplified.Daniele Varrazzo2010-12-121-8/+5
| | | | | | | | | | .c files only need to import psycopg.h: it will in turn import dependencies from Python and libpq and configure.h. psycopg.h should be the first to be imported, so the basic imports are not required in the .h's As a guideline I'm trying to import from the most specific to the most generic to detect missing imports in the .h's.
* Dropped PyArg_ParseTuple() calls in functions taking no arguments.Daniele Varrazzo2010-11-091-2/+1
|
* Replaced PyObject_CallFunction() with *ObjArgs() where more efficient.Daniele Varrazzo2010-11-091-1/+1
|
* Changes license to LGPL3 + OpenSSL exception on all source filesFederico Di Gregorio2010-02-121-12/+16
|
* Fixed float loss of precisionFederico Di Gregorio2009-11-091-1/+1
|
* Added adapter to handle float('inf') and float('nan')Federico Di Gregorio2009-01-231-0/+246