[omniORB] Python OverflowError: integer literal too large

Bray, Carl cbray@orchestream.com
Fri, 18 May 2001 15:01:37 +0100


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0DFA3.0DC43680
Content-Type: text/plain;
	charset="iso-8859-1"

 
IDL can't be imported when using large unsigned longs
 
test.idl
 
module Test {
 
 const unsigned long RESERVED = 0xFFFFFFE0;
 
};
 
creates stub with
 
_0_Test.RESERVED = 4294967264
 
which causes
 
>>> import Test
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "Test\__init__.py", line 6, in ?
    import test_idl
OverflowError: integer literal too large
 
Using omniORBpy 3.1 binary distribution for Win32

Carl Bray
___________________________________________________________________________ 
Component Test Team Leader
T: +44 (0)20 7348 1500 
Orchestream
Avon House, Kensington Village, Avonmore Road, London W14 8TS
T: +44 (0)20 7348 1500 F: +44 (0)20 7348 1501
www.orchestream.com 

 


--
This communication contains confidential information intended solely for the use of the individual/s and/or entity or entities to whom it was intended to be addressed.  If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this transmission is prohibited.  If you have received this communication in error, please contact the sender immediately, delete this communication from your system, and do not disclose its contents to any third party, or use its contents.  Any opinions expressed are solely those of the author and do not necessarily represent those of Orchestream Ltd or its group of companies unless otherwise specifically stated.

------_=_NextPart_001_01C0DFA3.0DC43680
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2462.0" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=432115713-18052001>IDL can't be 
imported when using large unsigned longs</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=432115713-18052001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=432115713-18052001>test.idl</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=432115713-18052001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=432115713-18052001>module Test 
{</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=432115713-18052001>&nbsp;const unsigned 
long RESERVED = 0xFFFFFFE0;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=432115713-18052001>};</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=432115713-18052001>creates stub 
with</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=432115713-18052001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=432115713-18052001>_0_Test.RESERVED = 
4294967264</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=432115713-18052001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=432115713-18052001>which 
causes</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&gt;&gt;&gt; import Test<BR>Traceback (most recent 
call last):<BR>&nbsp; File "&lt;stdin&gt;", line 1, in ?<BR>&nbsp; File 
"Test\__init__.py", line 6, in ?<BR>&nbsp;&nbsp;&nbsp; import 
test_idl<BR>OverflowError: integer literal too large</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=432115713-18052001><FONT face=Arial size=2>Using omniORBpy 3.1 
binary distribution for Win32</FONT></SPAN></DIV>
<P><FONT face=Arial color=#0066cc size=2>Carl 
Bray<BR>___________________________________________________________________________</FONT> 
<BR><FONT face=Arial color=#0066cc size=2>Component Test Team Leader<BR><B>T: 
+44 (0)20 7348 1500</B></FONT> <BR><FONT face=Arial color=#0066cc 
size=2>Orchestream<BR></FONT><FONT face=Arial color=#0066cc size=1>Avon House, 
Kensington Village, Avonmore Road, London W14 8TS<BR></FONT><B><FONT face=Arial 
color=#0066cc size=1>T: +44 (0)20 7348 1500 F: +44 (0)20 7348 
1501</FONT></B><BR><B></B><B><FONT face=Arial color=#0066cc 
size=2>www.orchestream.com</FONT></B> </P>
<DIV>&nbsp;</DIV><CODE><FONT SIZE=3><BR>
<BR>
--<BR>
This communication contains confidential information intended solely for the use of the individual/s and/or entity or entities to whom it was intended to be addressed.  If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this transmission is prohibited.  If you have received this communication in error, please contact the sender immediately, delete this communication from your system, and do not disclose its contents to any third party, or use its contents.  Any opinions expressed are solely those of the author and do not necessarily represent those of Orchestream Ltd or its group of companies unless otherwise specifically stated.<BR>
</FONT></CODE></BODY></HTML>

------_=_NextPart_001_01C0DFA3.0DC43680--