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
"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
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
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('
> 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
--
http://mail.python.org/mailman/listinfo/python-list
>
> 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
>
> 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
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
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
[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
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
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.
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...
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[
> 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... :-(
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
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
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
"[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
"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
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
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
[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
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
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
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
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
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
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
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
[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
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
[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
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
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
[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.
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
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.
<[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
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
[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
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
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
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
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
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
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
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
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
[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
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
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
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 _
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
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.
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
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
> 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.
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
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
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
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
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
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
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
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
> 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
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.
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
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
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.
steve wrote:
> What can we think that?
When much stretch definitions
--
http://mail.python.org/mailman/listinfo/python-list
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
***
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
***
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 /
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
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
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
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
I thought that when read Guido van Rossum' Python tutorial.What can we
think that?
--
http://mail.python.org/mailman/listinfo/python-list
***
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
***
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
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
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
[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
"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
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
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,
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
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
[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
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
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:/
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
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
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
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
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
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 - 100 of 107 matches
Mail list logo