The Definitive Guide to Jython: Python for the Java Platform by Josh Juneau

By Josh Juneau

Jython is an open resource implementation of the high-level, dynamic, object-oriented scripting language Python seamlessly built-in with the Java platform. The predecessor to Jython, JPython, is qualified as a hundred% natural Java. Jython is freely to be had for either advertisement and noncommercial use and is shipped with resource code. Jython is complementary to Java.

The Definitive advisor to Jython, written by means of the legitimate Jython group leads, covers the most recent Jython 2.5 (or 2.5.x) from the fundamentals to the complex positive factors. This ebook starts with a short creation to the language after which trips via Jython’s diverse beneficial properties and uses.

The Definitive advisor to Jython is prepared for novices in addition to complicated clients of the language. The e-book offers a basic evaluation of the Jython language itself, however it additionally comprises intermediate and complex themes concerning database, net, and GUI functions; internet services/SOA; and integration, concurrency, and parallelism, to call a number of.

What you will learn

  • How to address Jython fundamentals like language syntax and concepts
  • How to exploit the Jython scripting language for I/O, Java/Jython integration, and Jython in an IDE and databases
  • How to combine Jython with the Django internet framework or even Spring
  • How to enhance net functions with Jython together with net services/SOA, GUI issues, and deployment targets
  • How to behavior trying out, non-stop integration, concurrency, scaling, and extra with Jython

Who is that this booklet for?

This e-book is for Java internet builders trying to use a dynamic scripting language as a substitute to Groovy or JRuby. different net builders who use Python and Django can also be attracted to this book.

Show description

Read or Download The Definitive Guide to Jython: Python for the Java Platform PDF

Similar python books

Pro Django

Django is the major Python net program improvement framework. methods to leverage the Django internet framework to its complete power during this complicated instructional and reference. counseled through Django, seasoned Django roughly selections up the place The Definitive advisor to Django left off and examines in better element the weird and complicated difficulties that Python internet software builders can face and the way to resolve them.

Python and HDF5

Gain hands-on event with HDF5 for storing medical information in Python. This useful advisor quick will get you in control at the info, most sensible practices, and pitfalls of utilizing HDF5 to archive and proportion numerical datasets ranging in measurement from gigabytes to terabytes.

via real-world examples and sensible routines, you’ll discover themes resembling clinical datasets, hierarchically equipped teams, user-defined metadata, and interoperable documents. Examples are appropriate for clients of either Python 2 and Python three. If you’re accustomed to the fundamentals of Python facts research, this is often an awesome creation to HDF5.
• Get arrange with HDF5 instruments and create your first HDF5 dossier
• paintings with datasets by way of studying the HDF5 Dataset item
• comprehend complex positive aspects like dataset chunking and compression
• the way to paintings with HDF5’s hierarchical constitution, utilizing teams
• Create self-describing documents through including metadata with HDF5 attributes
• make the most of HDF5’s kind procedure to create interoperable documents
• show relationships between info with references, named kinds, and measurement scales
• become aware of how Python mechanisms for writing parallel code engage with HDF5

The Definitive Guide to Jython: Python for the Java Platform

Jython is an open resource implementation of the high-level, dynamic, object-oriented scripting language Python seamlessly built-in with the Java platform. The predecessor to Jython, JPython, is qualified as a hundred% natural Java. Jython is freely on hand for either advertisement and noncommercial use and is sent with resource code.

A functional start to computing with Python

A practical begin to Computing with Python permits scholars to quick study computing with no need to take advantage of loops, variables, and item abstractions first and foremost. Requiring no previous programming event, the booklet attracts on Python’s versatile facts kinds and operations in addition to its skill for outlining new capabilities.

Additional resources for The Definitive Guide to Jython: Python for the Java Platform

Sample text

Listing 1-19. >>> my_value = 'I love programming in Jython' >>> print my_value I love programming in Jython 13 CHAPTER 1 ■ LANGUAGE AND SYNTAX Once again, very straightforward in terms of printing values of variables. Simply place the variable within a print statement. We can also use this technique in order to append the values of variables to a line of text. In order to do so, just place the concatenation operator (+) in between the String of text which you would like to append to, and the variable you’d like to append.

Identifiers and Declaring Variables Every programming language needs to contain the ability to capture or calculate values and store them. Python is no exception, and doing so is quite easy. Defining variables in Python is very similar to other languages such as Java, but there are a few differences that you need to note. To define a variable in the Python language, you simply name it using an identifier. An identifier is a name that is used to identify an object. The language treats the variable name as a label that points to a value.

The def statement is used to define a function. Here is a simple piece of pseudocode that shows how to use it. Listing 1-10. def my_function_name(parameter_list): implementation The pseudocode above demonstrates how one would use the def statement, and how to construct a simple function. As you can see, def precedes the function name and parameter list when defining a function. Listing 1-11. >>> def my_simple_function(): ... print 'This is a really basic function' ... >>> my_simple_function() This is a really basic function This example is about the most basic form of function that can be created.

Download PDF sample

Rated 4.10 of 5 – based on 23 votes
Posted In CategoriesPython