Re: Microsoft Hatred FAQ

2005-10-18 Thread John Bokma
Roedy Green <[EMAIL PROTECTED]> wrote: > On 18 Oct 2005 06:20:56 GMT, John Bokma <[EMAIL PROTECTED]> wrote > or quoted : > >> >>That an HTML standard (ISO/IEC 15445:2000) and an HTML recommendation by >>w3c (4.01 for example) are two different things, and mixing them up by >>calling both standa

Re: bug in os.system?

2005-10-18 Thread wjzrules
What happens when you try it without the single quotes? result = os.system("pythonbugtest.exe" "test") -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-18 Thread Peter T. Breuer
In comp.os.linux.misc Richard Steiner <[EMAIL PROTECTED]> wrote: > Here in comp.os.linux.misc, > John Wingate <[EMAIL PROTECTED]> spake unto us, saying: >>Peter T. Breuer <[EMAIL PROTECTED]> wrote: >>> It seems to me that I was using 3.x. Maybe it was 3.1? I seem to >>> remember an earlier major

Re: Dynamic generation of doc-strings of dynamically generated classes

2005-10-18 Thread Mikael Olofsson
Alex Martelli wrote: > The best way to make classes on the fly is generally to call the > metaclass with suitable parameters (just like, the best way to make > instances of any type is generally to call that type): > > derived = type(base)('derived', (base,), {'__doc__': 'zipp'}) and George Sakki

Re: Don't want to serialize a variable of object

2005-10-18 Thread Tarek Ziadé
Iyer, Prasad C wrote: >Hi, >I got a class which I need to serialize, except for couple of variable. >i.e. > >import cPickle as p >class Color: >def __init__(self): >print "hello world" >self.x=10 >self.somechar="this are the characters" >color=Color() >f=file('poem.txt'

Re: bug in os.system?

2005-10-18 Thread Steve Holden
[EMAIL PROTECTED] wrote: > What happens when you try it without the single quotes? > result = os.system("pythonbugtest.exe" "test") > That would be equivalent to result = os.system("pythonbugtest.exetest") which almost certainly won't do anything useful. regards Steve -- Steve Holden

make: circular dependency for Modules/signalmodule.o

2005-10-18 Thread James Buchanan
Hi group, I'm preparing Python 2.4.2 for the upcoming Minix 3.x release, and I have problems with make. configure runs fine and creates the makefile, but right at the end ends with an error about a circular dependency in Modules/signalmodule.o. I'm new to makefiles and makefile rules, so I can u

RE: Don't want to serialize a variable of object

2005-10-18 Thread Iyer, Prasad C
Thanks a lot. Actually you are right I would be trying same thing now. Writing my own custom serializable for the object. But everyone else who face the same problem would come up with their own Serializable code. Can't we plug something into cpickle So that it discards some variable from bein

Re: Don't want to serialize a variable of object

2005-10-18 Thread Duncan Booth
Iyer, Prasad C wrote: > How do I serialize the object color without serializing the x and > somechar variables? > Is there any modifier which prevents the variable from being serialized. > See the pickle documentation. The example given in the documentation pickles a class while excluding one of

Re: Jargons of Info Tech industry

2005-10-18 Thread Tim Tyler
In comp.lang.java.programmer Paul Rubin wrote or quoted: > Tim Tyler <[EMAIL PROTECTED]> writes: > > Are there any examples of HTML email causing security problems - outside > > of Microsoft's software? > > There was a pretty good one that went something like > > Cl

Re: UI toolkits for Python

2005-10-18 Thread Richie Hindle
[Ken] > Web interfaces are missing a lot more than this. Here are just a few > things that cannot be done with web-based interfaces (correct me > where I'm wrong): > > 1) A real word processor. http://www.writely.com/ http://www.goffice.com/ > 2) Keybindings in a web application http://rem

Re: override a property

2005-10-18 Thread Robin Becker
Bruno Desthuilliers wrote: > Robin Becker a écrit : > >> Is there a way to override a data property in the instance? Do I need >> to create another class with the property changed? > > > Do you mean attributes or properties ? I mean property here. My aim was to create an ObserverProperty class

Re: Jargons of Info Tech industry

2005-10-18 Thread Tim Tyler
In comp.lang.java.programmer Ross Bamford <[EMAIL PROTECTED]> wrote or quoted: > Roedy, I would just _love_ to see the response from the industry when you > tell them they should dump their whole mail infrastructure, and switch > over to a whole new system (new protocols, new security holes, n

Re: UI toolkits for Python

2005-10-18 Thread Alex Martelli
Paul Rubin wrote: > Torsten Bronger <[EMAIL PROTECTED]> writes: > > Because everybody is capable of running a JS engine, even on > > computers on which you don't have rights to install something. > > I don't think using JS so heavily without a compelling reason is > rea

Re: Jargons of Info Tech industry

2005-10-18 Thread Tim Tyler
Gordon Burditt <[EMAIL PROTECTED]> wrote or quoted: > Before worrying about the possible bugs in the implementations, > worry about security issues present in the *DESIGN*. Email ought > to be usable to carry out a conversation *SAFELY* with some person out > to get you. Thus features like this

global interpreter lock

2005-10-18 Thread Tommy . Ryding
I just need confirmation that I think right. Is the files thread_xxx.h (xxx = nt, os2 or whatever) responsible for the global interpreter lock in a multithreaded environment? I'm currently writing my own thread_VW for VxWorks, thats why I'm asking. //Tommy -- http://mail.python.org/mailman/li

Re: Vim capable IDE?

2005-10-18 Thread bruno modulix
Chris Lasher wrote: > Hello, > Is there a Python-sensitive, Linux compatible IDE out there with > standard bells and whistles (source browser, symbolic debugger, etc.) > but with the action-per-keystroke editing capabilities of Vim? I have > failed to turn up such an IDE in my Googling and IDE pr

Re: Jargons of Info Tech industry

2005-10-18 Thread Roedy Green
On Tue, 18 Oct 2005 07:40:26 GMT, Tim Tyler <[EMAIL PROTECTED]> wrote or quoted : >I didn't think unicode domain names existed. you can even buy them. See http://mindprod.com/jgloss/domainnames.html under "Chinese Domain Names". -- Canadian Mind Products, Roedy Green. http://mindprod.com Again

Re: override a property

2005-10-18 Thread bruno modulix
Robin Becker wrote: > Bruno Desthuilliers wrote: > >> Robin Becker a écrit : >> >>> Is there a way to override a data property in the instance? Do I need >>> to create another class with the property changed? >> >> >> >> Do you mean attributes or properties ? > > > I mean property here. Ok, was

Re: Microsoft Hatred FAQ

2005-10-18 Thread Roedy Green
On 18 Oct 2005 06:57:47 GMT, John Bokma <[EMAIL PROTECTED]> wrote or quoted : >>>That an HTML standard (ISO/IEC 15445:2000) and an HTML recommendation by >>>w3c (4.01 for example) are two different things, and mixing them up by >>>calling both standards is a bad thing. >> >> Because ... what ar

Re: Question on class member in python

2005-10-18 Thread Johnny Lee
But I still wonder what's the difference between the A().getMember and A().member besides the style -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-18 Thread Roedy Green
On Tue, 18 Oct 2005 08:12:23 GMT, Tim Tyler <[EMAIL PROTECTED]> wrote or quoted : >> - Any ability to automatically generate hits on sender-specified >> servers when the email is read. > >I hadn't though of that one. As well as use in DDOS attacks, that >can help let spammers know if they have

Re: Jargons of Info Tech industry

2005-10-18 Thread Roedy Green
On Tue, 18 Oct 2005 07:59:47 GMT, Tim Tyler <[EMAIL PROTECTED]> wrote or quoted : >Essentially, IM can do pretty-much everything email can these days, but >the reverse is not true at all. The problem with IM is the various IM schemes don't talk to each other. You need a client that knows all t

Re: override a property

2005-10-18 Thread Alex Martelli
Robin Becker <[EMAIL PROTECTED]> wrote: > Bruno Desthuilliers wrote: > > Robin Becker a écrit : > > > >> Is there a way to override a data property in the instance? Do I need > >> to create another class with the property changed? > > > > Do you mean attributes or properties ? > > I mean proper

Re: wxPython question

2005-10-18 Thread vpr
I've had some problems, it seems that they dont render well in Linux. I tried it with Ubuntu Breezy. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on class member in python

2005-10-18 Thread Alex Martelli
Johnny Lee <[EMAIL PROTECTED]> wrote: ... > Thanks for your help, maybe I should learn how to turn an attibute into > a property first. Easy -- in your class's body, just code: def getFoo(self): ... def setFoo(self, value): ... def delFoo(self): ... foo = property(getFoo, setFoo, delFo

Re: Question on class member in python

2005-10-18 Thread Alex Martelli
Johnny Lee <[EMAIL PROTECTED]> wrote: > But I still wonder what's the difference between the A().getMember and > A().member besides the style Without parentheses after it, getMember is a method. The difference between a method object and an integer object (which is what member itself is in your

How to make command history persistent?

2005-10-18 Thread vbfoobar
Hello, My question is: Is there an easy mean to make Python "command history" persistent across interpreter invokations? PS: In the case the question above is not clear, I rephrase it below verbosely... When I work from the Python prompt, I enjoy features like command line editing and

Re: override a property

2005-10-18 Thread Robin Becker
bruno modulix wrote: . > > Could you elaborate ? Or at least give an exemple ? . in answer to Bengt & Bruno here is what I'm sort of playing with. Alex suggests class change as an answer, but that looks really clunky to me. I'm not sure what Alex means by > A better design might be to

Re: bug in os.system?

2005-10-18 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > The following code fails (pythonbugtest.exe takes one parameter, a > string): > > import os > result = os.system('"pythonbugtest.exe" "test"') > assert(result == 0) > > The error message is: > > 'pythonbugtest.exe" "test' is not recognized as an internal or external > co

Re: Microsoft Hatred FAQ

2005-10-18 Thread Eike Preuss
John Bokma wrote: [snip] > > I see little difference with other big companies. You're right that there > is no excuse for such behaviour, but if MS isn't doing it, another company > will take their place. > And if companies are allowed to behave this way (because of your 'nice,fatalistic' argu

Re: Question on class member in python

2005-10-18 Thread Johnny Lee
Alex Martelli 写道: > Johnny Lee <[EMAIL PROTECTED]> wrote: > > > But I still wonder what's the difference between the A().getMember and > > A().member besides the style > > Without parentheses after it, getMember is a method. The difference > between a method object and an integer object (which i

Re: How to make command history persistent?

2005-10-18 Thread pclinch
If using unix, you should have readline available. See the tutotial appendix:- http://www.python.org/doc/current/tut/node15.html Regards, Paul Clinch -- http://mail.python.org/mailman/listinfo/python-list

Bloodhound.Exploit.49 trojan found in MIMEBase.pyc

2005-10-18 Thread Alex Hunsley
Symantec antivirus has apparently picked up a virus in my Python 2.4 (under cygwin): Scan type: Scheduled Scan Event: Threat Found! Threat: Bloodhound.Exploit.49 File: C:\cygwin\lib\python2.4\email\MIMEBase.pyc Location: Quarantine Action taken: Quarantine succeeded There's info to be foun

OT: MS litigation history, was MS FAQ

2005-10-18 Thread Adriaan Renting
>>>"David Schwartz" <[EMAIL PROTECTED]> 10/18/05 7:21 am >>> > >"Roedy Green" <[EMAIL PROTECTED]> wrote in >message news:[EMAIL PROTECTED] > >>On Mon, 17 Oct 2005 19:44:55 -0700, "David Schwartz" >><[EMAIL PROTECTED]> wrote or quoted : > >>> It is not Microsoft's obligation to be "fa

html parser?

2005-10-18 Thread Christoph S�llner
Hi *, is there a html parser available, which could i.e. extract all links from a given text like that: """ BAR BAR2 """ and return a set of dicts like that: """ { ['foo.php','BAR','param1','test'], ['foo2.php','BAR2','param1','test','param2','test'] } """ thanks, Chris -- http://mail.p

Re: Bloodhound.Exploit.49 trojan found in MIMEBase.pyc

2005-10-18 Thread Fredrik Lundh
Alex Hunsley wrote: > Symantec antivirus has apparently picked up a virus in my Python 2.4 > (under cygwin): > > Scan type: Scheduled Scan > Event: Threat Found! > Threat: Bloodhound.Exploit.49 > File: C:\cygwin\lib\python2.4\email\MIMEBase.pyc > Location: Quarantine > Action taken: Quarantin

Re: html parser?

2005-10-18 Thread Laszlo Zsolt Nagy
Christoph Söllner wrote: >Hi *, > >is there a html parser available, which could i.e. extract all links from a >given text like that: >""" >BAR >BAR2 >""" > >and return a set of dicts like that: >""" >{ > ['foo.php','BAR','param1','test'], > ['foo2.php','BAR2','param1','test','param2','test'] >

unittest of file-reading function

2005-10-18 Thread Helge Stenstroem
Say I have a function def f(filename): result = openFileAndProcessContents(filename) return result Can that function be unit tested without having a real file as input? Something along the lines of import unittest class tests(unittest.TestCase): def test1(self): fileContents

在消息 "test"中发现病毒

2005-10-18 Thread m . hadfield
The message contains Unicode characters and has been sent as a binary attachment. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on class member in python

2005-10-18 Thread Christophe
Johnny Lee a écrit : > Alex Martelli 写道: > > >>Johnny Lee <[EMAIL PROTECTED]> wrote: >> >> >>>But I still wonder what's the difference between the A().getMember and >>>A().member besides the style >> >>Without parentheses after it, getMember is a method. The difference >>between a method object

ANN: ConfigObj 4.0.0 Final and Pythonutils 0.2.3

2005-10-18 Thread Fuzzyman
ConfigObj 4.0.0 final and Pythonutils 0.2.3 have just hit the streets. http://www.voidspace.org.uk/python/configobj.html http://www.voidspace.org.uk/python/pythonutils.html They are both pure Python modules - the source distributions include full documentation, which is also online. What's New ?

Re: Question on class member in python

2005-10-18 Thread Alex Martelli
Johnny Lee <[EMAIL PROTECTED]> wrote: > Alex Martelli ??? Now that's a peculiar question... > > Johnny Lee <[EMAIL PROTECTED]> wrote: > > > > > But I still wonder what's the difference between the A().getMember and > > > A().member besides the style > > > > Without parentheses after it, getMemb

Re: html parser?

2005-10-18 Thread Christoph S�llner
right, that's what I was looking for. Thanks very much. -- http://mail.python.org/mailman/listinfo/python-list

HTTPResponse.read() returns an empty string?

2005-10-18 Thread Christoph S�llner
Hi again, my Source: """ import httplib conn = httplib.HTTPConnection('www.python.org'); conn.request("GET", "/index.html"); answ = conn.getresponse(); print answ.status, answ.reason >>> 200 OK conn.close(); print "Start"; >>> Start print answ.read(); >>> print len(answ.read()); >>> 0 print "End";

Re: HTTPResponse.read() returns an empty string?

2005-10-18 Thread Christoph S�llner
ok got it: One cannot close the connection before reading the answer. Seems that in my original source the new assigned variable 'answ' is destroyed or emptied with the connection.close() command; very strange behaviour. > """ > import httplib > conn = httplib.HTTPConnection('www.python.org'); > co

Re: Hygenic Macros

2005-10-18 Thread Dan Farina
David Pokorny wrote: > Hi, > > Just wondering if anyone has considered macros for Python. I have one > good use case. In "R", the statistical programming language, you can > multiply matrices with A %*% B (A*B corresponds to pointwise > multiplication). In Python, I have to type > > import Num

Re: Hygenic Macros

2005-10-18 Thread Adriaan Renting
Using numarray/pylab there's also dot: >>> from pylab import * >>> A = array(range(10)) >>> B = array(range(10)) >>> A * B [ 0, 1, 4, 9,16,25,36,49,64,81,] >>> dot(A, B) 285 It might also make your code more readable. I would like "A dot B", but even using ipython I can only get as close as "dot

Re: popen4

2005-10-18 Thread billie
Piet van Oostrum wrote: > I think you need something like pyexpect for this. PyExpect seems to be no more mantained. -- http://mail.python.org/mailman/listinfo/python-list

Re: Hygenic Macros

2005-10-18 Thread Alex Stapleton
I seem to remember a rather ugly hack at some point in the past that created a new "operator" like so A |dot| B where dot was an object which had the OR operator for left and right arguments redefined seperately so that it only made sense when used in that syntax. I guess you could hack so

Re: How to make command history persistent?

2005-10-18 Thread vbfoobar
Great! The indicated "history save" works! Thanks -- http://mail.python.org/mailman/listinfo/python-list

wxPython + pyPlot

2005-10-18 Thread Robert
Hellow! I'm writing program with wxpython and pyplot. I need to put a graph (example): def _draw1Objects(): # 100 points sin function, plotted as green circles data1 = 2.*Numeric.pi*Numeric.arange(200)/200. data1.shape = (100, 2) data1[:,1] = Numeric.sin(data1[:,0

Re: popen4

2005-10-18 Thread Ganesan Rajagopal
> "billie" == billie <[EMAIL PROTECTED]> writes: > Piet van Oostrum wrote: >> I think you need something like pyexpect for this. > PyExpect seems to be no more mantained. Try pexpect instead. http://pexpect.sourceforce.net/ Ganesan -- Ganesan Rajagopal (rganesan at debian.org) | GPG Key:

Re: Hygenic Macros

2005-10-18 Thread Alex Stapleton
Ahar got it http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/384122 Would something like that be any use? On 18 Oct 2005, at 13:21, Alex Stapleton wrote: > I seem to remember a rather ugly hack at some point in the past that > created a new "operator" like so > > A |dot| B > > where dot

Re: unittest of file-reading function

2005-10-18 Thread Peter Hansen
Helge Stenstroem wrote: > Say I have a function > > def f(filename): > result = openFileAndProcessContents(filename) > return result > > Can that function be unit tested without having a real file as input? > Something along the lines of > > import unittest > class tests(unittest.TestCas

Re: Bloodhound.Exploit.49 trojan found in MIMEBase.pyc

2005-10-18 Thread jepler
It's almost certainly a false positive. In my day job we run into false positive antivirus detections like this once or twice a year, and typically get a runaround from the AV vendor (who often have the gall to suggest that we should buy a copy of their broken software before they'll fix their pro

Re: Hygenic Macros

2005-10-18 Thread Steven D'Aprano
On Mon, 17 Oct 2005 22:23:43 -0700, David Pokorny wrote: > Hi, > > Just wondering if anyone has considered macros for Python. I have one > good use case. In "R", the statistical programming language, you can > multiply matrices with A %*% B (A*B corresponds to pointwise > multiplication). In P

Re: wxPython + pyPlot

2005-10-18 Thread Robert
Maebe, does anyone have some examples with wxPython and pyplot? Thanks again, Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-18 Thread kdahlhaus
Hmm. I'm not sure what bothered you about cygwin, but if it has been awhile it's worth another look. For me it makes windows tolerable, and even productive. I'm scared more by your thoughts of transitioning from OS-X to windows. I've seen a bit of OS-X and am slowly be warmed up to it as an op

Re: Vim capable IDE?

2005-10-18 Thread Chris Lasher
Thanks for your responses, guys. I can't get the PIDA page to come up for me; server timeout error. I'll have to look into Eclipse more, but I've been warned that it's resource greedy and that the VI plugin doesn't provide very much functionality. Still, that's hearsay, so I'll have to find out for

Re: wxPython + pyPlot

2005-10-18 Thread Philippe C. Martin
I think wxWidget comes with a sample Philippe Robert wrote: > Maebe, does anyone have some examples with wxPython and pyplot? > > Thanks again, > Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: global interpreter lock

2005-10-18 Thread Jeremy Jones
[EMAIL PROTECTED] wrote: >I just need confirmation that I think right. > >Is the files thread_xxx.h (xxx = nt, os2 or whatever) responsible for >the >global interpreter lock in a multithreaded environment? > >I'm currently writing my own thread_VW for VxWorks, thats why I'm >asking. > >//Tommy >

Re: Vim capable IDE?

2005-10-18 Thread BJ Swope
On 18 Oct 2005 07:16:11 -0700, Chris Lasher <[EMAIL PROTECTED]> wrote: A marriage of the twowould seem like the best of both worlds.Chris The pessimists would say "the worst of both worlds" ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: unittest of file-reading function

2005-10-18 Thread Kent Johnson
Helge Stenstroem wrote: > Say I have a function > > def f(filename): > result = openFileAndProcessContents(filename) > return result > > Can that function be unit tested without having a real file as input? If you can refactor openFileAndProcessContents() so it looks like this: def openF

Re: Vim capable IDE?

2005-10-18 Thread Philippe C. Martin
True and I had to give up emacs when I went to eclipse, but it was well worth it. I seem to recall that sourcenavigator allowed to configure an external editor (or maybe was it sniff+ ?) Regards, Philippe Chris Lasher wrote: > Thanks for your responses, guys. I can't get the PIDA page to come

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Schilling
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Mike Schilling" <[EMAIL PROTECTED]> writes: >> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> "Mike Schilling" <[EMAIL PROTECTED]> writes: What matters in generating HTML is which bro

Re: How to get a raised exception from other thread

2005-10-18 Thread dcrespo
> Before, after, or during the .start() call, or somewhere else? I'd like to catch *just after* the .start() call. > I'm quite sure the problem you are trying to solve can be solved, but > you are still describing part of the solution you believe you need, > rather than explaining why you want to

Re: Installing Python at Work

2005-10-18 Thread Paul Watson
"Nikola" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm currently learning Python for my own use. > I'm considering installing it on a work laptop, knowing that it is > non-licensed, distributable software. > > However, does it access communication ports? I know the company che

Re: override a property

2005-10-18 Thread Kay Schluehr
Robin Becker wrote: > Is there a way to override a data property in the instance? Do I need to > create > another class with the property changed? > -- > Robin Becker It is possible to decorate a method in a way that it seems like property() respects overridden methods. The decorator cares polymo

Re: Installing Python at Work

2005-10-18 Thread Grant Edwards
On 2005-10-17, Nikola <[EMAIL PROTECTED]> wrote: > I'm considering installing it on a work laptop, knowing that > it is non-licensed, distributable software. > > However, does it access communication ports? Only if you tell it to. -- Grant Edwards grante Yow! I'm

Re: Writing an immutable object in python

2005-10-18 Thread Mapisto
Ok, I've understood my mistake. Now, my list contains a shared entry of an empty object. When an entry is needed to be changed, I check if the entry is the shared empty object; in that case I create a new unique instance. If the entry is already a unique instance, I use it, so the empty object isn

Re: Microsoft Hatred FAQ

2005-10-18 Thread John Wingate
Richard Steiner <[EMAIL PROTECTED]> wrote: > Here in comp.os.linux.misc, > John Wingate <[EMAIL PROTECTED]> spake unto us, saying: > >>Peter T. Breuer <[EMAIL PROTECTED]> wrote: > >>> It seems to me that I was using 3.x. Maybe it was 3.1? I seem to >>> remember an earlier major ... was there a 2.

example of using urllib2 with https urls

2005-10-18 Thread Michele Simionato
Can somebody provide an example of how to retrieve a https url, given username and password? I don't find it in the standard documentation. TIA, Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython + pyPlot

2005-10-18 Thread Robert
Philippe C. Martin wrote: > I think wxWidget comes with a sample > > Philippe Yes I use it, but there is not a sample with pyplot. Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: UI toolkits for Python

2005-10-18 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Maybe that's the key difference between the mindset of a > mathematician and that of an engineer -- I consider reaching over > 95% of visitors to be _quite good indeed_, Oh? So you'd consider an SMTP/IMAP/POP/DNS/NFS/etc server that rejected 5% of the sy

Re: html parser?

2005-10-18 Thread Thorsten Kampe
* Christoph Söllner (2005-10-18 12:20 +0100) > right, that's what I was looking for. Thanks very much. For simple things like that "BeautifulSoup" might be overkill. import formatter, \ htmllib, \ urllib url = 'http://python.org' htmlp = htmllib.HTMLParser(formatter.NullForm

Re: reading hebrew text file

2005-10-18 Thread hagai26
realy thanks hagai -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Meyer
"Mike Schilling" <[EMAIL PROTECTED]> writes: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> "Mike Schilling" <[EMAIL PROTECTED]> writes: >>> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message >>> news:[EMAIL PROTECTED] "Mike Schilling" <[EMAIL PROTECTED]> write

[wxPython-users] Web based applications are possible with wxPython?

2005-10-18 Thread Ruben Charles
Hi, I am reading some essays --http://www.paulgraham.com/avg.html "Beating the averages"-- and i am very interested in the web-based applications. I want to take the advantages having the application on a server. Is easy to update, maintain, etc... My questions is Can i have a wxPython GUI app

Re: Jargons of Info Tech industry

2005-10-18 Thread Mike Meyer
Tim Tyler <[EMAIL PROTECTED]> writes: > In comp.lang.java.programmer Ross Bamford <[EMAIL PROTECTED]> wrote or quoted: > About all email has going for it these days is an open format and a > large existing user base. Yeah, and all that Windows has going for it is being on 9X% of the desktops. Noth

Re: UI toolkits for Python

2005-10-18 Thread Mark Roseman
Mike Meyer <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] (Alex Martelli) writes: > > Maybe that's the key difference between the mindset of a > > mathematician and that of an engineer -- I consider reaching over > > 95% of visitors to be _quite good indeed_, >> What surprises me is that marketing

A little help with time calculations

2005-10-18 Thread iminal
I am trying to make a very simple program and am very new to the whole programming thing. my program is supposed to ask a user for any time in the for format XX:XX:XX and then ask for a time corrrection to add or subtract to this. my only problem is that once the user inputs the time and the correc

Re: Microsoft Hatred FAQ

2005-10-18 Thread Aragorn
On Tuesday 18 October 2005 05:32, Richard Steiner stood up and spoke the following words to the masses in /comp.os.linux.misc...:/ > Here in comp.os.linux.misc, > John Wingate <[EMAIL PROTECTED]> spake unto us, saying: > >>Peter T. Breuer <[EMAIL PROTECTED]> wrote: > >>> It seems to me that I wa

Re: UI toolkits for Python

2005-10-18 Thread Christophe
Mike Meyer a écrit : > [EMAIL PROTECTED] (Alex Martelli) writes: > >>Maybe that's the key difference between the mindset of a >>mathematician and that of an engineer -- I consider reaching over >>95% of visitors to be _quite good indeed_, > > > Oh? So you'd consider an SMTP/IMAP/POP/DNS/NFS/etc

Re: UI toolkits for Python

2005-10-18 Thread Christophe
Mike Meyer a écrit : > [EMAIL PROTECTED] (Alex Martelli) writes: > >>Maybe that's the key difference between the mindset of a >>mathematician and that of an engineer -- I consider reaching over >>95% of visitors to be _quite good indeed_, > > > Oh? So you'd consider an SMTP/IMAP/POP/DNS/NFS/etc

Re: wxPython + pyPlot

2005-10-18 Thread Philippe C. Martin
My mistake, I understood plot (as in "from wx.lib.plot import *" that comes with wxwidgets and which does have a demo) Sorry, Philippe Robert wrote: > Philippe C. Martin wrote: > >> I think wxWidget comes with a sample >> >> Philippe > Yes I use it, but there is not a sample with pyplot. >

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-18 Thread Chris Lambacher
The shell that comes with MSys (from the MinGW guys). Is pretty good, although it does have a bit of a problem with stdout output before a process exits, ie it will hold back output until the process exits. As a bonus, the file system is a little more sane, and if you are interested in compiling s

Re: Microsoft Hatred FAQ

2005-10-18 Thread John W. Kennedy
Michael Heiming wrote: > Let's not forget about the Internet, they invented together with > Al Gore and of course the wheel! No fair picking on Al Gore. All he ever claimed was that he was the Congressional point man for the "Information Superhighway", which he was. -- John W. Kennedy Read the

Re: UI toolkits for Python

2005-10-18 Thread Paul Boddie
Paul Rubin wrote: > All this extreme use of JS misses the point, it's client side > programming all over again This is so true, although I don't expect those people relentlessly hyping "AJAX" to either realise the significance of that observation or to necessarily make an accessible Web site for t

Re: UI toolkits for Python

2005-10-18 Thread Alex Martelli
Mike Meyer <[EMAIL PROTECTED]> wrote: ... > What surprises me is that marketing types will accept turning away - > what's the current internet user base? 200 million? - 10 million > potential customers without a complaint. Or maybe they just don't get > told that that's what's going on. In firm

Re: Vim capable IDE?

2005-10-18 Thread Ron Adam
Chris Lasher wrote: > Thanks for your responses, guys. I can't get the PIDA page to come up > for me; server timeout error. I'll have to look into Eclipse more, but > I've been warned that it's resource greedy and that the VI plugin > doesn't provide very much functionality. Still, that's hearsay,

Re: How do I pass args using Python Windows

2005-10-18 Thread Chris Lambacher
Have a main function that you pass the arguments into. This entry on Guido's blog should help you out: http://www.artima.com/forums/flat.jsp?forum=106&thread=4829 -Chris On Mon, Oct 17, 2005 at 09:02:10PM -0400, Ross Reyes wrote: >Hi - >I wonder if someone might be able to lend a quick

Re: PEP: Adding decorators for everything

2005-10-18 Thread Diez B. Roggisch
> @GuardedClass > class Foo: The functionality can be done using a meta-class, in a similarily declarative way. > @Transient > a = 'a transient field, ignored when serializing' > > @Const > PI = 22.0 / 7 > > @TypeSafe(int) > count = 10 These are tricky, as the implicit

Re: Vim capable IDE?

2005-10-18 Thread Chris Lambacher
I would second that. I use Vim for editing. I find I don't need an IDE (not even for C/C++). Vim does everything I need. If I want a debugger I will use the shell debugger. Most other things can be added to Vim, though I tend to run with very few plugins. -Chris On Tue, Oct 18, 2005 at 05:1

Re: Well written open source Python apps

2005-10-18 Thread Paulo Eduardo Neves
This is an old thread in this subject that I bookmarked: http://groups.google.com/group/comp.lang.python/browse_thread/thread/984262217c1b3727/8793a0b7722bb32f -- http://mail.python.org/mailman/listinfo/python-list

Re: html parser?

2005-10-18 Thread Paul Boddie
Thorsten Kampe wrote: > For simple things like that "BeautifulSoup" might be overkill. [HTMLParser example] I've used SGMLParser with some success before, although the SAX-style processing is objectionable to many people. One alternative is to use libxml2dom [1] and to parse documents as HTML: i

Re: Microsoft Hatred FAQ

2005-10-18 Thread joe
"John W. Kennedy" <[EMAIL PROTECTED]> writes: > Michael Heiming wrote: > > Let's not forget about the Internet, they invented together with > > Al Gore and of course the wheel! > > No fair picking on Al Gore. All he ever claimed was that he was the > Congressional point man for the "Information S

Using scons zip builder to create zip

2005-10-18 Thread Chris Becker
What I am looking for is how to call the builder so that it does not recurse directories and does not add paths: zipFile = env.Zip(outputFile, sourcePath) I seen something in the docs about ZIPFLAGS env var, but there is no documentation on what the options are. Anyone have any help or links? -

Re: [wxPython-users] Web based applications are possible with wxPython?

2005-10-18 Thread Grant Edwards
On 2005-10-18, Ruben Charles <[EMAIL PROTECTED]> wrote: > Can i have a wxPython GUI app available on a web browser? I don't believe so. I think it would be icnredibly difficult to map a web API into wxWidgets API. > If not, can you suggest me any kind oh method for have something similar? I ha

Re: Web based applications are possible with wxPython?

2005-10-18 Thread Brett Hoerner
I don't think this is possible, unless I am grossly misunderstanding. For the web, pretty much every "UI" is build with some variation of HTML (XHTML is the new standard) with JavaScript thrown in for fancy GUI-like interfaces. You can't use OS-native widgets in the web browser, no. -- http://m

  1   2   3   >