Jython Essentials
معرفی کتاب «Jython Essentials» نوشتهٔ Noel Rappin, Samuele Pedroni، منتشرشده توسط نشر O'Reilly Media در سال 2010. این کتاب در فرمت epub، زبان انگلیسی ارائه شده است. «Jython Essentials» در دستهٔ بدون دستهبندی قرار دارد.
Jython is an implementation of the Python programming language written in 100% pure Java, so it runs under any compliant Java Virtual Machine. The secret to Jython's popularity lies in the combination of Java's librariesand tools with Python's rapid development capabilities. With Jython, you can write Python programs that integrate seamlessly with any Java code. And like Python, Jython can be used interactively, so you can get immediate results as you are programming. Jython Essentials provides a solid introduction to the Python language, offering a brief but thorough tour of the Python concept. Read more... Abstract: Jython is an implementation of the Python programming language written in 100% pure Java, so it runs under any compliant Java Virtual Machine. The secret to Jython's popularity lies in the combination of Java's librariesand tools with Python's rapid development capabilities. With Jython, you can write Python programs that integrate seamlessly with any Java code. And like Python, Jython can be used interactively, so you can get immediate results as you are programming. Jython Essentials provides a solid introduction to the Python language, offering a brief but thorough tour of the Python concept Content: Table of Contents Foreword Preface Audience Expectations Organization Further Reading Conventions Used in This Book How to Contact Us Samuele Pedroni's Acknowledgments Noel Rappin's Acknowledgments Introduction to Jython Jython Requirements Welcome to Jython Starting Jython Adding Items to the Window Adding Behavior What's Jython Good For? The Benefits of Jython For Java Programmers For Python Programmers The Speed Question The Rest of the Book Jython Basics Running Jython Basic Types Operators Numeric Types Integer Long Float Complex Numerical Functions. Sequences: Lists and TuplesSequence Access Sequence Functions and Functions Functional Programming Tuples: Immutable Sequences Strings String Formatting String Functions Mappings and Dictionaries Jython Files Jython Control Flow Statements and Expressions Assignment Unpacking Assignment Augmented Assignment Printing Blocks Conditional Logic Loops List Comprehensions Exceptions Evaluating Code Dynamically Modules and Functions Modules Functions Parameter Passing with Style Scoping Rules Flying First Class Import Statements and Packages Import Statements. Importing Java ClassesAuto-loading through lookup Reload Object-Oriented Jython Creating Classes Methods Classes, Instances, and Access Control Class and Static Attributes Access Control Get and Set Methods Using __getattr__ Using __setattr__ Inheritance Special Methods General Instance Special Methods Sequences and Mappings Numbers Using Java from Jython Basic Object Usage Automatic Type Conversion Managing Overloaded Methods Basic Data Conversions Converting Arrays Java Arrays and the jarray Module Java-to-Python Types: Automatic Conversion Collection Wrappers. Avoiding Name CollisionsInheriting from Java Basic Mechanics Java Interoperation and Overriding Calling Super Methods and Constructors Reflection and JavaBeans Bean-Based Reflection Using Beans in Jython Indexed Properties Event Properties Python-Based Reflection Reflecting on Java Objects Active Reflection Using Swing Java Versus Jython A Calculator An HTML Browser An HTML Source Browser Using Java Libraries JDBC and the Python Database API Using zxJDBC Connection Objects Cursor Objects Servlets and PyServlet Using PyServlet A Python Template Tool. Reloading Servlet ModulesJython and XML SAX and DOM JDOM and Jython Jython Standard Library Using Python Modules System and File Modules The sys Module The os Module The os.path module File Pattern Matching with glob Regular Expressions The re Module Match Objects Regular Expression Objects Special Characters Serialization and Pickling Unit Testing with PyUnit Simple Tests Tests in Groups Embedding Jython Inside Java Setting Up an Interpreter Executing Code Accessing the Interpreter Namespace Using PyObjects PyObject Subclasses Catching Exceptions Embedding Examples. Jython is an implementation of the Python programming language written in 100% pure Java, so it runs under any compliant Java Virtual Machine. The secret to Jython's popularity lies in the combination of Java's libraries and tools with Python's rapid development capabilities. With Jython, you can write Python programs that integrate seamlessly with any Java code. And like Python, Jython can be used interactively, so you can get immediate results as you are programming. Jython Essentials provides a solid introduction to the Python language, offering a brief but thorough tour of the Python concepts you'll need to understand to use Jython effectively. The book makes frequent comparisons between Python and Java, with special emphasis on the different object-oriented semantics of the two languages, so Java programmers can quickly get up to speed with Jython. Jython Essentials also covers the various ways in which Jython and Java can interact. For example, Jython code can create instances of pre-existing Java classes and call methods in those instances. You can write Jython classes that are direct subclasses of existing Java classes and use introspection to discern the capabilities of JavaBeans components. This book provides examples of using Jython with existing Java libraries, including the Swing GUI toolkit, the JDBC database API, the Servlet API, and various XML tools. And finally, the book shows how Jython can be used as a scripting language within a Java program. With Jython Essentials , you have everything you need to start creating applications that mix the best of Python's interactivity and Java's robust libraries. Jython is an implementation of the Python programming language, integrated with the Java platform. The secret to Jython's success lies in Java's architecture and tool set, and Python's rapid development. This work offers an introduction to the language, with reference material and examples.
دانلود کتاب Jython Essentials