Yep...across multiple lines.
Here's a tinyurl of it
http://tinyurl.com/n93au
Mike
> -Original Message-
> From: Zsiros Levente [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 25, 2006 11:37 PM
> To: Mike Hansen
> Cc: python tutor
> Subject: Re: [Tutor] tkinter
http://pyfaq.infogami.com/tutor-how-do-i-make-an-executable-out-of-my-py
thon-program
or
http://tinyurl.com/gtrpa
if the url is too long.
Mike
**
IMPORTANT: The conten
still just ctrl-n instead of using the new
omnicomplete stuff. I like the background syntax checking in Komodo. It
has been helping me clean up problems before I get around to running
Pyflakes on the program.
BTW, the next version of Komodo will have vi key-bindings!
Mike
***
my Q is how do you learn the languge of python ? and how do you program?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Amit Rane
> Sent: Saturday, September 02, 2006 4:52 AM
> To: tutor@python.org
> Subject: [Tutor] Hi All
>
> Hi ,
> This is Amit from India ...
> i have just started working on Python ...
>
_
>
I just wanted to verify what I believe to be correct way of doing this.
sql_statement = "INSERT INTO images (image) VALUES (%s)"
cur.execute(sql_statement, (data_obj, ))
Is it just moving the variable
> -Original Message-
> From: Alan Gauld [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 21, 2006 2:51 AM
> To: Mike Hansen; tutor@python.org
> Subject: Re: [Tutor] Python CGI Script
>
> >sql_statement = "INSERT I
I had the same problem when I started using Python.
It's the shutil module.
shutil.copyfile(src, dst)
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
hello i wrote a litle program ware you pick a number and the computer
guesses it and i recently decided to make it so it dosint reguess
numbers but now i get a error message
here is the program
def number(number):
from random import randrange
guess=randrange(number*2)
print guess
gues
system like cheetah. If you want to do it "the hard way", you
can do it from your python program with print statements.(print
"...") I think there's a module out there that can generate
HTML for you.
I'm not sure how far you've gone with doing
ommon functions into modules that you can hopefully reuse for other
programs.
http://docs.python.org/tut/node8.html
I've been doing some web programming, so my "projects" consist of
cheetah template files, CSS, config files, a handful of python
modules...
I hope that helps.
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Dick Moores
> Sent: Tuesday, October 03, 2006 12:41 PM
> To: tutor@python.org
> Subject: Re: [Tutor] What is a Python "project"?
>
> At 10:
i wrote a program that guesses number in the most effective way i could
think of but i keep running into endless loops any help fixing it would be
great :)
here it is:
def num(number):
r=input("range >")
ran=range(r+1)
guess=r/2
print guess
guesses=1
while guess!=number
> 509-432-6869
> https://www.wsu.edu/~halamillo/
>
>
You might try asking this on the python mac mail list. They are
extremely helpful.
http://www.python.org/community/sigs/current/pythonmac-sig/
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
This is slightly off topic...
I use VIM to write my Python programs. I usually have a shell open to run
pyflakes on the file I just edited. Is there a way to run pyflakes from
within VIM and have it display the errors in another buffer?
The :make stuff is confusing me.
Mike
> -Original Message-
> From: Carlos Hanson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 11, 2006 10:50 AM
> To: Mike Hansen
> Cc: tutor@python.org
> Subject: Re: [Tutor] VIM & Python
>
>
> On Tue, October 10, 2006 1:44 pm, Mike Hansen wrote:
r,
although it does not perform as many checks. Unlike PyLint, Pyflakes
checks only for logical errors in programs; it does not perform any
checks on style." - From the pyflakes web site.
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
#x27;sep',
'split', 'splitdrive',
'splitext', 'splitunc', 'stat', 'supports_unicode_filenames',
'sys', 'walk']
Anyways... could someone please point me in the right direction?
I can use os.system('md test'), but that isn't cross platform...
Hopefully nothing is wrong with my python installation.
Thanks!
You might try os.mkdir instead of os.path.mkdir
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
or@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
I'm catching up on the weekend's tutor messages.
import cgitb; cgitb.enable()
That spits errors to the web page which is great for debugging cgi
scripts.
I think you need
print "Con
script I
> called (pydashc.py) which just uses compile() to get the same
> effect... very useful for when i don't want to *run* something to see
> if i made any typos.
>
> regards,
> -- wesley
I had this same issue when I moved from Perl to Python. You might take a
look
-i'').
>
> Bill
>From what I understand, Python 3000 is going to break backwards
compatibility. However, I think I read that someone is writing a utility
that will translate your pre-Python 3000 code to Python 3000 code.
Mike
___
Tutor mai
tp://cheeseshop.python.org/pypi/PlugBoard/0.2
Most of the other hits were for web application frameworks.
Do you feel you need an application framework?
I don't believe there's any limitation in python. I suspect it's mostly
philosophical.
Mike
___
[...]
I don't believe there's any limitation in python. I suspect it's
mostly
philosophical. <-- What did you mean by this Mike?
import this
"Simple is better than complex."
"Complex is better than complic
27;ll need to validate(boolean or int), but the
majority are just text fields that can be passed to the object.
Anyone got any ideas on how to do this?
Thanks,
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Alan Gauld
> Sent: Tuesday, October 31, 2006 4:47 PM
> To: tutor@python.org
> Subject: Re: [Tutor] Mapping to object attributes
>
>
> "Mike Hansen" <[EMAIL
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Luke Paireepinart
> Sent: Friday, November 10, 2006 12:08 AM
> To: Carlos
> Cc: tutor@python.org
> Subject: Re: [Tutor] First realscript + Game of Life
>
> >
> > Since there has been some talk about
Python.
I believe you can download Element Tree for older vesions of Python.
http://docs.python.org/lib/markup.html
Here's an article on XSLT tools for Python...
http://uche.ogbuji.net/tech/akara/nodes/2003-01-01/python-xslt
Mike
-
NOTICE: This e-mail transmission and any documents
might try the Python Mac Sig.
http://www.python.org/community/sigs/current/pythonmac-sig/
Mike
-
NOTICE: This e-mail transmission and any documents or files attached to
it contain information for the sole use of the above-identified individual or
entity.
Its contents may be
arguments.
def __init__(self, id = None, monitor = None):
Calling it
new_monitor = sensor.Sensor(monitor = 'XJ191')
new_monitor = sensor.Sensor(id = '3433')
Check to make sure one or the other arguments is supplied. Otherwise
throw an exception.
Maybe there'll be some be
editor-ide
-for-python/
Or tinyurl ..http://tinyurl.com/yxjxgc
I use VIM. I've been experimenting with Eclipse and Pydev. You'll get
almost as many answers as there are people on this list.
Mike
-
NOTICE: This e-mail transmission and any documents or files attached
e going with Eclipse and Pydev.
http://www.fabioz.com/pydev/manual_101_root.html
I still find myself using VIM more than Eclipse. I'll need to play with
Eclipse some more to make a decision if I want to stick with it or just
stay with VIM.
Mike
-
NOTICE: This e-mail
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Asrarahmed Kadri
> Sent: Thursday, November 16, 2006 10:29 AM
> To: tutor-python
> Subject: [Tutor] how to extract time from datetime.date.time()
>
> Hi,
>
> I want to extract hh:mm:ss from below
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of William
> O'Higgins Witteman
> Sent: Thursday, November 16, 2006 12:08 PM
> To: tutor@python.org
> Subject: Re: [Tutor] free IDE for Python?
>
> On Thu, Nov 16
ve mapped a key to run pyflakes and display the results in a different buffer
:new | r!pyflakes #
Mike
-
NOTICE: This e-mail transmission and any documents or files attached to
it contain information for the sole use of the above-identified individual or
entity.
Its co
fari window?
>
>
> Thank you.
>
> ***
> Nathan Cain
I just read the docs. I'm assuming that "Availability: Windows" means
that it's Windows only.
Mike
-
NOTICE: This e-mail transmission and any docume
Kent,
Can you explain further? Refactoring is in my queue of books to read. In
a web app I'm writing, I'm checking the input kind of like this...
try:
form_value = int(form.getvalue('num_widgets')
except ValueError:
display_error("Number of Widgets must
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Morpheus
> Sent: Wednesday, December 06, 2006 9:00 AM
> To: tutor@python.org
> Subject: [Tutor] List to dictionary question
>
> I'm new to programming, and trying to learn the Python language.
> T
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Luke Paireepinart
> Sent: Wednesday, December 06, 2006 10:54 PM
> To: tutor@python.org
> Subject: Re: [Tutor] ***SPAM*** List to dictionary
>
> Also, why is there now a **SPAM* in the subjec
.devshed.com/c/a/Python/Writing-CGI-Programs-in-Python/
Mike
-
NOTICE: This e-mail transmission and any documents or files attached to
it contain information for the sole use of the above-identified individual or
entity.
Its contents may be privileged, confidential, and
ting a lot of
attention. There are people working on TextMate-like editors for Windows
and Linux.
Mike
-
NOTICE: This e-mail transmission and any documents or files attached to
it contain information for the sole use of the above-identified individual or
entity.
Its cont
d then use it as a module to populate it.
I want to check out Django next.
Mike
-
NOTICE: This e-mail transmission and any documents or files attached to
it contain information for the sole use of the above-identified individual or
entity.
Its contents may be privileged, co
> -Original Message-
> From: OkaMthembo [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 04, 2007 9:18 AM
> To: Mike Hansen
> Subject: Re: [Tutor] SPE - Stani's Python Editor ?
>
> have you tried Komodo from ActiveState or Wingware? might be
> great
Hi all,
I am looking to create a simple gui interface to a small script. The script
requires the user to input a directory. I would like to allow the user to
browse the windows file system for the desired directory rather than type in
the full path by hand. This would operate in much the sam
rybook/smtplib.htm
Also, the docs on smtplib:
http://docs.python.org/lib/module-smtplib.html
Mike
-
NOTICE: This e-mail transmission and any documents or files attached to
it contain information for the sole use of the above-identified individual or
entity.
Its contents
How can I create a folder with
> Python? Trying to make a program which will allow me to save
> my notes (txt files) quickly and cleanly. Having to create
> folder manually would really make it a bit obsolete.
>
> Thanks in advance!
>
>
http://docs.python.org/lib/os-fil
>
> Any other practical advice you may deem feasible would be welcome.
>
>
>
> Thanking you in advance.
>
>
>
> Alexander Kapshuk.
Here's some good books to read.
http://www.python.org/infogami-faq/tutor/tutor-what-are-some-good-books-
on-python/
Feel free t
, but don't quote me.
Postgre + Apache + Cheetah + Dojo is working for me. Sometime soon, I
want to experiment with Django.
I'm not familiar with Lighttpd, FastCGI, mod_python, Pylons, or Kid.
When I was looking for a JavaScript toolkit, I took a look at Mochikit
and Dojo.
bilities. Komodo Edit is free
and Komodo IDE cost some $$.
Mike
-
NOTICE: This e-mail transmission and any documents or files attached to
it contain information for the sole use of the above-identified individual or
entity.
Its contents may be privileged, confidential, and exem
the
> ultimate would be an editor/IDE that can accommodate all with similar
> functionality and behavior for all.
>
> MTCW
> tim
I agree. Depending on what I'm doing, I toggle between VIM and Komodo. I
like that both can handle multiple languages.
Mike
-
N
deeper into the Ruby community might have a better
suggestion.
Mike
-
NOTICE: This e-mail transmission and any documents or files attached to
it contain information for the sole use of the above-identified individual or
entity.
Its contents may be privileged, confidential, and
__
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
The following tutor faq has an explanation:
http://www.python.org/infogami-faq/tutor/tutor-why-do-my-replies-go-to-t
he-person-who-sent-the-message-and-not-to-the-list/
e this for me but if someone
> could lead me i the right direction, I
> would be grateful.
>
> Thank-you.
>
> Mark
Maybe there's a way to use shutil's copytree function with os module's
remove function or shutil's rmtree function? If not, use the glob m
Oops...I replied instead of replied all.
> -Original Message-
> From: Mike Hansen
> Sent: Monday, February 26, 2007 2:43 PM
> To: 'Bernard Lebel'
> Subject: RE: [Tutor] isinstance -> instance
>
>
>
> > -Original Message-
>
t;
> thanks,
> Jeff
>
I liked The Object Oriented Thought Process. It uses Java and C#(I
think) as examples. I then reread the chapters in Learning Python on OO
to get a better understanding of the Python way of doing it.
Mike
___
Tutor maillist
ould probably populate a dictionary of the words you want to
replace and their replacements. Then use the replace method on the
strings.
Note that Word documents are binary gibberish, so you'd need to use
win32 python windows stuff making this more complicated. On plain text
files, it wouldn't be too bad.
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I think Dive Into Python has examples of digital to Roman and it might
have Roman to digital. Might be worth looking at after you've come up
with a solution.
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ges.(Perl, Ruby, ...) This is a good
example of it. Are there any 3rd party modules that let you set the
expiration date to 'yesterday'? I know I could write a wrapper, but I'd
rather not re-invent the wheel and save some time.
Another example is ftplib. Other language's ftp mod
r to do it like this?
(errors) = check_something()
if errors:
# do something
Mike "head zoned out due to allergies"
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
; FAX:(206) 232-9186 Mercer Island, WA 98040-0820;
> (206) 236-1676
>
> ``I don't make jokes, I just watch the Government and report
> the facts...''
> Will Rogers
Doh! It was right in front of me, but I wasn't connecting the dots.
Thanks,
M
o you can check them out before deciding if you want the
dead tree version.
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ure what that is used for.
Can anyone help get me started, I'm concerned mostly with the
communication, I reckon I could actually get somewhere if I can just
nail the first bit, here's my code so far:
* Cheers in advance, Mike.
import usb
import sys
import os
import time
from array
Dick
>
In [23]: import datetime
In [24]: x = datetime.datetime.now()
In [25]: x
Out[25]: datetime.datetime(2008, 4, 17, 14, 24, 18, 447000)
In [26]: x.month
Out[26]: 4
In [27]: x.day
Out[27]: 17
In [28]: x.year
Out[28]: 2008
In [30]: print "%s/%s/%s" %(x.month, x.day, x.year, )
4/17/2008
Does that help? There's probably another way to do it, but this seems to
work.
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
anding of web programming, it might help you figure out why
something isn't working properly in the framework. I'm curious about
other tutor list member's thoughts on this. Am I out to lunch on this
viewpoint?
Anyway, here's a link to a python cgi tutorial:
http://www.devshed.com/c
cation, sometimes
you can get killed by CSV files that have commas as part of the data.
Example:
zone 1, 90, "Hansen, Mike", "555 Elm Street, MayBerry", 555-
Just splitting on commas will give you unexpected results since it
will catch the stuff between the quotes. The CSV
f your macro. The macro will run a bit faster. It's essentially hiding
all the updating to the document(s). You should set it back at the end
of your macro: Application.ScreenUpdating = True.
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Is there some other documentation or example?
>
>
> --
> Bob Gailer
http://effbot.org/librarybook/queue.htm
Here's a direct link to the queue module.
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Is there some other documentation or example?
>
>
> --
> Bob Gailer
http://effbot.org/zone/librarybook-index.htm
That might help. It looks like it has some example code. Look at the
Threads and Processes link and search for queue.
Mike
___
Tu
> -Original Message-
> On
> Behalf Of Marc Tompkins
> Sent: Wednesday, April 23, 2008 7:27 PM
> To: python tutor; [EMAIL PROTECTED]
> Subject: [Tutor] Open Source Hero my @$$!
>
> Just thought I'd share something I found quite humorous... a
> while back, I heard about Microsoft's "Op
not reading the
> values in correctly, is there a control character at the end?
> The float value is ok.
Your string has a line ending in it, so it doesn't match. It's
essentially "Custom\n". Just use a slice to remove the line ending
character(\n). Also, I d
this method is
called on. Changed in version 2.2.3: The chars parameter was added. The
chars parameter cannot be passed in earlier 2.2 versions.
What characters are included as whitespace characters? Spaces? Tabs?
Newlines? For some reason, I was reading whitespace as just spaces.
Mike
Isn't it
import file
not
import file.py
or has that changed in recent versions?
Mike
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of jay
Sent: Friday, May 16, 2008 9:44 AM
To: tutor@python.org
Subjec
> Bruce
>
Python Programming on Win32 might help. There's also a couple of
articles on OnLamp.
http://www.oreilly.com/catalog/9781565926219/index.html
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
t
> like python server pages yet you like templating. (Using mod_python or
> mod_wsgi[recommended] and the substitute function).
>
Other than a learning exercise or having a different idea about
templating, I'd go with an existing template solution like Cheetah,
Mako, Kid, Genshi.
M
(not open source) but most who program on the mac love it.
TextWrangler(not open source, but free)
Open source
---
VIM
Emacs(Aquamacs)
Eclipse
Probably not considered IDEs
----
Smultron
SubEthaEdit
Mike
___
Tutor mail
odo IDE for me, and I use it off and on. I do my development on a
Windows XP machine mostly for web applications that run on a Linux box.
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sean Novak
> Sent: Tuesday, June 10, 2008 10:44 AM
> To: tutor@python.org
> Subject: Re: [Tutor] IDE
>
> >
> > Wow.. thanks everyone!! I am on a mac,, currently. But, I often
> > bounce from one
> -Original Message-
> From: Michael yaV [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 10, 2008 12:13 PM
> To: Kent Johnson
> Cc: Hansen, Mike; tutor@python.org
> Subject: Re: [Tutor] IDE
>
> Since I'm on a mac, how about using Xcode?
>
>
I would like to capture information from a multi-player internet game in order
to tabulate player statistics. Specifically, I need information from a chat
box within the main play window.
Using the win32 extension (win32gui module: EnumWindows, EnumChildWIndows) I
can obtain a handle to the ch
program also needs that module, I'll import it in the main
program. I think it helps for readability. Also each module can stand
on it's own and not use another modules import of other modules.
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
, it might
be a little dated, but I suspect that most of the modules haven't
changed that much since it was written. I like it because it has
example code.
http://effbot.org/zone/librarybook-index.htm
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
p://effbot.org/pyfaq/tutor-im-learning-python-what-should-i-program.h
tm
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
y",
line 60, in run
_GetCurrentDebugger().run(cmd, globals,locals, start_stepping)
File "C:\Python25\Lib\site-packages\pythonwin\pywin\debugger\debugger.py",
line 624, in run
exec cmd in globals, locals
File "C:\Documents and Settings\Mike and Patsy\D
I need to do some statistical analysis by binning values into an array.
Being new to Python, I tried to use a list of lists. I've extracted just the
minimum code that I'm having trouble with:
def testanalysis():
IP = []
temp = [[0, 0, 0],[0, 0, 0],[0, 0, 0]]
# initialize to zero
Thanks Steve.
It's obvious now that you've pointed it out.
Do you happen to know if there is an efficient way to initialize a list
like this without explicitly writing out each element?
Mike
- Original Message -
From: "Steve Willoughby" <[EMAIL PROTECT
to program? thanks "
I also tried Spanish, Potuguese, and Greek, but the Italian one came out the
best.
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ty to
script it or record macros, an MP3 player, voice recognition, a Vulcan
mind-meld programming link, oh... those last three are probably
in emacs.. %-)
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
y. Having the entire application
on a server allows you to make changes without having to deploy it to
many users. On client-side GUI apps, it'd be good to develop something
that checks if a new version of the software is necessary to download.
Oh well, I think I've babbled on enough abou
ross multiple browsers. JQuery seems to be the popular one
now, but there are many JavaScript toolkits to choose from.
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
use for me especially if it doesn't have
example code. That's where The Python Standard Library book comes in
handy since it has example code. After experimenting in the shell, if
I really get stuck, I'll ask on this list. Maybe having tags or
something to help with searches. On
p://www.zope.org/Members/fdrake/DateTimeWiki/FrontPage
>
> Kent
This is probably moot since the OP solved the issue using other means, but I
thought datetime was based on mxdatetime. Even if it isn't, mxdatetime supports
Python 2.1 and newer.
http://www.egenix.com/products/python/mxBase/mxDateTime/
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Being an editor/IDE junkie, I'm curious about the NetBeans IDE. Is anyone using
it? If so, how is it? I believe it has a add-on for python.(NBPython)
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I've been working with Python on two different machines: under Windows XP and
under 64-bit Vista.
In the XP version, the Python 32-bit editor prints my scripts using the color
coding in the editor and a comfortable to read font. Under Vista 64-bit, only
the IDLE environment is available which
course, ask questions here if you need help.
http://www.devshed.com/c/a/Python/Writing-CGI-Programs-in-Python/
http://docs.python.org/lib/module-cgi.html
http://wiki.python.org/moin/WebProgramming
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
'income': 700,
> },
> 'simpsons' : {
> 'husband' : "homer",
> 'wife' : "marge",
> 'kid' : "bart",
> 'income': 600,
> },
>
item__
> raise KeyError(key)
> KeyError: 'ORACLE_HOME'
>
>
> Link:
> http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-4.2.tar
> .gz?download
>
> Thanks,
> JJ
>
>
Did you python setup.py build first? The README.txt mentions it along the
option of doing a bin
ctions for Debian(Which I believe Ubuntu is
derived from) here:
http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm#BABFEDEI
After the client is installed, then hopefully you can build and
install the cx_oracle module.
Good luck. If you get stu
user='',password='x',database='x')
cur = con.cursor()
query = "EXECUTE blah blah blah"
cur.execute(query)
con.commit()
con.close()
Mike
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
acceptance of my opinion! I am
> interesting!
> http://techblog.ironfroggy.com/
> Follow me if you're into that sort of thing:
> http://www.twitter.com/ironfroggy
A long time ago in a Python galaxy far far away, a tutor FAQ was written. It
has been bounced around. I found i
I'm running a number of test cases and saving their results in a shelve file.
A full run of the test cases takes about 36 hours. During that time, if
something interrupts the run (e.g., a power outage, which has happened), I find
that none of the completed test cases have been committed to the
I would like to plot various datasets on a Tkinter canvas widget.
The problem is that each of my datasets have different x,y extremes. For
instance, one dataset may have xmin = 0, xmax = 300, ymin = 0, ymax = 300;
whereas the next dataset may have xmin = -200, xmax = 1200, ymin = 2000, ymax =
201 - 300 of 368 matches
Mail list logo