e('')
n3 = Node('')
n4 = Node('')
n5 = Node('eeee', [n1, n2])
n6 = Node('', [n3, n4])
n7 = Node('', [n5, n6])
n7.show(0)
print '=' * 20
shownode(n7, 0)
test()
#
> inheritance.
It's a good technique. And, it's called delegation. For more on
delegation, see this:
http://en.wikipedia.org/wiki/Delegation_(programming)
Also see Alan's message in this same thread.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
ee the recent thread on IDEs.
Here is a comparison of Python IDEs:
http://www.infoworld.com/d/developer-world/infoworld-review-nine-fine-python-development-tools-374
This is a multi-page article. The subsequence pages give some
details about each IDE.
- Dave
--
Dave Kuhlman
http://www.rexx.com
it on top of several
different relational database engines, for example, PostgreSQL, MySQL,
sqlite3, etc.
See:
http://docs.djangoproject.com/en/1.2/#the-model-layer
http://www.djangobook.com/en/2.0/chapter05/
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
o
o
See http://docs.python.org/library/functions.html#enumerate
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
ally, if you are sure that there are no commas
inside of quotes in your input data.
However, it seems that you are dealing with a CSV (comma separated
values) file. Python has a module for that. See:
http://docs.python.org/library/csv.html
That module might help you write safer code.
--
re your ability and knowledge about Python. And, I
appreciate the huge amount of effort you've put into helping us.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
> --
> --prasad mehendale
>
> ___
> Tutor maillist - Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
ight want to know about the textwrap
module in the standard library:
http://docs.python.org/library/textwrap.html#module-textwrap
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
To unsubscribe or change
sked several times for more information. You really
need to read:
http://catb.org/~esr/faqs/smart-questions.html
There are people on this list who are very generous with their
time. It's a valuable resource. Please don't waste it.
I don't mean to be rude. But, you will help
org/
It will show you local variables. But, remember that these are the
local variables at *run-time*. They are names to which values have
been bound at that point in the execution of your code. And, as
Alan pointed out elsewhere in this thread, the variable has no
type. It's the value (w
if name in funcs:
funcs[name](arg, ...)
Python is making this too easy for you, making it hard to spot the
solution.
Think of parentheses as a "function call operator", which you can
apply to any callable value.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
can get it at no cost, in various formats here:
http://www.rexx.com/~dkuhlman/#a-python-book
And, if you really do feel a need to kill a tree, you can purchase a
copy on paper here:
http://www.lulu.com/content/paperback-book/a-python-book/2599081
- Dave
--
Dave Kuhlman
http
t Jed, emacs, Kate,
Joe, ... They are all installable on Ubuntu Debian GNU/Linux.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ber of times to teach classes in corporations
that had a need for Python skills. So, there are definitely
companies out there that would view Python programming skills as
valuable. I suspect that there are others on this list who also
teach Python in a corporate setting.
- Dave
--
Dave Kuhlm
rth it.
You can learn about lxml here: http://codespeak.net/lxml/
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
hon.org/doc/essays/graphs/
>
> Also googling "python graph" finds many alternatives.
And, if you are also interested in the visual display of graphs,
then look for graphviz and python-pygraphviz.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
.dll) and not an emulation layer like
that provided by Cygwin tools."
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
In [27]: IP
Out[27]: [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]]
In [28]: id(IP[0])
Out[28]: 13122016
In [29]: id(IP[1])
Out[29]: 13121152
In [30]: id(IP[2])
Out[30]: 13121800
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
27;ve written code with that bug myself.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
o do it on your own, also take a look at:
http://wiki.python.org/moin/BeginnersGuide
http://wiki.python.org/moin/BeginnersGuide/NonProgrammers
http://wiki.python.org/moin/BeginnersGuide/Programmers
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
ust your users. They can over-write files. In
a real application, you might want to do some checking on the file
before opening it. Consider using something like this:
if os.path.exists(filename):
print 'Warning. File %s exists.' % filename
else:
print inner_classes
if __name__ == '__main__':
test()
Which prints out:
[('A', )]
[('B', ),
('C', ),
('__class__', )]
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
Kent Johnson tds.net> writes:
>
> Footnote 2.3 says, "Specifying a buffer size currently has no effect
> on systems that don't have setvbuf(). The interface to specify the
> buffer size is not done using a method that calls setvbuf(), because
> that may dump core when called after any I/O has be
ault, which is usually line
buffered for tty devices and fully buffered for other files. If
omitted, the system default is used."
-- http://docs.python.org/lib/built-in-funcs.html#l2h-54
Looks to me that the buffering is done for you, but that you can
control
"
http://www.delorie.com/gnu/docs/gdb/gdb_191.html
Hope this helps. It has been quite a while since I've done this,
but I remember that it worked pretty slick.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
#!/bin/sh -v
gdb -d /path/to/your/source/code -x test2.gdb python `ps
print t3()
test()
See http://docs.python.org/ref/global.html.
Note that to *get* (not set) the value of a global variable from
within a function, you do not need to use the global statement.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
_
his page will give you more
choices than you want:
http://en.wikipedia.org/wiki/Comparison_of_text_editors
My favorites are:
- Jed
- Emacs
- SciTE
- Jedit (but only if you have lots of memory)
Jed, Emacs, and SciTE are scriptable. SciTe, perhaps, is not.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dk
27;)
See http://docs.python.org/ref/strings.html
Another example:
In [1]: a = 'abc\\def\\ghi'
In [2]: len(a)
Out[2]: 11
In [3]: a.split('\')
File "", line 1
a.split(
then follow Andreas's suggestion to use list append
followed by string join.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
27;,
'Rating',
'Lemon',
'Bright yellow and tart',
'5',
'Eggplant',
'Purple and shiny',
'6',
'Tangerine',
'Succulent',
'8']
Then process *that* list.
ances, then when your instances
go away (are garbage collected), those other things will also
automatically go away, too. No extra work is needed.
It takes a little thought before you will figure out that this is
something that needs (almost) no thought.
Hope this helps.
- Dave
--
Dav
racted from:
http://dirtsimple.org/2004/12/python-is-not-java.html
Maybe I'm "old school", but I still use getters and setters for
access from outside the class and direct access from within methods
in the class.
- Dave
[some good arguments snipped]
--
Dave Kuhlman
hot_interval']:0
For this specific task, if I understand it correctly, there is an
easy and Pythonic idiom:
self.snap_init[i] = items.get('snapshot_interval', 0)
See: http://docs.python.org/lib/typesmapping.html
For mappings/dictionaries:
a.get(k[, x])
is equivalent
, in contrast with content management might mean
something slightly different to you.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
60
http://sourceforge.net/projects/pys60/
There is an emulator, so you can test some of your code without
even loading it onto a cell phone device.
This sounds like exciting stuff. Please keep us informed about
your progress.
- Dave
--
Dave
perator" (parentheses).
Here is a trivial example:
def f1(x):
print 'f1: %s' % x
def f2(x):
print 'f2: %s' % x
def use_them(funcs):
for func in funcs:
func('abcd')
def test():
funcs = [f1, f2]
;s problem, you could also try map() and
a lambda:
', '.join(map(lambda x,y: '%s:%s' % (x, y, ), X, Y))
Or, maybe unrolling it makes it more readable:
In [31]: fn = lambda x,y: '%s:%s' % (x, y, )
In [32]: ', '.join(map(fn, a, b))
Out[32]: '
thing that looks a bit
like an enum. If so, here is a Python idiom for enums:
Mode_none, Mode_moving, Mode_inserting, Mode_jumping = range(4)
action = Mode_moving
if action == Mode_jumping:
o
o
o
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
ode distribution. In particular, these may be of
interest: reindent.py and tabify.py. And, for those who feel that
they must have some marker at the end of a block (in addition to an
"out-dent"), look at Tools/scripts/pindent.py.
Dave
--
//zope.org/
And, I do not know anything about this one, but it looks
interesting -- Skeletonz: http://orangoo.com/skeletonz/
You might also find helpful info at: http://www.cmsreview.com/
If you have success with one, please report back here with your
experience, suggestions, etc.
Dave
--
Dave Kuhlman
ht
ot notation). See:
http://docs.python.org/ref/import.html (and search for __init__)
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
s:
http://www.prescod.net/python/pulldom.html
http://www.ibm.com/developerworks/xml/library/x-tipulldom.html
http://www.idealliance.org/papers/dx_xml03/papers/06-02-03/06-02-03.html
http://www.idealliance.org/papers/dx_xml03/papers/06-02-03/06-02-03.html#pull
Hope this helps.
Dave
--
ttp://wiki.python.org/moin/IntegratedDevelopmentEnvironments
Two that I've looked at:
- Geany -- http://geany.uvena.de/
- Eric -- http://www.die-offenbachs.de/eric/index.html -- Eric was
easy to install on Debian GNU/Linux, but may be more of a
port types
if type(n) is types.IntType
Or, is this a frivolous question that makes no difference?
Dave
>
> Alan G.
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
--
D
like me, is it sort of like
saying that the costs are averaged out over a sequence of appends?
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
for example:
lst.insert(0, obj)
and:
obj = lst.pop()
Also, this is probably a good place to mention deque
(http://docs.python.org/lib/deque-objects.html), which attempts to
reduce those costs.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
__
for. However, as
your mother might say: That's what's good for you.
Also, remember, in Python, global variables are just entries in the
dictionary returned by globals(), anyway.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
d = c[2,5,6,8]
print 'd:', d
e = c[2]
print 'e:', e
test()
Which prints out:
d: [10, 25, 30, 40]
e: 10
Was that what you wanted?
Notice that "c[2,5,6,8]" results in passing a tuple to __getitem__,
because it is the comm
ex is a Python-like language for writing Python C
extensions in a Python-like language. Pyrex/Cython gets you much
closer to C code than Python.
Question: Someday will all the Python built-ins be implemented in
Cython/Pyrex.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
k at the "exec" command (http://docs.python.org/ref/exec.html).
But, that's a dangerous way to code.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
nk you.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
s to those requests, but it does not (directly) generate or
parse XML. SOAPpy does that for you.
You have most likely already looked at those examples. So, maybe
there is something that I don't understand about your question?
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
a class does
not create an enclosing scope.
Actually, the particular edition of Alan's book that I have is old
enough so that it does not discuss the Enclosing namespace, which
came later to Python. The enclosing namespace not make a
difference in your example, but does in mine.
Dave
--
: 'peaches, nectarines, cantaloupe'
Note that we append each food to a list, then do string.join().
That's faster than doing multiple string concatenations. In this
case there are not enough strings to make a difference. But, it's
a good hab
as
to create the values when asked for them) except when a very
large range is used on a memory-starved machine or when all of
the range's elements are never used (such as when the loop is
usually terminated with break).
http://docs.python.org/lib/built-in-funcs.html#l2h-80
gt;>> for idx, item in enumerate(array):
array[idx] = item * 2
>>> array
[2, 4, 6, 8, 10]
>>> array2
[2, 4, 6, 8, 10]
Basically, this modifies the list "in place", rather than making a
new list from the old one.
Dave
--
Dave Kuhlman
('*.txt')
for name in names:
infile = open(name, 'r')
etc. etc
infile.close()
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
8
inte = 11
agl = 14
# etc
##
# outside1.py
import globals
def whatever():
x = globals.stre
# etc
######
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
stdout and stderr.
tarfile will enable you to stuff that captured output into a tar.gz
file.
Also, see the zipfile module if you want to save into a zip file.
With tarfile, you may have to write data to a temp file and then
archive that. With zipfile, you can write content directly
ctivestate.com/ASPN/Cookbook/Python/
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ns well and has built-in
debugging support.
http://www.die-offenbachs.de/eric/index.html
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
_
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
r__(self, name):
if name in self.vardict:
return self.vardict[name]
else:
raise AttributeError, 'Bunch has no attribute: %s' % name
def test():
d = {'aaa': 111, 'bbb': 222, }
b = Bunch(d)
print b.aaa
On Thu, Jul 26, 2007 at 01:48:44PM -0600, Eric Brunson wrote:
>
> Do other interpreters work?
>
> Try:
>
> #!/usr/bin/perl
> print "Perl Sucks!!!\n";
>
> or:
Or, try:
#!/usr/bin/env python
Dave
--
Dave
B(object):
pass
By the way, this is an important and fundamental subject about
Python. When I teach classes on Python, I always need to explain
Python's execution model, and I always struggle with it. So,
anything you can tell me that would
On Mon, Jul 16, 2007 at 06:13:35PM -0400, Kent Johnson wrote:
Kent -
Rather than try to reply in detail to your suggestions, I've tried
to ammend my document to reflect your comments.
Thanks again for the help.
Dave
[good suggestions and corrections from Kent, snipped]
--
Dave Kuhlman
gle window.
For more on screen, do "man screen" and look here:
http://en.wikipedia.org/wiki/GNU_Screen
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ib/re-syntax.html
http://docs.python.org/lib/node46.html
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
listed? If not, you will need to
find your script.
3. If your script is not in the current directory, either (1)
change to the directory containing the script with the "cd"
command or (2) use the full path to the script, as in:
python c:\some\path\to\myscript.py
Hope
On Fri, Jul 13, 2007 at 12:39:40PM +1200, John Fouhy wrote:
> On 13/07/07, Dave Kuhlman <[EMAIL PROTECTED]> wrote:
> > And, I have a question -- If you look at the example of the
> > iterative (non-recursive) generator (the Doubler class), you will
> > see that it walks
rs, please give me a
link.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
fter the "%"
character. The mapping key selects the value to be formatted from
the mapping. For example:
>>> print '%(language)s has %(#)03d quote types.' % \
{'language': "Python", "#": 2}
Pytho
ur life." haha
It is not that you should "try not to worry". It's that you
are doing things the way you are intended to. And, you are
probably in sync with the cosmos, too.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
hat DrPython is finding a different module random from
that which Idle finds.
I was tripped by a similar error. Idle and IPython both have my
bin directory on sys.path (I'm on Linux), while standard Python
does not. IPython was finding one of my modules in the bin
directory, whereas standard
mode, less data than what was requested
may be returned, even if no size parameter was given.
IPython is at: http://ipython.scipy.org/moin/
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
en(s1)
Out[3]: 9
In [4]: s1.replace('\\', '')
Out[4]: 'abcdefg'
Notice the length of the string (before removing the backslashes).
Each apparently double backslash actually has a length of 1.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
gave me
> an error when I did the eval(actionStmt). Could anybody shed some light on
> this? Thanks in advance.
For the task of importing, look at the "imp" module:
http://docs.python.org/lib/module-imp.html
Also, the "inspect" module may be of help:
http://d
speed is important, then you might try a solution that uses
a regular expression in place of
for id in idList:
if id in line:
A regular expression of the form "(id1|id2|id2)", which you could
construct programmatically, might work for your problem:
import re
s1 =
to have in your tool bag. And, like I said above:
It's fun.
Besides, if your problem becomes more complex, and, for example,
the input is not quite so line oriented, you will need a more
powerful approach.
Wikipedia has a better explanation than mine plus an example and
links: http://en.wikipedi
advance.
Try ljust and rjust. They are string functions/methods and are
described here: http://docs.python.org/lib/string-methods.html
Something like the following might work for you:
In [1]: value = 3.45678
In [2]: ("%0.3f" % value).rjust(10)
Out[2]: ' 3.457'
, but sometimes it
helps to understand what is going on underneath, because the for
statement and iterators are very general, powerful,
and elegant features of Python.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
standard library. optparse is newer and more
powerful than getopt, but also seems a bit more complex.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
On Sun, Feb 25, 2007 at 01:35:52PM -0800, Dj Gilcrease wrote:
> On 2/25/07, Dave Kuhlman <[EMAIL PROTECTED]> wrote:
> > If you have not already, you will want to look at SWIG
> > (http://www.swig.org/). SWIG will generate C or C++ code from a
> > header file contain
or
popen.popenx (x = 2,3, 4). See
http://docs.python.org/lib/module-popen2.html.
I'l let others on the list comment on whether this is dangerous. I
suppose if all the code (that is compiled by SWIG) is under your
control or if you trust your users, it might not be too dangerous.
Dave
--
in order to execute that sample code.
Once you have found the run module, ...
Step 2 -- Read the source in the run module. In particular, you
are looking for a function named main.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
procmail filter doesn't seem to pick up the list when it's cced.
> But that's for me to sort out it :)
Maybe a procmail rule something like this:
:0:
* ^(To|Cc):[EMAIL PROTECTED]
tutor-python-folder
Note the Cc.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ious; ...). I mean we are
programmers, after all."
OK. OK. Maybe I had too much coffee this morning.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
e
on.
I just checked. It looks like when I use the reply-to-list
operation in mutt, the only recipient is [EMAIL PROTECTED]
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
eed to cover and help with
covering them, too.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ause at least a compilation warning.
>
> This looks like a snippet, not a complete CCITT CRC calculation.
Also, see the crcmod module:
http://crcmod.sourceforge.net/
But, the README that comes with crcmod recommends the md5 module in
the Python standard library.
Dave
--
Dave Kuhlma
it for wxPython. But, at least it gives
you some scaffolding to start with. Note the "fancy" flag and
variable, which is probably what you want, not too sure.
Hope this helps.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
#!/usr/bin/env python
import sys, os
import ftplib
import getopt
dules in a directory in which
you *do* have write access and then add that directory to your
PYTHONPATH.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
rg/)? There is a plug-in for
Python.
But, on my machine, the last time I looked, it was buggy and
incredibly slow.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
seInterfaces
http://www.python.org/doc/topics/database/
http://www.python.org/doc/topics/database/modules/
http://www.sqlalchemy.org/
http://www.sqlobject.org/
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
in your current
directory, where it would only affect programs run from that
directory. Which is recommended and when?
Also, the .pth file thing seems to be a way to give a package, when
it is installed, to hijack the import path by stuffing paths abov
are more than one statement on a
line. And writing more than one statement on a line is usually
discouraged anyway.
> The "fix" I'm currently using is to write the index I want:
>
> (directoryTable[0], directoryTable[1])
Or, if you need an index variable:
directoryTable[i], directoryTable[i+1])
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
note the restriction to string values in
the docs on the set method:
set(section, option, value)
If the given section exists, set the given option to the specified
value; otherwise raise NoSectionError. While it is possible to use
RawConfigParser (or ConfigParser with raw parameters set to true)
for internal storage of non-string values, full functionality
(including interpolation and output to files) can only be achieved
using string values. New in version 1.6.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
use evince (on Linux) to read PDF docs. When I open a document
the second time, evince automatically shows the last page I was
viewing when I previously closed evince. And, the following
command:
$ evince -p 12 somedocument.pdf
will open that document to page 12.
On Wed, Dec 06, 2006 at 05:49:22PM -0800, linda.s wrote:
> Is there any good tutorial about numeric python for beginners?
> I have googled around and many of them are either too old or aims at
> experienced users...
Look here:
http://new.scipy.org/Wiki/Documentation
Dave
--
Dav
1 - 100 of 145 matches
Mail list logo