[Tutor] Python cms
Hi all, I am mainly a php/drupal developer totally new to python.. Any experienced python especially in term of cms developers out there can tell me what are the benefits of python cms over php cms? I want to find out if I should switch to python cms? Thanks in advance, Douglas ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Genetic module recommendations?
On 18/08/2012 20:24, Modulok wrote: List, I'm looking for a good genetic module. (Stable, well documented, pythonic, etc.) I'm writing a breeding simulator where users select parent organisms to breed based on traits they favor, e.g: eye color, height, etc. The human player is the fitness function. I guess this is "artificial selection"? After breeding the user gets an offspring which carries traits from its parents. It's only a game and a crude approximation of nature at best. However, the algorithm has to be stable enough this can go on for several hundred generations without entropy reducing to the point of haulting evolution. On the other hand, I don't want so much entropy that it's reduce to a random search. Before I write my own, I thought I'd ask to see if there was a third party, de-facto standard Python genetic module. Or at least one that is highly recommended. Any suggestions? Thanks! -Modulok- ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor Have you looked on pypi? http://pypi.python.org/pypi?%3Aaction=search&term=genetic&submit=search -- Cheers. Mark Lawrence. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Genetic module recommendations?
On 18/08/12 20:24, Modulok wrote: List, I'm looking for a good genetic module. (Stable, well documented, pythonic, etc.) There probably is but asking on the tutor list - for beginners to Python - is less likely to find one than a request on the wider Python community at comp.lang.python. I'd try again there. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Genetic module recommendations?
Not sure if it meets your needs, but you should at least check out simuPOP. On Sat, Aug 18, 2012 at 12:24 PM, Modulok wrote: > List, > > I'm looking for a good genetic module. (Stable, well documented, pythonic, > etc.) > > I'm writing a breeding simulator where users select parent organisms to breed > based on traits they favor, e.g: eye color, height, etc. The human player is > the fitness function. I guess this is "artificial selection"? After breeding > the user gets an offspring which carries traits from its parents. > > It's only a game and a crude approximation of nature at best. However, the > algorithm has to be stable enough this can go on for several hundred > generations without entropy reducing to the point of haulting evolution. On > the > other hand, I don't want so much entropy that it's reduce to a random search. > > Before I write my own, I thought I'd ask to see if there was a third party, > de-facto standard Python genetic module. Or at least one that is highly > recommended. > > Any suggestions? > > Thanks! > -Modulok- > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Genetic module recommendations?
List, I'm looking for a good genetic module. (Stable, well documented, pythonic, etc.) I'm writing a breeding simulator where users select parent organisms to breed based on traits they favor, e.g: eye color, height, etc. The human player is the fitness function. I guess this is "artificial selection"? After breeding the user gets an offspring which carries traits from its parents. It's only a game and a crude approximation of nature at best. However, the algorithm has to be stable enough this can go on for several hundred generations without entropy reducing to the point of haulting evolution. On the other hand, I don't want so much entropy that it's reduce to a random search. Before I write my own, I thought I'd ask to see if there was a third party, de-facto standard Python genetic module. Or at least one that is highly recommended. Any suggestions? Thanks! -Modulok- ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Introduction
GUI? Moi? Hahahawellnow that you mention it, I wonder Ray On 08/18/2012 10:25 AM, Alan Gauld wrote: > On 18/08/12 17:36, Ray wrote: > >> I'm not certain why I'm diving into Python. My only coding experience >> has been using Bash scripts on my Ubuntu system for the past half dozen >> years, and so far I'm not particularly convinced that Python has any >> advantage FOR ME over what I have been using. > > Python may not give you any new capability for the kinds of things you > describe but what you should find is that the code although maybe a > smidge longer will be much easier to maintain. It will often run a > little bit faster too (occasionally a lot faster) and use less > computing resources. > > As with anything there will be a learning curve where it will feel a > lot easier to just "knock something together is bash" but in time the > Python approach will become more natural. Of course there will still > be plenty of room for OS one liners. I still use bash and awk for > short one-off jobs. But for things you do frequently Python is usually > a better long term bet. And of course you can overlay a nice GUI to > make those tools easier to use... > >> In my Bash scripts I make generous use of sed and grep, with the >> occasional use of awk > > Remember that python can do all of those jobs natively, so resist the > temptation to just use os.system() or the SubProcess module. Thee is a > place for those, but its not to do what awk/sed etc can do - thats > usually better kept within Python. > >> else would want...and although, as I look at my Python code so far, it's >> definitely hard-coded for a Linux system :-p. So much for that >> reasoning > > We look forward to seeing some of it in the future when you ask > questions. But bear in mind my comments about avoiding os.system() etc > unless its the last resort. > > HTH, ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Introduction
On 18/08/12 17:36, Ray wrote: I'm not certain why I'm diving into Python. My only coding experience has been using Bash scripts on my Ubuntu system for the past half dozen years, and so far I'm not particularly convinced that Python has any advantage FOR ME over what I have been using. Python may not give you any new capability for the kinds of things you describe but what you should find is that the code although maybe a smidge longer will be much easier to maintain. It will often run a little bit faster too (occasionally a lot faster) and use less computing resources. As with anything there will be a learning curve where it will feel a lot easier to just "knock something together is bash" but in time the Python approach will become more natural. Of course there will still be plenty of room for OS one liners. I still use bash and awk for short one-off jobs. But for things you do frequently Python is usually a better long term bet. And of course you can overlay a nice GUI to make those tools easier to use... In my Bash scripts I make generous use of sed and grep, with the occasional use of awk Remember that python can do all of those jobs natively, so resist the temptation to just use os.system() or the SubProcess module. Thee is a place for those, but its not to do what awk/sed etc can do - thats usually better kept within Python. else would want...and although, as I look at my Python code so far, it's definitely hard-coded for a Linux system :-p. So much for that reasoning We look forward to seeing some of it in the future when you ask questions. But bear in mind my comments about avoiding os.system() etc unless its the last resort. HTH, -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Introduction
Thanks for the welcome - I'll take a look at your recommendation. Ray On 08/18/2012 10:08 AM, Alex Clark wrote: > Hi Ray, > > On 2012-08-18 16:36:40 +, Ray said: > >> Hello. I am new to the mailing list and to Python. My knowledge of >> Python comes almost strictly from Nick Parlante's classes on YouTube >> that I've watched over the last week or so. >> >> I'm not certain why I'm diving into Python. My only coding experience >> has been using Bash scripts on my Ubuntu system for the past half dozen >> years, and so far I'm not particularly convinced that Python has any >> advantage FOR ME over what I have been using. >> >> In my Bash scripts I make generous use of sed and grep, with the >> occasional use of awk -- batch renaming of files, pulling exif date >> information from (manually) downloaded jpegs and adding that date to the >> front of file names, removing url '%' coding on photos and replacing it >> with "real" text, and the occasional foray into network stuff in >> conjunction with vlc or netcat. By no means am I a pro with Bash - only >> in the last six months have I really began to understand how to use >> arrays rather than temp files - but I can usually accomplish what I set >> out to do no matter how ugly the coding! >> >> The potential cross-platform use of Python is probably one of the major >> reasons for my interesttho' I don't think I write anything anyone >> else would want...and although, as I look at my Python code so far, it's >> definitely hard-coded for a Linux system :-p. So much for that >> reasoning >> >> But here I am - I am looking forward to learning from everyone, but keep >> the terminology as simple as possible, if you please - I'm only now >> beginning to understand what objects arelol > > > Welcome! Based on what you describe above, you might enjoy `Text > Processing in Python`: > > > - http://gnosis.cx/TPiP/ > > > Alex > > >> ___ >> Tutor maillist - Tutor@python.org >> To unsubscribe or change subscription options: >> http://mail.python.org/mailman/listinfo/tutor > > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Introduction
Hi Ray, On 2012-08-18 16:36:40 +, Ray said: Hello. I am new to the mailing list and to Python. My knowledge of Python comes almost strictly from Nick Parlante's classes on YouTube that I've watched over the last week or so. I'm not certain why I'm diving into Python. My only coding experience has been using Bash scripts on my Ubuntu system for the past half dozen years, and so far I'm not particularly convinced that Python has any advantage FOR ME over what I have been using. In my Bash scripts I make generous use of sed and grep, with the occasional use of awk -- batch renaming of files, pulling exif date information from (manually) downloaded jpegs and adding that date to the front of file names, removing url '%' coding on photos and replacing it with "real" text, and the occasional foray into network stuff in conjunction with vlc or netcat. By no means am I a pro with Bash - only in the last six months have I really began to understand how to use arrays rather than temp files - but I can usually accomplish what I set out to do no matter how ugly the coding! The potential cross-platform use of Python is probably one of the major reasons for my interesttho' I don't think I write anything anyone else would want...and although, as I look at my Python code so far, it's definitely hard-coded for a Linux system :-p. So much for that reasoning But here I am - I am looking forward to learning from everyone, but keep the terminology as simple as possible, if you please - I'm only now beginning to understand what objects arelol Welcome! Based on what you describe above, you might enjoy `Text Processing in Python`: - http://gnosis.cx/TPiP/ Alex ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- Alex Clark ยท http://pythonpackages.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Introduction
Hello. I am new to the mailing list and to Python. My knowledge of Python comes almost strictly from Nick Parlante's classes on YouTube that I've watched over the last week or so. I'm not certain why I'm diving into Python. My only coding experience has been using Bash scripts on my Ubuntu system for the past half dozen years, and so far I'm not particularly convinced that Python has any advantage FOR ME over what I have been using. In my Bash scripts I make generous use of sed and grep, with the occasional use of awk -- batch renaming of files, pulling exif date information from (manually) downloaded jpegs and adding that date to the front of file names, removing url '%' coding on photos and replacing it with "real" text, and the occasional foray into network stuff in conjunction with vlc or netcat. By no means am I a pro with Bash - only in the last six months have I really began to understand how to use arrays rather than temp files - but I can usually accomplish what I set out to do no matter how ugly the coding! The potential cross-platform use of Python is probably one of the major reasons for my interesttho' I don't think I write anything anyone else would want...and although, as I look at my Python code so far, it's definitely hard-coded for a Linux system :-p. So much for that reasoning But here I am - I am looking forward to learning from everyone, but keep the terminology as simple as possible, if you please - I'm only now beginning to understand what objects arelol ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor