Learning Python Design Patterns 2nd Edition Chetan Giridhar 2024 scribd download
Learning Python Design Patterns 2nd Edition Chetan Giridhar 2024 scribd download
com
https://ebookname.com/product/learning-python-design-
patterns-2nd-edition-chetan-giridhar/
OR CLICK BUTTON
DOWLOAD EBOOK
https://ebookname.com/product/learning-javascript-design-patterns-
addy-osmani/
ebookname.com
https://ebookname.com/product/learning-javascript-design-patterns-a-
javascript-and-react-developer-s-guide-2nd-edition-adnan-osmani/
ebookname.com
https://ebookname.com/product/machine-learning-with-spark-and-
python-2nd-edition-michael-bowles/
ebookname.com
https://ebookname.com/product/transport-phenomena-in-food-processing-
food-preservation-technology-1st-edition-jorge-welti-chanes/
ebookname.com
https://ebookname.com/product/the-world-of-pharmacy-and-pharmacists-
in-mamluk-cairo-1st-edition-leigh-chipman/
ebookname.com
https://ebookname.com/product/understanding-intercultural-
communication-2nd-revised-edition-chung/
ebookname.com
https://ebookname.com/product/the-prefrontal-cortex-fourth-edition-
joaquin-fuster/
ebookname.com
https://ebookname.com/product/towards-inclusive-learing-in-higher-
education-developing-curricula-for-disabled-students-1st-edition-mike-
adams/
ebookname.com
Clinical Trial Design Challenges in Mood Disorders 1st
Edition Mauricio Tohen
https://ebookname.com/product/clinical-trial-design-challenges-in-
mood-disorders-1st-edition-mauricio-tohen/
ebookname.com
Learning Python Design Patterns Second
Edition
Table of Contents
Learning Python Design Patterns Second Edition
Credits
Foreword
About the Author
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introduction to Design Patterns
Understanding object-oriented programming
Objects
Classes
Methods
Major aspects of object-oriented programming
Encapsulation
Polymorphism
Inheritance
Abstraction
Composition
Object-oriented design principles
The open/close principle
The inversion of control principle
The interface segregation principle
The single responsibility principle
The substitution principle
The concept of design patterns
Advantages of design patterns
Taxonomy of design patterns
Context – the applicability of design patterns
Patterns for dynamic languages
Classifying patterns
Creational patterns:
Structural patterns
Behavioral patterns
Summary
2. The Singleton Design Pattern
Understanding the Singleton design pattern
Implementing a classical Singleton in Python
Lazy instantiation in the Singleton pattern
Module-level Singletons
The Monostate Singleton pattern
Singletons and metaclasses
A real-world scenario – the Singleton pattern, part 1
A real-world scenario – the Singleton pattern, part 2
Drawbacks of the Singleton pattern
Summary
3. The Factory Pattern – Building Factories to Create Objects
Understanding the Factory pattern
The Simple Factory pattern
The Factory Method pattern
Implementing the Factory Method
Advantages of the Factory method pattern
The Abstract Factory pattern
Implementing the Abstract Factory pattern
The Factory method versus Abstract Factory method
Summary
4. The Façade Pattern – Being Adaptive with Façade
Understanding Structural design patterns
Understanding the Façade design pattern
A UML class diagram
Façade
System
Client
Implementing the Façade pattern in the real world
The principle of least knowledge
Frequently asked questions
Summary
5. The Proxy Pattern – Controlling Object Access
Understanding the Proxy design pattern
A UML class diagram for the Proxy pattern
Understanding different types of Proxies
A virtual proxy
A remote proxy
A protective proxy
A smart proxy
The Proxy pattern in the real world
Advantages of the Proxy pattern
Comparing the Façade and Proxy patterns
Frequently asked questions
Summary
6. The Observer Pattern – Keeping Objects in the Know
Introducing Behavioral patterns
Understanding the Observer design pattern
A UML class diagram for the Observer pattern
The Observer pattern in the real world
The Observer pattern methods
The pull model
The push model
Loose coupling and the Observer pattern
The Observer pattern – advantages and disadvantages
Frequently asked questions
Summary
7. The Command Pattern – Encapsulating Invocation
Introducing the Command pattern
Understanding the Command design pattern
A UML class diagram for the Command pattern
Implementing the Command pattern in the real world
Design considerations
Advantages and disadvantages of Command patterns
Frequently asked questions
Summary
8. The Template Method Pattern – Encapsulating Algorithm
Defining the Template Method pattern
Understanding the Template Method design pattern
A UML class diagram for the Template Method pattern
The Template Method pattern in the real world
The Template Method pattern – hooks
The Hollywood principle and the Template Method
The advantages and disadvantages of the Template Method pattern
Frequently asked questions
Summary
9. Model-View-Controller – Compound Patterns
An introduction to Compound patterns
The Model-View-Controller pattern
Model – knowledge of the application
View – the appearance
Controller – the glue
A UML class diagram for the MVC design pattern
The MVC pattern in the real world
Modules
Benefits of the MVC pattern
Frequently asked questions
Summary
10. The State Design Pattern
Defining the State design pattern
Understanding the State design pattern
Understanding the State design pattern with a UML diagram
A simple example of the State design pattern
The State design pattern with v3.5 implementation
Advantages/disadvantages of the State pattern
Summary
11. AntiPatterns
An introduction to AntiPatterns
Software development AntiPatterns
Spaghetti code
Golden Hammer
Lava Flow
Copy-and-paste or cut-and-paste programming
Software architecture AntiPatterns
Reinventing the wheel
Vendor lock-in
Design by committee
Summary
Index
Learning Python Design Patterns Second
Edition
Learning Python Design Patterns Second
Edition
Copyright © 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system,
or transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the author, nor Packt Publishing, and its
dealers and distributors will be held liable for any damages caused or alleged to be caused
directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: November 2013
Second edition: February 2016
Production reference: 1080216
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78588-803-8
www.packtpub.com
Credits
Author
Chetan Giridhar
Reviewer
Maurice HT Ling
Commissioning Editor
Kunal Parikh
Acquisition Editor
Denim Pinto
Content Development Editor
Merint Thomas Mathew
Technical Editor
Chinmay S. Puranik
Copy Editor
Tasneem Fatehi
Project Coordinator
Suzanne Coutinho
Proofreader
Safis Editing
Indexer
Priya Sane
Graphics
Kirk D’Penha
Production Coordinator
Shantanu N. Zagade
Cover Work
Shantanu N. Zagade
Foreword
“Controlling complexity is the essence of computer programming.”
—Brian Kernighan
“All problems in computer science can be solved by another level of indirection (abstraction).”
—David Wheeler
The preceding two quotes by two well known computer scientists illustrate the problem
faced by the modern software designer—coming up with a good, stable, reusable, flexible
solution to a software design problem.
Design patterns solve the preceding problems in the most elegant way. Design patterns
abstract and present in neat, well-defined components and interfaces the experience of
many software designers and architects over many years of solving similar problems.
These are solutions that have withstood the test of time with respect to reusability,
flexibility, scalability, and maintainability.
There have been many books on design patterns with the well-known Gang of Four (GoF)
book forming the cornerstone of nearly the entire domain.
However, in this era of web and mobile computing, where programs tend to get written in
high-level languages such as Python, Ruby, and Clojure, there is often a need for books
that translate the rather esoteric language used in such books into more familiar terms,
with reusable code written in these newer, more dynamic programming languages. This is
especially true when it comes to newbie programmers who often tend to get lost in the
complexities of design versus implementation and often require an expert helping hand.
This book fulfills that role very well. It uses the template of design patterns as laid out in
the GoF book and adds a few others as well for completion—but before jumping into the
patterns itself, gives the young and inexperienced reader the fundamentals of software
design principles that have gone into the thinking behind the creation and evolution of
these design patterns. It doesn’t walk the gentle reader blindly into the maze of the pattern
world, but lays out the fundamentals well before opening that door and carrying the reader
along that path of learning.
The book is written with Python as the language for implementing the sample code for the
patterns—and this makes excellent sense. As someone who has spent more than 12 years
in the company of this wonderful programming language, I can attest to its beauty and
simplicity and its effectiveness in solving problems ranging from routine to the most
complex. Python is ideally suited to the rookie and young programmer, and with the ease
of learning it, it is also a lot of fun to code in. The young programmer would find their
time spent in the company of Python along in this book very rewarding and fruitful.
Chetan Giridhar has been working and contributing to Python for well over 7 years. He is
ideally suited for the job of penning a book like this, as he has gone through some of the
cycles of learning the complexities of implementation and design himself and has learned
well through that process. He is a well-known speaker on a number of varied topics in
Python and has delivered well-attended talks at Python conferences, such as PyCon India.
He was amongst the invited speakers for conferences in the USA, Asia-Pacific, and New
Zealand.
I believe this book, Learning Python Design Patterns, Second Edition, would be an
excellent addition to the Learning series by Packt Publishing and would provide a set of
skills to the toolbox of the young Python programmer that would take them gently and
expertly to being able to design modular and efficient programs in Python.
Anand B Pillai
CTO—Skoov.com
Board Member—Python Software Foundation
Founder—Bangalore Python User’s Group
About the Author
Chetan Giridhar is a technology leader, open source enthusiast, and Python developer.
He has written multiple articles on technology and development practices in magazines
such as LinuxForYou and Agile Record, and has published technical papers in the Python
Papers journal. He has been a speaker at PyCon conferences such as PyCon India, Asia-
Pacific, and New Zealand and loves working on real-time communications, distributed
systems, and cloud applications. Chetan has been a reviewer at Packt Publishing and has
contributed to books on IPython Visualizations and Core Python.
I’d like to thank the Packt Publishing team, especially Merint Thomas Mathew, and the
technical reviewer, Maurice HT Ling, for bringing out the best content in this book.
Special thanks to my mentor, Anand B Pillai, for graciously accepting to review this book
and writing the foreword. This book wouldn’t be possible without the blessings of my
parents, Jyotsana and Jayant Giridhar, and constant support and encouragement from my
wife, Deepti, and my daughter, Pihu!
About the Reviewer
Maurice HT Ling has been programming in Python since 2003. Having completed his Ph
D in bioinformatics and B Sc (honors) in molecular and cell biology from The University
of Melbourne, he is currently a research fellow in Nanyang Technological University,
Singapore, and an honorary fellow at The University of Melbourne, Australia. Maurice is
the chief editor for computational and mathematical biology, and co-editor for The Python
Papers. Recently, Maurice cofounded the first synthetic biology startup in Singapore,
AdvanceSyn Pte. Ltd., as a director and chief technology officer. He is also the principal
partner of Colossus Technologies LLP, Singapore. His research interests lie in life—
biological life, artificial life, and artificial intelligence—using computer science and
statistics as tools to understand life and its numerous aspects. In his free time, Maurice
likes to read, enjoy a cup of coffee, write his personal journal, or philosophize on various
aspects of life. You can reach him at his website and on his LinkedIn profile at
http://maurice.vodien.com and http://www.linkedin.com/in/mauriceling, respectively.
www.PacktPub.com
Support files, eBooks, discount offers, and
more
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and
ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as
a print book customer, you are entitled to a discount on the eBook copy. Get in touch with
us at <[email protected]> for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up
for a range of free newsletters and receive exclusive discounts and offers on Packt books
and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt’s online digital
book library. Here, you can search, access, and read Packt’s entire library of books.
Discovering Diverse Content Through
Random Scribd Documents
per Franzesi, sì che le strade erano rote. Quelli di l'Aquila non volse
dar el dacio di le piegore al Re di Franza, imo li ribellò; sì le cose
comenzava andar contrario.
In Puia acadete che volendo Camillo Pandon, era vicerè per re
Ferandino, ussir de Brandizo per scaramuzar con l'altro vicerè
francese stava a Misagne mia 8 de Brandizo, et andato più avanti de
li altri, corando la lanza, in le fosse de Misagne fo amazato; et cussì
morite.
Domente queste cose se fanno, Hieronymo Contarini provedador di
l'armada retrovandose a Corphù, et habuto lettere di la Signoria che
li comandava a lui et al capetanio zeneral che, statim adunato
l'armada, se dovesse redur al Saseno, et mandasse alcune galie
verso Puia per inanimar quei populi et sopraveder come si faceva.
Unde esso provedador, essendo el zeneral verso Modon, et andato a
sopraveder el muolo faceva far al Zante Piero Nadal provedador ivi,
et ordinar come havesse a far, etiam andato per far cargar stratioti
su li arsilii, li mandò lettere di la Signoria, a ciò si reducesse con
l'armada al Saseno, et lui con galie 6 se ritrovava, una di le qual era
soracomito Antonio Loredan, et le altre dalmatine, se ne venne di
longo verso a Brandizo, et fo la Settimana Santa. Unde, zonto la sera
a Brandizo, quelli di la terra cognoscendo era galie di S. Marco fece
gran feste, sonando campanon, et la matina poi li vene in galia don
Cesare fo fiul di re Alphonso, natural, con alcuni governadori di la
terra, usando assà parole, rengratiando assà, però che credevano
fusse ivi venuto per far dismontar la zurma et darli soccorso; et che
erano presti a far quanto lui comandava, o di levar S. Marco o quello
voleva, et che aspettava etiam le galie dil Re suo, et che lui si
ritrovava haver 400 cavalli lizieri, et havendo altri 600 cavalli overo
200 stratioti, li bastava l'animo di far voltar tutta la Puia et rebellar a
Franza, però che intendeva esser ne le terre 6 over 7 Franzesi per
luogo, et che Puiesi si haveano resi per non haver el vasto. A le qual
parole el Provedador rispose che l'era venuto a sopraveder,
confortandoli etc. Et partito ditto don Cesare di galia, li mandò a
presentar alcune cose a le galie. Et è da saper che tra le altre cosse
che li disse el Provedador, fo come el capetanio zeneral era con 20
galie et altre vele al Saseno per venirli a dar aiuto, et che advisava
dil tutto la Signoria, et ritornò in quel zorno medemo al Saseno, ch'è
mia 80 lontan. La qual venuta fo optime, perchè molti di la terra che
si volevano render a Franzesi, vedendo galie di la Signoria,
deliberorno tenirsi; et cussì si terminò, nè mai si rese. Ma el
Provedador mandò di Brandizo Antonio Loredan soracomito con do
altre galie dalmatine verso el Faro de Messina, per andar a trovar
l'armada dil Re di Spagna ivi era. Quello fece et ivi operò, più avanti
intenderete lezendo.
Ma l'ambassador di Napoli era in questa terra, volendo dimostrar
vera fede al suo Re, trovò certi danari da Puiesi habitavano quivi, a
la summa di ducati zerca X milia, et comenzò a far fanti qui a
Venetia, et darli paga di uno mese per uno. Et uno chiamato
Hieronimo da Cividal, et Tonin stampador (?) venetiano fece capi di
detti fanti. Etiam 200 schiopetieri todeschi con uno loro capo. Et
cussì mandò in Histria a far fanti; et fo divulgato voleva far 2000;
tamen era la fama, l'efetto fo solum n.º 300. Et nolizò uno gripo de
Bernardo Contarini, et una caravella de botte 200 de Puiesi. Et fatto
depenzer targete su la piaza di S. Marco con l'arme dil Re con la
corona, et di sotto do altre arme. Et le bandiere di ditti navilii era
l'arme dil Re con la corona, et di sopra uno Christo che ressuscita, in
modo di quello è su li ducati feraresi, in segno et demostratione che
per questa liga, mediante la Signoria, el suo Re era ressuscitato. Et
fatto che ebbe ditti fatti, andò in Collegio domandando una lettera,
che li fusse fatto bona compagnia a questi navilii, et che l'havia fatto
qui 1000 fanti, li qual voleva mandar a Brandizo. Unde nostri stete
molto admirati, et fatto consultatione preseno in Pregadi di lassarli
andar, ma non con navilii nostri; et cussì a dì primo Mazo questi fanti
n.º 300 si partite de Lio, et andono a Brandizo.
Et a dì ultimo April zonse in questa terra uno ambassador di re
Ferandino, partito al primo dil mexe de Yschia dove era el suo Re,
dovendose partir per andar in Cicilia; el qual orator nomeva Joan
Charaffa cavalier. Et questo dismontò a presso Hostia, et poi per
terra se ne venne di longo. Et a dì primo Mazo insieme con l'altro
Zuan Battista Spinelli, andando tamen di sotto, andò a la Signoria, et
molto racomandò el Re. Et la causa, per la qual era venuto, fu che
era sta ditto a Ferandino, come el suo ambassador qui se ne era
partito, et a ciò non restasse la Signoria senza, mandò questo altro,
o fusse per altra cagione, non se intese altro. Et poi che stete alcuni
zorni, andò dal Pontefice a Orvieto, come dirò di soto, et ivi restò
ambassador.
In questi zorni per uno arsil de stratioti zonti quivi, patron Andrea
Cingano, cargati a Napoli di Romania, se intese come ditto arsil era
capitato a Otranto, el qual novamente si havia reso a l'araldo de
Franza; dove li era sta fatto bona compagnia, dicendo quella terra
esser al comando di S. Marco, facendoli molti presenti; et che el
patron li disse erano XXX arsilii cargi de stratioti che venivano a
Venetia, et loro molto alliegri voleva dismontasseno, li dimostrando
bona voluntà a San Marco, et che si haviano resi al Re de Franza per
paura di non haver el guasto: nel qual loco di Otranto ne la roca era
tre Franzesi et in la terra quattro. Questo arsil discargò li stratioti su
Lio, et ivi fatto la mostra, et habuto le lor page, andono verso Chioza
dove erano altri stratioti che continuamente zonzeva. Et volendo
passar a Ravena per le boche di Po, le qual sono cinque mettono im
mar, zoè Fornaxe, Frixi, Goro, Volane et Primer; di le qual do è dil
Duca de Ferara, zoè Goro et Volane. Or la Signoria scrisse al Duca de
Ferara se li piaceva di darli el passo; el qual respose: non solum
passo per li stratioti, ma tutto quello voleva et comandava ditta
Illustrissima Signoria voleva obedir come bon fiul. Et el zorno de S.
Marco a Ferara, nel qual zorno è consueto de far gran cerimonie, vi
va il Vicedomino con la bandiera di S. Marco con gran solenità, et el
Vicedomino preciede tutti. Et questo anno el Duca in persona vi
andò, dimostrando grande amor a Venetiani. Et essendo venuto lì
uno secretario de Napoli de suo fiul, subito el Duca lo remandò
indriedo, se divulgava per far venir a Ferara don Ferante suo fiul,
tamen non fo per questo. Et come per lettere di esso Zuan
Francesco Pasqualigo, ditto el cavalier, vicedomino ivi, date a dì 25
April se intese, come sul Ferarese era accadesto una cossa stupenda
de notte tempo sora certe possessione, maxime Riam (Ariano) et
Crespin, era sta scorzato assaissimi arbori, parte tagliati, et le vide
rotte, ch'era cossa mirabile el danno fatto, et in uno loco più di uno
altro; unde per Ferara et el Ferarese stavano molto admirati. Et
come poi per persone degne di fede havia udito, che molti havia la
notte fatto la varda in ditti campi, et pareva vedesse una ombra a
modo di homo che andava facendo tal cosse, unde dicono esser una
fantasma, et altri volontà de Dio per li peccati cometeno Feraresi,
licet nescio qua de causa. Verum est che cussì fo scritto a la
Signoria, et letta la lettera in Pregadi, confirmata etiam per lettere di
Domenego Malipiero podestà et capetanio di Rovigo, narra che sul
Polesene su alcune possessione questo esser accaduto, nè se poteva
saper da chi fatto fusse; tamen judicio meo, non era fantasma, ma
homeni disposti a far tal danni, come era. Ma ritorniamo a li stratioti.
Li quali, zonti che fonno a Lio, de mandato di la Signoria, per Piero
Duodo loro provedador li fo dato di prestanza do page per uno, zoè
ducati 3 tra loro e 'l cavallo, al mexe, eccetto li provisionati, che
hanno ducati 4 over 5 al mexe, i quali fanno provisionati per soi
meriti a la guerra di Ferrara del 1483. Adoncha questi stratioti fin qui
hanno toccato 4 page, do dal capetanio general quando fanno fatti,
et do quivi. Li capi veramente haveano ducati 8 per paga, et questi
fece la mostra su Lio, dove vi volse venir a veder Monsignor di
Arzenton ambassador dil Roy, et ben tutto considerava. Poi fanno
mandati per Lio a Chioza. Ai qual per la Signoria le era, oltra le page,
data la biava per li soi cavalli, secondo l'ubligatione era.
A Milano in questo mezo el Duca andò a Vegevene, et con lui vi andò
Zorzi Negro secretario, era con l'orator nostro, el qual rimase a
Milano. Et el sig. Galeazo di S. Severino col campo era pur vicino a
Aste, et voleva accamparse et piantar le bombarde. Et mandò uno
trombeta dentro la terra. Dove el duca di Orliens disse: Ch'è di quel
traditor di Ludovico? Et el trombeta risponde: Signor, di breve el sarà
qui. Et lì in Aste era venuti nuovamente assà Franzesi, intra li qual
2000 cernide fatte ivi vicine; et conclusive erano dentro assà
persone, et quella impresa non era sì facile come si judicava. Et per
spie mandate ivi di questo fo certificati, et per lettere di Domenego
Benedeto, podestà et capetanio de Crema, se intese come havia
mandato uno cremasco a inquerir quello in quelle parte si faceva; el
qual fo preso, et tandem fo lassato mediante alcuni suoi zuramenti,
dicendo andava a Santo Antonio di Vienna. Questo notificò come ne
la Franza, Franzesi se preparava, et che la Raina de Franza sì per
causa di questa liga, quam vedendo el Duca de Milano haver
mandato zente verso Aste, et che faceva zente in quantità grande, et
voleva venir de qua da monti. Et cussì per tutta la Franza se faceva
gran preparamenti de arme; questo perchè el Duca di Orliens havia
scritto al Parlamento di Paris et al Parlamento di Garnopoli et in altri
luogi, et al Duca di Borbon, come el Duca de Milan era venuto per
tuorli Aste, et che dovesseno venir ad aiutarlo, perchè voleva,
havendo Aste, serar el Re di mezo, a ciò non potesse ritornar in
Franza. Et el Duca de Milano questo intendendo, etiam lui scrisse a
ditti Parlamenti et Signori, excusandosi che lui non havia mandà
zente per tuor Aste, nè serar i passi al Re, ma che era sforzato,
perchè lì in Aste el Duca di Orliens se ingrossava molto et minazava
de venirli adosso a tuorli el stado, et per conservar el suo ivi havia
mandato, per obstar et non per muover guerra. Et cussì per alcuni
mandò ditte lettere ne la Franza, et havendo grande amicitia con la
marchesana di Monferà, el qual stado li era recomandado, esso Duca
le scrisse che le dovesse dar aiuto et favore a le sue zente,
bisognando, et pur se la non voleva esser con lui, dovesse esser
neutral, nè mostrarsi sua nemica. La qual gli rispose, voleva esser
con el Re de Franza. Si che è da considerar, quelli 25 homeni d'armi
alozati nel suo territorio, i quali la notte da 400 Franzesi fo assaltati
et presi, sì come è scritto di sopra, fusse di suo consentimento. Ma el
Duca di Orliens era pur in Aste con assà Franzesi, et ordinò a quelli
castelli circumstanti che non si movesseno niuno di paesani, ma
lassasse solum scorsizar a Franzesi a danni de Milano; et cussì
andava quelle cosse.
Zonse a Milano in questi zorni, o vero a Vegevene, uno ambassador
dil Duca di Loreno, che alias fo a soldo nostro in Italia a la guerra de
Ferara, et poi partite per andar al governo de Franza, perchè era
morto el re Ludovico padre di questo re Carlo, et ivi fo de' primi,
benchè poi fusse privato dil governo, et andò ne li soi paesi. Nome,
Renato, disceso di la caxa de Andegavia. Et za del 1480 essendo
morto Renato duca de Andegavia et za Re de Napoli, successe per
testamento in quel ducato Carlo suo nepote, et negli privilegii et
ragione ch'egli avea nel Reame preditto. Unde ditto Duca di Loreno
vedendo esser escluso, andò a campo a Marseia con le zente dil re
Ludovico de Franza per tuorli quel Ducato, et tamen non potè far
nulla et si partì de l'impresa. Or al presente mandò ditto ambassador
qui in in Italia, et expose al Duca de Milano come, non volendo
Franzesi tenisse el Regno di Napoli, meglio saria che lui vi venisse in
Italia a dominarlo, havendo la ragione havia in ditto Reame; tamen
non li fo risposo ad vota.
Ma la zente di esso Duca de Milano mandò uno trombeta in Aste,
notificando al Duca di Orliens come el voleva haver Aste, non per
romper guerra ma per assecurarsi. Et li fo risposo che 'l se
deffenderia valentemente. Ma dopoi iterum mandò a dirli che
mandasse via Franzesi di Aste, che etiam el signor Galiazo manderia
li suoi alozamenti. Tamen era di opinione di alcuni oratori di la liga,
che ditto campo dovesse far el tutto per haver Aste, la qual se
divolgava era debol cossa; però che, havendola, et ponendo
pressidio a li passi, Franzesi starebbe mal, et le cosse de qui
andrebbe mal per el Re de Franza. Ma questa impresa andava molto
pegra. Et in questi zorni accadette che, essendo ditte zente
acampate vicino a Aste, et volendo tenir uno bastion lì a presso,
Franzesi di Aste ussiteno et a quel bastion fonno a le man con ditti
Ducheschi, et combatendo virilmente Italiani, messeno Franzesi in
fuga, et assà ne fo morti, presi 17, i quali fonno mandati a Vegevene
dal Duca de Milano. Et le cerimonie de la investitura se preparava, et
fo decreto a dì primo Mazo nel consejo di Pregadi, di mandar li do
ambassadori electi in Spagna insieme con Hieronimo Lion, i quali si
dovesseno ritrovar a queste investisene, et poi andar di longo a
Zenoa con li do oratori eletti per el Duca, come ho scritto di sopra. Et
fo ordinato a Sebastiano Badoer cavalier dovesse repatriar,
havendose optimamente portato in questa legatione, et laudato da
tutti, et che ivi rimanesse con el successor Georgio Negro secretario
suo, per haver la pratica di quel stado, come fece.
Da Mar, per lettere dil Capetanio zeneral si have come si havia
habuto lettere da Costantinopoli da mercadanti in enigma, che 'l
signor Turco armava; la qual saria compita per tuto Mazo: tamen si
divulgava non usciria per questo anno. La qual cossa fu optima nova
a Venetiani, et ogni loro pensiero messe alle cosse de Italia, però
che prima pur si dubitaveno non volesse questo Turco far qualche
movesta.
In questa terra continuamente se faceva consultatione con li oratori
di la liga, et fo terminato in Pregadi de far ogni provisione necessaria
a star preparati a la guerra, non volendo però romper alcuna lianza
al Re de Franza; ma pur se il volesse far qualche novità, se dovesse
resister gagliardamente. Le decime se attendeva a scuoder, li
stratioti zonzeva; et ancora fo ordinato di far la mostra zeneral a dì X
Mazo de tutte le zente d'arme, et fo mandato Hieronimo da Monte,
vice collateral zeneral, a poner ordine de tal mostra. Et fo dato prima
soventione a tutti li soldati, a ciò fusseno in ordene; et fo ordinato de
far di le zente erano in Friul et in Trivixana la mostra a Sacil: et
scritto a Leonardo Mocenigo fo del Serenissimo Principe,
luogotenente di la Patria di Friul, et a Thoma Mocenigo podestà et
capitanio a Treviso, ve dovesse andar. Et de quelle de Padoa et
Polesine, a Montagnana; Marco Antonio Morosini cavalier capitanio di
Padoa, et Domenego Malipiero podestà et capitanio di Ruigo. Di le
zente di Veronese et Bressana, a Monte chiari; Polo Barbo capetanio
de Verona et Nicolò Michiel dottor capetanio de Brexa. De quelle
erano in Bergamasca, a Martinengo; dove fo ordinato vi andasse
Alvise Mudaxo capetanio di Bergamo et Domenego Beneto podestà
et capetanio a Crema. Quelle di Romagna fo fatto la mostra a
Ravena. Oltre di questo venne in questa terra Taliano da Carpi
conduto nuovamente, et venuto a le stantie et andò a la Signoria
offerendosi etc. Et anche non molti zorni avanti vi vene el conte
Carlo de Pian de Meleto conduto al principio de questa guerra. Et
essendo mancati do condutieri nominati di sopra, havia cavalli 300
per uno, et cavalli 150 che restava senza capo, che fo dil prefetto di
Roma che fu cassato, unde nel Consejo di Pregadi, a dì 29 April, fo
partito questi cavalli 750 tra undexe condutieri partiti pro portione,
come qui di sotto sarà notadi, zoè cressuto di le condute haveano.
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.
ebookname.com