How to uninstall/update modules

2008-10-10 Thread pjacobi . de
Dear All, It seems I don't understand how Python packages are handled. Here's my specific problem * I'm on Win32 * I've installed Enthought Python 2.5 because it got all the numerical stuff included * Later I tried to install Twisted 8.1 Twisted ended up in C:\Python\Lib\site-packages\twisted

RegExp: "wontmatch"-function

2008-10-13 Thread pjacobi . de
Dear All, I'm looking for a function which, given a regexp re and and a string str, returns whether re won't match any string starting with str. (so it would always return False if str is "" or if str itself matches re -- but that are only the easy cases). I have the vague feeling that the inter

Re: python3 - the hardest hello world ever ?

2008-10-14 Thread pjacobi . de
Hi Helmut, All, > do I miss something (I do hope so) or is switching to Python3 > really hard for Latin1-users? It's as complicated as ever -- if you have used unicode strings in the past (as the 3.0 strings now are always unicode strings). > # sys.setfilesystemencoding('latin1') This cares abo

Re: Anyone Have (XP) 2.4.4 Installed and Can Check This Simple matplotlib Program?

2008-10-14 Thread pjacobi . de
On Oct 15, 6:38 am, "W. eWatson" <[EMAIL PROTECTED]> wrote: > I'm going to try another stab at this problem again. I'd like someone with > 2.4.4 and matplotlib-0.98.3.win32-py2.4exe to try it (below). IMHO an important detail of your configuration is missing. What's your numerical library? Did yo

Re: Finding the instance reference of an object

2008-10-31 Thread pjacobi . de
Instead of comparing integers: > x = 1 > y = x # does assignment make copies? > y += 1 > assert x == 1 > => succeeds, which implies that Python makes a copy when assigning with lists: > x = [1] > y = x # does assignment make copies? > y += [1] > assert x == [1] > => fails, which implies that P

Re: encoding in lxml

2008-11-03 Thread pjacobi . de
Hi Mike, > I read an HTML document from a third-party site. It is supposed to be > in UTF-8, but unfortunately from time to time it's not. There will be host of more lightweight solutions, but you can opt to sanizite incominhg HTML with HTML Tidy (python binding available). It will replace inval