Hello Python Community,
If you live in the Texas region, please help with PyTexas 2010
planning by filling out the new survey. This will tell us things like
whether the planned Aug 28 date works for you, whether you have a user
group in your area, and more importantly your t-shirt size :-).
http://www.surveymonkey.com/s/pytexas2010
For more info on PyTexas, see the following:
http://pytexas.orghttp://dfwpython.blogspot.com/
Thanks!
P.S. We need Python teachers for our beginner track! This same survey
is planned to reach a large number of area students, and they will
likely be interested in learning Python fundamentals, web development
in popular frameworks like Django, BFG, etc. Please watch for the
upcoming call for proposals, and feel free to contact me directly.
The pylib/py.test 1.3.1 release brings:
- the new imperative ``py.test.xfail()`` helper in order to have a test or
setup function result in an "expected failure"
- a new option ``--maxfail=NUM`` to stop the test run after some failures
- markers/decorators are now applicable to test classes (>=Python2.6)
- improved reporting, shorter tracebacks in several cases
- some simplified internals, more compatibility with Jython and PyPy
- bug fixes and various refinements
See the below CHANGELOG entry below for more details and
http://pylib.org/install.html for installation instructions.
If you used older versions of py.test you should be able to upgrade
to 1.3.1 without changes to your test source code.
py.test is an automated testing tool working with Python2, Python3,
Jython and PyPy versions on all major operating systems. It
offers a no-boilerplate testing approach and has inspired other testing
tools and enhancements in the standard Python library for more than five
years. It has a simple and extensive plugin architecture, configurable
reporting and provides unique ways to make it fit to your testing
process and needs.
See http://pytest.org for more info.
cheers and have fun,
holger krekel
Changes between 1.3.0 and 1.3.1
==================================================
New features
++++++++++++++++++
- issue91: introduce new py.test.xfail(reason) helper
to imperatively mark a test as expected to fail. Can
be used from within setup and test functions. This is
useful especially for parametrized tests when certain
configurations are expected-to-fail. In this case the
declarative approach with the @py.test.mark.xfail cannot
be used as it would mark all configurations as xfail.
- issue102: introduce new --maxfail=NUM option to stop
test runs after NUM failures. This is a generalization
of the '-x' or '--exitfirst' option which is now equivalent
to '--maxfail=1'. Both '-x' and '--maxfail' will
now also print a line near the end indicating the Interruption.
- issue89: allow py.test.mark decorators to be used on classes
(class decorators were introduced with python2.6) and
also allow to have multiple markers applied at class/module level
by specifying a list.
- improve and refine letter reporting in the progress bar:
. pass
f failed test
s skipped tests (reminder: use for dependency/platform mismatch only)
x xfailed test (test that was expected to fail)
X xpassed test (test that was expected to fail but passed)
You can use any combination of 'fsxX' with the '-r' extended
reporting option. The xfail/xpass results will show up as
skipped tests in the junitxml output - which also fixes
issue99.
- make py.test.cmdline.main() return the exitstatus instead of raising
SystemExit and also allow it to be called multiple times. This of
course requires that your application and tests are properly teared
down and don't have global state.
Fixes / Maintenance
++++++++++++++++++++++
- improved traceback presentation:
- improved and unified reporting for "--tb=short" option
- Errors during test module imports are much shorter, (using --tb=short style)
- raises shows shorter more relevant tracebacks
- --fulltrace now more systematically makes traces longer / inhibits cutting
- improve support for raises and other dynamically compiled code by
manipulating python's linecache.cache instead of the previous
rather hacky way of creating custom code objects. This makes
it seemlessly work on Jython and PyPy where it previously didn't.
- fix issue96: make capturing more resilient against Control-C
interruptions (involved somewhat substantial refactoring
to the underlying capturing functionality to avoid race
conditions).
- fix chaining of conditional skipif/xfail decorators - so it works now
as expected to use multiple @py.test.mark.skipif(condition) decorators,
including specific reporting which of the conditions lead to skipping.
- fix issue95: late-import zlib so that it's not required
for general py.test startup.
- fix issue94: make reporting more robust against bogus source code
(and internally be more careful when presenting unexpected byte sequences)
Announcing
----------
The 2.8.11.0 release of wxPython is now available for download at
http://wxpython.org/download.php. This release adds Python 2.7 builds,
PySlices, new pubsub implementation, lots of updates to AGW, and lots
of bugs fixed. A summary of changes is listed below and also at
http://wxpython.org/recentchanges.php.
Source code is available as a tarball and a source RPM, as well as
binaries for Python 2.5, 2.6 and 2.7, for Windows and Mac, as well
some packages for various Linux distributions.
What is wxPython?
-----------------
wxPython is a GUI toolkit for the Python programming language. It
allows Python programmers to create programs with a robust, highly
functional graphical user interface, simply and easily. It is
implemented as a Python extension module that wraps the GUI components
of the popular wxWidgets cross platform library, which is written in
C++.
wxPython is a cross-platform toolkit. This means that the same program
will usually run on multiple platforms without modifications.
Currently supported platforms are 32-bit and 64-bit Microsoft Windows,
most Linux or other Unix-like systems using GTK2, and Mac OS X 10.4+.
In most cases the native widgets are used on each platform to provide
a 100% native look and feel for the application.
Changes in 2.8.11.0
-------------------
Lots of bug fixes in both wxWidgets and wxPython.
Added the context manager protocol methods to some wx classes so they
can be used with the new Python 'with' statement. (The with statement
is always available starting in Python 2.6, and can also be used in
Python 2.5 with a __future__ import statement.) There are several
wx classes where this is a natural fit, such as wx.BusyInfo. The
__enter__ and __exit__ methods have also been added to wx.Dialog where
it will do the dialog.Destroy() call for you. This means that you can
use code like this::
with MyDialog(self, foo, bar) as dlg:
if dlg.ShowModal() == wx.ID_OK:
# do something with dlg values
The list of wx classes that can now be used as context managers is:
* wx.Dialog
* wx.BusyInfo
* wx.BusyCursor
* wx.WindowDisabler
* wx.LogNull
* wx.DCTextColourChanger
* wx.DCPenChanger
* wx.DCBrushChanger
* wx.DCClipper
A new class has been added that is also a context manager, called
wx.FrozenWindow. It will freeze the window passed to it upon entry to
the context, and will thaw the window upon exit from the context.
Applied the final version of patch #10959 to the PyCrust code. It
adds many enhancements to the Py suite, inlcuding the ability to edit
blocks of code (called slices) as a whole before executing them, and
also the ability to execute some simple shell commands.
Replaced the wx.lib.pubsub module with the new pubsub package from
http://pubsub.sf.net. By default it is backwards compatible with the
old pubsub module, but it also has a more advanced API available that
can be switched on at import time. See the pubsub web site for more
details.
The wx.Effects class is deprecated.
Added Python 2.7 builds for Windows and Mac.
Added Debian package builds for Ubuntu 9.10 and 10.4.
Many fixes and enhancements for the wx.lib.agw pacakge, including the
addition of pybusyinfo, ribbon, ultimatelistctrl and zoombar.
--
Robin Dunn
Software Craftsman
http://wxPython.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I'm proud to announce the release of Sphinx 1.0 beta 1, a preview of the
new and shiny 1.0, and Sphinx 0.6.6, a bugfix-only release in the 0.6 series.
What is it?
===========
Sphinx is a tool that makes it easy to create intelligent and beautiful
documentation for Python projects (or other documents consisting of
multiple reStructuredText source files).
Website: http://sphinx.pocoo.org/
What's new in 1.0 (very short version)?
=======================================
Lots of stuff; most important of all domains support (see blog post at
http://pythonic.pocoo.org/2009/9/12/new-in-sphinx-1-0-domains), new HTML
themes, new output formats (manpage, epub).
The full list is at <http://sphinx.pocoo.org/latest/changes.html>.
What's new in 0.6.6 (short version)?
====================================
Several major bugs and problems have been fixed.
The full list is at <http://sphinx.pocoo.org/changes.html>.
cheers,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
iEYEARECAAYFAkv7CqkACgkQN9GcIYhpnLAE1ACeN1yeZBDBxrAFBEUvO+EyG092
SiYAn2wfrSNrnZ1Oh7W2yPWGFN9I/3R+
=qYbo
-----END PGP SIGNATURE-----
what is it
----------
A Python package to parse and build CSS Cascading Style Sheets. (Not a
renderer though!)
about this release
------------------
0.9.7a5 is an alpha release but quite stable now I guess...
main changes
------------
0.9.7 is quite a bit faster than 0.9.6.
0.9.7a5 100523
+ **API CHANGE (major)**: When setting an objects ``cssText`` (or
``selectorText`` etc) property the underlying object is replaced with a
new one now. E.g. if setting ``cssutils.css.CSSStyleRule.selectorText``
the underlying ``cssutils.css.CSSStyleRule.selectorList`` object is
swapped to a new ``SelectorList`` object. This should be expected but
cssutils until now kept the exact same object and changed its content
*in-place*. Please be aware! (Also the strange ``_absorb`` method of
some objects is gone which was used for this.)
+ **API CHANGE (minor)**: Renamed
``cssutils.ser.prefs.keepUnkownAtRules`` to
``cssutils.ser.prefs.keepUnkownAtRules`` due to misspelling, see Issue
#37. A DeprecationWarning is issued on use.
+ API CHANGES (minor):
- ``cssutils.css.CSSImportRule.media`` and
``cssutils.css.CSSMediaRule.media`` are now writable (setting with a
string or ``cssutils.stylesheets.MediaList``)
- msg level when setting
``cssutils.stylesheets.MediaList.appendMedium`` changed to INFO (was
WARNING)
- ``str(cssutils.css.CSSStyleRule)`` slightly changed
- **IMPROVEMENT/BUGFIX**: Improved distribution: Egg release should
no longer include the tests package, source release still should. Also
added dependency package for tests (minimock) and removed documenation
txt files from distribution (HTML still included of course). This also
fixes Issue #36.
- IMPROVEMENT: cssutils issues a warning if a page selector is not
one of the defined in the spec (``:first``, ``:left``, ``:right``).
- IMPROVEMENT: Refactored quite a lot and added a few tests for
variables
license
-------
cssutils is published under the LGPL version 3 or later, see
http://cthedot.de/cssutils/
If you have other licensing needs please let me know.
download
--------
For download options see http://cthedot.de/cssutils/
cssutils needs Python 2.4 or higher or Jython 2.5 and higher (tested
with Python 2.6.5(x64), 2.5.4(x32), 2.4.4(x32) and Jython 2.5.1 on Win7
64 only)
Bug reports (via Google code), comments, etc are very much appreciated!
Thanks.
Christof
Hi,
after 6 months of laziness while code was complete in my computer but
didn't have enough time, I'm releasing a new version of lfm now.
Description:
=========
Last File Manager is a simple but powerful file manager for the UNIX
console. It's written in Python, using curses module.
Licensed under GNU Public License version 3.
Some of the features you could find in lfm:
- console-based file manager for UNIX platforms
- 1-pane or 2-pane view
- tabs
- bookmarks
- history
- vfs for compressed files
- dialogs with entry completion
- fast access to the shell
- direct integration of find/grep, df and other tools
- color files by extension
- fast file viewer with text and binary modes
- ...and many others
Download it from:
=============
http://inigo.katxi.org/devel/lfm (home server)
or http://code.google.com/p/lfm/
or from http://www.terra.es/personal7/inigoserna/lfm when crap ISP
updates its cache.
Changes since last version:
====================
+ New features
- use 2 progress bars in copy/move/delete dialog, one for files count
and other for files size
- added recursive chmod chown chgrp
- faster cursor movement
. Ctrl-l: center cursor in panel, so now edit-link is in 'L'
. Ctrl-cursor_up, Ctrl-P: move cursor 1/4th of page up
. Ctrl-cursor_down, Ctrl-N: move cursor 1/4th of page down
. P: move cursor 1/4th of page up in other panel
. N: move cursor 1/4th of page down in other panel
- file_menu new feature: a -> backup file. You can specify the extension
to use in .lfmrc
- added support for .xz compressed files
- Unicode & Encodings
. rewrite all internals to use unicode strings, but employ terminal
encoding (f.e. utf-8) to interact with the user or to display contents
in ncurses functions or to run commands in shell
. when lfm detects a file with invalid encoding name it asks the user to
convert it (can be automatic with the proper option in the
configuration, automatic_file_encoding_conversion, default 0 (ask)).
If not converted, lfm will display the file but won't operate on it.
. try more encodings when we get a filename with strange characters
. lfm will check and require a valid encoding before running
- Pyview:
. completely rewritten. Code is shorter and more beautiful now
Uses a new FileCache class to accelerate the retrieving of file lines
. displays contents between 2 and 4 times faster
. new command line flag -s/--stdin to force reading from stdin.
Now pyview doesn't wait for stdin input by default, so it starts much
faster. eg. $ ps efax | pyview -s
+ Minor changes
- add color entries for directories and exe_files
- expand ~ to user home
- make Tree follow .dotfiles behaviour, new keybinding Ctrl-H
- dialogs are bigger now
- show filesystem info rewritten
- show file info rewritten, now it shows correctly information
from fuse-mounted volumes
- added new "ebook" category, filetypes and formats
+ About the code
- since python v2.6+, popen* is deprecated, so make lfm check python
version and use popen* or subprocess accordingly
- correct some python idioms
- clean code
+ Documentation
- Added "Files Name Encoding" and "FAQ" sections
- Added information about keybindings in permissions window
- Updated some other minor changes: wide char support, vfs, thanks
+ lots of bugs fixed:
- file system information was not showed correctly sometimes
- devices major and minor numbers were not showed correctly
- crash in goto_dir if there aren't any historic entries
- crash in a void EntryLine after pressing BACKSPACE on some platforms
- unzip => overwrite files without prompting ("unzip -o" option) to avoid
ethernal waiting, as messages can not be seen by user
- fix make_dir error message
- recompressing a vfs compressed file leave some garbage on temporary dir
- don't try to copy fifo/socket/block-dev/char-dev files
- crash when we don't have enough permissions to write to dest
- show_dirs_size: don't show in stderr if we don't have perms for a dir
- can't browse /home/<user> as root if .gvfs is present
- EntryLine: non-ascii chars are not showed correctly
- lfm crashes with invalid encoding filenames
- increment owner and group space to avoid ugly look in 1-pane view
- when moving files, don't delete source if some error or if we don't
overwrite destination
Of course, all comments, suggestions, etc. are welcome.
Best regards,
Iñigo Serna
mystic: a simple model-independent inversion framework
http://www.its.caltech.edu/~mmckerns/software.html
# Version
0.2a1: 05/22/10
# Highlights
First alpha version for second minor release.
Extending optimizers to parallel and distributed computing.
Solvers:
- Differential Evolution (x2)
- Nelder-Mead Simplex
- Powell's Directional Search Method
- Pseudo-global Scattershot
- Pseudo-global Batch Grid
API:
- solvers share a common interface
- solvers can be called as a unique function or using API
- solvers with built-in optimization control handlers
- configurable solvers can be bound or unbound
- configurable solvers have user-provided or random initial points
- configurable termination conditions
- configurable mutation strategies (for DE solver)
- parallel mapping of optimization jobs
- distributed parallel mapping of optimization jobs
- parallel multiprocess mapping of optimization jobs
- launching with job schedulers
Tools:
- configurable 2-variable monitors
- wrap function with counter or bounds
- cost-function generator
- standard set of optimization test models
- set of example scripts for test cases
- math tools
Documentation:
- User's Guide with tutorials
- online Reference Manual
---
Mike McKerns
California Institute of Technology
http://www.its.caltech.edu/~mmckerns
Hi All,
Early bird registration (€40) for PyCon Ireland 2010 ends 31st May. It'll
revert to standard price of €60.
(As well as Sat and Sun's days events, a conference pass incls. a dinner and
live entertainment on Saturday night).
Bringing a friend, partner, etc. for dinner on Sat evening? You can reserve
an extra dinner placement for €30.
Competition to win a prize for best abstract submissions ends tonight
midnight (GMT), 21st May.
The final deadline for abstract submission is 31st May.
A small preview:-
Iron Python core developer, Dino E Viehland, will be one of our guest
speakers at PyCon Ireland this year (Thanks to Martha Rotter and Microsoft).
Steve Holden, Chairperson of PSF, will be joining us at PyCon Ireland for a
pint or 2 or more!
More details at http://python.ie/pyconireland.
Thanks,
/// Vicky (PyCon Ireland 2010)
~~~~~~~~~~~~~~~~~~~~~~~~~
~~ http://irishbornchinese.com ~~
~~ http://www.python.ie ~~
~~~~~~~~~~~~~~~~~~~~~~~~~
Optimized String-like Object is kind of a misnomer in that, the object
provided is a subclass of the base str type, adding optimized (Cython
bindings to the standard (POSIX) libc regex and string functions)
match() and sub() methods.
Homepage: https://wiki.fu-manchu.org/doku.php?id=projects:ostri