python - Is it acceptable to refer a variable to itself? -



python - Is it acceptable to refer a variable to itself? -

e.g.

blob_info = upload_files[0] blob_info = blob_info.key()

or improve do

blob_info = (upload_files[0]).key()

i prefer splitting things create them more readable

blob_info = upload_files[0] blob_key = blob_info.key()

makes more sense me. or event better, refer blob_info.key() whenever it's needed.

python google-app-engine

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -