Shallow copy

shallowcopyShallow copy

import copy
box2 = copy.copy(box)
p. 279

Think Python 2e
by Allen B. Downey


Think Python, 2e ©2016

Think Python 2e
by Allen B. Downey

recommended by: Coursera Exploring Neural Data! 2014

from this book:

Building Machine Learning Systems with Python (Community Experience Distilled)
July 26, 2013
by Willi Richert, Luis Pedro Coelho

Machine Learning: The Art and Science of Algorithms that Make Sense of Data November 12, 2012
by Peter Flach

Bayesian Reasoning and Machine Learning
March 12, 2012
by David Barber

Foundations of Machine Learning (Adaptive Computation and Machine Learning series) August 17, 2012
Mehryar Mohri, Afshin Rostamizadeh, Ameet Talwalkar

Introduction to Machine Learning (Adaptive Computation and Machine Learning series)
August 22, 2014
by Ethem Alpaydin

Understanding Machine Learning: From Theory to Algorithms
May 19, 2014
Shai Shalev-Shwartz, Shai Ben-David

Machine Learning: An Algorithmic Perspective, Second Edition (Chapman & Hall/Crc Machine Learning & Pattern Recognition)
October 8, 2014
by Stephen Marsland

Doing Bayesian Data Analysis, Second Edition: A Tutorial with R, JAGS, and Stan
November 17, 2014
by John Kruschke

Bayesian Data Analysis, Third Edition (Chapman & Hall/CRC Texts in Statistical Science)
November 1, 2013
by Andrew Gelman

Bayes’ Rule: A Tutorial Introduction to Bayesian Analysis
June 4, 2013
by James V Stone

Think Bayes
October 4, 2013
by Allen B. Downey
O’Reilly Media

Think Complexity: Complexity Science and Computational Modeling
March 12, 2012
by Allen B. Downey
O’Reilly Media

Python 3 Object Oriented Programming
July 26, 2010
by Dusty Phillips

Core Python Applications Programming (3rd Edition) (Core Series)
March 19, 2012
by Wesley Chun
Prentice Hall

Object diagram

object_diagramObject diagram
Think Python 2e
by Allen B. Downey

embeddedEmbedded object

The Python Tutorial » 9. Classes

The Python Standard Library » 29. Python Runtime Services »
29.12. inspect — Inspect live objects



returns None on success

for reversing strings: Extended slices


Lambda expressions

lambdaLambda expressions

in list comprehensions

constructing an iterator with filter(function, iterable)


mysql-connector-python 2.1.5

connector_invisibleThe installed version (mysql-connector-python-2.1.5-py3.4-winx64.msi) is undetected by Oracle’s MySQL


connector…ending support for OS versions that are obsolete or have reached end of life, we plan to discontinue building all MySQL binaries for Microsoft Windows 7 as of June 23, 2016

MySQL 5.7.1 since ~ April 2013

mysql-connector-python 2.1.5
MySQL driver written in Python is this page updated??

MySQL Connector/Python Developer Guide
Chapter 1 Introduction to MySQL Connector/Python
up to and including MySQL Server version 5.7.
Chapter 3 Connector/Python Versions
Another recommendation is to declare a numeric primary key for each table, which offers the fastest way to look up values and can act as a pointer to associated values in other tables (a foreign key).


import mysql.connector





For nonbuffered cursors, rows are not fetched from the server until a row-fetching method is called.
In this case, you must be sure to fetch all rows of the result set before executing any other statements on the same connection, or an InternalError (Unread result found) exception will be raised.
solution: cnx.close()


“developer milestone”



netstatnetstat -tulpn

(win+R) and type “resmon.exe”