- Language: en
3 results for isinstance in version 3.2
-
File Uploads
- … isinstance ( data , ( list , tuple )): result = [ single_file_clean ( d , initial ) for d in data ] else …
-
Serializing Django objects
- … isinstance ( obj , YourCustomType ): return str ( obj ) return super () . default ( obj ) You can then pass cls=LazyEncoder …
-
Logging
- … isinstance ( exc_value , UnreadablePostError ): return False return True and then add it to your logging …