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

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

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

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

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: [email protected] > Subject: howto kill a windows process by

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

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

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

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

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

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

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

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

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

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

<    1   2