python type function for dummy type -


this first time see following codes.

dataset = type('dummy', (), {})() 

and print dataset in console tells me

<__main__.dummy @ ox7feec5195e90> 

can me figure these codes mean?


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -