Python underscore variable

When I was looking at the code of s3 target in spotify / luigi, there was a description method that I didn't know, so make a note.

        _, key = self._path_to_bucket_and_key(path)

It seems that using _ as a variable makes it an unnecessary variable. ([Practice of assigning tapple values not used in Python to “_” (underscore)](http://momijiame.tumblr.com/post/28130976849/python-%E3%81%A7%E4%BD% BF% E3% 82% 8F% E3% 81% AA% E3% 81% 84% E3% 82% BF% E3% 83% 97% E3% 83% AB% E3% 81% AE% E5% 80% A4% E3% 81% AF-% E3% 82% A2% E3% 83% B3% E3% 83% 80% E3% 83% BC% E3% 83% 90% E3% 83% BC-% E3% 81% AB% E4% BB% A3% E5% 85% A5% E3% 81% 99% E3% 82% 8B% E3% 81% A8% E3% 81% 84% E3% 81% 86% E3% 83% 97% E3% 83% A9% E3% 82% AF% E3% 83% 86% E3% 82% A3% E3% 82% B9))

Recommended Posts

Python underscore variable
python underscore
python variable expansion, format
Python variable length assignment?
Python
[Python] Variable (definition, output, value change)
What is the python underscore (_) for?
kafka python
Python basics ⑤
python + lottery 6
Python Summary
Built-in python
Python comprehension
Python technique
Studying python
Python 2.7 Countdown
Python memorandum
Python FlowFishMaster
Python service
python tips
python function ①
Python basics
Python memo
ufo-> python (3)
Python comprehension
install python
Python Singleton
Python basics ④
Python Memorandum 2
python memo
Python Jinja2
Python increment
atCoder 173 Python
[Python] function
Python installation
python tips
[Python] Get the variable name with str
Installing Python 3.4.3.
Try python
Python memo
Python iterative
Python algorithm
Python2 + word2vec
[Python] Variables
Python functions
Python sys.intern ()
Python tutorial
Python decimals
Python summary
Start python
[Python] Sort
Note: Python
Python basics ③
python log
Python basics
[Scraping] Python scraping
Python update (2.6-> 2.7)
Variable scope
python memo
Python memorandum
Python # sort