En Tue, 11 Dec 2007 16:09:22 -0300, David Hirschfield <[EMAIL PROTECTED]>
escribi�:
> So this must have something to do with the "." in the name of module
> "test.B.py" but what is the problem, exactly? And how do I solve it? I
> will sometimes need to run load_module on filenames which happen t
I installed MySQL 5.0.45 on Ubuntu 7.1 and download MySQL_python from
Sourceforge (http://sourceforge.net/project/showfiles.php?
group_id=22307). Then I untar the package and executed "python
setup.py install". But I got compilation errors (see part of the
failed messages below).
Looks like the in
I wish to create a generic container object, devlist, such that
devlist.method(arguments)
runs as
for each dev in devlist.pool:
dev.method(arguments)
and
s = devlist.method(arguments)
runs as
for each dev in devlist.pool:
s.append(dev.method(arguments))
...but
"kib" <[EMAIL PROTECTED]> wrote:
>Hi Hendrik,
>
>I've bookmarked these ones :
>
>http://www.univ-paris12.fr/lacl/pommereau/tlf/index.html [in French]
>http://www.ncc.up.pt/~nam/ [look at the FAdo project]
>http://www.cs.usfca.edu/~jbovet/vas.html [written in Java]
>
Thanks I will check them out -
En Fri, 14 Dec 2007 13:17:32 -0300, Merrigan <[EMAIL PROTECTED]>
escribi�:
> I have been working on this script, and the part that this issue that
> I have occurs in is when iterating through some results from the db,
> asking the admin input to delete the entry or not - everything works
> fine
How to detect memory leaks of python programms, which run in an
environment like this:
* Suse Linux 9.3
* Apache
* mod_python
The problem occoured after some updates on the infrastructure. It's
most possibly caused by trac and it's dependencies, but several
components of the OS where updated,
I will be out of the office starting 12/17/2007 and will not return until
12/19/2007.
--
http://mail.python.org/mailman/listinfo/python-list
En Thu, 13 Dec 2007 19:18:48 -0300, yi zhang <[EMAIL PROTECTED]>
escribi�:
> Now I am able to use urlretrieve to download the text part of a webpage
> and wget to get the embedded image. Thanks for the tips!
> but how can I assemble them together so the image can be displayed in
> the webpag
thanks all first. but i had one class bellow to get object info what user had
inputed when run application. because the problem that i had showed yestoday, i
must write the code so hard to understand.
can any friend tell me one way to solve this problem?
thanks!!
list:
import inspect
vtStd,v
On Dec 16, 3:51 am, abhishek <[EMAIL PROTECTED]> wrote:
> Hi everyone, I am trying to generate a PDF printable format file from
> an html page. Is there a way to do this using python. If yes then
> which library and functions are required and if no then reasons why it
> cant be done.
>
> Thank yo
On Sun, 16 Dec 2007 18:13:47 -0800, [EMAIL PROTECTED] wrote:
> I am learning python, having learnt most of my object orientation with
> java, and decided to port some of my geometry classes over. I haven't
> used immutability in python before, so thought this would be an
> interesting chance to lea
En Sun, 16 Dec 2007 20:28:02 -0300, Troels Thomsen <"nej
tak..."@bag.python.org> escribi�:
>
> The readFile function from the win32 package aparently really expect an
> integer :
>
> def inWaiting(self):
> """Returns the number of bytes waiting to be read"""
> flags, comstat
On Dec 16, 8:47 pm, [EMAIL PROTECTED] wrote:
>ncalls tottime percall cumtime percall filename:lineno(function)
> 577656.0200.000 12.9700.000
> /usr/lib64/python2.4/_strptime.py:273(strptime)
> ...
actually, the C-version of strptime() is also getting called:
57765
It looks like there are two implementation of strptime() (why?) and
the one that's used by default is the Python version in _strptime.py
Unfortunately, it's pretty slow and takes up a big chunk of my code's
execution time. Is there a way to use the C version instead (is there
a C version in time.s
En Sun, 16 Dec 2007 23:13:47 -0300, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> escribi�:
> Hi,
>
> I am learning python, having learnt most of my object orientation with
> java, and decided to port some of my geometry classes over. I haven't
> used immutability in python before, so thought this would
On Dec 17, 2:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
Never mind, I found it. Virtualpython, docs available under easy
install.
-T
> Hi all,
>
> I remember a tool which (basically) creates a directory somewhere in
> the user's home directory and puts a copy (or perhaps link to) the
>
Hi all,
I remember a tool which (basically) creates a directory somewhere in
the user's home directory and puts a copy (or perhaps link to) the
python interpreter, adding that directory to the search path. In this
way, it is possible for a user without root permissions to install
additional packag
<[EMAIL PROTECTED]> wrote:
>This brings up another question. If I run some Python code that starts
>off with 'os.system('cp869')' so it will change to the correct code page,
>then when it starts printing the Greek characters it breaks. But run
>the same Python code again and it works fine.
That'
> Since the US, at least, uses whole/half/quarter/eighth/sixteenth...
> notes, three-quarter and six-eight time falls out...
I don't think this is technically true, but I've never been able to
tell the difference.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am learning python, having learnt most of my object orientation with
java, and decided to port some of my geometry classes over. I haven't
used immutability in python before, so thought this would be an
interesting chance to learn.
I am looking for feedback on any ways in which I might have
Gabriel Genellina wrote:
> On 16 dic, 06:40, Lie <[EMAIL PROTECTED]> wrote:
>
>> [btw, off topic, in music, isn't 1/4 and 2/8 different? I'm not very
>> keen of music though, so correct me if I'm wrong.]
> As a time signature 1/4 has no sense
Actually, I'm playing a show right now that has a one b
Hi,
Please consider donating to the Python Software Foundation (PSF)
this year in your year-end charitable giving.
The PSF is the non-profit that holds and protects the intellectual
property rights behind Python, keeping it free and open for all
to use.
We also provide the financial backing that
Joshua Kugler wrote:
> python.jiang wrote:
>
>> hello friends, the question had show bellow, any friend can tell me why.
>> thanks.
>>
>> list:
>> def test():
>> exec "import sys"
>> a=range(15)
>> b=[13,3]
>> c=filter(lambda x: x not in b,a)
>> return c
>> print test()
>>
>> run res
On 16 dic, 06:40, Lie <[EMAIL PROTECTED]> wrote:
> [btw, off topic, in music, isn't 1/4 and 2/8 different? I'm not very
> keen of music though, so correct me if I'm wrong.]
As a time signature 1/4 has no sense, but 3/4 and 6/8 are different
things. In the standard musical notation both numbers ar
On Dec 16, 4:47 pm, [EMAIL PROTECTED] wrote:
> I'm using IDLE for my Python programming. I can't seem to solve one
> issue though. Whenever I try to indent a region of code, I simply
> select it and hit the tab key, as I usually do in most editors, like
> GEdit or Geany on Linux, for instance, and
David Montgomery wrote:
> Hi,
>
> I am working on a thick-client application that serves
> a lot of content as locally generated and modified
> web pages.
>
> I'm beginning to look at serving (and updating, via AJAX)
> these pages from a web server running within the client
> (mostly to provide a
Alan Bromborsky wrote:
> I wish to create a list of empty lists and then put something in one of
> the empty lists. Below is what I tried, but instead of appending 1 to
> a[2] it was appended to all the sub-lists in a. What am I doing wrong?
>
> a = 6*[[]]
> >>> a
> [[], [], [], [], [], []]
>
On Dec 16, 5:28 pm, <[EMAIL PROTECTED]> wrote:
> Thank you John and Tim.
>
> With your help I found that the XP console code page is set up for 'cp437'
> and with a little bit of browsing I found that 869 is the code page for
> Modern Greek. After changing it to 869 that did the trick! Thanks v
I wish to create a list of empty lists and then put something in one of
the empty lists. Below is what I tried, but instead of appending 1 to
a[2] it was appended to all the sub-lists in a. What am I doing wrong?
a = 6*[[]]
>>> a
[[], [], [], [], [], []]
>>> a[2].append(1)
>>> a
[[1], [1],
[EMAIL PROTECTED] wrote:
> hi
> i have written some python scripts which take command line arguments
> and do some job. i would like to make it into a .exe using py2exe and
> distribute it with innosetup.. befor that i would like to add some GUI
> support..i mean select some values using a folder e
Stephen_B wrote:
> On Dec 13, 11:21 am, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
>> It opens "clear" with it's own virtual terminal and clears that
>> instead.
>
> Even when I launch the script from a cmd shell with "python
> myscript.py"?
>
>> There's an ANSI control code you can use to reset t
The readFile function from the win32 package aparently really expect an
integer :
def inWaiting(self):
"""Returns the number of bytes waiting to be read"""
flags, comstat = ClearCommError(self.__handle)
return comstat.cbInQue
ReadFile(h, s.inWaiting())
My code crash
Thank you John and Tim.
With your help I found that the XP console code page is set up for 'cp437' and
with a little bit of browsing I found that 869 is the code page for Modern
Greek. After changing it to 869 that did the trick! Thanks very much for this
advice.
This brings up another quest
Bruno Desthuilliers wrote:
> Luke a écrit :
>> Im very new to SQL in general, let alone coding it into python. I can
>> interact with a MySQL database just fine for the most part, but im
>> running
>> into some problems here...
> (snip)
OK. Bruno has pointed out why you're having trouble w
On Dec 15, 2:14 pm, SMALLp <[EMAIL PROTECTED]> wrote:
> Hy. I need help. I'm using BoxSizer and i put TextCtrl and StaticText
> next to each other and they gor alligned by top of TextCtrl and it looks
> terrible. How can i make thm to be alligned by center of each controll.
>
> Thna
On Dec 16, 1:47 am, Thin Myrna <[EMAIL PROTECTED]> wrote:
> Benoit wrote:
> > I got myself into programming late in the summer and have dabbled in
> > python for the most part in that time, recently beginning work on a
> > music player. In January, I start my minor in Information
> > Technology.
On Dec 17, 8:18 am, Joshua Kugler <[EMAIL PROTECTED]> wrote:
> python.jiang wrote:
> > hello friends, the question had show bellow, any friend can tell me why.
> > thanks.
>
> > list:
> > def test():
> > exec "import sys"
> > a=range(15)
> > b=[13,3]
> > c=filter(lambda x: x not in b,a)
> >
On 16 dic, 17:48, Luke <[EMAIL PROTECTED]> wrote:
> Bruno Desthuilliers wrote:
>> Err... Are you sure you want a new table here ?
>
> yes, thats the easier way i can think of for now since i am so new to SQL,
> eventually im sure i will put all the characters into one larger table
> though... but
[EMAIL PROTECTED] wrote:
> Basically, I agree that often the local state is much more useful. It
> just seems to me that for some application it's an overkill. Like say,
> for Turtle [1] (no jokes, please :) or PostScript [2].
Sounds also a bit similar to what happens under the hood in Open GL an
On Dec 17, 7:48 am, Luke <[EMAIL PROTECTED]> wrote:
> Bruno Desthuilliers wrote:
> > Luke a écrit :
> (snip)
> >> cursor.execute("""
> >> CREATE TABLE %s
> >> (
> >> name CHAR(40),
[snip]
> >> luc TEXT
> >> )
> >> """ % CharAccount)
>
> >
python.jiang wrote:
> hello friends, the question had show bellow, any friend can tell me why.
> thanks.
>
> list:
> def test():
> exec "import sys"
> a=range(15)
> b=[13,3]
> c=filter(lambda x: x not in b,a)
> return c
> print test()
>
> run result:
> File "a.py", line 2
> exe
[EMAIL PROTECTED] wrote:
> I'm using IDLE for my Python programming. I can't seem to solve one
> issue though. Whenever I try to indent a region of code, I simply
> select it and hit the tab key, as I usually do in most editors, like
> GEdit or Geany on Linux, for instance, and it works fine. But
[EMAIL PROTECTED] schrieb:
> Hello,
>
> I'm new to Python. I have a small task to do. I need to be able to
> find a running app (preferrably by name) and kill it. This is for the
> XP environment. What is best way to do this?
> Thanks,
import os
os.system('taskkill /IM explorer.exe')
cheers
Pa
Bruno Desthuilliers wrote:
> Luke a écrit :
(snip)
>> cursor.execute("""
>> CREATE TABLE %s
>> (
>> name CHAR(40),
>> gender CHAR(40),
>> job CHAR(40),
>> levelTEXT,
>> str TEXT,
>> dex TEXT,
>>
[EMAIL PROTECTED] a écrit :
> Hello,
>
> I'm new to Python. I have a small task to do. I need to be able to
> find a running app (preferrably by name) and kill it. This is for the
> XP environment. What is best way to do this?
1/ search the Windows XP APIs for such a task
2/ found out how you can
Hello,
I'm new to Python. I have a small task to do. I need to be able to
find a running app (preferrably by name) and kill it. This is for the
XP environment. What is best way to do this?
Thanks,
--
http://mail.python.org/mailman/listinfo/python-list
Luke wrote:
> Im very new to SQL in general, let alone coding it into python. I can
> interact with a MySQL database just fine for the most part, but im running
> into some problems here... This is the function in my script that keeps
> raising errors:
>
> -
Luke a écrit :
> Im very new to SQL in general, let alone coding it into python. I can
> interact with a MySQL database just fine for the most part, but im running
> into some problems here...
(snip)
>
> -
>
> def NewChar():
> """ NewChar() -
>
Im very new to SQL in general, let alone coding it into python. I can
interact with a MySQL database just fine for the most part, but im running
into some problems here... This is the function in my script that keeps
raising errors:
-
def NewChar():
Gabriel Genellina wrote:
> En Thu, 13 Dec 2007 19:53:49 -0300, <[EMAIL PROTECTED]> escribió:
>
>> As I understand it, import myFile and include "myFile.py" are not quite
>> the same.
>>
>> --
>> for import to work myFile.py must be in the same directory as the code
>> that calls it accessible thr
Just some thoughts to get you started:
You may not get any responses because you weren't specific enough about
what you want to do. Since you are asking about doing this via Python,
it seems you want to automate something which can be done from a menu
option in various Web browsers (use the print
On Dec 16, 11:47 am, [EMAIL PROTECTED] wrote:
> I'm using IDLE for my Python programming. I can't seem to solve one
> issue though. Whenever I try to indent a region of code, I simply
> select it and hit the tab key, as I usually do in most editors, like
> GEdit or Geany on Linux, for instance, an
On Dec 16, 2007 7:26 PM, Zentrader <[EMAIL PROTECTED]> wrote:
> Sorry, I read that backwards. I do it the opposite of you. Anyway a
> google for "html to pdf python" turns up a lot of hits. Again, no
> reason to reinvent the wheel.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Steven D'Aprano wrote:
> Yes, but my point (badly put, I admit) was that people find fractions far
> easier to work with than they find floating point numbers.
I'm not so sure. I got caught by the comic XKCD's
infinite-resistor-grid thing, and simplified it to a ladder network --
call it L -
In article <[EMAIL PROTECTED]>,
George Sakkis <[EMAIL PROTECTED]> wrote:
>
>Regardless, a builtin (or at least standard library) rational type
>would be nice to have. Of course folks that *really need* rationals
>are already using some 3rd party library, but for the rest of us it
>would be an impr
Sorry, I read that backwards. I do it the opposite of you. Anyway a
google for "html to pdf python" turns up a lot of hits. Again, no
reason to reinvent the wheel.
--
http://mail.python.org/mailman/listinfo/python-list
I'm sure it can be done but there is no reason to reinvent the wheel
unless it's for a programming exercise. You can use pdftohtml and run
it from a Python program if you want.
http://pdftohtml.sourceforge.net/
--
http://mail.python.org/mailman/listinfo/python-list
I'm using IDLE for my Python programming. I can't seem to solve one
issue though. Whenever I try to indent a region of code, I simply
select it and hit the tab key, as I usually do in most editors, like
GEdit or Geany on Linux, for instance, and it works fine. But, if I
try to unindent a region of
hello friends, the question had show bellow, any friend can tell me why. thanks.
list:
def test():
exec "import sys"
a=range(15)
b=[13,3]
c=filter(lambda x: x not in b,a)
return c
print test()
run result:
File "a.py", line 2
exec "import sys"
SyntaxError: unqualified exec is not
On Dec 16, 2007 4:49 PM, Arnaud Delobelle <[EMAIL PROTECTED]> wrote:
> On Dec 16, 2:43 pm, "Tshepang Lekhonkhobe" <[EMAIL PROTECTED]> wrote:
> > On Dec 16, 2007 4:33 PM, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> >
> > > Tshepang Lekhonkhobe wrote:
> >
> > > > Hi,
> > > > I was surprised to find pyth
Tshepang Lekhonkhobe wrote:
> On Dec 16, 2007 4:33 PM, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>> Tshepang Lekhonkhobe wrote:
>>
>> > Hi,
>> > I was surprised to find python2.{4,5}-doc in contrib and wondered why?
>>
>> What contrib?
>
> contrib section of the archive, as opposed to main
doc is r
On Dec 16, 2:43 pm, "Tshepang Lekhonkhobe" <[EMAIL PROTECTED]> wrote:
> On Dec 16, 2007 4:33 PM, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
> > Tshepang Lekhonkhobe wrote:
>
> > > Hi,
> > > I was surprised to find python2.{4,5}-doc in contrib and wondered why?
>
> > What contrib?
>
> contrib section
On Dec 16, 2007 4:33 PM, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> Tshepang Lekhonkhobe wrote:
>
> > Hi,
> > I was surprised to find python2.{4,5}-doc in contrib and wondered why?
>
> What contrib?
contrib section of the archive, as opposed to main
--
my place on the web:
floss-and-misc.blogspot
Tshepang Lekhonkhobe wrote:
> Hi,
> I was surprised to find python2.{4,5}-doc in contrib and wondered why?
What contrib?
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 14, 3:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Dec 14, 2:48 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Dec 14, 2007 2:09 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > > On Dec 11, 10:34 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> > > > "Ron Provo
Hi,
I was surprised to find python2.{4,5}-doc in contrib and wondered why?
--
my place on the web:
floss-and-misc.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
What do I need to do? I have numpy, scipy (Fedora F8)
cd openopt/
[EMAIL PROTECTED] openopt]$ python setup.py build
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler
options
running config_fc
unifing config_fc, config, build_clib, build_
Just for the record:
http://www.amk.ca/python/howto/sockets/
"Of the various forms of IPC (Inter Process Communication), sockets
are by far the most popular. On any given platform, there are likely
to be other forms of IPC that are faster, but for cross-platform
communication, sockets are about t
On Sat, 15 Dec 2007 22:20:22 -0800, Dennis Lee Bieber wrote:
> On Sun, 16 Dec 2007 06:09:06 -, Steven D'Aprano
> <[EMAIL PROTECTED]> declaimed the following in
> comp.lang.python:
>
>> Yes, but my point (badly put, I admit) was that people find fractions
>> far easier to work with than they f
Hi,
sorry for my English.
I'm writing my first python script for Linux for a remote bluetooth
application.
I'm using python-xlib library to send keyboard and mouse events and at
the moment
I can send keyboard emulated input to the window where pointer is on,
i can also move the pointer over the
des
Hi everyone, I am trying to generate a PDF printable format file from
an html page. Is there a way to do this using python. If yes then
which library and functions are required and if no then reasons why it
cant be done.
Thank you All
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 16, 6:38 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
>
>
> Read the details for subprocess.Popen() again...
>
> """
> /args/ should be a string, or a sequence of program arguments. The
> program to execute is normally the first item in the args sequence or
> string, but can be e
On Dec 16, 5:24 am, John Machin <[EMAIL PROTECTED]> wrote:
>
> Yes. Consider this: If you were to run your calculation script from
> the shell prompt [strongly recommended during testing], how would you
> tell it the name of the file? Now look at the docs again.
>
File arguments! Of course, totall
> Rationals are not that simple.
So do complex number, in fact most people are much more familiar with
rationals/fractions than with complex number. And notice that I don't
use the word simple, I use the word elementary. Elementary doesn't
always means simple (although it usually is), but rather i
Hendrik van Rooyen a écrit :
> I have spent some time googling and on wiki and came up with
> pyFSA in python. It may end up being useful, but it is not directly
> what I am looking for, as there is no GUI that I can see.
>
> I know about SMC, but it is not Python, and I can't find the gui.
>
> T
75 matches
Mail list logo