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
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.
This
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
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, totally
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 explicitly
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
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
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 find
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
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,
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
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 Provost [EMAIL PROTECTED] wrote
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 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.com
--
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 of the archive, as
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 right on the root
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 python2.{4,5}-doc in contrib
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
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
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
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
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 improvement
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 --
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
Like
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, and
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
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 through PYTHONPATH,
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
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() -
Call
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:
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
[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
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,
intelTEXT,
[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
Paul
[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,
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
exec import sys
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)
Err... Are you sure you want a new
[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 and
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 for now
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)
return c
print
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. I'd like
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.
Thnaks!
A
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 with
the
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
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 crashes
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 the screen, try
[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
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], [1],
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 very
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
[[], [], [], [], [], []]
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 more
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 it
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 are
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 result:
File a.py, line 2
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
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 beat
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
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
[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's
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
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
python
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 be an
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
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
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 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 learn.
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 you All
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
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 webpage
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
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,
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 up
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 - at least
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))
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
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 to have
Martin v. Löwis added the comment:
Can you please be more specific? What code exactly are you executing,
and what is the exact error message that you get?
In the entire Python source code, the error message Execfile unable to
take arguments beyond 255! is never produced. Very few error messages
Brandon Mintern added the comment:
This is still a problem which has just given me a headache, because
using re.sub now requires gymnastics instead of just using a simple
string as I did in Perl.
--
nosy: +BMintern
_
Tracker [EMAIL PROTECTED]
New submission from John Nagle:
urlparse.urlparse will mis-parse URLs which have a / after a ?.
sa1 = 'http://example.com?blahblah=/foo'
sa2 = 'http://example.com?blahblah=foo'
print urlparse.urlparse(sa1)
('http', 'example.com?blahblah=', '/foo', '', '', '') # WRONG
print
Mark Summerfield added the comment:
On 2007-12-15, Christian Heimes wrote:
Christian Heimes added the comment:
Mark Summerfield wrote:
It seems to me that Python should provide consistent results across
platforms wherever possible and that this is a gratuitous inconsistency
that makes
New submission from Hrvoje Nikšić:
The printf(%zd, ...) configure test fails on Linux, although it
supports the %zd format. config.log reveals that the test tests for %zd
with Py_ssize_t, which is (within the test) typedeffed to ssize_t. But
the appropriate system header is not included by the
Christian Heimes added the comment:
I fixed the bug in r59533 trunk with a modified patch:
#ifdef HAVE_SYS_TYPES_H
#include sys/types.h
#endif
Should it be backported to 2.5? It will be merged into 3.0 automatically.
--
nosy: +tiran
priority: - normal
resolution: - fixed
status:
Martin v. Löwis added the comment:
I think it should be backported.
--
nosy: +loewis
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1638
__
___
Python-bugs-list mailing
Hrvoje Nikšić added the comment:
Thanks for the quick review. I considered guarding the include with
#ifdef as well, but I concluded it's not necessary for the following
reasons:
1. a large number of existing tests already simply include sys/types.h
(the makedev test, sizeof(off_t) test,
Wubbulous added the comment:
I have attempted the following separately: import email import
email.Utilsimport email.utils
they each return the error:
Traceback (most recent call last):
File C:\Panda3D-1.4.2\python\lib\smtplib.py, line 49, in ?
from email.base64MIME import encode
Mark Summerfield added the comment:
On 2007-12-15, Christian Heimes wrote:
Christian Heimes added the comment:
Mark Summerfield wrote:
It seems to me that Python should provide consistent results across
platforms wherever possible and that this is a gratuitous inconsistency
that makes
Jack Atkinson added the comment:
Error message from ipython console:
In [28]: mibBuilder2 = builder.MibBuilder().loadModules('ADTRAN-TC')
---
class 'pysnmp.smi.error.SmiError' Traceback (most recent call last)
Vladimir Konjkov added the comment:
willing you implement thread support for qnx6, or may be qnx4?
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue175
_
___
Alexandre Vassalotti added the comment:
I compiled Python using gcc 4.3.0 with the -Wstrict-overflow, and that's
the only warning I got:
Objects/doubledigits.c: In function ‘_PyFloat_Digits’:
Objects/doubledigits.c:313: error: assuming signed overflow does not
occur when assuming that (X + c)
89 matches
Mail list logo