ich is just counting the words
print(count_same_words)
Best,
Mary
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Dear Tutors:
Thank you for your time.I am trying to do first assignment (ps1a+b) onMIT open
study, finding the 1000th prime in part a and doing something with import.math
and logs in part b, but I'm not there yet. The little build i did to find
primes does fine until, for some reason, 95 shows
I'm writing a program with python that compiles a list of decorators from my
company's source code. I'm new to python and need help with the following:
I'm trying to make the program find ".com" in any lines and not include them
in the list of decorators that gets returned. THis is because I had
I'm trying to compile a list of decorators from the source code at my
office.
I did this by doing a
candidate_line.find("@")
because all of our decorators start with the @ symbol. The problem I'm
having is that the email addresses that are included in the comments are
getting included in the lis
:
> On 7/15/2010 11:32 AM Mary Morris said...
>
> Hi,
>> I'm working on a program that parses through all of our source code at my
>> office and i need to get my code to print a list of the decorators. I
>> used
>> a find(@) to locate all the decorators, but I
Hi,
I'm working on a program that parses through all of our source code at my
office and i need to get my code to print a list of the decorators. I used
a find(@) to locate all the decorators, but I need to assign them to a
variable somehow to get it to print a list. How do I do this? How do I
ass
int all of the
names of the decorators that it finds. So far, this is what I have written:
# Written by Mary Morris
# July 2010
#
import os
import warnings
import traceback
##
#
#
def get_py_files(path):
ret = []
if path[-1] != '/':
path += '/'
files = os.listdir(pa
I need help with the following task for my new job:
The code we're using is written in python, which I have never worked with
before.
Our AMS source code relies heavily on decorators.Things look something like
this:
@decomaker(argA, argB, ...)
def func(arg1, arg2, ...):
pass
which is the sa
I need help with the following task for my new job:
The code we're using is python, which I have never worked with before.
Our AMS source code relies heavily on decorators.Things look something like
this:
@decomaker(argA, argB, ...)
def func(arg1, arg2, ...):
pass
which is the same as
func
Thanks Chris & Marc
I certainly don't need to know about decorators at this stage of my
development. Maybe I'll be able to avoid them entirely
Mary Lou
- Original Message -
From: "Chris Calloway"
To:
Sent: Monday, December 15, 2008 2:22 PM
Subject: R
local (windows) help said it couldn't search for that phrase (@) and the online
search turned up a bazillion hits and I don't know how to refine the search.
Knowledge isn't necessary for me to proceed, but it sure would be nice. Thanks.
Mary Lou Knack___
se.py in the
C:\Python25\Lib\site-packages\IPython directory.
Mary Lou___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
12 matches
Mail list logo