Re: [Tutor] Better construct?

2010-06-15 Thread Hilton Fernandes
Alan, GW-Basic supported that, but it was not common programming use. :) I've learned programming using Algol (parent of Pascal) and people used to frown at my insistence in using WHILE/WEND Thanks, Hilton On Mon, Jun 14, 2010 at 8:30 PM, Alan Gauld wrote: > > "Advertising Department" wrote >

Re: [Tutor] Structuring a class

2010-06-15 Thread Hilton Fernandes
inded, a relational database is the best bet here. however, a direct implementation in Python may need less previous knowledge. On Tue, Jun 15, 2010 at 4:44 AM, Alan Gauld wrote: > "Lang Hurst" wrote > >> I'm trying to figure out how to deal with data which will look something >> like: >> >>  

Re: [Tutor] WRITING XLS FROM OS.WALK()

2010-10-08 Thread Hilton Fernandes
Hi ! Being Python as rich in libraries, probably there's already a library to create .XLS files. Before finding that, you can try the CSV format: simply put a comma to separate any fields you want in your values. And of course, a comma will finish your line. That way, Excel or any other spreads

Re: [Tutor] Python vs. MATLAB

2010-12-08 Thread Hilton Fernandes
Hi, Hugo ! Excellent explanation. Thank you. All the best, hilton On Mon, Dec 6, 2010 at 5:05 PM, Hugo Arts wrote: > On Mon, Dec 6, 2010 at 6:09 PM, Joel Schwartz > wrote: > > Chris, > > > > Can you say more about number (7) in your list? What does "pass by value" > > mean and what are the al

Re: [Tutor] Python vs. MATLAB

2010-12-08 Thread Hilton Fernandes
best, hilton On Wed, Dec 8, 2010 at 5:04 PM, Hugo Arts wrote: > On Wed, Dec 8, 2010 at 7:52 PM, Hilton Fernandes wrote: >> Hi, Hugo ! >> >> Excellent explanation. Thank you. >> >> All the best, >> hilton >> > > Haha, well, at least someone noticed m

Re: [Tutor] What is `if __name__ == "__main__"` for?

2011-05-20 Thread Hilton Fernandes
Hi, Ganesh ! An important use of this feature is the so-called modular testing, aka unit testing. I mean: that way you can provide functionality in your module to test it independently of any application it may be contained in. Unit testing in general is easier and quicker to do than to test the

Re: [Tutor] finding a polymer of letters in a string

2012-01-19 Thread Hilton Fernandes
Hi ! Have you considered regular expressions in Python ? Please take a look at "Regular Expression HOWTO", at http://docs.python.org/howto/regex.html All the best, Hilton On Thu, Jan 19, 2012 at 4:09 PM, Hs Hs wrote: > Hi: > I am writing to see if I could any help. > I am trying to find if a

[Tutor] Detail your problem, privately (was Re: finding a polymer of letters in a string)

2012-01-19 Thread Hilton Fernandes
A or GGGACCCGAAAT etc. > > so I do not know what that pattern would be when I read in a string. I do > not know if regex could solve my kind of problem too. > > Thanks > Hs. > > > > -- > *From:* Hilton Fernandes > *To:* "tutor@

Re: [Tutor] python 3.4 documentation

2015-06-14 Thread Hilton Fernandes
Hello, Alex ! I believe that maybe in the page https://docs.python.org/3/download.html you will find what you're looking for. All the best, Hilton On Sun, Jun 14, 2015 at 3:56 PM, Alex Kleider wrote: > I'm using python 3.4 on an ubuntu 14.4 LTS OS and frequently find myself > 'off line'. > I'

Re: [Tutor] python on ipad

2013-03-10 Thread Hilton Fernandes
Hi ! If you don't mind, a non technical recommendation: maybe you should consider a cheaper, low end Android smartphone. An iPad will attract the attention of robbers everywhere: it's small, it's expansive and it's fancy. The training 'Developing Android Apps completely in Python', at https://ep

Re: [Tutor] Python Package Diagram

2013-06-05 Thread Hilton Fernandes
Hi, Bjorm ! It would be cool to have one of these charts for Python. And for every other language, for sure. However, my guess is that for Python it would be much thinner. At least for the common usage. Probably the Qt, Gtk or Django architectures would be that thick. What do the Python gurus t

Re: [Tutor] I am having difficulty grasping 'generators'

2014-05-28 Thread Hilton Fernandes
Dear all, i'd like to thank every answer in this list. Alan Gauld is a fine writer of excellent introductory material on Pyton, and so are a few other members of this list. So, it is always enlightening to read what you all write. Keep up the good work. All the best, hilton On Wed, May 28, 20

Re: [Tutor] how to express shift+enter in python

2014-09-28 Thread Hilton Fernandes
Dear all, the reading of specific keys is sometimes a necessity. For instance: some text fields will let you insert a newline in the block of text if you press the combination Shift+Enter, while pressing the sole Enter key will cause the whole text to be transmitted. Unfortunately, reading these

Re: [Tutor] pygame not working

2017-08-18 Thread Hilton Fernandes
Hello, Quantz Jeremy ! PyGame really has a bad fame with McIntosh computers. Have you tried the how-to in Pygame official site, at https://pygame.org/wiki/macintosh ?? Supposing, of course, that you haven't already installed PyGame with success. All the best, Hilton On Wed, Aug 16, 2017 at 9:

Re: [Tutor] In matplotlib, why are there axes classes vs. axes API? Why not list them under one documentation?

2018-06-19 Thread Hilton Fernandes
Dear all, while MatPlotLib can have a myriad of options -- and that can be really confusing --, there is sample code for almost everything in their site. So, I had a great time playing with it. And from what I remember from visiting their site, there are two versions of many of the resources: on