Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Move xml.sax.saxutils.*?

Reply
Thread Tools

Move xml.sax.saxutils.*?

 
 
chris.atlee@gmail.com
Guest
Posts: n/a
 
      11-25-2005
It seems like functions such as xml.sax.saxutils.escape and unescape
are generally useful, and not at all tied to the xml.sax module. Would
it make sense to move them somewhere else, like to xml?

I ask because it just took me 20 minutes to figure out how to escape
entities in python. It's not obvious that this functionality should be
buried 3 modules deep.

Cheers,
Chris

 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
Posts: n/a
 
      11-25-2005
wrote:
> It seems like functions such as xml.sax.saxutils.escape and unescape
> are generally useful, and not at all tied to the xml.sax module. Would
> it make sense to move them somewhere else, like to xml?


Moving it would be a bad idea. Exposing it elsewhere would be useful.

The precise details are best discussed at xml-. While this
is obviously wrong, it is not at all obvious what the right thing to do
is (it never is when dealing with XML).

Regards,
Martin
 
Reply With Quote
 
 
 
 
uche.ogbuji@gmail.com
Guest
Posts: n/a
 
      11-29-2005
"""
It seems like functions such as xml.sax.saxutils.escape and unescape
are generally useful, and not at all tied to the xml.sax module. Would
it make sense to move them somewhere else, like to xml?
"""

It would be useful to allow

from xml import escape, unescape

But as an alias, rather than a replacement for the current import.

--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://fourthought.com
http://copia.ogbuji.net http://4Suite.org
Articles: http://uche.ogbuji.net/tech/publications/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing move constructors and move assignment Andrew Tomazos C++ 2 12-12-2011 01:45 PM
Server Move! imported_Ian Cunningham The Lounge 21 11-16-2005 12:45 AM
I am trying to move spaces to a weblistbox and when I move them... Eduardo78 ASP .Net Web Controls 0 11-03-2005 06:06 PM
To Fly or not to fly? Should I move from Mozilla 1.5 to T-bird andF-bird? Daniel Steinberg Firefox 5 11-05-2003 06:23 AM
paths and where to "move" things? Gwen Morse Firefox 2 07-24-2003 10:41 PM



Advertisments