Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread Mark Thomas
I know someone who was involved in creating a language called A+. It was invented at Morgan Stanley where they used Sun keyboards and had access to many symbols, so the language did have set symbols, math symbols, logic symbols etc. Here's a keyboard map including the language's symbols (the red ch

Re: Any equivalent to Ruby's 'hpricot' html/xpath/css selector package?

2008-12-30 Thread Mark Thomas
On Dec 30, 8:20 am, Stefan Behnel wrote: > Mark Thomas wrote: > > The main difference is that lxml doesn't have CSS selector syntax > > Feel free to read the docs: > > http://codespeak.net/lxml/cssselect.html Don't know how I missed that... So lxml is pretty m

Re: Any equivalent to Ruby's 'hpricot' html/xpath/css selector package?

2008-12-29 Thread Mark Thomas
On Dec 28, 6:22 pm, Kenneth McDonald wrote: > Ruby has a package called 'hpricot' which can perform limited xpath   > queries, and CSS selector queries. However, what makes it really   > useful is that it does a good job of handling the "broken" html that   > is so commonly found on the web. Does

Re: Python equivalent of Perl e flag with regular expression

2008-10-02 Thread Mark Thomas
On Oct 2, 4:03 pm, [EMAIL PROTECTED] wrote: >     Jason> With Perl I might do something like this: >     Jason> $line =~ s/(select)/uc($1)/e; >     ... >     Jason> How would I do this with Python? > > I'm sure there are plenty of ways to skin this particular cat, but how is > 's/.../.../e' differe

Re: r""

2008-09-30 Thread Mark Thomas
On Sep 30, 1:17 pm, Kyle Hayes <[EMAIL PROTECTED]> wrote: > Is there a way to use the 'r' in front of a variable instead of > directly in front of a string? Or do I need to use a function to get > all of the slashes automatically fixed? Is this what you're talking about? str = "foo/bar" re =

Re: lxml question

2008-09-26 Thread Mark Thomas
On Sep 26, 11:19 am, Uwe Schmitt <[EMAIL PROTECTED]> wrote: > I have to parse some text which pretends to be XML. lxml does not want > to parse it, because it lacks a root element. > I think that this situation is not unusual, so: is there a way to > force lxml to parse it ? By "pretends to be XML

Re: Generating test data from an XML Schema

2008-09-17 Thread Mark Thomas
On Sep 17, 5:29 am, Jonathan Fine <[EMAIL PROTECTED]> wrote: > Hello > > I want to generate test data from an XML schema.  I've had a quick look > at existing tools (such as minixsv and amara) but from what I've seen > they don't seem to help. ... > A tool that provides a nice Python interface to n

Re: (was Re: Xah's Edu Corner: Criticism vs Constructive Criticism)

2006-04-26 Thread Mark Thomas
Xah Lee wrote: > Dear John Bokma, > > This is a public notice that what you are trying to do is getting close > to harrassment from the law's perspective. > > Thanks. > >Xah >[EMAIL PROTECTED] > ∑ http://xahlee.org/ > > > John Bokma wrote: >> Eli Gottlieb <[EMAIL PROTECTED]> wrote: >>