ANN: cssutils 0.9.6b5 (bugfix release)

2009-08-30 Thread Christof Hoeke
what is it -- A Python package to parse and build CSS Cascading Style Sheets. (Not a renderer though!) about this release -- 0.9.6b5 is a bugfix release. main changes + BUGFIX: Issue #30 fixed. Setup from source did not work. license --- cssutils is

Re: An assessment of the Unicode standard

2009-08-30 Thread Neil Hodgson
Chris Jones: Is the implication that the principal usefulness of such languages as Hindi and other Indian languages is us selling things to them..? Unicode was developed by a group of US corporations: Xerox, Apple, Sun, Microsoft, ... The main motivation was to avoid dealing with multiple

Re: break unichr instead of fix ord?

2009-08-30 Thread Martin v. Löwis
To reiterate, I am not advocating for any change. I simply want to understand if there is a good reason for limiting the use of unchr/ord on narrow builds to a subset of the unicode characters that Python otherwise supports. So far, it seems not and that unichr/ord is a poster child for

Re: An assessment of the Unicode standard

2009-08-30 Thread Steven D'Aprano
On Sun, 30 Aug 2009 00:22:00 -0400, Chris Jones wrote: On Sat, Aug 29, 2009 at 11:07:17PM EDT, Neil Hodgson wrote: Benjamin Peterson: Like Sanskrit or Snowman language? Sanskrit is mostly written in Devanagari these days which is also useful for selling things to people who speak Hindi

Re: Object's nesting scope

2009-08-30 Thread zaur
On 30 авг, 03:22, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 29 Aug 2009 04:34:48 -0300, zaur szp...@gmail.com escribió: On 29 авг, 08:37, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Fri, 28 Aug 2009 15:25:55 -0300, zaur szp...@gmail.com escribió: On 28 авг, 16:07,

Re: Is behavior of += intentional for int?

2009-08-30 Thread Derek Martin
On Sat, Aug 29, 2009 at 07:03:23PM +, Steven D'Aprano wrote: On Sat, 29 Aug 2009 11:11:43 -0700, zaur wrote: I thought that int as object will stay the same object after += but with another integer value. My intuition said me that int object which represent integer value should behave

Re: IDE for python similar to visual basic

2009-08-30 Thread Detlev Offenbach
qwe rty wrote: i have been searching for am IDE for python that is similar to Visual Basic but had no luck.shall you help me please? eric4 should be a good candidate. http://eric-ide.python-projects.org Detlev -- Detlev Offenbach det...@die-offenbachs.de --

Re: Overriding iadd for dictionary like objects

2009-08-30 Thread RunThePun
On Aug 29, 1:58 pm, Carl Banks pavlovevide...@gmail.com wrote: On Aug 28, 10:37 pm, Joshua Judson Rosen roz...@geekspace.com wrote: Carl Banks pavlovevide...@gmail.com writes: On Aug 28, 2:42 pm, Terry Reedy tjre...@udel.edu wrote: Carl Banks wrote: I don't think it needs a

Re: Is behavior of += intentional for int?

2009-08-30 Thread Mark Dickinson
On Aug 29, 8:03 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 29 Aug 2009 11:11:43 -0700, zaur wrote: I thought that int as object will stay the same object after += but with another integer value. My intuition said me that int object which represent integer value

Re: An assessment of the Unicode standard

2009-08-30 Thread garabik-news-2005-05
r rt8...@gmail.com wrote: Some may say well how can we possibly force countries/people to speak/ code in a uniform manner? Well that's simple, you just stop supporting their cryptic languages by dumping Unicode and returning to the beautiful ASCII and adopting English as the universal world

How i follow tree folders from url

2009-08-30 Thread catalinf...@gmail.com
Hello ! I wanna use python to follow the tree folders from one url. Example : If url is www.site.com/first/ and first is first folder with next subfolders 01,02,03 The result of script should be : www.site.com/first/01/ www.site.com/first/02/ www.site.com/first/03/ Maybe urllib has some

Re: An assessment of the Unicode standard

2009-08-30 Thread Thorsten Kampe
* r (Sat, 29 Aug 2009 18:30:34 -0700 (PDT)) We don't support a Python group in Chinese or French, so why this? We do - you don't (or to be more realistic, you simply didn't know it). Makes no sense to me really. Like probably 99.9% of all things you hear, read, see and encounter during

Re: How i follow tree folders from url

2009-08-30 Thread Chris Rebert
On Sun, Aug 30, 2009 at 1:20 AM, catalinf...@gmail.comcatalinf...@gmail.com wrote: Hello ! I wanna use python to follow the tree folders from one url. Example : If url is www.site.com/first/ and first is first folder with next subfolders 01,02,03 The result of script should be :

Re: An assessment of the Unicode standard

2009-08-30 Thread Thorsten Kampe
* Neil Hodgson (Sun, 30 Aug 2009 06:17:14 GMT) Chris Jones: I am not from these climes but all the same, I do find you tone of voice rather offensive, considering that you are referring to a culture that's about 3000 years older and 3000 richer than ours and certainly deserves our

Re: An assessment of the Unicode standard

2009-08-30 Thread Thorsten Kampe
* Chris Jones (Sun, 30 Aug 2009 00:22:00 -0400) On Sat, Aug 29, 2009 at 11:07:17PM EDT, Neil Hodgson wrote: Sanskrit is mostly written in Devanagari these days which is also useful for selling things to people who speak Hindi and other Indian languages. Is the implication that the

Re: An assessment of the Unicode standard

2009-08-30 Thread Antoine Pitrou
r rt8396 at gmail.com writes: Why should the larger world keep supporting such antiquated languages and character sets through Unicode? What purpose does this serve? Are we merely trying to make everyone happy? A sort of Utopian free-language-love-fest-kinda- thing? Can you go and troll

Re: An assessment of the Unicode standard

2009-08-30 Thread Thorsten Kampe
* John Machin (Sat, 29 Aug 2009 17:20:47 -0700 (PDT)) On Aug 30, 8:46 am, r rt8...@gmail.com wrote: Take for instance the Chinese language with it's thousands of characters and BS, it's more of an art than a language.  Why do we need such complicated languages in this day and time. Many

Re: weak reference callback

2009-08-30 Thread larudwer
Paul Pogonyshev pogonys...@gmx.net schrieb im Newsbeitrag news:mailman.658.1251577954.2854.python-l...@python.org... Hi, Is weak reference callback called immediately after the referenced object is deleted or at arbitrary point in time after that? I.e. is it possible to see a dead

Re: Is behavior of += intentional for int?

2009-08-30 Thread Steven D'Aprano
On Sun, 30 Aug 2009 02:33:05 -0500, Derek Martin wrote: On Sat, Aug 29, 2009 at 07:03:23PM +, Steven D'Aprano wrote: On Sat, 29 Aug 2009 11:11:43 -0700, zaur wrote: I thought that int as object will stay the same object after += but with another integer value. My intuition said me

Re: Is behavior of += intentional for int?

2009-08-30 Thread Paul McGuire
On Aug 30, 2:33 am, Derek Martin c...@pizzashack.org wrote: THAT is why Python's behavior with regard to numerical objects is not intuitive, and frankly bizzare to me, and I dare say to others who find it so. Yes, that's right.  BIZZARE. Can't we all just get along? I think the question

Re: Is behavior of += intentional for int?

2009-08-30 Thread Steven D'Aprano
On Sun, 30 Aug 2009 01:01:37 -0700, Mark Dickinson wrote: On Aug 29, 8:03 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 29 Aug 2009 11:11:43 -0700, zaur wrote: I thought that int as object will stay the same object after += but with another integer value. My

Re: Is behavior of += intentional for int?

2009-08-30 Thread Paul McGuire
On Aug 30, 5:42 am, Paul McGuire pt...@austin.rr.com wrote: Python binds values to names. Always. In Python, = is not and never could be a class operator.  In Python, any expression of LHS = RHS, LHS is always a name, and in this statement it is being bound to some object found by evaluating

Re: Is behavior of += intentional for int?

2009-08-30 Thread Albert Hopkins
On Sun, 2009-08-30 at 10:44 +, Steven D'Aprano wrote: It also follows from the idea that there is one abstract entity which English speakers call three and write as 3. There's not two identical entities with value 3, or four, or a million of them, only one. That's not true. There are

How to install setuptools...egg?

2009-08-30 Thread Rolf
Hi, I would like to install setuptools for Python2.6 on Windows. Unfortunately I could only find setuptools-0.6c9-py2.6.egg but no *.exe for Python2.6. And as far as I understand I need setuptools to install a Python egg. I would be very appreciative for any help. Regards Rolf --

Re: a popen question. Please help

2009-08-30 Thread Tim Chase
texts = os.popen('top').readlines() print texts It calls the command line top and will print out some texts. But first I have to press the keyboard q to quit the subprocess top, then the texts will be printed, otherwise it just stands by with blank. Question is. Do you know how to give q into

Re: a popen question. Please help

2009-08-30 Thread Chris Rebert
On Sun, Aug 30, 2009 at 4:43 AM, Tim Chasepython.l...@tim.thechases.com wrote: texts = os.popen('top').readlines() print texts It calls the command line top and will print out some texts. But first I have to press the keyboard q to quit the subprocess top, then the texts will be printed,

Re: Is behavior of += intentional for int?

2009-08-30 Thread Carl Banks
On Aug 30, 3:34 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sun, 30 Aug 2009 02:33:05 -0500, Derek Martin wrote: On Sat, Aug 29, 2009 at 07:03:23PM +, Steven D'Aprano wrote: On Sat, 29 Aug 2009 11:11:43 -0700, zaur wrote: I thought that int as object will stay

Re: How to install setuptools...egg?

2009-08-30 Thread Diez B . Roggisch
Rolf rol...@online.de wrote: Hi, I would like to install setuptools for Python2.6 on Windows. Unfortunately I could only find setuptools-0.6c9-py2.6.egg but no *.exe for Python2.6. And as far as I understand I need setuptools to install a Python egg. I would be very appreciative for

a popen question. Please help

2009-08-30 Thread Joni Lee
Hi all, I write a small script texts = os.popen('top').readlines() print texts It calls the command line top and will print out some texts. But first I have to press the keyboard q to quit the subprocess top, then the texts will be printed, otherwise it just stands by with blank. Question is.

Re: Is behavior of += intentional for int?

2009-08-30 Thread Carl Banks
On Aug 30, 12:33 am, Derek Martin c...@pizzashack.org wrote: [snip rant] THAT is why Python's behavior with regard to numerical objects is not intuitive, and frankly bizzare to me, and I dare say to others who find it so. Yes, that's right.  BIZZARE. You mean it's different from how you

Re: How to install setuptools...egg?

2009-08-30 Thread Colin J. Williams
Diez B. Roggisch wrote: Rolf rol...@online.de wrote: Hi, I would like to install setuptools for Python2.6 on Windows. Unfortunately I could only find setuptools-0.6c9-py2.6.egg but no *.exe for Python2.6. And as far as I understand I need setuptools to install a Python egg. I would be very

Re: Python for professsional Windows GUI apps?

2009-08-30 Thread William
For wxFormbuilder, does it also support AUI (dockable windows,etc.)? Thanks, William --- On Wed, 8/26/09, Robert Kern robert.k...@gmail.com wrote: From: Robert Kern robert.k...@gmail.com Subject: Re: Python for professsional Windows GUI apps? To: python-list@python.org Date: Wednesday, August

Re: An assessment of the Unicode standard

2009-08-30 Thread Hendrik van Rooyen
On Sunday 30 August 2009 02:20:47 John Machin wrote: On Aug 30, 8:46 am, r rt8...@gmail.com wrote: Take for instance the Chinese language with it's thousands of characters and BS, it's more of an art than a language.  Why do we need such complicated languages in this day and time. Many

Re: a popen question. Please help

2009-08-30 Thread Tim Chase
os.popen('top -n1').readlines() Hm, interesting. On Mac OS X's (and BSD's?) top, -n instead specifies the number of processes to list at a time (i.e. list only the top N processes), which is entirely different. [reaching over to my Mac] Looks like top there supports a -l parameter which

Re: An assessment of the Unicode standard

2009-08-30 Thread r
On Aug 29, 11:05 pm, Anny Mous b1540...@tyldd.com wrote: (snip) How do we distinguish resume from résumé without accents? This is another quirk of some languages that befuddles me. What is with the ongoing language pronunciation tutorial some languages have turned into -- French is a good

Re: How to install setuptools...egg?

2009-08-30 Thread Christian Heimes
Colin J. Williams wrote: You might try, at the command line: easy_install setuptools That's not going to work. setuptools provides the easy_install command. If you have the easy_install command than setuptools is already installed. Christian --

Re: An assessment of the Unicode standard

2009-08-30 Thread r
On Aug 30, 3:33 am, Thorsten Kampe thors...@thorstenkampe.de wrote: [snip ridiculous trolling] Thorsten Hmm, I wonder who's sock puppet you are Thorsten? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does this group have so much spam?

2009-08-30 Thread Byung-Hee HWANG
casebash walkr...@gmail.com writes: So much of it could be removed even by simple keyword filtering. Use python-list@python.org [1], instead. [1] http://mail.python.org/mailman/listinfo/python-list -- He's a responsible man in his own way. -- Michael Corleone, Chapter 25,

Re: Is behavior of += intentional for int?

2009-08-30 Thread zaur
On 29 авг, 23:03, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 29 Aug 2009 11:11:43 -0700, zaur wrote: I thought that int as object will stay the same object after += but with another integer value. My intuition said me that int object which represent integer value

Re: An assessment of the Unicode standard

2009-08-30 Thread r
On Aug 30, 7:11 am, Hendrik van Rooyen hend...@microcorp.co.za wrote: (snip) Not that I agree that it would be a Utopia, whatever the language  - more like a nightmare of Orwellian proportions - because the language you get taught first, moulds the way you think.  And I know from personal

Re: Sqlite format string

2009-08-30 Thread Sergio Charpinel Jr.
Thank you very much. 2009/8/30 Cameron Simpson c...@zip.com.au On 29Aug2009 17:27, Sergio Charpinel Jr. sergiocharpi...@gmail.com wrote: | Hi, | I have this statement cursor.execute(SELECT * from session_attribute WHERE | sid=%s, ( user )) | and I'm receiving this error : | | TypeError:

Re: How to install setuptools...egg?

2009-08-30 Thread r
On Aug 30, 7:08 am, Colin J. Williams c...@ncf.ca wrote: You might try, at the command line:    easy_install setuptools Wait maybe you should try this command help(setuptools) :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Is behavior of += intentional for int?

2009-08-30 Thread Albert Hopkins
On Sun, 2009-08-30 at 04:49 -0700, Carl Banks wrote: It's pretty common for people coming from name is a location in memory languages to have this conception of integers as an intermediate stage of learning Python's object system. Even once they've understood everything is an object and names

Re: About diagram and python

2009-08-30 Thread catafest
This is the software : http://projects.gnome.org/dia/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Parse xml file

2009-08-30 Thread Mag Gam
XML is a structured file. I never knew you can read it line by line and process. iterparse() More info on iterparse(): http://effbot.org/zone/element-iterparse.htm On Thu, Aug 27, 2009 at 10:39 AM, Stefan Behnelstefan...@behnel.de wrote: loial wrote: Is there a quick way to retrieve data from

How i follow tree folders from url

2009-08-30 Thread catalinf...@gmail.com
Hello ! I wanna use python to follow the tree folders from one url to get data about dirs and folders. Example : If url is www.site.com/first/ and first is first folder with next subfolders 01,02,03 The result of script should be : www.site.com/first/01/ www.site.com/first/02/

Re: An assessment of the Unicode standard

2009-08-30 Thread Paul Boddie
On 30 Aug, 14:49, r rt8...@gmail.com wrote: It can be made better and if that means add/removing letters or redefining what a letter represents i am fine with that. I know first hand the hypocrisy of the English language. I am thinking more on the lines of English redux! Elsewhere in this

Re: How to install setuptools...egg?

2009-08-30 Thread Mike
I would like to install setuptools for Python2.6 on Windows. 1. Download setuptools-0.6c9-py2.6.egg 2. Download setuptools-0.6c9.tar.gz 3. Use 7-zip from http://www.7-zip.org/ to extract ez_setup.py from setuptools-0.6c9.tar.gz 4. In a directory that contains setuptools-0.6c9-py2.6.egg and

Re: Permanently adding to the Python path in Ubuntu

2009-08-30 Thread Chris Colbert
I don't want to have to modify the path in each and every application. There has to be a way to do this... Personally, I don't agree with the Debian maintainers in the order they import anyway; it should be simple for me to overshadow system packagers. But that's another story. P.S. my first

Re: Permanently adding to the Python path in Ubuntu

2009-08-30 Thread Christian Heimes
Chris Colbert wrote: Is there a way to fix this so that the local dist-packages is added to sys.path before the system directory ALWAYS? I can do this by editing site.py but I think it's kind of bad form to do it this way. I feel there has to be a way to do this without root privileges. Any

Re: An assessment of the Unicode standard

2009-08-30 Thread Hendrik van Rooyen
On Sunday 30 August 2009 15:37:19 r wrote: What makes you think that diversity is lost with a single language? I am quite sure of this - it goes deeper than mere regional differences - your first language forms the way you think - and if we all get taught the same language, then on a very

Re: Is behavior of += intentional for int?

2009-08-30 Thread zaur
On 30 авг, 15:49, Carl Banks pavlovevide...@gmail.com wrote: I think they (Derek and zaur) expect integer objects to be mutable. It's pretty common for people coming from name is a location in memory languages to have this conception of integers as an intermediate stage of learning Python's

Re: Is behavior of += intentional for int?

2009-08-30 Thread Derek Martin
On Sun, Aug 30, 2009 at 10:34:17AM +, Steven D'Aprano wrote: He's saying that instead of thinking the integer value of 3 itself being the object, he expected Python's object model would behave as though the entity m is the object, and that object exists to contain an integer value.

Re: break unichr instead of fix ord?

2009-08-30 Thread Nobody
On Sun, 30 Aug 2009 06:54:21 +0200, Dieter Maurer wrote: What you propose would break the property unichr(i) always returns a string of length one, if it returns anything at all. But getting a ValueError in some builds (and not in others) is rather worse than getting unicode strings of

Thread Pool

2009-08-30 Thread Vitaly Babiy
Hey, Any one know of a good thread pool library. I have tried a few but they don't seem to clean up after them selfs well. Thanks, Vitaly Babiy -- http://mail.python.org/mailman/listinfo/python-list

Re: Is behavior of += intentional for int?

2009-08-30 Thread Rhodri James
On Sun, 30 Aug 2009 17:37:49 +0100, zaur szp...@gmail.com wrote: On 30 авг, 15:49, Carl Banks pavlovevide...@gmail.com wrote: I think they (Derek and zaur) expect integer objects to be mutable. It's pretty common for people coming from name is a location in memory languages to have this

Re: Is behavior of += intentional for int?

2009-08-30 Thread Derek Martin
On Sun, Aug 30, 2009 at 03:42:06AM -0700, Paul McGuire wrote: Python binds values to names. Always. No, actually, it doesn't. It binds *objects* to names. This distinction is subtle, but important, as it is the crux of why this is confusing to people. If Python is to say that objects have

Re: (Simple?) Unicode Question

2009-08-30 Thread Nobody
On Sun, 30 Aug 2009 02:36:49 +, Steven D'Aprano wrote: So long as your terminal has a sensible encoding, and you have a good quality font, you should be able to print any string you can create. UTF-8 isn't a particularly sensible encoding for terminals. Did I mention UTF-8? Out of

Re: Is behavior of += intentional for int?

2009-08-30 Thread Derek Martin
On Sun, Aug 30, 2009 at 04:26:54AM -0700, Carl Banks wrote: On Aug 30, 12:33 am, Derek Martin c...@pizzashack.org wrote: [snip rant] I was not ranting. I was explaining a perspective. THAT is why Python's behavior with regard to numerical objects is not intuitive, and frankly bizzare to

Re: Is behavior of += intentional for int?

2009-08-30 Thread OKB (not okblacke)
Derek Martin wrote: If Python is to say that objects have values, then the object can not *be* the value that it has, because that is a paradoxical self-reference. It's an object, not a value. But does it say that objects have values? I don't see where you get this idea. Consider

Re: IDE for python similar to visual basic

2009-08-30 Thread r
On Aug 28, 5:19 pm, qwe rty hkh00...@gmail.com wrote: i have been searching for am IDE for python that is similar to Visual Basic but had no luck.shall you help me please? Hello qwenbsp;rty, I remember my first days with GUI programming and thinking to myself; how on earth can i write GUI code

Non-deterministic computing (was: What python can NOT do?)

2009-08-30 Thread Joshua Judson Rosen
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sat, 29 Aug 2009 05:37:34 +0200, Tomasz Rola wrote: My private list of things that when implemented in Python would be ugly to the point of calling it difficult: 1. AMB operator - my very favourite. In one sentence,

Re: What python can NOT do?

2009-08-30 Thread Nobody
On Sat, 29 Aug 2009 23:07:17 +, exarkun wrote: Personally, I consider Python to be a good language held back by too-close ties to a naive interpreter implementation and the lack of a formal standard for the language. Name one language under active development that has not been harmed by

Re: Is behavior of += intentional for int?

2009-08-30 Thread Derek Martin
On Sun, Aug 30, 2009 at 03:52:36AM -0700, Paul McGuire wrote: It is surprising how many times we think things are intuitive when we really mean they are familiar. Of course, just as I was typing my response, Steve D'Aprano beat me to the punch. Intuition means The power or faculty of

Re: your favorite debugging tool?

2009-08-30 Thread Michiel Overtoom
Esmail wrote: What is your favorite tool to help you debug your code? import pdb pdb.set_trace() pdb has commands to inspect code, variables, set breakpoints, watches, walk up and down stack frames, single-step through the program, run the rest of the function, run until return, etc...

Re: Is behavior of += intentional for int?

2009-08-30 Thread Derek Martin
On Sun, Aug 30, 2009 at 05:43:42PM +, OKB (not okblacke) wrote: Derek Martin wrote: If Python is to say that objects have values, then the object can not *be* the value that it has, because that is a paradoxical self-reference. It's an object, not a value. But does it say

Re: An assessment of the Unicode standard

2009-08-30 Thread Nobody
On Sat, 29 Aug 2009 22:14:55 -0700, John Nagle wrote: (I wish the HTML standards people would do the same. HTML 5 should have been ASCII only (with the escapes if desired) or Unicode. No Latin-1, no upper code pages, no JIS, etc.) IOW, you want the HTML standards to continue to be

Re:a popen question. Please help

2009-08-30 Thread ivanko . rus
First, I think you should use subprocess.Popen (it's recommended by PEP-324) instead of os.popen. For example: p = subprocess.Popen([top], stdout = PIPE) p.stdout.readlines() And to write to stdin (in your case q) you can use p.stdin.write(q), or terminate the process with p.terminate(), or

Re: Annoying octal notation

2009-08-30 Thread Hendrik van Rooyen
On Monday 24 August 2009 16:14:25 Derek Martin wrote: In fact, now that I think of it... I just looked at some old school papers I had tucked away in a family album. I'm quite sure that in grammar school, I was tought to use a date format of 8/9/79, without leading zeros. I can't prove it,

WEB PROGRAMMER ANALYST (with Python knowledge) for Laval, Quebec needed.

2009-08-30 Thread Marc-André Ouellette
To whom it may concern, ABP Personnel Consultants is a recruiting firm established in Montreal. We presently have a need for a web programmer with knowledge of Python. Below is the job description : Our client offers much more than simple Internet advertising and website design. They are

Re: Overriding iadd for dictionary like objects

2009-08-30 Thread Jan Kaliszewski
PS. Sorry for sending 2 posts -- the latter is the correct one. Cheers, *j -- http://mail.python.org/mailman/listinfo/python-list

Suggestion

2009-08-30 Thread Thangappan.M
Dear all, I am in the process of learning Python programming language. I know Perl,PHP. Compare to both the language Python impressed me because here there is no lexical variables and all.Now I need suggestion saying that , What online book can I follow? I have not yet learnt

a popen command line question

2009-08-30 Thread Joni Lee
Hi all, I write a small script status = os.popen('top').readlines() print status It calls the command line top and will print out the status. But I have to press the keyboard q to quit top, then the status will be printed, otherwise it just stands by with blank. Question is. Do you know how

Re: Why does this group have so much spam?

2009-08-30 Thread Miles Kaufmann
casebash walkr...@gmail.com wrote in message news:7294bf8b-9819-4b6d-92b2- afc1c8042...@x6g2000prc.googlegroups.com... So much of it could be removed even by simple keyword filtering. Funny, I was just thinking recently about how *little* spam this list gets--on the other hand, I'm

Re: An assessment of the Unicode standard

2009-08-30 Thread Jan Kaliszewski
30-08-2009 o 14:11:15 Hendrik van Rooyen hend...@microcorp.co.za wrote: a nightmare of Orwellian proportions - because the language you get taught first, moulds the way you think. And I know from personal experience that there are concepts that can be succinctly expressed in one language,

Python/Fortran interoperability

2009-08-30 Thread nmm1
I am interested in surveying people who want to interoperate between Fortran and Python to find out what they would like to be able to do more conveniently, especially with regard to types not supported for C interoperability by the current Fortran standard. Any suggestions as to other ways that

Re: An assessment of Tkinter and IDLE

2009-08-30 Thread r
Thanks eb303 for the wonderful post I have looked over the new ttk widgets and everything looks nice. I am very glad to see the death of Tix as i never much liked it anyhow and always believed these widgets should have been in the main Tkinter module to start with. The tree widget has been needed

Re: An assessment of the Unicode standard

2009-08-30 Thread r
On Aug 29, 7:22 pm, Neil Hodgson nyamatongwe+thun...@gmail.com wrote:    Wow, I like this world you live in: all that altruism! Well if i don't who will? *shrugs* Unicode was developed by corporations from the US left coast in order to sell their products in foreign markets at minimal cost.

Re: An assessment of the Unicode standard

2009-08-30 Thread John Machin
On Aug 30, 4:47 pm, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sun, 30 Aug 2009 14:05:24 +1000, Anny Mous b1540...@tyldd.com declaimed the following in gmane.comp.python.general: Have you thought about the difference between China, with one culture and one spoken language for

Re: An assessment of the Unicode standard

2009-08-30 Thread r
On Aug 30, 7:11 am, Hendrik van Rooyen hend...@microcorp.co.za wrote: (snip) I suspect that the alphabet is not ideal for representing the sounds of _any_ language, and I would look for my proof in the plethora of things that we use when writing, other than the bare A-Z.   - Punctuation,

Re: An assessment of the Unicode standard

2009-08-30 Thread r
On Aug 30, 10:09 am, Paul Boddie p...@boddie.org.uk wrote: On 30 Aug, 14:49, r rt8...@gmail.com wrote: Then you aren't paying attention. ...(snip: defamation of character) Hold the phone Paul you are calling me a retarded bigot and i don't much appreciate that. I think you are completely

Re: An assessment of the Unicode standard

2009-08-30 Thread r
Would someone please point me to one example where this sociology or anthropology crap has ever improved our day to day lives or moved use into the future with great innovation? A life spend studying this mumbo-jumbo is a complete waste of time when many other far more important and *real*

Re: Does Class implements Interface?

2009-08-30 Thread Emanuele D'Arrigo
Jonathan, Stephen and Max, thank you all for the tips and tricks. Much appreciated. Manu -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I insert a menu item in an existing menu.

2009-08-30 Thread John Ladasky
You might want to direct your wxPython questions to the dedicated wxPython newsgroup. It's Google-only, and thus not part of the Usenet hierarchy. But it's the most on-topic newsgroup you will find. http://groups.google.com/group/wxpython-users I attempted to crosspost this article to

Re: Learning Python advanced features

2009-08-30 Thread Michel Claveau - MVP
Bonsoir ! Tu aurais peut-être dû répondre en anglais (pour certains, advanced features, c'est mieux que concepts sophistiqués). @+ MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: Move dictionary from instance to class level

2009-08-30 Thread Frank Millman
Frank Millman fr...@chagford.com wrote: Apologies for the triple-post. I use google-groups for reading c.l.py, but I know that some people reject messages from there due to the volume of spam, so on the odd occasion when I want to send something I fire up Outlook Express and send it from

Re: Move dictionary from instance to class level

2009-08-30 Thread Frank Millman
Anthony Tolle wrote: To take things one step further, I would recommend using decorators to allow symbolic association of functions with the message identifiers, as follows: [...] That's neat. Thanks. Frank -- http://mail.python.org/mailman/listinfo/python-list

Re: Numeric literals in other than base 10 - was Annoying octal notation

2009-08-30 Thread Mensanator
On Aug 26, 4:59 pm, Piet van Oostrum p...@cs.uu.nl wrote: Mensanator mensana...@aol.com (M) wrote: M That's my point. Since the common usage of binary is for M Standard Positional Number System of Radix 2, it follows M that unary is the common usage for Standard Positional M Number System of

Re: Numeric literals in other than base 10 - was Annoying octal notation

2009-08-30 Thread Steven D'Aprano
On Thu, 27 Aug 2009 10:49:27 -0700, Mensanator wrote: Fine. I'm over it. Point is, I HAVE encountered plenty of people who DON'T properly understand it, Marilyn Vos Savant, for example. I'm curious -- please explain. Links please? You can't blame me for thinking you don't understand it

Re: Numeric literals in other than base 10 - was Annoying octal notation

2009-08-30 Thread Piet van Oostrum
Mensanator mensana...@aol.com (M) wrote: M That's my point. Since the common usage of binary is for M Standard Positional Number System of Radix 2, it follows M that unary is the common usage for Standard Positional M Number System of Radix 1. That's VERY confusing since such M a system is

Re: Numeric literals in other than base 10 - was Annoying octal notation

2009-08-30 Thread Mel
Mensanator wrote: [ ... ] If you want your data file to have values entered in hex, or oct, or even unary (1=one, 11=two, 111=three, =four...) you can. Unary? I think you'll find that Standard Positional Number Systems are not defined for radix 1. It has to be tweaked. If the only

Re: Python/Fortran interoperability

2009-08-30 Thread nmm1
In article 1032c78d-d4dd-41c0-a877-b85ca000d...@g31g2000yqc.googlegroups.com, sturlamolden sturlamol...@yahoo.no wrote: On 23 Aug, 12:35, n...@cam.ac.uk wrote: I am interested in surveying people who want to interoperate between Fortran and Python to find out what they would like to be able to

Re: Python/Fortran interoperability

2009-08-30 Thread Richard Maine
sturlamolden sturlamol...@yahoo.no wrote: On 23 Aug, 20:42, n...@cam.ac.uk wrote: That is precisely what I am investigating. TR 29113 falls a LONG way before it gets to any of the OOP data - indeed, you can't even pass OOP derived types as pure data (without even the functionality) in

Re: Python/Fortran interoperability

2009-08-30 Thread nmm1
In article e0a956ea-ab2a-4651-809d-ee76b11a6...@b15g2000yqd.googlegroups.com, sturlamolden sturlamol...@yahoo.no wrote: You also made this claim regarding Fortran's C interop with strings: No, I mean things like 'Kilroy was here'. Currently, Fortran's C interoperability supports only strings

Re: Sending email

2009-08-30 Thread 7stud
On Aug 28, 8:18 am, Fencer no.i.d...@want.mail.from.spammers.com wrote: 7stud wrote: [snip] Thanks for your reply. After consulting the sysadmins here I was able to get it to work. - Fencer Ok, but how about posting your code so that a future searcher will not be left screaming, WHAT THE

Re: Web Services examples using raw xml?

2009-08-30 Thread John Gordon
In 4a92ee38$0$1627$742ec...@news.sonic.net John Nagle na...@animats.com writes: John Gordon wrote: I'm developing a program that will use web services, which I have never used before. Web services in general, or some Microsoft interface? Microsoft. Exchange Web Services,

Re: Why does this group have so much spam?

2009-08-30 Thread David
Il Sat, 29 Aug 2009 17:18:46 -0700 (PDT), casebash ha scritto: So much of it could be removed even by simple keyword filtering. I think there is only one final solution to the spam pestilence: a tiny tax on email and posts. Spammers send hundreds of thousands of emails/posts a day and a tax of

Re: Why does this group have so much spam?

2009-08-30 Thread Nobody
On Sun, 30 Aug 2009 11:18:35 +0200, David wrote: So much of it could be removed even by simple keyword filtering. I think there is only one final solution to the spam pestilence: a tiny tax on email and posts. Spammers send hundreds of thousands of emails/posts a day and a tax of 0.0001$

Re: mod_python: Permission denied

2009-08-30 Thread David
Thanks Graham. Let me contact Admin. -- http://mail.python.org/mailman/listinfo/python-list

Re: your favorite debugging tool?

2009-08-30 Thread Ben Finney
Hendrik van Rooyen hend...@microcorp.co.za writes: And the final arbiter is of course the interactive prompt. Oh yes, of course I forget to mention that! Write your code so it can be imported, and write your functionality so it has narrow interfaces, and you can do whatever inspection is

  1   2   >