> hello everyone. i was looking at python docs and i came across this
>
> letter ::=
> lowercase | uppercase
>
> what does ::= mean?
you must be referring to identifiers and keywords page at
http://docs.python.org/ref/identifiers.html
take it as meaning, "may expand to." in other w
> Rumor has it that Bernd Prager may have mentioned these words:
>
> [snippety]
>
>> # curses.delwin(s) <-- that doesn't exist :-/
>
> I've *only* done curses in python, so quite often I don't know the C
> analogue, but try:
>
> curses.endwin()
>
I am looking for a functionality that destroys o
> Anothet linux noobie here :)
> How do I uninstall python? I use the SimplyMepis flavor of linux.
Hi Hans,
Ask the Mepis folks about this. I understand that Mepis is a Debian-based
distribution, and you should be able to use the 'dpkg' command to drop
debs.
That being said, I have no idea if M
> >>> import re
> >>> file = open("file1.html")
> >>> data = file.read()
> >>> catRe = re.compile(r'Title:(.*?)')
>
> # I searched around the docs on regexes I have and found that the "r"
> # after the re.compile(' will detect repeating words.
Hi Oswaldo,
Actually, no. What you're seeing is a "
Anothet linux noobie here :)
How do I uninstall python? I use the SimplyMepis flavor of linux.
The reason I want to uninstall python is that its an old version (2.3).
Not that I particularly want the new version, but the IDLE installation
that I downloaded reports all kinds of errors because appar
> ok so assuming I had a dictionary with 1key that contained a list like
> so... dictionary[key1][0]
>
> How would I increment it or assign it if it didn't exist. I assumed like
> this. dict[key1][0] = dictionary.get(key1[0],0) + X
Hi Paul,
Given a dictionary d and some arbitrary key k, let's ass
OK before I got in to the loop in the script I decided to try first with one
file and I have some doubts with the some parts in the script,plus I got an
error:
>>> import re
>>> file = open("file1.html")
>>> data = file.read()
>>> catRe = re.compile(r'Title:(.*?)')
# I searched around the docs on
On Wednesday 28 December 2005 11:30 am, Kent Johnson wrote:
> Python lists don't create new elements on assignment (I think Perl lists
> do this?) so for example
> dictionary[(key1, key2)][10] = X
ok so assuming I had a dictionary with 1key that contained a list like so...
dictionary[key1][0]
How
[EMAIL PROTECTED] wrote:
> The HTML comes from a bunch of files which are saved in my computer.They
> were generated by a php script and I want to extract certain fields for
> insertion in to a MySQL db.
> I`m trying to get the hang of correctly opening the files first :)
> There are about a thousa
The HTML comes from a bunch of files which are saved in my computer.They
were generated by a php script and I want to extract certain fields for
insertion in to a MySQL db.
I`m trying to get the hang of correctly opening the files first :)
There are about a thousand of them so I have to use a loop
Rumor has it that Bernd Prager may have mentioned these words:
[snippety]
> # curses.delwin(s) <-- that doesn't exist :-/
I've *only* done curses in python, so quite often I don't know the C
analogue, but try:
curses.endwin()
I'm not sure if that's exactly what your looking for, but if no
Hi,
I'm trying to get my hands on some curses experiences in Python.
The examples I found don't really tell me how to get rid of subwindows and
restore the underlying window again. Is there something that replaces the
curses functionality "delwin"?
Thanks for any help!
Here's my example:
#!/usr/
lk
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
[EMAIL PROTECTED] wrote:
> I`ll also take a look at regexes as recommended by Kent Johnson to see if
> it`ll work here.My guess is this is the way to go since the data I need is
> always in the same line number in the HTML source.So I could just go to the
> specific line numbers, look for my data a
14 matches
Mail list logo