[Tutor] Python

2018-12-20 Thread Mary Sauerland
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

[Tutor] noob

2010-11-29 Thread Mary
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

[Tutor] Decorator listing

2010-07-27 Thread Mary Morris
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

[Tutor] decorators

2010-07-23 Thread Mary Morris
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

Re: [Tutor] append, list and variables

2010-07-16 Thread Mary Morris
: > 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

[Tutor] append, list and variables

2010-07-15 Thread Mary Morris
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

[Tutor] Parsing through decorators program

2010-07-15 Thread Mary Morris
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

[Tutor] Decorators revised

2010-06-30 Thread Mary Morris
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

[Tutor] Decorators

2010-06-30 Thread Mary Morris
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

Re: [Tutor] what does the "@" operator mean?

2008-12-15 Thread Mary Lou Knack
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

[Tutor] what does the "@" operator mean?

2008-12-15 Thread Mary Lou Knack
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___

[Tutor] problem running iptest on windows

2008-11-14 Thread 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