Re: [Zope] DCOracle hit by new [].append() behavior?

2000-06-05 Thread Justin Sheehy

Luis Cortes <[EMAIL PROTECTED]> writes:

> >From what I understand ( reading what has changed in Python 1.6 ), you can make
> the arguements a tuple and you should be okay.  like so:
> 
>  out.append( (buf,dbsize,dbtype,ind,alen,arcode, f) )

Yes, I understand what sorts of things need to change and how to
change them.  However, it was DCOracle code, not mine, that had this
bug.  I was simply asking if someone had already made the appropriate
changes to DCOracle.  If not, I'll make them myself.

I don't know if that particular bit of code in ociCurs.py is the only
thing in DCOracle that is affected by this, and figured that I'd see
if anyone else had tracked it down yet.

-Justin

 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] DCOracle hit by new [].append() behavior?

2000-06-05 Thread Luis Cortes

>From what I understand ( reading what has changed in Python 1.6 ), you can make
the arguements a tuple and you should be okay.  like so:

 out.append( (buf,dbsize,dbtype,ind,alen,arcode, f) )


Let me know,
Luis.


On Mon, 05 Jun 2000, you wrote:
>> I have successfully built DCOracle 1.3.1b1 under Python 1.6a2, and
>> connected to an Oracle database.
>> 
>> However...
>> 
>> >>> cursor1.execute('select * from sometable')
>> Traceback (most recent call last):
>>   File "", line 1, in ?
>>   File "/home/justin/py/DCOracle/ociCurs.py", line 299, in execute
>> r = self._execute(params__, kw)
>>   File "/home/justin/py/DCOracle/ociCurs.py", line 241, in _execute
>> out=self._describe(self._ft)
>>   File "/home/justin/py/DCOracle/ociCurs.py", line 201, in _describe
>> out.append(buf,dbsize,dbtype,ind,alen,arcode, f)
>> TypeError: append requires exactly 1 argument; 7 given
>> >>> 
>> 
>> Looks to me like DCOracle doesn't comply to the definition of
>> [].append(), and has thus been bitten by Guido's changes to make this
>> behavior more strictly enforced.
>> 
>> Has anyone already done the necessary patches, or shall I do it myself?
>> 
>> -Justin
>> 
>>  
>> 
>> ___
>> Zope maillist  -  [EMAIL PROTECTED]
>> http://lists.zope.org/mailman/listinfo/zope
>> **   No cross posts or HTML encoding!  **
>> (Related lists - 
>>  http://lists.zope.org/mailman/listinfo/zope-announce
>>  http://lists.zope.org/mailman/listinfo/zope-dev )
-- 
==

Luis Cortes

Pollak EPD (915) 621-6113

==


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] DCOracle hit by new [].append() behavior?

2000-06-05 Thread Justin Sheehy

I have successfully built DCOracle 1.3.1b1 under Python 1.6a2, and
connected to an Oracle database.

However...

>>> cursor1.execute('select * from sometable')
Traceback (most recent call last):
  File "", line 1, in ?
  File "/home/justin/py/DCOracle/ociCurs.py", line 299, in execute
r = self._execute(params__, kw)
  File "/home/justin/py/DCOracle/ociCurs.py", line 241, in _execute
out=self._describe(self._ft)
  File "/home/justin/py/DCOracle/ociCurs.py", line 201, in _describe
out.append(buf,dbsize,dbtype,ind,alen,arcode, f)
TypeError: append requires exactly 1 argument; 7 given
>>> 

Looks to me like DCOracle doesn't comply to the definition of
[].append(), and has thus been bitten by Guido's changes to make this
behavior more strictly enforced.

Has anyone already done the necessary patches, or shall I do it myself?

-Justin

 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )