Re: "no variable or argument declarations are necessary."
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: "no variable or argument declarations are necessary."

From: Paul Rubin <//phr.cx@NOSPAM.invalid>
Date: Thu Oct 06 2005 - 11:05:59 CEST

Duncan Booth <duncan.booth@invalid.invalid> writes:
> The value XML_NAMESPACE was imported from xml.dom, but the xml package is
> kind of weird. XML_NAMESPACE defined both in xml.dom and in the
> _xmlplus.dom package. The _xmlplus package is conditionally imported by the
> xml package, and completely replaces it, but only if _xmlplus is present
> and at least version 0.8.4 (older versions are ignored).
>
> This is precisely the kind of flexibility which gives Python a lot of its
> power, but it means that you cannot tell without running the code which
> package actually provides xml.dom.

This sounds like the socket module, which is a total mess. Library
code should not be written like that.
Received on Sat Oct 15 04:12:45 2005