Become a master in Python by learning coding best practices and advanced programming concepts in Python 3.7

ł é

©

www.packtpub.com

ł

–ł

mapt.io

www.packt.com [email protected]

www.packt.com

ł

é

tarek_ziade

authors.packtpub.com

buildout virtualenv

Chapter 1 —

Chapter 2 virtualenv

Chapter 3–

Chapter 4–

Chapter 5

Chapter 6

Chapter 7 –

Chapter 8

Chapter 9

Chapter 10

Chapter 11

Chapter 12

Chapter 13–

Chapter 14–

Chapter 15

Chapter 16

Chapter 17

Appendix A

www.packt.com www.packt.com/support

www.packt.com

https://github.com/ PacktPublishing/Expert-Python-Programming-Third-Edition

https://github.com/PacktPublishing/

http://www.packtpub.com/sites/default/files/downloads/9781789808896_ColorImages .pdf

CodeInText SyntaxError

print("hello world") print "goodbye python2"

[email protected]

www.packt.com/submit-errata

[email protected]

authors.packtpub.com

packt.com



Chapter 1 Chapter 2 

https://www.python.org/downloads/

https://github.com/stackless-dev/stackless https://pypy.org https://www.jython.org https://ironpython.net https://micropython.org

https://github.com/PacktPublishing/ Expert-Python-Programming-Third-Edition/tree/master/chapter1

— —

python- [email protected]

—http://www.python.org/dev/peps/pep-0001

https://www.python.org/dev/peps/

https://python3wos.appspot.com

2to3

https://docs.python.org/3.0/whatsnew/3.0.html

— SyntaxError

print("hello world") print "goodbye python2"

File "script.py", line 2 print "goodbye python2" ^ SyntaxError: Missing parentheses in call to 'print'

Chapter 2Chapter 3 –

print except exc, varexcept exc as var

<>!= from module import * https://docs.python.org/3.0/reference/simple_stmts.html#import from .[module] import name sorted()sort()cmp key //1//2 5.0//2.0 == 2.0

urlparse urllib.parse

import

bytestringbB uu"foo" —

http://semver.org/

Chapter 12

__future__

future

# old literals # now is Unicode

__future__

division absolute_importimport print_functionprint print unicode_literals

__future__ metaclass Chapter 5 future https://pypi.python.org/pypi/six/ http://python-future.org/

compat.py python-gmaps https://github.com/swistakm/python-gmaps

# -*- coding: utf-8 -*- """This module provides compatibility layer for selected things that have changed across Python versions. """ import sys

if sys.version_info < (3, 0, 0): import urlparse # noqa

def is_string(s): """Return True if given value is considered string""" return isinstance(s, basestring)

else: # note: urlparse was moved to urllib.parse in Python 3 from urllib import parse as urlparse # noqa

def is_string(s): """Return True if given value is considered string""" return isinstance(s, str)

compat.py

https://wiki.python.org/moin/PythonImplementations –

stackless

greenlet — https://stackless.readthedocs.io https://github.com/stackless-dev/stackless

http://jackrabbit.apache.org

http://www.jython.org

http://microsoft.github.io/PTVS

http://ironpython.net/

http://speed.pypy.org/

http://pypy.org

print() async/await

https:// .org

https://github.com/vinta/awesome-python https://www.reddit.com/r/Python/ http://www.pythonweekly.com/ https://pycoders.com