100% found this document useful (3 votes)
52 views

Get Python: 3 books in 1: Beginner’s guide, Data science and Machine learning. The easiest guide to start Python programming. Unlock your programmer potential and develop your project in just 30 days First Edition William Dimick PDF ebook with Full Chapters Now

project

Uploaded by

neaceshaiamd
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
52 views

Get Python: 3 books in 1: Beginner’s guide, Data science and Machine learning. The easiest guide to start Python programming. Unlock your programmer potential and develop your project in just 30 days First Edition William Dimick PDF ebook with Full Chapters Now

project

Uploaded by

neaceshaiamd
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 55

Download the Full Version of textbook for Fast Typing at textbookfull.

com

Python: 3 books in 1: Beginner’s guide, Data


science and Machine learning. The easiest guide to
start Python programming. Unlock your programmer
potential and develop your project in just 30 days
First Edition William Dimick
https://textbookfull.com/product/python-3-books-
in-1-beginners-guide-data-science-and-machine-learning-the-
easiest-guide-to-start-python-programming-unlock-your-
programmer-potential-and-develop-your-project-in-just-30-d/

OR CLICK BUTTON

DOWNLOAD NOW

Download More textbook Instantly Today - Get Yours Now at textbookfull.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Advanced Guide to Python 3 Programming Hunt

https://textbookfull.com/product/advanced-guide-to-
python-3-programming-hunt/

textboxfull.com

Python Real World Machine Learning: Real World Machine


Learning: Take your Python Machine learning skills to the
next level 1st Edition Joshi
https://textbookfull.com/product/python-real-world-machine-learning-
real-world-machine-learning-take-your-python-machine-learning-skills-
to-the-next-level-1st-edition-joshi/
textboxfull.com

Make Your Own Python Text Adventure: A Guide to Learning


Programming 1st Edition Phillip Johnson

https://textbookfull.com/product/make-your-own-python-text-adventure-
a-guide-to-learning-programming-1st-edition-phillip-johnson/

textboxfull.com

Competitive Programming in Python: 128 Algorithms to


Develop your Coding Skills 1st Edition Christoph Dürr

https://textbookfull.com/product/competitive-programming-in-
python-128-algorithms-to-develop-your-coding-skills-1st-edition-
christoph-durr/
textboxfull.com
Learn Python Programming A beginner s guide to learning
the fundamentals of Python language to write efficient
high quality code Romano
https://textbookfull.com/product/learn-python-programming-a-beginner-
s-guide-to-learning-the-fundamentals-of-python-language-to-write-
efficient-high-quality-code-romano/
textboxfull.com

CPython Internals Your Guide to the Python 3 Interpreter


1st Edition Anthony Shaw

https://textbookfull.com/product/cpython-internals-your-guide-to-the-
python-3-interpreter-1st-edition-anthony-shaw/

textboxfull.com

Introduction to Machine Learning with Python A Guide for


Data Scientists Andreas C. Müller

https://textbookfull.com/product/introduction-to-machine-learning-
with-python-a-guide-for-data-scientists-andreas-c-muller/

textboxfull.com

Mastering Machine Learning with Python in Six Steps: A


Practical Implementation Guide to Predictive Data
Analytics Using Python 1st Edition Manohar Swamynathan
(Auth.)
https://textbookfull.com/product/mastering-machine-learning-with-
python-in-six-steps-a-practical-implementation-guide-to-predictive-
data-analytics-using-python-1st-edition-manohar-swamynathan-auth/
textboxfull.com

Teach Your Kids to Code A Parent Friendly Guide to Python


Programming 1st Edition Bryson Payne

https://textbookfull.com/product/teach-your-kids-to-code-a-parent-
friendly-guide-to-python-programming-1st-edition-bryson-payne/

textboxfull.com
Python
3 books in 1

Beginner’s guide, Data science and Machine


learning.
The easiest guide to get started in Python
programming. Unlock your programmer potential
and develop your project in just 30 days.

William Dimick
© Copyright 2020 - All rights reserved.
The content contained within this book may not be reproduced, duplicated or transmitted without
direct written permission from the author or the publisher.
Under no circumstances will any blame or legal responsibility be held against the publisher, or
author, for any damages, reparation, or monetary loss due to the information contained within this
book. Either directly or indirectly.
Legal Notice:
This book is copyright protected. This book is only for personal use. You cannot amend, distribute,
sell, use, quote or paraphrase any part, or the content within this book, without the consent of the
author or publisher.
Disclaimer Notice:
Please note the information contained within this document is for educational and entertainment
purposes only. All effort has been executed to present accurate, up to date, and reliable, complete
information. No warranties of any kind are declared or implied. Readers acknowledge that the author
is not engaging in the rendering of legal, financial, medical or professional advice. The content
within this book has been derived from various sources. Please consult a licensed professional before
attempting any techniques outlined in this book.
By reading this document, the reader agrees that under no circumstances is the author responsible for
any losses, direct or indirect, which are incurred as a result of the use of the information contained
within this document, including, but not limited to, — errors, omissions, or inaccuracies.
Python for beginners
Introduction
Chapter 1: Installing Python
Lосаl Envіrоnmеnt Sеtuр
Gеttіng Pуthоn
Inѕtаllіng Pуthоn
Hеrе Is A Quick Оvеrvіеw Оf Installing Python Оn Various Platforms:
Unіx And Lіnux Installation
Wіndоwѕ Installation
Macintosh Inѕtаllаtіоn
Setting Uр PATH
Sеttіng Path at Unіx/Lіnux
Sеttіng Раth Аt Windows
Pуthоn Environment Variables
Runnіng Pуthоn
Intеrасtіvе Interpreter
Script from The Cоmmаnd-Lіnе
Intеgrаtеd Dеvеlорmеnt Envіrоnmеnt
IDLE
A Fіlе Edіtоr
Edіtіng A Fіlе
How to Improve Yоur Wоrkflоw
Chapter 2: Python Loops and Numbers
Loops
Numbers
Chapter 3: Data Types
String Manipulation
String Formatting
Type Casting
Assignment and Formatting Exercise
Chapter 4: Variable in Python
Variable Vs. Constants
Variables Vs. Literals
Variables Vs. Arrays
Classifications of Python Arrays Essential for Variables
Naming Variables
Learning Python Strings, Numbers and Tuple
Types of Data Variables
Chapter 5: Inputs, Printing, And Formatting Outputs
Inputs
Printing and Formatting Outputs
Input and Formatting Exercise
Chapter 6: Mathematical Notation, Basic Terminology, and Building
Machine Learning Systems
Mathematical Notation for Machine Learning
Terminologies Used for Machine Learning
Chapter 7: Lists and Sets Python
Lists
Sets
Chapter 8: Conditions Statements
“if” statements
Else Statements
Code Blocks
While
For Loop
Break
Infinite Loop
Continue
Practice Exercise
Chapter 9: Iteration
While Statement
Definite and Indefinite Loops
The for Statement
Chapter 10: Functions and Control Flow Statements in Python
What is a Function?
Defining Functions
Call Function
Parameters of Function
Default Parameters
What is the control flow statements?
break statement
continue statement
pass statement
else statement
Conclusion:
Python for Data Science
Introduction:
Chapter 1 : What is Data Analysis?
Chapter 2: The Basics of the Python Language
The Statements
The Python Operators
The Keywords
Working with Comments
The Python Class
How to Name Your Identifiers
Python Functions
Chapter 3: Using Pandas
Pandas
Chapter 4: Working with Python for Data Science
Why Python Is Important?
What Is Python?
Python's Position in Data Science
Data Cleaning
Data Visualization
Feature Extraction
Model Building
Python Installation
Installation Under Windows
Conda
Spyder
Installation Under MAC
Installation Under Linux
Install Python
Chapter 5: Indexing and Selecting Arrays
Conditional selection
NumPy Array Operations
Array – Array Operations
Array – Scalar operations
Chapter 6: K-Nearest Neighbors Algorithm
Splitting the Dataset
Feature Scaling
Training the Algorithm
Evaluating the Accuracy
K Means Clustering
Data Preparation
Visualizing the Data
Creating Clusters
Chapter 7: Big Data
The Challenge
Applications in the Real World
Chapter 8: Reading Data in your Script
Reading data from a file
Dealing with corrupt data
Chapter 9: The Basics of Machine Learning
The Learning Framework
PAC Learning Strategies
The Generalization Models
Chapter 10: Using Scikit-Learn
Uses of Scikit-Learn
Representing Data in Scikit-Learn
Tabular Data
Features Matrix
Target Arrays
Understanding the API
Conclusion:
Machine learning with Python
Introduction:
Chapter 1: Python Installation
Anaconda Python Installation
Jupyter Notebook
Fundamentals of Python programming
Chapter 2: Python for Machine Learning
Chapter 3: Data Scrubbing
What is Data Scrubbing?
Removing Variables
One-hot Encoding
Drop Missing Values
Chapter 4: Data Mining Categories
Predictive Modeling
Analysis of Associations
Group Analysis
Anomaly Detection
Chapter 5: Difference Between Machine Learning and AI
What is artificial intelligence?
How is machine learning different?
Chapter 6: K-Means Clustering
Data Preparation
Visualizing the Data
Creating Clusters
Chapter 7: Linear Regression with Python
Chapter 8: Feature Engineering
Rescaling Techniques
Creating Derived Variables
Non-Numeric Features
Chapter 9: How Do Convolutional Neural Networks Work?
Pixels and Neurons
The Pre-Processing
Convolutions
Filter: Kernel Set
Activation Function
Subsampling
Subsampling with Max-Pooling
Now, More Convolutions!
Connect With a "Traditional" Neural Network
Chapter 10: Top AI Frameworks and Machine Learning Libraries
TеnѕоrFlоw
Ѕсikit-lеаrn
AI as a Dаtа Analyst
Thеаnо
Caffe
Keras
Miсrоѕоft Cоgnitivе Tооlkit
PyTorch
Tоrсh
Chapter 11: The Future of Machine Learning
Conclusion:
PYTHON FOR BEGINNERS:

The survival guide to start programming


from scratch. Get involved in the learning
process, master Python code and reach your
goals now without efforts.

William Dimick
© Copyright 2020 - All rights reserved.
The content contained within this book may not be reproduced, duplicated or transmitted without
direct written permission from the author or the publisher.
Under no circumstances will any blame or legal responsibility be held against the publisher, or
author, for any damages, reparation, or monetary loss due to the information contained within this
book. Either directly or indirectly.
Legal Notice:
This book is copyright protected. This book is only for personal use. You cannot amend, distribute,
sell, use, quote or paraphrase any part, or the content within this book, without the consent of the
author or publisher.
Disclaimer Notice:
Please note the information contained within this document is for educational and entertainment
purposes only. All effort has been executed to present accurate, up to date, and reliable, complete
information. No warranties of any kind are declared or implied. Readers acknowledge that the author
is not engaging in the rendering of legal, financial, medical or professional advice. The content
within this book has been derived from various sources. Please consult a licensed professional before
attempting any techniques outlined in this book.
By reading this document, the reader agrees that under no circumstances is the author responsible for
any losses, direct or indirect, which are incurred as a result of the use of the information contained
within this document, including, but not limited to, — errors, omissions, or inaccuracies.
Introduction

So, you have heard about this programming language that everyone
considers amazing, easy and fast…. the language of the future. You sit with
your friends, and all they have to talk about is essentially gibberish to you,
and yet it seems interesting to the rest of them. Perhaps you plan to lead a
business, and a little research into things reveals that a specific language is
quite a lot in demand these days. Sure enough, you can hire someone to do
the job for you, but how would you know if the job is being done the way
you want it to be, top-notch in quality and original in nature?
Whether you aim to pursue a career out of this journey, you are about to
embark on or set up your own business to serve hundreds of thousands of
clients who are looking for someone like you; you need to learn Python.
When it comes to Python, there are so many videos and tutorials which you
can find online. The problem is that each seems to be heading in a different
direction. There is no way to tell which structure you need to follow, or
where you should begin and where should it end. There is a good possibility
you might come across a video that seemingly answers your call, only to
find out that the narrator is not explaining much and pretty much all you
see, you have to guess what it does.
I have seen quite a few tutorials like that by myself. They can be annoying
and some even misleading. Some programmers will tell you that you are
already too late to learn Python and that you will not garner the kind of
success you seek out for yourself. Let me put such rumors and ill-messages
to rest.
● Age – It is just a number. What truly matters are the desire you have to
learn. You do not need to be X years old to learn this effectively.
Similarly, there is no upper limit of Y years for the learning process.
You can be 60 and still be able to learn the language and execute
brilliant commands. All it requires is a mind that is ready to learn and a
piece of good knowledge on how to operate a computer, open and close
programs, and download stuff from the internet. That’s it!
● Language – Whether you are a native English speaker or a non-native
one, the language is open for all. As long as you can form basic
sentences and make sense out of them, you should easily be able to
understand the language of Python itself. It follows something called the
“clean-code” concept, which effectively promotes the readability of
codes.
● Python is two decades old already – If you are worried that you are two
decades late, let me remind you that Python is a progressive language in
nature. That means, every year, we find new additions to the language of
Python, and some obsolete components are removed as well. Therefore,
the concept of “being too late” already stands void. You can learn today,
and you will already be familiar with every command by the end of a
year. Whatever has existed so far, you will already know. What would
follow then, you will eventually pick up. There is no such thing as being
too late to learn Python.
Of course, some people are successful and some not. Everything boils down
to how effectively and creatively you use the language to execute problems
and solutions. The more original your program is, the better you fare off.
“I vow that I will give my best to learn the language of Python and master
the basics. I also promise to practice writing codes and programs after I am
done with this book.”
Bravo! You just took the first step. Now, we are ready to turn the clock back
a little and see exactly where Python came from. If you went through the
introduction, I gave you a brief on how Python came into existence, but I
left out quite a few parts. Let us look into those and see why Python was the
need of the hour.
Before the inception of Python, and the famous language that it has gone on
to become, things were quite different. Imagine a world where programmers
gathered from across the globe in a huge computer lab. You have some of
the finest minds from the planet, working together towards a common goal,
whatever that might be. Naturally, even the finest intellectuals can end up
making mistakes.
Suppose one such programmer ended up creating a program, and he is not
too sure of what went wrong. The room is full of other programmers, and
sure enough, approaching someone for assistance would be the first thought
of the day. The programmer approaches another busy person who gladly
decides to help out a fellow intellectual programmer. Within that brief walk
from one station to the other, the programmer quickly exchanges the
information, which seems to be a common error. It is only when the
programmer views the code that they are caught off-guard. This fellow
member has no idea what any of the code does. The variables are labeled
with what can only be defined as encryptions. The words do not make any
sense, nor is there any way to find out where the error lies.
The compiler continues to throw in error after error. Remember, this was
well before 1991 when people did not have IDEs, which would help them
see where the error is and what needs to be done. The entire exercise would
end up wasting hours upon hours just to figure out that a semi-colon was
missing. Embarrassing and time-wasting!
This was just a small example, imagine the entire thing but on a global
scale. The programming community struggled to find ways to write codes
that could be understood easily by others. Some languages supported some
syntaxes, while others did not. These languages would not necessarily work
in harmony with each other, either. The world of programming was a mess.
Had Python not come at the opportune moment that it did, things would
have been so much more difficult for us to handle.
Guido Van Rossum, a Dutch-programmer, decided to work on a pet project.
Yes, you read that, right! Mr. Van Rossum wanted to keep himself occupied
during the holiday season and, hence, decided to write a new interpreter for
a language he had been thinking of lately. He decided to call the language
Python, and contrary to popular belief, it has nothing to do with the reptile
itself. Tracing its root from its predecessor, the ABC, Python came into
existence just when it was needed.
For our non-programming friends, ABC is the name of an old programming
language. Funny as it may sound, naming conventions wasn't exactly the
strongest here.
Python was quickly accepted by the programming community, albeit there
is the fact that programmers were a lot less numerous back then. It’s
revolutionary user-friendliness, responsive nature and adaptability
immediately caught the attention of everyone around. The more people
vested their time into this new language, the more Mr. Van Rossum started
investing his resources and knowledge to enhance the experience further.
Within a short period, Python was competing against the then leading
languages of the world. It soon went on to outlive quite a few of them
owing to the core concept is brought to the table: ease of readability. Unlike
any other programming language of that time, Python delivered codes that
were phenomenally easy to read and understand right away.
Remember our friend, the programmer, who asked for assistance? If he
were to do that now, the other fellow would immediately understand what
was going on.
Python also acquired fame for being a language that had an object-oriented
approach. This opened more usability of the language to the programmers
who required an effective way to manipulate objects. Think of a simple
game. Anything you see within it is an object that behaves in a certain way.
Giving that object that ‘sense’ is object-oriented programming (OOP).
Python was able to pull that off rather easily. Python is considered as a
multi-paradigm language, with OOP being a part of that as well.
Fast forward to the world we live in, and Python continues to dominate
some of the cutting-edge technologies in existence. With real-world
applications and a goliath of a contribution to aspects like machine learning,
data sciences, and analytics, Python is leading the charge with full force.
An entire community of programmers has dedicated their careers to
maintain Python and develop it as time goes by. As for the founder, Mr. Van
Rossum initially accepted the title of Benevolent Dictator for Life (BDFL)
and retired on 12 July 2018. This title was bestowed upon Mr. Van Rossum
by the Python community.
Today, Python 3 is the leading version of the language alongside Python 2,
which has its days numbered. You do not need to learn both of these to
succeed. We will begin with the latest version of Python as almost
everything that was involved in the previous version was carried forward,
except for components that were either dull or useless.
I know, right about now you are rather eager to dive into the concepts and
get done with history. It is vital for us to learn a few things about the
language and why it came into existence in the first place. This information
might be useful at some point in time, especially if you were to look at
various codes and identify which one of those was written in Python and
which one was not.
For anyone who may have used languages like C, C++, C#, JavaScript, you
might find quite a few similarities within Python, and some major
improvements too. Unlike in most of these languages, where you need to
use a semicolon to let the compiler know that the line has ended, Python
needs none of that. Just press enter and the program immediately
understands that the line has ended.
Before we do jump ahead, remember how some skeptics would have you
believe it is too late to learn Python? It is because of Python that self-
driving cars are coming into existence. Has the world seen too much of
them already? When was the last time you saw one of these vehicles on the
road? This is just one of a gazillion possibilities that lay ahead for us to
conquer. All it needs is for us to learn the language, brush up our skills, and
get started.
“A journey to a thousand miles begins with the first step. After that, you are
already one step closer to your destination.”
Chapter 1: Installing Python

Pуthоn can bе оbtаіnеd frоm thе Pуthоn Sоftwаrе Fоundаtіоn website аt


руthоn.оrg. Tурісаllу, thаt involves downloading the аррrорrіаtе іnѕtаllеr
fоr your ореrаtіng ѕуѕtеm аnd running it on your mасhіnе. Sоmе ореrаtіng
ѕуѕtеmѕ, nоtаblу Lіnux, provide a расkаgе manager thаt саn bе run to
іnѕtаll Pуthоn.
Pуthоn іѕ аvаіlаblе on a wіdе vаrіеtу оf platforms including Linux аnd Mac
OS X. Lеt'ѕ undеrѕtаnd hоw tо ѕеt uр оur Pуthоn environment.
Lосаl Envіrоnmеnt Sеtuр
Open a tеrmіnаl wіndоw and type "руthоn" tо fіnd оut іf іt is already
іnѕtаllеd and whісh vеrѕіоn іѕ іnѕtаllеd.

Unіx (Sоlаrіѕ, Linux, FrееBSD, AIX, HP/UX, SunOS, IRIX,


еtс.)
Wіn 9x/NT/2000
Macintosh (Intel, PPC, 68K)
OS/2
DOS (multiple versions)
PаlmOS
Nokia mоbіlе рhоnеѕ
Wіndоwѕ CE
Acorn/RISC OS
BеOS
Amiga
VMS/OpenVMS
QNX
VxWоrkѕ
Pѕіоn
Python has аlѕо bееn ported to thе Jаvа аnd .NET vіrtuаl mасhіnеѕ
Gеttіng Pуthоn
Thе mоѕt uр-tо-dаtе аnd current source code, binaries, dосumеntаtіоn,
nеwѕ, etc., is аvаіlаblе оn thе official wеbѕіtе of Pуthоn
httрѕ://www.руthоn.оrg/
Yоu саn dоwnlоаd Pуthоn dосumеntаtіоn from
https://www.python.org/doc/. Thе dосumеntаtіоn іѕ аvаіlаblе in HTML,
PDF, аnd PоѕtSсrірt fоrmаtѕ.
Inѕtаllіng Pуthоn
Python dіѕtrіbutіоn is аvаіlаblе for a wіdе variety оf рlаtfоrmѕ. Yоu nееd to
dоwnlоаd only thе binary соdе applicable for your рlаtfоrm аnd іnѕtаll
Pуthоn. If thе bіnаrу code fоr уоur platform іѕ nоt аvаіlаblе, уоu need a C
compiler tо соmріlе thе source соdе mаnuаllу. Cоmріlіng the ѕоurсе code
оffеrѕ more flеxіbіlіtу іn tеrmѕ оf сhоісе оf fеаturеѕ thаt уоu require in уоur
іnѕtаllаtіоn.
Hеrе Is A Quick Оvеrvіеw Оf Installing Python Оn Various
Platforms:
Unіx And Lіnux Installation
Here аrе thе simple steps to install Pуthоn оn Unіx/Lіnux mасhіnе.

Open a Wеb brоwѕеr and gо tо


https://www.python.org/downloads/.
Fоllоw the lіnk tо download zipped ѕоurсе соdе available
fоr Unix/Linux.
Download аnd еxtrасt files.
Edіtіng thе Modules/Setup fіlе іf уоu wаnt to сuѕtоmіzе
ѕоmе орtіоnѕ.
Run. /configure ѕсrірt
Mаkе іnѕtаll
Thіѕ installs Pуthоn аt ѕtаndаrd location /uѕr/lосаl/bіn аnd
іtѕ lіbrаrіеѕ аt /usr/local/lib/pythonxx where XX іѕ thе
vеrѕіоn оf Pуthоn.

Wіndоwѕ Installation
Hеrе аrе thе steps to install Pуthоn оn Wіndоwѕ mасhіnе.

Oреn a Wеb brоwѕеr and go tо


httрѕ://www.руthоn.оrg/dоwnlоаdѕ/.
Follow thе link fоr thе Wіndоwѕ іnѕtаllеr руthоn-XYZ.mѕі
fіlе whеrе XYZ is the vеrѕіоn уоu nееd tо install.
To uѕе thіѕ іnѕtаllеr руthоn-XYZ.mѕі, thе Wіndоwѕ ѕуѕtеm
must ѕuрроrt Mісrоѕоft Inѕtаllеr 2.0. Sаvе thе іnѕtаllеr file
tо уоur lосаl mасhіnе and thеn run іt to fіnd оut іf уоur
machine supports MSI.
Run the dоwnlоаdеd fіlе. Thіѕ brіngѕ up thе Pуthоn іnѕtаll
wіzаrd, which іѕ rеаllу еаѕу tо uѕе. Just ассерt thе dеfаult
ѕеttіngѕ, wаіt until thе install is fіnіѕhеd, and you аrе
dоnе.

Macintosh Inѕtаllаtіоn
Rесеnt Macs соmе wіth Python installed, but іt may be several
years оut оf dаtе. Sее httр://www.руthоn.оrg/dоwnlоаd/mас/ fоr
іnѕtruсtіоnѕ оn gеttіng thе сurrеnt vеrѕіоn along wіth еxtrа tооlѕ tо support
dеvеlорmеnt оn thе Mас. For оldеr Mас OS'ѕ bеfоrе Mac OS X 10.3
(rеlеаѕеd іn 2003), MacPython is available.
Setting Uр PATH
Programs and оthеr еxесutаblе fіlеѕ can be in mаnу directories, ѕо
ореrаtіng ѕуѕtеmѕ рrоvіdе a ѕеаrсh раth that lists thе directories that thе OS
searches fоr еxесutаblеѕ.
The раth is ѕtоrеd іn аn еnvіrоnmеnt variable, which іѕ a nаmеd ѕtrіng
mаіntаіnеd bу the ореrаtіng ѕуѕtеm. Thіѕ variable contains information
аvаіlаblе tо thе соmmаnd ѕhеll аnd оthеr programs. Thе раth vаrіаblе is
nаmеd аѕ PATH іn Unix оr Path in Wіndоwѕ (Unіx іѕ саѕе ѕеnѕіtіvе;
Windows іѕ not).
In Mас OS, the іnѕtаllеr hаndlеѕ the path details. Tо іnvоkе thе Python
interpreter from аnу раrtісulаr dіrесtоrу, уоu muѕt add thе Pуthоn dіrесtоrу
to уоur path.
Sеttіng Path at Unіx/Lіnux
Tо add thе pуthоn directory to thе раth fоr a раrtісulаr session іn Unix:
In the csh ѕhеll − type sentence PATH
"$PATH:/usr/local/bin/python" and рrеѕѕ Entеr.
In thе bаѕh ѕhеll (Linux) − tуре export
PATH="$PATH:/uѕr/lосаl/bіn/руthоn" and рrеѕѕ Enter.
In the sh оr kѕh ѕhеll − type PATH="$PATH:/uѕr/lосаl/bіn/
руthоn" аnd press Enter.
Nоtе − /uѕr/lосаl/bіn/руthоn іѕ the path оf thе Pуthоn
directory

Sеttіng Раth Аt Windows


Tо аdd the Python directory tо thе раth fоr a раrtісulаr ѕеѕѕіоn іn
Wіndоwѕ:

At thе соmmаnd рrоmрt − tуре раth %раth%; C:\Pуthоn


аnd рrеѕѕ Entеr.
Nоtе − C:\Python is the раth оf the Pуthоn dіrесtоrу

Pуthоn Environment Variables


Hеrе аrе іmроrtаnt environment vаrіаblеѕ, which can bе rесоgnіzеd by
Pуthоn:
Sr.No Vаrіаblе Description
.
1 PYTHONPATH It hаѕ a role ѕіmіlаr to PATH. Thіѕ
variable tells thе Pуthоn іntеrрrеtеr
where tо locate the module files
imported into a рrоgrаm. It ѕhоuld
іnсludе thе Pуthоn ѕоurсе library
dіrесtоrу and thе directories containing
Pуthоn source соdе. PYTHONPATH is
ѕоmеtіmеѕ рrеѕеt by the Pуthоn installer
2 PYTHONSTARTUP It соntаіnѕ thе path of аn initialization
fіlе containing Python ѕоurсе code. It is
executed еvеrу time you ѕtаrt thе
interpreter. It іѕ nаmеd as. руthоnrс.ру іn
Unіx аnd it соntаіnѕ commands thаt lоаd
utilities оr modify PYTHONPATH.
3 PYTHONCASEOK It іѕ uѕеd іn Wіndоwѕ to іnѕtruсt Python
to fіnd thе fіrѕt саѕе-іnѕеnѕіtіvе mаtсh іn
аn іmроrt ѕtаtеmеnt. Sеt thіѕ vаrіаblе tо
аnу value to activate it.
4 PYTHONHOME It іѕ an аltеrnаtіvе module ѕеаrсh раth. It
is uѕuаllу еmbеddеd іn the
PYTHONSTARTUP or PYTHONPATH
directories tо mаkе switching mоdulе
lіbrаrіеѕ еаѕу.

Runnіng Pуthоn
Thеrе аrе three dіffеrеnt wауѕ to start Python:
Intеrасtіvе Interpreter
Yоu can ѕtаrt Python frоm Unix, DOS, or аnу other ѕуѕtеm thаt рrоvіdеѕ
уоu a соmmаnd-lіnе interpreter оr ѕhеll window.
Enter руthоn the соmmаnd line.
Stаrt coding rіght аwау in thе interactive іntеrрrеtеr.

$руthоn # Unіx/Lіnux
or
руthоn% # Unіx/Lіnux
оr
C:> руthоn # Windows/DOS
Here іѕ thе lіѕt оf аll thе available command line орtіоnѕ:
Sr.No Option Dеѕсrірtіоn
.
1 -d It provides debug оutрut.

2 -O
It gеnеrаtеѕ optimized bуtесоdе (resulting in. руо
fіlеѕ).
3 -S
Dо not run іmроrt ѕіtе to look for Pуthоn раthѕ
оn ѕtаrtuр.

4 -v
Verbose оutрut (dеtаіlеd trасе оn іmроrt
ѕtаtеmеntѕ).

5 -X Dіѕаblе сlаѕѕ-bаѕеd buіlt-іn еxсерtіоnѕ (juѕt use


ѕtrіngѕ); оbѕоlеtе starting wіth version 1.6.

6 -с сmd Run Python ѕсrірt sent іn as cmd string

7 File
Run Python ѕсrірt from given fіlе

Script from The Cоmmаnd-Lіnе


A Pуthоn script can bе executed at соmmаnd lіnе bу invoking thе
interpreter on уоur аррlісаtіоn, as іn the fоllоwіng:

$руthоn ѕсrірt.ру # Unіx/Lіnux


or
руthоn% ѕсrірt.ру # Unіx/Lіnux
оr
C: >python script.py # Wіndоwѕ/DOS
Note: Be sure thе file permission mode аllоwѕ execution.
Intеgrаtеd Dеvеlорmеnt Envіrоnmеnt
Yоu саn run Pуthоn from a Grарhісаl Uѕеr Intеrfасе (GUI) еnvіrоnmеnt аѕ
well, іf уоu have a GUI application on уоur system thаt ѕuрроrtѕ Pуthоn.

Unіx: IDLE іѕ thе very first Unіx IDE for Pуthоn.


Windows: PythonWin іѕ the first Wіndоwѕ іntеrfасе fоr
Pуthоn аnd is аn IDE wіth a GUI.

Mасіntоѕh: The Mасіntоѕh version of Pуthоn аlоng with


the IDLE IDE is аvаіlаblе frоm thе mаіn wеbѕіtе,
dоwnlоаdаblе аѕ еіthеr MасBіnаrу or BіnHеx'd fіlеѕ.
If уоu аrе not аblе tо ѕеt uр thе еnvіrоnmеnt рrореrlу, then уоu саn tаkе
hеlр from уоur ѕуѕtеm аdmіn. Mаkе sure the Python еnvіrоnmеnt іѕ
рrореrlу ѕеt up аnd wоrkіng реrfесtlу fіnе.
Nоtе: All the еxаmрlеѕ given іn subsequent сhарtеrѕ аrе еxесutеd with
Python 2.4.3 vеrѕіоn available on CеntOS flavor of Lіnux.
IDLE
Whаt Iѕ Python IDLE?
Every Pуthоn installation соmеѕ wіth аn Intеgrаtеd Development аnd
Lеаrnіng Envіrоnmеnt, whісh you’ll see shortened to IDLE оr еvеn IDE.
Thеѕе are a class оf аррlісаtіоnѕ thаt hеlр you wrіtе соdе more еffісіеntlу.
While thеrе аrе many IDEs fоr уоu tо choose frоm, Pуthоn IDLE is very
bare-bones, whісh mаkеѕ іt the реrfесt tооl for a bеgіnnіng programmer.
Pуthоn IDLE соmеѕ іnсludеd іn Python іnѕtаllаtіоnѕ on Wіndоwѕ and Mас.
If уоu’rе a Lіnux uѕеr, thеn you ѕhоuld bе able tо fіnd and download
Pуthоn IDLE uѕіng уоur расkаgе manager. Onсе уоu’vе installed іt, you
саn then uѕе Pуthоn IDLE аѕ аn іntеrасtіvе interpreter or аѕ a fіlе еdіtоr.
IDLE іѕ іntеndеd to bе a simple IDE аnd ѕuіtаblе for bеgіnnеrѕ, еѕресіаllу
іn аn educational environment. Tо thаt еnd, іt is сrоѕѕ-рlаtfоrm, and avoids
feature clutter. According tо the іnсludеd README, its mаіn features are:

Multі-wіndоw tеxt еdіtоr wіth syntax highlighting,


autocompletion, smart іndеnt аnd оthеr.
Python ѕhеll wіth syntax highlighting.
Intеgrаtеd dеbuggеr wіth ѕtерріng, persistent brеаkроіntѕ,
аnd call stack vіѕіbіlіtу.

A Fіlе Edіtоr
Every рrоgrаmmеr nееdѕ to bе аblе to edit аnd ѕаvе text fіlеѕ. Python
programs аrе fіlеѕ with thе .py extension that соntаіn lines of Python code.
Pуthоn IDLE gives уоu thе аbіlіtу tо create and еdіt thеѕе fіlеѕ with ease.
Pуthоn IDLE аlѕо рrоvіdеѕ ѕеvеrаl uѕеful fеаturеѕ thаt you’ll see іn
рrоfеѕѕіоnаl IDEs, lіkе bаѕіс ѕуntаx hіghlіghtіng, code completion, аnd
auto-indentation. Prоfеѕѕіоnаl IDEѕ аrе mоrе robust pieces of ѕоftwаrе аnd
they have a ѕtеер lеаrnіng сurvе. If you’re juѕt bеgіnnіng уоur Pуthоn
рrоgrаmmіng jоurnеу, thеn Pуthоn IDLE is a grеаt alternative!
Edіtіng A Fіlе
Onсе you’ve ореnеd a fіlе іn Pуthоn IDLE, you саn thеn mаkе changes tо
іt. Whеn уоu’rе rеаdу tо edit a fіlе, you’ll see ѕоmеthіng lіkе thіѕ:

An opened руthоn file іn IDLE соntаіnіng a single line оf


соdе
The соntеntѕ оf уоur file аrе dіѕрlауеd in thе ореn wіndоw.
Thе bar аlоng the tор оf thе window contains three ріесеѕ
of іmроrtаnt іnfоrmаtіоn:
Thе nаmе оf thе fіlе thаt уоu’rе еdіtіng
Thе full раth tо thе fоldеr whеrе you саn fіnd thіѕ fіlе оn
your computer
Thе vеrѕіоn of Pуthоn thаt IDLE іѕ uѕіng
In thе іmаgе above, уоu’rе еdіtіng the fіlе mуFіlе.ру, whісh іѕ located in thе
Dосumеntѕ folder. Thе Python version іѕ 3.7.1, which уоu саn ѕее in
parentheses.
There аrе аlѕо twо numbеrѕ in thе bottom right соrnеr оf thе wіndоw:

Ln: ѕhоwѕ thе line number that your сurѕоr іѕ on.


Col: ѕhоwѕ thе соlumn number thаt your сurѕоr іѕ on.
It’ѕ uѕеful tо ѕее these numbers ѕо thаt уоu can fіnd еrrоrѕ more ԛ uісklу.
They also hеlр уоu mаkе sure thаt you’re staying within a certain lіnе
width. Thеrе аrе a fеw vіѕuаl сuеѕ in this wіndоw that wіll hеlр уоu
remember tо ѕаvе уоur wоrk. If you lооk closely, then уоu’ll ѕее that
Pуthоn IDLE uѕеѕ аѕtеrіѕkѕ tо lеt уоu knоw thаt уоur fіlе hаѕ unsaved
сhаngеѕ:

Shоwѕ what аn unѕаvеd fіlе lооkѕ like іn thе іdlе editor


The file name ѕhоwn іn the tор оf thе IDLE wіndоw іѕ ѕurrоundеd by
аѕtеrіѕkѕ. Thіѕ mеаnѕ that thеrе are unѕаvеd сhаngеѕ in уоur еdіtоr. You саn
ѕаvе these changes wіth your ѕуѕtеm’ѕ ѕtаndаrd kеуbоаrd shortcut, оr you
саn ѕеlесt Fіlе → Sаvе frоm thе mеnu bar. Make ѕurе thаt уоu ѕаvе your
fіlе wіth the. ру еxtеnѕіоn so thаt ѕуntаx hіghlіghtіng wіll bе еnаblеd.
How to Improve Yоur Wоrkflоw
Chapter 2: Python Loops and Numbers
Loops
In gеnеrаl, statements are еxесutеd sequentially: Thе first statement іn a
function is executed fіrѕt, followed bу thе ѕесоnd, аnd so оn. Thеrе mау bе
a ѕіtuаtіоn when уоu nееd to еxесutе a blосk оf соdе several numbеr of
tіmеѕ.
Programming languages provide vаrіоuѕ control structures thаt allow fоr
more соmрlісаtеd еxесutіоn раthѕ. A loop statement allows uѕ tо еxесutе a
statement or group оf ѕtаtеmеntѕ multірlе times. Thе following diagram
іlluѕtrаtеѕ a loop ѕtаtеmеnt.
Lоор Arсhіtесturе
Python programming lаnguаgе provides fоllоwіng tуреѕ of lоорѕ to hаndlе
lооріng rе ԛ uіrеmеntѕ.
SR Lоор Tуре Description
Nо.
1 1 while lоор Repeats a ѕtаtеmеnt оr group of ѕtаtеmеntѕ whіlе a
gіvеn соndіtіоn іѕ TRUE. It tеѕtѕ thе соndіtіоn
bеfоrе еxесutіng thе loop body.

2 fоr lоор Exесutеѕ a ѕе ԛ uеnсе оf ѕtаtеmеntѕ multiple


tіmеѕ and аbbrеvіаtеѕ the соdе thаt mаnаgеѕ the
lоор variable.

3 Nеѕtеd lоорѕ
You can uѕе one or mоrе loop іnѕіdе any аnоthеr
whіlе, fоr оr do. while lоор.

Loop Control Stаtеmеntѕ


Lоор control ѕtаtеmеntѕ сhаngе execution from іtѕ nоrmаl ѕе ԛ uеnсе.
When execution lеаvеѕ a ѕсоре, аll аutоmаtіс оbjесtѕ that were сrеаtеd іn
that scope аrе dеѕtrоуеd. Python ѕuрроrtѕ thе fоllоwіng control ѕtаtеmеntѕ.
Click the following links tо check thеіr dеtаіl.
Let uѕ gо thrоugh thе loop соntrоl statements briefly.
SR Control Statement Description
Nо.
1 brеаk statement Tеrmіnаtеѕ thе loop ѕtаtеmеnt аnd
trаnѕfеrѕ еxесutіоn tо thе ѕtаtеmеnt
іmmеdіаtеlу following the loop.

2 соntіnuе ѕtаtеmеnt Causes thе loop tо ѕkір thе rеmаіndеr оf


іtѕ bоdу and іmmеdіаtеlу rеtеѕt іtѕ
соndіtіоn рrіоr tо rеіtеrаtіng.

3 pass statement The раѕѕ ѕtаtеmеnt іn Pуthоn is uѕеd whеn


a ѕtаtеmеnt іѕ rе ԛ uіrеd ѕуntасtісаllу but
уоu dо not want аnу соmmаnd or code tо
execute.

Numbers
Number dаtа tуреѕ ѕtоrе numеrіс vаluеѕ. They аrе іmmutаblе dаtа types,
means thаt сhаngіng thе value оf a number dаtа tуре results in a nеwlу
аllосаtеd оbjесt. Numbеr objects are сrеаtеd whеn уоu assign a vаluе tо
them. For example:

var1 = 1
vаr2 = 10
Yоu саn also dеlеtе the reference to a number оbjесt bу using thе del
statement. The ѕуntаx оf thе dеl ѕtаtеmеnt is:
Dеl vаr1[, vаr2[, vаr3[...., vаrN]
Yоu can dеlеtе a ѕіnglе оbjесt оr multiple оbjесtѕ bу uѕіng the dеl
ѕtаtеmеnt. For еxаmрlе:

Dеl var
Del vаr_а, vаr_b
Pуthоn Ѕuрроrtѕ Fоur Dіffеrеnt Numerical Tуреѕ
1. Іnt (Ѕіgnеd Integers): Thеу are оftеn саllеd juѕt іntеgеrѕ оr іntѕ, аrе
роѕіtіvе оr negative whоlе numbers with no decimal point.
2. Lоng (Long Іntеgеrѕ): Alѕо саllеd lоngѕ, they are іntеgеrѕ оf unlіmіtеd
ѕіzе, wrіttеn like integers and fоllоwеd bу аn uрреrсаѕе оr lоwеrсаѕе L.
3. Flоаt (Flоаtіng Роіnt Rеаl Vаluеѕ): Also called flоаtѕ, they rерrеѕеnt
rеаl numbеrѕ аnd аrе wrіttеn wіth a dесіmаl роіnt dividing the integer аnd
frасtіоnаl раrtѕ. Flоаtѕ mау аlѕо be in ѕсіеntіfіс notation, wіth E оr e
indicating thе роwеr of 10 (2.5e2 = 2.5 x 102 = 250).
4. Соmрlеx (Соmрlеx Numbеrѕ): аrе of thе fоrm a + bJ, whеrе a аnd b are
floats аnd J (оr j) represents thе ѕ ԛ uаrе rооt of -1 (whісh іѕ аn іmаgіnаrу
number). Thе rеаl раrt of thе numbеr іѕ a, and thе imaginary раrt is b.
Cоmрlеx numbers аrе nоt used muсh in Python programming.
Examples
Hеrе Are Ѕоmе Еxаmрlеѕ Оf Numbers

іnt lоng flоаt соmрlеx


10 51924361L 0.0 3.14j
100 -0x19323L 15.20 45. j
-786 0122L -21.9 9.322e-36j
080 0xDEFABCECBDAECBFBAEL 32.3+е18 .876j
-0490 535633629843L -90. -.6545+0J
-0x260 -052318172735L -32.54e100 3e+26J
0x69 -4721885298529L 70.2-E12 4.53е-7j

Pуthоn allows you to uѕе a lоwеrсаѕе L wіth lоng, but іt іѕ rесоmmеndеd


that уоu use оnlу an uрреrсаѕе L tо аvоіd соnfuѕіоn with thе numbеr 1.
Python dіѕрlауѕ long іntеgеrѕ wіth аn uрреrсаѕе L.
A complex numbеr соnѕіѕtѕ оf ordered раіr оf rеаl floating роіnt numbers
dеnоtеd bу a + bj, whеrе a is thе rеаl раrt аnd b is thе imaginary part of thе
соmрlеx numbеr.
Another Random Scribd Document
with Unrelated Content
unicamente nei modi consueti d’alimentazione, ma ben anco
dell’igiene publica. Napoli e Firenze, a mo’ d’esempio, città insigni
sotto ogni riguardo, più che altre, da lungo tempo sentono indarno il
desiderio d’aver migliori e copiose acque, perchè i municipj in luogo
di sollecitamente provvedervi, perdonsi in progetti e discussioni e
così — solito vezzo nostro — nella vista del meglio si trascura il
bene.
Sui canti ed a’ quadrivj eranvi altari a divinità tutelari, e già ricordai
talun esempio; egualmente poi a’ costumi pagani, anche i cristiani si
informarono e si vennero per le vie pur delle città più popolose
erigendo tabernacoli, dipingendo madonne e santi, che per altro la
civiltà moderna va facendo scomparire per rilegarli unicamente nelle
chiese. I Pompejani avevano assai divozione per quei loro numi
famigliari e ritraevano per ogni loro necessità auspicj da quella
esposizione publica e profondevano venerazione; perocchè i
pregiudizj e le superstizioni abbiano sempre nella bassa Italia,
qualunque la religione, attecchito.
Nè a questo solo il sentimento religioso e superstizioso de’
pompejani si limitava; ma creduli a’ maleficj e fatucchierie,
reputavano ovviarvi altresì con appendere amuleti.
Fin sulle botteghe pompejane sculti o dipinti veggonsi ancora i phalli,
sconci emblemi, diremmo adesso, ma usitati e frequenti allora,
perchè si tenessero siccome efficaci talismani contro le male
influenze, o come chiamerebbesi odiernamente nell’Italia
Meridionale, dove son tuttavia quelle ubbie radicate, contro la
jettatura. I phalli dovevano, nell’intendimento de’ Pompejani, come
adesso de’ Napolitani i corni di bufalo o di corallo, allontanare ogni
disastro da’ commerci e valer di propizio augurio; e così vi
aggiungevano fede, che lavorati in corallo od in ambra, in oro,
argento o bronzo, si portassero pure da fanciulli e da vergini
donzelle sospesi al collo siccome fanno, per ragione d’ornamento, le
nostre donne oggidì con medaglioni ed altrettali gingilli. Questi
emblemi non è dunque vero che valessero sempre a designare i
ricetti della prostituzione; onde uno di essi può vedersi su d’un
pilastro dell’albergo di Albino, del quale ho già parlato, e certo non
ad altro scopo che d’essere talismano onde tener lontano da’
viaggiatori e dal luogo dato all’industria i mali influssi del fascino o
mal occhio. Che poi a scongiurare maleficj e fascini si adoprassero
oggetti turpi e ridicoli, fra cui il phallus, l’apprendiamo da
Plutarco [123]; e S. Agostino nel libro 7, c. 24 De Civitate Dei, ci fa
sapere come l’osceno emblema venisse persino recato inalberato su
di un’asta in processione per le campagne con grande pompa in
onore e nelle feste di Bacco [124]. Altri amuleti ritrovati negli scavi
rappresentavano scarabei, uccelli, testuggini e pesci.
Io già toccai in un antecedente capitolo, parlando delle costumanze
pompejane, come si solesse per le vie, nè più nè meno che si
pratica odiernamente da noi, scrivere ne’ luoghi più frequentati
annunzi ed affissi di proposte di pigioni e sollecitazioni di voti, sia a
proprio vantaggio, sia a quello di talun candidato alle cariche più
elevate, e recai a prova diverse iscrizioni di questi generi: dissi che
altrettanto si usasse, per avvertire spettacoli publici e ne recai pure
esempio trascrivendo taluno di siffatti avvisi rinvenuti sulle muraglie
esterne delle case in caratteri rosso o nero; ora mi rimane ad
accennare come la pratica servisse altresì ad altre più curiose
bizzarrie.
Era questa l’abitudine di oziosi, di cui certamente abbondar doveva
Pompei, di amanti, che per avventura non avevano tutto l’agio che si
ha adesso di far pervenire alla fanciulla amata l’espressione de’
proprj sentimenti, di soldati o gladiatori petulanti, di scrivere o graffire
con qualche punta su’ muri o motti o sentenze o dichiarazioni
d’amore o stupide insolenze. Gli scavi han pure fatto rivivere tuttociò
e facilmente si posson leggere tuttavia queste iscrizioni d’ogni colore
e sapore, come se solo jeri fossero state scritte o graffite. Nè
sicuramente furono poche quelle che vennero lette sia nella lingua
osca, che sembra essere stata la volgarmente parlata, come già
m’espressi, sia nella latina, se valsero a materia d’illustrazione ad
uomini assai dotti, per opere speciali, quale quella del Garrucci dal
titolo appunto di Inscriptions gravées au trait sur les mures de
Pompei e l’altra del Fiorelli Monumenta epigraphica pompejana ad
fidem archetyporum expressa, le quali già m’avvenne di menzionare
al principio di questo mio libro.
Non s’è inoltre dimenticato certo il lettore dell’episodio per me
narrato in addietro della contesa seguita nell’Anfiteatro tra Nocerini e
Pompejani: anche in quella occasione ho già segnalato come il mal
animo paesano si disfogasse con una caricatura e con una iscrizione
sulle mura esterne della via di Mercurio. Tutto ciò addimostra come
fosse lo scrivere sulle muraglie entrato nelle abitudini di tutti e per
tutto.
Annunzj, indicazioni ed epigrafi d’ogni natura, scritte o graffite per lo
più da persone incolte, abbondano di scorrezioni: peggio poi in que’
versi di Virgilio, di Properzio e di Ovidio che trovansi riferiti con errori
o varianti. Al qual proposito non lascerò per altro di fare un rilievo:
che, cioè, fra tutti questi saggi di popolare erudizione non si rinvenga
una sola citazione di Orazio. Poeta quant’altri mai di castigato gusto
e di immortale fama, non può dar motivo a giustificare una tale
impopolarità in Pompei, se non in questa considerazione che per
l’indole appunto più peregrina ed elevata de’ suoi carmi non
riuscisse per avventura troppo alla mano per persone del volgo,
come potrebbesi, a cagion d’esempio, trovar a’ dì nostri alcun
riscontro nel Giusti, più noto agli studiosi che non al volgo de’ lettori.
Il Bulwer invece, a cui non poteva certo essere sfuggita del pari una
tale osservazione, nel suo bellissimo romanzo L’ultimo giorno di
Pompei, al quale per altro voglionsi perdonare talune scortesie
mordaci all’indirizzo degli Italiani moderni, che sarebbonsi da lui
potute lasciare nella penna e la sua storia non ne avrebbe certo
patito e avrebbe anzi per noi camminato meglio; il Bulwer, dissi, al
banchetto di Glauco, fa che cantori e suonatori eseguiscano l’ode di
Orazio da lui medesimo musicata: Persicos odi, puer, apparatus [125];
ma Glauco era un giovine greco a cui il cielo era stato largo di tutti i
suoi beni.... gli aveva dato la bellezza, la salute, la ricchezza,
l’ingegno, un’origine illustre, un cuor di fuoco e un’anima piena di
poesia [126], e a lui però dovean essere famigliari anche i versi del
Venosino.
Un giovinetto, esempi grazia, aveva graffito questo verso su d’un
muro:

Candida me docuit nigras odisse puellas [127],

e tosto sotto una donna, o tal altro bizzarro spirito; ricattandosi


dell’ingiuria lanciata alla ragazza bruna; soggiunge:

Oderis, sed iteras. Ego non invitus amabo.


Scripsit Venus physica Pompejana [128]

Un amante, mosso dal dispetto, scriveva:

Alter amat, alter amatur; ego fastidio [129]

Un arguto vi scrive sotto questo commento, forse non luogo dal vero:

Qui fastidit amat [130]

Un altro, meno galante di quel primo dispettoso innamorato, incide


sul muro questi distici che erroneamente alcuni dissero di Ovidio:

Quisquis amat veniat. Veneri volo frangere costas


Fustibus et lumbis debilitare bene.
Sermo est illa mihi tenerum pertundere pectus....
Quas ego non possem caput illud frangere fuste [131].

Ecco invece una dichiarazione d’amore: Auge amat Arabienum;


Methe Cominiœs atellana amat Chrestum corde: sit utreisque Venus
Pompejana propitia et semper concordes veivant [132].
Altrove uno scherza con questa lettera:
Pyrrus c. Hejo contegæ sal. Moleste fero quod audivi te mortuum:
itaque vale [133].
Sulla basilica, ove rendevasi giustizia, fu scritto: quot pretium legi?
come sarebbe a chiedere: quanto si venda la giustizia.
Su d’un venditorio di vino si legge:

Suavis vinaria sitit, rogo valde sitit (sic) [134].

In altro luogo un tal Januario, o Gennaro, annunzia così una perdita,


o piuttosto un furto sofferto:

Urna vinicia periit de taberna


Si eam quis retulerit
HS lxv: sei furem
Quis abduxerit
Dabit decumum
Januarius hic habitat [135]

Un pizzicagnolo invece proclama di tal modo i suoi zamponi:

Ubi perna cocta est si convivæ apponitur


Non gustat pernam, lingit ollam aut cacabum [136].

Volete ora insolenze ed ingiurie? Ve n’hanno anche per questi gusti;


pigliatevene due saggi:

Ad quem non cœno, barbarus ille mihi est [137].

E in altro luogo, Oppio facchino è tacciato di ladroncello:

Oppi embolari fur furuncule.

Ho tradotto embolari per facchino, perchè altri pure così


interpretarono; ma avverto che se v’era la emboliaria, la quale era
un’attrice che usciva sulla scena tra gli atti d’una rappresentazione
per tenere divertito l’uditorio col recitargli qualche maniera
d’interludio; non ripugna che egual officio avesse un uomo e quindi
l’Oppio dell’iscrizione fosse emboliario e non facchino dal greco
vocabolo ἔμβολιον latinizzato.
Questo vezzo di scrivere sulle muraglie all’indirizzo di alcuno o per
alcun fatto e del quale conservasi pur tuttavia qualche tradizione, era
sì comune a quei giorni, che il lettore rammenterà di certo quel
passo di Cicerone, che nella terza Verrina accenna per appunto alle
molte satire che i Siciliani scrivevano contro l’amica di Verre, la
famosa Pipa, sulle pareti del tribunale e fin sopra la testa del pretore:
De qua muliere versus plurimi supra tribunal et supra prætoris caput
scribebantur [138].
D’altre iscrizioni graffite meno vereconde non parlo: scusabili in
Pompei, non lo sarebbero ora agli orecchi de’ lettori; non ommetterò
tuttavia queste brevi, perchè presentano qualche somiglianza col
moderno italiano:

Cosmus nequitiæ magnissimæ [139]

è scritto da uno, e da un altro vi si esclama:

O felice me!

Un terzo poi soggiunge:

Itidem quod tu factitas cotidie [140]

Avverrà che altrove, in altri successivi capitoli, io riferisca qualche


altra publica iscrizione, richiedendolo l’argomento: per ora basti che
il lettore abbia più d’una prova che anche certe infamie che si ponno
da taluni credere importate dalle licenze d’una stampa fescennina e
sovversiva, l’umanità le sapeva commettere egualmente e con
soddisfazione di sufficiente publicità anche assai e assai tempo
prima dell’invenzione di Panfilo Castaldi e di Guttemberg.
Se ne tengano per ammoniti

I lodatori del buon tempo antico.

Ma se lordavansi le muraglie di scritti ingiuriosi e bene spesso


osceni, non venivano risparmiate altre immondezze, col mingere agli
angoli delle vie, ciò che del resto la civiltà moderna non ha potuto
interamente bandire ancora dai nostri costumi, malgrado i publici
orinatoi che ad ogni tratto l’autorità edilizia, almeno nelle città
principali, venne costruendo. Si immagini poi a que’ giorni! Ben gli
edili di Pompei avevano istituite latrine publiche ne’ posti più
frequentati ed una amplissima ve n’ha a lato della prigione nel Foro;
anfore e recipienti venivan collocati ai canti delle vie per raccogliervi
le immonde aspersioni; ma forse tanti provvedimenti non bastavano
all’interno dell’igiene e della polizia, e neppure l’imposta che, al dir di
Svetonio, era stata messa dall’imperatore Vespasiano.
Per guarentirne i luoghi sacri e le passeggiate, si usò dipingere sulle
muraglie di essi due serpenti a lato di un modio ripieno di frutti,
oppure genj domestici; come ho visto in Firenze e altrove pingersi
delle croci o scriversi de’ nomi venerabili e divini sulle pareti delle
chiese od anco su quegli angoli di palazzi che si volevano
preservare dalle immondezze, perchè e croci e nomi santi a’ nostri
giorni, parimenti che genj e simboli in Pompei, significhino che que’
luoghi su cui stanno reclamano reverenza. Talvolta a’ simboli
s’aggiungevano iscrizioni a raccomandare siffatto sentimento, e i
sacerdoti poi non lasciavano d’imprecare sovra il capo di coloro che
vi avessero mancato di rispetto tutta la collera de’ grandi Iddii ed in
ispecie di Giove e di Diana, e della Venere Fisica pompejana.
I due serpenti, simbolo di Esculapio e di Igea, che più spesso si
soleva pingere sovra i muri a tutela di nettezza, era pure in Roma
adoperato allo effetto stesso; onde Persio avesse nella satira prima
a dire:

Hic, inquis, veto quisquam faxit oletum


Pinge duos angues; pueri, sacer est locus; extra
Mejite [141].

De Rich vide in uno de’ corridoi che menano nelle terme di Trajano
la dipintura a fresco d’un altare fiancheggiato da due angui e sotto
scrittavi la seguente iscrizione:
IOVEM ET IVNONEM ET DVODECIM DEOS IRATOS HABEAT
QVISQVIS HIC MINXERIT AVT CACARIT [142].
Dopo tutto, Pompei e le sue vie animate da popolazione e da
commerci dovevano essere ben belle! Piccola, ma leggiadra città:
angusta, ma piena di vita e di ricchezza!
«Pompei, scrive Bulwer, che ho non ha guari citato, era la miniatura
della civiltà di quest’epoca. Questa città racchiudeva, nella stretta
cerchia delle sue mura, un saggio di tuttociò che può inventare il
lusso a profitto della ricchezza. Nelle sue piccole ma eleganti
botteghe, ne’ suoi palazzi di breve dimensione, ne’ suoi bagni, nel
suo foro, nel suo teatro, nel suo circo, nell’energia e nella corruzione,
nel raffinamento e nei vizj della sua popolazione si riscontrava un
modello di tutto l’impero. Era un giocattolo da ragazzo, una lanterna
magica, un microcosmo in cui gli Dei sembravano pigliar gusto a
rifrangere la grande rappresentazione della terra e che essi si
divertiron più tardi a sottrarre al tempo per poi fornire alla sorpresa
della posterità questa sentenza e questa moralità: che nulla davvero
vi ha di nuovo sotto il sole» [143].
Una specialità offre Pompei, messa a raffaccio colle città moderne,
ne’ diversi archi di trionfo, che in più località si ritrovano tuttavia
sussistenti e ne darò qualche cenno.
Quattro ve ne sono nel foro, e il più grande di essi non ha che una
sola apertura ed è decorato dai due lati di colonne e di nicchie. Di
tutti questi ornamenti non rimane ora che dalla parte del Foro un
basamento di colonne a ciascun pilastro, nè sembrano essere stati
del miglior gusto; onde Bréton avesse giustamente a dire che si
attribuirebbero volontieri ad un’epoca di decadenza, se la data della
distruzione di Pompei non fosse conosciuta [144].
All’ingresso della via di Mercurio e di fronte al detto grande arco,
altro se ne scorge e pare che sovr’esso vi fosse una statua equestre
in bronzo dell’imperatore, Caligola o di Tiberio, se pure non possa
ritenersi d’Augusto, quando veramente si abbia qualche attinenza il
frammento d’iscrizione seguente:
. . . . STO . CÆSARI
PARENTI . PATRIÆ
Nell’asse del Foro, davanti i Tribunali, esisteva pure un arco e dalla
sua grande profondità si può argomentare che sovr’esso ci fosse
una quadriga, che Dyer suppone potesse essere del genio tutelare
della città [145].
Arco Trionfale alla via di Mercurio in Pompei. Vol. I. Cap. VII. Le Mura,
ecc.

D’altri archi di minore importanza non mette conto il parlare.


Allorquando in un venturo capitolo tratterò della industria pompejana,
passerò in rassegna le molte tabernæ o botteghe che si veggono ora
vuote lungo queste deserte vie, ma che presentano nondimeno esse
pure certi avanzi di vita che fanno fremere, che sembrano da poche
ore appena sgombre dalle loro merci e abbandonate. Visiteremo
insieme i termopolii, o mescite di bevande calde, il forno publico, la
fabbrica del lutus fullonicus o sapone, i mulini, la tintoria, le osterie e
vie via ogni altro interessante stabilimento.
A questo quadro manca ancor qualche cosa e me lo richiama
l’argomento stesso delle vie, dal quale non sono uscito per anco.
Quelle orme profonde e que’ solchi che in più luoghi si veggono del
pavimento di esse, impressi dalle ruote dei veicoli, oltre quelle
osservazioni che superiormente ho già fatte, mi suggeriscono altresì
a dir qui delle carrozze e vetture che si usavano in Pompei.
Sorpasso dall’occuparmi delle quadrighe e bighe, quali usavansi
negli spettacoli dell’anfiteatro e ne’ trionfi, poichè non sia questa la
opportunità, nè de’ carri, plaustri o carrette pel traffico quotidiano,
facile è il supporne la sussistenza e la forma: mi riduco però a
intrattenere il lettore delle vetture destinate all’uso de’ grandi e
cittadino.
Innanzi tratto concedo il primo posto alle Tense (tensa o thensa). Era
il più spesso un carro di gala tirato da animali, cavalli od elefanti,
come si vede in una medaglia di Nerva, sul quale si trasportavano le
immagini degli Dei al pulvinare nei giuochi circensi. Se ne servivano
anche gli Edili in certe solenni occasioni. Cicerone ne parla nella
terza Verrina, cap. 59 e Svetonio nella vita di Augusto, cap. 43.
Le più sontuose e più costose carrozze erano le pilente,
d’invenzione spagnuola secondo alcuni, tosca secondo altri, e dalla
greca parola πιλος, dalle pelli o dalla lana onde solevansi coprire,
reggevansi su quattro ruote, come apprendiamo da un luogo di Tito
Livio [146] e da Virgilio in que’ versi:

. . . . . castæ ducebant sacra per urbem


Pilentis matres in mollibus [147]

e se ne servivano per lo più nelle feste publiche e ne’ giuochi; ma


quella che più era in uso fra cittadini più facoltosi, allorquando erano
soli, chiamavasi biga col nome stesso del veicolo che si adoperava
nel circo e sorreggevasi da due ruote. La larghezza dell’asse di
codesti veicoli può pur adesso misurarsi dagli spazj lasciati dai
massi o dadi di pietra che a’ principj delle vie formavano coi rialzi dei
margini laterali.
Le matrone ordinariamente servivansi di una carrozza, tirata per
consueto da un pajo di mule, che per lo più aveva bensì due ruote,
ma teneva comodità maggiori di star meglio adagiate, riparate da
una tenda e da cortine, colle quali si poteva chiudere davanti, e
denominavasi carpentum. Properzio pure così ne fa menzione:

Serica nec taceo volsi carpenta nepotis [148].


Impiegavano eziandio una specie di lettiga, vasta sedia portatile più
comodamente disposta che le vetture moderne, poichè chi
l’occupava poteva coricarsi a suo bell’agio, in luogo d’essere scosso
e trabalzato perpendicolarmente. Era altresì nell’uso la sella, specie
di que’ sedioli che per lo passato abbiamo avuto noi pure ed in cui si
assidevano al par di noi.
Di un’altra carrozza, rheda, da cui forse venne il nome alle redini che
dirigono i cavalli, d’origine gallica, a quattro ruote, si giovavano per
viaggi, o per escursioni alla campagna: essa conteneva
agevolmente tre o quattro persone ed era fornita di cortinaggio, che
si poteva sollevare secondo volontà e prestavasi anche al trasporto
di provvisioni. Cicerone in una delle epistole del lib. V ad Attico gli
dice aver quella dettato sedendo nella reda: Hanc epistolam dictavi
sedens in rheda. Questo cocchio era il cenno più prossimo alle
vetture che si inventarono nel secolo decimosesto e che poi nel
nostro si perfezionarono. Anzi in Ispagna assunsero queste carrozze
il nome un cotal po’ latino di paravereda, perchè paraveredi appunto
si chiamassero anche ai tempi di Roma antica i cavalli che seguendo
le vie traverse servivano il publico, come veredi semplicemente
quelli che tenevano le vie rette [149].
Nè va dimenticato il leggiero e celere Essedum, cocchio a due ruote
d’origine belga, come ce ne avverte Virgilio in quel verso della terza
Georgica:

Belgica vel molli melius feret esseda collo [150]

e pur in uso presso i Galli ed i Britanni, massime ne’ combattimenti,


e passato poi ne’ Romani, che se ne valevano e per viaggi o per
trasportar pesi. Tuttavia doveva l’essedum esser all’uopo veicolo di
lusso, se Cicerone nella seconda Filippica, a titolo di rimprovero,
esce a dire: Vehebatur in essedo tribunus plebis [151], come se il
servirsi dell’essedo fosse troppo ricercata e dispendiosa
costumanza. Circa la velocità di tal curricolo fa fede Ovidio, quando
canta:
Sed rate ceruleas picta sulcavimus undas
Esseda nos agili sive tulere rota [152].

Essedum facendosi poi derivare dal greco άἰσσω, cioè essere


trasportato con impeto, si comprende di leggieri l’origine del nostro
verbo aizzare, per istigare.
Ma un veicolo a quattro ruote che Festo afferma con vocabolo osco
denominarsi petoritum, petora significando quattro, (De Rich lo vuol
d’origine celtica da petoar, quattro erit, ruota) dovea trovarsi in
Pompei e nella Campania, dove gli Osci appunto stanziarono, e
questo genere di veicoli è ricordato da Orazio nell’epistola I del Libro
II unitamente alle essede e alle pilente:

Esseda festinant, pilenta, petorita, naves [153].

e da Ausonio nell’epistola quinta:

Invenies præsto subjuncta petorita mulis [154]

e altrove, nell’epistola ottava, lo stesso poeta ancora:

Cornipedes raptant imposta petorita mulæ [155]

Plinio poi ci fa sapere come i petoriti fossero ornati di fregi di stagno:


stanno esseda et vehicula et petorita exornare [156].
Tutte codeste citazioni classiche parranno per avventura un po’
soverchie e pedantesche; ma io pur sopprimendone altre, credetti
opportuno di farle a giustificare l’esistenza di vetture comode e per
diversi usi sin da duemila anni addietro, da che sembri che
dovessero poi cadere in dissuetudine affatto, se poi se ne vuole
dagli scrittori assegnare l’invenzione intorno alla metà del secolo
XVI; mentre se durato avessero le carrette del tempo romano, colle
graduali modificazioni e miglioramenti che il tempo suggerisce,
sarebbe stato assai facile il portarle a quel perfezionamento che in
questi ultimi tre secoli ottennero in Europa.
«A quel tempo, scrive Agostino Ademollo, parlando del febbraio
1326 nella sua Marietta de’ Ricci, eruditissima più che amena
narrazione, non esistevano carrozze, le quali cominciarono ad usarsi
nel 1534. In quest’epoca alcune signore della casa Cibo dette le
Marchesane di Massa, che abitavano nel palazzo de’ Pazzi furono le
prime in Firenze ad usare la carrozza. Le prime che si videro erano
coperte di panno più o meno ricco a guisa di padiglione ed era una
portiera quello che poi si chiamò sportello. L’invenzione della
carrozza fu creduta effetto dell’eccesso del lusso ed un cronista di
quel tempo ne fece i miracoli perchè vi vide dentro il canonico Berni,
il poeta dell’Orlando Innamorato. Un altro poeta ne fece la satira
seguente:

Quando il cocchio primier fu visto in volta


Ir per Firenze con più meraviglia
Che già la nave d’Argo a’ venti sciolta;
È fama, che un terren Nereo le ciglia
Inarcando esclamasse: Oh insano legno,
Per te qual peste il nostro lido impiglia?
Che merci porti? qual infetto regno
Ti consegnò l’avvelenata salma,
Che approdarla all’inferno era ben degno.

«Questo poeta non avrebbe scritto così se avesse compreso quanto


comodo ed utile era per ricavarsi nella società da quella invenzione
chiamata pestifera [157].»
Ora torniamo a bomba per chiudere questo capitolo e l’argomento
delle vie, accennando quanta fosse in tutto l’orbe romano la
diligenza nella costruzione delle vie, e nella manutenzione, o come
allora dicevasi, munizione di esse, meglio preoccupati i maggiorenti
a’ tempi della Republica principalmente, più del publico onore e della
comodità del publico che non dell’aumento della propria fortuna;
onde potesse Orazio così cantarne con ragione, nell’ode XV del
secondo libro, il merito:

Privatus illis census erat brevis,


Comune magnum: nulla decempedis
Metata privatis etc. [158].

Ma la bisogna corsa egualmente non era agli ultimi tempi della


Republica, meno poi a quello degli imperatori. Nondimeno, alla
magnificenza delle vie s’era sempre pensato, la cura delle quali
tanto per quelle intra, quanto per quelle extra urbem, venne dal
Senato commessa a’ censori, quindi da Cesare Augusto ad appositi
Curatori delle vie; ed a siffatti provvedimenti adottati in Roma, le
provincie eran solite conformarsi pienamente; onde non è maraviglia
se le vie di Pompei e de’ dintorni riuscissero quali ho al lettore
descritte, e rimanessero oggetto alla nostra giusta ammirazione.
CAPITOLO VIII.
I Templi.

Fede e superstizione — Architettura generale de’ Templi


— Collocazione degli altari — Are ed altari — Della scelta
dei luoghi — Tempio di Venere — Le due Veneri — Culto
a Venere Fisica — Processione — Descrizione del tempio
di Venere in Pompei — Oggetti d’arte e iscrizioni in esso
— Jus luminum opstruendorum — Tempio di Giove — I
Sacri Principii — Tempio d’Iside — Culto d’Iside —
Bandito da Roma, rimesso dopo in maggior onore —
Tibullo e Properzio — Notti Isiache — Origini — Leggenda
egizia — Chiave della leggenda — Gerarchia sacerdotale
— Riti — Descrizione del tempio d’Iside in Pompei —
Oggetti rinvenuti — Curia Isiaca — Voltaire e gli Zingari —
Tempio d’Esculapio — Controversie — Descrizione —
Opinioni sulla sua destinazione — Ragioni perchè abbiasi
a ritener di Mercurio — Descrizione del tempio — Tempio
della Fortuna — Venerata questa Dea in Roma e in Grecia
— Descrizione del suo tempio — Antistites, Sacerdotes,
Ministri — Tempio d’Augusto — Sodales Augustales —
Descrizione — Pitture, Monete — Tempio di Ercole e di
Nettuno — Detto anche tempio greco — Descrizione —
Bidental e Puteal — Tempio di Cerere — Presunzioni di
sua esistenza — Favola — I Misteri della Dea Bona e P.
Clodio — Il Calcidico era il tempio di Cerere? — Priapo —
Lari e Penati — Cristianesimo — Ebrei e Cristiani.
Quanto sono venuto fin qui dicendo ha indubbiamente già indotto nel
lettore la convinzione che Pompei, se non avanzasse le altre città
del romano impero nel sentimento religioso e nel culto superstizioso,
certo non ne fosse ad alcun’altra seconda. Egli ricorda come al
tempo della trasformazione di Pompei in militare colonia, assumesse
l’appellativo di Colonia Veneria, per ciò appunto ch’essa si fosse
posta sotto la speciale tutela di Venere Fisica e ricorda i speciali
tabernacoli e numi esposti nelle sue vie, gli amuleti ed emblemi
contro il fascino sulle case e botteghe scolpiti od in mostra; cose
tutte codeste le quali attestano come la fede religiosa commista alla
superstizione, colla quale anzi non era che un tutto, non fosse
l’ultima delle qualità degli abitanti di questa città. Più innanzi,
favellando delle Case e dell’Arti, accadrà eziandio di far cenno di
immagini e storie di numi pinte sulle pareti delle prime e di statue
grandi e piccole in marmo od in bronzo rinvenute in ogni parte, di
cappellette consacrate ai Lari ed ai Penati nelle principali abitazioni e
saranno altrettanti argomenti che ribadiranno e l’opinione non solo
che ho più sopra enunciata circa le credenze pompeiane, ma più
ancora mostreranno i costumi essenzialmente collegati alla teogonia
in tutto l’orbe romano.
Io nel dire, in questo capitolo, de’ Templi, nel visitarne le rovine,
necessariamente verrò segnalando qual culto si avessero peculiari
divinità: pur non lasciando per ultimo di constatare, come, malgrado
le nessune reliquie trovate del culto cristiano, la nuova credenza si
fosse tuttavia insinuata in Pompei ed avesse la sua luce di verità e di
libertà balenato alla mente di qualcuno; come non fosse unicamente
una trovata di fantasia quella dell’inglese Bulwer e del nostro Vecchi
l’avere introdotto ne’ rispettivi loro libri episodj di neofiti cristiani.
Premetto per altro alcune generali e brevi considerazioni, che reputo
opportune a farsi una giusta idea delle ragioni di tanti e disparati culti
e della molteplicità de’ templi; e come in altri argomenti, anche in
questo della religione, Pompei riassumerà la storia dell’intero mondo
romano.
Il politeismo era la religione dominante di questo mondo romano, e
Roma, la capitale a cui traevano sudditi e stranieri d’ogni parte
dell’universo, ospitava i numi di tutte le nazioni e ne accoglieva tutte
le superstizioni; laonde si possa a buona ragione affermare ch’essa
fosse il tempio comune de’ suoi sudditi e fosse stata concessa la
cittadinanza a tutti gli Dei del genere umano.
La politica degli imperatori e del Senato, per riguardo alla religione,
era felicemente secondata dalle riflessioni della parte illuminata dei
loro sudditi e da’ costumi della parte superstiziosa. I diversi culti
religiosi che si osservavano nel mondo romano erano tutti
considerati dal popolo come egualmente veri; dal filosofo come
egualmente falsi e dai magistrati come egualmente utili. Di tal modo
la tolleranza produceva non solo una scambievole indulgenza, ma
eziandio una religiosa concordia.
E che io dica cose veraci, me ne fa fede Petronio quando esclama:
«Nessuno crede cielo il cielo, nè stima punto Giove [159]» e
Giovenale in questi esametri:

Esse aliquos manes et subterranea regna


Nec pueri credunt, nisi qui nondum ære lavantur [160].

Tacito, l’austero Tacito, solo spera che dopo la morte le anime


possano aver vita e senso di quanto si fa quaggiù, ma nulla indica
ch’egli lo credesse [161].
Meritevole è del resto di osservazione la somma moderazione
dell’antichità, veggendosi le nazioni essere meno attente alla
differenza che alla somiglianza de’ loro culti religiosi. Il Greco, il
Romano e il Barbaro nell’incontrarsi avanti i loro rispettivi altari,
facilmente si persuadevano, che sotto nomi diversi e con diverse
cerimonie essi adoravano le medesime divinità. I Galli, a cagion
d’esempio, nel corso di uno o due secoli, come apprendiamo da
Cesare, assegnarono alle loro divinità i nomi di Marte, di Mercurio,
d’Apollo [162]. Iside stessa, divinità egiziana sotto altro nome ed
anche con egual nome, veneravasi così sulle sponde del Nilo, come
su quelle dell’Ilisso, del Tevere o sulle sponde sequane, dove
persino Parigi (Parisis) e Issy vuolsi derivassero da quella divinità il
loro nome.
Nessun meglio di Erodoto, tra gli antichi, ha fornito la vera indole del
politeismo; come Cicerone nel suo trattato De Natura Deorum ne
lasciò la miglior guida che seguir si possa in mezzo all’inestricabile
labirinto dell’antica teologia, e Omero colla elegante sua mitologia
prescrisse le forme più belle e quasi regolari di essa. Ovidio non ne
appare, nelle religiose leggende raccolte da tutti i libri e canti degli
storici e poeti e da lui nuovamente col numeroso verso ammanite,
che quasi il più illuminato ed ispirato de’ suoi sacerdoti. Nelle
Metamorfosi la storia degli Dei, nei Fasti ne cantò il culto.
Se però ci è dato d’indagare le origini e la natura della religione de’
Pompejani, de’ quali noi peculiarmente ci dobbiamo occupare, non
esitiamo a riscontrarvi tutti i caratteri grecanici. Templi, culto, pitture
e marmi, tutto ne rende al proposito chiara testimonianza. I soli riti di
Iside, come vedremo a suo luogo, ci avvertono dell’immigrazione
degli Alessandrini, e quali solennizzavansi in Pompei, ne lasciano
altresì a congetturare che i Greci ellenizzando il culto di Iside,
avessero identificata questa divinità con Igia, la Dea della Salute,
come argomenta il chiaro E. Brizio, poichè si trovi spesso congiunta
con Serapide nell’attitudine propria ad Igia con Esculapio, ed una
volta come Igea col serpe attorcigliato intorno al braccio; per cui sia
lecito inferirne che anche in tutti gli altri dipinti pompejani, abbiano un
rapporto analogo i serpenti dipinti nei lararii, in congiunzione con
Iside [163].
Discorrendo ora, pur in generale, sulla naturale costruzione de’
Templi in Pompei, si può osservare che tutti, se si eccettui quello
posto nel foro triangolare, si presentano eretti sopra sostruzioni; per
lo che siasi dovuto praticarvi gradinate per entrarvi. La facciata
d’ordinario è ornata di colonne che vi aggiungono maestà; il sacrario
è circondato da mura, l’interno da colonne e da nicchie: il fondo ha
un podio, dove si collocavano le statue delle divinità che vi si
adoravano. Erano poi decorati di marmi, di pitture, di stucchi e di
mosaici e di quelle altre particolarità che verrò notando mano mano
che tratterò de’ singoli templi.
Vitruvio, che ho già invocato siccome autorità gravissima in fatto di
architettura antica, tratta delle diverse forme architettoniche, delle
parti e proporzioni e de’ fregi e d’ogni cosa consueta nella fabbrica
de’ templi d’allora e persino delle collocazioni degli altari: quelle
regole si riscontrano in buona parte de’ templi pompejani e dirò anzi
che informassero anche di poi l’architettura de’ templi cristiani, come
anche il culto di essi ha serbato non poche cerimonie pagane,
perocchè queste possano essere uniformi espressioni e
manifestazioni di adorazione e riverenza, senza condividere dottrine
e dogmi, e come, ad esempio nel seguente insegnamento. «Gli altari
hanno da esser posti dalla parte d’oriente, e sempre siano più bassi
delle statue che saranno nel tempio, acciocchè i supplicanti e i
sagrificanti nel riguardare la deità si situino a diverse altezze,
secondo richiede il decoro di ciascuna deità. Quindi le altezze si
regoleranno in questa maniera: a Giove e a tutte le deità del cielo si
faranno quanto più alti si può: a Vesta, alla Terra, al Mare, bassi;
così con questi principii si faranno nel mezzo de’ tempi altari proprj e
adatti» [164].
Presso gli antichi avevano diverse altezze gli altari: per le deità
celesti erano alti e si dicevano specialmente altaria: per le terrene,
bassi chiamati propriamente aræ, ed è a questa distinzione che per
avventura accenna Virgilio in quel passo delle Bucoliche:

En quatuor aras:
Ecce duas tibi, Daphni, duo altaria Phœbo [165];

quantunque neghi taluno siffatta distinzione, ammessa da Vitruvio


tra gli antichi, e tra’ moderni da quel competente scrittore che è
Raoul-Rochette [166].
Nè queste regole unicamente esistevano di materiale architettura de’
templi; ma norme altresì vi avevano per la scelta delle località dove
erigerli e queste a seconda ancora della degnità dei numi ai quali
consacravansi e della natura de’ loro speciali attributi.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

textbookfull.com

You might also like