freeze Documentation Release 0.7.0alpha Jean-Louis Fuchs
|
|
- Johnathan McDaniel
- 5 years ago
- Views:
Transcription
1 freeze Documentation Release 0.7.0alpha Jean-Louis Fuchs April 10, 2014
2
3 Contents i
4 ii
5 freeze.freeze(data_structure) Freeze tries to convert any data-structure in a hierarchy of tuples. freeze.object_to_items(data_structure) Converts a object to a items list respecting also slots. freeze.dump(data_structure) Dump will create a human readable version of your data-structure. freeze.tree_diff_assert(a, b[, n, sort]) User tree_diff() to assert a equals b. freeze.stable_hash(data_structure) Stable hash does: hash(recursive_sort(freeze(data_structure))) freeze.recursive_hash(data_structure) Recursive hash does: hash(freeze(data_structure)) freeze.tree_diff(a, b[, n, sort]) Dump any data-structure or object, traverse it depth-first in-order and appl freeze.vformat(*args, **kwargs) A pformat wrapper that produces narrow representations of data-structure freeze.transparent_repr(string) The result is repr transparent. freeze.traverse_frozen_data(data_structure) Yields the leaves of the frozen data-structure pre-order. freeze.traversalbasedreprcompare(payload) Implements the comparison method for frozen data-structures based on tra Freeze the state of data-structures and objects for data-analysis or testing (diffing data-structures). Frozen datastructures consist of only tuples and these are comparable/sortable/hashable. The freeze() function can be used for many purposes for example implement hash () for your complex object very fast. dump() is intended for testing and analysis. Authors: Jean-Louis Fuchs <ganwell@fangorn.ch> Run doctests with python -m freeze freeze.freeze(data_structure) Freeze tries to convert any data-structure in a hierarchy of tuples. Tuples are comparable/sortable/hashable, you can use this with with recursive_sort(). freeze has no recursion detection. Parameters data_structure The structure to convert. >>> recursive_sort(freeze(_testclass())) (( a, huhu ), ( sub, (( a, slot ), ( b, (1, (1, 2, 3), 2, 3))))) >>> dump((none, (None, None))) (None, (None, None)) freeze.object_to_items(data_structure) Converts a object to a items list respecting also slots. Use dict(object_to_items(obj)) to get a dictionary. freeze.dump(data_structure) Dump will create a human readable version of your data-structure. It will try to dump almost anything, it has recursion detection and will try to display the recursion in a meaningful way. Parameters data_structure The structure to convert. When you freeze only content counts, same content same hash >>> a = hash(freeze(_testclass())) >>> b = hash(freeze(_testclass())) >>> b == a >>> a = freeze(_testclass()) >>> b = freeze(_testclass()) >>> b == a >>> x = _TestClass() >>> a = freeze(dump(x)) >>> b = freeze(dump(x)) Contents 1
6 >>> b == a When you dump-freeze only content/type counts, same content/type same hash Two object of the same type with same content will be equal Two object of the different type with same content will be different >>> a = hash(freeze(dump(_testclass()))) >>> b = hash(freeze(dump(_testclass()))) >>> b == a >>> a = freeze(dump(_testclass())) >>> b = freeze(dump(_testclass())) >>> b == a >>> a = hash(freeze(dump(_testclass()))) >>> b = hash(freeze(dump(_testclass2()))) >>> b!= a >>> a = freeze(dump(_testclass())) >>> b = freeze(dump(_testclass2())) >>> b!= a >>> _py2_to_py3(vformat(dump([1, { a : b }]))) [1, ["<class dict >", { a : b }]] >>> vformat(recursive_sort(dump(_testclass()))) ["<class freeze._testclass >", (( a, huhu ), ( sub, ["<class freeze._testslots >", (( a, slot ), ( b, (1, (1, 2, 3), 2, 3)))]))] >>> a = _TestSlots() >>> b = [a, 1, 2, [a, "banane"]] >>> _no_null_x(vformat(dump(b))) { a : slot, b : [1, 2, 3, (1, 2, 3)]}], 2 Contents
7 1, 2, banane ]] >>> a = [1, 2] >>> _no_null_x(vformat(dump((a, (a, a))))) [1, 2]], >>> recursive_sort(dump(freeze(_testclass()))) (( a, huhu ), ((( a, slot ), ( b, (1, (1, 2, 3), 2, 3))), sub )) >>> dump((none, (None, None))) (None, (None, None)) freeze.tree_diff_assert(a, b, n=5, sort=false) User tree_diff() to assert a equals b. Dump any data-structure or object, traverse it depth-first and apply a unified diff, to display the result. Parameters a data_structure a b data_structure b n (int) lines of context sort sort the data-structure ATTENTION: Sorting means changing the data-structure. The test-result may differ. But in case of dictionaries the results become comparable because the sorting negates the hash-algorithms de-sorting. >>> a = [... [3, 4],... { a : [3, { w : set([4, tree, frozenset([3,5,2])])}]}, >>> b = [... [4, 3],... { a : [3, { w : set([4, 3, frozenset([2,5,3])])}]}, >>> try:... tree_diff_assert(a, b, sort=)... except:... "GOT IT" GOT IT >>> a = [... [3, 4],... { a : [3, { w : set([4, 3, frozenset([3,5,2])])}]}, >>> b = [... [4, 3],... { a : [3, { w : set([ 3, 4, frozenset([2,5,3])])}]}, Contents 3
8 >>> tree_diff_assert(a, b, sort=) >>> a = [... [3, 4],... { a : [3, { w : set([4, 3, frozenset([3,5,2])])}]}, >>> b = [... [4, 3],... { a : [3, { w : set([ 3, 4, frozenset([2,5,3])])}]}, >>> try:... tree_diff_assert(a, b, sort=false)... except:... "GOT IT" GOT IT freeze.stable_hash(data_structure) Stable hash does: hash(recursive_sort(freeze(data_structure))) >>> a = stable_hash(_testclass()) >>> b = stable_hash(_testclass()) >>> a == b freeze.recursive_hash(data_structure) Recursive hash does: hash(freeze(data_structure)) >>> a = recursive_hash(_testclass()) >>> b = recursive_hash(_testclass()) >>> a == b freeze.tree_diff(a, b, n=5, sort=false) Dump any data-structure or object, traverse it depth-first in-order and apply a unified diff. Depth-first in-order is just like structure would be printed. Parameters a data_structure a b data_structure b n (int) lines of context sort sort the data-structure ATTENTION: Sorting means changing the data-structure. The test-result may differ. But in case of dictionaries the results become comparable because the sorting negates the hash-algorithms de-sorting. >>> a = recursive_sort(freeze([... [3, 4],... { a : [3, { w : set([4, 3, frozenset([3,5,2])])}]}, )) 4 Contents
9 >>> b = recursive_sort(freeze([... [7, 3],... { a : [3, { w : set([4, 3, frozenset([2,5,3])])}]}, )) >>> transparent_repr("\n".join(tree_diff(a, -7,6 w ),), 3), a ),), a, (3, - 4)) + 7)) >>> a = [... [3, 4],... { a : [3, { w : set([4, 3, frozenset([3,5,2])])}]}, >>> b = [... [7, 3],... { a : [3, { w : set([4, 3, frozenset([2,5,3])])}]}, >>> transparent_repr("\n".join(... tree_diff(a, b, sort= ,6 3, 4)]),)], 3)),)], a, (3, - 4)) + 7)) freeze.vformat(*args, **kwargs) A pformat wrapper that produces narrow representations of data-structures. The result is repr transparent. Non-printable characters won t be escaped freeze.transparent_repr(string) The result is repr transparent. Non-printable characters won t be escaped >>> transparent_repr(3) 3 freeze.traverse_frozen_data(data_structure) Yields the leaves of the frozen data-structure pre-order. It will produce the same order as one would write the data-structure. class freeze.traversalbasedreprcompare(payload) Implements the comparison method for frozen data-structures based on traverse_frozen_data. Contents 5
10 >>> cm = TraversalBasedReprCompare >>> cm(3) < cm(4) >>> cm(4) > cm(3) >>> cm(3) > cm(4) False >>> cm(3) == cm(3) >>> cm(3) == cm(4) False >>> cm((3, 3)) > cm((3,)) >>> cm((3, 3)) == cm((3, 3)) >>> cm((3,)) > cm((3, 3)) False >>> cm((3,)) == cm((3, 3)) False 6 Contents
11 CHAPTER 1 Indices and tables genindex modindex search 7
12 8 Chapter 1. Indices and tables
13 Python Module Index f freeze,?? 9
streamio Documentation
streamio Documentation Release 0.1.0.dev James Mills April 17, 2014 Contents 1 About 3 1.1 Examples................................................. 3 1.2 Requirements...............................................
More informationBeyond Blocks: Python Session #1
Beyond Blocks: Session #1 CS10 Spring 2013 Thursday, April 30, 2013 Michael Ball Beyond Blocks : : Session #1 by Michael Ball adapted from Glenn Sugden is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike
More informationDEBUGGING TIPS. 1 Introduction COMPUTER SCIENCE 61A
DEBUGGING TIPS COMPUTER SCIENCE 61A 1 Introduction Every time a function is called, Python creates what is called a stack frame for that specific function to hold local variables and other information.
More informationredis-lua Documentation
redis-lua Documentation Release 2.0.8 Julien Kauffmann October 12, 2016 Contents 1 Quick start 3 1.1 Step-by-step analysis........................................... 3 2 What s the magic at play here?
More informationPyTrie Documentation. Release 0.3. George Sakkis
PyTrie Documentation Release 0.3 George Sakkis Jun 05, 2017 Contents 1 Usage 3 2 Reference documentation 5 2.1 Classes.................................................. 5 2.2 Trie methods...............................................
More informationDogeon Documentation. Release Lin Ju
Dogeon Documentation Release 1.0.0 Lin Ju June 07, 2014 Contents 1 Indices and tables 7 Python Module Index 9 i ii DSON (Doge Serialized Object Notation) is a data-interchange format,
More informationtolerance Documentation
tolerance Documentation Release Alisue Apr 1, 217 Contents 1 tolerance 1 1.1 Features.................................................. 1 1.2 Installation................................................
More informationeoddata-client Documentation
eoddata-client Documentation Release 0.3.3 Aleksey Sep 27, 2017 Table of Contents: 1 Usage 1 2 Client API 3 2.1 Http client................................................ 3 2.2 Errors...................................................
More informationDictionaries. By- Neha Tyagi PGT CS KV 5 Jaipur II Shift Jaipur Region. Based on CBSE Curriculum Class -11. Neha Tyagi, KV 5 Jaipur II Shift
Dictionaries Based on CBSE Curriculum Class -11 By- Neha Tyagi PGT CS KV 5 Jaipur II Shift Jaipur Region Introduction Python provides us various options to store multiple values under one variable name.
More informationPyZabbixObj Documentation
PyZabbixObj Documentation Release 0.1 Fabio Toscano Aug 26, 2017 Contents Python Module Index 3 i ii PyZabbixObj Documentation, Release 0.1 PyZabbixObj is a Python module for working with Zabbix API,
More informationScript language: Python Data structures
Script language: Python Data structures Cédric Saule Technische Fakultät Universität Bielefeld 3. Februar 2015 Immutable vs. Mutable Previously known types: int and string. Both are Immutable but what
More informationpython-anyvcs Documentation
python-anyvcs Documentation Release 1.4.0 Scott Duckworth Sep 27, 2017 Contents 1 Getting Started 3 2 Contents 5 2.1 The primary API............................................. 5 2.2 Git-specific functionality.........................................
More informationChapter 1 Summary. Chapter 2 Summary. end of a string, in which case the string can span multiple lines.
Chapter 1 Summary Comments are indicated by a hash sign # (also known as the pound or number sign). Text to the right of the hash sign is ignored. (But, hash loses its special meaning if it is part of
More informationKiki Documentation. Release 0.7a1. Stephen Burrows
Kiki Documentation Release 0.7a1 Stephen Burrows August 14, 2013 CONTENTS i ii Kiki Documentation, Release 0.7a1 Kiki is envisioned as a Django-based mailing list manager which can replace Mailman. CONTENTS
More informationPYTHON FOR MEDICAL PHYSICISTS. Radiation Oncology Medical Physics Cancer Care Services, Royal Brisbane & Women s Hospital
PYTHON FOR MEDICAL PHYSICISTS Radiation Oncology Medical Physics Cancer Care Services, Royal Brisbane & Women s Hospital TUTORIAL 1: INTRODUCTION Thursday 1 st October, 2015 AGENDA 1. Reference list 2.
More informationbottle-rest Release 0.5.0
bottle-rest Release 0.5.0 February 18, 2017 Contents 1 API documentation 3 1.1 bottle_rest submodule.......................................... 3 2 What is it 5 2.1 REST in bottle..............................................
More informationKaiso Documentation. Release 0.1-dev. onefinestay
Kaiso Documentation Release 0.1-dev onefinestay Sep 27, 2017 Contents 1 Neo4j visualization style 3 2 Contents 5 2.1 API Reference.............................................. 5 3 Indices and tables
More informationtld Documentation Release 0.9 Artur Barseghyan
tld Documentation Release 0.9 Artur Barseghyan Jun 13, 2018 Contents 1 Prerequisites 3 2 Documentation 5 3 Installation 7 4 Usage examples 9 5 Update the list of TLD names
More informationUnicum Documentation. Release alpha. Deutsche Postbank AG
Unicum Documentation Release alpha Deutsche Postbank AG Nov 21, 2017 Contents 1 About 1 1.1 unicum.................................................. 1 2 Getting started 3 2.1 Installing.................................................
More informationCS 61A Interpreters, Tail Calls, Macros, Streams, Iterators. Spring 2019 Guerrilla Section 5: April 20, Interpreters.
CS 61A Spring 2019 Guerrilla Section 5: April 20, 2019 1 Interpreters 1.1 Determine the number of calls to scheme eval and the number of calls to scheme apply for the following expressions. > (+ 1 2) 3
More informationdjango-oauth2-provider Documentation
django-oauth2-provider Documentation Release 0.2.7-dev Alen Mujezinovic Aug 16, 2017 Contents 1 Getting started 3 1.1 Getting started.............................................. 3 2 API 5 2.1 provider.................................................
More informationiris-grib Documentation
iris-grib Documentation Release 0.9.0 Met Office August 12, 2016 Contents 1 Loading 3 2 Saving 5 3 Indices and tables 7 3.1 iris_grib.................................................. 7 3.2 iris_grib.message.............................................
More informationMarshmallow-Mongoengine Documentation
Marshmallow-Mongoengine Documentation Release 0.7.7 Emmanuel Leblond January 30, 2017 Contents 1 Contents 3 1.1 Tutorial.................................................. 3 1.2 API Reference..............................................
More informationUNIVERSITY OF CALIFORNIA Department of Electrical Engineering and Computer Sciences Computer Science Division. P. N. Hilfinger
UNIVERSITY OF CALIFORNIA Department of Electrical Engineering and Computer Sciences Computer Science Division CS 164 Spring 2005 P. N. Hilfinger Project #2: Static Analyzer for Pyth Due: Wednesday, 6 April
More informationmaya-cmds-help Documentation
maya-cmds-help Documentation Release Andres Weber May 28, 2017 Contents 1 1.1 Synopsis 3 1.1 1.1.1 Features.............................................. 3 2 1.2 Installation 5 2.1 1.2.1 Windows, etc............................................
More informationArchan. Release 2.0.1
Archan Release 2.0.1 Jul 30, 2018 Contents 1 Archan 1 1.1 Features.................................................. 1 1.2 Installation................................................ 1 1.3 Documentation..............................................
More informationPython review. 1 Python basics. References. CS 234 Naomi Nishimura
Python review CS 234 Naomi Nishimura The sections below indicate Python material, the degree to which it will be used in the course, and various resources you can use to review the material. You are not
More informationlinkgrabber Documentation
linkgrabber Documentation Release 0.2.6 Eric Bower Jun 08, 2017 Contents 1 Install 3 2 Tutorial 5 2.1 Quickie.................................................. 5 2.2 Documentation..............................................
More informationstarbase Documentation
starbase Documentation Release 0.3 Artur Barseghyan March 10, 2014 Contents i ii HBase Stargate (REST API) client wrapper for Python. Read the official documentation of Stargate
More informationBaron Documentation. Release 0.6. Laurent Peuch
Baron Documentation Release 0.6 Laurent Peuch Sep 23, 2018 Contents 1 Introduction 1 2 Github (code, bug tracker, etc.) 3 3 Installation 5 4 RedBaron 7 5 Basic usage 9 6 Table of content 11 6.1 Basic
More informationpyprika Documentation
pyprika Documentation Release 1.0.0 Paul Kilgo February 16, 2014 Contents i ii Pyprika is a Python library for parsing and managing recipes. Its major features are: Support for recognizing a human-friendly
More informationSage Reference Manual: Python technicalities
Sage Reference Manual: Python technicalities Release 8.1 The Sage Development Team Dec 09, 2017 CONTENTS 1 Various functions to debug Python internals 3 2 Variants of getattr() 5 3 Metaclasses for Cython
More informationLecture 15 Binary Search Trees
Lecture 15 Binary Search Trees 15-122: Principles of Imperative Computation (Fall 2017) Frank Pfenning, André Platzer, Rob Simmons, Iliano Cervesato In this lecture, we will continue considering ways to
More informationDevirtualize Documentation
Devirtualize Documentation Release 0.1 Adam Schwalm January 25, 2017 Contents 1 The basics 1 1.1 Requirements............................................... 1 1.2 Installation................................................
More informationpyramid_assetmutator Documentation
pyramid_assetmutator Documentation Release 1.0b1 Seth Davis February 22, 2017 Contents 1 Overview 1 2 Installation 3 3 Setup 5 4 Usage 7 5 Mutators 11 6 Settings 13 7 Asset Concatenation (a.k.a Asset
More informationGenetic Documentation
Genetic Documentation Release 1.1 Ashwin Panchapakesan December 05, 2012 CONTENTS 1 Required Installations 3 1.1 Python 2.7................................................ 3 1.2 PyGame (and all its dependencies)....................................
More informationDynamiX Documentation
DynamiX Documentation Release 0.1 Pascal Held May 13, 2015 Contents 1 Introduction 3 1.1 Resources................................................. 3 1.2 Requirements...............................................
More informationPython Reference (The Right Way) Documentation
Python Reference (The Right Way) Documentation Release 0.1 Jakub Przywóski Sep 30, 2017 Contents 1 Contents 1 1.1 Introduction............................................... 1 1.2 Definitions................................................
More informationSoftware tools for Classical Planning Artificial Intelligence Qatar Fall 2018 Sep 20, 2018
Sep 20, 2018 Contact: Eduardo Feo-Flushing CONTENTS 1 Quick Start 1 1.1 Planning Problem Representation.................................... 1 1.2 The Planning Graph...........................................
More informationEVE Market Data Structures Documentation
EVE Market Data Structures Documentation Release 0.6 Greg Taylor Sep 15, 2017 Contents 1 Documentation 3 1.1 Installation................................................ 3 1.2 Quickstart................................................
More informationCSC148, Lab #4. General rules. Overview. Tracing recursion. Greatest Common Denominator GCD
CSC148, Lab #4 This document contains the instructions for lab number 4 in CSC148H. To earn your lab mark, you must actively participate in the lab. We mark you in order to ensure a serious attempt at
More informationToday: Revisit some objects. Programming Languages. Key data structure: Dictionaries. Using Dictionaries. CSE 130 : Winter 2009
CSE 130 : Winter 2009 Programming Languages Lecture 11: What s in a Name? Today: Revisit some objects Exploit features and build powerful expressions Base: int, float, complex Sequence: string, tuple,
More informationtreelib Documentation
treelib Documentation Release 1.3.0 Xiaming Chen Jul 08, 2018 Contents 1 Install 3 2 Useful APIs 5 2.1 Node Objects.............................................. 5 2.2 Tree Objects..............................................
More informationbehave-webdriver Documentation
behave-webdriver Documentation Release 0.0.1a Spencer Young Mar 08, 2018 Contents 1 behave-webdriver 1 1.1 Installation................................................ 1 1.2 Quickstart................................................
More informationpygtrie Release Jul 03, 2017
pygtrie Release Jul 03, 2017 Contents 1 Features 3 2 Installation 5 3 Upgrading from 0.9.x 7 4 Trie classes 9 5 PrefixSet class 19 6 Version History 21 Python Module Index 23 i ii Implementation of a
More informationStratumGS Documentation
StratumGS Documentation Release 0.1.0 Dave Korhumel May 14, 2016 Contents 1 Documentation 3 1.1 Design.................................................. 3 1.2 Guides..................................................
More information: Intro Programming for Scientists and Engineers Final Exam
Final Exam Page 1 of 6 600.112: Intro Programming for Scientists and Engineers Final Exam Peter H. Fröhlich phf@cs.jhu.edu December 20, 2012 Time: 40 Minutes Start here: Please fill in the following important
More informationpicrawler Documentation
picrawler Documentation Release 0.1.1 Ikuya Yamada October 07, 2013 CONTENTS 1 Installation 3 2 Getting Started 5 2.1 PiCloud Setup.............................................. 5 2.2 Basic Usage...............................................
More informationYouTube API Wrapper Documentation
YouTube API Wrapper Documentation Release 0.1 Alessandro De Noia (Global Radio) June 09, 2016 Contents 1 Installation 3 1.1 Install the library............................................. 3 2 Basic usage
More informationCS150 - Sample Final
CS150 - Sample Final Name: Honor code: You may use the following material on this exam: The final exam cheat sheet which I have provided The matlab basics handout (without any additional notes) Up to two
More informationdatabuild Documentation
databuild Documentation Release 0.0.10 Flavio Curella May 15, 2015 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Quickstart................................................
More informationRPLidar Documentation
RPLidar Documentation Release 0.9.1 Artyom Pavlov May 13, 2017 Contents Python Module Index 5 i ii RPLidar Documentation, Release 0.9.1 Simple and lightweight module for working with RPLidar rangefinder
More informationLists, Tuples and Dictionaries. HORT Lecture 10 Instructor: Kranthi Varala
Lists, Tuples and Dictionaries HORT 59000 Lecture 10 Instructor: Kranthi Varala Core data types Numbers Strings Lists Dictionaries Tuples Files Sets References and dynamic typing Dynamic typing allows
More informationramp Documentation Release 0.1 Ken Van Haren
ramp Documentation Release 0.1 Ken Van Haren January 04, 2013 CONTENTS i ii Ramp is a python package for rapid machine learning prototyping. It provides a simple, declarative syntax for exploring features,
More informationBegin at the beginning
Begin at the beginning Expressions (Syntax) Exec-time Dynamic Values (Semantics) Compile-time Static Types 1. Programmer enters expression 2. ML checks if expression is well-typed Using a precise set of
More informationBRONX COMMUNITY COLLEGE of the City University of New York DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE. Sample Final Exam
BRONX COMMUNITY COLLEGE of the City University of New York DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE CSI33 Sample Final Exam NAME Directions: Solve problems 1 through 5 of Part I and choose 5 of the
More informationpython-aspectlib Release 0.5.0
python-aspectlib 0.5.0 Release 0.5.0 March 17, 2014 Contents i ii aspectlib is an aspect-oriented programming, monkey-patch and decorators library. It is useful when changing behavior in existing code
More informationsolrq Documentation Release Michał Jaworski
solrq Documentation Release 1.1.1 Michał Jaworski Mar 27, 2017 Contents 1 solrq 1 2 usage 3 2.1 quick reference.............................................. 4 3 contributing 7 4 testing 9 5 Detailed
More informationpython-aspectlib Release 0.4.1
python-aspectlib 0.4.1 Release 0.4.1 May 03, 2014 Contents i ii aspectlib is an aspect-oriented programming, monkey-patch and decorators library. It is useful when changing behavior in existing code is
More information\n is used in a string to indicate the newline character. An expression produces data. The simplest expression
Chapter 1 Summary Comments are indicated by a hash sign # (also known as the pound or number sign). Text to the right of the hash sign is ignored. (But, hash loses its special meaning if it is part of
More informationhttps://lambda.mines.edu Why study Python in Principles of Programming Languages? Multi-paradigm Object-oriented Functional Procedural Dynamically typed Relatively simple with little feature multiplicity
More informationLECTURE 3 Python Basics Part 2
LECTURE 3 Python Basics Part 2 FUNCTIONAL PROGRAMMING TOOLS Last time, we covered function concepts in depth. We also mentioned that Python allows for the use of a special kind of function, a lambda function.
More informationtreelib Documentation
treelib Documentation Release 1.4.0 Xiaming Chen Dec 23, 2017 Contents 1 Install 3 2 Useful APIs 5 2.1 Node Objects.............................................. 5 2.2 Tree Objects..............................................
More informationClang Static Analyzer Documentation
Clang Static Analyzer Documentation Release 6 Analyzer Team Aug 13, 2018 Contents 1 Debug Checks 3 1.1 General Analysis Dumpers........................................ 3 1.2 Path Tracking...............................................
More informationdragonfluid Documentation
dragonfluid Documentation Release 0.9.0.a5 Charles J. Daniels September 25, 2015 Contents 1 Welcome to dragonfluid! 3 1.1 About................................................... 3 1.2 It s Not For Everyone..........................................
More informationTPS Documentation. Release Thomas Roten
TPS Documentation Release 0.1.0 Thomas Roten Sep 27, 2017 Contents 1 TPS: TargetProcess in Python! 3 2 Installation 5 3 Contributing 7 3.1 Types of Contributions..........................................
More informationdota2api Documentation
dota2api Documentation Release 1 Joshua Duffy March 04, 2015 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Tutorial..................................................
More informationHome Assistant Documentation
Home Assistant Documentation Release 0.73.0.dev0 Home Assistant Team Jul 14, 2018 Contents 1 homeassistant.bootstrap 3 2 homeassistant.core 5 3 Module contents 7 4 homeassistant.components.device_tracker
More informationCNRS ANF PYTHON Objects everywhere
CNRS ANF PYTHON Objects everywhere Marc Poinot Numerical Simulation Dept. Outline Python Object oriented features Basic OO concepts syntax More on Python classes multiple inheritance reuse introspection
More informationAdvanced Algorithms and Computational Models (module A)
Advanced Algorithms and Computational Models (module A) Giacomo Fiumara giacomo.fiumara@unime.it 2014-2015 1 / 34 Python's built-in classes A class is immutable if each object of that class has a xed value
More informationBasilisk Documentation
Basilisk Documentation Release 0.1 Bonnier Business Polska November 12, 2015 Contents 1 Indices and tables 7 Python Module Index 9 i ii Contents: Basilisk enables Pythonic use of Redis hashes, lists and
More informationRiotWatcher Documentation
RiotWatcher Documentation Release 2.5.0 pseudonym117 Jan 29, 2019 Contents 1 To Start... 3 2 Using it... 5 3 Main API and other topics 7 4 Indices and tables 15 Python Module Index 17 i ii RiotWatcher
More informationpython-docker-machine Documentation
python-docker-machine Documentation Release 0.2.4 Gijs Molenaar Aug 25, 2017 Contents 1 Introduction 3 2 installation 5 3 Usage 7 4 Indices and tables 11 Python Module Index 13 i ii python-docker-machine
More informationCSCA08 Winter Week 12: Exceptions & Testing. Marzieh Ahmadzadeh, Brian Harrington University of Toronto Scarborough
CSCA08 Winter 2018 Week 12: Exceptions & Testing Marzieh Ahmadzadeh, Brian Harrington University of Toronto Scarborough Administrative stuff We ll have a surprise for you: An extra exercise! You don t
More informationPython Finite State Machine. Release 0.1.5
Python Finite State Machine Release 0.1.5 Sep 15, 2017 Contents 1 Overview 1 1.1 Installation................................................ 1 1.2 Documentation..............................................
More informationPrinciples of Functional Programming
15-150 Principles of Functional Programming Some Slides for Lecture 16 Modules March 20, 2018 Michael Erdmann Signatures & Structures A signature specifies an interface. A structure provides an implementation.
More informationIterators & Generators
Iterators & Generators Sequences A sequence is something that you can: Index into Get the length of What are some examples of sequences? Sequences We ve been working with sequences all semester! Examples:
More informationFaculty of Science FINAL EXAMINATION
Faculty of Science FINAL EXAMINATION COMPUTER SCIENCE COMP 250 INTRODUCTION TO COMPUTER SCIENCE Examiner: Prof. Michael Langer April 27, 2010 Associate Examiner: Mr. Joseph Vybihal 9 A.M. 12 P.M. Instructions:
More informationipython-gremlin Documentation
ipython-gremlin Documentation Release 0.0.4 David M. Brown Mar 16, 2017 Contents 1 Releases 3 2 Requirements 5 3 Dependencies 7 4 Installation 9 5 Getting Started 11 5.1 Contribute................................................
More informationPython wrapper for Viscosity.app Documentation
Python wrapper for Viscosity.app Documentation Release Paul Kremer March 08, 2014 Contents 1 Python wrapper for Viscosity.app 3 1.1 Features.................................................. 3 2 Installation
More informationPage. User. Sorting Mini-HOW TO. Search Titles Text. More Actions: HowTo Sorting. HowTo/Sorting
1 of 8 01/09/2013 04:30 PM This is Google's cache of http://wiki.python.org/moin/howto/sorting/. It is a snapshot of the page as it appeared on Jan 3, 2013 05:54:53 GMT. The current page could have changed
More informationbzz Documentation Release Rafael Floriano and Bernardo Heynemann
bzz Documentation Release 0.1.0 Rafael Floriano and Bernardo Heynemann Nov 15, 2017 Contents 1 Getting Started 3 2 Flattening routes 5 3 Indices and tables 7 3.1 Model Hive................................................
More informationPython State Machine Documentation
Python State Machine Documentation Release 0.7.1 Fernando Macedo Jan 17, 2019 Contents 1 Python State Machine 3 1.1 Getting started.............................................. 3 2 Installation 9 2.1
More informationMyVariant.py Documentation
MyVariant.py Documentation Release v0.3.1 Chunlei Wu Jul 11, 2017 Contents 1 Requirements 3 2 Optional dependencies 5 3 Installation 7 4 Version history 9 5 Tutorial 11 6 API 13 7 Indices and tables 19
More informationPython Release September 11, 2014
Python Release September 11, 2014 Contents 1 Overview 3 2 History 5 3 Changes 7 4 API 9 4.1 Basic usage................................................ 9 4.2 Exceptions................................................
More informationArangoDB Python Driver Documentation
ArangoDB Python Driver Documentation Release 0.1a Max Klymyshyn May 24, 2017 Contents 1 Features support 1 2 Getting started 3 2.1 Installation................................................ 3 2.2 Usage
More informationpyshk Documentation Release Jeremy Low
pyshk Documentation Release 1.1.0 Jeremy Low December 20, 2015 Contents 1 Warnings 3 2 Installation 5 3 Authentication Tutorial 7 3.1 Introduction............................................... 7 3.2
More informationCommunity detection for NetworkX Documentation
Community detection for NetworkX Documentation Release 2 Thomas Aynaud Feb 19, 2018 Contents 1 Indices and tables 7 2 Community detection for NetworkX s documentation 9 3 Example : 11 3.1 As a classical
More informationCSC148 Recipe for Designing Classes
Part 1: Define the API for the class CSC148 Recipe for Designing Classes Download the sample code here: https://www.teach.cs.toronto.edu/~csc148h/fall/lectures/object-oriented-programming/common/course.
More informationWorking with Lists 4
CS 61A Lecture 10 Announcements Lists ['Demo'] Working with Lists 4 Working with Lists >>> digits = [1, 8, 2, 8] 4 Working with Lists >>> digits = [1, 8, 2, 8] >>> digits = [2//2, 2+2+2+2, 2, 2*2*2] 4
More informationFriendlyShell Documentation
FriendlyShell Documentation Release 0.0.0.dev0 Kevin S. Phillips Nov 15, 2018 Contents: 1 friendlyshell 3 1.1 friendlyshell package........................................... 3 2 Overview 9 3 Indices
More informationTail Recursion: Factorial. Begin at the beginning. How does it execute? Tail recursion. Tail recursive factorial. Tail recursive factorial
Begin at the beginning Epressions (Synta) Compile-time Static Eec-time Dynamic Types Values (Semantics) 1. Programmer enters epression 2. ML checks if epression is well-typed Using a precise set of rules,
More informationMicroPython Development Documentation Documentation
MicroPython Development Documentation Documentation Release 1.0 Radomir Dopieralski Nov 12, 2017 Contents 1 Introduction 3 2 Directory Structure 5 2.1 Docs, Logo and Examples........................................
More informationTorndb Release 0.3 Aug 30, 2017
Torndb Release 0.3 Aug 30, 2017 Contents 1 Release history 3 1.1 Version 0.3, Jul 25 2014......................................... 3 1.2 Version 0.2, Dec 22 2013........................................
More informationdjango-crucrudile Documentation
django-crucrudile Documentation Release 0.9.1 Hugo Geoffroy (pstch) July 27, 2014 Contents 1 Installation 1 1.1 From Python package index....................................... 1 1.2 From source...............................................
More informationpybdg Documentation Release 1.0.dev2 Outernet Inc
pybdg Documentation Release 1.0.dev2 Outernet Inc April 17, 2016 Contents 1 Source code 3 2 License 5 3 Documentation 7 Python Module Index 15 i ii Bitloads, or bit payloads, are compact payloads containing
More informationMultiple and Virtual Inheritance in C++
Multiple and Virtual Inheritance in C++ Initialization of virtual bases Final classes in C++ Multiple inheritance, virtual members and virtual inheritance. Construction order with multiple inheritance
More informationSide note: Tail Recursion. Begin at the beginning. Side note: Tail Recursion. Base Types. Base Type: int. Base Type: int
Begin at the beginning Epressions (Synta) Compile-time Static Eec-time Dynamic Types Values (Semantics) 1. Programmer enters epression 2. ML checks if epression is well-typed Using a precise set of rules,
More informationLecture #15: Generic Functions and Expressivity. Last modified: Wed Mar 1 15:51: CS61A: Lecture #16 1
Lecture #15: Generic Functions and Expressivity Last modified: Wed Mar 1 15:51:48 2017 CS61A: Lecture #16 1 Consider the function find: Generic Programming def find(l, x, k): """Return the index in L of
More informationData Handing in Python
Data Handing in Python As per CBSE curriculum Class 11 Chapter- 3 By- Neha Tyagi PGT (CS) KV 5 Jaipur(II Shift) Jaipur Region Introduction In this chapter we will learn data types, variables, operators
More information