Stories from October 6th, 2010

Resource of the Week 10/6/2010: Learning Python


It seems no matter what field you work in these days, if you work with computers you’ve probably heard of the language “Python”.  Currently the core of scripting systems in tools varying from Nuke to Maya to ParaView, the amazing flexibility and simplicity of the language make it an attractive choice for both developers and users.  This week’s recommended resources goes out to Python novices and experts alike, starting with O’Reilly’s “Learning Python“.

The authors of Learning Python show you enough essentials of the Python scripting language to enable you to begin solving problems right away, then reveal more powerful aspects of the language one at a time. This approach is sure to appeal to programmers and system administrators who have urgent problems and a preference for learning by semi-guided experimentation.First off, Learning Python shows the relationships among Python scripts and their interpreter (in a mostly platform-neutral way). Then, the authors address the mechanics of the language itself, providing illustrations of how Python conceives of numbers, strings, and other objects as well as the operators you use to work with them. Dictionaries, lists, tuples, and other data structures specific to Python receive plenty of attention including complete examples.

Authors Mark Lutz and David Ascher build on that fundamental information in their discussions of functions and modules, which evolve into coverage of namespaces, classes, and the object-oriented aspects of Python programming. There’s also information on creating graphical user interfaces (GUIs) for Python applications with Tkinter.


And if just learning the basics isn’t enough, then jump-start your Python skills with a full collection of code snippets with O’Reilly’s Python Cookbook.

Updated for Python 2.4, The Python Cookbook, 2nd Edition offers a wealth of useful code for all Python programmers, not just advanced practitioners. Like its predecessor, the new edition provides solutions to problems that Python programmers face everyday.

It now includes over 200 recipes that range from simple tasks, such as working with dictionaries and list comprehensions, to complex tasks, such as monitoring a network and building a templating system. This revised version also includes new chapters on topics such as time, money, and metaprogramming.

Here’s a list of additional topics covered:

  • Manipulating text
  • Searching and sorting
  • Working with files and the filesystem
  • Object-oriented programming
  • Dealing with threads and processes
  • System administration
  • Interacting with databases
  • Creating user interfaces
  • Network and web programming
  • Processing XML
  • Distributed programming
  • Debugging and testing

Another advantage of The Python Cookbook, 2nd Edition is its trio of authors–three well-known Python programming experts, who are highly visible on email lists and in newsgroups, and speak often at Python conferences.With scores of practical examples and pertinent background information, The Python Cookbook, 2nd Edition is the one source you need if you’re looking to build efficient, flexible, scalable, and well-integrated systems.

Find this book and many more in the VizWorld Store.

Science , ,

 
Stories from August 16th, 2010

Processing in Jython

Jonathan Feinberg has just released on GitHub a clever Python-like wrapper for Processing, the result of an interesting encounter with a group of 8th graders.

I recently gave a talk about Processing to a group of rather bright 8th-graders, as part of a computer-programming summer camp they were attending at my office. Their curriculum up to that point had been in Python, which is an eminently sensible choice, given the pedagogical roots of the language.

The kids were really turned on by the demos–I showed them the white glove, and Golan Levin’s New Year’s cards–but they were bogged down by Processing’s C-like syntax, which really seems arcane and unnecessarily complex when you’re used to Python.

The full code and some demos are available at GitHub.

via jdf’s processing.py at master – GitHub.

Science ,

 
Stories from April 9th, 2010

MAXON Acquiring Py4D

MAXON closed out 2009 announcing a strategic partnership with Py4D, bringing the Python interface even closer into Cinema4D.  Now, they’ve taken the partnership “all the way” and outright acquired Py4D.

Harald Schneider, CTO and co-founder of MAXON states: “With the Python connection for our products we want to offer an easy and flexible option of adding custom functionality for both users and developers alike. Python is the easiest and most flexible solution.”

Current Py4D developer Sebastian Rath will continue to manage the library, but until the integration is fully complete the most beta version and documentation will continue to be available free of charte at www.py4d.com .

via MAXON – The makers of CINEMA 4D and BodyPaint 3D.

Graphics , , ,

 
Stories from December 15th, 2009

MAXON Announces Partnership with Developer of Py4D

py4dFans of MAXON’s Cinema4D will have a new tool at their disposal thanks to an official partnership between MAXON and the developers of a python scripting library, Py4D.

“Python is easy to learn and provides similar access to CINEMA 4D functionality as the C++ SDK,” commented Harald Schneider, CTO and co-founder of MAXON. “We want the CINEMA 4D community to know that we are supporting the development of Py4D so they can confidently invest resources in Python and Py4D to enhance their own production pipelines.”

Choosing Python over C++ is a no-brainer for most developers (I know I use Python every chance I get, resorting only to C for raw speed).  Hopefully the official partnership will improve the support even further, possibly making it ship with Cinema4D in a future release.  See the full release after the break.

Read more…

Graphics , , , , ,

VizWorld.com is a production of VizWorld, LLC © 2009