Re: module confusion

2007-10-05 Thread Marc 'BlackJack' Rintsch
On Sat, 06 Oct 2007 19:16:47 +1300, Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch > wrote: > >> To me a `variable` is made of a name, a memory address, a data type, and >> a value. In languages like C the address and type are attached to the >> name while

Re: module confusion

2007-10-05 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch wrote: > To me a `variable` is made of a name, a memory address, a data type, and > a value. In languages like C the address and type are attached to the > name while in Python both are attached to the value. How does C++ with RTTI fit int

Re: WebBased Vector 2D Graphics

2007-10-05 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > On Oct 5, 11:43 am, Bjoern Schliessmann > The above approaches allow you to directly print to the web page. > > Would this mean I wouldn't be able to have any fancy graphics > outputed such as the rectangles I mentioned before with different > filled in colours? No, it

Re: Test doubles (stubs and mocks) for unit testing (was: unit testing)

2007-10-05 Thread 7stud
On Oct 5, 4:51 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: unit testing

2007-10-05 Thread Paul Rubin
Ben Finney <[EMAIL PROTECTED]> writes: > Or even better: > > def test_raises_good_exception(): > try: > thingy() Well if we're grading on style, maybe you really want to name the function 'test_thingy' instead of 'test_raises_good_exception'. -- http://mail.python.org/mai

pypar error

2007-10-05 Thread smalltalk
I want to install pypar,but it always show following errors: D:\pypar_1.9.3>python setup.py build -c mingw32 running build running build_py running build_ext building 'pypar.mpiext' extension D:\MinGWStudio\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I $MPICH_DIR\SDK.gcc \include -ID:\Python25\i

Re: Python + Shoutpy + Twisted Locks

2007-10-05 Thread Gabriel Genellina
En Fri, 05 Oct 2007 04:55:55 -0300, exhuma.twn <[EMAIL PROTECTED]> escribi�: > [...] What I found > is that "libshout" is blocking, which should be fine as the whole > thing runs in it's separate thread. But the application hangs > nevertheless while streaming. This effectively blocks out the othe

Re: unit testing

2007-10-05 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > Paul Rubin writes: > > > Giampaolo Rodolà <[EMAIL PROTECTED]> writes: > > > What's the equivalent of unittest's "assertRaises"? > > > > def test_raises(): > > try: > >thingy() > >assert 42 == 43 > > Clearer

Need a minimal, easily-modifiable HTTP proxy

2007-10-05 Thread __BMR__
I'm looking for a simple HTTP proxy that I can modify to fix the "brokenness" of a website that I use often. One aspect of the "brokenness" is that if I visit the site from two different tabs in my browser, what I do in one tab will interfere with what happens in the other. There are a few othe

Re: unit testing

2007-10-05 Thread Ben Finney
Paul Rubin writes: > Giampaolo Rodolà <[EMAIL PROTECTED]> writes: > > def test_answer(): > > assert 42 == 43 > > > > What's the equivalent of unittest's "assertRaises"? > > def test_raises(): > try: >thingy() >assert 42 == 43 Clearer would be:

Re: anyone know howto IRC to freenode over port 80?

2007-10-05 Thread Gabriel Genellina
En Fri, 05 Oct 2007 20:18:30 -0300, gavino <[EMAIL PROTECTED]> escribi�: > anyone? http://ircatwork.com/ -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Terry Reedy
"Steve Holden" <[EMAIL PROTECTED]> wrote in message 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/200

embedding python..

2007-10-05 Thread [EMAIL PROTECTED]
I compiled the c program that is supposed to allow you to call a procedure from the command line promt.. (it is from the embeding example).. I am a little confused as to what all I am supposed to distribute to make it work.. Do I just need the python .dll for the version I compiled or is it

Re: howto kill a windows process by name ?

2007-10-05 Thread stef mientki
Adam Pletcher wrote: > Take a look at "killProcName.py", in the win32 extension package. > > - Adam > > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> > Behalf > >> Of stef mientki >> Sent: Friday, October 05, 2007 4:40 PM >> To: python-list@p

Re: TwistedMatrix missing OpenSSL?

2007-10-05 Thread Heikki Toivonen
>> Lamonte Harris wrote: >>> Where can I get it? Anyone got any idea? Btw, M2Crypto and TLS Lite can also provide SSL for applications using Twisted, by wrapping Twisted'd ProtocolWrapper and doing SSL in memory. Here's the code for M2Crypto for example: http://viewcvs.osafoundation.org/m2crypt

anyone know howto IRC to freenode over port 80?

2007-10-05 Thread gavino
anyone? -- http://mail.python.org/mailman/listinfo/python-list

Re: TwistedMatrix missing OpenSSL?

2007-10-05 Thread Heikki Toivonen
Mike C. Fletcher wrote: > Lamonte Harris wrote: >> Where can I get it? Anyone got any idea? > http://www.voidspace.org.uk/python/modules.shtml#pycrypto Last I checked Twisted actually required pyOpenSSL (maybe pyOpenSSL-extended would also work but I haven't checked). http://pyopenssl.sourceforg

Test doubles (stubs and mocks) for unit testing (was: unit testing)

2007-10-05 Thread Ben Finney
7stud <[EMAIL PROTECTED]> writes: > What are some strategies for unit testing a function that obtains > user input? This is just one example of "how do I unit test a code unit that interacts with something complex outside itself?" You want to test *only* the code unit under test, not the external

Re: unit testing

2007-10-05 Thread Eduardo O. Padoan
> What's the equivalent of unittest's "assertRaises"? > In certain situations it is also useful to test wether an exception > (along its type) is raised or not. > Does py.test support such thing? import py.test py.test.raises(NameError, "blablabla") -- http://www.advogato.org/person/eopadoan/ B

RE: howto kill a windows process by name ?

2007-10-05 Thread Adam Pletcher
Take a look at "killProcName.py", in the win32 extension package. - Adam > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of stef mientki > Sent: Friday, October 05, 2007 4:40 PM > To: python-list@python.org > Subject: howto kill a windows process by

Re: unit testing

2007-10-05 Thread Paul Rubin
Giampaolo Rodolà <[EMAIL PROTECTED]> writes: > def test_answer(): > assert 42 == 43 > > What's the equivalent of unittest's "assertRaises"? def test_raises(): try: thingy() assert 42 == 43 except GoodException: pass -- http://mail.python.org/mailman/listinfo/pyth

csv module and Unicode

2007-10-05 Thread Robert Dailey
Hi, According to the Python 2.5 documentation, Unicode is not supported through the CSV module. Is there some third-party CSV module I can use that has Unicode support? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Tool69
Thanks for it, what tools did you use to build the mag : Scribus ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Program with wx in Linux and Windows

2007-10-05 Thread brad
Grant Edwards wrote: > I've been using wxPython for cross platofrm stuff on Linux and > Windows for 5+ years now for at least a dozen programs. I never > had any problems like the one you describe (though "appears > disordered" isn't much of a problem description). I write/test > on Linux, and th

Re: unit testing

2007-10-05 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : (snip) > > 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

howto kill a windows process by name ?

2007-10-05 Thread stef mientki
hello, is there a library to kill a windows process by name ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Bruno Desthuilliers
Wayne Brehaut a écrit : > On Thu, 04 Oct 2007 04:52:13 +0200, Bruno Desthuilliers > <[EMAIL PROTECTED]> wrote: > > >>Wayne Brehaut a écrit : >> >>>On Thu, 04 Oct 2007 04:12:04 +0200, Bruno Desthuilliers >>><[EMAIL PROTECTED]> wrote: >>> >>> >>> J. Clifford Dyer a écrit : >> >>(snip) >> >W

Re: Boolean parser..

2007-10-05 Thread Bruno Desthuilliers
Paul McGuire a écrit : (snip) May I suggest a couple cleanifications for our newbie friends around ? > from searchparser import SearchQueryParser > > products = [ "grape juice", "grape jelly", "orange juice", "orange > jujubees", > "strawberry jam", "prune juice", "prune butter", "orange >

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Wayne Brehaut
On Thu, 04 Oct 2007 04:52:13 +0200, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: >Wayne Brehaut a écrit : >> On Thu, 04 Oct 2007 04:12:04 +0200, Bruno Desthuilliers >> <[EMAIL PROTECTED]> wrote: >> >> >>>J. Clifford Dyer a écrit : >(snip) Well, it's also unpythonic to start numbering a seq

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Bruno Desthuilliers
Wayne Brehaut a écrit : > On Thu, 04 Oct 2007 04:12:04 +0200, Bruno Desthuilliers > <[EMAIL PROTECTED]> wrote: > > >>J. Clifford Dyer a écrit : (snip) >>>Well, it's also unpythonic to start numbering a sequence at 1, but >>>it's clearly the right thing to do in this case. >> >>As far as I'm conce

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Wayne Brehaut
On Thu, 04 Oct 2007 04:12:04 +0200, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: >J. Clifford Dyer a écrit : >> 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: >>> >

Re: Python "implements " equivalent?

2007-10-05 Thread Bruno Desthuilliers
Lawrence D'Oliveiro a écrit : > In message <[EMAIL PROTECTED]>, Wojciech > Gryc wrote: > > >>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

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread John Masters
On 04:12 Thu 04 Oct , Bruno Desthuilliers wrote: > J. Clifford Dyer a écrit : > > 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

Re: migrating to packages

2007-10-05 Thread Bruno Desthuilliers
Gerardo Herzig a écrit : > 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

Re: unit testing

2007-10-05 Thread Giampaolo Rodolà
On 3 Ott, 14:37, 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, unit

Re: Python Magazine: Issue 1 Free!

2007-10-05 Thread Bruno Desthuilliers
J. Clifford Dyer a écrit : > 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.

Re: PYTHONPATH, opensuse10.2, gtk not working

2007-10-05 Thread Silfheed
On Oct 5, 1:04 pm, Silfheed <[EMAIL PROTECTED]> wrote: > On Oct 4, 8:31 pm, Silfheed <[EMAIL PROTECTED]> wrote: > > > > > On Oct 4, 7:39 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > > > > Silfheed wrote: > > > > Heyas > > > > > So I'm trying to do two things, install a little gnome taskbar applet

Re: unit testing

2007-10-05 Thread Paul Rubin
7stud <[EMAIL PROTECTED]> writes: > What are some strategies for unit testing a function that obtains user > input? For example: http://en.wikipedia.org/wiki/Expect -- http://mail.python.org/mailman/listinfo/python-list

Re: Starting a thread before wxPython bootup ... interesting.

2007-10-05 Thread Diez B. Roggisch
> > The real goal is to start the gui in a different thread, and have the > main thread regain control. That seems like a feasible thing to be > able to do, though I have been unsuccessful ... if anyone would like > to suggest something without being covertly insulting, I'm all ears. AFAIK some t

Re: PYTHONPATH, opensuse10.2, gtk not working

2007-10-05 Thread Silfheed
On Oct 4, 8:31 pm, Silfheed <[EMAIL PROTECTED]> wrote: > On Oct 4, 7:39 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > > > > > Silfheed wrote: > > > Heyas > > > > So I'm trying to do two things, install a little gnome taskbar applet > > > (timer-applet) that was written in python and experiment with

Re: Howto Launch a windows application ?

2007-10-05 Thread stef mientki
Nicholas Bastin wrote: > On 10/3/07, stef mientki <[EMAIL PROTECTED]> wrote: > >> hello, >> >> I'm trying to launch a windows application, >> but as many others on this list, I've some trouble. >> I read some other threads about this topic, >> but sorry, I still don't understand all this (never

Re: A question about subprocess

2007-10-05 Thread JD
Thanks very much for all the answers. JD On Oct 3, 6:24 pm, Dan Stromberg <[EMAIL PROTECTED]> wrote: > You don't necessarily need thesubprocessmodule to do this, though you > could use it. > > I've done this sort of thing in the past with fork and exec. > > To serialize the jobs on the machines,

Re: TwistedMatrix missing OpenSSL?

2007-10-05 Thread Mike C. Fletcher
Lamonte Harris wrote: > Where can I get it? Anyone got any idea? http://www.voidspace.org.uk/python/modules.shtml#pycrypto Might help. Mike > > Where do I get it? I'm currently running python 2.5 > > On 10/4/07, *Lamonte Harris* <[EMAIL PROTECTED] > > wrote: -- __

Re: Starting a thread before wxPython bootup ... interesting.

2007-10-05 Thread Chris Mellon
On 10/5/07, Shafik <[EMAIL PROTECTED]> wrote: > My apologies for not supplying more info, I am at work and I am > technically not allowed to surf the web for anything. > > I am using Python 2.5.1, the latest wx version (2.8.xx, I dont recall > exactly). This is running under windows XP under the l

Re: novice list

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

Re: novice list

2007-10-05 Thread [EMAIL PROTECTED]
On Oct 5, 10:42 am, [EMAIL PROTECTED] wrote: > 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

Re: Starting a thread before wxPython bootup ... interesting.

2007-10-05 Thread Shafik
My apologies for not supplying more info, I am at work and I am technically not allowed to surf the web for anything. I am using Python 2.5.1, the latest wx version (2.8.xx, I dont recall exactly). This is running under windows XP under the latest version of cygwin (that could be the source of th

Re: TwistedMatrix missing OpenSSL?

2007-10-05 Thread Lamonte Harris
Where can I get it? Anyone got any idea? On 10/4/07, Lamonte Harris <[EMAIL PROTECTED]> wrote: > > Where do I get it? I'm currently running python 2.5 > -- http://mail.python.org/mailman/listinfo/python-list

Re: unit testing

2007-10-05 Thread 7stud
What are some strategies for unit testing a function that obtains user input? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

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

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: 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: 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

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: 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: 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: 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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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 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: 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 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

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

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

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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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'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: 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: 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: 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: 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

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

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: 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

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

  1   2   >