[Tutor] argparse iterable

eryksun eryksun at gmail.com
Tue Apr 2 13:23:06 CEST 2013


On Tue, Apr 2, 2013 at 5:48 AM, Dave Angel <davea at davea.name> wrote:
>
> BTW, can you tell me how you get the #the-namespace-object part of your
> link?  Is there some technique (without actually looking in the source code
> for the page) for finding the nearest id= ?

    <h3>
    16.4.4.6. The Namespace object
      <a class="headerlink" href="#the-namespace-object"
         title="Permalink to this headline">
      ¶
      </a>
    </h3>

The paragraph symbol (¶) appears when you hover over the heading.
Click it to get the anchor. Here's the bit of CSS that makes the
headerlink visible when you hover:

    a.headerlink {
        visibility: hidden;
    }
    h1:hover > a.headerlink,
    h2:hover > a.headerlink,
    h3:hover > a.headerlink,
    h4:hover > a.headerlink,
    h5:hover > a.headerlink,
    h6:hover > a.headerlink,
    dt:hover > a.headerlink {
        visibility: visible;
    }

http://docs.python.org/3/_static/basic.css


More information about the Tutor mailing list