[gull] python2.5 et type(x)

Olivier Bornet Olivier.Bornet at puck.ch
Thu Jul 31 09:23:44 CEST 2008


Hello,

On Wed, Jul 30, 2008 at 05:18:15PM +0200, Philippe Strauss wrote:
> if type(dict[k]) == types.DictType:

un autre moyen, sans utiliser le module types:

    if type(dict[k]) == type({}):

Bonne journée.

        Olivier
-- 
Olivier Bornet
Olivier.Bornet at puck.ch
Swiss Ice Hockey Results : http://puck.ch/
Get my PGP-key at http://puck.ch/pgp or at http://pgp.mit.edu/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://forum.linux-gull.ch/pipermail/gull/attachments/20080731/d72a7ddb/attachment.pgp>


More information about the gull mailing list