Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items

If the argument is a tuple, the return value is the same object.

src/p/y/python-creole-1.1.1/creole/html_parser/parser.py   python-creole(Download)
import warnings
 
from creole.html_parser.config import BLOCK_TAGS, IGNORE_TAGS
from creole.html_tools.strip_html import strip_html
from creole.py3compat import TEXT_TYPE, BINARY_TYPE
    def handle_starttag(self, tag, attrs):
        self.debug_msg("starttag", "%r atts: %s" % (tag, attrs))
 
        if tag in IGNORE_TAGS:
            return
    def handle_endtag(self, tag):
        if tag in IGNORE_TAGS:
            return
 
        self.debug_msg("endtag", "%r" % tag)

src/p/y/python-creole-HEAD/creole/html_parser/parser.py   python-creole(Download)
import warnings
 
from creole.html_parser.config import BLOCK_TAGS, IGNORE_TAGS
from creole.html_tools.strip_html import strip_html
from creole.py3compat import TEXT_TYPE, BINARY_TYPE
    def handle_starttag(self, tag, attrs):
        self.debug_msg("starttag", "%r atts: %s" % (tag, attrs))
 
        if tag in IGNORE_TAGS:
            return
    def handle_endtag(self, tag):
        if tag in IGNORE_TAGS:
            return
 
        self.debug_msg("endtag", "%r" % tag)