chiark / gitweb /
mLib-python
7 years agocatacomb-python.h, util.c: Support for declaring types with weird metatypes.
Mark Wooding [Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)]
catacomb-python.h, util.c: Support for declaring types with weird metatypes.

7 years agoutil.c: Add conversions between Python objects and `kludge64'.
Mark Wooding [Mon, 12 Sep 2016 21:27:23 +0000 (22:27 +0100)]
util.c: Add conversions between Python objects and `kludge64'.

7 years agocatacomb-python.h: Don't inhibit 64-bit type detection any more.
Mark Wooding [Mon, 12 Sep 2016 21:26:53 +0000 (22:26 +0100)]
catacomb-python.h: Don't inhibit 64-bit type detection any more.

We'll be using `kludge64', and the definition must properly match up
with the library.

7 years agoutil.c: Zap spurious whitespace.
Mark Wooding [Mon, 12 Sep 2016 21:23:58 +0000 (22:23 +0100)]
util.c: Zap spurious whitespace.

7 years agoFurther fixing to use `Py_ssize_t' in place of int.
Mark Wooding [Sun, 11 Sep 2016 23:14:16 +0000 (00:14 +0100)]
Further fixing to use `Py_ssize_t' in place of int.

This addresses the remaining compiler warnings when building for 64-bit
targets.

8 years agoRelease 1.0.5. 1.0.5
Mark Wooding [Fri, 19 Feb 2016 08:52:57 +0000 (08:52 +0000)]
Release 1.0.5.

8 years agodebian/control: Fix the Build-Depends.
Mark Wooding [Thu, 18 Feb 2016 18:26:00 +0000 (18:26 +0000)]
debian/control: Fix the Build-Depends.

8 years agodebian/source/format: Apparently we're supposed to have one of these.
Mark Wooding [Thu, 18 Feb 2016 18:25:24 +0000 (18:25 +0000)]
debian/source/format: Apparently we're supposed to have one of these.

8 years agocatacomb.c, ec.c: Bindings for the new EC2OSP/OS2ECP functions.
Mark Wooding [Mon, 22 Dec 2014 20:32:58 +0000 (20:32 +0000)]
catacomb.c, ec.c: Bindings for the new EC2OSP/OS2ECP functions.

8 years agoUse ValueError instead of SyntaxError throughout.
Mark Wooding [Fri, 29 May 2015 08:34:09 +0000 (09:34 +0100)]
Use ValueError instead of SyntaxError throughout.

SyntaxError has a much more specific meaning, and some software, such as
`ipython', expect it to carry lots of other detailed information.

So abolish the `SYNERR' macro, and use `VALERR' instead consistently.  I
wish I had an excuse for this blunder, but I don't.

8 years agoFix the missing-module-names bug properly.
Mark Wooding [Tue, 26 May 2015 15:02:01 +0000 (16:02 +0100)]
Fix the missing-module-names bug properly.

Introduce a wrapper `typeready' around `PyType_Ready' which sets the
module name, and call it everywhere it's needed.

8 years agocatacomb-python.h: Promote `util' to the head of the list.
Mark Wooding [Tue, 26 May 2015 15:00:32 +0000 (16:00 +0100)]
catacomb-python.h: Promote `util' to the head of the list.

If anything needs to prepare for other modules, it's common utilities.

8 years agocatacomb-python.h: Formatting fix.
Mark Wooding [Tue, 26 May 2015 15:00:52 +0000 (16:00 +0100)]
catacomb-python.h: Formatting fix.

9 years agocatacomb.c: Handle Python's randomize hashing parameters properly.
Mark Wooding [Fri, 10 Apr 2015 14:19:25 +0000 (15:19 +0100)]
catacomb.c: Handle Python's randomize hashing parameters properly.

9 years agoProper hashing for comparable object types.
Mark Wooding [Fri, 10 Apr 2015 14:19:25 +0000 (15:19 +0100)]
Proper hashing for comparable object types.

Some of the existing object hash algorithms have changed, but I think
we'll live with that.

9 years agoStamp the module name onto types properly.
Mark Wooding [Fri, 10 Apr 2015 14:19:25 +0000 (15:19 +0100)]
Stamp the module name onto types properly.

Our types are `dynamic', because the Python code adds extra methods to
them.  Apparently the correct thing to do in such cases is to put the
raw type name in the `tp_name' slot, and stuff the module name into
`tp_dict' by hand.

9 years agomp.c: Binding for `mp_fibonacci'.
Mark Wooding [Fri, 27 Feb 2015 14:40:26 +0000 (14:40 +0000)]
mp.c: Binding for `mp_fibonacci'.

10 years agocodec.pyx: New flag from upstream.
Mark Wooding [Mon, 24 Feb 2014 17:39:38 +0000 (17:39 +0000)]
codec.pyx: New flag from upstream.

10 years agoFix a few minor warnings.
Mark Wooding [Sun, 23 Jun 2013 08:04:24 +0000 (09:04 +0100)]
Fix a few minor warnings.

10 years agoRelease 1.0.4. 1.0.4
Mark Wooding [Tue, 18 Jun 2013 08:54:24 +0000 (09:54 +0100)]
Release 1.0.4.

10 years agocodec.pyx: Interface to new codec machinery.
Mark Wooding [Sun, 16 Jun 2013 14:47:13 +0000 (15:47 +0100)]
codec.pyx: Interface to new codec machinery.

The `legacy' version is still lying around for compatibility.  It might
not last forever.

10 years agodebian: Abandon CDBS in favour of plain Debhelper.
Mark Wooding [Sat, 15 Jun 2013 14:56:09 +0000 (15:56 +0100)]
debian: Abandon CDBS in favour of plain Debhelper.

10 years agoMANIFEST.in: Rewrite it because it was missing things.
Mark Wooding [Sat, 15 Jun 2013 22:17:06 +0000 (23:17 +0100)]
MANIFEST.in: Rewrite it because it was missing things.

10 years agoOverhaul build system using new `cfd' machinery.
Mark Wooding [Sat, 15 Jun 2013 21:53:22 +0000 (22:53 +0100)]
Overhaul build system using new `cfd' machinery.

10 years agoOverhaul formatting.
Mark Wooding [Sun, 16 Jun 2013 14:22:38 +0000 (15:22 +0100)]
Overhaul formatting.

Expunge CVS droppings and use newer comment stylings.

10 years agoOverhaul formatting.
Mark Wooding [Sun, 16 Jun 2013 14:15:12 +0000 (15:15 +0100)]
Overhaul formatting.

Remove CVS droppings and fiddle with comments.

11 years agoUpdate for Python 2.7. This is release 1.0.3. 1.0.3
Mark Wooding [Wed, 9 Jan 2013 02:43:39 +0000 (02:43 +0000)]
Update for Python 2.7.  This is release 1.0.3.

13 years agodebian/control: Fix up some Python version numbers.
Mark Wooding [Fri, 5 Nov 2010 15:19:04 +0000 (15:19 +0000)]
debian/control: Fix up some Python version numbers.

14 years agosetup.py: Don't try to find Catacomb.
mdw [Thu, 6 May 2010 19:53:07 +0000 (20:53 +0100)]
setup.py: Don't try to find Catacomb.

It's entirely unnecessary, and introduces a build dependency.  I think
this must be stray debugging code for mdwsetup.py or something.

14 years agoAnnounce 1.0.2. 1.0.2
Mark Wooding [Sun, 4 Oct 2009 13:15:16 +0000 (14:15 +0100)]
Announce 1.0.2.

14 years agoBuild system: use new CFD's mdwsetup.py.
Mark Wooding [Sun, 4 Oct 2009 13:12:43 +0000 (14:12 +0100)]
Build system: use new CFD's mdwsetup.py.

14 years ago*.pyx: Replace __new__ with __cinit__ like the program says.
Mark Wooding [Sun, 4 Oct 2009 12:34:01 +0000 (13:34 +0100)]
*.pyx: Replace __new__ with __cinit__ like the program says.

Apparently __new__ is going to get new semantics some day.  The old
version always was rather mad.

14 years agofdutils.pyx, str.pyx: Fix some stupid bugs.
Mark Wooding [Sun, 4 Oct 2009 12:32:43 +0000 (13:32 +0100)]
fdutils.pyx, str.pyx: Fix some stupid bugs.

The warning spew on general Pyrex-generated C code is heavy enough that
I didn't spot the uninitialized-variable warnings in these files.  Fixed
the genuine (and possibly nasty) bugs.

14 years agoarray.h: Fix typo in declaration of da_pysetup.
Mark Wooding [Sun, 4 Oct 2009 12:30:24 +0000 (13:30 +0100)]
array.h: Fix typo in declaration of da_pysetup.

14 years agodebian: Switch to CDBS and support Python 2.6. 1.0.1
Mark Wooding [Sat, 3 Oct 2009 23:36:09 +0000 (00:36 +0100)]
debian: Switch to CDBS and support Python 2.6.

14 years agomdup.pyx: New support for mLib's glorious `mdup' function.
Mark Wooding [Sat, 3 Oct 2009 23:34:39 +0000 (00:34 +0100)]
mdup.pyx: New support for mLib's glorious `mdup' function.

15 years agosetup.py: Update to use pkg-config.
Mark Wooding [Sun, 21 Sep 2008 15:07:15 +0000 (16:07 +0100)]
setup.py: Update to use pkg-config.

I've removed the old scripts now.

15 years agosetup.py: Use re rather than deprecated sre module.
Mark Wooding [Sun, 21 Sep 2008 15:02:54 +0000 (16:02 +0100)]
setup.py: Use re rather than deprecated sre module.

No idea why they decided to do that.

15 years agosig: Store the user function in the correct attribute!
Mark Wooding [Sun, 21 Sep 2008 14:59:33 +0000 (15:59 +0100)]
sig: Store the user function in the correct attribute!

15 years agoFix qualified names for types supplied by C.
Mark Wooding [Sun, 21 Sep 2008 14:58:42 +0000 (15:58 +0100)]
Fix qualified names for types supplied by C.

15 years agosel-timer: Pyrex now wants explicit truncations to integer.
Mark Wooding [Mon, 23 Jul 2007 15:04:37 +0000 (16:04 +0100)]
sel-timer: Pyrex now wants explicit truncations to integer.

15 years agoExpunge trailing spaces
Mark Wooding [Mon, 23 Jul 2007 14:59:03 +0000 (15:59 +0100)]
Expunge trailing spaces

15 years agoNew features covered.
Mark Wooding [Sun, 21 Sep 2008 15:16:38 +0000 (16:16 +0100)]
New features covered.

  * Included fdpass, fwatch and fdflags.
  * Picked up new daemonize and versioncmp functions.

16 years agoutil: Actually initialize the utilities properly.
Mark Wooding [Fri, 4 Apr 2008 23:55:18 +0000 (00:55 +0100)]
util: Actually initialize the utilities properly.

Failure to do this cases segfaults when we actually come to do things
like iteration.

17 years agoGeneral: Fix lots of whitespace issues.
Mark Wooding [Sat, 17 Feb 2007 12:18:00 +0000 (12:18 +0000)]
General: Fix lots of whitespace issues.

17 years agobres: Ooops, this one was rather buggy.
Mark Wooding [Tue, 2 Jan 2007 12:47:56 +0000 (12:47 +0000)]
bres: Ooops, this one was rather buggy.

  * The fail function passed on a spurious argument.

  * More importantly, the SelResolveBy{Name,Addr} constructors set
    things up in the wrong order, so if the resolver didn't need to do
    anything, it got very confused.

  * There was no destructor.

17 years agosel-file: Fix stupid attribute-name bug.
Mark Wooding [Fri, 22 Dec 2006 11:21:53 +0000 (11:21 +0000)]
sel-file: Fix stupid attribute-name bug.

17 years agodebian: Just the one Python version now.
Mark Wooding [Tue, 21 Nov 2006 11:52:25 +0000 (11:52 +0000)]
debian: Just the one Python version now.

Debian doesn't provide Pyrex for all the Python versions available any
more, so we can't build for them either.

17 years agoGeneral: Update for Python 2.5.
Mark Wooding [Wed, 25 Oct 2006 18:36:19 +0000 (19:36 +0100)]
General: Update for Python 2.5.

  * This renamed the members of heap types. so there's a compatibility
    macro now.

  * Debian has moved on to Python 2.4 as its standard version, so track
    that.

  * Also provide Python 2.5 packages now that we can.

18 years agoInfra: Ignore the COPYING file.
Mark Wooding [Thu, 13 Apr 2006 22:30:14 +0000 (23:30 +0100)]
Infra: Ignore the COPYING file.

18 years agostr: Support new prefix-matching feature in str_match.
Mark Wooding [Thu, 13 Apr 2006 22:29:54 +0000 (23:29 +0100)]
str: Support new prefix-matching feature in str_match.

18 years ago_u32: Allow LONG_MAX to be stored in a Python int.
Mark Wooding [Wed, 22 Mar 2006 13:00:22 +0000 (13:00 +0000)]
_u32: Allow LONG_MAX to be stored in a Python int.

18 years agogetulong: Compare with LONG_MAX to decide what Python type to use.
Mark Wooding [Wed, 22 Mar 2006 12:58:45 +0000 (12:58 +0000)]
getulong: Compare with LONG_MAX to decide what Python type to use.

This may reduce the number of bignums created on 64-bit machines.

18 years agocodec: Use the correct variable name in the decoder convenience function!
Mark Wooding [Tue, 21 Mar 2006 00:37:25 +0000 (00:37 +0000)]
codec: Use the correct variable name in the decoder convenience function!

18 years agourl: Support form-urlencoding functions.
Mark Wooding [Wed, 15 Mar 2006 01:35:36 +0000 (01:35 +0000)]
url: Support form-urlencoding functions.

18 years agostr: Support mLib's `str' functions.
Mark Wooding [Wed, 15 Mar 2006 01:23:17 +0000 (01:23 +0000)]
str: Support mLib's `str' functions.

18 years agomapping: Make the iterators conform to the proper interface.
Mark Wooding [Wed, 15 Mar 2006 01:23:15 +0000 (01:23 +0000)]
mapping: Make the iterators conform to the proper interface.

An iterator must implement __iter__() as an identity operation.  Make it so.

18 years agoRemove the various `getuNN' functions and replace them with getulong().
Mark Wooding [Tue, 7 Mar 2006 14:25:03 +0000 (14:25 +0000)]
Remove the various `getuNN' functions and replace them with getulong().

They weren't doing any real good anyway, and the implementation was
randomly buggy.

18 years agoutil: Report ValuError (not TypeError) for failed integer conversions.
Mark Wooding [Tue, 7 Mar 2006 14:12:42 +0000 (14:12 +0000)]
util: Report ValuError (not TypeError) for failed integer conversions.

18 years agomappings: Separate mapping methods into read-only and read-write.
Mark Wooding [Mon, 6 Mar 2006 16:56:41 +0000 (16:56 +0000)]
mappings: Separate mapping methods into read-only and read-write.

18 years agodebian: Fix package sections.
Mark Wooding [Wed, 15 Feb 2006 12:30:12 +0000 (12:30 +0000)]
debian: Fix package sections.

18 years agoinfra: Add a copy of the GPL.
Mark Wooding [Wed, 8 Feb 2006 18:54:12 +0000 (18:54 +0000)]
infra: Add a copy of the GPL.

18 years agoExtract Subversion ignore data.
Mark Wooding [Mon, 6 Feb 2006 18:19:16 +0000 (18:19 +0000)]
Extract Subversion ignore data.

18 years agoAcquire and release the GIL around select callbacks.
mdw [Mon, 6 Feb 2006 18:17:44 +0000 (18:17 +0000)]
Acquire and release the GIL around select callbacks.

18 years agoBug squashing.
Mark Wooding [Sat, 28 Jan 2006 19:03:25 +0000 (19:03 +0000)]
Bug squashing.

  * Fix setting functions to check for null value (interpreted as property
    deletion) and raise an exception or do something else useful.

  * Fix conversion of read buffer to string so it returns the remainder
    rather than the whole thing.

  * Make conversions between MP and Python long work on PyObjects rather
    than PyLongObjects, to eliminate pointless type casts.

  * Fix primefield constructor argument parsing so that it doesn't crash!

  * Fix radix checking in MP conversions to exclude +/-1, and 0 for output.
    This turns into a little function now.

  * Do argument checking on Jacobi function.

18 years agoReorganization: split out utilities; mapping methods
Mark Wooding [Sat, 28 Jan 2006 18:46:07 +0000 (18:46 +0000)]
Reorganization: split out utilities; mapping methods

  * Move non-project-specific Python utilities into a separate file.  They
    might conceivably find their way into a new project some day.

  * Implement the standard mapping methods generically (i.e., in terms of
    basic Python mapping operations).

  * Use the mapping methods for the various key-object-related mappings.

  * Start fixing setter functions for null values.

18 years agoalgorithms: Add PRPs as objects in their own right.
Mark Wooding [Sat, 28 Jan 2006 18:07:53 +0000 (18:07 +0000)]
algorithms: Add PRPs as objects in their own right.

18 years agoGeneral reorganization.
mdw [Tue, 18 Oct 2005 08:37:09 +0000 (08:37 +0000)]
General reorganization.

18 years agoInitial import.
mdw [Thu, 13 Oct 2005 17:07:47 +0000 (17:07 +0000)]
Initial import.

18 years agoCheckin, Debianized and more or less complete.
mdw [Mon, 26 Sep 2005 12:58:11 +0000 (12:58 +0000)]
Checkin, Debianized and more or less complete.

19 years agoMore fixing for modern Pythons. No longer works with 2.2. Sorry.
mdw [Fri, 29 Apr 2005 13:11:19 +0000 (13:11 +0000)]
More fixing for modern Pythons.  No longer works with 2.2.  Sorry.

19 years agoFixing for Python 2.3 and later.
mdw [Wed, 27 Apr 2005 23:40:07 +0000 (23:40 +0000)]
Fixing for Python 2.3 and later.

19 years agoVarious minor fixings.
mdw [Sun, 10 Apr 2005 23:38:11 +0000 (23:38 +0000)]
Various minor fixings.

19 years agoInitial check-in of catacomb-python.
mdw [Sun, 10 Apr 2005 18:03:11 +0000 (18:03 +0000)]
Initial check-in of catacomb-python.