Re: [Tutor] map one file and print it out following the sequence

2011-10-11 Thread lina
I tried to write one (not working one) as below, so many problems here. #!/usr/bin/python3 import os.path LINESTOSKIP=0 CHAINID="CDEFGHI" INFILENAME="pdbone.pdb" DICTIONARYFILE="itpone.itp" mapping={} valuefromdict={} def sortfile(): for chainid in CHAINID: sortoneblock(chainid) d

[Tutor] Keyboard Module

2011-10-11 Thread Ryan Strunk
Hello everyone, I'm still hard at work on this boxing game; I know, I think it's taking forever too. I've recently run into some trouble with my current keyboard handler, and I'm hoping someone here might have a recommendation as to what I could use to handle keyboard input for this and future proj

Re: [Tutor] inheritance, python and pygame

2011-10-11 Thread Steven D'Aprano
rail shafigulin wrote: i'm trying to learn OOP, python and pygame at the same time. so far it has been ok, but i stumbled onto a problem Hugo has already pointed out that you mispelled __init__, and that in Python 3 you don't need to explicitly provide arguments to super(). class BaseSprite

Re: [Tutor] vcf_files and strings

2011-10-11 Thread Hs Hs
http://www.1000genomes.org/node/101 From: Alan Gauld To: tutor@python.org Sent: Tuesday, October 11, 2011 1:52 PM Subject: Re: [Tutor] vcf_files and strings On 11/10/11 18:16, Hs Hs wrote: > > VCF - Variant Call Format > ... > > Nothing special except t

Re: [Tutor] inheritance, python and pygame

2011-10-11 Thread rail shafigulin
On Tue, Oct 11, 2011 at 10:56 AM, Hugo Arts wrote: > On Tue, Oct 11, 2011 at 4:20 PM, rail shafigulin > wrote: > > i'm trying to learn OOP, python and pygame at the same time. so far it > has > > been ok, but i stumbled onto a problem > > > > here is the code that causes problems > > > > #!/usr/

Re: [Tutor] vcf_files and strings

2011-10-11 Thread Alan Gauld
On 11/10/11 18:16, Hs Hs wrote: VCF - Variant Call Format ... Nothing special except that a genetics or any biologist will understand this - nothing special! The problem is that this list, being for beginners to Python, is a bit short on Geneticists and Biologists! :-) So you need to expla

Re: [Tutor] vcf_files and strings

2011-10-11 Thread Hs Hs
VCF - Variant Call Format VCF files are nothing special but tab delim files describing the genetic mutations, friquencies and other base information (bases here mean ATGC pertaining to DNA). These files are generated by variety of genome sequence data analysis pipelines.  MIT and Haplotype

Re: [Tutor] inheritance, python and pygame

2011-10-11 Thread Hugo Arts
On Tue, Oct 11, 2011 at 4:20 PM, rail shafigulin wrote: > i'm trying to learn OOP, python and pygame at the same time. so far it has > been ok, but i stumbled onto a problem > > here is the code that causes problems > > #!/usr/bin/python3.1 > import pygame > pygame.init() > > class BaseSprite(pyga

[Tutor] inheritance, python and pygame

2011-10-11 Thread rail shafigulin
i'm trying to learn OOP, python and pygame at the same time. so far it has been ok, but i stumbled onto a problem here is the code that causes problems #!/usr/bin/python3.1 import pygame pygame.init() class BaseSprite(pygame.sprite.Sprite): def __init(self, imagefile): super(type(self), se

Re: [Tutor] swapping list elements based on some criterion

2011-10-11 Thread Emad Mohamed
On Tue, Oct 11, 2011 at 1:21 AM, Steven D'Aprano wrote: > Wayne Werner wrote: > >> 2011/10/7 Emad Nawfal (عمـ نوفل ـاد) >> >> I want to re-structure English so that the adjectives appear after the >>> nouns, instead of before. >>> If I have a sentence like: >>> >>> The tall man plays well >>> I