Thank you, thank you thank you! I'm now well on my way to solving my 35th
problem!! The wiki is fantastic, I thought "of course - I should have known
that!" It's easy when you know how.
Thanks again, especially for the prompt replies
2008/12/24 bob gailer
> Kent Johnson wrote:
>
>> On Tue, Dec 2
Hello,
I am a beginner with Python but I understand a lot of linguistics. I am a
high school student. I needed help (from the beginning) making a word frequency
chart that I can use to chart out the numerical frequencies of words. Usually I
can understand the code if it is annotated well, bu
Kent Johnson wrote:
On Tue, Dec 23, 2008 at 8:20 PM, col speed wrote:
I've written a "division" function that gives more decimal places than the
one already in python. What my poor old brain can't work out is how to find
a "recurring cycle" which isn't disastrously complicated (as the cycle
On Tue, Dec 23, 2008 at 8:20 PM, col speed wrote:
> I've written a "division" function that gives more decimal places than the
> one already in python. What my poor old brain can't work out is how to find
> a "recurring cycle" which isn't disastrously complicated (as the cycle
> doesn't always in
Hello there, I am learning python as a hobby in my spare time. I enjoy doing
"project euler", not that I am any good at maths, but it gives me problems
to solve in python!
Please Note: I do not expect (or want) you to give me the solution, if you
could just point me in the right direction - that wo
"Kent Johnson" wrote
for filename in os.listdir(directory):
result = re.match(s, filename)
print result
You never open and read the files. You are searching for the pattern
in the filename, not in the contents of the file.
Also note that match() only searches starting
On Tue, Dec 23, 2008 at 3:10 PM, Matt Herzog wrote:
>for filename in os.listdir(directory):
>result = re.match(s, filename)
>print result
You never open and read the files. You are searching for the pattern
in the filename, not in the contents of the file.
If there is no
I'm forwarding this to the list.
Please always reply-all so a copy goes to the list.
johnf wrote:
On Monday 22 December 2008 03:03:44 pm you wrote:
More thoughts on converting VFP to Python:
line-by-line can take into account control structures. One just
increases or decreases the indent w
Hi All.
I want to write a script that will emulate grep to some extent. This is just an
exercise for me. I want to run the script like this:
./pythongrep directory searchstring
Just like grep, I want it to print: filename, instance_of_match
As of now, the script can't find anything I tell it t
"moham ilias" wrote in message
news:74b58e470812230730n4c3c5d1eg9f44a87b1bf9...@mail.gmail.com...
can anybody help me to get the example codes for some existing
python
projects. pls help in this regard
For simple examples try the Useless Python web site.
In particular check out the link t
On Tue, Dec 23, 2008 at 10:30 AM, moham ilias wrote:
> can anybody help me to get the example codes for some existing python
> projects. pls help in this regard
I'm not sure I understand your question. Do you want examples to look at?
Most of the Python standard library is written in Python so t
OK, going on Kent's post:
from urllib import urlopen
class fetch(object):
def __init__(self, *args):
self.response = urlopen(*args)
self.content = self.response.read()
I forgot urlopen was a function. It made sense in my head for it to
be a class, instead of _returning_ a c
can anybody help me to get the example codes for some existing python
projects. pls help in this regard
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
On Tue, Dec 23, 2008 at 9:31 AM, Omer wrote:
from urllib import urlopen
class fetch(urlopen):
> ... def __init__(self,*args):
> ... urlopen.__init__(self, *args)
> ... self.content = self.read()
> ...
>
> Traceback (most recent call last):
> File "", line 1, in
>
Hey!
Thx for the help,
@Martin,
At the moment my only need is basic retrievals of source code of basic files
from the internet, so no need for urllib2 or response objects just yet.
Now, copying and pasting line by line into the interactive mode I get this:
>>> from urllib import urlopen
>>> cl
Your advice is spot on and I'm well on my way... your Windows installation
advice should be in the readme, if anyone's listening :-)
Thanks again,
Gareth
--
View this message in context:
http://www.nabble.com/MP3Info-class-usage-tp20934673p21143262.html
Sent from the Python - tutor mailing list
> I see I have to do a loop inside a loop and that this the right expression
> if word == 'ar' or word == 'ko':
>
> but this is not:
> if word == 'ar' or 'ko':
In the last example: as the 'or' operator has the least priority, it
will be applied last. Which means that all other operations in the
On Tue, Dec 23, 2008 at 2:10 AM, Eric Abrahamsen
wrote:
> Hi there,
>
> I'm configuring a python command to be used by emacs to filter a buffer
> through python markdown, and noticed something strange. If I run this
> command in the terminal:
>
> python -c "import sys,markdown; print
> markdown.ma
18 matches
Mail list logo