Re: [cx-oracle-users] type object matching - BINARY
Brought to you by:
atuining
From: D.R. B. <da...@as...> - 2006-09-13 16:15:35
|
Hoi Mario, You are right, but I'm happy to leave the C implementation to Anthony. Personally, I very much dislike the whole idea of using the equivalence operator on types in the way suggested in the pep. For example BINARY =3D=3D CLOB To me BINARY and CLOB are not equivalent and never will be. More natural would be issubclass(CLOB, BINARY) (Now you now what C and B in the help() for issubclass() stand for ;) but even so, it's usually better to stay as far as possible from discussi= ons on such matters. Cheers, Danny On Wed, Sep 13, 2006 at 05:41:30PM +0200, Mario Frasca wrote: > Hi Danny, >=20 > ... thinking a bit... but what you describe is what I would expect to > find already in cx_Oracle... I expected BINARY to have been defined > as DBAPITypeObject(cx_Oracle.BLOB, cx_Oracle.LOB, cx_Oracle.CLOB) (or > something similar, maybe including LONG_STRING?)... I would even have = a > look at the sources, but the Python/C bindings still scare me a bit awa= y. >=20 > if there was a cx_Oracle.py source, I would have added the following > line: >=20 > BINARY =3D DBAPITypeObject(BLOB, LOB, CLOB) >=20 > made some tests, submitted a patch. >=20 > as I said, I'm a very bad educator... >=20 > regards, > Mario >=20 > --=20 > je vais m'envoyer une lettre de felicitation. > Des felicitations, =E7a fait toujours plaisir,=20 > surtout de la part de quelqu'un qu'on aime bien. >=20 > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users |