Skip to content

Commit 62a00be

Browse files
author
James William Pye
committed
Avoid including .types in the module reference.
There are too many documentation improvements that are needed, and the oid to class mapping may need to go away.
1 parent 88350cb commit 62a00be

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

postgresql/types.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,14 @@ def __str__(self):
541541
class Array(object):
542542
"""
543543
Type used to mimic PostgreSQL arrays.
544+
545+
It primarily implements the Python sequence interfaces for treating a
546+
PostgreSQL array like nested Python lists.
544547
"""
545548

549+
# return an iterator over the absolute elements of a nested sequence
546550
@staticmethod
547551
def unroll_nest(hier, dimensions):
548-
"return an iterator over the absolute elements of a nested sequence"
549552
weight = []
550553
elc = 1
551554
dims = list(dimensions[:-1])
@@ -563,9 +566,9 @@ def unroll_nest(hier, dimensions):
563566
for i in v:
564567
yield i
565568

569+
# Detect the dimensions of a nested sequence
566570
@staticmethod
567571
def detect_dimensions(hier):
568-
'Detect the dimensions of a nested sequence'
569572
while type(hier) is list or type(hier) is Array:
570573
if type(hier) is Array:
571574
for x in hier.dimensions:
@@ -623,7 +626,6 @@ def __new__(subtype, elements, dimensions = None, **kw):
623626
return rob
624627

625628
def arrayslice(self, subpos):
626-
'Create an array based on itself'
627629
rob = object.__new__(type(self))
628630
rob.elements = self.elements
629631
rob.dimensions = self.dimensions

sphinx-src/modules.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,3 @@ Modules intended for general use.
1919
postgresql.string
2020
:members:
2121
:show-inheritance:
22-
23-
24-
:mod:`postgresql.types`
25-
-----------------------
26-
27-
.. automodule::
28-
postgresql.types
29-
:members:
30-
:show-inheritance:
31-

0 commit comments

Comments
 (0)