Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!not-for-mail From: deets@web.de (Diez B. Roggisch) Newsgroups: comp.lang.python Subject: Re: "Decoding unicode is not supported" in unusual situation Date: Wed, 07 Mar 2012 11:20:33 +0100 Lines: 13 Message-ID: References: <4f571b94$0$12037$742ec2ed@news.sonic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.uni-berlin.de oYFu9n3uvYGLff1nXHW8EwnewTe1qCB5kD/hZLveyUgzE1/7Zt3qdc Cancel-Lock: sha1:GURjCDgbqUQpqacg+MW2fvPJw44= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Xref: csiph.com comp.lang.python:21312 John Nagle writes: > I think that somewhere in "suds", they subclass the "unicode" type. > That's almost too cute. > > The proper test is > > isinstance(s,unicode) Woot, you finally discovered polymorphism - congratulations! Diez