Re: python coding contest

2005-12-28 Thread Bengt Richter
On 27 Dec 2005 09:24:44 GMT, Duncan Booth <[EMAIL PROTECTED]> wrote: >Scott David Daniels wrote: > >>> I definitively need a new algorythm. >>> >> And I am sadly stuck at 169. Not even spitting distance from 149 (which >> sounds like a non-cheat version). > >Throw it away and start again with a

Re: python coding contest

2005-12-28 Thread Roman Susi
Tim Hochberg wrote: > py pan wrote: > >>When you guys say 127~150 characters, did you guys mean >>usinging test_vectors.py in some way? Or there's no import at all? >> > > > No import at all. The shortest solution reported so far is 131 > characters. Getting down to 127 is just a guess as to wh

Re: sorting with expensive compares?

2005-12-28 Thread Stuart D. Gathman
On Sat, 24 Dec 2005 15:47:17 +1100, Steven D'Aprano wrote: > On Fri, 23 Dec 2005 17:10:22 +, Dan Stromberg wrote: > >> I'm treating each file as a potentially very large string, and "sorting >> the strings". > > Which is a very strange thing to do, but I'll assume you have a good > reason for

Re: Timing out arbitrary functions

2005-12-28 Thread antti kervinen
AOP would be a quite elegant way set timeouts for functions, in my opinion. The nice thing in it is that, in principle, you can write a single timeout advice code and then wrap it over any function you want to timeout. I wrote timeout_advice.py to demonstrate this a couple of years ago (see http:/

Re: python coding contest

2005-12-28 Thread Duncan Booth
Christian Tismer wrote: > And then help me to setup a different contest about content -- chris > Count me in. -- http://mail.python.org/mailman/listinfo/python-list

Re: Patch : doct.merge

2005-12-28 Thread Nicolas Lehuen
Here's method 3 : # Python 2.3 (no generator expression) a.update([(k,v) for k,v in b.iteritems() if k not in a]) # Python 2.4 (with generator expression) a.update((k,v) for k,v in b.iteritems() if k not in a) It's a bit cleaner but still less efficient than using what's already in the PyDict_Me

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

2005-12-28 Thread Martin P. Hellwig
Ilias Lazaridis wrote: > Martin P. Hellwig wrote: >> Ilias Lazaridis wrote: >> >> So I guess you volunteer http://www.python.org/psf/volunteer.html ? > > I volunteer and contribute already (with a general validity and python > specific analysis) > > A mediator should communicate the findings an

getting the status codes from the ftplib module

2005-12-28 Thread Alvin A. Delagon
I'm writing a simple python code that will upload files onto a ftp server. Everything's fine and working great except that the script I wrote don't know is an upload is successful or not. Is there a way to obtain the ftp status codes with this module? Thanks in advance! -- http://mail.python.or

Re: getting the status codes from the ftplib module

2005-12-28 Thread Fredrik Lundh
Alvin A. Delagon wrote: > I'm writing a simple python code that will upload files onto a ftp > server. Everything's fine and working great except that the script I > wrote don't know is an upload is successful or not. Is there a way to > obtain the ftp status codes with this module? Thanks in adva

Re: python coding contest

2005-12-28 Thread Shane Hathaway
I just found a 125 character solution. It's actually faster and more readable than the 133 character solution (though it's still obscure.) It depends on Python 2.4. If Python 2.3 compatibility is required for the contest, I have to add 4 characters. Shane [EMAIL PROTECTED] pycontest_01]$ wc

Re: getting the status codes from the ftplib module

2005-12-28 Thread Alvin A. Delagon
[EMAIL PROTECTED] wrote: Send Python-list mailing list submissions to python-list@python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/python-list or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You c

Re: help with lists and writing to file in correct order

2005-12-28 Thread Steven D'Aprano
On Tue, 27 Dec 2005 20:11:59 -0800, homepricemaps wrote: > hey steven-your examlpe was very helpful. is there a paragraph symbolg > missing in > > fp.write("Food = %s, store = %s, price = %s\n" % triplet No, but there is a closing bracket missing: fp.write("Food = %s, store = %s, price = %s\n"

Re: python bug in this list implementation?

2005-12-28 Thread Steven D'Aprano
On Wed, 28 Dec 2005 07:29:41 +, Chris Smith wrote: > Hi, > > I've been working on some multi-dimensional lists and I've encountered some > very strange behaviour in what appears to be simple code, I'm using python > 2.4.2 and IDLE. If anyone can tell me why it's behaving so strange please > l

Re: Python obfuscation

2005-12-28 Thread Peter Maas
Chris Mellon schrieb: >>There is a company who is developing and marketing a single application. >>It is a simulation software for industrial processes which embodies an >>enormous amount of knowledge accumulated by the hard work of many >>individuals since about twenty years, algorithmic, process,

csv module

2005-12-28 Thread Laurent Laporte
hello, I'm using cvs standard module under Python 2.3 / 2.4 to write a file delimited with tabs. I use the "excel-tab" dialect to do that. To read my CSV file, I choose to 'sniff' with a sample data in order to get the dialect. The problem I meet is that I get a wrong dialect: the sniffer return

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

2005-12-28 Thread Laurent Laporte
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 appears that the csv.Sniffer force the line terminator to be '\r\n'. It's fine under Windows but wrong under Linux or Macintosh. More about

Re: csv module

2005-12-28 Thread Fredrik Lundh
Laurent Laporte wrote: > I'm using cvs standard module under Python 2.3 / 2.4 to write a file > delimited with tabs. I use the "excel-tab" dialect to do that. > > To read my CSV file, I choose to 'sniff' with a sample data in order to > get the dialect. > The problem I meet is that I get a wrong d

viewcvs 1.0 dev

2005-12-28 Thread Robin Becker
Does anyone know the status of the svn handling version of viewCVS. It seems to have disappeared from sourceforge and no mention is made of it on the new tigris site. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

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

2005-12-28 Thread Ilias Lazaridis
Martin P. Hellwig wrote: > Ilias Lazaridis wrote: >> Martin P. Hellwig wrote: >>> Ilias Lazaridis wrote: >>> >>> So I guess you volunteer http://www.python.org/psf/volunteer.html ? >> >> I volunteer and contribute already (with a general validity and python >> specific analysis) >> >> A mediator

Re: MySQLdb Python API: Unable to connect

2005-12-28 Thread Mondal
Hi all, Frederik is right. The hyphen in the port number was inserted when i copied and pasted the error message. i used the port number 3306 (three three zero six). I am sorry about this, but i forgot to mention that my os is Windows XP. MySQL is installed on my machine itself. Its using port 33

Re: Microsoft's JavaScript doc's newfangled problem

2005-12-28 Thread axel
In comp.lang.perl.misc Xah Lee <[EMAIL PROTECTED]> wrote: > If (1), then it would be a fucking incompetence of inordinate order. If Have you ever thought that your cross-postings are "incompetence of inordinate order"? Of course not since you are a troll. Axel -- http://mail.python.org/mailman

Re: predicting function calls?

2005-12-28 Thread Steven D'Aprano
On Tue, 27 Dec 2005 23:53:18 -0500, Roy Smith wrote: > I think I know the answer to this, but I'll ask it just in case > there's something I hadn't considered... > > I'm working on a python interface to a OODB. Communication with the > DB is over a TCP connection, using a model vaguely based on

Re: python coding contest

2005-12-28 Thread Tim Hochberg
Shane Hathaway wrote: > I just found a 125 character solution. It's actually faster and more > readable than the 133 character solution (though it's still obscure.) > > It depends on Python 2.4. If Python 2.3 compatibility is required for > the contest, I have to add 4 characters. I asked, 2.

Problem installing libxml2dom on windows

2005-12-28 Thread ankit
I had installed libxml2 for python (libxml2-python-2.6.22.win32-py2.4) on WINDOWS. For having dom support I am installing libxml2dom (0.3). My python version on win is 2.4 but when I give run the install as: python setup.py install I get following error: Traceback (most recent call last):

Re: viewcvs 1.0 dev

2005-12-28 Thread Uwe Hoffmann
Robin Becker schrieb: > Does anyone know the status of the svn handling version of viewCVS. http://viewvc.tigris.org/index.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem installing libxml2dom on windows

2005-12-28 Thread Fredrik Lundh
"ankit" wrote: > From where I will get this package for WINDOWS? Plz, tell me the site. > I tried googling but it didnt give me any links for download. first hit for "libxml2 python 2.4": http://users.skynet.be/sbi/libxml-python/ (can also be found two clicks away from the "download" link on th

ANN: xmldict 1.1

2005-12-28 Thread Ivan Voras
As it seems that few people are actually using this, I've made a small update to xmldict library, available here: http://ivoras.sharanet.org/xmldict.py.gz Some border-cases involving empty tags and atributes are resolved, and examples are updated. WHAT IS IT -- It's a very small (8KB,

Re: fetching images from web?

2005-12-28 Thread annaiak
[EMAIL PROTECTED] wrote: > hi, i want to automate some tasks of gathering photos from web, i tried > urllib/urllib2, both ended up without much success (saved gifs with > only a border, nothing else).. > > the code i used was: > > data = urllib2.urlopen("http://aspn.activestate.com/ASPN

Re: I want to exclude an expression of a sequence of charecters with regex

2005-12-28 Thread 28tommy
Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: csv module

2005-12-28 Thread skip
Laurent> To read my CSV file, I choose to 'sniff' with a sample data in Laurent> order to get the dialect. The problem I meet is that I get a Laurent> wrong dialect: the sniffer return an empty string delimiter. It Laurent> is probably a bug in _guess_delimiter() method. Laur

Re: csv module

2005-12-28 Thread skip
me> Using a file with the following contents: me> >>> open("tabber.csv", "rb").read() me> '1\t2\tabc\n3\t4\tdef\n' me> I get: me> >>> sniffer = csv.Sniffer() me> >>> d = sniffer.sniff(open("tabber.csv", "rb").read()) me> >>> d.delimiter me>

Re: viewcvs 1.0 dev

2005-12-28 Thread Robin Becker
Uwe Hoffmann wrote: > Robin Becker schrieb: > >>Does anyone know the status of the svn handling version of viewCVS. > > > http://viewvc.tigris.org/index.html unfortunately there's no mention of svn handling there and the files only show 0.9[.x] versions. -- Robin Becker -- http://mail.pyt

some suggestions about GUI toolkits?

2005-12-28 Thread iclinux
I have to build a GUI applicaiton that could run on different OS such as windows and *nix, which GUI toolkit is better? Best Regards. -- http://mail.python.org/mailman/listinfo/python-list

Re: csv module

2005-12-28 Thread Laurent Laporte
Sorry, Here is my example: Python 2.3.1 (#1, Sep 29 2003, 15:42:58) [GCC 2.96 2731 (Red Hat Linux 7.1 2.96-98)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import csv >>> t_sniffer = csv.Sniffer() >>> t_data = "aaa\tbbb\r\n\r\nAAA\tBBB\r\n" >>> t_diale

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

2005-12-28 Thread Martin P. Hellwig
Ilias Lazaridis wrote: >> The only thing that holds "you" theoretically back is "acknowledged >> authority by the participating group _and_ yourself" and of course the >> resource for "restricted" information. > > what do you mean by "resource for "restricted" information"? > Well, I mean that

Dr. Dobb's Python-URL! - weekly Python news and links (Dec 27)

2005-12-28 Thread Cameron Laird
QOTW: "My wild-ass guess is that, same as most other Open Source communities, we average about one asshole per member." - Tim Peters http://groups.google.com/group/comp.lang.python/msg/02236cc5ab54fd90?hl=en "[T]he only fundamentally new concept that has been added since Python 1.5.2 is gener

Re: Problem installing libxml2dom on windows

2005-12-28 Thread ankit
I already downloaded the latest package(libxml2-python-2.6.22.win32-py2.4.exe ) for libxml2 and installed it. I want a package for "libxml2mod" , because that only package is not getting find. The link you had specifed I already been there. Only libxml2 for python with win32 are available there.

Re: Problem installing libxml2dom on windows

2005-12-28 Thread ankit
I also tried installing some different package for dom libxml_domlib(1.2a) on windows with python 2.4 and libxml2(2.6.22) but in this case it gives some differnet error while build only, The error is as -- running build running build_ext building 'libxml_domlib' extension error: Python was built wi

Re: csv module

2005-12-28 Thread Laurent Laporte
In fact, there is another bug: In my CVS file, all the records ends with a trailing tab '\t' except the header because the last field is always empty. For example, I get : >>> import csv >>> t_sniffer = csv.Sniffer() >>> t_data = "aaa\tbbb\r\nAAA\t\r\nBBB\t\r\n" >>> t_dialect = t_sniffer.sniff(t_

Re: some suggestions about GUI toolkits?

2005-12-28 Thread Luis M. González
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 suggestions. My advice: check PythonCard http://pythoncard.sourceforge.net/ Good luck!

Re: Problem installing libxml2dom on windows

2005-12-28 Thread ankit
I also tried installing some different package for dom libxml_domlib(1.2a) on windows with python 2.4 and libxml2(2.6.22) but in this case it gives some differnet error while build only, The error is as -- running build running build_ext building 'libxml_domlib' extension error: Python was built wi

Re: some suggestions about GUI toolkits?

2005-12-28 Thread bytecolor
I recently wrote a small application using wxPython (my first with this GUI). I've used it on Windows XP, Debian GNU/Linux (sarge) and OS X (Panther). The application only uses a few widgets but it wasnt difficult at all to get up and running. -- bytecolor -- http://mail.python.org/mailman/list

Re: python coding contest

2005-12-28 Thread Marius Gedminas
Jean-Paul Calderone wrote: > On Tue, 27 Dec 2005 14:02:57 -0700, Tim Hochberg <[EMAIL PROTECTED]> wrote: > >Shane Hathaway wrote: > >> Paul McGuire wrote: > >> > >> > >> Also, here's another cheat version. (No, 7seg.com does not exist.) > >> > >>import urllib2 > >>def seven_seg(x):return u

libxml_domlib installation in linux : problems

2005-12-28 Thread ankit
am installing libxml_domlib(1.2a) on linux but when I build it it searches for includes of libxml2 in folder /usr/local/include/libxml2 but libxml2 have includes under /usr/include/libxml2. For this reason it gives me following error: -- gcc -DNDEBUG -O2 -g -pipe -march=i386 -mcpu=i686 -D_GNU_SO

Re: help with lists and writing to file in correct order

2005-12-28 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > sorry guys, here is the code > > for incident in bs('a', {'class' : 'price'}): > price = "" > for oText in incident.fetchText( oRE): > price += oText.strip() + "','" > > for incident in bs('div', {'class' : 'store'}): > st

Re: python bug in this list implementation?

2005-12-28 Thread Christoph Zwerschke
Steven D'Aprano wrote: > On Wed, 28 Dec 2005 07:29:41 +, Chris Smith wrote: >> >>def createGrid(): >>f = open(r"...sudoku.txt", "rb") ## see attached for the file. > > Why do you need a raw string? It isn't wrong to do one, but it is rather > unusual and unnecessary. Chris is probably wo

Re: predicting function calls?

2005-12-28 Thread Roy Smith
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > How do you decide whether handle.foo should be treated as an attribute or > an operation? That's exactly what I'm trying to figure out. In the legacy system I'm trying to emulate, the interpreter knows the from syntax (i.e. whether handle.foo is foll

Re: predicting function calls?

2005-12-28 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: > Fnorb (a pure-Python CORBA orb) dealt with this by not allowing > attributes per se. Instead, it provided _get_AttributeName and > _set_AttributeName as appropriate for each attribute in the IDL. Doing > this means that *ever

Re: python coding contest

2005-12-28 Thread Tim Hochberg
Marius Gedminas wrote: > Jean-Paul Calderone wrote: > >>On Tue, 27 Dec 2005 14:02:57 -0700, Tim Hochberg <[EMAIL PROTECTED]> wrote: >> >>>Shane Hathaway wrote: >>> Paul McGuire wrote: Also, here's another cheat version. (No, 7seg.com does not exist.) import urllib2 >

pyfltk2 tutorial

2005-12-28 Thread Siraj Kutlusan
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? -- http://mail.python.org/mailman/listinfo/python-list

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

2005-12-28 Thread David Goodger
Early bird registration for PyCon TX 2006 ends on December 31st, so there are only a few days LEFT. To register, please visit: http://us.pycon.org/TX2006/Registration You can still register after Dec. 31st, but the cost will go up by US$65 (US$25 for students). This year PyCon will featu

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

2005-12-28 Thread Anton Vredegoor
Michael wrote: > Ilias Lazaridis wrote: > > [ panic, fear, worry ] > > What's wrong with just saying "Congratulations!" ? First thing I thought was > "ooh, maybe Guido will be able to work on P3K there" - after all that would > benefit Google *and* everyone else :-) Google's not a nice company (

Re: python bug in this list implementation?

2005-12-28 Thread Steven D'Aprano
On Wed, 28 Dec 2005 15:07:52 +0100, Christoph Zwerschke wrote: > Steven D'Aprano wrote: >> On Wed, 28 Dec 2005 07:29:41 +, Chris Smith wrote: > >> >>>def createGrid(): >>>f = open(r"...sudoku.txt", "rb") ## see attached for the file. >> >> Why do you need a raw string? It isn't wrong to

Re: html resize pics

2005-12-28 Thread Peter Hansen
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... depending on what sort of web

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

2005-12-28 Thread Robert Kern
Anton Vredegoor wrote: > Michael wrote: > >>Ilias Lazaridis wrote: >> >>>[ panic, fear, worry ] >> >>What's wrong with just saying "Congratulations!" ? First thing I thought was >>"ooh, maybe Guido will be able to work on P3K there" - after all that would >>benefit Google *and* everyone else :-) >

Re: "Humane" programmer interfaces

2005-12-28 Thread kpd
list[-1] maps very well to my mental concept of list. To me 'List' brings to mind a bunch of things in a line. It's intuitive to count forward or backward. Ruby's 'last' doesn't map as well for me because I don't think of the list as having an attribute of 'last.' Java just annoys me because

Re: viewcvs 1.0 dev

2005-12-28 Thread Uwe Hoffmann
Robin Becker schrieb: > Uwe Hoffmann wrote: > >> Robin Becker schrieb: >> > unfortunately there's no mention of svn handling there and the files > only show 0.9[.x] versions. > at least you can get the sources via subversion and have a look at the INSTALL file (e.g. http://viewvc.tigris.org/sou

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

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

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

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,

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

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

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

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

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

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

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

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,

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

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

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

  1   2   >