Pyrex 0.9.3 is now available:
http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
Highlights of this version:
- Types defined with a ctypedef in a 'cdef extern from' block
are now referred to by the typedef name in generated C code,
so it is no longer necessary to match the type in the C
header file exactly.
- Some bugs introduced by the recent changes to the handling
of string literals have been fixed.
Plus several other enhancements and bug fixes -- see the
CHANGES file in the distribution for details.
What is Pyrex?
--------------
Pyrex is a new language for writing Python extension modules.
It lets you freely mix operations on Python and C data, with
all Python reference counting and error checking handled
automatically.
Oroboro is an approach to integrating Python and Verilog. With it, Python generator functions are used to model simulation threads in a cooperative multitasking style. An Oroboro task can suspend its execution with a yield statement that lists the reasons the task should be resumed. Typical reasons map directly to VPI callback reasons. Oroboro does not implement a scheduler of its own, rather, it relies on Verilog for all event scheduling through the use of callback functions.
A short example illustrates some basic capabilities for interacting with a Verilog simulation.
from oroboro import *
def watcher(sig):
print "Watching signal %s" % sig
while 1:
yield sigchange(sig), timeout(10)
if isinstance(currentreason(), sigchange):
print "New value for signal %s is %s" % (sig, sig.get())
if isinstance(currentreason(), timeout):
print "Timeout has elapsed. Wait again."
def main(systf):
s = signal("top.mysignal")
t = task(watcher, s)
yield timeout(0)
returnThe example above illustrates a simple task that watches a Verilog signal. The task 'watcher' loops indefinitely, suspending its execution with a yield statement that lists the reasons it should be resumed. Here, the task waits until either the signal value changes, or a 10 simulation tick timeout occurs ... whichever comes first. When the task resumes, it uses the 'currentreason' function to determine whether the first or second reason in the yield statement was triggered. The task prints an informative message and then loops.
Source downloads and documentation can be found at:
http://apvm.sourceforge.net
what is it
----------
An application to produce documentation for XSLT files in XHTML format,
similar to what javadoc does for Java files.
changes since the last release
------------------------------
Mainly bugfixes. Additionally the template priority is processed and
displayed now.
See http://cthedot.de/pyxsldoc/README.txt for a complete list of changes.
download
--------
download pyXSLdoc v0.66 - 040710 from http://cthedot.de/pyxsldoc/
pyXSLdoc needs
* Python 2.3 (tested with Python 2.3.4 on Windows XP only)
* Pyana (tested with Pyana 0.9.1 only)
* Docutils (tested with Docutils 0.3 only)
usage
-----
Copy the XSLT files to document in a directory below pyXSLdoc (you could
also give the complete path to your files but that would end up like
that in the documentation). Then start the documentation process with
>python xsldoc.py DIRNAMES FILENAMES [options]
DIRNAMES
directories with XSLT files to document,e.g. dir1 dir2
All directories and XSLT files below a given directory will be
processed, so you can just use your XSLT package main directory name or
use option -s.
FILENAMES
single XSLT files to document, e.g. file1.xsl path/file2.xsl
options
~~~~~~~
-sSOURCEPATH, --sourcepath=SOURCEPATH
sourcepath to XSLTs, all XSLT files under this path will be
documented and ``$SOURCEPATH/doctitle.txt`` and
``$SOURCEPATH/overview.txt`` will be used for the overview.
Alternatively you might also simply list all dirs and XSLT files to
document.
-j, --javadoc, --htmldocs
process comments in Javadoc style (XHTML and @tags). Default is
reStructuredText (ReST).
-dDOCPATH, --docpath=DOCPATH
documentation target directory. Default is ``./_xsldoc``
--windowtitle=WINDOWTITLE
browser window title for the documentation. Text only, no markup.
--doctitle=DOCTITLE
show the contents of this ReST .txt file at the top of the overview
page. Default is ``$SOURCEPATH/doctitle.txt``. If ommitted or no file is
found, WINDOWTITLETEXT is used.
-oOVERVIEW, --overview=OVERVIEW
show the contents of this ReST .txt file on the overview page.
Default is ``$SOURCEPATH/overview.txt``
--helpfile=HELPFILE
show the information of this ReST .txt file on the help page.
Default is ``./HELP.txt``.
--encoding=ENCODING
encoding of additional documenting ReST files (HELP.txt,
doctitle.txt, overview.txt, directory.txt etc.). Default is utf-8.
(Encoding of XSLT files and comments in these is of course read from the
XSLT file itself.)
-r, --removedocs
remove all comments from given XSLTs and save results in
COMMENTSTRIPPEDPATH. Present files will be OVERWRITTEN!
-cCOMMENTSTRIPPEDPATH, --commentstrippedpath=COMMENTSTRIPPEDPATH
path where XSLTs will be saved after removing of all docs. Only
used when option ``--removedocs`` is given. Default directory is
``./_optimized``.
-v, --verbose
show more detailed information while generating the documentation
thanks for the interest. any comment is appreciated
christof hoeke
pyxsldoc a t c the dot . de
http://cthedot.de
<P><A HREF="http://cthedot.de/pyxsldoc/">pyXSLdoc 0.66</A> - generate
XSLT documentation (10-Jul-04)
**py2exe 0.5.2** released
=========================
py2exe is a Python distutils extension which converts python scripts
into executable windows programs, able to run without requiring a
python installation. Console and Windows (GUI) applications, windows
NT services, exe and dll COM servers are supported.
This is a bugfix release.
* Print a message explaining what's going on whan a service
exe is started from the command line.
* py2exe did build invalid version resources, they didn't show up
correctly on Win98 at least. Patch by Roger Upole.
* Fix a buffer overflow in the C code. Patch by Ralf Sieger, closes
bug item #893310
* py2exe now (again) has a builtin list of dlls which should never be
distributed
* Patch sys.winver in the distributed pythonXY.dll, so that there is
no possibility of conflicts with existing distributions and the
registry keys found there. Patch by Mark Hammond.
* Fix several problems when an exception in a 'windows' exe occurs.
* Include a workaround for unbounded recursion in modulefinder when
Jason Jorendorff's path module is installed
See also http://python.org/sf/876278
* Fix problems when package_dir is set in the setup script,
see http://tinyurl.com/yuc5l
* py2exe can now be built from the sources with mingw32
* py2exe does now handle precompile .pyo and .pyc files (patch by
Shane Holloway)
* Fix a problem when the exe's directory contains single quotes
* Register service dependencies when installing a service
* Return an exit code of 255 from the exe when there's an uncatched
exception running the main script.
* Print a warning instead of failing to build with weird version numbers.
Suggested by Cory Dodt.
Homepage:
<http://starship.python.net/crew/theller/py2exe>
Download from the usual location:
<http://sourceforge.net/project/showfiles.php?group_id=15583>
Enjoy,
Thomas
There have been various updates to the Voidspace Python Utils.
Available from :
http://www.voidspace.org.uk/atlantibots/pythonutils.html
*NEW* approx.py Version 1.0.0
Python CGI-proxy.
A CGI-proxy for browsing the web in a restricted or censored
environment. Will remotely fetch the pages for you. Similar in concept
to the jmarshall perl proxy - though nothing like as fully featured yet.
Trial version online to test. Modifies urls in the page so that images,
stylesheets etc are also fetched through the proxy. Doesn't yet handle
forms very well but functioning amd can handle authentication. Will use
the ClientCookie module for cookie handling if it's available
(authentication without cookie handling is generally useless).
*NEW* listquote module Version 1.0.0
This module contains a set of functions for parsing values from text
files and writing them back out again. It replaces the lineparse and
csv_s modules. If you want a dead simple, bog-standard CSV module you
could do worse than this one.. The function to read in lists is used by
ConfigObj and has lots of functionality without being complicated.
It will :
* Appropriately quote and unquote individual elements
* Read in lists, including nested lists
o Comma seperated
o Between '[..]'
o Between '(...)'
* Straightforwardly read CSV files
* Straightforwardly write CSV files
*UPDATE* ConfigObj Version 3.10
This now uses the listquote module for reading in keywords with lists of
values. Much more flexible.
*UPDATE* guestbook Version 1.1.0
This can now email the guestbook owner when a new entry is made.
Also updates/bugfixes to the orderedDict module and FSDM filestruct
module (used by DirWatcher).
Licensing
I'm in the process of 'relicensing' all my code available on this page.
I still retain full copyright - but you are free to use, modify and
relicense the code. This is effective immediately but it will take a
while to update the text in all of my modules.
Regards,
Fuzzyman
--
http://www.Voidspace.org.uk
The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more.
---
http://www.Voidspace.org.uk/atlantibots/pythonutils.html
Python utilities, modules and apps.
Including Nanagram, Dirwatcher and more.
---
http://www.fuchsiashockz.co.ukhttp://groups.yahoo.com/group/void-shockz
---
Everyone has talent. What is rare is the courage to follow talent
to the dark place where it leads. -Erica Jong
Ambition is a poor excuse for not having sense enough to be lazy.
-Milan Kundera
What is it?
===========
wreg is a module implementing functions to access and manipulate the
Windows Registry. The main goal is to simplify both the substring notation
for registry keys an the access to registry data.
What's new in version 1.2.2?
============================
* removed 'Regedit' from the __all__ list
* added 'Reg' to the __all__ list
* Pseudo Registry code completely rewritten so you can use both 'Registry'
instances and 'RegObject' instances on a windows platform.
* changed the __repr__ so printing a key doesn't print all it's
subkeys and values ('pydoc wreg' now works correctly on windows)
Where can I get it?
===================
wreg is located at
http://www.ewi.utwente.nl/~gansevle/python/wreg-1.2.2.zip
Have Fun!
____________________________________________________________________________
Fred Gansevles <mailto:Fred.Gansevles@ewi.utwente.nl> Phone: +31 53 489 4613
Org.: Twente University, Fac. of EWI, Box 217, 7500 AE Enschede, Netherlands
"Linux is like a wigwam, No windows, no gates and an apache inside"
On behalf of the Python development team and the Python community, I'm
happy to announce the first alpha of Python 2.4.
Python 2.4a1 is an alpha release. We'd greatly appreciate it if you
could download it, kick the tires and let us know of any problems you
find, but it is not suitable for production usage.
http://www.python.org/2.4/
In this release we have a number of new modules, a number of existing
modules that have been reimplemented in C for speed, a large number of
improvements and additions to existing modules and an even larger list
of bugs squished. See either the highlights, the What's New in Python
2.4, or the detailed NEWS file -- all available from the Python 2.4
webpage.
There will be at least one more alpha release in a couple of weeks to
pick up a few new features that didn't make it into the first alpha,
before we release 2.4 betas and then the final release.
Please log any problems you have with this release in the SourceForge
bug tracker (noting that you're using 2.4a1):
http://sourceforge.net/bugs/?group_id=5470
Enjoy the new release,
Anthony
Anthony Baxter
anthony(a)python.org
Python Release Manager
(on behalf of the entire python-dev team)
Follower wrote:
> libgmail -- Python binding for Google's Gmail service
>
> <http://libgmail.sf.net/>
>
> The `libgmail` project is a pure Python binding to provide access to
> Google's Gmail web-mail service.
>
> The library currently ships with one demonstration utility to archive
> messages from a Gmail account into mbox files, suitable for importing
> into a local email client.
>
> License: GPL 2.0
>
> Major changes since 0.0.1 & 0.0.2:
>
> * Archive Gmail to mbox utility.
>
> * No longer requires external ClientCookie package.
>
> * Uses constants extracted directly from Gmail Javascript,
> and includes utility to repeat the process if required.
>
> * Code & API refactoring.
>
> * Lazy retrieval and caching of thread and message data.
>
> * Sourceforge project & home page.
>
>
> <p><a href="http://libgmail.sf.net/">libgmail 0.0.3</a> - The
> `libgmail` project is a pure Python binding to provide access to
> Google's Gmail web-mail service. (08-Jul-04)</p>
This is getting really cool. One suggestion: the example on the home
page needs a libgmail in front of the GmailAccount constructor
I couldn't work out how to get the gmail.js required to update the
constants.py. Maybe being able to give username and password to
mkconstants to let it fetch the javascript would be a good idea?
Cheers
David
Straihghtforward Windows Registry access -- wreg Version 1.2.1
What is it?
===========
wreg is a module implementing functions to access and manipulate the
Windows Registry. The main goal is to simplify both the substring notation
for registry keys an the access to registry data.
What's new in version 1.2.1?
============================
* Requires Python 2.2 and up
* Automatically enables security tokens if the user may Save, Load and
UnLoad a registry key and the platform supports it (i.e. needs win32all).
If the user has no rights or the platform doesn't support changing the
rights, then SaveKey, LoadKey and UnLoad key always return None.
* Added support for loading from, and saving to a regedit-style '.reg'
file (Import and Export methods).
* Added finding and copying Keys (Find and Add methods)
* Usable on non-windows platforms with a pseudo-registry hive (RegObject)
so you can test and/or manipulate '.reg' files (i.e. on Linux), before
applying them on a windows platform.
* Predefined toplevel keys kan directly be used in both the long form and
the short form (i.e.: HKEY_LOCAl_MACHINE and HKLM).
Where can I get it?
===================
wreg is located at http://www.ewi.utwente.nl/~gansevle/python/wreg-1.2.1.zip
Have Fun!
____________________________________________________________________________
Fred Gansevles <mailto:Fred.Gansevles@ewi.utwente.nl> Phone: +31 53 489 4613
Org.: Twente University, Fac. of EWI, Box 217, 7500 AE Enschede, Netherlands
"Linux is like a wigwam, No windows, no gates and an apache inside"
Prothon is pleased to announce another major release of the language,
version 0.1.2, build 710 at http://prothon.org.
This release adds many new features and demonstrates the level of maturity
that Prothon has reached. The next release after this one in approximately
a month will be the first release to incorporate the final set of frozen
Prothon 1.0 language features and will be the Alpha release. You can see
the set of features still under discussion for 1.0 at the new Prothon WIKI
at: http://prothon.org/wiki.
This list is not only long but the changes are mostly major features.
Changes in version 0.1.2....
- print is now a function, not a keyword
- function-as-command feature allows print to be used without parens
- Added prop keyword and properties feature with wildcards
- Changed del_ to final_ so properties could use get_, set_, & del_
- a += b type assignments now always do a = a + b
- New in-place modify operators a +! b, a -! b, a *! b, etc.
- Formal parameter default values now evaluated at call time
- String now stored with native 24-bit ordinal values
- Split String type into seperate String and Bytes (binary) types
- Split File into File and TextFile
- Replaced String % operator with String.fmt()
- Added cmp_ and eq_? for strings of length 1 and Ints
- Added object-oriented Directory object and methods
- Added TempDir and TempFile (deleted at shutdown)
- Added basic DateTime object
- Added WeakRef object with callback feature on obj modification
- Added Slice object
- getItem_, setItem_, and delItem_ now allow any object indexing
- Finalization now called on shutdown
- Added built-in range() generator (not list function)
- Added List(iter_) constructor
- Octal constant format changed from 0377 to 0o377
- Octal esc sequence changed from \0377 to \o377
- except keyword no longer allowed alone, must use "except Exception"
- except syntax changed from "except exc, var" to "except exc as var"
- Function formal params now introspectable via simple attribute
- *args param local variable in func is now a tuple, not a list
- Added immutable check to dictionary function key parameter
- Added Dict.len_ and Dict.bool_?
- Moved File from extension module to built-in
- Changed File.stdxxx to sys.stdIn, sys.stdOut, and sys.stdErr
- changed Len, Cmp, len, cmp, chr, ord to
len, cmp, len_, cmp_, chr_, ord_
- changed Sys to sys, changed sys.ps1, sys.ps2 to sys.cons.ps1,
sys.cons.ps2
- Changed SQLite to sqlite, OS to os, Re to re
- Change symbol prefix from backtick (`var) to dollar-sign ($var)
- Changed console prompt from >>> to O>>
- Added many new *.pr test files
- Fixed raise keyword so second arg is doc_ attribute of first
- Fixed crash on printing recursive containers, now prints ...
- Fixed assignment from sequences to arg lists and for statements
- Fixed import in console
- Fixed bug in Func constructor
- Fixed bug in string.rstrip, string.strip, and string.find
Prothon is an interpreted dynamic language that takes much from Python but
is not compatible with Python as it uses the simpler prototypes instead of
classes. Prothon is an industrial strength language that uses native OS
threads and 64-bit architecture. For a description of Prothon see the
tutorial at
http://prothon.org/wiki?pagename=TutorialHomePage.
Mark Hahn
email: mark at prothon.org