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
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
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
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
:
> 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
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
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