question: script to input data into a webpage and then retrieve the result?

2006-10-21 Thread mxywp
Could someone help me with this or share an example script with me?Here is what I want to accomplish:(1) input 3 values into 3 boxes on a web page(2) there is an authentication code each time you access this page and I have to write this code into the fourth box on the same page(3) click "su

Re: question: script to input data into a web page and then retrieve the result?

2006-10-21 Thread Paul Rubin
"mxywp" <[EMAIL PROTECTED]> writes: > I would really appreciate it if someone can tell me how to do it > using python script. I am new to python web programming. Look at the docs for the urllib module. Also, arrange for some alternative API on the web side, if possible. What you're trying to do

question: script to input data into a web page and then retrieve the result?

2006-10-21 Thread mxywp
 Hi,Could someone help me with this or share an example script with me?Here is what I want to accomplish:(1) input 3 values into 3 boxes on a web page(2) there is an authentication code each time you access this page and I have to write this code into the fourth box on the same page(3) click "submi

Speed comparison of Numeric, numarray, numpy

2006-10-21 Thread robert
just a note - some speed comparisons : >>> timeit.Timer('x=a-a*.1','import >>> Numeric;a=Numeric.ones(300,Numeric.Float)').timeit(1) 0.60627370238398726 >>> timeit.Timer('x=a-a*.1','import >>> numarray;a=numarray.ones(300,numarray.Float)').timeit(1) 0.42836673376223189 >>> timeit.Timer('

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread sanxiyn
> Does anyone use it for sophisticated GUI development? I have seen a very sophisticated admin tool written in Tkinter, coming from SAP. So apparently SAP does. Seo Sanghyeon -- http://mail.python.org/mailman/listinfo/python-list

question: script to input data into a web page and then retrieve the result?

2006-10-21 Thread mxywp
-- http://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread casevh
> > The link for pexports-0.42h.zip is broken so I cant > test it on an extension. > pexports is only needed for Python 2.3. It is not required for 2.4 or 2.5. casevh -- http://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread Kenneth Long
> > mingw32 is supported and can compile many > extensions. See the following > post: > > http://groups.google.com/group/comp.lang.python/msg/8e2260fe4d4b7de9 > > If you meant something else with your comment, > please explain. > thanks for the reference.. I just got the latest source for pyt

Re: Attempting to parse free-form ANSI text.

2006-10-21 Thread Jean-Paul Calderone
On Sun, 22 Oct 2006 00:34:14 -0400, "Michael B. Trausch" wrote: >Alright... I am attempting to find a way to parse ANSI text from a >telnet application. However, I am experiencing a bit of trouble. > >What I want to do is have all ANSI sequences _removed_ from the output, >save for those that man

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread casevh
Anthony Baxter wrote: > On 21 Oct 2006 21:39:51 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > mingw32 is supported and can compile many extensions. See the following > > post: > > > > http://groups.google.com/group/comp.lang.python/msg/8e2260fe4d4b7de9 > > > > If you meant something else

Re: PSF Infrastructure has chosen Roundup as the issue tracker for Python development

2006-10-21 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: > I wonder if the committee has really decided on a PROBLEM or BUG > tracker, not an "issue" tracker. For some silly reason, "issue" has > become a euphemism for "problem" nowadays. It is worth keeping in mind > the difference. Questions about the future direction of Pyth

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread Martin v. Löwis
Kenneth Long schrieb: >> Okay if one builds such from sources... but us poor >> Windows flunkies >> without a build environment have to wait for some >> kindly soul to build >> the installer compatible with the new Python >> version. >> > especially since I havent got MS visual studio... > and

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread Anthony Baxter
On 21 Oct 2006 21:39:51 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > mingw32 is supported and can compile many extensions. See the following > post: > > http://groups.google.com/group/comp.lang.python/msg/8e2260fe4d4b7de9 > > If you meant something else with your comment, please explain.

Re: Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread casevh
Kenneth Long wrote: > > Okay if one builds such from sources... but us poor > > Windows flunkies > > without a build environment have to wait for some > > kindly soul to build > > the installer compatible with the new Python > > version. > > > especially since I havent got MS visual studio...

Attempting to parse free-form ANSI text.

2006-10-21 Thread Michael B. Trausch
Alright... I am attempting to find a way to parse ANSI text from a telnet application. However, I am experiencing a bit of trouble. What I want to do is have all ANSI sequences _removed_ from the output, save for those that manage color codes or text presentation (in short, the ones that are ESC[

Fwd: Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread Kenneth Long
> Okay if one builds such from sources... but us poor > Windows flunkies > without a build environment have to wait for some > kindly soul to build > the installer compatible with the new Python > version. > especially since I havent got MS visual studio... and mingw is not supported... :-(

Re: PSF Infrastructure has chosen Roundup as the issue tracker for Python development

2006-10-21 Thread beliavsky
BJörn Lindqvist wrote: > On 10/20/06, Brett Cannon <[EMAIL PROTECTED]> wrote: > > At the beginning of the month the PSF Infrastructure committee announced > > that we had reached the decision that JIRA was our recommendation for the > > next issue tracker for Python development. I wonder if the co

Re: What About Next Laptop Computers?

2006-10-21 Thread [EMAIL PROTECTED]
I might be intrested The company is on the pink sheets lill or somesuch thing and the guy is posting everywhere plus he talks about fidel castro in spanish... John Purser wrote: > On Sat, 2006-10-21 at 11:51 -0700, Joe wrote: > > L International Reveals Plans for High-Tech > > Next-Generation Lap

Re: silent processing with python+modpython+cheetah

2006-10-21 Thread grahamd
Sai Krishna M wrote: > Hi, > > I have been working for some time developing web pages using python, > modpython, cheetah. > I find that this method has come inherent difficulties in it like if > we want to generate a single page we have to write two separate files > ( py & tmpl). > Is there any ot

Re: print dos format file into unix format

2006-10-21 Thread Tim Roberts
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >Suppose I have a dos format text file. The following python code will >print ^M at the end. I'm wondering how to print it in unix format. > >fh = open(options.filename) >for line in fh.readlines() > print line, Are you running this on Unix or on D

Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-21 Thread Tim Roberts
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] schrieb: >> I just want to upgrade my python version from 2.4.3 to 2.4.4,do I need >> to uninstall python 2.4.3 first ? >> >> I'd rather not to do so, because I have installed some other python >> packages for python2.4.3. > >You don

Re: Python with MPI enable C-module

2006-10-21 Thread [EMAIL PROTECTED]
Mitko, Thank you for your response. You understand the problem correctly. The Python module uses MPI calls in its implementation. The idea of the project is to create an abstraction for a distributed memory computer. In doing so, the user is mostly isolated from a need to understand and use MPI c

Re: A Comparison Of Dynamic and Static Languiges

2006-10-21 Thread sturlamolden
Gerrit Holl wrote: > This newsgroup is mirrored by a mailing-list, so many people use their real > address. The solution to spam is spamfiltering (spambayes), not hiding ones > address on the internet. The answer to spam here in Norway is incredibly simple. It seems that all spam originates in t

Re: print dos format file into unix format

2006-10-21 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Suppose I have a dos format text file. The following python code will > print ^M at the end. I'm wondering how to print it in unix format. > > fh = open(options.filename) > for line in fh.readlines() > print line, > > Thanks, > Peng > open(outfile, "wb").write(open(i

Re: ZODB and Python 2.5

2006-10-21 Thread Andrew McLean
Robert Kern wrote: > I would suggest, in order: > > 1) Look on the relevant mailing list for people talking about using ZODB > with Python 2.5. Been there, didn't find anything. Except that recently released versions of Zope (2.9.5 and 2.10.0) aren't compatible with Python 2.5. [Being pedantic

Re: A Comparison Of Dynamic and Static Languiges

2006-10-21 Thread Gerrit Holl
On 2006-10-21 20:41:42 +0200, Scott M. wrote: > Also, widely posting your real (unaltered) email address in forums like this > is a sure way to get noticed by spammers. This newsgroup is mirrored by a mailing-list, so many people use their real address. The solution to spam is spamfiltering (spam

print dos format file into unix format

2006-10-21 Thread [EMAIL PROTECTED]
Suppose I have a dos format text file. The following python code will print ^M at the end. I'm wondering how to print it in unix format. fh = open(options.filename) for line in fh.readlines() print line, Thanks, Peng -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorators and how they relate to Python - A little insight please!

2006-10-21 Thread [EMAIL PROTECTED]
Jerry wrote: > Thanks to everyone that resonded. I will have to spend some time > reading the information that you've provided. > > To Fredrik, unfortunately yes. I saw the examples, but couldn't get my > head wrapped around their purpose. You're probably looking at the newfangled @decorator syn

Re: silent processing with python+modpython+cheetah

2006-10-21 Thread Steve Holden
Sai Krishna M wrote: > Hi, > > I have been working for some time developing web pages using python, > modpython, cheetah. > I find that this method has come inherent difficulties in it like if > we want to generate a single page we have to write two separate files > ( py & tmpl). > Is there any ot

Re: Decorators and how they relate to Python - A little insight please!

2006-10-21 Thread Fuzzyman
Fredrik Lundh wrote: > Jerry wrote: > > > even though I've read the PEP > > even the examples section? > > http://www.python.org/dev/peps/pep-0318/#examples > The second example of which shows : Define a class with a singleton instance. Note that once the class disappears enterprising progr

Re: Decorators and how they relate to Python - A little insight please!

2006-10-21 Thread Bruno Desthuilliers
Jerry a écrit : > Thanks to everyone that resonded. I will have to spend some time > reading the information that you've provided. > > To Fredrik, unfortunately yes. I saw the examples, but couldn't get my > head wrapped around their purpose. Perhaps it's due to the fact that > my only experien

Re: Inheriting property functions

2006-10-21 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : (snip) > The trouble is that get_a and set_a are attributes of the _class > object_ A. Instances of A (and hence, instances of B) will see them, > but the class B will not, Yes it does: >>> class A(object): ... aa = "aa" ... >>> class B(A):pass ... >>> B.aa 'aa

Re: silent processing with python+modpython+cheetah

2006-10-21 Thread Bruno Desthuilliers
Sai Krishna M a écrit : > Hi, > > I have been working for some time developing web pages using python, > modpython, cheetah. > I find that this method has come inherent difficulties in it like if > we want to generate a single page we have to write two separate files > ( py & tmpl). > Is there any

Re: Good Form

2006-10-21 Thread bruno de chez modulix en face
[EMAIL PROTECTED] a écrit : > I am new to Python but come from a C++ background so I am trying to > connect the dots :) . I am really liking what I see so far but have > some nubee questions on what is considered good form. For one thing I > am used to class variables I assume you mean "instance

Re: PSF Infrastructure has chosen Roundup as the issue tracker for Python development

2006-10-21 Thread Anna Ravenscroft
On 10/20/06, Brett Cannon <[EMAIL PROTECTED]> wrote: > At the beginning of the month the PSF Infrastructure committee announced > that we had reached the decision that JIRA was our recommendation for the > next issue tracker for Python development. Realizing, though, that it was a > tough call bet

Re: why does this unpacking work

2006-10-21 Thread Bruno Desthuilliers
John Salerno a écrit : > [EMAIL PROTECTED] wrote: > >> It's just sequence unpacking. Did you know that this works?: >> >> pair = ("California","San Francisco") >> state, city = pair >> print city >> # 'San Francisco' >> print state >> # 'California' > > > Yes, I understand that. What confused m

Re: A Comparison Of Dynamic and Static Languiges

2006-10-21 Thread sturlamolden
[EMAIL PROTECTED] wrote: > c#: mono 1.1.13.7 > perl: perl 5.8.8 > python: python 2.4.2 > ruby: ruby 1.8.4 And why would any of this tell you anything about static versus dynamic languages? The languages you list are all dependent on different runtimes, and your results will simply reflect that.

Re: What About Next Laptop Computers?

2006-10-21 Thread John Purser
On Sat, 2006-10-21 at 11:51 -0700, Joe wrote: > L International Reveals Plans for High-Tech > Next-Generation Laptop Computer Systems > > L International Computers Inc. "L" renowned manufacturer of > high-performance computers and personal/business technologies, revealed > plans for its next gener

What About Next Laptop Computers?

2006-10-21 Thread Joe
L International Reveals Plans for High-Tech Next-Generation Laptop Computer Systems L International Computers Inc. "L" renowned manufacturer of high-performance computers and personal/business technologies, revealed plans for its next generation high-end laptop and ultra-portable computer systems.

Re: A Comparison Of Dynamic and Static Languiges

2006-10-21 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm doing a report on the speed of develipment and executionin varius > programing langiuiges. write code for all these tasks in the languige > of your choise if intrestied send code to [EMAIL PROTECTED] > > Task 1: > write a program t

Re: A Comparison Of Dynamic and Static Languiges

2006-10-21 Thread Scott M.
Perhaps you should do your own work so you'll understand the concept and learn something? Also, widely posting your real (unaltered) email address in forums like this is a sure way to get noticed by spammers. Good luck. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm doing a

Re: A Comparison Of Dynamic and Static Languiges

2006-10-21 Thread Paul Lutus
[EMAIL PROTECTED] wrote: > I'm doing a report on the speed of develipment and executionin varius > programing langiuiges. write code for all these tasks in the languige > of your choise if intrestied send code to [EMAIL PROTECTED] What you should be doing is learning basic literacy. Life works l

Strptime Problem with PyLucene

2006-10-21 Thread Kyujin Shim
I want to use time module like this.mydate = time.strptime('17 Jul 2006 07:23:09 GMT', '%d %b %Y %H:%M:%S %Z')But, I have some problem when I run it with PyLucene. Is there someone know about this problem? (1:351:148)$ pythonPython 2.4.4c0

A Comparison Of Dynamic and Static Languiges

2006-10-21 Thread atbusbook
I'm doing a report on the speed of develipment and executionin varius programing langiuiges. write code for all these tasks in the languige of your choise if intrestied send code to [EMAIL PROTECTED] Task 1: write a program that prints how many times you repeat all words in a file passed as a co

Re: User Access to the docstring of a property

2006-10-21 Thread Diez B. Roggisch
Colin J. Williams schrieb: > George, > > Thanks to Dietz and yourself. > > Yes, I should have referenced the class, rather than the instance. > However, for methods, the docstring is revealed for an instance. > > Colin W. > > PS It would help if someone could explain the use of @apply in the

Re: Screen capture on Linux

2006-10-21 Thread Grant Edwards
On 2006-10-21, Sai Krishna M <[EMAIL PROTECTED]> wrote: > On 10/21/06, Paolo Pantaleo <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I need to capture a screen snapshot in Linux. PIL has a module ImageMagick has a command-line program named "import" that you might be able to use. > Its defaultly provide

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread Peter Decker
On 21 Oct 2006 08:26:56 -0700, sturlamolden <[EMAIL PROTECTED]> wrote: > That leaves you with wxPython (utterly ugly API, remninds me of MFC and > Motif), PyQt (very expensive unless GPL is not a show stopper) or > PyObjC. I too hated the wxPython API, but loved how it looked. And since I need th

Re: Why doesn't this work?

2006-10-21 Thread Ron Garret
In article <[EMAIL PROTECTED]>, Larry Bates <[EMAIL PROTECTED]> wrote: > Because datetime is a new-style class: Ah. > The Constructor __new__ > > If you are like me, then you probably always thought of the __init__ method > as > the Python equivalent of what is called a constructor in C++. Th

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread Jani Hakala
Kevin Walzer <[EMAIL PROTECTED]> writes: > For instance, I've developed several Tcl > applications that use the core Tk widgets, the Tile theming package, the > Bwidget set (great tree widget and listbox, which allows you to embed > images), and tablelist (an extremely flexible muti-column listbox

silent processing with python+modpython+cheetah

2006-10-21 Thread Sai Krishna M
Hi, I have been working for some time developing web pages using python, modpython, cheetah. I find that this method has come inherent difficulties in it like if we want to generate a single page we have to write two separate files ( py & tmpl). Is there any other better way of doing things.? Als

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread sturlamolden
[EMAIL PROTECTED] wrote: > pygtk can be a pain to install and some of the librarys that are built > on top of it have copyrights and such. apple for the fonts and there > is one for the images. It also can be a pain to install.. It would be > nice to see it as a low cost comercial package that

Re: Screen capture on Linux

2006-10-21 Thread Sai Krishna M
On 10/21/06, Paolo Pantaleo <[EMAIL PROTECTED]> wrote: > Hi, > > I need to capture a screen snapshot in Linux. PIL has a module Its defaultly provided in the 'actions' menu of the OS. > IageGrab, but in the free version it only works under Windows. Is > there any package to capture the screen on

Screen capture on Linux

2006-10-21 Thread Paolo Pantaleo
Hi, I need to capture a screen snapshot in Linux. PIL has a module IageGrab, but in the free version it only works under Windows. Is there any package to capture the screen on Linux? Thnx PAolo -- http://mail.python.org/mailman/listinfo/python-list

Re: Why doesn't this work?

2006-10-21 Thread Larry Bates
Because datetime is a new-style class: The Constructor __new__ If you are like me, then you probably always thought of the __init__ method as the Python equivalent of what is called a constructor in C++. This isn't the whole story. When an instance of a class is created, Python first calls the _

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread [EMAIL PROTECTED]
pygtk can be a pain to install and some of the librarys that are built on top of it have copyrights and such. apple for the fonts and there is one for the images. It also can be a pain to install.. It would be nice to see it as a low cost comercial package that is already put together say $20 or

Re: iniziare a programmare

2006-10-21 Thread bearophileHUGS
Lemon Tree: Interesting discussion, and I agree that having more info about the exceptions that can be raised is generally useful. You too can improve python docs, putting more info inside them. But this is the wrong newgroup, this isn't iclp, this is clp. Bye, bearophile -- http://mail.python.

Why doesn't this work?

2006-10-21 Thread Ron Garret
Python 2.3.5 (#1, Jan 30 2006, 13:30:29) [GCC 3.3 20030304 (Apple Computer, Inc. build 1819)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from datetime import datetime >>> class ts(datetime): ... def __init__(self): pass ... >>> ts() Traceback (most rece

Re: User Access to the docstring of a property

2006-10-21 Thread Colin J. Williams
George, Thanks to Dietz and yourself. Yes, I should have referenced the class, rather than the instance. However, for methods, the docstring is revealed for an instance. Colin W. PS It would help if someone could explain the use of @apply in the example Dietz gave. The documentation gives no

Re: Detect Unused Modules

2006-10-21 Thread Kamilche
> Nice as it is, but why not use pylint to check this and many other > coding style issues? I made this the first time I mangled some code because pychecker said some modules were not used when they really were. The module wasn't that complex, only 302 lines, but it got it wrong. -- http://mail.

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread sturlamolden
Wektor wrote: > wx has also graphical editors like Glade (there is a wxGlade project) > giving a xml description of a window and its cross platform. If you are thinking about XRC, then beware that this XML don't solve any problems, it just creates another. XRC and libglade do not compare. libgla

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread sturlamolden
Wektor wrote: > wx has also graphical editors like Glade (there is a wxGlade project) > giving a xml description of a window and its cross platform. If you are thinking about XRC, then beware that this XML don't solve any problems, it just creates another. XRC and libglade do not compare. libgla

Re: ZODB and Python 2.5

2006-10-21 Thread Martin v. Löwis
Jean-Paul Calderone schrieb: > Python 2.5 made quite a changes which were not backwards compatible, > though. I think for the case of Python 2.4 -> Python 2.5 transition, > quite a few apps will be broken, many of them in relatively subtle > ways (for example, they may have been handling OSError i

Re: Debugging

2006-10-21 Thread R. Bernstein
Fulvio <[EMAIL PROTECTED]> writes: > *** > Your mail has been scanned by InterScan MSS. > *** > > > Hello, > > I'm trying out a small utility and my method uses PDB for debugging. I tried > to read some information regarding the commands of PDB but are r

Re: iniziare a programmare

2006-10-21 Thread Lemon Tree
Enrico 'Mc Osten' Franchi ha scritto: > Lemon Tree <[EMAIL PROTECTED]> wrote: > > > Non per programmini stupidi. > > E poi magari ti manca proprio il test che va a coprire una certa parte > > che, guarda caso... > > Allora c'è un problema di sviluppo. I test si scrivono *sempre* e > comunque. In

Re: curious paramstyle qmark behavior

2006-10-21 Thread Jon Clements
BartlebyScrivener wrote: > Jon Clements wrote: > > > if your load on the data-entry/browsing side isn't too heavy, you can > > use the 'development server' instead of installing a full-blown server > > such as Apache (I'm not sure if IIS is supported). > > What's IIS? It's Internet Information S

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread sturlamolden
Kevin Walzer wrote: > I'm a Mac developer--Gtk does not run natively on the Mac (i.e. as an > Aqua framework), only under X11. So that's a non-starter for me. GTK is skinnable and can look a lot like Aqua. Qt is also just pretending to be a native Aqua toolkit (or used to), but it is very good a

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread Wektor
Kevin Walzer wrote: > sturlamolden wrote: > > Christophe wrote: > > > >> Nobody mentionned it, but I think you should try PyQT and PyGTK before > >> wxPython. Myself, I do not like wx : it looks too much like the MFC. > >> > >> PyGTK is good, but GTK doesn't work that well on windows. > > > > GTK

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread Diez B. Roggisch
> I'm a Mac developer--Gtk does not run natively on the Mac (i.e. as an > Aqua framework), only under X11. So that's a non-starter for me. Besides the excellent PyObjc-bridge that of course only works for Mac-only-development, you might consider PyQt. Biggest drawback: the GPL-license. But feat

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread Kevin Walzer
sturlamolden wrote: > Christophe wrote: > >> Nobody mentionned it, but I think you should try PyQT and PyGTK before >> wxPython. Myself, I do not like wx : it looks too much like the MFC. >> >> PyGTK is good, but GTK doesn't work that well on windows. > > GTK and PyGTK works well on Windows now.

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-21 Thread sturlamolden
Christophe wrote: > Nobody mentionned it, but I think you should try PyQT and PyGTK before > wxPython. Myself, I do not like wx : it looks too much like the MFC. > > PyGTK is good, but GTK doesn't work that well on windows. GTK and PyGTK works well on Windows now. GTK used to be unstable on Wind

ANN: Leo 4.4.2 beta 3 released

2006-10-21 Thread Edward K. Ream
Leo 4.4.2 beta 3 is available at: http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106 The beta release fixed dozens of bugs and smoothed many rough edges. There are no known major bugs in Leo. This will be the last beta release before Loo 4.4.2 final. Leo is a text edito

Re: curious paramstyle qmark behavior

2006-10-21 Thread BartlebyScrivener
Jon Clements wrote: > However, only you know what > you really want to do, so it's up to you to evaluate which RDMS to go > for! That assumes a lot :) My needs are simple. I'm exploring. My only real db is a collection of 5,000 quotations, book passages etc. Flat file would probably even do it.

Re: Is x.f() <==>MyClass.f(x) a kind of algebraic structure?

2006-10-21 Thread Boris Borcic
steve wrote: > What can we think that? When much stretch definitions -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLAlchemy and py2exe

2006-10-21 Thread Steve Holden
Karlo Lozovina wrote: > I've installed SQLAlchemy under Windows (strangely, it didn't install > inside ../site-packages/ as a directory, but rather as a > SQLAlchemy-0.2.8-py2.4.egg file). I can import it with 'import > sqlalchemy' and run my program with WingIDE, SPE and ofcourse in plain old

Re: help with my first use of a class

2006-10-21 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Saturday 21 October 2006 02:01, James Stroud wrote: > I think the trick is to identify when a class would make more sense than > a collection of subroutines I do believe that's a bit of forecasting, i

Re: Pygtk but no gtk?

2006-10-21 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Saturday 21 October 2006 03:01, Jonathan Smith wrote: > my pygtk provides > /usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py, which contains > the gtk module Great advice. I've tried >: $ ls /

Re: The fastest search

2006-10-21 Thread Gregor Horvath
Fulvio schrieb: > > Is there some trick to apply the best search in wise use of resources while > using the above said methods? > measure it: http://docs.python.org/lib/module-timeit.html Regarding your debugger question in the seperate thread I don't know since I am not using a debugger at a

Re: curious paramstyle qmark behavior

2006-10-21 Thread Jon Clements
BartlebyScrivener wrote: > Thanks, Jon. > > I'm moving from Access to MySQL. I can query all I want using Python, > but so far haven't found a nifty set of forms (ala Access) for easying > entering of data into MySQL. My Python is still amateur level and I'm > not ready for Tkinkter or gui progr

Re: Customize the effect of enumerate()?

2006-10-21 Thread Dustan
Paul Rubin wrote: > "Dustan" <[EMAIL PROTECTED]> writes: > > Can I make enumerate(myObject) act differently? > > No. > > > Why the funny behavior, you ask? For my class A, it doesn't make sense > > to number everything the standard programming way. > > Add an enumerate method to the class then, th

Re: The fastest search

2006-10-21 Thread Steven D'Aprano
On Sat, 21 Oct 2006 17:41:04 +0800, Fulvio wrote: > I'm poor in knoweledge of python, sorry. What's the fastest result between : > > if item in alist: > do_something > > or > > if adictionay has_key(item): > do_something Let's find out. Searches that succeed: >>> import tim

Is x.f() <==>MyClass.f(x) a kind of algebraic structure?

2006-10-21 Thread steve
I thought that when read Guido van Rossum' Python tutorial.What can we think that? -- http://mail.python.org/mailman/listinfo/python-list

The fastest search

2006-10-21 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** Hello, I'm poor in knoweledge of python, sorry. What's the fastest result between : if item in alist: do_something or if adictionay has_key(item): do_something Is there some trick t

Debugging

2006-10-21 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** Hello, I'm trying out a small utility and my method uses PDB for debugging. I tried to read some information regarding the commands of PDB but are rather synthetic. Mostly I'd like to understand the us

Re: Python Source

2006-10-21 Thread Fredrik Lundh
Ben Finney wrote: > I don't understand the request. one wonders if someone who's not even capable of finding the code is capable of "hacking" it, in any sense of that word. -- http://mail.python.org/mailman/listinfo/python-list

Re: FOR statement

2006-10-21 Thread Theerasak Photha
On 10/21/06, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > Theerasak Photha schrieb: > > On 21 Oct 2006 00:50:34 -0700, Ant <[EMAIL PROTECTED]> wrote: > > > >> But there's a good reason not to. Try: > >> > >> printreverse(range(1000)) > >> > >> Recursion has a maximum depth (of 1000 by default) in

Re: Good Form

2006-10-21 Thread Ben Finney
[EMAIL PROTECTED] writes: > I am new to Python but come from a C++ background so I am trying to > connect the dots :) Welcome, and commiserations on your harsh upbringing :-) > I am really liking what I see so far but have > some nubee questions on what is considered good form. This document is

Re: Python Source

2006-10-21 Thread Ben Finney
"ArdPy" <[EMAIL PROTECTED]> writes: > Is it possible to hack through the code written by Guido van Rossum > that makes the python interpreter. Hack through it to where? I don't understand the request. Why, specifically, only the code written by GvR? -- \ "I busted a mirror and got seven

Re: FOR statement

2006-10-21 Thread Diez B. Roggisch
Theerasak Photha schrieb: > On 21 Oct 2006 00:50:34 -0700, Ant <[EMAIL PROTECTED]> wrote: > >> But there's a good reason not to. Try: >> >> printreverse(range(1000)) >> >> Recursion has a maximum depth (of 1000 by default) in Python. > > I guess Python isn't tail-recursive then? To complement my

Re: Good Form

2006-10-21 Thread Travis Vachon
Hi Phez Generally, most Python programmers I know access and set class attributes directly. This is done because of a Python feature called property(). In many languages, setting class attributes directly is discouraged because additional behavior may need to be associated with that setting,

Re: FOR statement

2006-10-21 Thread Diez B. Roggisch
Theerasak Photha schrieb: > On 21 Oct 2006 00:50:34 -0700, Ant <[EMAIL PROTECTED]> wrote: > >> But there's a good reason not to. Try: >> >> printreverse(range(1000)) >> >> Recursion has a maximum depth (of 1000 by default) in Python. > > I guess Python isn't tail-recursive then? Nope. And given

Re: FOR statement

2006-10-21 Thread Theerasak Photha
On 21 Oct 2006 01:31:55 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Theerasak Photha: > > I guess Python isn't tail-recursive then? > > Right. > > > > Well, algorithms seem to be more naturally expressed iteratively in > > Python, and to be fair, most uses of recursion you see in e.g., Sc

Re: Good Form

2006-10-21 Thread Gregor Horvath
[EMAIL PROTECTED] schrieb: > Would you normally write methods to retrive and set your class > variables or just refrence them directly? > you start by referencing them directly and ONLY if you need you can add getters and setters later on without breaking any client code. see the property functi

Re: Detect Unused Modules

2006-10-21 Thread Sybren Stuvel
Kamilche enlightened us with: > DetectUnusedModules.py - Detect modules that were imported but not > used in a file. When run directly, this class will check all files > in the current directory. Nice as it is, but why not use pylint to check this and many other coding style issues? Sybren -- S

Re: Python Source

2006-10-21 Thread Sybren Stuvel
ArdPy enlightened us with: > Is it possible to hack through the code written by Guido van Rossum > that makes the python interpreter. Yes it is. > If yes please let me know how to begin. If its not then pardon me. Download the source, start hacking. Sybren -- Sybren Stüvel Stüvel IT - http:/

Re: FOR statement

2006-10-21 Thread bearophileHUGS
Theerasak Photha: > I guess Python isn't tail-recursive then? Right. > Well, algorithms seem to be more naturally expressed iteratively in > Python, and to be fair, most uses of recursion you see in e.g., Scheme > textbooks are really just grandstanding in the real world. Still, some algorithms

Re: Good Form

2006-10-21 Thread Theerasak Photha
On 21 Oct 2006 01:17:32 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am new to Python but come from a C++ background so I am trying to > connect the dots :) . I am really liking what I see so far but have > some nubee questions on what is considered good form. For one thing I > am used t

Re: Python Source

2006-10-21 Thread Gabriel Genellina
At Saturday 21/10/2006 05:09, ArdPy wrote: I am not sure whether this group is the best place to post my thought. I will ask neverthless: I doubt any other group would be better... Is it possible to hack through the code written by Guido van Rossum that makes the python interpreter. If yes p

Good Form

2006-10-21 Thread phez . asap
I am new to Python but come from a C++ background so I am trying to connect the dots :) . I am really liking what I see so far but have some nubee questions on what is considered good form. For one thing I am used to class variables being accessable only through methods instaed of directly refrence

Re: FOR statement

2006-10-21 Thread Theerasak Photha
On 21 Oct 2006 00:50:34 -0700, Ant <[EMAIL PROTECTED]> wrote: > But there's a good reason not to. Try: > > printreverse(range(1000)) > > Recursion has a maximum depth (of 1000 by default) in Python. I guess Python isn't tail-recursive then? Well, algorithms seem to be more naturally expressed it

Python Source

2006-10-21 Thread ArdPy
I am not sure whether this group is the best place to post my thought. I will ask neverthless: Is it possible to hack through the code written by Guido van Rossum that makes the python interpreter. If yes please let me know how to begin. If its not then pardon me. -- http://mail.python.org/mailm

  1   2   >