IMO the regex is not too bad; I will not use it for this job -- typing
a 50+ character string
is more painful (and more error prone) than writing 5--10 lines of code.
That said, if it made you look at regexes deeply and beyond the simple
explanation
of what each character (*, ., +) does I think th
Oh. Sorry. It's 500 lines, so I'll just post an example. Windows Vista
and Python 3, just because I forgot.
class K:
def __init__(self): doThis()
def doThis(self): print("Hi.")
k = K()
>From what I understand by your help, the code
class K:
def __init__(self): self.doThis()
def doThis(s
Hi,
Could you post a copy of the code you are working on, so we can help you
better with this?
Usually, when calling a method in the same class you use the syntax:
self.method_name()
'self' refers to an attribute or method within the same class.
Sorry, if this does not help you.
Regards
On Sun, Nov 6, 2011 at 9:59 PM, Max S. wrote:
> Hi. I'm working on a project for my friend, but I'm running into errors.
> No matter what I do, I can't seem to get one method to execute another
> method in the same class. Is there a way that I can do this? Thanks.
>
Yes, you can do this, and i
Hi. I'm working on a project for my friend, but I'm running into errors.
No matter what I do, I can't seem to get one method to execute another
method in the same class. Is there a way that I can do this? Thanks.
___
Tutor maillist - Tutor@python.org
Dear Terry,
Thank you for your advise, I'll try to implement it.
D.
2011/11/6 Terry Carroll
> On Sat, 5 Nov 2011, Dinara Vakhitova wrote:
>
> I need to find the words in a corpus, which letters are in the
>> alphabetical
>> order ("almost", "my" etc.)
>> I started with matching two consecutiv
On Sat, 5 Nov 2011, Dinara Vakhitova wrote:
I need to find the words in a corpus, which letters are in the alphabetical
order ("almost", "my" etc.)
I started with matching two consecutive letters in a word, which are in
the alphabetical order, and tried to use this expression: ([a-z])[\1-z], but
On 06/11/11 10:23, Sarma Tangirala wrote:
I'm sorry. Didn't notice the python 3 part, I just joined the list and
did not look at the OPs post. Sorry about that.
welcome to the list :-)
Please bear with me on this, but does the following not print "end" for
every iteration of "items"?
for it
On 6 November 2011 16:57, Dave Angel wrote:
> On 11/06/2011 05:23 AM, Sarma Tangirala wrote:
>
>>
>>
>
> I just joined the list and did
>>
>
> WELCOME to the list. I should have said that first.
>
> --
>
> DaveA
>
>
Ha! Sorry for the noise again!
--
Sarma Tangirala,
Class of 2012,
Departmen
On 11/06/2011 05:23 AM, Sarma Tangirala wrote:
I just joined the list and did
WELCOME to the list. I should have said that first.
--
DaveA
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.pyth
On 11/06/2011 05:23 AM, Sarma Tangirala wrote:
python 3
.
Please bear with me on this, but does the following not print "end" for
every iteration of "items"?
for item in items:
print(item, end="")
Sure it does. And the value of end is the empty string. So it prints
nothing but th
I am so very sorry for the noise. I was careless in reading the OPs post.
On 6 November 2011 15:53, Sarma Tangirala wrote:
>
>
> On 6 November 2011 15:47, Dave Angel wrote:
>
>> On 11/06/2011 04:45 AM, Sarma Tangirala wrote:
>>
>>> On 6 November 2011 13:11, Peter Otten<__pete...@web.de> wrote:
On 6 November 2011 15:47, Dave Angel wrote:
> On 11/06/2011 04:45 AM, Sarma Tangirala wrote:
>
>> On 6 November 2011 13:11, Peter Otten<__pete...@web.de> wrote:
>>
>> Joe Batt wrote:
>>>
>>> I am learning Python 3 and programming and am very new so please bear
>>>
>>>
>>> for item in it
On 11/06/2011 04:45 AM, Sarma Tangirala wrote:
On 6 November 2011 13:11, Peter Otten<__pete...@web.de> wrote:
Joe Batt wrote:
I am learning Python 3 and programming and am very new so please bear
for item in items:
... print(item, end="WHATEVER")
Another way of writing the above.
On 6 November 2011 13:11, Peter Otten <__pete...@web.de> wrote:
> Joe Batt wrote:
>
> > I am learning Python 3 and programming and am very new so please bear
> with
> > me…
> > I am writing a program to pull out specific characters in a sequence and
> > then print then out. So far so good however
Joe Batt wrote:
> I am learning Python 3 and programming and am very new so please bear with
> me…
> I am writing a program to pull out specific characters in a sequence and
> then print then out. So far so good however when the characters are
> printed out they pint on separate lines as opposed t
16 matches
Mail list logo