Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-11 Thread Matthew Polack
Hi Mike and everyone who replied to the tutor question re: GUI ideas for Python. Really value all the ideas and suggestions...that is very helpful! Thanks for taking time to reply with so much great information. We're just in wind down mode/rush for our close of school year ...but will really enj

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-06 Thread Mike Barnett
Oh, one more thing on this topic... there are tutorial videos available for PySimpleGUI, both basic and advanced. Basic 5 video series: https://www.youtube.com/playlist?list=PLl8dD0doyrvHMoJGTdMtgLuHymaqJVjzt Additional 9 in-depth videos: https://www.youtube.com/playlist?list=PLl8dD0doyrvHMoJGTd

[Tutor] Any 'graphical' ways of learning Python

2018-12-06 Thread Mike Barnett
I stumbled onto this mailing list when Google found a mention of PySimpleGUI in a thread titled: Any 'graphical' ways of learning Python. I wanted to respond with information on PySimpleGUI and why it's ideal for students. If you're teaching kids and they want to learn how to do GUIs so that th

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Sarfraaz Ahmed
Hello Matthew, Although, its not for Graphics, I have noticed that http://www.pythontutor.com is a good place that can come in handy for students who are new to programming. It gives a graphical view of how memory is allocated for variables and how functions are invoked in a program. I have seen

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Adam Eyring
I've liked turtle and make my graphing more interesting by asking for user input such as dimensions, then graph automatically. One starter source for using pygame graphics is https://inventwithpython.com/pygame/ It jumps into game writing very quickly, but provides explanations of commands. The o

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Steven D'Aprano
On Wed, Dec 05, 2018 at 11:39:49AM +1100, Matthew Polack wrote: > Hi All, > > We're using Python with our Year 9 and 10 students to teach programming. Yay! And I see you're a fellow Aussie :-) > I've started with basic console programming...doing simple games like a > quiz game etc. > > Studen

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Alan Gauld via Tutor
On 05/12/2018 00:39, Matthew Polack wrote: > Can anyone recommend any ways of integrating 'graphics' but in a simpler > way. > Have you considered the turtle module. Its limited to drawing shapes but does give some immediate results. You can of course create functions to draw more sophisticated

[Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Matthew Polack
Hi All, We're using Python with our Year 9 and 10 students to teach programming. I've started with basic console programming...doing simple games like a quiz game etc. Students always seem to like 'graphics'..one of the reasons things like 'Scratch' are so popular in schools is because of the re

Re: [Tutor] Any ideas why this woudn't work?

2018-08-01 Thread Alan Gauld via Tutor
On 01/08/18 14:17, Matthew Polack wrote: > > c:\Python>python crops3.py > Traceback (most recent call last): >   File "crops3.py", line 30, in >     filemenu.add_command(label="Show", command=self.showImg) > NameError: name 'self' is not defined The problem with cutting and pasting/copying code..

Re: [Tutor] Any ideas

2014-02-05 Thread Oscar Benjamin
On Mon, Feb 03, 2014 at 04:35:58PM -0800, josh Malone wrote: > Hi, I'm very new to programming and python is my first language. I'm > currently enrolled in a class at Oregon State University where we are > taught to program in python. I'm stuck on one problem and i know what i > want to do... i jus

Re: [Tutor] Any ideas

2014-02-04 Thread Dave Angel
josh Malone Wrote in message: > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > First thing is to figure your goal. "Model" might mean anything from "figur

[Tutor] Any ideas

2014-02-04 Thread josh Malone
Hi, I'm very new to programming and python is my first language. I'm currently enrolled in a class at Oregon State University where we are taught to program in python. I'm stuck on one problem and i know what i want to do... i just have no idea how to write the program. The question is as follows

[Tutor] Any speech to text conversation python library for Linux and mac box

2013-06-12 Thread Ranjith Kumar
Hello all, I'm looking for speech to text conversation python library for linux and mac box, I found few libraries but non of them supports any of these platform. I found following libraries speech, dragonfly and pyspeech supports only windows and sphinx for linux. Any suggestion? -- Cheers, Ran

Re: [Tutor] Any book to study Python

2012-03-28 Thread Prasad, Ramit
> > > > any of the tutors here can help you, not just me! :-) > > > > > once you provide the server code and output, people may be able to > > help you better. > Agreed. It depends on firewalls between the two IP addresses. Also, the > Linux server may have IP tables installed which might prevent

Re: [Tutor] Any book to study Python

2012-03-28 Thread Leam Hall
On 03/28/2012 02:40 PM, wesley chun wrote: hi xianming, any of the tutors here can help you, not just me! :-) once you provide the server code and output, people may be able to help you better. best regards, -- wesley Agreed. It depends on firewalls between the two IP addresses. Also, th

Re: [Tutor] Any book to study Python

2012-03-19 Thread Russel Winder
Xianming, On Mon, 2012-03-19 at 18:38 +1100, Yan, Xianming wrote: > Hello all, > > I'm a new learning to python and does not know python anything at all. > > Anyone can recommend a book about python to read? I prefer a paper-based > book, not online book. > > By the way, I'm from china, I hop

Re: [Tutor] Any book to study Python

2012-03-19 Thread Brian van den Broek
On 19 Mar 2012 11:42, "Yan, Xianming" wrote: > > I'm following http://docs.python.org/tutorial/interpreter.html to type in the first script into python. > > According to the link, I typed below: > > >>> the_world_is_flat = 1 > >>> if the_world_is_flat: > ... print "Be careful not to fall off!"

[Tutor] Any book to study Python

2012-03-19 Thread Yan, Xianming
I'm following http://docs.python.org/tutorial/interpreter.html to type in the first script into python. According to the link, I typed below: >>> the_world_is_flat = 1 >>> if the_world_is_flat: ... print "Be careful not to fall off!" Then I get below output: File "", line1 Print "dd"

Re: [Tutor] Any book to study Python

2012-03-19 Thread Alan Gauld
On 19/03/12 07:38, Yan, Xianming wrote: Hello all, I'm a new learning to python and does not know python anything at all. Anyone can recommend a book about python to read? I prefer a paper-based book, not online book. By the way, I'm from china, I hope the book is Chinese--:)--Reading in Chin

Re: [Tutor] Any book to study Python

2012-03-19 Thread wesley chun
你好 Xianming, I have a book -- *Python 核 心 编 程 (第二版)* -- that is for people who already program but want to learn Python. It is available in China from at least 3 online stores: http://www.china-pub.com/39969 http://www.amazon.cn/dp/bkbk835890 http://mall.sina.com.cn/product_1749023.htm In the A

[Tutor] Any book to study Python

2012-03-19 Thread Yan, Xianming
Hello all, I'm a new learning to python and does not know python anything at all. Anyone can recommend a book about python to read? I prefer a paper-based book, not online book. By the way, I'm from china, I hope the book is Chinese--:)--Reading in Chinese is quicker~:) Thanks Xianming _

Re: [Tutor] any cons to using a module of functions?

2012-02-03 Thread Alan Gauld
On 03/02/12 05:05, Che M wrote: is very bad form and I should refactor, and so I am beginning to put these functions in their own module so that I can import the module and its functions when I need it; they will all be in one place and only only place. While that's tempting it is better if yo

Re: [Tutor] any cons to using a module of functions?

2012-02-03 Thread Peter Otten
Che M wrote: > > I have a bunch of functions that do various utility-type tasks in an > application (such as prettifying date strings, etc.), and they are used in > many modules. Much of the time, I have just been lazily copying and > pasting the functions into whichever modules need them. I re

[Tutor] any cons to using a module of functions?

2012-02-02 Thread Che M
I have a bunch of functions that do various utility-type tasks in an application (such as prettifying date strings, etc.), and they are used in many modules. Much of the time, I have just been lazily copying and pasting the functions into whichever modules need them. I realize that is very ba

Re: [Tutor] Any recommend of UML tool and UI design tool for python?

2010-12-15 Thread cajsdy
Thank you very much and thank you Alan. Definitely I will take a look. I would prefer the paid version and I will need the support. On 12/12/10, Knacktus wrote: > Am 12.12.2010 19:16, schrieb Alan Gauld: >> >> "cajsdy" wrote >>> Either paid or free open source is fine. >>> I'm creating automati

Re: [Tutor] Any recommend of UML tool and UI design tool for python?

2010-12-12 Thread Knacktus
Am 12.12.2010 19:16, schrieb Alan Gauld: "cajsdy" wrote Either paid or free open source is fine. I'm creating automation frame work. Idealy it includes: test plan management, test manager across windows, unix, linux, solaris and other os. UML documentation for python scripts IDE tool for pyth

Re: [Tutor] Any recommend of UML tool and UI design tool for python?

2010-12-12 Thread Alan Gauld
"cajsdy" wrote Either paid or free open source is fine. I'm creating automation frame work. Idealy it includes: test plan management, test manager across windows, unix, linux, solaris and other os. UML documentation for python scripts IDE tool for python on windoes and linux UI design tool fo

[Tutor] Any recommend of UML tool and UI design tool for python?

2010-12-12 Thread cajsdy
Either paid or free open source is fine. I'm creating automation frame work. Idealy it includes: test plan management, test manager across windows, unix, linux, solaris and other os. UML documentation for python scripts IDE tool for python on windoes and linux UI design tool for python(best is int

Re: [Tutor] Any

2010-04-29 Thread Alan Gauld
"Steven D'Aprano" wrote Pythoncard is a desktop application based on Apple's much-loved and never forgotten Hypercard (may it rest in peace!). And Dabo is based on Visual FoxPro. Just a caveat: Both of these are really development tools rather than applications in the normal sense - alth

Re: [Tutor] Any

2010-04-29 Thread iamroot
> > The Reddit website is written in Python, as is the EVE Online massive > multiplayer game, although I doubt the source code for them are > available. > Actually, Reddit has made it's source available and has included a HOWTO install Reddit

Re: [Tutor] Any

2010-04-29 Thread Steven D'Aprano
On Thu, 29 Apr 2010 08:06:30 pm Kevin Kirton wrote: > Hi all, > > I was just wondering if anyone here can recommend any freeware > program that has been written in python and for which the source code > is available. The Red Hat Package Manager (rpm) is written in Python. The original BitTorrent

Re: [Tutor] Any

2010-04-29 Thread Kevin Kirton
Alan Gauld wrote: > But if thats not enough try both sourceforge and the PyGame web sites. > On sourceforge search for projects using python... DIA is one that springs > to mind(a Visio type drawing program) > > PyGame has lots of Python games you can download, several with source. PyGame looks p

Re: [Tutor] Any

2010-04-29 Thread spir ☣
On Thu, 29 Apr 2010 13:04:20 +0100 "Alan Gauld" wrote: > IDLE? > The IDE that comes with Python ias wtten in Python and the > source comes as part of the standard library. There's also a free software programming editor --editra, I guess-- written in and mainly for python. (But I would not re

Re: [Tutor] Any

2010-04-29 Thread Kevin Kirton
Christian Witts wrote: > Maybe look through projects at Freshmeat [1]. > > [1] http://freshmeat.net/tags/python That's exactly what I was looking for. I've already selected a few small programs and now I plan on installing them, seeing how they operate from a user's perspective, then I'll take a

Re: [Tutor] Any

2010-04-29 Thread Alan Gauld
"Kevin Kirton" wrote I was just wondering if anyone here can recommend any freeware program that has been written in python and for which the source code is available. IDLE? The IDE that comes with Python ias wtten in Python and the source comes as part of the standard library. But if t

Re: [Tutor] Any

2010-04-29 Thread Christian Witts
Kevin Kirton wrote: Hi all, I was just wondering if anyone here can recommend any freeware program that has been written in python and for which the source code is available. Basically I just want to see a program that does something relatively simple and straightforward, but something that is

[Tutor] Any

2010-04-29 Thread Kevin Kirton
Hi all, I was just wondering if anyone here can recommend any freeware program that has been written in python and for which the source code is available. Basically I just want to see a program that does something relatively simple and straightforward, but something that is "real world," I mean s

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-03-03 Thread Karim Liateni
Hello Alan, Steven, I was narrow minded about this topic and did not see the benefits of these multiple Python implementations. You opened my eyes. Regards Karim Steven D'Aprano wrote: On Tue, 2 Mar 2010 11:25:44 am Andreas Kostyrka wrote: Furthermore I do not think that most of the "c

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-03-02 Thread Karim Liateni
Hello, Thanks a lot for this state of the art of the language, very instructive. I see now top of the iceberg ;o) Karim Steven D'Aprano wrote: On Tue, 2 Mar 2010 07:07:57 am Karim Liateni wrote: Thanks for this precision! I'm using standard python so this is ok! Why people use proprietar

Re: [Tutor] Any Tutor there ? Removing redundant par ameters in a models file having include files.

2010-03-02 Thread Steven D'Aprano
On Tue, 2 Mar 2010 11:25:44 am Andreas Kostyrka wrote: > Furthermore I do not think that most of the "core" community has a > problem with the alternate implementations, as they provide very > useful functions (it helps on the architecture side, because it > limits somewhat what can be done, it hel

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-03-01 Thread Andreas Kostyrka
> > Why people use proprietary python ? Well, AFAIK I know, all more or less popular non-Ansi-C implementations of Python are free. (Jython is, IronPython too, although I've never checked in detail, stackless is, PyPy is too, ...) > > It's better to spent energy to participate with the core deve

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-03-01 Thread ALAN GAULD
> Why people use proprietary python ? Because it does something normal Python doesn't. For example I often use Jython (Python implemented in Java instead of C) because it allows me to import Java classes and test them. It also allows me to rapidly build Java classes that I can integrate as te

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-03-01 Thread Steven D'Aprano
On Tue, 2 Mar 2010 07:07:57 am Karim Liateni wrote: > Thanks for this precision! > I'm using standard python so this is ok! > Why people use proprietary python ? > To have more trouble ? To be different from the rest of community ? Python is a language, but there can be many different implementati

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-03-01 Thread Karim Liateni
Thanks for this precision! I'm using standard python so this is ok! Why people use proprietary python ? To have more trouble ? To be different from the rest of community ? Anyway in opensource people do whatever they want but you know multiple version that was the same before Common C or Lisp it

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-02-28 Thread Alan Gauld
"Karim Liateni" wrote def getLines(file): try: lines = open(filename).readlines() ; return lines except IOError: #handle error but in the second 'lines = open(filename).readlines()' I don't hold indirectly a reference to the file? Please, could you explain more this point? Sure, the l

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-02-28 Thread Karim Liateni
Lie Ryan wrote: On 03/01/10 02:49, Karim Liateni wrote: Lie Ryan wrote: On 03/01/10 01:12, Alan Gauld wrote: def getLines(file): """Get the content of a file in a lines list form.""" f = open(file, 'r') lines = f.readlines() f.close() return lines

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-02-28 Thread Lie Ryan
On 03/01/10 02:49, Karim Liateni wrote: > Lie Ryan wrote: >> On 03/01/10 01:12, Alan Gauld wrote: >> def getLines(file): """Get the content of a file in a lines list form.""" f = open(file, 'r') lines = f.readlines() f.close() return lines >>>

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-02-28 Thread Karim Liateni
Lie Ryan wrote: On 03/01/10 01:12, Alan Gauld wrote: def getLines(file): """Get the content of a file in a lines list form.""" f = open(file, 'r') lines = f.readlines() f.close() return lines I'm not sure these functions add enough value to ghave them. I';d probably just use

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-02-28 Thread Karim Liateni
Hello Alan, Alan Gauld wrote: "Karim Liateni" wrote It concatenates both parameters and include files with the same parameters definitions. That trigs errors during simulation and it complains about parameters double definition. I'd suggest you construct a dictionary based on the param na

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-02-28 Thread Lie Ryan
On 03/01/10 01:12, Alan Gauld wrote: > >> def getLines(file): >> """Get the content of a file in a lines list form.""" >> f = open(file, 'r') >> lines = f.readlines() >> f.close() >> return lines > > I'm not sure these functions add enough value to ghave them. I';d > probably just use >

Re: [Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-02-28 Thread Alan Gauld
"Karim Liateni" wrote It concatenates both parameters and include files with the same parameters definitions. That trigs errors during simulation and it complains about parameters double definition. I'd suggest you construct a dictionary based on the param names You can check before you add c

[Tutor] Any Tutor there ? Removing redundant parameters in a models file having include files.

2010-02-28 Thread Karim Liateni
Hello Tutor, Since Friday I get no answers to my first post. So I re-post it was missed by the numerous arriving email: This is my first program in python. I am doing electrical simulation in spectre (spice like). I have a models file which holds many parameters and include files of parameters

Re: [Tutor] Any one got any idea

2009-10-18 Thread David
nitin chandra wrote: On Mon, Oct 19, 2009 at 1:58 AM, nitin chandra wrote: Hello Everyone, i am compiling Python 2.6.2 from source and have successfully been able to cross at least that is what i am thinking . ./configure and make but i am facing a peculiar problem in installing

Re: [Tutor] Any one got any idea

2009-10-18 Thread nitin chandra
On Mon, Oct 19, 2009 at 1:58 AM, nitin chandra wrote: > Hello Everyone, > > i am compiling Python 2.6.2 from source and have successfully been > able to cross at least that is what i am thinking . > ./configure and make but i am facing a peculiar problem in > installing it this time.

[Tutor] Any one got any idea

2009-10-18 Thread nitin chandra
Hello Everyone, i am compiling Python 2.6.2 from source and have successfully been able to cross at least that is what i am thinking . ./configure and make but i am facing a peculiar problem in installing it this time. (This is the second time i am installing on the same system with

Re: [Tutor] any best practice on how to glue tiny tools together

2009-02-06 Thread Daniel
These are really valuable info. I will try. Thanks a lot. On Fri, Feb 6, 2009 at 7:44 PM, Kent Johnson wrote: > On Fri, Feb 6, 2009 at 4:11 AM, Daniel wrote: > > Hi Tutors, > > > > I want to use python to finish some routine data processing tasks > > automatically (on Windows). > > > > The ma

Re: [Tutor] any best practice on how to glue tiny tools together

2009-02-06 Thread bob gailer
Kent Johnson wrote: On Fri, Feb 6, 2009 at 7:21 AM, spir wrote: see also http://en.wikipedia.org/wiki/Python_Pipelines That looks pretty dead, or at least unpublished. The google code project is almost two years old but it contains no code. It is sluggish but not dead. The code

Re: [Tutor] any best practice on how to glue tiny tools together

2009-02-06 Thread bob gailer
spir wrote: Le Fri, 6 Feb 2009 06:44:11 -0500, Kent Johnson a écrit : My first thought was, use shell pipelines and bash. Then I remembered, David Beazley shows how to use generators to implement a processing pipeline in Python: http://www.dabeaz.com/generators-uk/ see also http://en

Re: [Tutor] any best practice on how to glue tiny tools together

2009-02-06 Thread Kent Johnson
On Fri, Feb 6, 2009 at 7:21 AM, spir wrote: > see also > http://en.wikipedia.org/wiki/Python_Pipelines That looks pretty dead, or at least unpublished. The google code project is almost two years old but it contains no code. Kent ___ Tutor maillist -

Re: [Tutor] any best practice on how to glue tiny tools together

2009-02-06 Thread spir
Le Fri, 6 Feb 2009 06:44:11 -0500, Kent Johnson a écrit : > My first thought was, use shell pipelines and bash. Then I remembered, > David Beazley shows how to use generators to implement a processing > pipeline in Python: > http://www.dabeaz.com/generators-uk/ see also http://en.wikipedia.org/w

Re: [Tutor] any best practice on how to glue tiny tools together

2009-02-06 Thread Kent Johnson
On Fri, Feb 6, 2009 at 4:11 AM, Daniel wrote: > Hi Tutors, > > I want to use python to finish some routine data processing tasks > automatically (on Windows). > > The main task could be split to sub small tasks. Each can be done by > executing some small tools like "awk" or by some other python sc

[Tutor] any best practice on how to glue tiny tools together

2009-02-06 Thread Daniel
Hi Tutors, I want to use python to finish some routine data processing tasks automatically (on Windows). The main task could be split to sub small tasks. Each can be done by executing some small tools like "awk" or by some other python scripts. One example of such task is conducting a data proces

[Tutor] Any Windows users help reproing IDLE bug 3841?

2008-09-19 Thread Stephen McInerney
Can a couple of Vista and XP users please test this out? Thanks - Stephen _ Could anyone help reproing this minor IDLE bug?http://bugs.python.org/issue3841I found it on Windows Vista with Python 2.5 / IDLE 1.2.2.Other people have reported it does NOT occur with either:Win XP / Python 2.5

Re: [Tutor] Any Italian speakers?

2008-08-05 Thread simone
Alan Gauld ha scritto: --- voglio chiderti solo 1 cosa ... ma secondo te qualle e il miglior programma X programmare??? grazie ... da Cristian - Literally: --- "I want to ask you only one thing... what's in your opinion the best program to p

Re: [Tutor] Any Italian speakers?

2008-08-04 Thread Alan Gauld
"Hansen, Mike" <[EMAIL PROTECTED]> wrote Did you find anyone to traslate? Yes thanks, Daniele (sp?) replied with a translation. There are some Italian idiomatic things there so it confused Google (and Babelfish!) "I want chiderti only 1 thing... but according to you qualle and better progr

Re: [Tutor] Any Italian speakers?

2008-08-04 Thread Hansen, Mike
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld > Sent: Sunday, August 03, 2008 4:55 PM > To: tutor@python.org > Subject: [Tutor] Any Italian speakers? > > I received this message which Google tells me is Italia

[Tutor] Any Italian speakers?

2008-08-03 Thread Alan Gauld
I received this message which Google tells me is Italian but then only gives a partial translation... Can anyone help? --- voglio chiderti solo 1 cosa ... ma secondo te qualle e il miglior programma X programmare??? grazie ... da Cristian - Alan G. __

Re: [Tutor] Any way of monitoring a python program's memory utilization?

2008-07-17 Thread Monika Jisswel
I m really sorry if no one of you liked/agreed with the fridge analogy but that's what my brain could come up with at the time, I have to say it's not a very scientific argument. but I only meant to say that if you are piping data into memory & this data is larger than that memory then there is no

Re: [Tutor] Any way of monitoring a python program's memory utilization?

2008-07-17 Thread Terry Carroll
On Thu, 17 Jul 2008, Monika Jisswel wrote: > I see no problem, if you open very BIG files then your memory will get > filled up & your system will halt, I'm going to disagree with you on this one. First, in general, it is not the case that opening a very large file will cause memory to be fille

Re: [Tutor] Any way of monitoring a python program's memoryutilization?

2008-07-17 Thread Alan Gauld
"Monika Jisswel" <[EMAIL PROTECTED]> wrote... I see no problem, if you open very BIG files then your memory will get filled up & your system will halt, Only if you were to foolishly read the whole file into memory at once. Early computers only had memories of a few kilobytes but could process

Re: [Tutor] Any way of monitoring a python program's memory utilization?

2008-07-17 Thread Monika Jisswel
I see no problem, if you open very BIG files then your memory will get filled up & your system will halt, can you buy more food than your fridge can handle , and write to a list asking to invistigate the problem ? 2008/7/17 Terry Carroll <[EMAIL PROTECTED]>: > On Thu, 17 Jul 2008, Monika Jisswel

Re: [Tutor] Any way of monitoring a python program's memory utilization?

2008-07-17 Thread Terry Carroll
On Thu, 17 Jul 2008, Monika Jisswel wrote: > Well, you can check whether your system has reached its limits or not, but > what for ? So I can debug the problem. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Any way of monitoring a python program's memory utilization?

2008-07-17 Thread Monika Jisswel
> > I'm iterating through a vey large tarfile (uncompressed, it would be about > 2.4G, with about 2.5 million files in it) and I can see from some external > monitors that its virtual storage usage just grows and grows, until my > whole system finally grinds to a halt after about 1.2 million member

Re: [Tutor] Any way of monitoring a python program's memory utilization?

2008-07-16 Thread Terry Carroll
On Wed, 16 Jul 2008, Terry Carroll wrote: > The obvious thing to do is to also filter by PID, which is the second > element; Of course that opens a new question: how to find one's own PID > from within Python. More googling awaits. And, while searching for that, I found out hwo to find mem

Re: [Tutor] Any way of monitoring a python program's memory utilization?

2008-07-16 Thread Terry Carroll
On Thu, 17 Jul 2008, John Fouhy wrote: > tasklist is the Windows version of ps. You could try something like > 'tasklist /FI "IMAGENAME eq python.exe"', though you'd then have to > parse the output. Thanks! I just found that too! (Alan's suggestiom made me thing of googling for "ps equivalent

Re: [Tutor] Any way of monitoring a python program's memory utilization?

2008-07-16 Thread John Fouhy
On 17/07/2008, Terry Carroll <[EMAIL PROTECTED]> wrote: > ps doesn't show memory usage as far as I can tell (that may be a cygwin > thing; I see some references online that suggest it can in some > environments). I don't have top or vmstat, but I'll look into those. Hmm, yeah, cygwin ps seems q

Re: [Tutor] Any way of monitoring a python program's memory utilization?

2008-07-16 Thread Terry Carroll
On Thu, 17 Jul 2008, Alan Gauld wrote: > With cygwin you should have top, vmstat and of course ps. > All of these can monitor system status,. top being very similar to > XPs Task Manager process view but in a text window. vmstat will > not tell you process IDs, just report total usage. And ps is s

Re: [Tutor] Any way of monitoring a python program's memory utilization?

2008-07-16 Thread Alan Gauld
"Terry Carroll" <[EMAIL PROTECTED]> wrote Is there anything within Python (I'm on 2.5) that can check this? Failing that, are there any Windows/XP line-oriented commands that I could invoke and parse the output of? (I also have Cygwin installed, in case there are any gnu-based commands that

[Tutor] Any way of monitoring a python program's memory utilization?

2008-07-16 Thread Terry Carroll
Is there any way of having my program see how much memory it's using? I'm iterating through a vey large tarfile (uncompressed, it would be about 2.4G, with about 2.5 million files in it) and I can see from some external monitors that its virtual storage usage just grows and grows, until my whole s

Re: [Tutor] Any Good book for python

2007-01-04 Thread stv
> I am new in Python area and want to know Python concepts with more deatils. > Please suggest some good books on python. Beginning Python, by Hetland is excellent for almost any level (I think someone who has really mastered one language, and is currently working as a programmer, can simply read

Re: [Tutor] Any Good book for python

2007-01-04 Thread Hiran Venugopalan
"Byte of python" by Swaroop [swaroopch.info] is a simple book for starters,but never a alltime help book.If you are just a starter like me,you can learn the ideas on python on looking to that and which will surely help you to learn python in deep. Its there at http://swaroopch.info/text/Byte_of_P

Re: [Tutor] Any Good book for python

2007-01-04 Thread Arun Kumar PG
"Python in a nutshell" is a good one. Also Python docs are the all time favorite. On 1/4/07, deepak shingan <[EMAIL PROTECTED]> wrote: Hi Folks, I am new in Python area and want to know Python concepts with more deatils. Please suggest some good books on python. Thanks in Advance -Deepak

[Tutor] Any Good book for python

2007-01-04 Thread deepak shingan
Hi Folks, I am new in Python area and want to know Python concepts with more deatils. Please suggest some good books on python. Thanks in Advance -Deepak __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://m

Re: [Tutor] any win32com experts out there?

2006-11-17 Thread Alan Gauld
I'm no expert but I get the same response when I tried it. I googled a bit and found this long chain of useful looking stuff: http://www.velocityreviews.com/forums/t345123-how-to-receive-events-eg-user-mouse-clicks-from-ie.html One possibility mentioned at the end is: Adding win32gui.PumpW

[Tutor] any win32com experts out there?

2006-11-17 Thread Orri Ganel
Hello again. As I've mentioned in the last couple of emails, I'm having trouble registering iTunes for events, and I don't know if it's a bug with iTunes or with win32com, or if there's something I'm doing wrong. So, if any win32com gurus out there know why the following doesn't work and how

Re: [Tutor] Any stuff about python interpreter design ?

2006-03-09 Thread Bo Yang
Danny Yoo said: >> So I take a look into the source code .But I get confused about so many >> files and functions . I want to ask that is there any stuff about the >> interpreter design and coding ? >> > > [meta: my reply is really about Scheme, not Python. My apologies to the > list, but it'

Re: [Tutor] Any stuff about python interpreter design ?

2006-03-09 Thread Danny Yoo
> So I take a look into the source code .But I get confused about so many > files and functions . I want to ask that is there any stuff about the > interpreter design and coding ? [meta: my reply is really about Scheme, not Python. My apologies to the list, but it's my honest answer.] Hi Bo, Th

[Tutor] Any stuff about python interpreter design ?

2006-03-09 Thread Bo Yang
Hello , I have learned and used python half a year , and I like this language very much . I used it in my web server page , in my homework and part-tiem job . Recently , I feel very interested in the python interpreter . So I take a look into the source code .But I get confused about so many files

Re: [Tutor] Any TurboGears users out there?

2005-11-14 Thread Tim Johnson
* Alan Gauld <[EMAIL PROTECTED]> [051114 09:26]: > I just stumbled across TurboGears: > > http://www.macdevcenter.com/pub/a/mac/2005/11/08/turbogears.html > > Its based on CheryPy which consistently gets good reviews but adds SQL > access and XML templates. Sounds interesting, possibly even a Zo

Re: [Tutor] Any TurboGears users out there?

2005-11-14 Thread Kent Johnson
Alan Gauld wrote: > I just stumbled across TurboGears: > > http://www.macdevcenter.com/pub/a/mac/2005/11/08/turbogears.html > > Its based on CheryPy which consistently gets good reviews but adds SQL > access and XML templates. Sounds interesting, possibly even a Zope rival > for the medium size

[Tutor] Any TurboGears users out there?

2005-11-14 Thread Alan Gauld
I just stumbled across TurboGears: http://www.macdevcenter.com/pub/a/mac/2005/11/08/turbogears.html Its based on CheryPy which consistently gets good reviews but adds SQL access and XML templates. Sounds interesting, possibly even a Zope rival for the medium sized as opposed to massive site..

Re: [Tutor] any code to draw parabola or curve?

2005-11-09 Thread Gregor Lingl
Both! See attachment Regards, Gregor Shi Mu schrieb: any code to draw parabola or curve? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor -- Gregor Lingl Reisnerstrasse 3/19 A-1030 Wien Telefon: +43 1 713 33 9

Re: [Tutor] any code to draw parabola or curve?

2005-11-08 Thread Alex Hunsley
Shi Mu wrote: >any code to draw parabola or curve? > > That question is so general and vague it's either unanswerable, or very easy to answer. I'll try the 'very easy' answer: yes, there is probably code somewhere to draw a parabola or curve. Have you tried making a start on this yourself? Di

[Tutor] any code to draw parabola or curve?

2005-11-08 Thread Shi Mu
any code to draw parabola or curve? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Any good Glade and python tutorials?

2005-10-18 Thread Luis N
You might want to search for how it fits together with twisted's reactor http://www.google.com/search?q=twisted+glade+reactor Luis. On 10/15/05, Adam <[EMAIL PROTECTED]> wrote: > I'm making a Twisted app that needs a client side GUI and GTK seems like the > best way to go about this. Can anybody

Re: [Tutor] Any good Glade and python tutorials?

2005-10-15 Thread ZIYAD A. M. AL-BATLY
On Sat, 2005-10-15 at 20:13 +0100, Adam wrote: > I'm making a Twisted app that needs a client side GUI and GTK seems > like the best way to go about this. Can anybody point me in the > direction of any decent tutorials on how to use Glade with python and > pyGTK. > Thanks. > Adam. http://primates.

[Tutor] Any good Glade and python tutorials?

2005-10-15 Thread Adam
I'm making a Twisted app that needs a client side GUI and GTK seems like the best way to go about this. Can anybody point me in the direction of any decent tutorials on how to use Glade with python and pyGTK. Thanks. Adam. ___ Tutor maillist - Tutor@pyt

Re: [Tutor] Any suggestions for optimizing this code?

2005-09-19 Thread grouchy
Replying to myself, I got some speedups by replacing:def makeArray1(matrix):    result = matrix    result[0][w/2] = 1    for row in range(h-1):    last = result[row]    next = result[row+1]     for i in range(w-1):     next[i] = rule[4*last[i-1]+2*last[i]+last[i+1]]    next[

Re: [Tutor] Any suggestions for optimizing this code?

2005-09-18 Thread grouchy
Hi John,Thanks for that suggestion.I tried replacing my matrix with a numpy array, and it was about 20% slower, but I just substituted one for the other, so that really isn't surprising.  I didn't try with the built-in array, but I'm guessing that swapping out another container for lists would only

Re: [Tutor] Any suggestions for optimizing this code?

2005-09-18 Thread John Fouhy
On 19/09/05, grouchy <[EMAIL PROTECTED]> wrote: > I've been playing with generating 1-D cellular automata, and this is the > fastest solution I've come up with so far. I haven't dug deep into your code --- but, I wonder if the array module might help? -- John. __

  1   2   >