Jack Diederich

Show:

What's happening?

  • Comment: Class Decorators

    Commited in rev 55430.

    2007-05-18 13:46:17 UTC in Python

  • Comment: Inconsistent Exceptions for Readonly Attributes

    I think this has something peculiar to frames, for instance: Python 2.5 (r25:51908, Sep 25 2006, 17:50:07) [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> f = 'asdf' >>> f.strip = 42 Traceback (most recent call last): File "", line 1, in AttributeError: 'str' object attribute 'strip' is...

    2007-03-23 22:12:01 UTC in Python

  • Comment: add identity function

    Let's put this thread on hold until we get a pronouncement. I don't think there is anything additional to be said. Alexander, don't worry, I didn't think you were talking about my patch ;) and don't worry about people writing sub-optimal code. If you start doing that you'll never get any sleep.

    2007-03-22 20:57:12 UTC in Python

  • Comment: add identity function

    Raymond, please make a pronouncement. +1 on adding it to the operator module. Lots of one liners go there. -1000 to having it take more than one argument. If I saw this identity(ob, 42) for the first time (or second, or ...) I would have to look up what it does. As a plain identity function it is obvious. Patch to operator.c, liboperator.tex, test_operator.py, NEWS attached...

    2007-03-22 20:15:26 UTC in Python

  • Comment: Fix for bug 494589

    does the following svn message mean this should be closed? r53460 | sjoerd.mullender | 2007-01-16 11:42:38 -0500 (Tue, 16 Jan 2007) | 4 lines Fixed ntpath.expandvars to not replace references to non-existing variables with nothing. Also added tests. This fixes bug #494589.

    2007-03-09 01:56:04 UTC in Python

  • Class Decorators

    Patch is against rev 54035 on the pyk3 branch PEP will be on the 3k list shortly. Grammar/Grammar is changed from funcdef: [decorators] 'def' NAME parameters ['->' test] ':' suite to decorated_thing: decorators (classdef | funcdef) funcdef: 'def' NAME parameters ['->' test] ':' suite.

    2007-02-28 20:40:50 UTC in Python

  • Comment: Python fix - string type clashes

    just changing SWFText_getStringWidth in the root ming.i from "const unsigned char*" to "const char *" is enough to get it working for me. (well, nearly enough. ming.py addFill hits trouble).

    2006-11-30 23:43:26 UTC in Ming - an SWF output library

  • Comment: __bool__ instead of __nonzero__

    Committed revision 52853.

    2006-11-28 19:20:23 UTC in Python

  • Comment: __bool__ instead of __nonzero__

    intobject.c:int_nonzero() gets called 100 times more than that in the same test run. Actually all builtins go through the fast slots machinery and not slot_nb_nonzero() so I'm not worried about speed (if there is any to be had). I tried adding a nb_bool to listobject.c (currently it falls back on tp_as_mapping->mp_length) and I couldn't tell the difference with ./python...

    2006-11-28 01:30:42 UTC in Python

  • Comment: long long on Visual C++ 6.0

    I started on a revamped 1.0 version last week that is just python-centric (instead of a python wrapper around a neutral-ish core). That should make compiling it on windows easier and if you are using python2.5 it should be 64 bit clean too (#ifdef'd for older versions). This was one of my first python extensions and I've learned a lot about the C/Python interface in the last four(!...

    2006-11-27 20:38:13 UTC in Probability and Stastics for python

About Me

  • 2002-08-08 (7 years ago)
  • 591932
  • jackdied (My Site)
  • Jack Diederich

Send me a message