Re: [Tutor] Fwd: class to function

2014-05-26 Thread rahmad akbar
thanks guys for the replies, Danny, your explanation helped alot, i'll have a go on Alan Gaud's tutorial. super thanks On Mon, May 26, 2014 at 9:04 AM, Danny Yoo d...@hashcollision.org wrote: -- Forwarded message -- From: diliup gabadamudalige dili...@gmail.com Date: Sunday,

[Tutor] class to function

2014-05-25 Thread rahmad akbar
Hi guys i am trying to understand this code: http://nbviewer.ipython.org/gist/BenLangmead/6665861 i understand functions quite alright . but i have no idea about classes yet. the code is written using class and i could not make much sense out of it. all this init and self thingy drive me crazy.

Re: [Tutor] trying to understand pattern matching code

2014-04-26 Thread rahmad akbar
now understand this bit. but i still couldnt get this line though D = (( D 1) + 1) masks [ c ] On Sat, Apr 26, 2014 at 12:37 AM, Dave Angel da...@davea.name wrote: rahmad akbar matbioi...@gmail.com Wrote in message: to Dave, i do i do the text mode? i had no idea this was on html

Re: [Tutor] trying to understand pattern matching code

2014-04-26 Thread rahmad akbar
hi Alan, your explanation clears most things, super thanks!! On Sat, Apr 26, 2014 at 10:58 AM, Alan Gauld alan.ga...@btinternet.com wrote: On 26/04/14 09:36, rahmad akbar wrote: but i still couldnt get this line though D = (( D 1) + 1) masks [ c ] Do you understand the concept of bit

[Tutor] trying to understand pattern matching code

2014-04-25 Thread rahmad akbar
hey guys, i am trying to understand this code pasted bellow, 1. what is line means? mask[c] |= bit 2. then the line bit *=2, this increment the bit to 2 for each character? 3. what is this line means? accept_state = bit //2 4. lastly, what is this scary line means? D = (( D 1) + 1) masks [ c def

Re: [Tutor] trying to understand pattern matching code

2014-04-25 Thread rahmad akbar
: On Apr 25, 2014 7:14 AM, rahmad akbar matbioi...@gmail.com wrote: hey guys, i am trying to understand this code pasted bellow, 1. what is line means? mask[c] |= bit This bitwise or. It sets the rightmost bit in masks[c] 2. then the line bit *=2, this increment the bit to 2 for each

[Tutor] next element in list

2014-02-26 Thread rahmad akbar
hey guys i have this file i wish to parse, the file looks something like bellow. there are only four entry here (AaaI, AacLI, AaeI, AagI). the complete file contains thousands of entries =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= REBASE, The Restriction Enzyme

Re: [Tutor] next element in list

2014-02-26 Thread rahmad akbar
David, Peter roger that and thanks so much!! On Wed, Feb 26, 2014 at 1:29 PM, Peter Otten __pete...@web.de wrote: rahmad akbar wrote: hey guys i have this file i wish to parse, the file looks something like bellow. there are only four entry here (AaaI, AacLI, AaeI, AagI

Re: [Tutor] if = 0

2014-02-11 Thread rahmad akbar
Alan, roger that and thanks a bunch. now replying with reply all, i am a super noob and thanks for the kind adivce On Tue, Feb 11, 2014 at 10:31 AM, ALAN GAULD alan.ga...@btinternet.comwrote: CCing the list. Please use Reply All when responding. thanks Alan, i understand now zero is False.

Re: [Tutor] string indexing

2014-01-20 Thread rahmad akbar
Spir and Peter, thanks for the specifics, super helpful. Alan, super thanks for the general advice, you guys are awesome!! On Mon, Jan 20, 2014 at 5:34 AM, tutor-requ...@python.org wrote: Send Tutor mailing list submissions to tutor@python.org To subscribe or unsubscribe via the

[Tutor] string indexing

2014-01-19 Thread rahmad akbar
hey guys, super noob here, i am trying to understand the following code from google tutorial which i failed to comprehend #code start # E. not_bad # Given a string, find the first appearance of the # substring 'not' and 'bad'. If the 'bad' follows # the 'not', replace the whole 'not'...'bad'