This document discusses Django, a Python web framework. It provides an overview of Django's features like MVT architecture, DRY principles, and Unix philosophy. It also describes starting a Django project, using the admin interface, generic views, templates, tags, filters, pagination, middleware, authentication, caching, internationalization and various Django tools. The document aims to introduce Django and its capabilities for building web applications and sites.
10 Tips for Writing Pythonic Code by Michael KennedyMichael Kennedy
Watch: https://youtu.be/_O23jIXsshs
Course: https://talkpython.fm/pythonic
One of the special concepts in Python is the idea of writing idiomatic code that is most aligned with the language features and ideals. In Python, we call this idiomatic code Pythonic. While this idea is easy to understand, it turns out to be fairly hard to make concrete.
In this webcast, Michael Kennedy from the Talk Python To Me podcast will take you on a tour of 10 of the more popular and useful code examples demonstrating examples of Pythonic code. In the examples, you'll first see non-Pythonic code and then the more natural Pythonic version.
Topics covered include the expansive use of dictionaries, hacking Python's memory usage via slots, using generators, comprehensions, and generator expressions, creating subsets of collections via slices (all the way to the database) and more. Several of these are Python 3 features so you'll have even more reason to adopt Python 3 for your next project.
This document summarizes an advanced Python programming course, covering topics like performance tuning, garbage collection, and extending Python. It discusses profiling Python code to find bottlenecks, using more efficient algorithms and data structures, optimizing code through techniques like reducing temporary objects and inline functions, leveraging faster tools like NumPy, writing extension modules in C, and parallelizing computation across CPUs and clusters. It also explains basic garbage collection algorithms like reference counting and mark-and-sweep used in CPython.
PyCon Poland 2016: Maintaining a high load Python project: typical mistakesViach Kakovskyi
The talk is about typical mistakes which a Python developer without much experience in high load systems can make. Possible issues and preventive actions will be discussed. Expected audience: developers who are new to an existing highly loaded service or folks who develop a system from scratch. All the stuff based on own production experience.
This document discusses Django, a Python web framework. It provides an overview of Django's features like MVT architecture, DRY principles, and Unix philosophy. It also describes starting a Django project, using the admin interface, generic views, templates, tags, filters, pagination, middleware, authentication, caching, internationalization and various Django tools. The document aims to introduce Django and its capabilities for building web applications and sites.
10 Tips for Writing Pythonic Code by Michael KennedyMichael Kennedy
Watch: https://youtu.be/_O23jIXsshs
Course: https://talkpython.fm/pythonic
One of the special concepts in Python is the idea of writing idiomatic code that is most aligned with the language features and ideals. In Python, we call this idiomatic code Pythonic. While this idea is easy to understand, it turns out to be fairly hard to make concrete.
In this webcast, Michael Kennedy from the Talk Python To Me podcast will take you on a tour of 10 of the more popular and useful code examples demonstrating examples of Pythonic code. In the examples, you'll first see non-Pythonic code and then the more natural Pythonic version.
Topics covered include the expansive use of dictionaries, hacking Python's memory usage via slots, using generators, comprehensions, and generator expressions, creating subsets of collections via slices (all the way to the database) and more. Several of these are Python 3 features so you'll have even more reason to adopt Python 3 for your next project.
This document summarizes an advanced Python programming course, covering topics like performance tuning, garbage collection, and extending Python. It discusses profiling Python code to find bottlenecks, using more efficient algorithms and data structures, optimizing code through techniques like reducing temporary objects and inline functions, leveraging faster tools like NumPy, writing extension modules in C, and parallelizing computation across CPUs and clusters. It also explains basic garbage collection algorithms like reference counting and mark-and-sweep used in CPython.
PyCon Poland 2016: Maintaining a high load Python project: typical mistakesViach Kakovskyi
The talk is about typical mistakes which a Python developer without much experience in high load systems can make. Possible issues and preventive actions will be discussed. Expected audience: developers who are new to an existing highly loaded service or folks who develop a system from scratch. All the stuff based on own production experience.
The document discusses PyCon Asia 2010 and volunteering as an organizer. It mentions the dates being February 20-21, 2010 in Singapore. Details provided include there being 15 minute talks and tutorials, as well as 10-11 hours of tutorials on one of the days. Other Python conferences mentioned include PyCon and information on the PyCon 2010 wiki page.
The document discusses Python concepts including yield, generators, list comprehensions, callable objects, the __call__ method, the __len__ method, multiprocessing, metaclasses, and new-style vs old-style classes. Examples are provided to illustrate how to define callable objects and use the __call__ and __len__ methods, as well as how to create a class dynamically using a metaclass.
This document is a series of notes about Python web scraping and networking tools written on September 25, 2009. It introduces the twill browser testing tool, Python network libraries like urllib and httplib, how to make GET and POST requests in Python, handling cookies with cookielib, and the basics of HTTP including GET, POST, HEAD, and PUT/DELETE requests. It concludes with some ideas for projects including web games and scraping data from sites into SQL databases.
The document discusses learning to code games in Python and Pygame. It covers creating a Hero class with attributes like hp and mp, initializing the class, using methods like move(), and overriding the __str__() method to customize how the class is represented when converted to a string. The document also mentions other topics like Java, game shows, and the game Diablo.
The document discusses Tokyo Cabinet and Tokyo Tyrant databases. It provides information on using Python with Tokyo Cabinet, database concepts like SQL and joins, implementing a skeleton for Tokyo Tyrant, and using Tokyo Cabinet for table databases. Examples of applications using Tokyo Cabinet and Django are also mentioned. It concludes by asking about using Tokyo Cabinet and Tokyo Tyrant with Python.
The document discusses Python lists and basic operations on lists like accessing elements, slicing lists, appending to lists, and using list comprehensions. It provides examples of accessing specific elements of a list x, slicing parts of x into new lists, getting the last element of x, appending a new element to x, and using a list comprehension to multiply each element of x by 10. It also briefly mentions Python control flow statements like if, for, and def as well as common data types like lists, tuples, and dictionaries.
The document discusses PyCon Asia 2010 and volunteering as an organizer. It mentions the dates being February 20-21, 2010 in Singapore. Details provided include there being 15 minute talks and tutorials, as well as 10-11 hours of tutorials on one of the days. Other Python conferences mentioned include PyCon and information on the PyCon 2010 wiki page.
The document discusses Python concepts including yield, generators, list comprehensions, callable objects, the __call__ method, the __len__ method, multiprocessing, metaclasses, and new-style vs old-style classes. Examples are provided to illustrate how to define callable objects and use the __call__ and __len__ methods, as well as how to create a class dynamically using a metaclass.
This document is a series of notes about Python web scraping and networking tools written on September 25, 2009. It introduces the twill browser testing tool, Python network libraries like urllib and httplib, how to make GET and POST requests in Python, handling cookies with cookielib, and the basics of HTTP including GET, POST, HEAD, and PUT/DELETE requests. It concludes with some ideas for projects including web games and scraping data from sites into SQL databases.
The document discusses learning to code games in Python and Pygame. It covers creating a Hero class with attributes like hp and mp, initializing the class, using methods like move(), and overriding the __str__() method to customize how the class is represented when converted to a string. The document also mentions other topics like Java, game shows, and the game Diablo.
The document discusses Tokyo Cabinet and Tokyo Tyrant databases. It provides information on using Python with Tokyo Cabinet, database concepts like SQL and joins, implementing a skeleton for Tokyo Tyrant, and using Tokyo Cabinet for table databases. Examples of applications using Tokyo Cabinet and Django are also mentioned. It concludes by asking about using Tokyo Cabinet and Tokyo Tyrant with Python.
The document discusses Python lists and basic operations on lists like accessing elements, slicing lists, appending to lists, and using list comprehensions. It provides examples of accessing specific elements of a list x, slicing parts of x into new lists, getting the last element of x, appending a new element to x, and using a list comprehension to multiply each element of x by 10. It also briefly mentions Python control flow statements like if, for, and def as well as common data types like lists, tuples, and dictionaries.