In <[EMAIL PROTECTED]>, Gert Cuykens
wrote:
>> > >gert.excecute('select * from person')
>> > >for x in range(0,gert.rowcount):
>> > >print gert.fetchone()
>> > >gert.close()
>> >
>
> […]
>
> python always seems to amaze me how other languages make a mess of
> things that suppo
The problem is that this does not run javascript code it seems.
I got started with pamie, which seems to work till now.
Thanks,
--j
On Jan 22, 2:42 am, Peter Otten <[EMAIL PROTECTED]> wrote:
> John wrote:
> > Is there an analogue of IE Mechanize in
> > python?http://www.google.com/search?q=pyth
"Jarek Zgoda" wrote:
> Siggi napisa³(a):
>
>> how do I avoid the DOS console show-up when starting a WinXP GUI
>> application
>> with mouseclick on the respective Python file?
>>
>> I had this with my previous Python installation; it is very simple,
>> something with a "-i" somewhere in the ope
In <[EMAIL PROTECTED]>, Vincent Delporte wrote:
> On Sun, 21 Jan 2007 14:15:46 +1100, Steven D'Aprano
> <[EMAIL PROTECTED]> wrote:
>>Still, it is better not to lose the indentation in the first place.
>
> Thanks for the tips. But it does happen when copy/pasting code from
> either a web page or a
Hi,
i wrote a simple script (which follows) to insert a table in the database.i
could execute this query and get the result in python shell.but when i open "my
sql enterprise manager" i couldnt find the table"animals".it would be so kind
of you if someone could help me,,,
import
gonzlobo wrote:
> I prefer PyScripter too, but would like to know if I can have
> 'indentation guides' enabled like PythonWin allows.
If you mean, typing a for-statement, then when placing the final ":"+Enter,
the indentation auto increases,
then the answer is yes,
otherwise I don't kno what you me
"John" <[EMAIL PROTECTED]> wrote:
> I tried it, didnt work with the python25 distribution msi file that is
> on python.org
> But activestate python worked. Now I can open IE using COM. What I am
> trying
> to figure out is how to click an x,y coordinate on a page in IE
> automatically
> using COM.
[Sean]
> The pymeld docs show examples only for the Python command line
> interpreter and show using the print statement to output stuff. But
> using mod_python.apache, I think you need to use req.write(something)
> format. And of course, this fails when you feed it output from Meld.
req.write(str
Martin v. Löwis <[EMAIL PROTECTED]> wrote:
> In fact, memory that is read in because of mmap should *never* cause
> a MemoryError. Python calls MapViewOfFile when mmap.mmap is invoked,
> at which point the operating commits to providing that much address
> space to the application, along with b
George Sakkis <[EMAIL PROTECTED]> wrote:
> The file is written once and then opened as read-only, there's no
> flushing. So if caching is completely up to the OS, I take it that my
> options are either (1) modify my algorithms so that they work in
> fixed-size batches instead of arbitrarily lon
Gabriel Genellina wrote:
> Python got in 2.3 a heapq module in its standard library; I think it is what
> Ah! then I bet:
> - There is some C code involved.
> - It carelessly mixes PyMem_Malloc with PyObject_Free or similar as
> described in
> http://docs.python.org/whatsnew/ports.html
>
> So do y
kavitha thankaian wrote:
> Hi,
>
> i wrote a simple script (which follows) to insert a table in the
> database.i could execute this query and get the result in python
> shell.but when i open "my sql enterprise manager" i couldnt find the
> table"animals".it would be so kind of you if someone c
Bonjour,
We have implemented Python as an "embedded script language" in our NLP
application, XIP which a grammar rule engine written in C++ and available as
a library.
We have also developped a GUI in Java, which is linked to this XIP library,
to simplify the development of NL grammars.
JAVA
Ramon Diaz-Uriarte wrote:
>> In England the corresponding expression is "Counting Angels on a
>> Pinhead"
>> http://dannyayers.com/2001/misc/angels.htm
>>
>
> Thanks, that is neat. I find the discussion on the sex of the angels,
> well, sexier. But we are probably a few hundred years late to
Eugene Antimirov wrote:
> You've probably missed cursor.commit() ;)
Sorry, my bad:
conn.commit() is correct one AFAIR.
--
Sincerely,
Eugene Antimirov
PortaOne, Inc., SIP Support Engineer
[EMAIL PROTECTED]
* For further Billing and Technical information:
=> Please visit our website http://www.p
Hello.
In 'augop' non-terminal :
http://docs.python.org/ref/augassign.html
the delimiter '//=' was skipped. Why?
In 'Boolean operations':
http://docs.python.org/ref/Booleans.html
In 'expression' rule - what does 'if', 'else' mean? I guess 'if' and
'else' must be keywords, not non-terminals.
I want to use Python to connect to a SSH account over a HTTP proxy to
automate some operations. I thought paramiko would be able to do that,
but it can not (it seems).
Is there some other Python module that can do what I want?
--
mvh Björn
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
[...]
> No, that's actually wrong. What version of numpy are you using? With a recent
> SVN checkout of numpy, I get the correct answer:
>
> In [3]: roots([1,0,0])
> Out[3]: array([ 0., 0.])
In [17]: import sys, numpy
In [18]: sys.version
Out[18]: '2.5 (r25:51908, Sep 23 2006, 01:23:14) \
Hello Robert!
Thank you for your tips. They were very useful.
Bye Holger
Am 11.01.2007, 19:08 Uhr, schrieb Robert Kern <[EMAIL PROTECTED]>:
> Holger wrote:
>
>> What does it mean to me? How do I get to the wanted frequenca
>> spectrum???
>
> It's packed in the conventional FFT format. Here i
BJörn Lindqvist wrote:
> I want to use Python to connect to a SSH account over a HTTP proxy to
> automate some operations. I thought paramiko would be able to do that,
> but it can not (it seems).
>
> Is there some other Python module that can do what I want?
Is there anything that can do what y
Hi Everybody:
I'm having a difficult time figuring out a a memory use problem. I
have a python program that makes use of numpy and also calls a small C
module I wrote because part of the simulation needed to loop and I got
a massive speedup by putting that loop in C. I'm basically
manipulating a
Diez B. Roggisch wrote:
> BJörn Lindqvist wrote:
>
>> I want to use Python to connect to a SSH account over a HTTP proxy to
>> automate some operations. I thought paramiko would be able to do that,
>> but it can not (it seems).
>>
>> Is there some other Python module that can do what I want?
>
>
Hi,
I have been moving from Windows XP to Debian Etch. Most of my
Python scripts work fine with minor modifications. However, I have a
script that launches a browser and goes to various sites using the
Python module webbrowser.open ("url-goes-here")
On Debian Etch, Firefox (or IceWeasel, I guess)
Can anybody suggest a correct way of checking in python module exists
and correctly installed from python program.
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 18 Jan 2007 14:15:44 -0300, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
...
> I'll try to explain better: the cgi *protocol* (I'm not talking about the
> cgi *module*) requires a *new* python process to be created on *each*
> request. Try to measure the time it takes to launch Python, th
I'm at work so I can't test this, but I do beleive the inspect module
can help you out. If it can't you can always try import the module
in a try-catch statement, catching ImportError, however ImportError may
be raised if the module you imported has trouble loading another
module, but it shouln't b
I'm at work so I can't test this, but I do beleive the inspect module
can help you out. If it can't you can always try import the module
in a try-catch statement, catching ImportError, however ImportError may
be raised if the module you imported has trouble loading another
module, but it shouln't b
Sells, Fred a écrit :
> I've got a ~100 page document I assemble from ~30 OOo .odt files with some
> search and replace functions. I then produce a PDF. So far so good.
>
> Now I need to get a barcode from our internal website and insert that. The
> barcode will vary based on some parameters.
Per B. Sederberg wrote:
> Python 2.4.4c1 (#2, Oct 11 2006, 20:00:03)
> [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on
> [linux2 Type "help", "copyright", "credits" or "license" for
> more information.
Doesn't eat up.
> Python 2.4.3 (#1, Apr 7 2006, 10:54:33)
> [GCC 4.0.1 (Apple C
BartlebyScrivener wrote:
> I don't get it if I just launch
> firefox from the commandline. Only when I use the Python module.
I spoke too soon. I do get it from the command line if firefox is not
already running. Same is true with the Python script.
Must be a Gnome or Debian thing. Sorry for th
Hello:
I wrote the code below (much irrelevant code removed).
This doesn't quite work. What I wanted it to do was
a) Execute function ftimed, which takes a function and a timeout
in seconds.
b) This will also execute function abort() as a thread.
This function just runs for the specif
Sells, Fred wrote:
> I've got a ~100 page document I assemble from ~30 OOo .odt files with some
> search and replace functions. I then produce a PDF. So far so good.
>
> Now I need to get a barcode from our internal website and insert that. The
> barcode will vary based on some parameters. Our
Wolfgang Draxinger darkstargames.de> writes:
>
> > So, does anyone have any suggestions for how I can debug this
> > problem?
>
> Have a look at the version numbers of the GCC used. Probably
> something in your C code fails if it interacts with GCC 3.x.x.
> It's hardly Python eating memory, thi
thanks
infact the server_forever() method is only a serve() method inside an
infinite loop.
many thanks again,
Alessandro
Matimus ha scritto:
> > I want to ask if someone knows a better way for closing a "forever
> > server" or if there is a lack in my design.
>
> Generally you don't create a
Michael Yanowitz wrote:
> Hello:
>
>I wrote the code below (much irrelevant code removed).
> This doesn't quite work. What I wanted it to do was
> a) Execute function ftimed, which takes a function and a timeout
> in seconds.
> b) This will also execute function abort() as a thread.
>
Thanks.
I suppose I could have used time.sleep(seconds) here.
I did it in 0.01 because in an earlier verion, I did something
else between the sleeps.
I guess I am looking for something portable (both
Windows and Linux) where I can abort a function after
a certain time limit expires.
-Or
alessandro írta:
> thanks
>
> infact the server_forever() method is only a serve() method inside an
> infinite loop.
>
> many thanks again,
>
Here is a snipped that show a "software terminateable threading TCP
socker server". The "server" object is a SocketServer instance,
server_stopped is a
Oh my God! it's really so complicated?
3 modules (threading, SocketServer, select) only for design a way to
shutdown a TCP server
...but they told me that python was easy... :)
I'm working on a simulator and I have a monitor server that collects
information. I can shutdown it using Ctrl-C fro
I had a similar problem with an extension module on Solaris years ago.
My problem at that time:
I requested memory and released it and requested more memory in the next step
and so on.
The reason that the memory was eaten up:
An answer out of this group was that the operating system doesn't releas
Hello!
I'm pleased to announce the 0.7.3b1 release of SQLObject.
What is SQLObject
=
SQLObject is an object-relational mapper. Your database tables are described
as classes, and rows are instances of those classes. SQLObject is meant to be
easy to use and quick to get started w
Hello!
I'm pleased to announce the 0.8.0b2 release of SQLObject.
What is SQLObject
=
SQLObject is an object-relational mapper. Your database tables are described
as classes, and rows are instances of those classes. SQLObject is meant to be
easy to use and quick to get started
Michael Yanowitz wrote:
>
>I guess I am looking for something portable (both
> Windows and Linux) where I can abort a function after
> a certain time limit expires.
Doing a search for "timeout function Python" on Google reveals a number
of approaches.
Using signals:
* http://nick.vargish.o
In article <[EMAIL PROTECTED]>,
James Stroud <[EMAIL PROTECTED]> wrote:
...
> Paddy wrote:'
> > Frank,
> > IPython is great, but it is not a replacement for a shell like bash. If
> > you have a Linux system then you still need to know the rudiments of
> > bash
>
> Or better yet, csh. ;)
Careful
alessandro írta:
> Oh my God! it's really so complicated?
>
> 3 modules (threading, SocketServer, select) only for design a way to
> shutdown a TCP server
> ...but they told me that python was easy... :)
>
I believe that SockerServer was created for testing purposes, although
there are some
I've been started with Python on winXP,
by installing the "Enthought" edition (about half a year old).
This works like a charm.
As a regular windows user,
I'm not used to install partial packages.
Now I find interesting application,
that require higher versions of certain packages.
Can I install o
I am working on a Python module and I would like to prepare some API
documentaiton. I managed to find epydoc after some searching online.
Is there a standard way to document the API for Python modules? Is
epydoc the best way to go if there is no standard? Are there other ways
to document a Python
At Monday 22/1/2007 15:58, you wrote:
Can I install only the higher version of a certain package ?
Is that done by simply copying them ?
You should read the install instructions given in the package, but
usually it's as easy as:
- extract the .zip into a temporary directory
- open a command
At Monday 22/1/2007 14:49, alessandro wrote:
Oh my God! it's really so complicated?
3 modules (threading, SocketServer, select) only for design a way to
shutdown a TCP server
...but they told me that python was easy... :)
You already have the answer: replace serve_forever with your own lo
Gert Cuykens a écrit :
> import MySQLdb
>
> class Db:
(snip)
>def excecute(self,cmd):
>self._cursor.execute(cmd)
>self._db.commit()
>
What about autocommit and automagic delegation ?
import MySQLdb
class Db(object):
def __init__(self,server, user, password, database):
W. Watson napisał(a):
> I downloaded python-2.5.msi and installed it. I believe its editor is
> IDE. I understand there's a Win editor called pythonwin. I believe it's
> in the download pywin32-210.win32-py2.5.exe, but I'm not sure if this
> exe file has just the editor or all of Python. Comments?
Per B.Sederberg princeton.edu> writes:
> I'll see if I can make a really small example program that eats up memory on
> our cluster. That way we'll have something easy to work with.
Now this is weird. I figured out the bug and it turned out that every time you
call numpy.setmember1d in the lat
Any text editor is only as good as the
> programmer who uses it. ;)
>
Yes but an IDE is different ;-)
cheers,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
Where is Oracle support?
--
http://mail.python.org/mailman/listinfo/python-list
Are there any sprintf in Python?
I know you can print to files(or redefine sys.stout) and later open the
file content.
Are there similar function to sprintf in C?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
"questions?" <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> Are there any sprintf in Python?
> I know you can print to files(or redefine sys.stout) and later
> open the file content.
>
> Are there similar function to sprintf in C?
Something like this?
x = 9
vbl = "One digit: %d, four d
Dennis Lee Bieber wrote:
> On 21 Jan 2007 13:32:19 -0800, "George Sakkis" <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
> >
> > The file is written once and then opened as read-only, there's no
> > flushing. So if caching is completely up to the OS, I take it that my
>
>
The python editor won't "get exit." It will raise an exception. With
or without an eval, you can catch the exception.
try:
x = 1/0
except ZeroDivisionError:
x = "infinity"
Jm lists wrote:
> Hello members,
>
> I want to know does the "eval" in python have the same features as in
> Perl
Per B.Sederberg wrote:
> Per B.Sederberg princeton.edu> writes:
>
>> I'll see if I can make a really small example program that eats up memory on
>> our cluster. That way we'll have something easy to work with.
>
> Now this is weird. I figured out the bug and it turned out that every time
> y
> In fact, memory that is read in because of mmap should *never* cause
> a MemoryError.
This is certainly not true. You can run out of virtual address space by
reading data from a memory mapped file.
> Python calls MapViewOfFile when mmap.mmap is invoked,
> at which point the operating commits t
> It's around 400MB. As I said, I cannot reproduce the MemoryError
> locally since I have 1GB physical space but IIRC the user who reported
> it had less. Actually I am less concerned about whether a MemoryError
> is raised or not in this case and more about the fact that even if
> there's no exce
Robert Hicks said the following on 22.1.2007 21:02:
> Where is Oracle support?
>
What about DB2 UDB and DB2/400 >:o
--
Dejan Rodiger - PGP ID 0xAC8722DC
Delete wirus from e-mail address
--
http://mail.python.org/mailman/listinfo/python-list
Scott Huey wrote:
> I am working on a Python module and I would like to prepare some API
> documentaiton. I managed to find epydoc after some searching online.
>
> Is there a standard way to document the API for Python modules? Is
> epydoc the best way to go if there is no standard? Are there othe
I browsed this subject and thought I might use the
'AES' cypher scheme to do this. Would this be
a good choice?
I came across a "Python Cryptography Toolkit"
http://www.amk.ca/python/code/crypto
which has a nice AES implementation, but in
the example, a simple string is passed as the
key:
obj=
Adonis Vargas wrote:
> Then Python will generate a quick help interface for your module. I
Hi
Does Python has API just like in Java, for example
http://java.sun.com/j2se/1.5.0/docs/api/allclasses-noframe.html ctrl-f and
than click on class you are searching for, and finally you get clean list
o
On Sun, 21 Jan 2007 22:10:17 -0800, James Stroud <[EMAIL PROTECTED]> wrote:
> Frank Potter wrote:
>> I learned some python in windows.
>> And now I've turned to linux.
>> I read a book and it teaches how to write shell script with bash,
>> but I don't feel like the grammar of bash.
...
> My strong
Reading all of the above this is the most simple i can come too.
import MySQLdb
class Db:
def __init__(self,server,user,password,database):
self._db=MySQLdb.connect(server , user , password , database)
self._db.autocommit(True)
self.cursor=self._db.cursor()
def e
On Mon, 22 Jan 2007 14:40:49 +0100, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
> BJörn Lindqvist wrote:
>
>> I want to use Python to connect to a SSH account over a HTTP proxy to
>> automate some operations. I thought paramiko would be able to do that,
>> but it can not (it seems).
>>
>> Is there
Boris Ozegovic:
> Does Python has API just like in Java, for example
> http://java.sun.com/j2se/1.5.0/docs/api/allclasses-noframe.html ctrl-f and
> than click on class you are searching for, and finally you get clean list
> of all fields and methods. Where can I find similar in Python, for
> examp
At Monday 22/1/2007 17:48, Boris Ozegovic wrote:
Does Python has API just like in Java, for example
http://java.sun.com/j2se/1.5.0/docs/api/allclasses-noframe.html ctrl-f and
than click on class you are searching for, and finally you get clean list
of all fields and methods. Where can I find si
Has there been any progress on being able to build extensions with MSVC8
(aka Visual Studio 2005)?
Since the "free" compiler from Microsoft is now VC8, I *assume* this will
be the new method.
2.5 itself rebuilds using PCbuild8, as do tkinter (but using Tcl 8.4.14 and
Tk 8.4.14) however no
Laszlo Nagy schrieb:
>
>> In fact, memory that is read in because of mmap should *never* cause
>> a MemoryError.
> This is certainly not true. You can run out of virtual address space by
> reading data from a memory mapped file.
That is true, but not what I said. I said you cannot run out of mem
Tobiah <[EMAIL PROTECTED]> writes:
> I browsed this subject and thought I might use the 'AES' cypher
> scheme to do this. Would this be a good choice?
There's more to it than that, but yes, AES is a good underlying
algorithm.
> So my real question is, how do I go about generating the best key.
>
Nick Craig-Wood schrieb:
> So presumably it is python generating a MemoryError. It is asking for
> a new bit of memory and it is failing so it throws a MemoryError.
>
> Could memory allocation under windows be affected by a large chunk of
> mmap()ed file which is physically swapped in at the time
Can you please tell me why the following code does not work in python?
My guess is I need to convert 'count' from a string to an integer. How
can I do that?
And my understanding is python is a dynamic type language, should
python convert it for me automatically?
count = sys.argv[2]
for i in range(
> count = sys.argv[2]
> for i in range(count):
> #do some stuff
for i in range(int(count)):
--
Posted via a free Usenet account from http://www.teranews.com
--
http://mail.python.org/mailman/listinfo/python-list
Howard Lightstone schrieb:
> Has there been any progress on being able to build extensions with MSVC8
> (aka Visual Studio 2005)?
No. No progress will happen throughout the release of Python 2.5.
To get the facts straight: it *might* be possible to build an extension
with msvc8 (thus linking with
Stef Mientki napisał(a):
> Any text editor is only as good as the
>> programmer who uses it. ;)
>>
> Yes but an IDE is different ;-)
Would it make me better Fortran programmer? ;)
--
Jarek Zgoda
http://jpa.berlios.de/
--
http://mail.python.org/mailman/listinfo/python-list
George Sakkis wrote:
> It's around 400MB.
On Windows you may not be able to map a file of this size into memory
because of virtual address space fragmentation. A Win32 process has
only 2G of virtual address space, and DLLs tend to get scattered
through out that address space.
> As I said, I cann
[EMAIL PROTECTED] wrote:
> Can you please tell me why the following code does not work in python?
> My guess is I need to convert 'count' from a string to an integer. How
> can I do that?
> And my understanding is python is a dynamic type language, should
> python convert it for me automatically?
Hi,
I am following this python example trying to time how long does an
operation takes, like this:
My question is why the content of the file (dataFile) is just '0.0'?
I have tried "print >>dataFile, timeTaken" or "print >>dataFile,str(
timeTaken)", but gives me 0.0.
Please tell me what am I miss
Hi,
Is there a way to do that ?
Regards,
hg
--
http://mail.python.org/mailman/listinfo/python-list
At Monday 22/1/2007 19:05, [EMAIL PROTECTED] wrote:
I am following this python example trying to time how long does an
operation takes, like this:
My question is why the content of the file (dataFile) is just '0.0'?
I have tried "print >>dataFile, timeTaken" or "print >>dataFile,str(
timeTaken)
On Mon, 22 Jan 2007 14:05:16 -0800, [EMAIL PROTECTED] wrote:
> Hi,
>
> I am following this python example trying to time how long does an
> operation takes, like this:
>
> My question is why the content of the file (dataFile) is just '0.0'?
> I have tried "print >>dataFile, timeTaken" or "print
On Mon, 22 Jan 2007 20:40:57 +, Adonis Vargas wrote:
> But a quick look at pydoc (not to be confused with epydoc)
> which is part of the standard library allows you to generate
> documentation in HTML format, and/or serve it over web with its built-in
> HTTP server.
>
> pydoc: http://docs.
Jarek Zgoda wrote:
> Stef Mientki napisał(a):
>
>> Any text editor is only as good as the
>>> programmer who uses it. ;)
>>>
>> Yes but an IDE is different ;-)
>
> Would it make me better Fortran programmer? ;)
>
I can't judge for you, ...
... maybe you are already at the top ;-)
I can only spe
hg wrote:
> Hi,
>
> Is there a way to do that ?
>
> Regards,
>
> hg
PS: I'm actually under wpPython
--
http://mail.python.org/mailman/listinfo/python-list
Victor Polukcht wrote:
> Can anybody suggest a correct way of checking in python module exists
> and correctly installed from python program.
>
Not sure I understand the question, but I'll try:
try: import yourmodule
except:
print "Can't import yourmodule"
-Larry
--
http://mail.python.org
I've noticed that in Python 2.5, the interactive prompt does not
support intelligent use of arrow keys like 2.4 did (up/down for
previous/next statement, left/right for moving the cursor). What
exactly is the reason for this and is there an easier fix than
downgradinig to 2.4? Thanks.
--
http://m
hg wrote this on Mon, Jan 22, 2007 at 04:12:50PM +0100. My reply is below.
> Is there a way to do that? (Make noise.)
In Gnome there is:
gtk.gdk.beep()
--
.. Chuck Rhode, Sheboygan, WI, USA
.. Weather: http://LacusVeris.com/WX
.. 28° — Wind WSW 10 mph — Sky overcast.
--
http://mail.python
tac-tics wrote:
> I've noticed that in Python 2.5, the interactive prompt does not
> support intelligent use of arrow keys like 2.4 did (up/down for
> previous/next statement, left/right for moving the cursor). What
> exactly is the reason for this and is there an easier fix than
> downgradinig to
In <[EMAIL PROTECTED]>, hg wrote:
> Is there a way to do that ?
Maybe this helps:
http://paste.pocoo.org/show/316/
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
i would like to now how to get a self reference from within a module. The
goal is to be able to generate a list of all declared function within the
module.
Thanks,
Erick
--
http://mail.python.org/mailman/listinfo/python-list
Thanks.
I have a fuction called 'func1'.
def func1:
# logic of the function
When my script just call 'func1()' it works.
func1()
But when put it under timerit.Timer, like this:
t = timeit.Timer("func1()","")
t.repeat(1, 10)
# want to time how long it takes to run 'func1' 10 times, I get a
Oleg Broytmann wrote:
> Hello!
>
> I'm pleased to announce the 0.8.0b2 release of SQLObject.
>
>
> What is SQLObject
> =
>
> SQLObject is an object-relational mapper. Your database tables are described
> as classes, and rows are instances of those classes. SQLObject is meant t
Lavoie Érick wrote:
> Hi,
>
> i would like to now how to get a self reference from within a
> module. The goal is to be able to generate a list of all declared
> function within the module.
>
> Thanks,
>
> Erick
I think this is what you're asking for:
If you import a module, say
import sys
Robert Kern wrote:
> tac-tics wrote:
> > I've noticed that in Python 2.5, the interactive prompt does not
> > support intelligent use of arrow keys like 2.4 did (up/down for
> > previous/next statement, left/right for moving the cursor). What
> > exactly is the reason for this and is there an easi
On Mon, 22 Jan 2007 14:53:01 -0800, tac-tics wrote:
> I've noticed that in Python 2.5, the interactive prompt does not
> support intelligent use of arrow keys like 2.4 did (up/down for
> previous/next statement, left/right for moving the cursor).
It works perfectly for me.
> What
> exactly is t
On Mon, 22 Jan 2007 15:32:58 -0800, samuel.y.l.cheung wrote:
> File "/usr/lib/python2.4/timeit.py", line 188, in repeat
> t = self.timeit(number)
> File "/usr/lib/python2.4/timeit.py", line 161, in timeit
> timing = self.inner(it, self.timer)
> File "", line 6, in inner
> NameError:
> Have you changed your terminal (either the program itself or its config)
> so that it is no longer sending the correct codes?
I doubt this is the case. Everything works for the bash shell and
common lisp. It's just python acting up.
> When you hit the arrow key, what happens? Do you just get no
It looks like I got readline working. Thanks for the help!
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 122 matches
Mail list logo