Grant Edwards <[EMAIL PROTECTED]> writes:
> I've read over and over that Python leaves floating point
> issues up to the underlying platform.
Please read the conversation Tim and I are having in the "Re:
math.nroot [was Re: A brief question.]" elsewhere in this same
newsgroup.
Cheers,
mwh
--
Tim Peters <[EMAIL PROTECTED]> writes:
> [Tim]
> >> Ah, but as I've said before, virtually all C compilers on 754 boxes
> >> support _some_ way to get at this stuff. This includes gcc before C99
> >> and fenv.h -- if the platforms represented in fpectlmodule.c were
> >> happy to use gcc, they all
I've decided that it would be be fun to host a weekly Python programming
contest. The focus will be on algorithms that require a bit of thought
to design but not much code to implement.
I'm doing to judge the solutions based on execution speed. It sucks but
that is the easiest important considerat
Are you aware of http://mathschallenge.net/index.php?section=project ?
The "The focus will be on algorithms that require a bit of thought
to design but not much code to implement." part seems common, although
your problem domain probably is larger.
/Simon
--
http://mail.python.org/mailman/listi
Brian Quinlan wrote:
> I've decided that it would be be fun to host a weekly Python programming
> contest. The focus will be on algorithms that require a bit of thought
> to design but not much code to implement.
>
> I'm doing to judge the solutions based on execution speed. It sucks but
> that i
Hiho,
I can't seem to find a proper way to document my extension module.
Following the C API doc:
static PyMethodDef ioMethods[] = {
{"o_count", o_count, METH_VARARGS, "Return the count of available
MIDI outputs."},
}
lacks:
a) module level documentation
b) function parameters
Also,
Aloha,
hotshot.Profile has flags for recording timing per line and line
events. Even if i had both set to 1 i still get only the
standard data (time per call).
Is there any document available that has examples how to use
the hotshot for converage analysis and to display timing
per line?
Hoping f
Francois De Serres wrote:
> Hiho,
>
> I can't seem to find a proper way to document my extension module.
> Following the C API doc:
>
> static PyMethodDef ioMethods[] = {
> {"o_count", o_count, METH_VARARGS, "Return the count of available
> MIDI outputs."},
>
> }
>
> lacks:
> a) modu
Hi,
Apologies first to those outside the UK... Open Tech 2005* is a follow
on from previous years' NotCon events which are community driven
low cost events by geeks & developers for geeks & developers. (Much
like Pycon & Europython but much more general in nature)
Website: http://www.ukuug.org/e
Brian> I've decided that it would be be fun to host a weekly Python
Brian> programming contest. The focus will be on algorithms that require
Brian> a bit of thought to design but not much code to implement.
For some of us that's what we do day-in, day-out at work. It's just not
calle
**SPE needs packagers & doc writers**
SPE is moving websites. The new websites will be:
- homepage: http://www.stani.be/python/spe
- downloads & SVN: http://developer.berlios.de/projects/python
Please help to make this transition smooth: update your bookmarks and
report this url change to webs
I would like a function to be executed every x often.
I was just wondering how to pass the following code correctly. my
object t just doesn't know what checkMail is. How can I tell it that
checkMail is a member of the class MyApp?
thanks in advance,
code is below
class MyApp(wx.App):
def O
[EMAIL PROTECTED] wrote:
> I would like a function to be executed every x often.
> I was just wondering how to pass the following code correctly. my
> object t just doesn't know what checkMail is. How can I tell it that
> checkMail is a member of the class MyApp?
Reread the documentation for tim
James wrote:
> I am not sure if it is a good idea to use a LiveCD for OS when you are
> testing for speed. CD access speeds fluctuate and may even impact
> performance even if you start measuring after the module loading is
> complete.
It didn't seem to matter in my testing. Module loading is done
[EMAIL PROTECTED] wrote:
> Brian> I've decided that it would be be fun to host a weekly Python
> Brian> programming contest. The focus will be on algorithms that require
> Brian> a bit of thought to design but not much code to implement.
>
> For some of us that's what we do day-in, day
"matt" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Hi all-
>
> I'm trying to port an ajax spell-checker
> (http://www.broken-notebook.com/spell_checker/index.php) to use with
> the moin moin wiki and have been somewhat successful. (By successful I
> mean I can spell check u
Andreas Lobinger wrote:
> hotshot.Profile has flags for recording timing per line and line events.
> Even if i had both set to 1 i still get only the standard data (time per
> call).
Could it be that pstats.Stats doesn't know about hotshot? Haven't checked...
What's much more annoying about hots
Robert Kern wrote:
>Francois De Serres wrote:
>
>
>>Hiho,
>>
>>I can't seem to find a proper way to document my extension module.
>>Following the C API doc:
>>
>>static PyMethodDef ioMethods[] = {
>>{"o_count", o_count, METH_VARARGS, "Return the count of available
>>MIDI outputs."},
>>...
Re: assigning a PyStr object to __doc__, take a look at Py_InitModule3,
which does that for you.
Then you have the PyDoc_STRVAR macro in python.h that you might want to
use (see definition below). But as Robert already told you, you'll need
to provide the necessary information about i.e. parameter
You probably actually want:
import sys
sys.path.instert(0, r'c:\xxx\yyy')
m = __import__('zzz', globals(), locals(), [])
del sys.path[0]
Because if another module named zzz exists in your path. Appending will pick
those versions up first. Then you delete the path you just added so that you
don
On 7/15/05, Brian Quinlan <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Brian> I've decided that it would be be fun to host a weekly Python
> > Brian> programming contest. The focus will be on algorithms that require
> > Brian> a bit of thought to design but not much code to
Greetings,
I'm having a little trouble getting an idea running. I am writing a C
program which is really a frontend to a Python program. Now, my C
program starts up, does some initialisation like initialisation of it's
variables and Py_Initialize() and then it fork()s. After forking the
Brian Quinlan enlightened us with:
> Also, it is easiest to protect my system against malicious code if
> it is being run on an OS without a writeable filesystem.
Even easier with User Mode Linux and a COW (copy on write) filesystem.
Sybren
--
The problem with the world is stupidity. Not saying
Simon Dahlbacka wrote:
>Re: assigning a PyStr object to __doc__, take a look at Py_InitModule3,
>which does that for you.
>
>
>
got it, thx.
>Then you have the PyDoc_STRVAR macro in python.h that you might want to
>use (see definition below). But as Robert already told you, you'll need
>to prov
Bill Mill wrote:
> On 7/15/05, Brian Quinlan <[EMAIL PROTECTED]> wrote:
>
>>[EMAIL PROTECTED] wrote:
>>
>>>Brian> I've decided that it would be be fun to host a weekly Python
>>>Brian> programming contest. The focus will be on algorithms that require
>>>Brian> a bit of thought to desig
I've seen both documentation for using timeit as simply a timer to
measure preformance, but also a random page here and there that looked
to me as if they were using it as a simple timer. HOwever, if there is
a wxwidget timer I'll gladly hit that up. Thanks for the info
--
http://mail.python.or
On 2005-07-15, Michael Hudson <[EMAIL PROTECTED]> wrote:
> Grant Edwards <[EMAIL PROTECTED]> writes:
>
>> I've read over and over that Python leaves floating point
>> issues up to the underlying platform.
>
> Please read the conversation Tim and I are having in the "Re:
> math.nroot [was Re: A br
Hello
Is it possible to open a mail and download its
files attached in a hard-disk using a python script?
Regards
--
http://mail.python.org/mailman/listinfo/python-list
> Is it possible to open a mail and download its files attached in a
> hard-disk using a python script?
Use the poplib to do that. The documentation for this module can be
found at http://docs.python.org/lib/module-poplib.html.
--
Fabien
--
http://mail.python.org/mailman/listinfo/python-list
On 7/15/05, Alberto Vera <[EMAIL PROTECTED]> wrote:
>
> Hello
>
> Is it possible to open a mail and download its files attached in a hard-disk
> using a python script?
>
> Regards
> --
> http://mail.python.org/mailman/listinfo/python-list
>
yes, use the email module.
>>> msg = email.message_from_
Wow. That's neat. I'm going to use it. Thanks!
On Thu, 2005-07-14 at 19:52 -0400, Peter Hansen wrote:
> Bengt Richter wrote:
> > On Thu, 14 Jul 2005 17:10:37 -0400, William Park <[EMAIL PROTECTED]> wrote:
> > It's a one liner in Python too ;-)
> >
> > >>> print ' '.join([x+y+z+q for s in ['abc']
Me and a couple of friends have been thinking of doing something
involving Python for our final year undergrad project. We're
considering the first idea mentioned on this page:
http://wiki.python.org/moin/JythonProjects.
Unfortunately, their statement is a little terse, so I was hoping
someone cou
Thank you for your help.
It's really useful for me.
On 7/14/05, Chris Lambacher <[EMAIL PROTECTED]> wrote:
> You probably actually want:
>
> import sys
> sys.path.instert(0, r'c:\xxx\yyy')
> m = __import__('zzz', globals(), locals(), [])
> del sys.path[0]
>
> Because if another module named zzz
Oops, yeah I should have mentioned some of that. It's a Linux
environment, and it's running Python 2.2. To my knowledge, the batch
files my program calls run a few processes on some data and generate a
few temporary files. I believe those files are not correctly being
generated. There is an error m
Thanks. That helps.
--
http://mail.python.org/mailman/listinfo/python-list
Am Montag, den 11.07.2005, 06:29 -0700 schrieb [EMAIL PROTECTED]:
> Hi,
>
> Sorry to post what might seem like a trivial problem here, but its
> driving me mad!
>
> I have a simple https client that uses httplib to post data to a web
> server.
>
> When I post over http & https using curl the dat
Hello to all
Well this is my first mail on this list. I am facing a problem associated
with collecting IP address on my network.
What i thought is to send broadcast packet over the network and then
recieving back the reply from the computers and bridges connected to my
network and then adding
Quoth MrEntropy <[EMAIL PROTECTED]>:
| I'm having a little trouble getting an idea running. I am writing a C
| program which is really a frontend to a Python program. Now, my C
| program starts up, does some initialisation like initialisation of it's
| variables and Py_Initialize() and th
Sandeep Arya wrote:
>Hello to all
>
>Well this is my first mail on this list. I am facing a problem associated
>with collecting IP address on my network.
>
>What i thought is to send broadcast packet over the network and then
>recieving back the reply from the computers and bridges connected to
Brian> This contest is for people who like thinking about algorithms.
Surely you must have missed the smiley...
S
--
http://mail.python.org/mailman/listinfo/python-list
Hiho,
When there's an unhandled exception in my
extension-module's-callback-into-Python-function-object, I get a GPF and
Python exits.
When the exception is being handled within the callback (hence in
Python), I get a very significant hiccup (1 to 5 seconds freeze).
Question: is there a specif
[EMAIL PROTECTED] wrote:
> Brian> This contest is for people who like thinking about algorithms.
>
> Surely you must have missed the smiley...
No, I saw it but it just confused me as I have no sense of humor.
Cheers,
Brian
--
http://mail.python.org/mailman/listinfo/python-list
A mail sent by you has been identified as suspicious by MailMonitor for
Exchange.
Event: infection
Action: Message quarantined
Message ID: <[EMAIL PROTECTED]>
Message subject:Mail System Error - Returned Mail
Recipient:
Brian Quinlan wrote:
> I've decided that it would be be fun to host a weekly Python programming
> contest.
I like the idea, and doing the first problem was fun indeed
:o)
> I'm always looking for feedback, so let me know what you think or if you
> have any ideas for future problems.
It would be
"I was wondering about the differences with the referred libs and
servers.
Since the documentation isn't so thorough(and a bit because of my
laziness), I thought I'd make request for usage accounts etc. stating
the pros and cons of the aforementioned. Any notes would be
appreciated."
RDFLib is a t
All,
This info was very helpful, and I'm up and running with MySQLdb on
linux, and the native ODBC support on Windows.
One last question I have: In vbs (specifically with .asp) I can make a
connection to an ODBC provide _without_ the need to specify a system
DSN in the Control Panel. It's easy
Hello Edward,
"Edvard Majakari" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> Thorsten Kampe <[EMAIL PROTECTED]> writes:
>
> > "sys.path.append('c:\\xxx\\yyy')" or "sys.path.append('c:/xxx/yyy')"
>
> Well, of course. As I said, it was untested :) I just copied the path
string,
>
> I am happy to announce the first beta release of CherryPy-2.1
Can you briefly compare CherryPy to Quixote2 (+session2)?
> unicode decoding/encoding,
This especially interesting to me.
Is CherryPy completelly unicode (and UTF-8) ready.
The thing that frustrates me about quixote2 is that it ha
Hello all,
I am having issues compiling Python with large file support. I tried
forcing the configure script to add it but then it bombs in the make
process. Any help will be appreciated.
Information:
Architecture:
PowerPc on AIX version 5
Compiler:
VisualAge C++ Professional / C for AIX Compiler
Damjan wrote:
> > I am happy to announce the first beta release of CherryPy-2.1
> ...
> > unicode decoding/encoding,
>
> This especially interesting to me.
> Is CherryPy completelly unicode (and UTF-8) ready?
> The thing that frustrates me about quixote2 is that it has a lot of
> assumptions that
> Christopher Subich <[EMAIL PROTECTED]> (CS) wrote:
>CS> Hrm... this would suggest the possibility of designing a metaclass,
>CS> perhaps, that would ensure synchronous access to an object. Perhaps "wrap"
>CS> the class in another, that gets and releases a mutex on any external
>CS> get/set
#ifdef def
Donn Cave wrote:
> Quoth MrEntropy <[EMAIL PROTECTED]>:
>
> | I'm having a little trouble getting an idea running. I am writing a C
> | program which is really a frontend to a Python program. Now, my C
> | program starts up, does some initialisation like initialisation of it's
>
I've noticed that the listings in help don't take you to correct topic.
anyone else have this problem? Is there a fix?
--
http://mail.python.org/mailman/listinfo/python-list
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> All,
>
> This info was very helpful, and I'm up and running with MySQLdb on
> linux, and the native ODBC support on Windows.
>
> One last question I have: In vbs (specifically with .asp) I can make a
> connection to an ODBC provide _wit
In article <[EMAIL PROTECTED]>,
Joseph Garvin <[EMAIL PROTECTED]> wrote:
>Wendell III wrote:
>
>>Hey,
>>
>>I'm looking for a few good Lua guys with some IM network experience.
>>Anyone around fit that criteria?
.
.
.
>I'd say
I have a script that I cycle through nodes connect to them and run
uptime to get some information. I run the script as root so it doesn't
require a password on the rest of the nodes. It does however barf on
the nodes that are having trouble and require a different password. Is
there an easy way
How about the following:
- making Jython mostly work up to Python 2.4?
- making a PVM (Python Virtual Machine) for the Palm?
--
Regards,
Casey
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] said unto the world upon 15/07/2005 14:50:
> I've noticed that the listings in help don't take you to correct topic.
>
> anyone else have this problem? Is there a fix?
>
I'm not sure from your question what exact problem you are
experiencing. Do you mean:
IDLE 1.1.1
>>> hel
On Thu, 14 Jul 2005 12:24:29 +0200, linuxfreak <[EMAIL PROTECTED]> wrote:
> So heres me asking if anyone has any pointers
> to some good basic python tutorial. Something that teaches one to get
> going.
The official tutorial is quite informal yet effective:
python.org -> documentation -> tutorial
I know... I'm expecting pain, and when that pain doesn't arrive I
assume that I did something wrong.
Actually, I was using the odbc/dbi stuff that ships with the win32
distribution for my windows work, and using MySQLdb for my linux work.
Most of the code is the same. But I suppose the big benefi
On 15 Jul 2005 07:10:10 -0700,
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Oops, yeah I should have mentioned some of that. It's a Linux
> environment, and it's running Python 2.2. To my knowledge, the batch
> files my program calls run a few processes on some data and generate a
> few tempor
[EMAIL PROTECTED] enlightened us with:
> I have a script that I cycle through nodes connect to them and run
> uptime to get some information. I run the script as root so it
> doesn't require a password on the rest of the nodes. It does
> however barf on the nodes that are having trouble and requi
I'm sure this is builtin, I just don't know what module. Thank you for
any help!
Billt
--
http://mail.python.org/mailman/listinfo/python-list
urllib2.urlopen()
--
http://mail.python.org/mailman/listinfo/python-list
In general, it is good idea to use expect kind of tool to deal with
interactive programs like ssh. You may try using pexpect
(http://pexpect.sourceforge.net).
--
http://mail.python.org/mailman/listinfo/python-list
SolaFide enlightened us with:
> I'm sure this is builtin, I just don't know what module. Thank you
> for any help!
urllib, read the excellent free book "dive into python" at
http://www.diveintopython.org/ for examples and usage.
Sybren
--
The problem with the world is stupidity. Not saying there
That's exactly the way to go. In my case, I'm using cx_Oracle to
connect from Python to Oracle and the same exact code runs on Windows,
Linux, Solaris and soon on AIX.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
First, thanks to those who offered answers. They didn't really answer
my question, only because I had not worked through the example
sufficiently well. Doing this, I believe I understand what is
happening, and, if my understanding is correct, have discovered that for
other beginning and ending va
On Thursday 14 July 2005 07:43 am, Thorsten Kampe wrote:
> * Edvard Majakari (2005-07-14 12:52 +0100)
> > could ildg <[EMAIL PROTECTED]> writes:
> >> I want to import c:\xxx\yyy\zzz.py into my programme,
> >> What should I do?
> >> Thank you~
> >
> > import sys
> > sys.path.append('c:\xxx\yyy')
>
You might get better answers if you contact the Jython developers
themselves and look at their wiki -
http://www.jython.org/cgi-bin/wiki/FrontPage. Even though you found the
posting on a Python wiki, you really want to consult the Jython
community, and I'm not sure to what extent they participate i
Hi,
This question has come up a few times on the list with no one giving a public
answer. How do you use CreatePrintDialog from win32ui?
About a year ago someone posted that:
dlg = win32ui.CreatePrintDialog(1538)
dlg.DoModal()
will give you the window, but the ok button does not work.
Diging i
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Casey Hawthorne wrote:
> How about the following:
>
> - making Jython mostly work up to Python 2.4?
http://www.python.org/psf/grants (see the first grant)
There's already a grant in place for this. So hopefully someone
associated with Jython is working on it.
> - making a PVM (Python Virtual
On 14 Jul 2005 19:25:41 -0700, "Nicolas Couture" <[EMAIL PROTECTED]> wrote:
>Hi,
>
>Is it possible to generate a list of `None' ?
>
>opts.__dict__.values() below could be represented by [None, None, None]
>
>---
>def get_options(opts):
>"""Return True or False if an option is set or not"""
>
David Smith <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> range statements, the example doesn't work.
>
> Given that the beginning and ending values for the inner range
> statement are the same, the inner range statement will never be
Is your question about the semantics of for else bl
I have a file with binary and ascii characters in it. I massage the
data and convert it to a more readable format, however it still comes
up with some binary characters mixed in. I'd like to write something
to just replace all non-printable characters with '' (I want to delete
non-printable chara
[posted & e-mailed -- prefer response by posting]
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>I used to use Snakespell from scriptfoundry to do spellchecking on my
>website (www.peterbe.com/search?q=pyton) but now that I've moved server
>and wiped the old machin
On 15 Jul 2005 17:33:39 -0700, "MKoool" <[EMAIL PROTECTED]> wrote:
>I have a file with binary and ascii characters in it. I massage the
>data and convert it to a more readable format, however it still comes
>up with some binary characters mixed in. I'd like to write something
>to just replace al
Thanks Paul-
I'll look into WebStack.
--
http://mail.python.org/mailman/listinfo/python-list
http://www.djangoproject.com/
--
JZ
--
http://mail.python.org/mailman/listinfo/python-list
In your ssh configuration, specify something like
PreferredAuthentication "hostbased,publickey"
this will skip trying to use the methods called keyboard-interactive and
password.
You can give this flag on the ssh commandline, too. read the ssh(1) and
ssh_config(5) manpages for more informatio
J.Bijsterbosch wrote:
> Hello Edward,
>
> "Edvard Majakari" <[EMAIL PROTECTED]> schreef in bericht
> news:[EMAIL PROTECTED]
>
>>Thorsten Kampe <[EMAIL PROTECTED]> writes:
>>
>>
>>>"sys.path.append('c:\\xxx\\yyy')" or "sys.path.append('c:/xxx/yyy')"
>>
>>Well, of course. As I said, it was unteste
Urlopen error - (7, 'getaddrinfo failed')
It means their tracker is overworked. Nothin you can do
about it.. let it run.. it should start workin sooner or
later.
--
http://mail.python.org/mailman/listinfo/python-list
I'm at a loss on how to compare Python vs. Access VBA for a database
project. I'm estimating 20 tables and several forms and reports. Some of the
tables could grow to many thousands of rows w/i a year or so. The app would
be resident on my client as no network connectivity is needed b/c I'll be
the
I would like to automate some simple browser navigating using python.
Ideally, I would like a package like pyexpect, but that can handle a
browser in much the same way as pyexpect handles a terminal (tall
order!). In short, I want a macro language for a browser (I know about
the commercial pack
WGW wrote:
> I would like to automate some simple browser navigating using python.
> Ideally, I would like a package like pyexpect, but that can handle a
> browser in much the same way as pyexpect handles a terminal (tall
> order!). In short, I want a macro language for a browser (I know about
Hi !
See :
http://www.gossamer-threads.com/lists/python/bugs/350314
--
http://mail.python.org/mailman/listinfo/python-list
87 matches
Mail list logo