You now have a Python 3 version of SQLAlchemy in lib/.
+Current 3k Issues
+-----------------
+
+Current bugs and tickets related to Py3k are on the Py3k milestone in trac:
+
+http://www.sqlalchemy.org/trac/query?status=new&status=assigned&status=reopened&milestone=py3k
Running Tests
-------------
return value
return process
else:
+ # TODO: this is wrong - we are getting a LOB here
+ # no matter what version of oracle, so process()
+ # is still needed
return super(_OracleUnicodeText, self).result_processor(dialect, coltype)
class _OracleInteger(sqltypes.Integer):
MANYTOMANY, MANYTOONE, MapperProperty, ONETOMANY, PropComparator,
StrategizedProperty,
)
-from types import NoneType
+NoneType = type(None)
__all__ = ('ColumnProperty', 'CompositeProperty', 'SynonymProperty',
'ComparableProperty', 'RelationProperty', 'BackRef')
"""
self.length = length
+ # Python 3 - sqlite3 doesn't need the `Binary` conversion
+ # here, though pg8000 does to indicate "bytea"
def bind_processor(self, dialect):
DBAPIBinary = dialect.dbapi.Binary
def process(value):
return None
return process
+ # Python 3 has native bytes() type
+ # both sqlite3 and pg8000 seem to return it
+ # (i.e. and not 'memoryview')
+ # Py2K
def result_processor(self, dialect, coltype):
if util.jython:
def process(value):
else:
return None
return process
-
+ # end Py2K
+
def adapt(self, impltype):
return impltype(length=self.length)