On Feb 11, 6:05 pm, Ayaz Ahmed Khan <[EMAIL PROTECTED]> wrote:
> "mtuller" typed:
>
> > I have also tried Beautiful Soup, but had trouble understanding the
> > documentation
>
> As Gabriel has suggested, spend a little more time going through the
> documentation of BeautifulSoup. It is pretty easy
I'm playing around with the 'irclib' library working with the first
example at
http://www.devshed.com/c/a/Python/IRC-on-a-Higher-Level-Concluded/
When copying the example verbatim and running it from a console it works
flawlessly. It connects to the server, join the channel and sits there
'for
On Feb 11, 1:35�am, Steve Holden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Feb 10, 4:07?pm, "Ben Sizer" <[EMAIL PROTECTED]> wrote:
> >> On Feb 10, 6:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> >>> On Feb 9, 11:39?am, "Ben Sizer" <[EMAIL PROTECTED]> wrote:
> Hop
[EMAIL PROTECTED] wrote:
> On Feb 11, 1:35�am, Steve Holden <[EMAIL PROTECTED]> wrote:
[...]
After all, they have already given freely and generously, and if they
choose
not to give more on top of that, it's really up to them.
>>> Right. Get people to commit and then abandon them. N
On Sun, 11 Feb 2007 07:05:30 +, Steve Holden wrote:
> Geoff Hill wrote:
>> What's the way to go about learning Python's regular expressions? I feel
>> like such an idiot - being so strong in a programming language but knowing
>> nothing about RE.
>>
>>
> In fact that's a pretty smart stan
On Feb 11, 9:25 pm, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> On Sun, 11 Feb 2007 07:05:30 +, Steve Holden wrote:
> > Geoff Hill wrote:
> >> What's the way to go about learning Python's regular expressions? I feel
> >> like such an idiot - being so strong in a programming language but knowin
On Sun, 11 Feb 2007 01:08:21 -0800, [EMAIL PROTECTED] wrote:
>> An update is in the works for those
>> using more recent releases,
>
> That's good news, although the responsible thing
> to do was not relaease version 2.5 until such issues
> are resolved.
I realize you're a Windows user, and a Wi
I'm currently investigating a problem that can hit you in TurboGears
when Kid template modules are reloaded in the background, because in
certain situations, global variables suddenly are set to None values.
I tracked it down to the following behavior of Python. Assume you have a
module hello.p
gregarican wrote:
> On Feb 10, 6:26 pm, "Geoff Hill" <[EMAIL PROTECTED]> wrote:
>> What's the way to go about learning Python's regular expressions? I feel
>> like such an idiot - being so strong in a programming language but knowing
>> nothing about RE.
>
> I highly recommend reading the book "Ma
Can it be done, and if yes - how?
--
http://mail.python.org/mailman/listinfo/python-list
volcano schrieb:
> Can it be done, and if yes - how?
>
Define address. Are you talking about URLs? File paths? Postal
addresses? Memory addresses? Whatever addresses?
I'm afraid the people on this list can't read your thoughts...
--
http://mail.python.org/mailman/listinfo/python-list
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Sunday, February 11, 2007 5:10 PM
Subject: Python-list Digest, Vol 41, Issue 170
> Send Python-list mailing list submissions to
> python-list@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail
azrael wrote:
> Since i'm new on this forum, and first time meeting a python comunity,
> i wanted to ask you for your python editors.
>
> Im looking for some good python editor, with integrated run function,
> without having to set it up manualy like komodo.
> I found the pyscripter, and it has al
azrael wrote:
> Since i'm new on this forum, and first time meeting a python comunity,
> i wanted to ask you for your python editors.
>
> Im looking for some good python editor, with integrated run function,
> without having to set it up manualy like komodo.
> I found the pyscripter, and it has al
On Feb 11, 2:21 pm, Maël Benjamin Mettler <[EMAIL PROTECTED]> wrote:
> volcano schrieb:
>
> > Can it be done, and if yes - how?
>
> Define address. Are you talking about URLs? File paths? Postal
> addresses? Memory addresses? Whatever addresses?
> I'm afraid the people on this list can't read your
"mtuller" <[EMAIL PROTECTED]> on 10 Feb 2007 15:03:36 -0800 didst
step forth and proclaim thus:
> Alright. I have tried everything I can find, but am not getting
> anywhere. I have a web page that has data like this:
[snip]
> What is show is only a small section.
>
> I want to extract the 33,69
In <[EMAIL PROTECTED]>, volcano wrote:
> On Feb 11, 2:21 pm, Maël Benjamin Mettler <[EMAIL PROTECTED]> wrote:
>> volcano schrieb:
>>
>> > Can it be done, and if yes - how?
>>
>> Define address. Are you talking about URLs? File paths? Postal
>> addresses? Memory addresses? Whatever addresses?
>> I'
On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> In <[EMAIL PROTECTED]>, volcano wrote:
> > On Feb 11, 2:21 pm, Maël Benjamin Mettler <[EMAIL PROTECTED]> wrote:
> >> volcano schrieb:
>
> >> > Can it be done, and if yes - how?
>
> >> Define address. Are you talking about URL
"Johny" <[EMAIL PROTECTED]> on 10 Feb 2007 05:29:23 -0800 didst step
forth and proclaim thus:
> I need to find all the same words in a text .
> What would be the best idea to do that?
I make no claims of this being the best approach:
def findOccurances(a_string, word):
Mark Dufour wrote:
> This
> latest release adds basic support for iterators and generators
Oooh, I may try our miniaxon tutorial against shed skin in that case.
(ie http://kamaelia.sourceforge.net/MiniAxon/)
Great to see you're plowing through this BTW !
Michael.
--
Kamaelia Project Lead
http
does any one have any expirience with mmorph module. At first i was
unable to run it because some file was missing (instalation problem),
but i managed it. but, did anyone manage to save the new mask, or
anything created with it.
--
http://mail.python.org/mailman/listinfo/python-list
On 2007-02-10, Johny <[EMAIL PROTECTED]> wrote:
> I need to find all the same words in a text .
> What would be the best idea to do that?
> I used string.find but it does not work properly for the words.
> Let suppose I want to find a number 324 in the text
>
> '45 324 45324'
>
> there is only o
volcano wrote:
> On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
...
> My goal is to sync program with external equipment through a register
> defined as an absolute physical address. I know how to do it from C -
> was curious if it may be done from Python. Can it be done?
volcano wrote:
> On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
[...]
>> What's your goal? What do you expect at the memory address you want to
>> access?
>>
>> Ciao,
>> Marc 'BlackJack' Rintsch
>
> My goal is to sync program with external equipment through a regi
In order to find all the words in a text, you need to tokenize it first.
The rest is a matter of calling the count method on the list of
tokenized words. For tokenization look here:
http://nltk.sourceforge.net/lite/doc/en/words.html
A little bit of warning: depending on what exactly you need to do,
I write this simply code that should give me the access to private page with
htaccess using a proxy, i don't known because it's wrong...
import urllib,urllib2
#input url
url="http://localhost/private/file";
#proxy set up
proxy_handler = urllib2.ProxyHandler({'http': 'http://myproxy:'})
#h
Hi, I am using gvim, and am looking for a way to tell gvim to
automatically wrap long lines into multiple lines ( by automatically
inserting the newline character) when I edit doc strings. I am sure
somebody must have done this.
-
Suresh
--
http://mail.python.org/mailman/listinfo/python-list
On 2007-02-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi, I am using gvim, and am looking for a way to tell gvim to
> automatically wrap long lines into multiple lines ( by
> automatically inserting the newline character) when I edit doc
> strings. I am sure somebody must have done this.
I
On Feb 11, 3:46 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> volcano wrote:
> > On Feb 11, 2:46 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> [...]
> >> What's your goal? What do you expect at the memory address you want to
> >> access?
>
> >> Ciao,
> >> Marc 'BlackJack' Rints
John Machin wrote:
> One can even use ElementTree, if the HTML is well-formed. See below.
> However if it is as ill-formed as the sample (4th "td" element not
> closed; I've omitted it below), then the OP would be better off
> sticking with Beautiful Soup :-)
or get the best of both worlds:
On Feb 11, 7:01 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote:
> On 2007-02-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > Hi, I am using gvim, and am looking for a way to tell gvim to
> > automatically wrap long lines into multiple lines ( by
> > automatically inserting the newline character)
Steve Holden <[EMAIL PROTECTED]> writes:
> > My goal is to sync program with external equipment through a register
> > defined as an absolute physical address. I know how to do it from C -
> > was curious if it may be done from Python. Can it be done?
> >
> No. You'd have to use a compiled extensio
On Feb 11, 5:53 am, Christoph Zwerschke <[EMAIL PROTECTED]> wrote:
> I'm currently investigating a problem that can hit you in TurboGears
> when Kid template modules are reloaded in the background, because in
> certain situations, global variables suddenly are set to None values.
>
> I tracked it d
On 2007-02-11, volcano <[EMAIL PROTECTED]> wrote:
> Can it be done,
Yes.
> and if yes - how?
/proc/kmem
--
Grant Edwards grante Yow! Nipples, dimples,
at knuckles, NICKLES,
visi.com
On Feb 11, 5:13 am, Samuel Karl Peterson
<[EMAIL PROTECTED]> wrote:
> "Johny" <[EMAIL PROTECTED]> on 10 Feb 2007 05:29:23 -0800 didst step
> forth and proclaim thus:
>
> > I need to find all the same words in a text .
> > What would be the best idea to do that?
>
> I make no claims of this being t
krishnakant Mane wrote in message
news:[EMAIL PROTECTED]
> On 11/02/07, Vishal Bhargava <[EMAIL PROTECTED]> wrote:
>> Use Report Lab...
> I mentioned in my first email that I am already using reportlab.
> but I can only generate pdf out of that.
> I want to display it on screen and I also will be
I need access to 2*n random choices for two types
subject to a constraint that in the end I have
drawn n of each. I first tried::
def random_types(n,typelist=[True,False]):
types = typelist*n
random.shuffle(types)
for next_type in types:
yield next_type
This works but has som
On Feb 11, 4:24 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Feb 11, 1:35?am, Steve Holden <[EMAIL PROTECTED]> wrote:
> [...]
> After all, they have already given freely and generously, and if they
> choose
> not to give more on top of that, it's rea
On Feb 11, 5:33?am, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> On Sun, 11 Feb 2007 01:08:21 -0800, [EMAIL PROTECTED] wrote:
> >> An update is in the works for those
> >> using more recent releases,
>
> > That's good news, although the responsible thing
> > to do was not relaease version 2.5 until
> That's a little harsh -- regexes have their place, together with pointer
> arithmetic, bit manipulations, reverse polish notation and goto. The
> problem is when people use them inappropriately e.g. using a regex when a
> simple string.find will do.
>
> > A quote attributed variously to
> > Tim
well yes,
I need to view reports on line and also print them from within my app.
so yes I need to display the pdf in my app and print it as well.
regards.
Krishnakant
--
http://mail.python.org/mailman/listinfo/python-list
"Alan Isaac" <[EMAIL PROTECTED]> writes:
> I need access to 2*n random choices for two types
> subject to a constraint that in the end I have
> drawn n of each. I first tried::
You mean you basically want to generate 2*n bools of which exactly
half are True and half are False? Hmm (untested):
f
Hi;
I would like to automatically delivery, I seek a script in python which will
be excecute from a Windows station to allows via sftp:
1- to connect to a Linux server for storing of the files
2- Next execute on the Linux server, some actions: Copy, gzip, mv etc...
3- to use a config file for
Does anyone know what is needed to install to get epydoc to generate pdf
files on Windows. Besides epydoc itself of course.
Maybe there is a more appropriate forum to ask newbie questions about
epydoc?
Thanks,
Don.
--
http://mail.python.org/mailman/listinfo/python-list
jwz> Some people, when confronted with a problem, think 'I know, I'll
jwz> use regular expressions.' Now they have two problems.
dbl> So as a newbie, I have to ask So I guess I don't really
dbl> understand why they are a "bad idea" to use.
Regular expressions are fine in th
En Sun, 11 Feb 2007 13:35:26 -0300, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> escribió:
>> (Steven?)
>> That's a little harsh -- regexes have their place, together with pointer
>> arithmetic, bit manipulations, reverse polish notation and goto. The
>> problem is when people use them inappropriately
Hi, I'm using ElementTree for some RSS processing. The point where I
face a problem is that within an I need to add another
child node (in addition to etc) which is a well-formed XML
document (Chemical Markup Language to be precise).
So my code looks like:
import cElementTree as ET
c = ope
Yes I know about reload(), but TurboGears (TurboKid) does not use it and
the docs say that removing modules from sys.module is possible to force
reloading of modules. I don't want to rewrite everything since it's a
pretty complex thing with modules which are compiled from templates
which can de
En Sun, 11 Feb 2007 15:15:21 -0300, Rajarshi <[EMAIL PROTECTED]>
escribió:
> Hi, I'm using ElementTree for some RSS processing. The point where I
> face a problem is that within an I need to add another
> child node (in addition to etc) which is a well-formed XML
> document (Chemical Markup La
On Sunday 11 February 2007 11:47, soussou97 wrote:
> Hi;
>
> I would like to automatically delivery, I seek a script in python which
> will be excecute from a Windows station to allows via sftp:
>
> 1- to connect to a Linux server for storing of the files
> 2- Next execute on the Linux server, some
On Sunday 11 February 2007 11:47, soussou97 wrote:
> Hi;
>
> I would like to automatically delivery, I seek a script in python which
> will be excecute from a Windows station to allows via sftp:
>
> 1- to connect to a Linux server for storing of the files
> 2- Next execute on the Linux server, some
Hi Im new to python and I desperately need help with this task
This is everything of what I need to do...
The program to be written in Python obviously..
The program should support brute-forcing of the authentication process
for a Telnet server via a dictionary attack.
The python pro
darren112 wrote:
> Hi Im new to python and I desperately need help with this task
> This is everything of what I need to do...
>
> The program to be written in Python obviously..
>
> The program should support brute-forcing of the authentication process
> for a Telnet server via a di
well, this sounds funn.
1) dont expect someone to do your homework.
2) dont expect someone to do dirty homework
3) dont expect someone to do your home work especially when it's
something that could make you problems, or the person that is helping
you
4) from your message i can "read" that you need
On Sunday 11 February 2007 13:40, darren112 wrote:
> Hi Im new to python and I desperately need help with this task
> This is everything of what I need to do...
>
> The program to be written in Python obviously..
>
> The program should support brute-forcing of the authentication process
En Sun, 11 Feb 2007 15:56:16 -0300, Christoph Zwerschke <[EMAIL PROTECTED]>
escribió:
> Yes I know about reload(), but TurboGears (TurboKid) does not use it and
> the docs say that removing modules from sys.module is possible to force
> reloading of modules. I don't want to rewrite everything si
En Sun, 11 Feb 2007 16:40:45 -0300, darren112 <[EMAIL PROTECTED]>
escribió:
> The program should support brute-forcing of the authentication process
> for a Telnet server via a dictionary attack.
You should first read the Python Tutorial. After you get proficient with
the basic programming st
On Feb 12, 3:35 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> > That's a little harsh -- regexes have their place, together with pointer
> > arithmetic, bit manipulations, reverse polish notation and goto. The
> > problem is when people use them inappropriately e.g. using a regex when a
> >
Alessandro Fachin <[EMAIL PROTECTED]> writes:
> I write this simply code that should give me the access to private page with
> htaccess using a proxy, i don't known because it's wrong...
[...]
> i get no access on access.log from apache2 and nothing from the proxy in
> tcpdump log. If i use only
Hey yo kiddie, I hope that you are using the web for some time. So you
can get the meaning from my post.:
LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL,
ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL,
ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL, ROTF, LOL,
Robin Becker <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED] wrote:
> > John> MySQLdb isn't fully supported for Python 2.5 yet, and there's no
> > John> tested Windows executable available, although there's an untested
> > John> version from a World of Warcraft guild available.
> > As
Alan Isaac schrieb:
> I need access to 2*n random choices for two types
> subject to a constraint that in the end I have
> drawn n of each. I first tried::
>
> def random_types(n,typelist=[True,False]):
> types = typelist*n
> random.shuffle(types)
> for next_type in types:
> y
Thanks for the detailed explanations, Gabriel.
> At that time, all values in the module namespace are set to
> None (for breaking possible cycles, I presume). print_hello now has a
> func_globals with all names set to None. (Perhaps the names could have
> been deleted instead, so print_hello()
[EMAIL PROTECTED] wrote:
>> That's a little harsh -- regexes have their place, together with pointer
>> arithmetic, bit manipulations, reverse polish notation and goto. The
>> problem is when people use them inappropriately e.g. using a regex when a
>> simple string.find will do.
>>
>>> A quote att
I don't know enough to write an R.E. engine so forgive me if I am
being naive.
I have had to atch text involving lists in the past. These are usually
comma separated words such as
"egg,beans,ham,spam,spam"
you can match that with:
r"(\w+)(,\w+)*"
and when you look at the groups you get the follow
Hi,
I installed pyopengl (opengl for python) on my linux box and
everything works fine. But now I want to save the generated images as,
e.g., ps or eps. How can I do that and how can I adjust the resolution
(if necessary)? This is probably simple but for some reason I can not
find out how to do th
Thanks all for good input.
It seems like there's no the-python-way for this one.
Currently I'm forced to use cygwin - and python in cygwin is still not
2.5 so I can't use the new inline if-else ternary operator.
> >> if n == 1:
> >> print "I saw a car"
> >> else:
> >> print "I saw %d cars
On Feb 10, 5:03 pm, "mtuller" <[EMAIL PROTECTED]> wrote:
> Alright. I have tried everything I can find, but am not getting
> anywhere. I have a web page that has data like this:
>
>
>
> LETTER
>
> 33,699
>
> 1.0
>
>
>
> What is show is only a small section.
>
> I want to extract the 33,699 (w
On Feb 12, 9:08 am, "Paddy" <[EMAIL PROTECTED]> wrote:
> I don't know enough to write an R.E. engine so forgive me if I am
> being naive.
> I have had to atch text involving lists in the past. These are usually
> comma separated words such as
> "egg,beans,ham,spam,spam"
> you can match that with:
[EMAIL PROTECTED] wrote:
>
>I wanted to connect Python to Ms-Access database using ADO or ODBC. I
>have Python 2.5 and on mxODBC site, it has no higher version build
>than 2.4. Moreoever, mxODBC is required for ADODB.
>Can anyone guide me on this what should I do to make it work on Python
>2.5? I h
I have just discovered Python and am familiarizing myself with the syntax
but I have always found that code examples where the best way for me to
learn.
Can anyone point me to a site with some good open source functioning python
applications?
I would appreciate any help.
Also, does anyo
On Feb 10, 5:25 pm, "Geoff Hill" <[EMAIL PROTECTED]> wrote:
> The word "hack" can be known as a "smart/quick fix" to a problem.
Giving the benefit of the doubt here, perhaps Enes Naci saw this
article: http://www.hetland.org/python/instant-hacking.php and got
some strange idea about confusing prog
Basically I'm programming a board game and I have to use a list of
lists to represent the board (a list of 8 lists with 8 elements each).
I have to search the adjacent cells for existing pieces and I was
wondering how I would go about doing this efficiently. Thanks
--
http://mail.python.org/mailm
agent-s wrote:
> Basically I'm programming a board game and I have to use a list of
> lists to represent the board (a list of 8 lists with 8 elements each).
> I have to search the adjacent cells for existing pieces and I was
> wondering how I would go about doing this efficiently. Thanks
>
This i
Hi,
I'm new of Python, and this problem stucked me whole day but can't be
solved.
I use python 2.4.3, which is download from cygwin packages. Then I
downloaded pyexcelerator-0.5.3a, unzip it,
$ python ./pyExcelerator/setup.py install
running install
running build
running build_py
package init fil
On Feb 11, 5:16 pm, "Holger" <[EMAIL PROTECTED]> wrote:
> Thanks all for good input.
> It seems like there's no the-python-way for this one.
>
> Currently I'm forced to use cygwin - and python in cygwin is still not
> 2.5 so I can't use the new inline if-else ternary operator.
>
> > >> if n == 1:
>
"Stargaming" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> ... types *= n
> ... shuffle(types)
This again has the "costs" I referred to:
creating a potentially large sequence,
and shuffling it. (Additionally, shuffle
cannot achieve many of the possible
shuffles of a large list
darren112 wrote:
> Hi Im new to python and I desperately need help with this task
> This is everything of what I need to do...
>
> The program to be written in Python obviously..
>
> The program should support brute-forcing of the authentication process
> for a Telnet server via a dic
On Feb 12, 11:55 am, "susan" <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm new of Python, and this problem stucked me whole day but can't be
> solved.
>
> I use python 2.4.3, which is download from cygwin packages.
Is your Python installation working properly for you with other
things, or is installing p
Don Taylor wrote:
> Does anyone know what is needed to install to get epydoc to generate pdf
> files on Windows. Besides epydoc itself of course.
>
> Maybe there is a more appropriate forum to ask newbie questions about
> epydoc?
>
As I remember, LaTeX and ghostscript.
Duncan
--
http://mail.p
On 11 Feb 2007 16:57:07 -0800, Carl Banks <[EMAIL PROTECTED]> wrote:
> You don't need any ternary operator to avoid repetition, anyways. You
> could factor the common parts out like this:
>
> if n == 1:
> what = "a car"
> else:
> what = "%d cars" % n
> print "I saw %s" % what
Or even bett
I was able to read the data from file into a two dimensional array
(lists)
rows=[map(float,line.split())for line in file("data")]
but How to write them back into the file.
Thank you,
srikanth
--
http://mail.python.org/mailman/listinfo/python-list
En Sun, 11 Feb 2007 19:16:49 -0300, Holger <[EMAIL PROTECTED]> escribió:
>> >> if n == 1:
>> >> print "I saw a car"
>> >> else:
>> >> print "I saw %d cars" % n
>
> Personally I don't like the if-else approach because of the don't-
> repeat-yourself philosophy
>
>> D'accord. Did I mention t
On Feb 12, 12:47 pm, "mech point" <[EMAIL PROTECTED]> wrote:
> I was able to read the data from file into a two dimensional array
> (lists)
>
> rows=[map(float,line.split())for line in file("data")]
>
> but How to write them back into the file.
Presuming that it is either mandatory to adopt the sa
On 2007-02-12, mech point <[EMAIL PROTECTED]> wrote:
>
> I was able to read the data from file into a two dimensional array
> (lists)
>
> rows=[map(float,line.split())for line in file("data")]
>
> but How to write them back into the file.
for r in rows:
file.write(" ".join(map(str,r)) + "\n")
En Sun, 11 Feb 2007 22:47:30 -0300, mech point <[EMAIL PROTECTED]>
escribió:
> I was able to read the data from file into a two dimensional array
> (lists)
>
> rows=[map(float,line.split())for line in file("data")]
>
> but How to write them back into the file.
This way uses the same structures
I've been working on a Python-based music training application for a
few months, and have recently run into what I believe are some basic
limitations (or at least constraints) of Python with regards to
timing. I'll try and give a decently thorough description, and
hopefully some of you can process
On 2007-02-12, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2007-02-12, mech point <[EMAIL PROTECTED]> wrote:
>>
>> I was able to read the data from file into a two dimensional array
>> (lists)
>>
>> rows=[map(float,line.split())for line in file("data")]
>>
>> but How to write them back into the f
On Feb 12, 6:47 am, "mech point" <[EMAIL PROTECTED]> wrote:
> I was able to read the data from file into a two dimensional array
> (lists)
>
> rows=[map(float,line.split())for line in file("data")]
>
> but How to write them back into the file.
Using matplotlib it will be:
import pylab
rows = pyla
[EMAIL PROTECTED] on 11 Feb 2007 08:16:11 -0800 didst step
forth and proclaim thus:
> More concisely:
>
> import re
>
> pattern = re.compile(r'\b324\b')
> indices = [ match.start() for match in
> pattern.finditer(target_string) ]
> print "Indices", indices
> print "Count: ", len(indices)
>
Tha
Perhaps boosting priorities for time critical threads will help.
I don't know about MacOS but for Win32 something like that helps:
thread = win32api.GetCurrentThread()
win32process.SetThreadPriority(thread,
win32process.THREAD_PRIORITY_TIME_CRITICAL)
current_process = win32pr
[EMAIL PROTECTED] writes:
> So, for a music-based application where it's crucial to have real-time
> execution of serial writeouts and audio, as well as keeping a
> continual poll on the input from the same portcan this be done
> successfully in Python? Does using Tkinter have anything to do w
On Feb 12, 3:11 am, "Frank" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I installed pyopengl (opengl for python) on my linux box and
> everything works fine. But now I want to save the generated images as,
> e.g., ps or eps. How can I do that and how can I adjust the resolution
> (if necessary)? This is p
"susan" <[EMAIL PROTECTED]> on 11 Feb 2007 16:55:35 -0800 didst
step forth and proclaim thus:
> Hi,
> I'm new of Python, and this problem stucked me whole day but can't be
> solved.
[snip]
> anybody can tell me where's wrong please? Thanks in advance!
What are the contents of sys.path from an i
I have an MySQL database called zingers. The structure is:
zid - integer, key, autoincrement
keyword - varchar
citation - text
quotation - text
I am having trouble storing text, as typed in latter two fields.
Special characters and punctuation all seem not to be stored and
retrieved correctly.
S
Hello,
Since I can write the statement like:
>>> print os.path.isdir.__doc__
Test whether a path is a directory
Why do I still need the getattr() func as below?
>>> print getattr(os.path,"isdir").__doc__
Test whether a path is a directory
Thanks!
--
http://mail.python.org/mailman/listinfo/pyt
Hi
Is there any python module that will convert address to standard US address
format:
for ex:
314 south chauncey avenue
should be:
314 s chauncey ave
thanks
mark
--
http://mail.python.org/mailman/listinfo/python-list
Frank wrote:
> Hi,
>
> I installed pyopengl (opengl for python) on my linux box and
> everything works fine. But now I want to save the generated images as,
> e.g., ps or eps. How can I do that and how can I adjust the resolution
> (if necessary)? This is probably simple but for some reason I can n
On Feb 11, 8:16 pm, "John Machin" <[EMAIL PROTECTED]> wrote:
> On Feb 12, 11:55 am, "susan" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I'm new of Python, and this problem stucked me whole day but can't be
> > solved.
>
> > I use python 2.4.3, which is download from cygwin packages.
>
> Is your Python
On Feb 11, 11:22 pm, Samuel Karl Peterson
<[EMAIL PROTECTED]> wrote:
> "susan" <[EMAIL PROTECTED]> on 11 Feb 2007 16:55:35 -0800 didst
> step forth and proclaim thus:
>
> > Hi,
> > I'm new of Python, and this problem stucked me whole day but can't be
> > solved.
>
> [snip]
>
> > anybody can tell me
1 - 100 of 119 matches
Mail list logo