tutorials on xslt

2005-12-28 Thread Iyer, Prasad C
Hi, Is there any tutorial available for python-xslt processing. It would be really helpful regards prasad chandrasekaran This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addre

Re: Number set type

2005-12-28 Thread Justin Azoff
Justin Azoff wrote: > Yes.. if they are sorted, something like this should work: Oops, that was almost right, but it would skip some ranges. This should always work: ... while 1: try : if a.intersects(b): ret.append(a.intersection(b))

Re: zip unzip?

2005-12-28 Thread Kevin Yuan
:)He/She certainly knows. Just reminds us of zip! :);):)2005/12/29, Fredrik Lundh <[EMAIL PROTECTED]>: KraftDiner wrote:> I have two lists...>> a=[1,2,3]> b=[4,5,6]>> n=0> for i in a:>print i, b[n]>n=n+1>> how can i have two iterators on my for loop? > rather than have to use the counter n?

Re: ANN: (Different) Try Python Beta

2005-12-28 Thread Mike Meyer
"Devan L" <[EMAIL PROTECTED]> writes: > I've spent a while putting together a partially working Try Python > which handles class and function definitions. It also (used to) work > with imports, but my hacked version of jelly doesn't work with it > anymore, so only import this works as far as I know

Re: some suggestions about GUI toolkits?

2005-12-28 Thread Bill Maxwell
On 28 Dec 2005 05:51:50 -0800, "Luis M. González" <[EMAIL PROTECTED]> wrote: >This question comes up in this mailing list every two or three days... >I suggest taking some time to read previous threads (use Google Groups >for en easier experience) and you'll find thousands of opinions and >suggest

Re: zip unzip?

2005-12-28 Thread Fredrik Lundh
KraftDiner wrote: > I have two lists... > > a=[1,2,3] > b=[4,5,6] > > n=0 > for i in a: >print i, b[n] >n=n+1 > > how can i have two iterators on my for loop? > rather than have to use the counter n? > like: > for i,j in a,b: >print i, j > > Do you know what I mean? given your subject

Re: zip unzip?

2005-12-28 Thread ZeD
Ciao, KraftDiner! Che stavi dicendo? > I have two lists... > > a=[1,2,3] > b=[4,5,6] > > n=0 > for i in a: >print i, b[n] >n=n+1 > > how can i have two iterators on my for loop? for i,j in zip(a,b): print i,j -- Quante sono le persone che sanno leggere il codice esadecim

zip unzip?

2005-12-28 Thread KraftDiner
I have two lists... a=[1,2,3] b=[4,5,6] n=0 for i in a: print i, b[n] n=n+1 how can i have two iterators on my for loop? rather than have to use the counter n? like: for i,j in a,b: print i, j Do you know what I mean? -- http://mail.python.org/mailman/listinfo/python-list

Re: using NamedTemporaryFile on windows

2005-12-28 Thread Peter Hansen
Lee Harr wrote: > Is there any other reason to use a named tempfile other than > to be able to open it again? I am trying to understand this > section of the documentation regarding NamedTemporaryFile: > > """ > Whether the name can be used to open the file a second time, while the named > tempor

Re: urllib http status codes

2005-12-28 Thread Alvin A. Delagon
Thanks! Will try httplib! ^_^ -- http://mail.python.org/mailman/listinfo/python-list

Re: recursive function return value problems

2005-12-28 Thread bonono
[EMAIL PROTECTED] wrote: > hi, i have the following recursive function (simplified to demonstrate > the problem): > > >>> def reTest(bool): > ... result = [] > ... if not bool: > ... reTest(True) > ... else: > ... print "YAHHH" > ... result = ["should be the onl

Re: Windows and python execution

2005-12-28 Thread Roger Upole
The PATHEXT allows you to execute the script without typing the .py extension. Roger "BartlebyScrivener" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Some of the confusion probably comes from which installation people > use. I used the latest ActiveState distribution of Pyth

Re: Is there any detailed debug tutorial for Pythonwin?

2005-12-28 Thread Roger Upole
Python Programming on Win32 has a lot of info in chapter 4. Roger "linda.s" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Is there any detailed debug tutorial for Pythonwin? == Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News== http://www.new

Re: run line or selection

2005-12-28 Thread Roger Upole
You can add your own entries under the Tools menu fairly easily. Go to View->Options->Tools Menu and enter the command name and code to be executed. hth Roger "linda.s" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] is there any tool like "run line or selection" in Python

Re: Number set type

2005-12-28 Thread Justin Azoff
Heiko Wundram wrote: > Union of two IP4Ranges is simply normalizing a concatenated list of both > IP4Range ranges. Normalizing takes O(log n)+O(n) = O(n) steps, where n is > the number of ranges in the combined IP4Range. I see now :-) If the ranges are sorted, I bet you could just iterate through

Re: Newbie needs help extracting data from XML

2005-12-28 Thread Paul McGuire
"Rodney" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Im a Python newbie and am trying to get the data out of a series of XML > files. So for example the xml is: > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:soapenc="http://schemas.xmlsoap.org/soap/e

Re: Python as a Server vs Running Under Apache

2005-12-28 Thread [EMAIL PROTECTED]
Matt Helm wrote: > I am starting the design phase of a large project (ERP) where the > backend will mostly be Python (or Ruby) providing web services. > > In this type of usage, is there any benenfit to running under Apache > as opposed to a pure Python solution using Medusa, TwistedMatrix, or > th

Re: ANN: (Different) Try Python Beta

2005-12-28 Thread Devan L
Steve Holden wrote: > Devan L wrote: [what I said] > At first I thought 'the cgitb TypeError message from "import os" is > impressively drastic :-)'. Then I realised in a later session that > "import os" only gave an error message after I'd run "import this". > Thereafter, unfortunately, almost an

Re: urllib http status codes

2005-12-28 Thread Kent Johnson
Alvin A. Delagon wrote: > Greetings! > > Is there any way I can obtain the HTTP status codes when using the > urllib module? As of now I can only think of doing a regex on the > result of the read(). Thanks in advance! ^_^ If you connect with httplib you get the status code directly from the

Re: ANN: (Different) Try Python Beta

2005-12-28 Thread Steve Holden
Devan L wrote: > I've spent a while putting together a partially working Try Python > which handles class and function definitions. It also (used to) work > with imports, but my hacked version of jelly doesn't work with it > anymore, so only import this works as far as I know. It won't play nice >

Re: recursive function return value problems

2005-12-28 Thread Steve Holden
[EMAIL PROTECTED] wrote: > hi, i have the following recursive function (simplified to demonstrate > the problem): > > def reTest(bool): > > ... result = [] > ... if not bool: > ... reTest(True) > ... else: > ... print "YAHHH" > ... result = ["should be the

using NamedTemporaryFile on windows

2005-12-28 Thread Lee Harr
Is there any other reason to use a named tempfile other than to be able to open it again? I am trying to understand this section of the documentation regarding NamedTemporaryFile: """ Whether the name can be used to open the file a second time, while the named temporary file is still open, var

Re: getting the status codes from the ftplib module

2005-12-28 Thread Alvin A. Delagon
I'm very sorry, newbie here! @_@ I'm still getting the hang of Thunderbird. -- http://mail.python.org/mailman/listinfo/python-list

Re: csv.Sniffer: wrong detection of the end of line delimiter

2005-12-28 Thread Steve Holden
Laurent Laporte wrote: > hello, > > I'm using cvs standard module under Python 2.3 / 2.4 to read a CSV > file. The file is opened in binary mode, so I keep the end of line > terminator. > It's not advisable to open a file like a CSV, intended for use as text, in binary mode. > It appears that t

urllib http status codes

2005-12-28 Thread Alvin A. Delagon
Greetings! Is there any way I can obtain the HTTP status codes when using the urllib module? As of now I can only think of doing a regex on the result of the read(). Thanks in advance! ^_^ -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows and python execution

2005-12-28 Thread BartlebyScrivener
Some of the confusion probably comes from which installation people use. I used the latest ActiveState distribution of Python. As one of the other posters observed it automatically adds the .py extension in the PATHEXT system variable. At least I didn't put it there. Then, as we've discussed, as lo

Re: Number set type

2005-12-28 Thread Heiko Wundram
Correction: Heiko Wundram wrote: > You make assumptions that my usage simply doesn't fill. An IP4Range must be able to > consist of more than a single block of IP addresses (like 192.168.0.0/24 > _and_ 192.168.10.0/24), that's why it's an IP4Range and not a IP4Network > (which I implement as an

Re: Number set type

2005-12-28 Thread Heiko Wundram
Justin Azoff wrote: > You could use IPy... > http://svn.23.nu/svn/repos/IPy/trunk/IPy.py is one location for it... I know about IPy... But: it simply doesn't implement all I need it for. > I wonder where you get O(n) and O(n^2) from... CIDR blocks are all > sequential.. All you need to store is

Re: Number set type

2005-12-28 Thread Justin Azoff
You could use IPy... http://svn.23.nu/svn/repos/IPy/trunk/IPy.py is one location for it... I wonder where you get O(n) and O(n^2) from... CIDR blocks are all sequential.. All you need to store is the starting and ending address or length. Then any set operation only has to deal with 4 numbers, an

Python as a Server vs Running Under Apache

2005-12-28 Thread Matt Helm
I am starting the design phase of a large project (ERP) where the backend will mostly be Python (or Ruby) providing web services. In this type of usage, is there any benenfit to running under Apache as opposed to a pure Python solution using Medusa, TwistedMatrix, or the like? Thanks, Matt --

ANN: (Different) Try Python Beta

2005-12-28 Thread Devan L
I've spent a while putting together a partially working Try Python which handles class and function definitions. It also (used to) work with imports, but my hacked version of jelly doesn't work with it anymore, so only import this works as far as I know. It won't play nice if you store the id of an

UpDate For SCSIPython Storage device test library

2005-12-28 Thread sam
I have updated my page at http://starship.python.net/crew/samschul/ These tools allow for the user to issue low level SCSI commands via the windows SCSIPASSTHROUGH interface layer. These routines will work from IDLE, Pythonwin,and Python.exe. The changes include the following: 1) Deleted documenta

Number set type

2005-12-28 Thread Heiko Wundram
Hi all! I'm wondering whether there is some form of number set type implemented in pure Python. I'm currently in the process of implementing one myself (for an IPv4 address range type), and if there's some form of reference implementation I'd love to see it. I've not found a reasonably complete im

Re: some suggestions about GUI toolkits?

2005-12-28 Thread Chris Gonnerman
iclinux wrote: > I have to build a GUI applicaiton that could run on different OS such > as windows and *nix, which GUI toolkit is better? > I've had good luck with both Tkinter and PyGTK. I don't really like the look and feel of Tkinter, though it has gotten better over time; but PyGTK invol

Re: recursive function return value problems

2005-12-28 Thread Mike Meyer
[EMAIL PROTECTED] writes: > hi, i have the following recursive function (simplified to demonstrate > the problem): def reTest(bool): > ... result = [] > ... if not bool: > ... reTest(True) > ... else: > ... print "YAHHH" > ... result = ["should be the only t

Re: recursive function return value problems

2005-12-28 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > ... if not bool: > ... reTest(True) > I don't understand why results are returned twice? is there something > special i missed about recursive functions? Yes, although it is not clear *what* it is that you are missing. Here is my guess: you fail to see that

Re: Providing 'default' value with raw_input()?

2005-12-28 Thread Ernst Noch
Alex Martelli wrote: > In some situations it may be impractical to rely on the editor closing; > for example, the user's favorite editor might be a multitab one that's > big, heavy, and slow to start, so that the user doesn't close the whole > process but rather just a specific tab. In such cases

Re: recursive function return value problems

2005-12-28 Thread Steven D'Aprano
On Wed, 28 Dec 2005 16:05:30 -0800, randomtalk wrote: > the final returned value is: [] > > the two values printed is (note i only have one print statement > printing "print result",. however, in the actualality, it's printed > twice): > printing result: > ['should be the only thing returned'] >

Re: recursive function return value problems

2005-12-28 Thread randomtalk
ah, result = reTest(True) works, thanks alot :D -- http://mail.python.org/mailman/listinfo/python-list

Re: recursive function return value problems

2005-12-28 Thread Steven D'Aprano
On Wed, 28 Dec 2005 15:25:30 -0800, randomtalk wrote: > hi, i have the following recursive function (simplified to demonstrate > the problem): > def reTest(bool): > ... result = [] > ... if not bool: > ... reTest(True) > ... else: > ... print "YAHHH" > ...

Re: recursive function return value problems

2005-12-28 Thread casevh
You have two calls to reTest and so reTest needs to return twice. One return is from the reTest(True) call back to reTest(False). The second return is from reTest(False) back to the prompt. What were you expecting to happen? -- http://mail.python.org/mailman/listinfo/python-list

Re: recursive function return value problems

2005-12-28 Thread Dan Sommers
On 28 Dec 2005 15:25:30 -0800, [EMAIL PROTECTED] wrote: > hi, i have the following recursive function (simplified to demonstrate > the problem): def reTest(bool): > ... result = [] > ... if not bool: > ... reTest(True) Don't do that. Do this instead: result =

Re: recursive function return value problems

2005-12-28 Thread randomtalk
the final returned value is: [] the two values printed is (note i only have one print statement printing "print result",. however, in the actualality, it's printed twice): printing result: ['should be the only thing returned'] printing result: [] therefore, sadly, i don't thinkg you've understand

Re: python speed

2005-12-28 Thread Andreas Kostyrka
Am Mittwoch, den 30.11.2005, 08:15 -0700 schrieb Steven Bethard: > David Rasmussen wrote: > > Harald Armin Massa wrote: > > > >> Dr. Armin Rigo has some mathematical proof, that High Level Languages > >> like esp. Python are able to be faster than low level code like > >> Fortran, C or assembly. >

Newbie needs help extracting data from XML

2005-12-28 Thread Rodney
Hi, Im a Python newbie and am trying to get the data out of a series of XML files. So for example the xml is: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="http://www.ExchangeNetwork.net/schema/v1.0/node.wsdl"; xmlns:types="

Re: recursive function return value problems

2005-12-28 Thread Brian L. Troutwine
[EMAIL PROTECTED] wrote: def reTest(bool): > > ... result = [] > ... if not bool: > ... reTest(True) > ... else: > ... print "YAHHH" > ... result = ["should be the only thing returned"] > ... print "printing result: " > ... print result > ... return re

Re: Is this a refrence issue?

2005-12-28 Thread Steven D'Aprano
On Wed, 28 Dec 2005 14:40:45 -0800, Carl J. Van Arsdall wrote: > KraftDiner wrote: >> I understand that everything in python is a refrence > >> I have a small problem.. >> >> I have a list and want to make a copy of it and add an element to the >> end of the new list, >> but keep the original

recursive function return value problems

2005-12-28 Thread randomtalk
hi, i have the following recursive function (simplified to demonstrate the problem): >>> def reTest(bool): ... result = [] ... if not bool: ... reTest(True) ... else: ... print "YAHHH" ... result = ["should be the only thing returned"] ... print

Re: html resize pics

2005-12-28 Thread rbt
Peter Hansen wrote: > rbt wrote: >> I use Python to generate html pages. I link to several large images at >> times. I'd like to display a thumbnail image that when clicked will go >> to the original, large jpg for a more detailed view. > > I use PIL with the thumbnail() function for that... de

Re: Is this a refrence issue?

2005-12-28 Thread James Tanis
On 12/28/05, Carl J. Van Arsdall <[EMAIL PROTECTED]> wrote: > KraftDiner wrote: > > I understand that everything in python is a refrence > > > > I have a small problem.. > > > > I have a list and want to make a copy of it and add an element to the > > end of the new list, > > but keep the origi

Re: Is this a refrence issue?

2005-12-28 Thread Mike Meyer
"KraftDiner" <[EMAIL PROTECTED]> writes: > I understand that everything in python is a refrence Correct. > I have a small problem.. Maybenot so small. > I have a list and want to make a copy of it and add an element to the > end of the new list, > but keep the original intact > > so: >

Re: Is this a refrence issue?

2005-12-28 Thread Jean-Paul Calderone
On Wed, 28 Dec 2005 14:40:45 -0800, "Carl J. Van Arsdall" <[EMAIL PROTECTED]> wrote: >KraftDiner wrote: >> I understand that everything in python is a refrence >> >> I have a small problem.. >> >> I have a list and want to make a copy of it and add an element to the >> end of the new list, >>

Re: Is this a refrence issue?

2005-12-28 Thread Carl J. Van Arsdall
KraftDiner wrote: > I understand that everything in python is a refrence > > I have a small problem.. > > I have a list and want to make a copy of it and add an element to the > end of the new list, > but keep the original intact > > so: > tmp = myList > tmp = myList is a shallow copy

Is this a refrence issue?

2005-12-28 Thread KraftDiner
I understand that everything in python is a refrence I have a small problem.. I have a list and want to make a copy of it and add an element to the end of the new list, but keep the original intact so: tmp = myList tmp.append(something) print tmp, myList should be different... -- htt

Re: Simple question on Parameters...

2005-12-28 Thread Will McGugan
KraftDiner wrote: > I guess its all good... > I just am not crazy about using fillColor[0] id rather use fillColor.r > So is that a structure I need to define or a class... > I'm kind of new to python what would that class or structure look like? > and then do the default parameters still work? T

Re: Simple question on Parameters...

2005-12-28 Thread KraftDiner
NICE! :) -- http://mail.python.org/mailman/listinfo/python-list

Re: python coding contest

2005-12-28 Thread Simon Hengel
Hello, > After all, I'd really love to set up another contest with > different measures and criteria. for future events i will take a close look at other possibilities for doing a ranking. At the moment the 22c3 and the contest is eating up all my time. Pleas appreciate that i may not keep up wit

Re: Simple question on Parameters...

2005-12-28 Thread Hans Nowak
KraftDiner wrote: > I guess its all good... > I just am not crazy about using fillColor[0] id rather use fillColor.r You don't have to use fillColor[0], you can use tuple unpacking to name the elements of the tuple. E.g. def renderABezierPath(self, path, closePath=True, outlineColor=(1.0, 1.0

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread skip
John> Guido may or may not realise it, but he seems to have been John> managing people (in some sense of 'managing', anyway) quite John> successfully over the past decade or so. Sssh! Don't tell him! Hopefully the PSU won't find out and -- http://mail.python.org/mailman/listinfo/py

Re: Simple question on Parameters...

2005-12-28 Thread KraftDiner
I guess its all good... I just am not crazy about using fillColor[0] id rather use fillColor.r So is that a structure I need to define or a class... I'm kind of new to python what would that class or structure look like? and then do the default parameters still work? -- http://mail.python.org/ma

Re: viewcvs 1.0 dev

2005-12-28 Thread Martin v. Löwis
Robin Becker wrote: > OK I'm obviously being driven mad by successful attempts to stop me > using the project pages :( and the downloads can be removed. But anyhow > if I'm cvs'ing I might as well use the latest from tigris. I can sympathize with the viewcvs people wanting to "hide" the CVS; if th

Re: any Adobe Reader like apps written in python, for examination?

2005-12-28 Thread John J. Lee
Alex Gittens <[EMAIL PROTECTED]> writes: > Yeah, pygame is not what I'm looking for. I'm looking for a good > example of cross platform non-trivial page-layout and font handling. > The project I'm working on-- a typographically correct interface to a > CAS-- requires pixel-perfect font handling. >

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread John J. Lee
"Harald Armin Massa" <[EMAIL PROTECTED]> writes: [...] > Allow me to quote Greg Stein: > "Ha! Guido would quit in a heartbeat if you tried to make him manage > people. That just isn't where he's at. He's absolutely brilliant and > loves to write excellent code. Great. We're gonna let him do just t

Re: Beautiful Python

2005-12-28 Thread John J. Lee
[EMAIL PROTECTED] writes: [...] > > Sometimes putting import statements at the beginning is not feasible > > (i.e. only when some condition has been met), as importing has some > > impact on program execution (importing executes code in imported > > module). This does not resemble Java imports (I d

Re: python coding contest

2005-12-28 Thread Simon Hengel
> the dream of winning the contest seems to be over. Sorry for that, I'm considering doing a ranking on the nicest cheats too. Have fun, Simon Hengel -- python coding contest - http://www.pycontest.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Cannot build Python 2.4.2 for Cygwin

2005-12-28 Thread Jason Tishler
Micheal, On Wed, Dec 28, 2005 at 11:02:55AM -0800, Micheal LeVine wrote: > I have not succeeded to build Python 2.4.2 from the source distn for > Cygwin on XP (cygwin1.dll version 1005.7.0.0, Cygwin POSIX Emulation > DLL). The above is a very old version of Cygwin: http://www.cygwin.com/ml/c

ANN: OSCON 2006 Call for Proposals

2005-12-28 Thread Kevin Altis
OSCON 2006: Opening Innovation http://conferences.oreillynet.com/os2006/ Save the date for the 8th annual O'Reilly Open Source Convention, happening July 24-28, 2006 at the Oregon Convention Center in beautiful Portland, Oregon. Call For Participation -- Submit a proposal-f

Re: Simple question on Parameters...

2005-12-28 Thread Will McGugan
KraftDiner wrote: > I have defined a method as follows: > > def renderABezierPath(self, path, closePath=True, r=1.0, g=1.0, b=1.0, > a=1.0, fr=0.0, fg=0.0, fb=0.0, fa=.25): > > Now wouldn't it be simpler if it was: > > def renderABezierPath(self, path, closePath=True, outlineColor, > fillColor):

Re: deal or no deal

2005-12-28 Thread Duncan Smith
Chip Turner wrote: > On 2005-12-26 15:05:21 -0500, [EMAIL PROTECTED] said: > >> I believe not; the Monty Hall problem is biased by the fact that the >> presenter knows where the prize is, and eliminates one box accordingly. >> Where boxes are eliminated at random, it's impossible for any given >>

Re: PyHtmlGUI Project is looking for developers

2005-12-28 Thread John J. Lee
[EMAIL PROTECTED] writes: > the PyHtmlGUI Project (http://www.sourceforge.net/projects/pyhtmlgui) > is looking for developers that want to join. > > The aim of the project is to create a web application framework. The > API of PyHtmlGUI wants to be close to Trolltechs famous Qt API but > incooper

Re: python coding contest

2005-12-28 Thread Claudio Grondi
Simon Hengel wrote: > Hello, > we are hosting a python coding contest an we even managed to provide a > price for the winner... > > http://pycontest.net/ > > The contest is coincidentally held during the 22c3 and we will be > present there. > > https://events.ccc.de/congress/2005/wiki/Python_cod

Re: Simple question on Parameters...

2005-12-28 Thread Lawrence Oluyede
Il 2005-12-28, KraftDiner <[EMAIL PROTECTED]> ha scritto: > I have defined a method as follows: > > def renderABezierPath(self, path, closePath=True, r=1.0, g=1.0, b=1.0, > a=1.0, fr=0.0, fg=0.0, fb=0.0, fa=.25): > > Now wouldn't it be simpler if it was: > > def renderABezierPath(self, path, closeP

Re: Simple question on Parameters...

2005-12-28 Thread Jean-Paul Calderone
On 28 Dec 2005 12:37:32 -0800, KraftDiner <[EMAIL PROTECTED]> wrote: >I have defined a method as follows: > >def renderABezierPath(self, path, closePath=True, r=1.0, g=1.0, b=1.0, >a=1.0, fr=0.0, fg=0.0, fb=0.0, fa=.25): > >Now wouldn't it be simpler if it was: > >def renderABezierPath(self, path,

Simple question on Parameters...

2005-12-28 Thread KraftDiner
I have defined a method as follows: def renderABezierPath(self, path, closePath=True, r=1.0, g=1.0, b=1.0, a=1.0, fr=0.0, fg=0.0, fb=0.0, fa=.25): Now wouldn't it be simpler if it was: def renderABezierPath(self, path, closePath=True, outlineColor, fillColor): But how do you set default vaules

How to handle HTTP redirect using SOAPpy

2005-12-28 Thread Sameer Deshpande
Hi, I am using python SOAPpy module to call a web service. Call to web service gets executed successfully. I am facing a problem if the call to WS results into redirect. I get "HTTPError: " If I enable the debug info, I do get the new redirected url. How do I divert my WS request to new url? Her

Cannot build Python 2.4.2 for Cygwin

2005-12-28 Thread Micheal . LeVine
I have not succeeded to build Python 2.4.2 from the source distn for Cygwin on XP (cygwin1.dll version 1005.7.0.0, Cygwin POSIX Emulation DLL). I have applied the "bandaid solution" in README, ./configure --with-threads=no and edited the resulting Modules/Setup file for SSL. The make process al

Re: How do I redirect output to a file and to the console screen?

2005-12-28 Thread Martin Miller
The basic way to redirect output is to reassign a value to sys.stdout -- something along these lines: # redirect stdout to a disk file import sys saveout = sys.stdout outfile = open('output.txt', 'w') sys.stdout = outfile # output stuff print 'hello world' # resto

Re: pyfltk2 tutorial

2005-12-28 Thread Peter Hansen
Siraj Kutlusan wrote: > I want to use pyfltk2 because of its simplicity but there seem to be no > tutorials done for it. Could anyone give me a link to one please? Judging by the comments on the home page, it's probably premature for someone who needs a tutorial to be trying to use it. It clearl

Re: viewcvs 1.0 dev

2005-12-28 Thread Robin Becker
Martin v. Löwis wrote: > Robin Becker wrote: > >>yes I ahd it working and updated my freebsd and then couldn't locate the >>latest version. If the svn head stuff from tigris works that'll do. On >>another point I thought the whole point of sourceforge was that the >>files wouldn't get removed/dele

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread skip
Hans> Robert Kern wrote: >> PyPy will not bring about the Singularity. Hans> But if it did, imagine how cool that would look on the developers Hans> resumes... :-) +1 QOTW Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get started in GUI Programming?

2005-12-28 Thread Kay Schluehr
D H wrote: > Kay Schluehr wrote: > > [EMAIL PROTECTED] wrote: > > > >>I am trying to learn GUI programming in Python, but have to confess I > >>am finding it difficult. > > > > > > Don't do it if you can prevent it. > > What kind of helpful advice is that? > > > Conclusion: if you are already famil

Re: Draw over video

2005-12-28 Thread Guyon Morée
hi, i used pygame to display video and draw over it. check out: http://gumuz.looze.net/wordpress/index.php/archives/2005/06/06/python-webcam-fun-motion-detection/ cheers, http://gumuz.looze.net -- http://mail.python.org/mailman/listinfo/python-list

Draw over video

2005-12-28 Thread Zarathustra
Hi, I'm an italian student in telecommunication engineering.For an examen i will realize an object tracking.I 'm going to do it in java with the JMF, but it's impossible to draw over a video.Now, I have been tought to make it in Python, with PyGtk or Pyqt and Pymedia.It's possible to draw over a v

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread Hans Nowak
Robert Kern wrote: > PyPy will not bring about the Singularity. But if it did, imagine how cool that would look on the developers resumes... :-) -- Hans Nowak http://zephyrfalcon.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread Robert Kern
Anton Vredegoor wrote: > Robert Kern wrote: > >>I have a friend who works at Google. He has no backstabbing history at all. >>Stop >>insulting my friends. > > Your friends work for people who would never hire me. This is not a crime. > My resume sucks, > but I'm not a bad person or a mediocre

How do I redirect output to a file and to the console screen?

2005-12-28 Thread 28tommy
Hi there, I'm doing some TELNET and FTP sessions with my scripts. I need to redirect all the output (and not just what I print) to an output file, but still be able to see the session in process on the console. The Console screen is of less importance, so I could give it up, but what I'm looking

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread Fredrik Lundh
Mike Meyer wrote: > We aren't any closer to having a "real" AI than we were in the 60s. note that the name of the the poster who started this thread only needs minimal adjustments to become an anagram for "alien lizard AI", which might indicate that the government has access to some kind of AI,

Re: viewcvs 1.0 dev

2005-12-28 Thread Martin v. Löwis
Robin Becker wrote: > yes I ahd it working and updated my freebsd and then couldn't locate the > latest version. If the svn head stuff from tigris works that'll do. On > another point I thought the whole point of sourceforge was that the > files wouldn't get removed/deleted. Does whining and beggin

Late binding and late execution (was: Beautiful Python)

2005-12-28 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On Tue, 27 Dec 2005 21:35:46 -0600, [EMAIL PROTECTED] declaimed the >following in comp.lang.python: > >> Wow ?! I've only started looking at python but that sounds like very >> dangerous programming ! Can you give an

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread Mike Meyer
"Anton Vredegoor" <[EMAIL PROTECTED]> writes: > Ok. That's a bit harder. I suppose we agree that if we have an > intelligent program that is more intelligent than a human and have this > program design an even more intelligent program than things start to > accelerate pretty fast? There's your fun

Re: viewcvs 1.0 dev

2005-12-28 Thread Robin Becker
Martin v. Löwis wrote: > Robin Becker wrote: > >>Does anyone know the status of the svn handling version of viewCVS. > > > It works: > > http://svn.python.org/view/ > > Regards, > Martin yes I ahd it working and updated my freebsd and then couldn't locate the latest version. If the svn head

Re: python bug in this list implementation?

2005-12-28 Thread Roel Schroeven
Steven D'Aprano wrote: > On Wed, 28 Dec 2005 15:07:52 +0100, Christoph Zwerschke wrote: >>Chris is probably working on Windows where it is handy to enter paths as >>raw strings because of the backslashes. Unusual however, and problematic >>if you want to use the program on other platforms, is ope

Re: viewcvs 1.0 dev

2005-12-28 Thread Martin v. Löwis
Robin Becker wrote: > Does anyone know the status of the svn handling version of viewCVS. It works: http://svn.python.org/view/ Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: PyCon TX 2006: Hotel problems

2005-12-28 Thread Aahz
In article <[EMAIL PROTECTED]>, Thomas Wouters <[EMAIL PROTECTED]> wrote: >On Wed, 28 Dec 2005 10:06:43 -0500, David Goodger wrote: >> >> Don't forget to book your hotel room, too. PyCon TX 2006 is being >> held at a Dallas/Addison hotel, and we have negotiated a special low >> rate: > >FWIW, for

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread Luis M. González
Anton Vredegoor wrote: > Google's not a nice company (yeah, I know I'm posting from a google > account). If you look at their job requirements it's clear they will > only hire people with long backstabbing histories. There seems to be no > room left for world improving undamaged souls in that comp

Re: python coding contest

2005-12-28 Thread Tim Peters
[Bengt Richter] > ... > [23:28] C:\pywk\clp\seven\pycontest_01>wc -lc seven_seg.py > 2136 seven_seg.py > > 2 lines, 136 chars including unix-style lineseps (is that cheating on > windows?) Na. Most native Windows apps (including native Windows Python) don't care whether \n or

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-28 Thread Anton Vredegoor
Robert Kern wrote: > I have a friend who works at Google. He has no backstabbing history at all. > Stop > insulting my friends. Your friends work for people who would never hire me. My resume sucks, but I'm not a bad person or a mediocre programmer. They sold out. > For Software Engineer: > > "

Re: predicting function calls?

2005-12-28 Thread OKB (not okblacke)
Roy Smith wrote: > print handle.someAttribute > print handle.someOperation (arg1, arg2) > > I'm using __getattr__() to process both of these constructs, and > herein lies the rub; I need to do different things depending on > whether the name is an attribute or an operation. I can ask the DB > fo

Re: PyCon TX 2006: Early-bird registration ends Dec. 31!

2005-12-28 Thread Thomas Wouters
On Wed, 28 Dec 2005 10:06:43 -0500, David Goodger wrote: > Don't forget to book your hotel room, too. PyCon TX 2006 is being > held at a Dallas/Addison hotel, and we have negotiated a special low > rate: FWIW, for some days, the special-rate 1-2 person rooms are out of stock. Feb 22nd, 26th and

Re: csv module

2005-12-28 Thread skip
Laurent> If I change: Laurent> freq = line.strip().count(char) Laurent> by: Laurent> freq = line.count(char) Laurent> It works fine. Laurent> Do you have a workaround for that? Nope. I just checked in precisely your fix to the Python repository. Skip -- http://mai

  1   2   >