Re: [Tutor] Offtopic observation

2006-06-07 Thread Dave Kuhlman
On Thu, Jun 08, 2006 at 10:45:41AM +1200, John Fouhy wrote: > On 08/06/06, doug shawhan <[EMAIL PROTECTED]> wrote: > > This marks the third time this week I have been typing in a question for the > > group, and have made the answer apparent just by trying to explain my > > question clearly. 1. Tha

Re: [Tutor] module versus file

2006-06-07 Thread Dave Kuhlman
On Wed, Jun 07, 2006 at 06:44:08PM -0400, Kermit Rose wrote: [snip] > > > Yes. By some means that I don't remember I declared the file factor30.py > in directory > math\factoring > > to be a module. > If you are importing a module from a directory other than your current directory, the

Re: [Tutor] Offtopic observation

2006-06-07 Thread Jonathon Sisson
Kent Johnson wrote: >> From: Danny Yoo <[EMAIL PROTECTED]> >> On Wed, 7 Jun 2006, doug shawhan wrote: >> >>> This marks the third time this week I have been typing in a question for >>> the group, and have made the answer apparent just by trying to explain >>> my question clearly. >> Yes. *grin*

Re: [Tutor] Offtopic observation

2006-06-07 Thread John Fouhy
On 08/06/06, doug shawhan <[EMAIL PROTECTED]> wrote: > This marks the third time this week I have been typing in a question for the > group, and have made the answer apparent just by trying to explain my > question clearly. I'm usually a step back from that --- the answer becomes apparent approxim

[Tutor] module versus file

2006-06-07 Thread Kermit Rose
Message: 7 Date: Wed, 07 Jun 2006 08:12:59 -0400 From: Kent Johnson <[EMAIL PROTECTED]> Subject: Re: [Tutor] default module >> Hi Kermit, To make a module available for import, you just have to save it somewhere on your Python path. There are several ways to do this, ***

Re: [Tutor] combo box

2006-06-07 Thread Michael Lange
On Tue, 06 Jun 2006 13:39:21 +0700 kakada <[EMAIL PROTECTED]> wrote: > Dear Friends, > > I am now working on GUI python (Tkinter). > I want to use combobox as my widget, but I cannot find it in any document. > > Does anybody have experience with that? > There is no ComboBox widget in plain Tki

Re: [Tutor] Offtopic observation

2006-06-07 Thread Kent Johnson
> From: Danny Yoo <[EMAIL PROTECTED]> > On Wed, 7 Jun 2006, doug shawhan wrote: > > > This marks the third time this week I have been typing in a question for > > the group, and have made the answer apparent just by trying to explain > > my question clearly. > > Yes. *grin* It's a very powerf

Re: [Tutor] Offtopic observation

2006-06-07 Thread Michael
On Wednesday 07 June 2006 17:55, doug shawhan wrote: > This marks the third time this week I have been typing in a question for > the group, and have made the answer apparent just by trying to explain my > question clearly. > > This suggests that either I think better in text, or Proust was onto >

Re: [Tutor] Offtopic observation

2006-06-07 Thread Danny Yoo
On Wed, 7 Jun 2006, doug shawhan wrote: > This marks the third time this week I have been typing in a question for > the group, and have made the answer apparent just by trying to explain > my question clearly. Yes. *grin* It's a very powerful technique. Writing does this for me as well.

[Tutor] Offtopic observation

2006-06-07 Thread doug shawhan
This marks the third time this week I have been typing in a question for the group, and have made the answer apparent just by trying to explain my question clearly. This suggests that either I think better in text, or Proust was onto something ... but then again, I majored in english.

Re: [Tutor] default module

2006-06-07 Thread Kent Johnson
Kermit Rose wrote: > From: Kent Johnson <[EMAIL PROTECTED]> >> Besides, I already have one default module saved, and it would seem >> complicated to have more than one. > > I don't know what you mean by this, what is a default module? > > A while back in time, I wanted to make a library of su

[Tutor] default module

2006-06-07 Thread Kermit Rose
Message: 3 Date: Tue, 06 Jun 2006 20:59:11 -0400 From: Kent Johnson <[EMAIL PROTECTED]> Subject: Re: [Tutor] How do I get Dos to recognize python command? To: Python Tutor > > Besides, I already have one default module saved, and it would seem > complicated to have more than one. I don't

Re: [Tutor] (OT) Monitorising WEB POSTs

2006-06-07 Thread Peter Jessop
Matthew Fantastic! Exactly what I needed ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] (OT) Monitorising WEB POSTs

2006-06-07 Thread Matthew Webber
Install the Firefox extension called "Live HTTP headers", and look at the "Generator" tab. This appears to be what you want. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Jessop Sent: 07 June 2006 11:00 To: tutor@python.org Subject: [Tutor] (OT) M

Re: [Tutor] Truly generic database API

2006-06-07 Thread Peter Jessop
It depends on your system constraints. If you are only developing on Windows then you can use ODBC. ODBC supports writing to text files. It is an old fashioned technology and is not very fast. However it is well supported and mature. ___ Tutor maillist

Re: [Tutor] python application on a web page

2006-06-07 Thread Peter Jessop
Tkinter is a multiplatform toolkit for producing programs with graphical interface. But multiplatform refers to BSD, Linux, Mackintosh, Windows etc. If you want to produce the output on the WEB you need to produce the output in HTML or in some way that most users can see it in their Browsers. (Jav

[Tutor] (OT) Monitorising WEB POSTs

2006-06-07 Thread Peter Jessop
I am building a python application to automate information capture from a web site. I want to use a python application to request and process the information instead of using the site's WEB page. However I am having problems finding out exactly what data the server expects. I have a firefox add-in

Re: [Tutor] [tutor] dictionary

2006-06-07 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > how can i print a dictionary, sorted by the values? A dictionary itself is an unordered collection and can't be sorted. But you can sort and print the list of key, value pairs returned by dict.items(). For example: In [3]: from operator import itemgetter In [4]: d =

Re: [Tutor] Affect of doc strings on performance

2006-06-07 Thread Kent Johnson
i don't think it makes any difference. I suppose it will slow down the parsing of the file by a tiny amount, and increase memory usage by the size of the strings, but I don't think it will change execution time. The Python standard library has lots of doc strings. Type help(dict) at the interpr

[Tutor] Affect of doc strings on performance

2006-06-07 Thread Akanksha Govil
Hi,I wanted to know if we give large doc strings in the python scripts, does it slow down the script execution?Should we always keep those doc strings to minimum if we want fast script execution?ThanksAkanksha __Do You Yahoo!?Tired of spam? Yahoo! Ma