diff options
Diffstat (limited to 'pypers/oxford/doctest_talk/split.html')
-rwxr-xr-x | pypers/oxford/doctest_talk/split.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pypers/oxford/doctest_talk/split.html b/pypers/oxford/doctest_talk/split.html new file mode 100755 index 0000000..3cc867a --- /dev/null +++ b/pypers/oxford/doctest_talk/split.html @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.3.4: http://docutils.sourceforge.net/" /> +<title>Documentation for the 'split' module</title> +<link rel="stylesheet" href="default.css" type="text/css" /> +</head> +<body> +<h1 class="title">Documentation for the 'split' module</h1> +<div class="document" id="documentation-for-the-split-module"> +<p>The module contains a 'split' function, which +splits a string taking as separators "," and ";". +This is an example of usage:</p> +<pre class="doctest-block"> +>>> from split import split +>>> split("hello, world!; welcome to the Italian Code Jam!") +['hello', 'world!', 'welcome to the Italian Code Jam!'] +</pre> +<p>Notice that 'split' eats whitespaces:</p> +<pre class="doctest-block"> +>>> split("hello , world") +['hello', 'world'] +</pre> +<pre class="doctest-block"> +>>> split("hello , ; world") +['hello', '', 'world'] +</pre> +</div> +</body> +</html> |