Re: [Python-Dev] minidom and DOM level 2

2007-04-07 Thread Andrew Clover
Jason Orendorff wrote:

> OK, I think this is worthwhile then. :) I'll read the spec and submit
> a patch.

You're planning to implement EntityReference in minidom? That'll be fun! 
:-) One of the nastier corners of DOM and XML in general.

 > I'd be happy to do some diffing between the implementation,
 > documentation, tests, and the Recommendation

I hacked up an experimental test harness for the W3 DOM Test Suite in 
order to test my own imp; you might find it useful:

   http://doxdesk.com/software/py/domts.html

The TS is far from definitive, but its tests for Level 1 and 2 are to 
the best of my knowledge accurate.

Incidentally minidom falls far short of passing even Level 1 Core for 
more reasons than omission of EntityReference. I noted the main known 
problems with it here:

   http://pyxml.sourceforge.net/topics/compliance.html

Good luck!

-- 
And Clover
mailto:[EMAIL PROTECTED]
http://www.doxdesk.com/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] minidom and DOM level 2

2007-04-13 Thread Andrew Clover
Jason Orendorff wrote:

> I don't suppose you'd be willing to update it for Python 2.5, would you?

Can do, but at this point I'm not aware of any work having been done on 
the issues listed there between the 2.3 and 2.5 releases.

The danger is people may be used to the "wrong" minidom behaviours, 
given they have been static for so long and are in many cases central to 
how minidom works.

-- 
And Clover
mailto:[EMAIL PROTECTED]
http://www.doxdesk.com/
___
Python-Dev mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] New-style icons, .desktop file

2006-04-14 Thread Andrew Clover
Morning!

I've done some tweaks to the previously-posted-about icon set, taking 
note of some of the comments here and on -list. In particular, amongst 
more minor changes:

   - added egg icon (based on zip)
   - flipped pycon to work better with shortcut arrow
   - emphasised borders of 32x32 version of pycon, and changed text
 colour, in order to distinguish more from pyc. In balance I think
 this is enough of a change, though Nick Coghlan's idea of just using
 the plus in this case also has merit - indeed this is what happens
 at 16x16
   - built .ico files without the Windows Vista enormo-icons. If the
 icons *were* to go in the win32 distribution, it probably wouldn't
 make sense to spend the considerably larger filesize on Vista icons
 until such time as people are actually using Vista.
   - included PNG and SVG version of icons. The SVG unfortunately doesn't
 preserve all the effects of the original Xara files, partly because
 a few effects (feathering, bevels) can't be done in SVG 1.1, and
 partly because the current conversion process is bobbins (but we're
 working on that!). So the nice gradients and things are gone, but it
 should still be of use as a base for anyone wanting to hack on the
 icons.
   - excised file() in favour of open() ;-)

Files and preview here:

   http://doxdesk.com/img/software/py/icons2.zip
   http://doxdesk.com/img/software/py/icons2.png

Oh, and is the intention to deprecate the purple/green horizontal snake 
logo previously used for 'Python for Windows' (as well as PSF)? If so, 
Erik van B's installer graphic could probably do with a quick refresh.

cheers,

-- 
And Clover
mailto:[EMAIL PROTECTED]
http://www.doxdesk.com/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)

2006-07-05 Thread Andrew Clover
Guido van Rossum <[EMAIL PROTECTED]> wrote:

> 1. do nothing
> 2. extend global's meaning
> 3. add outer keyword

2.5. extend global syntax to cover both [really global] and [innermost 
matching scope].

eg.

   global x, y outer   # trailing non-keyword
   global in x, y  # re-use keyword
   not global x# ceci n'est pas un global
   ... # something less ugly?

> Personally it's not a burning need

Agreed. Inability to write as well as read nested scopes is more of an 
aesthetic wart than a practical one IMO.

-- 
And Clover
mailto:[EMAIL PROTECTED]
http://www.doxdesk.com/

-- 
And Clover
mailto:[EMAIL PROTECTED]
http://www.doxdesk.com/
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com