Re: module confusion

2007-10-05 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Robert Kern wrote: > Lawrence D'Oliveiro wrote: >> In message <[EMAIL PROTECTED]>, Steven D'Aprano wrote: >> >>> What does type(os.path) return when you try it? >> >> It returns the type of the value contained in that variable, of course: >> >> >>> import os

Re: module confusion

2007-10-05 Thread Bruno Desthuilliers
Lawrence D'Oliveiro a écrit : > In message <[EMAIL PROTECTED]>, Steven D'Aprano wrote: > >> What does type(os.path) return when you try it? > > It returns the type of the value contained in that variable, of course: Certainly not. You're confusing Python with C. In Python, 'variables' are *not*

Re: Real time plot

2007-10-05 Thread Lawson Hanson
Nicholas Bastin wrote: > On 10/4/07, Jean-Francois Canac <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] >>> I would draw dots on a suitably sized Tkinter canvas, after drawing a >>> schematic >>> of the race track (laborious). >>> >>> 20 per second will be no problem, provided the machine is half

Re: Mysql class works like php

2007-10-05 Thread Bruno Desthuilliers
Andrey a écrit : > Hi > > just a quick question about using MySQL module... are there any api / class > available to give a higher level in working with Mysql in python? > such as > db.fetch_array(), > db.fetch_rows(), > db.query(), > for eachrow in db.fetch_array(): > You really find t

Re: module confusion

2007-10-05 Thread Hendrik van Rooyen
"Steve Holden" <[EMAIL PROTECTED]> wrote: > Hendrik van Rooyen wrote: > > "Steve Holden" wrote: > > > >> religious issues for me. It's more like "This problem has a cross head, > >> so I'll need a Philips screwdriver". > > > > As long as it is not a Pozidrive, that is a commendable attitude. > >

Re: Program with wx in Linux and Windows

2007-10-05 Thread Hendrik van Rooyen
"marcpp" wrote: > Hi I've developed a program (WXpython GUI). In Linux the GUI is correct > (various distributions), but in Windows all appears disordered. > Any recomendations? You are not going to like this recommendation. Use Tkinter instead - seems to work nicely cross platform for me. -

Re: Real time plot

2007-10-05 Thread Hendrik van Rooyen
"Jean-Francois Canac" wrote: "Hendrik van Rooyen" a écrit dans le message de news: >> >> I would draw dots on a suitably sized Tkinter canvas, after drawing a >> schematic >> of the race track (laborious). >> >> 20 per second will be no problem, provided the machine is half decent. >> >> What

Re: Is there a nicer way to do this?

2007-10-05 Thread Bruno Desthuilliers
Stefan Arentz a écrit : > Is there a better way to do the following? > > attributes = ['foo', 'bar'] > > attributeNames = {} > n = 1 > for attribute in attributes: >attributeNames["AttributeName.%d" % n] = attribute >n = n + 1 > > It works, but I am wondering if there is a more pythonic

"SyntaxError: Non-ASCII character '\xc2'...", was Re: Is there a nicer way to do this?

2007-10-05 Thread Peter Otten
Victor B. Gonzalez wrote: > anyhow, I keep getting "SyntaxError: Non-ASCII character '\xc2'..." on line > 5. > anyone know what this is? I too had that problem with KNode. Leading space consists of NO-BREAK SPACE (unichr(160)) which translates to '\xc2\xa0' in UTF-8. As I don't see this proble

a good website for making money online

2007-10-05 Thread panguohua
www.space666.com more information for making money -- http://mail.python.org/mailman/listinfo/python-list

Re: module confusion

2007-10-05 Thread Marc 'BlackJack' Rintsch
On Fri, 05 Oct 2007 19:51:05 +1300, Lawrence D'Oliveiro wrote: > It is not the _name_ that is being reassigned, it is the _variable_ that > the name is bound to. All names in Python are bound to variables at all > times. I think this is the source of the confusion. Most people don't seem to shar

Re: Cross platform way of finding number of processors on a machine?

2007-10-05 Thread Tim Golden
Nicholas Bastin wrote: > On 10/4/07, John <[EMAIL PROTECTED]> wrote: >> Is there a way to find the number of processors on a machine (on linux/ >> windows/macos/cygwin) using python code (using the same code/cross >> platform code)? > > There's no single call that will give you the same info on ev

Please Help me

2007-10-05 Thread Jean-Francois Canac
I am very new in Python and I would like to write an application which takes records from a COM port (or from a file to replay) and draw a real time Plot. But I am confused I have looked at Matplotlib, and a little at hippodraw, I have seen that there are many plot interfaces . But I really don

Re: Convert on uppercase unaccentent unicode character

2007-10-05 Thread Ricardo Aráoz
Wildemar Wildenburger wrote: > Steve Holden wrote: >> Malheureusement, I see that absence of accented capitals is a modern >> phenomenon that is regarded as an impediment to the language mostly >> stemming from laziness of individual authors and inadequacy of low-end >> typesetting software. I h

Re: racism kontrol (OT)

2007-10-05 Thread Hendrik van Rooyen
"Wildemar Wildenburger" wrote: > Hendrik van Rooyen wrote: > > "Wildemar Wildenburger" wrote: > > > >> (By the way: Accusing a German of racism is almost too easy an insult. > >> Not that I had taken any, just saying.) > > > > I always thought that it would be insulting to a German if you

Python + Shoutpy + Twisted Locks

2007-10-05 Thread exhuma.twn
Unfortunately I don't have the code at hand on this box, but maybe someone can give me a nudge in the right direction. Some background: Last year I began to write a jukebox system that provided a Telnet-like interface. I wrote this using "socket". Later along the path I discovered Twisted, and due

Re: Cross platform way of finding number of processors on a machine?

2007-10-05 Thread Kay Schluehr
On 5 Okt., 09:58, Tim Golden <[EMAIL PROTECTED]> wrote: > Nicholas Bastin wrote: > > On 10/4/07, John <[EMAIL PROTECTED]> wrote: > >> Is there a way to find the number of processors on a machine (on linux/ > >> windows/macos/cygwin) using python code (using the same code/cross > >> platform code)?

Re: Adding behaviour for managing "task" dependencies

2007-10-05 Thread David
> > Any thoughts would be most appreciated, though I would like to stress > that I don't think Python should support the syntax I'm proposing I'd > just like to know if I can extend a copy of it to do that. > You can use syntax like this: class MyJob1(Job): depends(MyJob2) depends(MyJob3)

Where's the Starship's crew?

2007-10-05 Thread Dick Moores
I didn't check on all of them, but the only one I found was Mark Hammond . Dick Moores -- http://mail.python.org/mailman/listinfo/python-list

Re: Cross platform way of finding number of processors on a machine?

2007-10-05 Thread Tim Golden
[Tim Golden] >>""" >>Windows Server 2003, Windows XP, and Windows 2000: >> This property is not available. >>""" >> >> since it's presumably not available in anything earlier either, >> that leaves you with Vista or the early-adopter editions of the >> next Windows Server product.

Re: open(.xls file, 'w') so that hyperlinks appear

2007-10-05 Thread Michael Bentley
-- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter question

2007-10-05 Thread Eric Brunel
On Fri, 05 Oct 2007 05:16:14 +0200, goldtech <[EMAIL PROTECTED]> wrote: > This works OK. But I notice that if I enlarge the window after the > script has run, the white listbox only gets "so" big while the grey > background enlarges. > > Is there a way to have it all white when I enlarge a windo

Re: Real time plot

2007-10-05 Thread Jean-Francois Canac
"Lawson Hanson" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Nicholas Bastin wrote: >> On 10/4/07, Jean-Francois Canac <[EMAIL PROTECTED]> wrote: >>> [EMAIL PROTECTED] I would draw dots on a suitably sized Tkinter canvas, after drawing a schematic of the

where can I get a space supporting cgi written in python

2007-10-05 Thread [EMAIL PROTECTED]
I'm studying python and very interested in cgi written in python, but i can't find a free host suporting it.who can tell where can i sign up for a free python host? I just wanna have a try, the space dont have to be very large, 20M or 50M is OK thanks! -- http://mail.python.org/mailman/listinfo/p

Re: Where's the Starship's crew?

2007-10-05 Thread exhuma.twn
On Oct 5, 10:31 am, Dick Moores <[EMAIL PROTECTED]> wrote: > > > I didn't check on all of them, but the only one I found was Mark > Hammond . > > Dick Moores Doing 6 random clicks, revealed: http://starship.py

Strange generator problem

2007-10-05 Thread Joost Cassee
Hello all, I bumped into an unexpected problem using generators. Consider this code: def test(s): return _test([], [], s) def _test(s1, s2, s): if s: s1.append(s.pop()) for x in _test(s1, s2, s): yield x s2.append(s1.pop()) for x in _test(s1, s

Re: unit testing

2007-10-05 Thread Craig Howard
On Oct 4, 2007, at 3:02 PM, brad wrote: > Does anyone else feel that unittesting is too much work? Not in > general, > just the official unittest module for small to medium sized projects? > > It seems easier to write some quick methods that are used when needed > rather than building a program

Re: Strange generator problem

2007-10-05 Thread Paul Hankin
On Oct 5, 10:23 am, Joost Cassee <[EMAIL PROTECTED]> wrote: > Hello all, > > I bumped into an unexpected problem using generators. Consider this code: > > def test(s): > return _test([], [], s) > def _test(s1, s2, s): > if s: > s1.append(s.pop()) > for x in _test(s1, s2, s):

Re: Duplicate content filter..

2007-10-05 Thread Michael
Markov chains maybe? You could probably create a pretty fast db of sorts for checking on word to page relationships and word to word relationships. Or else a normal db could probably do it pretty fast. Break the page into words and remove common words (*prepositions, etc)* and keep a database of wo

Re: Command-line does work when scheduled

2007-10-05 Thread Martin P. Hellwig
Jim wrote: > On Sep 30, 6:16 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >> On Sun, 30 Sep 2007 07:42:56 -0700, Jim <[EMAIL PROTECTED]> >> declaimed the following in comp.lang.python: >> >>> What else could be wrong? >>> Thanks, >> Possibly those associations are only defined for your

Re: WebBased Vector 2D Graphics

2007-10-05 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > Is there any way this web programming can be done in python. Sure. Minimalistic approaches include using CGI (http://docs.python.org/lib/module-cgi.html) or using Apache with mod_python directly. There are also web frameworks for Python, but I don't know much about th

Re: Cross platform way of finding number of processors on a machine?

2007-10-05 Thread Nick Craig-Wood
Nicholas Bastin <[EMAIL PROTECTED]> wrote: > On 10/4/07, John <[EMAIL PROTECTED]> wrote: > > > > Is there a way to find the number of processors on a machine (on linux/ > > windows/macos/cygwin) using python code (using the same code/cross > > platform code)? > > There's no single call that will

Re: unit testing

2007-10-05 Thread Kay Schluehr
On Oct 4, 9:39 pm, Paul Rubin wrote: > Yeah, unittest is sort of a Java-ism. However legend tells the story of Kent Beck and Erich Gamma sitting together in a plane to ( or from ) New York and porting a unittest framework from SmallTalk to Java. This extreme programming

Re: unit testing

2007-10-05 Thread Kay Schluehr
On Oct 3, 2:37 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Paul Rubin a écrit : > > > brad <[EMAIL PROTECTED]> writes: > > >>Does anyone else feel that unittesting is too much work? Not in > >>general, just the official unittest module for small to medium sized > >>projects? > > > Yeah, un

Re: migrating to packages

2007-10-05 Thread Bruno Desthuilliers
Gerardo Herzig a écrit : > Carl Bank a écrit : >> >> Add these lines in __init__.py: >> >> from MYCLASSES.A import A >> from MYCLASSES.B import B >> >> > Ummm, that works indeed, but forces me to import all (more than A and B) > classes, rigth? Why so ? -- http://mail.python.org/mailman/listi

Re: WebBased Vector 2D Graphics

2007-10-05 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi there > > I currently have a Python program outputing to the command line, > durations of 'completed Steps' and 'data items' in relation to time > i.e. > > > --jfh > -kl//kl started after jfh finished > % D

Re: Boolean parser..

2007-10-05 Thread Abandoned
On 4 Ekim, 22:29, Abandoned <[EMAIL PROTECTED]> wrote: > Hi.. > I try a boolean parser in python since 1 weak.. But i can't do this > because this is very complicated :( > Do you know any blooean parser script in python or how do i write a > boolean parser ? > example query: ((google or yahoo) or (

Re: novice list

2007-10-05 Thread Dustan
On Oct 5, 6:01 am, István <[EMAIL PROTECTED]> wrote: > Could somebody suggest me a novice Python list, please? > Thanks, Istvan You're there. -- http://mail.python.org/mailman/listinfo/python-list

Re: Where's the Starship's crew?

2007-10-05 Thread Thomas Heller
Dick Moores schrieb: > > > I didn't check on all of them, but the only one I found was Mark > Hammond . > > Dick Moores > There are more. Think of it as a game you have to solve. -- http://mail.python.or

Re: Python "implements " equivalent?

2007-10-05 Thread Sion Arrowsmith
Grant Edwards <[EMAIL PROTECTED]> wrote: > try: > myobj.feature1() > except AttributeError: > print "object doesn't implement feature1" > >isn't correct, since an unhandled AttributeError generated by >the feature1 method will print "object doesn't implement >feature1". I'd be

Re: tkinter question

2007-10-05 Thread Michal Bozon
On Thu, 04 Oct 2007 20:16:14 -0700, goldtech wrote: > This works OK. But I notice that if I enlarge the window after the > script has run, the white listbox only gets "so" big while the grey > background enlarges. > > Is there a way to have it all white when I enlarge a window - like > what norma

Re: module confusion

2007-10-05 Thread Steven D'Aprano
On Fri, 05 Oct 2007 00:12:33 -0500, Robert Kern wrote: > This is somewhat odd, because most modules aren't exposed that way. They > are either in their own file and accessed by importing them directly, or > they are inside a package. Any time you say: import parrot in one of your modules, you

Re: tkinter question

2007-10-05 Thread Kevin Walzer
Eric Brunel wrote: > > BTW, even for something that simple, using the grid geometry manager may > be easier... It is at least easier to explain: don't ask me what the > expand=1 option means, I never understood it... I just add or remove it > when the pack doesn't do what I want. The sticky op

Re: Python and SSL

2007-10-05 Thread [EMAIL PROTECTED]
On Oct 5, 2:50 am, John Nagle <[EMAIL PROTECTED]> wrote: > Johny wrote: > > Martin and John, > > Thank you both for your replies > > Must I have OpenSSL imported in my Python program? > > So far I have been using only SSL support. > > Built-in SSL support works OK if I connect from my Python pro

Re: novice list

2007-10-05 Thread Steve Holden
István wrote: > Could somebody suggest me a novice Python list, please? > Thanks, Istvan > [EMAIL PROTECTED] is known to be noob-friendly. See http://mail.python.org/mailman/listinfo/tutor for more details. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web

Re: Boolean parser..

2007-10-05 Thread Abandoned
http://pyparsing.wikispaces.com/space/showimage/searchparser.py this is searchparser but i can't understant to use this. Can anybody explain this how to use ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python "implements " equivalent?

2007-10-05 Thread David
> I'm a seasoned Java programmer and quite a big fan of interfaces... > i.e. The idea that if I make a number of distinct classes that > implement interface X, I can pass them all as parameters to functions > or whatnot that require an X object. > > Is there something similar in Python? > Python w

WebBased Vector 2D Graphics

2007-10-05 Thread cjt22
Hi there I currently have a Python program outputing to the command line, durations of 'completed Steps' and 'data items' in relation to time i.e. --jfh -kl//kl started after jfh finished % Ds //new data arrived at this point in time

Re: Strange generator problem

2007-10-05 Thread Joost Cassee
On 05/10/2007 11:34, Paul Hankin wrote: > Lists aren't copied when they're yielded, Duh! Thanks for your sharp eye. -- Joost Cassee http://joost.cassee.net -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter question

2007-10-05 Thread Eric Brunel
On Fri, 05 Oct 2007 14:10:57 +0200, Kevin Walzer <[EMAIL PROTECTED]> wrote: > "expand = 1" == "expand=TRUE"--that means the widget resizes itself > when the window is re-sized. That's the theory... But what does fill=BOTH means then? And why does expand=1 (or TRUE, or True) is only needed i

Re: where can I get a space supporting cgi written in python

2007-10-05 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > I'm studying python and very interested in cgi written in python, but > i can't find a free host suporting it.who can tell where can i sign up > for a free python host? > I just wanna have a try, the space dont have to be very large, 20M or > 50M is OK FWIW, you don't

Re: WebBased Vector 2D Graphics

2007-10-05 Thread cjt22
On Oct 5, 11:43 am, Bjoern Schliessmann wrote: > [EMAIL PROTECTED] wrote: > > Is there any way this web programming can be done in python. > > Sure. Minimalistic approaches include using CGI > (http://docs.python.org/lib/module-cgi.html) > or using Apache with mod_python directly. There are also

Re: unit testing

2007-10-05 Thread Kay Schluehr
On 4 Okt., 22:49, Jeffrey Froman <[EMAIL PROTECTED]> wrote: > Chris Mellon wrote: > > Doctest is commonly given as the alternative to people who feel this > > way. Personally, I find that anything worth testing is worth having a > > test directory and independent unit tests for. > > I like keeping

Re: module confusion

2007-10-05 Thread Steven D'Aprano
On Fri, 05 Oct 2007 19:51:05 +1300, Lawrence D'Oliveiro wrote: > There is no sense in which any Python object can "contain" any other. >>> L = [1, 2, 3] >>> 2 in L True >>> L.__contains__(3) True -- Steven. -- http://mail.python.org/mailman/listinfo/python-list

novice list

2007-10-05 Thread István
Could somebody suggest me a novice Python list, please? Thanks, Istvan -- http://mail.python.org/mailman/listinfo/python-list

Re: module confusion

2007-10-05 Thread Steve Holden
Steven D'Aprano wrote: > On Fri, 05 Oct 2007 00:12:33 -0500, Robert Kern wrote: > >> This is somewhat odd, because most modules aren't exposed that way. They >> are either in their own file and accessed by importing them directly, or >> they are inside a package. > > Any time you say: > > import

Re: tkinter question

2007-10-05 Thread goldtech
> > try to change listbox.pack() to listbox.pack(expand=True, fill=BOTH) > .. is it that you want ? Yes. > > -mykhal Worked with TRUE all uppercase. Exactly what I needed. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: WebBased Vector 2D Graphics

2007-10-05 Thread Robin Becker
Diez B. Roggisch wrote: > [EMAIL PROTECTED] wrote: > ... > > You certainly need to get on speed with webdevelopment. Otherwise you will > fail miserably. > > There are several options here: > > - rendering a server-side image, deliver that embedded in a html-page > > - render using html

Python Magazine: Issue 1 Free!

2007-10-05 Thread Steve Holden
I've just been told by the editors at Python Magazine that the first issue is out. It's all-electronic so anyone can download and read it. Let them know what you think: http://www.pythonmagazine.com/c/issue/2007/10 regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Hol

Re: module confusion

2007-10-05 Thread Neil Cerutti
On 2007-10-05, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Neil Cerutti wrote: > >> On 2007-10-03, Lawrence D'Oliveiro <[EMAIL PROTECTED]> >> wrote: >>> In Python, all names _are_ variables. They are not "bound" to >>> objects. The value of os.path is a pointer.

Re: Boolean parser..

2007-10-05 Thread David
On 10/4/07, Abandoned <[EMAIL PROTECTED]> wrote: > Hi.. > I try a boolean parser in python since 1 weak.. But i can't do this > because this is very complicated :( > Do you know any blooean parser script in python or how do i write a > boolean parser ? > example query: ((google or yahoo) or (live m

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Adrian Cherry
Steve Holden <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > I've just been told by the editors at Python Magazine that > the first issue is out. It's all-electronic so anyone can > download and read it. Let them know what you think: > >http://www.pythonmagazine.com/c/issue/2007/10 >

Re: migrating to packages

2007-10-05 Thread Gerardo Herzig
Bruno Desthuilliers wrote: >Gerardo Herzig a écrit : > > >>Carl Bank a écrit : >> >> >>>Add these lines in __init__.py: >>> >>>from MYCLASSES.A import A >>>from MYCLASSES.B import B >>> >>> >>> >>> >>Ummm, that works indeed, but forces me to import all (more than A and B) >>classes,

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Paul McGuire
On Oct 5, 7:52 am, "Adrian Cherry" <[EMAIL PROTECTED]> wrote: > Steve Holden <[EMAIL PROTECTED]> wrote innews:[EMAIL PROTECTED]: > > > I've just been told by the editors at Python Magazine that > > the first issue is out. It's all-electronic so anyone can > > download and read it. Let them know wha

Re: Where's the Starship's crew?

2007-10-05 Thread Dick Moores
At 04:54 AM 10/5/2007, Thomas Heller wrote: >Dick Moores schrieb: > > > > > > I didn't check on all of them, but the only one I found was Mark > > Hammond . > > > > Dick Moores > > > >There are more. Think of it

Re: tkinter question

2007-10-05 Thread Kevin Walzer
Eric Brunel wrote: > On Fri, 05 Oct 2007 14:10:57 +0200, Kevin Walzer <[EMAIL PROTECTED]> > wrote: >> "expand = 1" == "expand=TRUE"--that means the widget resizes itself >> when the window is re-sized. > > That's the theory... But what does fill=BOTH means then? And why does > expand=1 (or TRU

Re: migrating to packages

2007-10-05 Thread Hrvoje Niksic
Gerardo Herzig <[EMAIL PROTECTED]> writes: > If the original MYCLASSES.py has 5 different classes ,say A,B,C,D,E > , each one has to be imported (as A and B) in order to be used for > the client code. The thing is, there are more than 5 classes, and > looks like a lot of unnecesary work to me, sin

Re: unit testing

2007-10-05 Thread byte8bits
On Oct 5, 5:38 am, Craig Howard <[EMAIL PROTECTED]> wrote: > Brad: > > If the program is more than 100 lines or is a critical system, I > write a unit test. I hate asking myself, "Did I break something?" > every time I decide to refactor a small section of code. For > instance, I wrote an alarm sys

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Adrian Cherry
Paul McGuire <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > I thought Steve Holden's Random Hits column was the "back > page commentry". after re-reading it then yes I can see your point, I suppose I was just hoping for some pythonesque humour to close the show! Regards Adrian -- ht

Re: Program with wx in Linux and Windows

2007-10-05 Thread Grant Edwards
On 2007-10-04, marcpp <[EMAIL PROTECTED]> wrote: > Hi I've developed a program (WXpython GUI). In Linux the GUI is correct > (various distributions), but in Windows all appears disordered. > Any recomendations? I've been using wxPython for cross platofrm stuff on Linux and Windows for 5+ years n

Version 0.3.7 of the config module has been released

2007-10-05 Thread Vinay Sajip
Version 0.3.7 of the Python config module has been released. What Does It Do? The config module allows you to implement a hierarchical configuration scheme with support for mappings and sequences, cross-references between one part of the configuration and another, the ability to f

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Grant Edwards
On 2007-10-05, Steve Holden <[EMAIL PROTECTED]> wrote: > I've just been told by the editors at Python Magazine that the first > issue is out. The first issue is issue number 10? That's a bit silly. -- Grant Edwards grante Yow! I can't decide which

supplying password to subprocess.call('rsync ...'), os.system('rsync ...')

2007-10-05 Thread timw.google
Hi I want to write a python script that runs rsync on a given directory and host. I build the command line string, but when I try to run subprocess.call(cmd), or p=subprocess.Popen(cmd, shell=True),or os.system(cmd), I get prompted for my login password. I expected this, but when I try to give my

Re: remove list elements..

2007-10-05 Thread chris . monsanto
On Oct 5, 10:27 am, Abandoned <[EMAIL PROTECTED]> wrote: > Hi.. > I have a problem.. > list1=[11, 223, 334, 4223...] 1 million element > list2=[22,223,4223,2355...] 500.000 element > > I want to difference list1 to list2 but order very importent.. > > My result must be: > list3=[11,334,...] > > I d

Re: novice list

2007-10-05 Thread Paul Rudin
István <[EMAIL PROTECTED]> writes: > Could somebody suggest me a novice Python list, please? Here you go: ['novice'] (Sorry, couldn't resist.) -- http://mail.python.org/mailman/listinfo/python-list

remove list elements..

2007-10-05 Thread Abandoned
Hi.. I have a problem.. list1=[11, 223, 334, 4223...] 1 million element list2=[22,223,4223,2355...] 500.000 element I want to difference list1 to list2 but order very importent.. My result must be: list3=[11,334,...] I do this use FOR easly but the speed very imported for me. I want to the faste

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Steve Holden
Grant Edwards wrote: > On 2007-10-05, Steve Holden <[EMAIL PROTECTED]> wrote: > >> I've just been told by the editors at Python Magazine that the first >> issue is out. > > The first issue is issue number 10? > > That's a bit silly. > It's the October edition. They obviously decided to make su

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Brian Jones
On 10/5/07, Paul McGuire <[EMAIL PROTECTED]> wrote: > > On Oct 5, 9:44 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > > On 2007-10-05, Steve Holden <[EMAIL PROTECTED]> wrote: > > > > > I've just been told by the editors at Python Magazine that the first > > > issue is out. > > > > The first issue i

Re: remove list elements..

2007-10-05 Thread J. Clifford Dyer
On Fri, Oct 05, 2007 at 07:27:39AM -0700, Abandoned wrote regarding remove list elements..: > > Hi.. > I have a problem.. > list1=[11, 223, 334, 4223...] 1 million element > list2=[22,223,4223,2355...] 500.000 element > > I want to difference list1 to list2 but order very importent.. > > My res

Re: unit testing

2007-10-05 Thread Steven Bethard
[EMAIL PROTECTED] wrote: > On Oct 5, 5:38 am, Craig Howard <[EMAIL PROTECTED]> wrote: >> Brad: >> >> If the program is more than 100 lines or is a critical system, I >> write a unit test. I hate asking myself, "Did I break something?" >> every time I decide to refactor a small section of code. For

Re: Where's the Starship's crew?

2007-10-05 Thread Aahz
In article <[EMAIL PROTECTED]>, Dick Moores <[EMAIL PROTECTED]> wrote: > > > >I didn't check on all of them, but the only one I found was Mark >Hammond . This is the unfortunate remnant of a system hack; many

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Paul McGuire
On Oct 5, 9:44 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-10-05, Steve Holden <[EMAIL PROTECTED]> wrote: > > > I've just been told by the editors at Python Magazine that the first > > issue is out. > > The first issue is issue number 10? > > That's a bit silly. > > -- > Grant Edwards

Re: Boolean parser..

2007-10-05 Thread Paul McGuire
On Oct 4, 3:00 pm, [EMAIL PROTECTED] wrote: > On Oct 5, 7:29 am, Abandoned <[EMAIL PROTECTED]> wrote: > > > Hi.. > > I try a boolean parser in python since 1 weak.. But i can't do this > > because this is very complicated :( > > Do you know any blooean parser script in python or how do i write a >

Re: remove list elements..

2007-10-05 Thread Carsten Haese
On Fri, 2007-10-05 at 07:27 -0700, Abandoned wrote: > Hi.. > I have a problem.. > list1=[11, 223, 334, 4223...] 1 million element > list2=[22,223,4223,2355...] 500.000 element > > I want to difference list1 to list2 but order very importent.. > > My result must be: > list3=[11,334,...] > > I do

Re: remove list elements..

2007-10-05 Thread Hrvoje Niksic
Abandoned <[EMAIL PROTECTED]> writes: > I do this use FOR easly but the speed very imported for me. I want > to the fastest method please help me. Can you post the code snippet that was too slow for you? Are the lists sorted? -- http://mail.python.org/mailman/listinfo/python-list

Re: Boolean parser..

2007-10-05 Thread Paul McGuire
On Oct 5, 7:00 am, Abandoned <[EMAIL PROTECTED]> wrote: > http://pyparsing.wikispaces.com/space/showimage/searchparser.pythis > is searchparser but i can't understant to use this. > Can anybody explain this how to use ? The code demonstrates a testing example, named TestParser, which inherits from

Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...')

2007-10-05 Thread timw.google
On Oct 5, 10:33 am, "timw.google" <[EMAIL PROTECTED]> wrote: > Hi > > I want to write a python script that runs rsync on a given directory > and host. I build the command line string, but when I try to run > subprocess.call(cmd), or p=subprocess.Popen(cmd, shell=True),or > os.system(cmd), I get pro

Re: novice list

2007-10-05 Thread chris . monsanto
On Oct 5, 10:22 am, Paul Rudin <[EMAIL PROTECTED]> wrote: > István <[EMAIL PROTECTED]> writes: > > Could somebody suggest me a novice Python list, please? > > Here you go: > > ['novice'] > > (Sorry, couldn't resist.) No no... I think he meant a "simple" list. Like, you know, a list novices can han

Re: remove list elements..

2007-10-05 Thread Steve Holden
[EMAIL PROTECTED] wrote: > On Oct 5, 10:27 am, Abandoned <[EMAIL PROTECTED]> wrote: >> Hi.. >> I have a problem.. >> list1=[11, 223, 334, 4223...] 1 million element >> list2=[22,223,4223,2355...] 500.000 element >> >> I want to difference list1 to list2 but order very importent.. >> >> My result mu

Re: unit testing

2007-10-05 Thread Roy Smith
[EMAIL PROTECTED] wrote: > Thanks to all for the opinions. Just to clarify, I have nothing > against testing. I like doing it. I catch a lot of bugs! I dislike the > formality of the unittest module. It's unyielding. It makes testing > difficult unless your code is written with testing in mind from

picture filter

2007-10-05 Thread [EMAIL PROTECTED]
hii my friends ı want to a filter for porn picture if you know , please help me :S:S how do ı separate porn form not porn I don't want my web site porn;) (my english bad I hope understant it. very very thans ) -- http://mail.python.org/mailman/listinfo/python-list

Re: unit testing

2007-10-05 Thread Kay Schluehr
On Oct 5, 4:12 pm, [EMAIL PROTECTED] wrote: > On Oct 5, 5:38 am, Craig Howard <[EMAIL PROTECTED]> wrote: > > > Brad: > > > If the program is more than 100 lines or is a critical system, I > > write a unit test. I hate asking myself, "Did I break something?" > > every time I decide to refactor a sma

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread J. Clifford Dyer
On Fri, Oct 05, 2007 at 04:11:07PM -, Grant Edwards wrote regarding Re: Python Magazine: Issue 1 Free!: > > On 2007-10-05, Steve Holden <[EMAIL PROTECTED]> wrote: > >> > >>> I've just been told by the editors at Python Magazine that the > >>> first issue is out. > >> > >> The first issue is

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Grant Edwards
On 2007-10-05, Steve Holden <[EMAIL PROTECTED]> wrote: >> >>> I've just been told by the editors at Python Magazine that the >>> first issue is out. >> >> The first issue is issue number 10? >> >> That's a bit silly. > > It's the October edition. They obviously decided to make sure > the month nu

Re: module confusion

2007-10-05 Thread Steve Holden
Steven D'Aprano wrote: > On Fri, 05 Oct 2007 07:37:34 -0400, Steve Holden wrote: > >> Steven D'Aprano wrote: >>> On Fri, 05 Oct 2007 00:12:33 -0500, Robert Kern wrote: >>> This is somewhat odd, because most modules aren't exposed that way. They are either in their own file and accessed b

Re: module confusion

2007-10-05 Thread Steven D'Aprano
On Fri, 05 Oct 2007 07:37:34 -0400, Steve Holden wrote: > Steven D'Aprano wrote: >> On Fri, 05 Oct 2007 00:12:33 -0500, Robert Kern wrote: >> >>> This is somewhat odd, because most modules aren't exposed that way. >>> They are either in their own file and accessed by importing them >>> directly,

Re: remove list elements..

2007-10-05 Thread Marc 'BlackJack' Rintsch
On Fri, 05 Oct 2007 11:45:07 -0400, Steve Holden wrote: > [EMAIL PROTECTED] wrote: >> On Oct 5, 10:27 am, Abandoned <[EMAIL PROTECTED]> wrote: >>> Hi.. >>> I have a problem.. >>> list1=[11, 223, 334, 4223...] 1 million element >>> list2=[22,223,4223,2355...] 500.000 element >>> >>> I want to diffe

Re: "SyntaxError: Non-ASCII character '\xc2'...", was Re: Is there a nicer way to do this?

2007-10-05 Thread Victor B. Gonzalez
On Friday 05 October 2007 3:33:43 am Peter Otten wrote: > Victor B. Gonzalez wrote: > > anyhow, I keep getting "SyntaxError: Non-ASCII character '\xc2'..." on > > line 5. anyone know what this is? > > I too had that problem with KNode. Leading space consists of NO-BREAK SPACE > (unichr(160)) which

Re: supplying password to subprocess.call('rsync ...'), os.system('rsync ...')

2007-10-05 Thread Stargaming
On Fri, 05 Oct 2007 08:37:05 -0700, timw.google wrote: > On Oct 5, 10:33 am, "timw.google" <[EMAIL PROTECTED]> wrote: >> Hi >> >> I want to write a python script that runs rsync on a given directory >> and host. I build the command line string, but when I try to run >> subprocess.call(cmd), or p=s

Re: picture filter

2007-10-05 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > hii my friends > ı want to a filter for porn picture > if you know , please help me :S:S > how do ı separate porn form not porn > I don't want my web site porn;) > (my english bad I hope understant it. very very thans ) If anybody know how to do that, he or she would

  1   2   >