mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Dropped outdated HACKING file
This commit is contained in:
parent
2be26804d3
commit
c0e94ad01f
|
@ -2,7 +2,7 @@ recursive-include psycopg *.c *.h *.manifest
|
||||||
recursive-include lib *.py
|
recursive-include lib *.py
|
||||||
recursive-include tests *.py
|
recursive-include tests *.py
|
||||||
recursive-include examples *.py somehackers.jpg whereareyou.jpg
|
recursive-include examples *.py somehackers.jpg whereareyou.jpg
|
||||||
recursive-include doc README HACKING SUCCESS COPYING.LESSER pep-0249.txt
|
recursive-include doc README SUCCESS COPYING.LESSER pep-0249.txt
|
||||||
recursive-include doc/src *.rst *.py *.css Makefile
|
recursive-include doc/src *.rst *.py *.css Makefile
|
||||||
recursive-include scripts *.py *.sh
|
recursive-include scripts *.py *.sh
|
||||||
include scripts/maketypes.sh scripts/buildtypes.py
|
include scripts/maketypes.sh scripts/buildtypes.py
|
||||||
|
|
43
doc/HACKING
43
doc/HACKING
|
@ -1,43 +0,0 @@
|
||||||
General information
|
|
||||||
*******************
|
|
||||||
|
|
||||||
Some help to people wanting to hack on psycopg. First of all, note that
|
|
||||||
*every* function in the psycopg module source code is prefixed by one of the
|
|
||||||
following words:
|
|
||||||
|
|
||||||
psyco is used for function directly callable from python (i.e., functions
|
|
||||||
in the psycopg module itself.) the only notable exception is the
|
|
||||||
source code for the module itself, that uses "psyco" even for C-only
|
|
||||||
functions.
|
|
||||||
|
|
||||||
conn is used for functions related to connection objects.
|
|
||||||
|
|
||||||
curs is used for functions related to cursor objects.
|
|
||||||
|
|
||||||
typecast is used for typecasters and utility function related to
|
|
||||||
typecaster creation and registration.
|
|
||||||
|
|
||||||
Pythonic definition of types and functions available from python are defined
|
|
||||||
in *_type.c files. Internal functions, callable only from C are located in
|
|
||||||
*_int.c files and extensions to the DBAPI can be found in the *_ext.c files.
|
|
||||||
|
|
||||||
|
|
||||||
Patches
|
|
||||||
*******
|
|
||||||
|
|
||||||
If you submit a patch, please send a diff generated with the "-u" switch.
|
|
||||||
Also note that I don't like that much cosmetic changes (like renaming
|
|
||||||
already existing variables) and I will rewrap the patch to 78 columns
|
|
||||||
anyway, so it is much better if you do that beforehand.
|
|
||||||
|
|
||||||
|
|
||||||
The type system
|
|
||||||
***************
|
|
||||||
|
|
||||||
Simple types, like integers and strings, are converted to python base types
|
|
||||||
(the conversion functions are in typecast_base.c). Complex types are
|
|
||||||
converted to ad-hoc types, defined in the typeobj_*.{c,h} files. The
|
|
||||||
conversion function are in the other typecast_*.c files. typecast.c defines
|
|
||||||
the basic utility functions (available through the psycopg module) used when
|
|
||||||
defining new typecasters from C and python.
|
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
<None Include="README.rst" />
|
<None Include="README.rst" />
|
||||||
<None Include="setup.cfg" />
|
<None Include="setup.cfg" />
|
||||||
<None Include="setup.py" />
|
<None Include="setup.py" />
|
||||||
<None Include="doc\HACKING" />
|
|
||||||
<None Include="doc\SUCCESS" />
|
<None Include="doc\SUCCESS" />
|
||||||
<None Include="examples\binary.py" />
|
<None Include="examples\binary.py" />
|
||||||
<None Include="examples\copy_from.py" />
|
<None Include="examples\copy_from.py" />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user