Create constants for offsets into a list
<p>I have a list similar to this:</p>

<pre><code>host_info = ['stackoverflow.com', '213.213.214.213', 'comments', 'desriprion', 'age']
</code></pre>

<p>Sometimes, I need to remove one or more elements from the list and then return the list to the caller. To remove the comments item as an example I'd do this:</p>

<pre><code>host_info.pop(2)
</code></pre>

<p>I'd prefer to use a constant for each item rather than some magic number. </p>

<p>Then I could use:</p>

<pre><code>host_info.pop(comments) # comments is integer 2
</code></pre>

<p>What's the best way to enumerate these constants so it's simple to maintain them when the list offsets change?</p>
