Unused variable naming in python [duplicate]

Not sure if this is a Eclipse thing or not, but I generally use '_' to denote values I don’t care about (i.e., return values in tuples, or index values in for-loops).

Of course you can always resort to old stand-bys like naming variables dummy or ignore.

I’m not sure if PEP 8 mentions anything about this, might be worth peeking into.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)