Re: Registration Open for South Florida Software Symposium 2007

2007-03-16 Thread K
It is just a good news. -- http://mail.python.org/mailman/listinfo/python-list

urllib equivalent for HTTP requests

2008-10-07 Thread K
Hello everyone, I understand that urllib and urllib2 serve as really simple page request libraries. I was wondering if there is a library out there that can get the HTTP requests for a given page. Example: URL: http://www.google.com/test.html Something like: urllib.urlopen('http://www.google.com

PYTHON

2010-10-08 Thread k..........
PLEASE LEARN ME PYTHON -- http://mail.python.org/mailman/listinfo/python-list

Python Windows release and encoding

2013-05-22 Thread Absalom K.
Hi, I am working on Linux; a friend of mine sends to me python files from his Windows release. He uses the editor coming with the release; he runs his code from the editor by using a menu (or some F5 key I think). He doesn't declare any encoding in his source file; when I want to try his code, I h

Error 32 - Broken Pipe . Please Help!!

2012-09-04 Thread Sreenath k
for j in (1,i): s+=j c=0 for k in range(1,(s/2+1)): #print s t=s%k if t==0: c+=1 if c>=5: f=1 print s break print s #

Re: please i need explanation

2013-01-11 Thread K. Elo
Hi! Since there is no stated question, I need to guess: n -= 1 (instead of "f -= 1") should work. Or maybe the question was a totally different one... -Kimmo 11.01.2013 17:35, kwakukwat...@gmail.com wrote: def factorial(n): if n<2: return 1 f = 1 while n>= 2:

Keyboard hook in linux

2013-01-13 Thread K. Elo
Hi! I am working on a small console app for linux. The idea is to display some sensor values and the screen should update itself in, say, every 10 seconds. The user should have the possibly to change some configurations or gwt help by pressing different keys (like you can do when running e.g

Re: Keyboard hook in linux

2013-01-13 Thread K. Elo
Hi! Thanks, Michael, for your quick - and heplful - reply. 13.01.2013 18:46, Michael Torrie wrote: You're wrong. curses does offer a direct solution to this. Check the docs. Also here's a nice intro document for Python 3: http://docs.python.org/dev/howto/curses.html You are right :) The do

PPC Form Filling Jobs

2012-03-07 Thread reena k
http://internetjobs4u.weebly.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread K. Elo
Hi! Could it be, "Nuen9", that you would like to find a split where the split sums are close to each other? In other words, you define the number of splits (in your example: 3) and the algortihm should test all possible combinations and select the split where the sum differences are smallest.

Re: Deviding N(1,2,3,..,N) part from numeric list as summation of each values(don't sorted) has highest as possible.

2016-10-10 Thread K. Elo
Hi! Here one possible solution: --- snip --- land = [10,20,30,40,110,50,18,32,5] landlength=len(land) winnersplit=[] for i in range(landlength-2): for j in range(landlength-1-i): splitsums=[sum(land[0:(i+1)]), sum(land[(i+1):(i+j+2)]), sum(land[(i+j+2):landlength])] differences

Help me!, I would like to find split where the split sums are close to each other?

2016-10-16 Thread k . ademarus
Help me!, I would like to find split where the split sums are close to each other? I have a list is test = [10,20,30,40,50,60,70,80,90,100] ​and I would like to find split where the split sums are close to each other by number of splits = 3 that ​all possible combinations and select the split

installing modules problem

2018-11-08 Thread Ian K.
Hello, My name is Ian Kilty and I have been having trouble with pip. I have pip installed, and I have tried to install modules they say they are installed in cmd, but when I go into python and import the module, it can't find it. I hope there is a simple solution to this problem, please let me kno

Subject: Python Open-Source Snippets Newsletter

2020-05-23 Thread Aswin K
Hi, I am creating a Python newsletter showcasing useful code snippets from popular open-source libraries. I will also be providing a runnable demo link to better understand the working. Newsletter subscription link: https://www.pythonninja.xyz/subscribe A sample snippet from the newsletter:

problem in installation of python 3.9.0

2020-12-02 Thread Priyankgasree K
Hello, I am Priyankgasree, i am facing problem in installing python3.9.0. after i finish download it always says you have to repair or uninstall. I have repaired and uninstalled and reinstalled several times but i can't do anything . And also I cant able to download other versions of python

How to copy the entire outlook message content in python

2020-12-29 Thread nikhil k
Hello All, I'm a beginner trying to achieve the below in my python script: Can anyone help me on this? I'm stuck at step2. 1. Input: A locally saved outlook mail (*.msg) path 2. Go to the path and Copy the entire body of the mail 3. Create a new mail and paste the contents into new mail 4. sen

Re: Help with chaos math extensions.

2005-10-05 Thread Brandon K
In case you missed it, I said I have windows XP. Windows XP pre-compiled python binaries are built on VS .NET 2003. In order to build extensions, you need the compiler the interpreter was built on, or at least that is what is reported to me by calling setup.py. If I was using linux, which I

Re: Help with chaos math extensions.

2005-10-05 Thread Brandon K
Here's the Script it was being used in (forgive it if it seems a bit messy, i have been tinkering with variables and such to try different ideas and haven't really cleaned it up). import ctest import Tkinter import threading hue_map = ("#FF","#FEFEFF","#FDFDFF","#FCFCFF","#FBFBFF","#FAFAF

Re: Extending Python

2005-10-05 Thread Brandon K
I own Python in a Nutshell, as one person pointed out. Alex Martelli does a great job of introducing the concepts, as long as your'e familiar with C. Additionally he covers wrapping (which is sounds like you're trying to do) with SWIG, Pyrex, and a few other options. It's a great book, I hav

Re: Help with chaos math extensions.

2005-10-06 Thread Brandon K
Well, I didn't buy it JUST to compile python extensions, I'm looking to write C++ apps as well, I just use python for a lot of math and science simulations, and I got VS .NET at heavy discount since I'm a student. > Brandon K wrote: >> In case you missed it, I said I have

Re: Absolultely confused...

2005-10-06 Thread Brandon K
> If I take out the "!" in the format string and just use "O", I can at > least get past PyArg_ParseTuple. Is this a compile-time error? Or a runtime error? == Posted via Newsgroups.com - Usenet Access to over 100,000 Newsgroups == Get Anonymous, Uncensored, Access to West and East C

Re: recursive function

2005-10-07 Thread Brandon K
Is there no way to implement your idea in a classical loop? Usually the syntax is cleaner, and there is no limit (except the limit of the range function in certain cases). For example what would be wrong with. def foo(j): while j < n: j+=1 return j I don't know much about th

Re: recursive function

2005-10-07 Thread Brandon K
> def foo(j): > while j < n: > j+=1 > return j > of course I mean: def foo(j): while j < n: j+=1 return j sorry == Posted via Newsgroups.com - Usenet Access to over 100,000 Newsgroups == Get Anonymous, Uncensored, Access to West and East Coast Server Fa

Re: new forum -- homework help/chit chat/easy communication

2005-10-08 Thread Brandon K
Hrm...i find it demeaning to relegate Python to a scripting language while Visual Basic is in the "software development" section. Python so outdoes VB in every way shape and form. > I've launched a new forum not too long ago, and I invite you all to go > there: www.wizardsolutionsusa.com (clic

Re: new forum -- homework help/chit chat/easy communication

2005-10-08 Thread Brandon K
[EMAIL PROTECTED] wrote: > I've launched a new forum not too long ago, and I invite you all to go > there: www.wizardsolutionsusa.com (click on the forum link). We offer > all kinds of help, and for those of you who just like to talk, there's > a chit chat section just for you...Just remember that

Re: new forum -- homework help/chit chat/easy communication

2005-10-08 Thread Brandon K
> In other words, what is the difference between a "scripting language" > and a "programming language". > Good point. == Posted via Newsgroups.com - Usenet Access to over 100,000 Newsgroups == Get Anonymous, Uncensored, Access to West and East Coast Server Farms! == Highest Rete

Re: Windows installer, different versions of Python on Windows

2005-10-10 Thread Brandon K
When you install Python it plug entries into the registry, so that when you go to install add-ons that are pre-compiled binaries, they look into the registry for the python directory. If you can find out how to manipulate the registry so that the binaries would recognize different installation

Confused on Kid

2005-10-10 Thread Brandon K
Hey, so I heard about the TurboGears posting and decided to investigate. I watched some of their video on building a wiki in 20 minutes and was totally blown away because I'm used to python...straight python, not melding together 4 different APIs into one to blah blah. ANYWAY. I was inve

Re: C Extension - return an array of longs or pointer?

2005-10-12 Thread Brandon K
All the veteran programmers out there can correct me, but the way I did it in my extension was this: static PyObject *wrap_doNumberStuff(PyObject* self, PyObject* args) { char* in = 0; char* x = 0; long* result = 0; int i = 0; PyObject* py = PyTuple_New()

Re: C Extension - return an array of longs or pointer?

2005-10-12 Thread Brandon K
I'm sorry...I just woke up and forgot my C...must have left it in the Coffee...Anyway, i made a few mistakes (can't initialize blank tuple...function should return a value, lol). static PyObject* wrap_doNumberStuff(PyObject* self, PyObject* args) { char* in = 0; char* x = 0;

Re: coloring a complex number

2005-10-21 Thread Brandon K
I'm not 100% sure about this, but from what it seems like, the reason method B worked, and not method a is because class foo(complex) is subclassing a metaclass. So if you do this, you can't init a meta class (try type(complex), it equals 'type' not 'complex'. type(complex()) yields 'complex'

Re: Xah's edu corner: the Journey of Foreign Characters thru Internet

2005-11-02 Thread Brandon K
So just stop talking. It's funny that you guys are having a conversations about not responding to a guys post. First of all, freedom of speech, blah blah, who cares, just let him alone. But certainly don't go on his post, reply, telling people not to reply. That's like saying EVEN THOUGH I'M

Re: Most efficient way of storing 1024*1024 bits

2005-11-02 Thread Brandon K
BTW, it'd be 6 megabits or 750kb ;) > Six megabytes is pretty much nothing on a modern computer. == Posted via Newsgroups.com - Usenet Access to over 100,000 Newsgroups == Get Anonymous, Uncensored, Access to West and East Coast Server Farms! == Highest Retention and Completion Rat

Re: computer programming

2005-11-02 Thread Brandon K
what is .tk? Turkmenistan? or is it just some arbitrary suffix. > www.javaholics.tk == Posted via Newsgroups.com - Usenet Access to over 100,000 Newsgroups == Get Anonymous, Uncensored, Access to West and East Coast Server Farms! == Highest Retention and Completion Rates! HTTP:/

Re: Counting processors

2005-07-26 Thread k pur
You can use print os.sysconf("SC_NPROCESSORS_CONF") works on Linux krishan Pauldoo wrote: > Hi, > Is a way in python to obtain the total number of processors present in > the system? > > os.platform doesn't seem to contain anything useful. -- http://mail.python.org/mailman/listinfo/python-

Re: Python-list Digest, Vol 18, Issue 349

2005-03-22 Thread Srinivasan K
Regards, KSrinivasan Disclaimer: This e-mail is bound by the terms and conditions described at http://www.subexsystems.com/mail-disclaimer.htm - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Tuesday, March 22, 2005 7:11 PM Subject: Python-list Digest, Vol 18, Issue 349 > Sen

Need help vectorizing code

2014-01-18 Thread Kevin K
I have some code that I need help vectorizing. I want to convert the following to vector form, how can I? I want to get rid of the inner loop - apparently, it's possible to do so. X is an NxD matrix. y is a 1xD vector. def foo(X, y, mylambda, N, D, epsilon): ... for j in xrange(D):

Re: Need help vectorizing code

2014-01-18 Thread Kevin K
25 PM UTC-8, Kevin K wrote: > I have some code that I need help vectorizing. > > I want to convert the following to vector form, how can I? I want to get rid > of the inner loop - apparently, it's possible to do so. > > X is an NxD matrix. y is a 1xD vector. > >

SSL certification fails / tweepy

2016-01-13 Thread K. Elo
Dear list members! I have written I small python script for twitter mining utilising the 'tweepy' library. Since a couple of days I cannot use the script anymore, due to a "ssl certificate verification failed" error. The authentication with Twitter API succeess, but when I try to run the foll

Re: SSL certification fails / tweepy [SOLVED]

2016-01-14 Thread K. Elo
Hi! 14.01.2016, 09:59, dieter wrote: "SSL_VERIFICATION_FAILED" is an error which occurs when an SSL ("https") connection is established. It happens when the SSL certificate (of the server and/or client) does not contain expected data - e.g. the certificate is no longer (or not yet) valid or its

Re: merging two csv files

2016-03-03 Thread K. Elo
Hi! Is this a homework or something you need a quick solution for? For the latter: 'man paste' (on Linux) :) Anyway, some sample data and code would be good. BR, Kimmo 03.03.2016, 11:50, m.t.e...@student.rug.nl wrote: Hey! I want to merge column-wise two csv files, say: file1.csv and file2.

Re: Topic Modeling LDA Gensim

2015-03-17 Thread Sreenath k
1]]' keeps changing each time. Why is it so ? Please help! Waiting for your reply, Sreenath K -- https://mail.python.org/mailman/listinfo/python-list

Integration using scipy odeint

2015-09-13 Thread sagar k
Dear all I'm using Python 3.4.3. I am facing a problem in integrating using odeint solver. In the following code, tran is a function and in those are the variables which are arrays. These variables change their values with respect to time (the time which I pass to the function). I tried defini

help regarding extracting a smaller list from larger one

2011-09-15 Thread neeru K
Dear Python Users, I am trying to write a code for visualization (raster plots and peri-event time histogram) of time series electrophysiological data using numpy, scipy and matlplotlib in python. I am importing the data into list using loadtext command. I was curious if anyone is aware of a functi

Re: help regarding extracting a smaller list from larger one

2011-09-15 Thread neeru K
the above array for example - sub-list[3, 8] Is there a function for this? thank you niranjan On Thu, Sep 15, 2011 at 10:54 PM, Gary Herron wrote: > On 09/15/2011 09:40 AM, neeru K wrote: > >> Dear Python Users, >> I am trying to write a code for visualization (raster plots and

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-17 Thread prabhakaran k
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-27 Thread prabhakaran k
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-28 Thread PRABHAKARAN K
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-28 Thread PRABHAKARAN K
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-28 Thread prabhakaran k
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/

2011-12-28 Thread prabhakaran k
Online Data Entry Jobs Without Investment http://ponlinejobs.yolasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: nested loops

2013-02-27 Thread K. Elo
Hi! > leonardo writes: how can i have it print a row of stars beside each number, like this?: how many seconds?: 5 5 * * * * * 4 * * * * 3 * * * 2 * * 1 * blast off! --- snip --- sec = int(input("How many seconds? ")) for i in range(0,sec): print str(sec-i)+":"+" *"*(sec-i) print

Python module vs library

2013-04-09 Thread k . lykourgos
Hi, what is the difference between python module and library ? -- http://mail.python.org/mailman/listinfo/python-list

Which is the best GTK

2006-01-06 Thread K Satish
Hi all,   I am a new one to python. I want which is the best gtk. Tkinter or Tix or etc., . Please suggest me some documentation.   Thanks, Satish. Team Spiderace, www.spiderace.com.  Send instant messages to your online friends http://in.messenger.yahoo.com -- http://mail.python.org/m

What is the UI Element to work with HTML Content

2006-01-08 Thread K Satish
Hi All,   I am a newbie to Python. I want to know that there is any UI Control to browse HTML pages. Please let me know. If that is available, I am planing to develop a Chat application. Waiting for help.   Thanks, Satish. [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]  Send insta

XML RFC Server

2006-01-08 Thread K Satish
Hi All,   Is there any example code to develop XML RFC Web Service in Python.   Thanks, Satish.Send instant messages to your online friends http://in.messenger.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list

Help with dbm TypeError

2006-01-09 Thread ryan k
I am writing a web application for mod_python that catalogs my home (book) library. For now, I am using the Python dbm module to store string representations of mod_python's req.form (using the mod_python.publisher handler) using unique IDs as keys. In the .db file, there is a key 'next' that holds

What is the method for class destroy

2006-01-15 Thread K Satish
Hi All,   Like __init__ which is called when object instatiated, what is the method when object destroys.   Thanks, Satish.Send instant messages to your online friends http://in.messenger.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list

how to handle jpg images with Tkinter

2006-01-16 Thread K Satish
Hi,   I am not able to load jpg images in photoimage widget. That is showing different different errors. can I find any examples on internet.   Thanks, SatishSend instant messages to your online friends http://in.messenger.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list

numpy slice: create view, not copy

2006-10-12 Thread K. Jansma
Hi, given an array: import numpy a = numpy.arange(100).reshape((10,10)) print a [[ 0 1 2 3 4 5 6 7 8 9] [10 11 12 13 14 15 16 17 18 19] [20 21 22 23 24 25 26 27 28 29] [30 31 32 33 34 35 36 37 38 39] [40 41 42 43 44 45 46 47 48 49] [50 51 52 53 54 55 56 57 58 59] [60 61 62 63 64 6

py and Dabo class in chi

2006-10-25 Thread Carl K
I am organizing 3 python events in Chicago: 2 free, one cheap. 1st is really just an extended VFP users group meeting featuring Ed Leafe, one of the Dabo developers. I am getting a larger room to accommodate the python group too. The meeting is Nov 14 5:30pm in the loop: (not sure yet where,

ValueError: too many values to unpack

2006-06-08 Thread k . retheesh
Hi, I am very new to pyton, during my adventures journey I got the following error message which am not able to solve, can somebody help me. I was trying to format my output in a readable way, Compare results in tblItem _

Re: ValueError: too many values to unpack

2006-06-08 Thread k . retheesh
Thank you, that solved my problem. Thanks Retheesh alisonken1 wrote: > [EMAIL PROTECTED] wrote: > > > 56 records were different > > Type, FileType, > >Item, > > Hash, > > > > Path, Size, CullCd, Ext, DtCr,

TypeError: unsubscriptable object

2006-06-09 Thread k . retheesh
Can anybody tell me why am I getting this error message while trying to print a part of a string. Is there a better approach for this... Traceback (most recent call last): File "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript exec codeObject in

Re: TypeError: unsubscriptable object

2006-06-09 Thread k . retheesh
So wat should I do ?? K.S.Sreeram wrote: > [EMAIL PROTECTED] wrote: > > print template % (ID, IID, Function[:10], Description[:10], > > ErrorNumber, StatusCD) > > TypeError: unsubscriptable object > > It means either 'Function' or 'Description' is not a sequence. > Try inserting print statemen

Re: TypeError: unsubscriptable object

2006-06-09 Thread k . retheesh
So wat should I do ?? K.S.Sreeram wrote: > [EMAIL PROTECTED] wrote: > > print template % (ID, IID, Function[:10], Description[:10], > > ErrorNumber, StatusCD) > > TypeError: unsubscriptable object > > It means either 'Function' or 'Description' is not a sequence. > Try inserting print statemen

Re: TypeError: unsubscriptable object

2006-06-09 Thread k . retheesh
So wat should I do ?? K.S.Sreeram wrote: > [EMAIL PROTECTED] wrote: > > print template % (ID, IID, Function[:10], Description[:10], > > ErrorNumber, StatusCD) > > TypeError: unsubscriptable object > > It means either 'Function' or 'Description' is not a sequence. > Try inserting print statemen

Re: TypeError: unsubscriptable object

2006-06-09 Thread k . retheesh
I did the same, The function type is < NoneType> and the description type is so how can i print a part of this 2 output. These values are returned by database. Thanks Retheesh Laszlo Nagy wrote: > [EMAIL PROTECTED] írta: > > So wat should I do ?? > > > You should do this: > > print type(Functi

Re: TypeError: unsubscriptable object

2006-06-09 Thread k . retheesh
I did the same, The function type is < NoneType> and the description type is so how can i print a part of this 2 output. These values are returned by database. Thanks Retheesh Laszlo Nagy wrote: > [EMAIL PROTECTED] írta: > > So wat should I do ?? > > > You should do this: > > print type(Functi

a -very- case sensitive search

2006-11-25 Thread Ola K
Hi, I am pretty new to Python and I want to make a script that will search for the following options: 1) words made of uppercase characters -only- (like "YES") 2) words made of lowercase character -only- (like "yes") 3) and words with only the first letter capitalized (like "Yes") * and I need to d

Re: a -very- case sensitive search

2006-12-02 Thread Ola K
tters. So my script was actualy for the english letters inside the hebrew text... --Ola Paul McGuire כתב: > "Ola K" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > I am pretty new to Python and I want to make a script that will sear

Search & Replace in MS Word Puzzle

2006-12-09 Thread Ola K
Hi guys, I wrote a script that works *almost* perfectly, and this lack of perfection simply puzzles me. I simply cannot point the whys, so any help on it will be appreciated. I paste it all here, the string at the beginning explains what it does: '''A script for MS Word which does the following:

share function argument between subsequent calls but not between class instances!

2006-02-18 Thread K. Jansma
Hi, given the following example class class Test: def f(self,a, L=[]): L.append(a) return L and the following statements a = Test() a.f(0) a.f(0) a.f(0) b = Test() b.f(0) this is the output I would like to have (i.e., expect) >>> a = Test() >>> a.f(0) [0] >>> a.f(0) [0, 0]

Embedding interactive interpreter

2007-06-05 Thread Ryan K
Hi. I am trying to embed an interactive interpreter in a C++ application. I need to capture the output of int PyRun_InteractiveOne(FILE *fp, const char *filename). Is redirecting sys.stdout and sys.stderr after initializing the interpreter the best way to do this? Thanks, Ryan -- http://mail.pyt

problem with pickle

2007-07-07 Thread K Gaur
hello everybody I've just started learning python . i stumbled upon this broad spectrum function 'pickle' but it is not getting executed as it should this is what the python interpreter returns on giving the basic command >>>pickle.dump(x,f) where x is a tuple and f is a file object Tra

Running Python with XAMPP

2007-07-18 Thread Mathias K.
Hello everyone! I just installed Python 2.5 and i want to use Python to build websites. I could load mod_python successfully with Apache but i fail to let the .py-files to be executed! In /htdocs/python i got my test file: [code=python.py] from mod_python import apache def index(req):

mysql "rows affected"

2007-04-26 Thread Carl K
using MySQLdb, I do cursor.execute("update...") How can I tell how many rows were affected ? Carl K -- http://mail.python.org/mailman/listinfo/python-list

Re: mysql "rows affected"

2007-04-26 Thread Carl K
John Nagle wrote: > Carl K wrote: >> using MySQLdb, I do cursor.execute("update...") >> >> How can I tell how many rows were affected ? >> >> Carl K > > cursor = db.cursor() # get cursor > cursor.execute(sql

Re: mysql "rows affected"

2007-04-29 Thread Carl K
Dennis Lee Bieber wrote: > On Thu, 26 Apr 2007 18:18:57 -0700, John Nagle <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> Carl K wrote: >>> using MySQLdb, I do cursor.execute("update...") >>> >>> How can I tell h

ctree data

2007-05-12 Thread Carl K
e.html - This just shows what lengths I am willing to go to. but I really don't want to start learning perl. TIA Carl K -- http://mail.python.org/mailman/listinfo/python-list

installing cx_Oracle.

2007-05-24 Thread Carl K
;, line 17, in __getitem__ def __getitem__(self, key): return self.data[key] KeyError: 'ORACLE_HOME' Now I don't really know whos problem this is. Carl K -- http://mail.python.org/mailman/listinfo/python-list

Re: installing cx_Oracle.

2007-05-24 Thread Carl K
tError: libclntsh.so.10.1: cannot open shared object file: No such file or directory guessing I need to add /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/ to some path? btw - anyone know of a .deb that will install this? Carl K -- http://mail.python.org/mailman/listinfo/python-list

Re: installing cx_Oracle.

2007-05-24 Thread Carl K
Bill Scherer wrote: > Carl K wrote: >> Getting closer, thanks Bill and Diez. >> >> $ export ORACLE_HOME >> $ ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client >> $ python setup.py build >> $ sudo python setup.py install >> >> $ pyt

Re: installing cx_Oracle.

2007-05-24 Thread Carl K
Dennis Lee Bieber wrote: > On Thu, 24 May 2007 09:07:07 -0500, Carl K <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> Getting closer, thanks Bill and Diez. >> >> $ export ORACLE_HOME >> $ ORACLE_HOME=/usr/lib/oracle/xe/app/oracle

◘►Access FREE Satellite TV on your PC or Laptop◄◘

2007-07-26 Thread K. Brown
Legally Access 1000's of Television Channels From All Over The World Watch all your favorite shows on your Computer! Save 1000's of $$$ over many years on cable and satellite bills. INSTANT DOWNLOAD Learn More About it at Link below: http://tvonpc.cq.bz -- http://mail.python.org/mailman/list

attribute save restore

2007-04-13 Thread Carl K
ng in a parameter, but that isn't my choice.) Carl K -- http://mail.python.org/mailman/listinfo/python-list

Re: attribute save restore

2007-04-13 Thread Carl K
Steven Bethard wrote: > Carl K wrote: >> Is there a more elegant way of coding this: >> >> x=o.p # save .p >> o.p=0 >> o.m() >> o.p=x # restore .p >> >> seems very push/pop to me - like there should be a way that doesn't >> need

Re: Python editor/IDE on Linux?

2007-04-14 Thread Carl K
I use spe - it is in universe. Has some rough edges, but in general I like it enough to recommend it. Carl K -- http://mail.python.org/mailman/listinfo/python-list

looking for ocbc example

2007-09-20 Thread Carl K
ow what modules, and the lines to connect and execute a sql command. It seems there are 2 odbc modules - pyOdbc and mxOdbc - anyone know the difference? Carl K -- http://mail.python.org/mailman/listinfo/python-list

Re: int to str in list elements..

2007-10-14 Thread Tobias K.
1. Use a generator expression: b = ",".join(str(i) for i in a) or 2. Use imap from itertools import imap b = ",".join(imap(str, a)) -- http://mail.python.org/mailman/listinfo/python-list

Displaying future times

2007-10-17 Thread ryan k
I have a schedule of times in the future that I want to display in a timezone the user sets. There is a useful module http://www.purecode.com/~tsatter/python/README.txt (at that URL) with a function that takes seconds from the epoch and a time zone and returns what is basically a datetime object.

Displaying future times

2007-10-17 Thread ryan k
I have a schedule of times in the future that I want to display in a timezone the user sets. There is a useful module http://www.purecode.com/~tsatter/python/README.txt (at that URL) with a function that takes seconds from the epoch and a time zone and returns what is basically a datetime object.

Re: Displaying future times

2007-10-17 Thread ryan k
On Oct 17, 1:52 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Wed, 17 Oct 2007 12:20:06 +, ryan k wrote: > > I have a schedule of times in the future that I want to display in a > > timezone the user sets. There is a useful module > >

text wrapping help

2007-02-28 Thread Ryan K
I'm trying to text wrap a string but not using the textwrap module. I have 24x9 "matrix" and the string needs to be text wrapped according to those dimensions. Is there a known algorithm for this? Maybe some kind of regular expression? I'm having difficulty programming the algorithm. Thanks, Ryan

Re: text wrapping help

2007-02-28 Thread Ryan K
e. This connection is not visible on any external interface and no data is sent to or received from the Internet.""" print wrap_text(sample_text, 24) It doesn't even run but when I go through it interactively it seems okay. Once again, any help is appreciated. On Feb 28, 7:06

Re: text wrapping help

2007-02-28 Thread Ryan K
That works great but I need to replace the newlines with 24-(the index of the \n) spaces. On Feb 28, 8:27 pm, [EMAIL PROTECTED] wrote: > On Feb 28, 4:06 pm, "Ryan K" <[EMAIL PROTECTED]> wrote: > > > I'm trying to text wrap a string but not using the textwra

Re: looking for ocbc example

2007-11-27 Thread Carl K
jay graves wrote: > On Sep 21, 2:43 am, Tim Golden <[EMAIL PROTECTED]> wrote: >> Carl K wrote: >>> It seems there are 2 odbc modules - pyOdbc and mxOdbc - anyone know the >>> difference? >> In short, pyodbc is open source; mxOdbc requires a commercial licens

mac dashboad

2007-12-21 Thread Carl K
How do I hang an app off the mac dashboard? The goal is a python version of Weatherbug. something like: read xml data from a URL, display some numbers, mouse over shows more details Carl K -- http://mail.python.org/mailman/listinfo/python-list

Re: mac dashboad

2007-12-21 Thread Carl K
ianaré wrote: > On Dec 21, 12:37 pm, Carl K <[EMAIL PROTECTED]> wrote: >> How do I hang an app off the mac dashboard? >> >> The goal is a python version of Weatherbug. >> >> something like: >> read xml data from a URL, >> display some num

Re: mac dashboad

2007-12-21 Thread Carl K
Chris Mellon wrote: > On Dec 21, 2007 3:25 PM, Carl K <[EMAIL PROTECTED]> wrote: >> ianaré wrote: >>> On Dec 21, 12:37 pm, Carl K <[EMAIL PROTECTED]> wrote: >>>> How do I hang an app off the mac dashboard? >>>> >>>> The goal is a

  1   2   3   4   5   6   7   8   >