Re: oval

2005-12-05 Thread Peter Otten
Ben Bush wrote: > is there any good material to read if I want to improve my > understanding of working on interactive ways of dealing with shapes > on the TKinter? See http://wiki.python.org/moin/TkInter for a list of references. For me John Shipman's Tkinter Reference is normally sufficient.

Re: Tabs bad (Was: ANN: Dao Language v.0.9.6-beta is release!)

2005-12-05 Thread Sybren Stuvel
Steven D'Aprano enlightened us with: > It seems to me that "one tab per indent level" is far more logical > than "some arbitrary number, N, of spaces, often a multiple of > eight, or four, or two, per indent level, and hope that the number > of spaces is a multiple of that arbitrary N". But maybe t

Re: ADD HTML to the code

2005-12-05 Thread Fredrik Lundh
"Little" <[EMAIL PROTECTED]> wrote: > Could someone tell me how to add some HTML tags to this program. I want > to be able to change the background color, add some headers, and put a > table below the map that will be displayed. Could someone please tell > me how to add this to the current program

Re: regexp non-greedy matching bug?

2005-12-05 Thread Fredrik Lundh
Aahz wrote: > While you're technically correct, I've been bitten too many times by > forgetting whether to use match() or search(). I've fixed that problem > by choosing to always use search() and combine with ^ as appropriate. that's a bit suboptimal, though, at least for cases where failed mat

Re: Help needed: file writing problem with subprocess

2005-12-05 Thread Fredrik Lundh
Pekka Niiranen wrote: > I am running Python script in W2K or in WinXP. > The script is started from DOS prompt and writes text file to disk > with codecs.open() in UTF8. > > The problem is: When script writes the file and tries to read it > with by calling itself thru subprocess() the created file

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-05 Thread Mohammad Jeffry
another vote for Gentoo. It's my production/main OS now. On 4 Dec 2005 23:21:55 -0800, malv <[EMAIL PROTECTED]> wrote: In theory, this would do. I have tried this several times in the pastand found it very impractical to have to live with two Python versionson the same system, given that Python, li

Re: Detect character encoding

2005-12-05 Thread Michal
Thanks everybody for helpfull advices. Michal -- http://mail.python.org/mailman/listinfo/python-list

Re: ADD HTML to the code

2005-12-05 Thread Steve Holden
Fredrik Lundh wrote: > "Little" <[EMAIL PROTECTED]> wrote: > > >>Could someone tell me how to add some HTML tags to this program. I want >>to be able to change the background color, add some headers, and put a >>table below the map that will be displayed. Could someone please tell >>me how to add

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-05 Thread Fredrik Lundh
"BartlebyScrivener" wrote: > Since it's a python board I'm most interested in the python > implications. I thought you could use, say, a stable Debian > distribution, and still download the newest version of Python > to run on it. works fine. however, since applications shipped with the OS may d

Re: change color

2005-12-05 Thread Peter Otten
Ben Bush wrote: > I tested the following code and wanted to make oval 2 become red after > I hit the enter key but though the code did not report error, it did > not change. > from Tkinter import * > root=Tk() > canvas=Canvas(root,width=100,height=100) > canvas.pack() > canvas.create_oval(10,10,20

Re: Putting in an html table

2005-12-05 Thread bruno at modulix
Little wrote: > Could someone start me on putting in a table into this code, and some > HTML tags. I would to make the table below the map and have a header at > the top. Thanks for the help. > > """ Publisher example """ > > def query(req, building=""): > # NOTE: best way to understand this

Re: Installing Eric?

2005-12-05 Thread malv
Kenneth McDonald wrote: > I'm wondering if anyone has experience/tips to offer on installing > Eric on OS X and XP. Installation on both seems to require a number > of steps, some of them seeming potentially fragile, and I'm wondering > if I'm looking at a job of perhaps hours (days?), or if everyo

Re: ADD HTML to the code

2005-12-05 Thread bruno at modulix
Little wrote: > Could someone tell me how to add some HTML tags to this program. I want > to be able to change the background color, add some headers, and put a > table below the map that will be displayed. Could someone please tell > me how to add this to the current program. Thanks in advance. >

Re: Efficient lookup in list of dictionaries

2005-12-05 Thread bruno at modulix
David Pratt wrote: (snip) > Can someone advise a more efficient lookup when using lists of > dictionaries. Many thanks. > > > TEST_CONSTANTS = [ > {'color':'red', 'shape':'octagon'}, > {'color':'yellow', 'shape':'triangle'}, > {'color':'green', 'shape':'circle'}] COLOR_INDEX = dict([

Re: what's wrong with "lambda x : print x/60,x%60"

2005-12-05 Thread bruno at modulix
Gary Herron wrote: > Mohammad Jeffry wrote: > >> Dear All, >> >> Can't a lambda uses the input parameter more then once in the lambda >> body? >> eg: >> lambda x : print x/60,x%60 >> >> I tried with def and it works but got syntax error with lambda. Below >> is an interactive sample: > > > Lambd

Re: Death to tuples!

2005-12-05 Thread Antoon Pardon
Op 2005-12-02, Bengt Richter schreef <[EMAIL PROTECTED]>: > On 2 Dec 2005 13:05:43 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: > >>On 2005-12-02, Bengt Richter <[EMAIL PROTECTED]> wrote: >>> On 1 Dec 2005 09:24:30 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: >>> On 2005-11-30, Duncan Booth <

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread JohnBMudd
> It seems to me that the tabs-vs-spaces thing is really about who controls the indentation: with spaces, it's the writer, and with tabs, it's the reader. Agreed. > if [scope by indent] really is scaring off potential converts, then a dumbed-down dialect of python which uses curly brackets and

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread anthon
D H wrote: > > How is that a problem that some editors use 8 columns for tabs and > others use less? So what? > A bigger problem I see is people using only 2 or 3 spaces for indenting. > That makes large amounts of code much less readable. And of course it > is a problem if you mix tabs and s

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Ben Sizer
Tom Anderson wrote: > Which is not to say that it's a bad idea - if it really is scaring off > potential converts, then a dumbed-down dialect of python which uses curly > brackets and semicolons might be a useful evangelical tool. If we're going to be creating evangelical tools, I think a decent d

Is there an equivalent to Java Webstart in Python?

2005-12-05 Thread Nic Bar
Hi everybody, I want to develop a WEB based Python user appication that nees to be downloaded and started grom a web server using a browser. Does anybody know if there is an equivalent of Java WebStart for python applications? Nic -- http://mail.python.org/mailman/listinfo/python-list

Re: libxml2 and XPath - Iterate through repeating elements?

2005-12-05 Thread Jean-Roch SOTTY
Le Vendredi 2 Décembre 2005 18:31, [EMAIL PROTECTED] a écrit : > I'm trying to iterate through repeating elements to extract data using > libxml2 but I'm having zero luck - any help would be appreciated. > > My XML source is similar to the following - I'm trying to extract the > line number and pro

Re: Is there an equivalent to Java Webstart in Python?

2005-12-05 Thread James
Use Jython or IronPython. (Almost) One click web deployment is only available for Java and .NET platforms at the moment. -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficient lookup in list of dictionaries

2005-12-05 Thread David Pratt
This is a lot less clumsy and can easily be used in a class which is very nice! Many thanks bruno and Rob E for this good advice. Regards, David On Monday, December 5, 2005, at 05:31 AM, bruno at modulix wrote: > David Pratt wrote: > (snip) >> Can someone advise a more efficient lookup when usi

Re: SOLVED: Help needed: file writing problem with subprocess

2005-12-05 Thread pekka niiranen
Fredrik Lundh wrote: > Pekka Niiranen wrote: > > >>I am running Python script in W2K or in WinXP. >>The script is started from DOS prompt and writes text file to disk >>with codecs.open() in UTF8. >> >>The problem is: When script writes the file and tries to read it >>with by calling itself thru

Re: Is there an equivalent to Java Webstart in Python?

2005-12-05 Thread Nic Bar
The problem with Jython is that I can only live inside the aplet virtual machine, I need a full features application with access to the local computer resources. Regarding IronPyhton, there is no released version yet. I am looking for something that can be used now and plataform independent (assumi

Re: Creating referenceable objects from XML

2005-12-05 Thread Diez B. Roggisch
Michael Williams wrote: > I'm looking for a quality Python XML implementation. All of the DOM > and SAX implementations I've come across so far are rather > convoluted. Welcome to the wonderful world of XML. > I need it to somehow convert my XML to intuitively referenceable > object. Any ideas?

Re: what's wrong with "lambda x : print x/60,x%60"

2005-12-05 Thread Bengt Richter
On Mon, 05 Dec 2005 10:38:25 +0100, bruno at modulix <[EMAIL PROTECTED]> wrote: >Gary Herron wrote: >> Mohammad Jeffry wrote: >> >>> Dear All, >>> >>> Can't a lambda uses the input parameter more then once in the lambda >>> body? >>> eg: >>> lambda x : print x/60,x%60 >>> >>> I tried with def and

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-05 Thread BartlebyScrivener
Thank you, malv & Frederik, for the warnings. I am learning Python on windows with the hope of moving to Linux. I would have just assumed the new Python would be backward compatible and didn't realize how dependent the os was on the old version.. At least now I am aware of the issues. bs -- http

akismet 0.1.2, cgiutils 0.3.5, pathutils 0.2.3

2005-12-05 Thread Fuzzyman
Hello All, A new release and two updates. New akismet.py 0.1.2 Python Interface to the Akismet API Version 0.1.2 4th December 2005 http://www.voidspace.org.uk/python/modules.shtml#akismet `Akismet `_ is a web service for recognising spam comments. It pro

Re: Eclipse best/good or bad IDE for Python?

2005-12-05 Thread Fabio Zadrozny
John J. Lee wrote: >Aaron Bingham <[EMAIL PROTECTED]> writes: > > >>[EMAIL PROTECTED] wrote: >> >> >[...ex-emacs user explains switch to Eclipse...] > > >>The killer PyDev feature for me is pylint integration. Being informed >>immediately when you mistype a variable name is a big timesav

Re: Is there an equivalent to Java Webstart in Python?

2005-12-05 Thread Renato
What use is Java WebStart, exactly? Just make a .exe installer with everything (for windows), using for example py2exe and InnoSetup, and a distutils compliant package for the others. -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse best/good or bad IDE for Python?

2005-12-05 Thread malv
As "bicycle repair man integration" keeps popping up as a distinct feature of jave-based PyDev, let it be known that other IDE's also have this. For example, non-java Eric has had " bicycle repair man" integration for a very long time. Personally, in spite of intense programming in python, I've ne

e: Favorite flavor of Linux? (for python or anything else)

2005-12-05 Thread Michael Williams
I'd say Ubuntu.  It has one of the most intuitive package management systems, and manual installation of software seems to work very well.On Dec 5, 2005, at 2:00 AM, [EMAIL PROTECTED] wrote:From: "Mike C. Fletcher" <[EMAIL PROTECTED]> Date: December 5, 2005 12:56:13 AM EST To: python-list@python.or

Double decoding of strings??

2005-12-05 Thread manuzhai
Hi all, I have a bit of a problem. I'm trying to use Python to work with some data which turns out to be garbage. Ultimately, I think the solution will be to .decode('utf-8') a string twice, but Python doesn't like doing this the second time. That could possibly be understandable, but then why doe

Re: Double decoding of strings??

2005-12-05 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Ultimately, I think the solution will be to .decode('utf-8') a string > twice Try >>> "Altru\xc3\x83\xc2\xafsme".decode("utf8").encode("latin1").decode("utf8") u'Altru\xefsme' >>> print _ Altruïsme Peter -- http://mail.python.org/mailman/listinfo/python-list

Capturing output from stderr

2005-12-05 Thread Doru-Catalin Togea
Hi! On solaris, I call a program from python with os.system("some command > outputFile.txt" ) This redirects the output of "some command"'s stdout to "outputFile.txt". However I need to redirect or somehow capture the output from "some command"'s stderr to this file too. How can I do t

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread JohnBMudd
> a decent description or tutorial... is better Sound good but... we're programmers, not documentation specialist or motivational speakers. Why, when I suggest fixing a design defect with code, do so many programmers want to respond with... documentation and arguments instead of code? >From "T

How to ping in Python?

2005-12-05 Thread Nico Grubert
Hi there, I could not find any "ping" Class or Handler in python (2.3.5) to ping a machine. I just need to "ping" a machine to see if its answering. What's the best way to do it? Kind regards, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: Why my modification of source file doesn't take effect whendebugging?

2005-12-05 Thread Christophe
Fredrik Lundh a écrit : > Christophe wrote: > > >>>"import" only reads the file the first time it's called. Every import >>>call after that looks up the module in memory. This is to prevent >>>circular dependencies between modules from creating infinite loops. >>>You need to use the reload() fu

Re: Creating referenceable objects from XML

2005-12-05 Thread Gerard Flanagan
Michael Williams wrote: > Hi All, > > I'm looking for a quality Python XML implementation. All of the DOM > and SAX implementations I've come across so far are rather > convoluted. Are there any quality implementations that will (after > parsing the XML) return an object that is accessible by na

Re: Capturing output from stderr

2005-12-05 Thread Doru-Catalin Togea
On Mon, 5 Dec 2005, Doru-Catalin Togea wrote: Found a solution: os.system("some command 1>out.txt 2>err.txt") > On solaris, I call a program from python with > > os.system("some command > outputFile.txt" ) > > This redirects the output of "some command"'s stdout to "outputFile.txt"

Re: Why my modification of source file doesn't take effectwhendebugging?

2005-12-05 Thread Fredrik Lundh
"Christophe" wrote: > F5 is designed to run the current open file. Sane people won't assume > that pressing twice the F5 key will yield different. Sane people will > assume that when you edit file1.py and press F5, it reparses the file, > but when you edit file2.py and press F5 with file1.py it wo

reddit.com rewritten in Python

2005-12-05 Thread Jay Parlar
reddit.com, which was formerly implemented in LISP (and somewhat famous for that fact) has just *relaunched* and is now written in Python! They haven't given their reasons yet, but I'll certainly be interested to see why. Paul Graham's reaction should also be interesting, he said reddit.com ha

Re: My Python Website

2005-12-05 Thread Gerard Flanagan
Josef Meile wrote: > Hi Tuvas, > > > Just made a simple Python Website, I'm working on expanding it, it's at > > http://www.geocities.com/brp13/Python/index.html . Will have more one > > day... > A couple of suggestions: > > 1) Why don't you just include the source of the python code directly > ins

BayPIGgies: December 8, 7:30pm (IronPort)

2005-12-05 Thread Aahz
The next meeting of BayPIGgies will be Thurs, December 8 at 7:30pm at Ironport. JJ will demonstrate GCipher, a simple application that shows how to combine Glade/PyGTK, the async module, and a plugin architecture. BayPIGgies meetings alternate between IronPort (San Bruno, California) and Google (

Re: How to ping in Python?

2005-12-05 Thread Peter Hansen
Nico Grubert wrote: > I could not find any "ping" Class or Handler in python (2.3.5) to ping a > machine. > I just need to "ping" a machine to see if its answering. What's the best > way to do it? Either use something like os.system() to call the ping executable, or try using Google (e.g. "pyth

Re: python university search

2005-12-05 Thread Paolo Alexis Falcone
On Sun, 04 Dec 2005 17:12:45 -0800, josh wrote: > [pardon me if this is not the appropriate list] > > hello, > > i am interested in doing an undergraduate major in computer science > that mainly focuses on python as a programming language.. > > i am not a very bright student and neither do i ha

Constructing RFC2822 Message

2005-12-05 Thread Narendra
Hi All, This is narendra from india doing my engineering. i need to develop an E-mail client in python,which connects to my MTA on port 25 and sends email from there. I was able to do that but my e-mail is ending in bulk when i'm trying to senf to hotmail/msn. here im giving the code of my prog

Re: reddit.com rewritten in Python

2005-12-05 Thread Peter Hansen
Jay Parlar wrote: > reddit.com, which was formerly implemented in LISP (and somewhat famous > for that fact) has just *relaunched* and is now written in Python! > > They haven't given their reasons yet, but I'll certainly be interested > to see why. On that last issue, the post at http://reddi

Re: Constructing RFC2822 Message

2005-12-05 Thread jepler
On Mon, Dec 05, 2005 at 06:27:44AM -0800, Narendra wrote: > I was able to do that but my e-mail is ending in bulk when i'm trying > to senf to hotmail/msn. Perhaps this is an over-zealous filter on the hotmail/msn side, not a problem with Python. I don't know for sure, but some news stories indic

appending messages in imaplib

2005-12-05 Thread [EMAIL PROTECTED]
So I have the unfortunate task of migrating several hundred users from local mail (mbox and mh) up to an exchange server as part of wearisome SOX compliance nonsense. I thought the best path through this thicket would be to knock up a quick python script using imaplib to replicate folder structure

Re: getting data off a CDrom

2005-12-05 Thread Larry Bates
[EMAIL PROTECTED] wrote: > Hi there, > > I'm trying to load data from 2 different CD drives to compare the data > on them to see if they are identical. I've found the WinCDRom module > online but it doesn't seem to give access to the data at all. The only > thing it seems to do is check if there

Re: Is there an equivalent to Java Webstart in Python?

2005-12-05 Thread Nic Bar
The idea is that I don't want to have the user installing anything in his machine. The only thing he/she may install is the virtual machine. THis way I can modify the application as necessary without the need to redeploy on each and one of the installed machines. Nic On 5 Dec 2005 04:02:45 -080

Re: how to handle two forms in cgi?

2005-12-05 Thread lli
Hi Steve, Thank you for your information. Your idea is helpful for me. By the way, could I use "hiden" to handle this case? Laya -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there an equivalent to Java Webstart in Python?

2005-12-05 Thread David Wahler
Nic Bar wrote: > The problem with Jython is that I can only live inside the aplet > virtual machine, > I need a full features application with access to the local computer > resources. > Regarding IronPyhton, there is no released version yet. > I am looking for something that can be used now and pl

Re: Is there no compression support for large sized strings in Python?

2005-12-05 Thread Christopher Subich
Fredrik Lundh wrote: > Christopher Subich wrote: >> >>I have access to an itanium system with a metric ton of memory. I >>-think- that the Python version is still only a 32-bit python > > > an ILP64 system is a system where int, long, and pointer are all 64 bits, > so a 32-bit python on a 64-bi

Re: Why my modification of source file doesn't take effectwhendebugging?

2005-12-05 Thread Christophe
Fredrik Lundh a écrit : > "Christophe" wrote: > > >>F5 is designed to run the current open file. Sane people won't assume >>that pressing twice the F5 key will yield different. Sane people will >>assume that when you edit file1.py and press F5, it reparses the file, >>but when you edit file2.py a

Re: XML and namespaces

2005-12-05 Thread uche . ogbuji
Alan Kennedy: """ These namespace declaration nodes, i.e. attribute nodes in the xml.dom.XMLNS_NAMESPACE namespace, are a pre-requisite for any namespaced DOM document to be well-formed, and thus naively serializable. The argument could be made that application authors should be protected from the

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Rick Wotnaz
[EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: >> a decent description or tutorial... is better > > Sound good but... we're programmers, not documentation > specialist or motivational speakers. Why, when I suggest fixing > a design defect with code, do so many programmers want to > respon

Re: XML and namespaces

2005-12-05 Thread uche . ogbuji
I wrote: """ The reality is that once the poor user has done: element = document.createElementNS("DAV:", "href") They are following DOM specification that they have created an element in a namespace, and you seem to be arguing that they cannot usefully have completed their work until they also do

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-05 Thread Luis M. Gonzalez
It's not only about having python installed. It's also about the tools that come with the distro. I've played with Ubuntu's live Cd a little bit, and I saw it comes with a lot of python related software, such as Boa Constructor, several ides, editors, etc... I ignore if other distros count with the

Re: distutils problem windows xp python 2.4.2

2005-12-05 Thread [EMAIL PROTECTED]
Hello, It give the same error result: D:\testprogram\distutils problem>setup build running build running build_ext *** Failed: error: The .NET Framework SDK needs to be installed before building extensions for Python. Attempting to patch distutils.msvccompiler and retry: running build running buil

Re: appending messages in imaplib

2005-12-05 Thread Laurent Pointal
[EMAIL PROTECTED] wrote: > So I have the unfortunate task of migrating several hundred users from > local mail (mbox and mh) up to an exchange server as part of wearisome > SOX compliance nonsense. > > I thought the best path through this thicket would be to knock up a > quick python script using

Re: Eclipse best/good or bad IDE for Python?

2005-12-05 Thread Fabio Zadrozny
John J. Lee wrote: >Fabio Zadrozny <[EMAIL PROTECTED]> writes: >[...] > > >>I must also warn you that I'm its current maintainer, and it is *my* >>favorite IDE :-) >> >> >[...] > > >>But in the end, as I said, it is a subjective matter, so, you'll have to >>decide it for yourself. >>

Re: Constructing RFC2822 Message

2005-12-05 Thread Narendra
Thanks jep for the quick response.But when im sending with different program written in java i was able to send into inbox. So i thought problem was with the python code only. Narendra -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating referenceable objects from XML

2005-12-05 Thread Laurent Pointal
Michael Williams wrote: > Hi All, > > I'm looking for a quality Python XML implementation. All of the DOM > and SAX implementations I've come across so far are rather convoluted. > Are there any quality implementations that will (after parsing the XML) > return an object that is accessible by

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-05 Thread malv
Any popular distro would. No one is really superior from this angle. You will always find that you will from time to time have to download software and/or versions that didn't come with your distro. This is mostly no problem, especially not with python related software. -- http://mail.python.org/

Re: Eclipse best/good or bad IDE for Python?

2005-12-05 Thread Fabio Zadrozny
malv wrote: >As "bicycle repair man integration" keeps popping up as a distinct >feature of jave-based PyDev, let it be known that other IDE's also have >this. >For example, non-java Eric has had " bicycle repair man" integration >for a very long time. > >Personally, in spite of intense programmin

Re: python university search

2005-12-05 Thread Rocco Moretti
josh wrote: > > hello, > > i am interested in doing an undergraduate major in computer science > that mainly focuses on python as a programming language.. It's your life, so you can live it as you choose, but I think you're missing the point of an undergraduate education if you focus too much o

hash()

2005-12-05 Thread John Marshall
Hi, For strings of > 1 character, what are the chances that hash(st) and hash(st[::-1]) would return the same value? My goal is to uniquely identify multicharacter strings, all of which begin with "/" and never end with "/". Therefore, st != st[::-1]. Thanks, John -- http://mail.python.org/mail

Re: Bitching about the documentation...

2005-12-05 Thread skip
>> Gee, I wonder if I typed "sort" into the search box on the wiki it >> might turn up something useful? Well, what do you know? >> >> 2 results of about 4571 pages. (0.19 seconds) >> >> 1. HowTo/Sorting >> 2. SortingListsOfDictionaries rurpy> Are we talking abo

Re: Why my modification of source file doesn't take effect when debugging?

2005-12-05 Thread Dave Hansen
On Fri, 02 Dec 2005 18:04:15 +0100 in comp.lang.python, Christophe <[EMAIL PROTECTED]> wrote: >infidel a écrit : >>>I'm using the Windows version of Python and IDLE. When I debug my .py >>>file, my modification to the .py file does not seem to take effect >>>unless I restart IDLE. Saving the file

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Magnus Lycka
[EMAIL PROTECTED] wrote: > Where does that misconception that 2-3 spaces for indenting makes > things less readable come from? There was an article in Comm. of the > ACM on research into readability back in 1984 or so, that indicated 2-4 > spaces has very similar readability and 8 spaces significan

Learning Python...

2005-12-05 Thread Falc
Hi there... I have been looking at learning Python, so far it looks like an absolutely grat language. I am having trouble finding some free resources to learn Python from. I am on windows and the only experience I have with programming is with PHP. I have been trying to look at the free online bo

Re: how to handle two forms in cgi?

2005-12-05 Thread Fuzzyman
[EMAIL PROTECTED] wrote: > Hi Dan, > > Sure. You are right. When I correct this according to your idea, it > works now. Thank you very much. But I have second problem. When users > run second form, other people can see adress in users' browers and know > how to run the second form, so they don't n

Re: newbie - needing direction

2005-12-05 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > Thanks for the advice, > The reason for the choice of my particular test project is that it is > in the direction that I want to go in so choosing some other won't do. > I've looked briefly at PyGame but this means I have to learn a lot > besides what I want to do. > > I

Re: How to ping in Python?

2005-12-05 Thread dudeman
Try the PyNMS libraries: http://freshmeat.net/projects/pynms/ It has a ping module. If all you need is the ping module, maybe you could just look through that code and see if it's relatively simple to impliment yourself. -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse best/good or bad IDE for Python?

2005-12-05 Thread malv
It would not be misplaced in a python forum to draw your attention to Bruce A. Tate's book: "Beyond Java", publ O'Reilly Sep. 2005, ISBN 0-596-10094-9. Bruce explains why: "... Java is abandoning its base, and conditions are ripe for an alternative to emerge". Personally, I have never felt any ne

How to manage event of COM objects...

2005-12-05 Thread Laurent
Hello, I'm currently trying to use event from a win32 application using it's COM interface. To connect to the application I use: class MyApp_InterfaceManager (Thread): ... def run (self): # First we initialize the COM libraries for current thread pythoncom.CoInitialize() #Then we

Re: Why my modification of source file doesn't take effect when debugging?

2005-12-05 Thread Christophe
Dave Hansen a écrit : > On Fri, 02 Dec 2005 18:04:15 +0100 in comp.lang.python, Christophe > <[EMAIL PROTECTED]> wrote: > > >>infidel a écrit : >> I'm using the Windows version of Python and IDLE. When I debug my .py file, my modification to the .py file does not seem to take effect u

Re: Use python to test Java and Windows (dll) applciations

2005-12-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, jb <[EMAIL PROTECTED]> wrote: >Hello everybody: > >I need help, and please let me know if python is the language of choice >to implement following functionalities: > >I am trying to test a Java application and a C++ (win32) application. > >I want to be able to write

Re: Learning Python...

2005-12-05 Thread Klaus Alexander Seistrup
Falc wrote: > So if you have any books you could reccomend me that would rock, I > can't really afford a book so if online that would be excellent. Have you looked into: Cheers, -- Klaus Alexander Seistrup Cop

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread JohnBMudd
> even a single character (like an opening or closing bracket or a semicolon) > is an indication that the design can be improved. Close, there are two principles for good design: Afford proper use and Don't afford improper use. I could argue that not having to type extra characters falls into t

Re: Learning Python...

2005-12-05 Thread Laurent
Falc wrote: > Hi there... > > I have been looking at learning Python, so far it looks like an > absolutely grat language. I am having trouble finding some free > resources to learn Python from. I am on windows and the only experience > I have with programming is with PHP. > > I have been trying t

Re: Installing Eric?

2005-12-05 Thread Scott David Daniels
malv wrote: >... > Install of course Python-2.4.1: > http://python.org/ftp/python/2.4.1/python-2.4.1.msi These days you want 2.4.2. Within a number (2.4.X), the only changes are bugfixes, so go for the largest available. When we go to 2.5, there will be some changes to adapt to, those differences

Re: timeit's environment

2005-12-05 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > Since I've been bitching about documentation in another > thread, I'm curious... Would it be obvious to anyone of > low to intermediate python skills that using global would > not work in this case? Would it be obvious that using an > import is the answer? Or can I bl

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Richard Brodie
"Tom Anderson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Which is not to say that it's a bad idea - if it really is scaring off > potential converts, then a dumbed-down dialect of python which uses curly > brackets and semicolons might be a useful evangelical tool. I doubt

Re: Constructing RFC2822 Message

2005-12-05 Thread Steve Holden
Narendra wrote: > Thanks jep for the quick response.But when im sending with different > program written in java i was able to send into inbox. > > So i thought problem was with the python code only. > > Narendra > Are you sending from a Windows XP client? If so the firewall may be getting in y

Re: Bitching about the documentation...

2005-12-05 Thread bonono
[EMAIL PROTECTED] wrote: > Sure, feel free to point of flaws. Just don't let that be the only way you > contribute. Over time the value of your criticism (valid or not) will be > discounted. > That is quite interesting, if it is true. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to handle two forms in cgi?

2005-12-05 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hi Steve, > > Thank you for your information. Your idea is helpful for me. > By the way, could I use "hiden" to handle this case? > > > > Laya > Yes, some systems have done that, some have used a component of the URL path, but you have to remember that the hidden it

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Paul McNett
[EMAIL PROTECTED] wrote: > Python is the superior design, today. But, like Betamax tape format, > Python isn't mainstream yet. And, sadly, maybe it never will be. I > want that changed. I want Python to take over the world so I don't > have to beg my next boss to let me use it. And if adding a

Re: Learning Python...

2005-12-05 Thread Falc
I am going to read "A Byte Of Python" and possibly a few others afterwards. I sure will read Dive into Python. Thanks a lot guys, it's beed a great help. I'll buy "Learning Python" when I can but I'm on a *very* tight budget at the moment. Thanks again. :) -- http://mail.python.org/mailman/lis

Re: Installing Eric?

2005-12-05 Thread malv
Thanks Scott. I missed that doing cut & paste. -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Steve Holden
[EMAIL PROTECTED] wrote: >> even a single character (like an opening or closing bracket or a semicolon) >> is an indication that the design can be improved. > > > Close, there are two principles for good design: Afford proper use and > Don't afford improper use. I could argue that not having to

Re: reddit.com rewritten in Python

2005-12-05 Thread Harald Armin Massa
Yeah! Another web framework for Python! Now we can prouldy say: Python: the only language with more web frameworks than keywords Harald -- http://mail.python.org/mailman/listinfo/python-list

Re: reddit.com rewritten in Python

2005-12-05 Thread Harald Armin Massa
Yeah! Another web framework for Python! Now we can proudly say: Python: the only language with more web frameworks than keywords Harald -- http://mail.python.org/mailman/listinfo/python-list

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-05 Thread Michele Simionato
I tried Kubuntu and Debian (in the trivial to install version known as Knoppix/Kanotix) and I like Debian more, but this is just me. Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils problem windows xp python 2.4.2

2005-12-05 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: ... > *** Failed: error: The .NET Framework SDK needs to be installed before > building extensions for Python. ... It is so much easier with the actual error messages. Ah-ha -- you installed the compiler but not the .NET Framework. You have more downloading and installing

Re: Constructing RFC2822 Message

2005-12-05 Thread Tim Williams (gmail)
On 5 Dec 2005 06:27:44 -0800, Narendra <[EMAIL PROTECTED]> wrote: Hi All,This is narendra from india doing my engineering.i need to develop an E-mail client in python,which connects to my MTAon port 25 and sends email from there.I was able to do that but my e-mail is ending in bulk when i'm trying

Re: hash()

2005-12-05 Thread Scott David Daniels
John Marshall wrote: > For strings of > 1 character, what are the chances > that hash(st) and hash(st[::-1]) would return the > same value? Why not grab a dictionary and do the stats yourself? --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   >