Issue 3345: Python Issue: CORBA.TypeCode (python-ftf) Source: Camros Corporation (Mr. Jeffrey A. Marshall, jam@camros.com) Nature: Uncategorized Issue Severity: Summary: The current python mapping (second paragraph of section 1.3.8) describes that the "CORBA.TypeCode" function can be used to create type codes by passing in a repository ID. The example that follows that paragraph then goes on to pass the CosNaming.NamingContext class to CORBA.TypeCode. Does CORBA.TypeCode expect a class or repository ID (or both)? What exceptions does CORBA.TypeCode raise if it fails to create a type code? Resolution: The example is wrong and needs to be corrected. The exception is BAD_PARAM Revised Text: In 1.3.8, replace the line CORBA.TypeCode(CosNaming.NamingContext) with CORBA.TypeCode(CORBA.id(CosNaming.NamingContext)) After the sentence "This function expects the repository ID.", add a sentence If creation of the type code fails, CORBA.TypeCode raises a system exception. Actions taken: February 22, 2000: received issue October 10, 2000: closed issue Discussion: End of Annotations:===== Date: Tue, 22 Feb 2000 15:26:22 -0500 (EST) Message-Id: <200002222026.PAA21423@emerald.omg.org> To: issues@omg.org, python-ftf@omg.org Subject: Python Issue: CORBA.TypeCode From: "Jeffrey A. Marshall" X-Mailer: TWIG 2.1.1 Content-Type: text X-UIDL: PkCe9D@(!!Mogd9P3p!! The current python mapping (second paragraph of section 1.3.8) describes that the "CORBA.TypeCode" function can be used to create type codes by passing in a repository ID. The example that follows that paragraph then goes on to pass the CosNaming.NamingContext class to CORBA.TypeCode. Does CORBA.TypeCode expect a class or repository ID (or both)? What exceptions does CORBA.TypeCode raise if it fails to create a type code? -- Jeffrey A. Marshall Camros Corporation Email jam@camros.com Voice 703-876-1700 ext. 10 Fax 703-876-1818 http://www.camros.com/