read csv error question

2009-02-23 Thread Vincent Davis
the actual csv file I would like to fix the code. Thanks Vincent Davis -- http://mail.python.org/mailman/listinfo/python-list

Re: read csv error question

2009-02-23 Thread Vincent Davis
but I might just be really blind. Thanks again Vincent Davis On Mon, Feb 23, 2009 at 4:52 PM, Benjamin Kaplan benjamin.kap...@case.eduwrote: On Mon, Feb 23, 2009 at 6:43 PM, MRAB goo...@mrabarnett.plus.com wrote: Vincent Davis wrote: I am trying to read a csv file from excel on a mac. I

Re: read csv error question

2009-02-23 Thread Vincent Davis
I just thought to look in the documentation for open() It seems this may contain the answers to my questions. I am just to new to python to know where my problem is, Thanks Vincent Davis 720-301-3003 On Mon, Feb 23, 2009 at 4:52 PM, Benjamin Kaplan benjamin.kap...@case.eduwrote: On Mon, Feb

PYTHONPATH on Mac 10.5

2009-02-25 Thread Vincent Davis
python I want to use like this #!/Library/Frameworks/Python.framework/Versions/4.1.30101/bin/python Is there a way to specify a module location or working directory? Which is best? Or should I just add location to PYTHONPATH? Thanks Vincent Davis -- http://mail.python.org/mailman/listinfo/python-list

help understanding class or function

2009-03-05 Thread Vincent Davis
for x in a if x % 2 ==0] return blist then when I am using it I do this a = doubleeven(a) I what to keep it named a I am not sure if this is the best way in terms of format or structure. Is there a better way. Thanks Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python

Re: help understanding class or function

2009-03-05 Thread Vincent Davis
this example. Thanks Vincent Davis 720-301-3003 On Thu, Mar 5, 2009 at 5:13 PM, Gabriel Genellina gagsl-...@yahoo.com.arwrote: En Thu, 05 Mar 2009 14:43:12 -0200, Vincent Davis vinc...@vincentdavis.net escribió: If I have a list and I what to make changes to it.a = [1,2,3,4,5,6,7,8,9] and maybe I

Re: How to import Python files in the other directories?

2009-03-06 Thread Vincent Davis
(/Volumes/iDisk/match/python/matchmod) Thanks Vincent Davis 720-301-3003 On Fri, Mar 6, 2009 at 12:10 AM, Christian Heimes li...@cheimes.de wrote: Muddy Coder schrieb: Hi Folks, If I have a python file foo.py in the current directory, I can simply import it in the way below: import foo

engadget; a language that few understand these days (it's Python, and no, we're not joking)

2009-03-17 Thread Vincent Davis
/17/sandalone-eye-fi-server-hack-one-ups-eye-fi-manager/ Thanks Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list

understanding nested lists?

2009-01-24 Thread Vincent Davis
I have a short peace of code that is not doing what I expect. when I assign a value to a list in a list alist[2][4]=z this seems replace all the 4 elements in all the sub lists. I assume it is supposed to but this is not what I expect. How would I assign a value to the 4th element in the 2nd

Re: understanding nested lists?

2009-01-24 Thread Vincent Davis
Thanks for the info. I did not know that. Thanks Vincent Davis On Sat, Jan 24, 2009 at 10:46 AM, Steve Holden st...@holdenweb.com wrote: Vincent Davis wrote: I have a short peace of code that is not doing what I expect. when I assign a value to a list in a list alist[2][4]=z this seems

print formating for matrix/table

2009-01-26 Thread Vincent Davis
would have thought I could find a prebuilt function to do this. Surly lots of people are printing matrixes and would like nice formating. So what am I missing? Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list

Re: print formating for matrix/table

2009-01-26 Thread Vincent Davis
solution, convert the list to an array before printing? Thanks Vincent Davis On Mon, Jan 26, 2009 at 5:23 PM, Robert Kern robert.k...@gmail.com wrote: On 2009-01-26 18:18, Vincent Davis wrote: I have a list of listsa matrix in that all sub lists are the same length. I there a nice why

Re: print formating for matrix/table

2009-01-26 Thread Vincent Davis
a csv formated for excel but that is for later I was just trying to make it easier to debug my code. Thanks Vincent Davis 720-301-3003 On Mon, Jan 26, 2009 at 7:03 PM, Robert Kern robert.k...@gmail.com wrote: On 2009-01-26 19:53, Vincent Davis wrote: I do have numpy but am using lists as did

regular expression, help

2009-01-27 Thread Vincent Davis
I think there are two parts to this question and I am sure lots I am missing. I am hoping an example will help meI have a html doc that I am trying to use regular expressions to get a value out of. here is an example or the line td colspan='2'Parcel ID: 39-034-15-009 /td I want to get the number

regular expression, help

2009-01-27 Thread Vincent Davis
I think there are two parts to this question and I am sure lots I am missing. I am hoping an example will help meI have a html doc that I am trying to use regular expressions to get a value out of. here is an example or the line td colspan='2'Parcel ID: 39-034-15-009 /td I want to get the number

Re: How many followers of comp.lang.python

2009-01-27 Thread Vincent Davis
am a beginner programer and new to python it is really help to have a place to ask quick or long questions. Books are nly so good, Google helps but it doesn't debug code for you. Thanks Vincent Davis On Tue, Jan 27, 2009 at 10:13 AM, Grant Edwards inva...@invalid wrote: On 2009-01-27, Bruno

Re: regular expression, help

2009-01-27 Thread Vincent Davis
is BeautifulSoup really better? Since I don't know either I would prefer to learn only one for now. Thanks Vincent Davis On Tue, Jan 27, 2009 at 10:39 AM, MRAB goo...@mrabarnett.plus.com wrote: Vincent Davis wrote: I think there are two parts to this question and I am sure lots I am

change syntax coloring in IDLE

2009-01-27 Thread Vincent Davis
I am using mac with python 2.5.2 and IDLE verison 1.2.2. in the help it states I can change he text coloring by using Configure IDLE but I not sure what this is. It's not sn the menu, running Configure does nothing. How do I change the color (text and background) Thanks Vincent Davis -- http

Re: change syntax coloring in IDLE

2009-01-27 Thread Vincent Davis
? That last part is ugh! Thanks Vincent Davis On Tue, Jan 27, 2009 at 12:40 PM, Ned Deily n...@acm.org wrote: In article 77e831100901270950i6b0b510chf80a495a65ca9...@mail.gmail.com, Vincent Davis vinc...@vincentdavis.net wrote: I am using mac with python 2.5.2 and IDLE verison 1.2.2

Re: change syntax coloring in IDLE

2009-01-27 Thread Vincent Davis
using terminal and openingIn Vincent's case (EPD), this would be /Library/Frameworks/Python/Versions/Current/bin/idle2.5 Worked!! Thanks for the help. Vincent Davis On Tue, Jan 27, 2009 at 2:42 PM, Robert Kern robert.k...@gmail.com wrote: On 2009-01-27 13:40, Ned Deily wrote: In article

program organization question

2009-01-28 Thread Vincent Davis
the results as different names. I don't even know how to pass data from on program to another although I think I can figure this out. Any guidance? Thanks Vincent Davis -- http://mail.python.org/mailman/listinfo/python-list

question about Z=[[x for y in range(1,2) if AList[x]==y] for x in range(0,5)]

2009-02-01 Thread Vincent Davis
Z=[[x for y in range(1,2) if AList[x]==y] for x in range(0,5)] I am not sure how to ask this but which for is looped first? I could test but was wondering if there was a nice explanation I could apply to future situations. Thanks Vincent Davis 720-301-3003 -- http://mail.python.org/mailman

faster scipy.percentileofscore ?

2009-02-02 Thread Vincent Davis
Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list

Re: faster scipy.percentileofscore ?

2009-02-02 Thread Vincent Davis
Did not know about http://www.scipy.org/Mailing_Lists but did not look, Thanks for the help Vincent Davis On Mon, Feb 2, 2009 at 11:28 AM, Robert Kern robert.k...@gmail.com wrote: On 2009-02-02 12:08, Vincent Davis wrote: Currently I am using the following: pgrades

Use list name as string

2009-02-04 Thread Vincent Davis
it to ext1 = '\.csv' flex = filename + ext1 datawrite = csv.writer(open(flex, wb)) datawrite.writerows(dataname) Thanks Vincent Davis -- http://mail.python.org/mailman/listinfo/python-list

Re: Use list name as string

2009-02-04 Thread Vincent Davis
would be 1,2,3,5,6,9,234 this parts works Thanks Vincent Davis 720-301-3003 On Wed, Feb 4, 2009 at 9:48 AM, Tim Chase python.l...@tim.thechases.comwrote: I know this is wrong it uses the items in the list as the filename, how do I refer to the dataname and not the items in it. Without

Re: Use list name as string

2009-02-04 Thread Vincent Davis
I know nothing but that sucks. I can think of a lot of times I would like to do something similar. There really is no way to do this, it seems like there would be some simple way kind of like str(listname) but backwards or different. Thanks Vincent Davis On Wed, Feb 4, 2009 at 10:07 AM, MRAB

Re: Use list name as string

2009-02-04 Thread Vincent Davis
I guess what I am saying is that it does not seem like I am adding any information that is not already there when I have to enter that list and list name after all they are the same. Thanks Vincent Davis On Wed, Feb 4, 2009 at 10:18 AM, Vincent Davis vinc...@vincentdavis.netwrote: I know

Re: Use list name as string

2009-02-04 Thread Vincent Davis
can I do it the otherway, that issavedata('nameoflist') Thanks Vincent Davis 720-301-3003 On Wed, Feb 4, 2009 at 10:23 AM, Vincent Davis vinc...@vincentdavis.netwrote: I guess what I am saying is that it does not seem like I am adding any information that is not already there when I have

Re: Use list name as string

2009-02-04 Thread Vincent Davis
for 2 weeks so my credibility is only that of an outside that MAY have a reasonable way of thinking of this or at least a feature I would like. Thanks for the comments by the way what is **kwargs I can't find any documentation on this? Thanks Vincent Davis On Wed, Feb 4, 2009 at 5:09 PM

Re: Use list name as string

2009-02-04 Thread Vincent Davis
Then I could just type lp(alist) note I am entering the name which has an object that is a list. I am not entering [1,3,5,7] and it would print 'alist' alist Does it not seem reasonable to what to do this. Vincent Davis 720-301-3003 On Wed, Feb 4, 2009 at 7:55 PM, Rhodri James rho

Re: Use list name as string

2009-02-04 Thread Vincent Davis
suggestions for reading about this? Thanks Vincent Davis On Wed, Feb 4, 2009 at 8:24 PM, Jervis Whitley jervi...@gmail.com wrote: On Thu, Feb 5, 2009 at 3:57 AM, Vincent Davis vinc...@vincentdavis.net wrote: Sorry for not being clear I would have something like this x = [1, 2, 3,5 ,6 ,9,234

return multiple objects

2009-02-05 Thread Vincent Davis
it, , is there a better way? I saw examples where dictionaries where used but I would prefer to just access the object names directly. As in test1() print a # not haing to refer to it as is there something I am missing? Thanks Vincent Davis -- http://mail.python.org/mailman/listinfo/python-list

Re: return multiple objects

2009-02-05 Thread Vincent Davis
That is what I was missing, Thanks Vincent Davis On Thu, Feb 5, 2009 at 8:37 PM, Rhodri James rho...@wildebst.demon.co.ukwrote: On Fri, 06 Feb 2009 03:03:01 -, Vincent Davis vinc...@vincentdavis.net wrote: Is it correct that if I want to return multiple objects from a function I

simple web app, where to start

2009-02-06 Thread Vincent Davis
it.I know a little html but am not sure how to integrate python or know what servers will handle it . Thanks Vincent Davis -- http://mail.python.org/mailman/listinfo/python-list

Re: simple web app, where to start

2009-02-07 Thread Vincent Davis
Thanks http://www.cherrypy.org/ looks like a good and simple option. Thanks Vincent Davis On Sat, Feb 7, 2009 at 5:09 PM, n...@stinemates.org wrote: On Fri, Feb 06, 2009 at 09:16:02PM -0700, Vincent Davis wrote: I have a simple script that takes a few input values and returns a csv file

Re: MacPython 2.5 IDLE font size

2009-02-07 Thread Vincent Davis
. Vincent Davis On Sat, Feb 7, 2009 at 4:03 PM, choha...@gmail.com wrote: Hi, Is there a way to adjust the default font size in IDLE, in MacPython 2.5? The default now is too tiny. I have to use this version of MacPython. As far as I searched, I can't find how I do this. Thanks. -- http

Re: Spam

2009-02-12 Thread Vincent Davis
Vincent Davis On Thu, Feb 12, 2009 at 12:42 PM, Terry Reedy tjre...@udel.edu wrote: Terry Reedy wrote: andrew cooke wrote: A quick search on imap nntp turned up this list that might be useful - http://deflexion.com/messaging/ although I wonder when it was written because I remember using

Above and beyond, A critique request

2009-02-15 Thread Vincent Davis
- applicant rank the institutions 0 best large values worse - institutions rank applicants - The Match is best described here http://www.nrmp.org/res_match/about_res/algorithms.html I have a lot of print functions mostly to track what was going on during development. Thanks Vincent

Re: illegal list name

2009-02-15 Thread Vincent Davis
Vincent Davis On Sun, Feb 15, 2009 at 5:24 PM, Sandra Quiles sandr...@silverica.comwrote: Hello. I have followed the instructions of a post on Installing mailman on OS X 10.4, and got to step 7 and hit this error. The hard- and software involved is: OS X 10.4.x, Python 2.3.5, Mailman 2.1.5

Re: code challenge: generate minimal expressions using only digits 1,2,3

2009-02-20 Thread Vincent Davis
to the factors. I might look closer at this please post if you come across a solution. Thanks Vincent Davis 720-301-3003 On Fri, Feb 20, 2009 at 7:31 AM, Trip Technician luke.d...@gmail.comwrote: anyone interested in looking at the following problem. we are trying to express numbers as minimal expressions

A different take on finding primes

2009-11-14 Thread Vincent Davis
is different depending on the time give, 2min or 2 hours. I assume a sieve solution would be best for larger times. When the numbers get really large checking to see if they are a prime gets costly. So what do you think? *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http

Delaunay triangulation

2009-12-02 Thread Vincent Davis
Anyone know of a python implementation of Delaunay triangulation? *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis -- http://mail.python.org/mailman/listinfo/python-list

Re: Delaunay triangulation

2009-12-02 Thread Vincent Davis
Thanks for all the replies I will look at each. *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis On Wed, Dec 2, 2009 at 10:20 AM, sturlamolden sturlamol...@yahoo.no wrote: On 2 Des, 15:28, David Robinow

speed question, reading csv using takewhile() and dropwhile()

2010-02-19 Thread Vincent Davis
, list(dropwhile(lambda drow: '[MASKS]' not in drow, read))) mask = [row for row in mask_rows if row][3:] outlier_rows = dropwhile(lambda drows: '[OUTLIERS]' not in drows, read) outlier = [row for row in outlier_rows if row][3:] *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net

Re: speed question, reading csv using takewhile() and dropwhile()

2010-02-19 Thread Vincent Davis
part of it is that they are about 5mb so I guess it might be disk speed in part. Thanks *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis On Fri, Feb 19, 2010 at 2:13 PM, Jonathan Gardner jgard

Re: speed question, reading csv using takewhile() and dropwhile()

2010-02-20 Thread Vincent Davis
:] outliers = outliers[3:] modified = modified[3:] return [data, mask, outliers, modified] *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis On Fri, Feb 19, 2010 at 4:36 PM, Jonathan Gardner jgard

Not sure why this is filling my sys memory

2010-02-20 Thread Vincent Davis
). The getsizeof() returns 6424 bytes for the alldata . So I am not sure what is happening. Any ideas Thanks *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis -- http://mail.python.org/mailman/listinfo/python-list

Re: speed question, reading csv using takewhile() and dropwhile()

2010-02-20 Thread Vincent Davis
question Why is this filling my sys memory or something like that is the subject. I might be that my 1yr old son has been trying to help for the last hour. It is very distracting. *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com

Re: Not sure why this is filling my sys memory

2010-02-20 Thread Vincent Davis
Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis On Sat, Feb 20, 2010 at 7:40 PM, sstein...@gmail.com sstein...@gmail.comwrote: On Feb 20, 2010, at 9:21 PM, Vincent Davis wrote: See this article for some more info

Re: Not sure why this is filling my sys memory

2010-02-21 Thread Vincent Davis
also had pympler suggested. http://stackoverflow.com/questions/2306523/reading-text-files-into-list-then-storing-in-dictionay-fills-system-memory-a Thanks again *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com

calculating a self.value, self.randomnum = normalvariate(x, y)

2009-06-19 Thread Vincent Davis
thing of to do this is is with a while statement and that seems more complicated than necessary. I would really like to keep it on one line. How would I do that? Thanks Vincent Davis -- http://mail.python.org/mailman/listinfo/python-list

Re: calculating a self.value, self.randomnum = normalvariate(x, y)

2009-06-20 Thread Vincent Davis
# Clamp a normal distribution outcome import random class applicant():     def __init__(self, x, y):     self.randomnum = clamp(random.normalvariate(x, y), 0, 100) def clamp(input, min=0, max=100):     Clamps the input between min and max.     if  input min, returns min    

Re: calculating a self.value, self.randomnum = normalvariate(x, y)

2009-06-20 Thread Vincent Davis
realize this is venturing more into statistics. Thanks Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list

Re: calculating a self.value, self.randomnum = normalvariate(x, y)

2009-06-20 Thread Vincent Davis
is the way to go. Trying to combine learning python and simulating the medical residency application process has been interesting. Here is a graph of past test results, I relize they are not on a 0 - 100 score but they is easy to address [image: step1_score_distribution_custom.GIF] Thanks Vincent

python needs a tutorial for install and setup on a Mac

2009-06-21 Thread Vincent Davis
I am running python on a mac and when I was getting going it was difficult to setup information. Specifically how modify bash_profile, how pythonpath works and how to set it up. how to switch between python versions. How/where to install modules if you have multiple installed versions. I am

Re: python needs a tutorial for install and setup on a Mac

2009-06-22 Thread Vincent Davis
tkp...@hotmail.com wrote: I think a setup guide for the Mac would prove very useful. Earlier this year, I tried installing Python 2.6 on my iMac, and ran into all sorts of problems, largely as a result of the fact that I knew very little about Unix. I finally downloaded and installed the

lambda question

2010-06-11 Thread Vincent Davis
Starting with an example. In [23]: x = [1,2,3,4,4,4,5,5,3,2,2,] In [24]: y = set(x) In [25]: y Out[25]: set([1, 2, 3, 4, 5]) In [26]: y2 = len(set(x)) In [27]: y2 Out[27]: 5 How would I do the above y2 = len(set(x)) but have len(set()) in a dictionary. I know how to do .. In [30]: d = dict(s=set)

Re: lambda question

2010-06-12 Thread Vincent Davis
On Fri, Jun 11, 2010 at 10:11 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, Jun 11, 2010 at 9:31 PM, Vincent Davis vinc...@vincentdavis.net wrote: Starting with an example. In [23]: x = [1,2,3,4,4,4,5,5,3,2,2,] In [24]: y = set(x) In [25]: y Out[25]: set([1, 2, 3, 4, 5]) In [26]: y2

getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Vincent Davis
I just installed 2.6 and 3.1 from current maintenance source on Mac OSx. When I am running as an interactive terminal session the up arrow does not scroll thought the history of the py commands I have entered I just get ^[[A. When I install from a compiled source it works fine. Whats the fix for

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Vincent Davis
On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno gr...@verizon.net wrote: sounds like your keymapping got messed with. you could just: set -o vi python ESC, Ctrl-j and now ESC-k and ESC-j will take you back and forth in history (std vi editing) This is done within python? Let make sure I am

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Vincent Davis
On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong irmen-nosp...@xs4all.nl wrote: On 14-6-2010 1:19, Vincent Davis wrote: I just installed 2.6 and 3.1 from current maintenance source on Mac OSx. When I am running as an interactive terminal session the up arrow does not scroll thought the history

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Vincent Davis
On Mon, Jun 14, 2010 at 6:49 AM, Thomas Jollans tho...@jollans.com wrote: On 06/14/2010 02:37 PM, Vincent Davis wrote: On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong irmen-nosp...@xs4all.nl wrote: On 14-6-2010 1:19, Vincent Davis wrote: I just installed 2.6 and 3.1 from current maintenance

Installing or adding python dev installed python.

2010-06-19 Thread Vincent Davis
I have several versions of python installed and some I have built from source which seems to install the python-dev on osx. I know that on ubuntu python-dev is an optional install. The main python version I use is the enthought distribution. Can I install the python-dev tools with this? How. It

Python script to install python

2010-07-08 Thread Vincent Davis
I would like to have a python script that would download the most recent svn of python, configure, make, install and cleanup after itself. I am not replacing the python version I would be using to run the script. I was struggling to get this to work and I assume someone else has done it better.

Re: Python script to install python

2010-07-08 Thread Vincent Davis
On Thu, Jul 8, 2010 at 9:11 AM, Daniel Fetchinson fetchin...@googlemail.com wrote: I would like to have a python script that would download the most recent svn of python, configure, make, install and cleanup after itself. I am not replacing the python version I would be using to run the

Setting a python application as the default app to open a file on a mac?

2010-04-25 Thread Vincent Davis
a solution using automator. http://superuser.com/questions/134594/set-default-open-with-app-to-a-python-program-on-a-mac I am asking the question on this list to see if there is another (better?) way. python32 is an terminal alias to the 32 bit python version on my machine. *Vincent Davis 720-301

Simple game like graphics

2010-04-27 Thread Vincent Davis
a tutorial/documentation you would recommend. Thanks *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis -- http://mail.python.org/mailman/listinfo/python-list

Bug Search Browser Plugin (Firefox)

2010-04-30 Thread Vincent Davis
The Bug Search Browser Plugin (Firefox) http://python.org/dev/searchplugin does not seem to install. http://www.python.org/dev/searchplugin/ *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis -- http

Re: jpeg package

2010-05-01 Thread Vincent Davis
This gets you the cached page linkhttp://webcache.googleusercontent.com/search?q=cache:Tjn4WG8auGIJ:www.emilas.com/jpeg/+http://www.emilas.com/jpeg/cd=2hl=enct=clnkgl=usclient=firefox-a I also fond some of the source pages in googles cache *Vincent Davis 720-301-3003 * vinc

Encrypt password within source code.

2010-05-05 Thread Vincent Davis
though about openID but don't really know anything about it. *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis -- http://mail.python.org/mailman/listinfo/python-list

Re: Encrypt password within source code.

2010-05-05 Thread Vincent Davis
Thanks for the replies I though the answer was no. Vincent On Wed, May 5, 2010 at 7:48 PM, Tim Chase python.l...@tim.thechases.comwrote: On 05/05/2010 08:12 PM, Vincent Davis wrote: I can't think of a way to do this, not sure it is possible but I feel as though I might not know what I don't

2to3 as a unittest

2010-05-06 Thread Vincent Davis
I have used 2to3 from the command line. is there a way to run it as a unittest. Actually I guess my question is; is there a built in utility for running py3 compatibility on source code as a unittest? *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net

is there a functional assert(x==y, 'error msg')

2010-05-07 Thread Vincent Davis
Is there a functional assert(x==y, 'error msg') ? I can only find the assert that is used like; assert x==y, 'error msg' *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis -- http://mail.python.org/mailman

Re: is there a functional assert(x==y, 'error msg')

2010-05-07 Thread Vincent Davis
On Fri, May 7, 2010 at 8:38 PM, James Mills prolo...@shortcircuit.net.auwrote: On Sat, May 8, 2010 at 12:04 PM, Vincent Davis vinc...@vincentdavis.netwrote: Is there a functional assert(x==y, 'error msg') ? I can only find the assert that is used like; assert x==y, 'error msg' What

Re: Need help with my 1st python program

2010-05-08 Thread Vincent Davis
? You haven't assigned any value to it before calling urlopen. Therein lies the problem. -- http://mail.python.org/mailman/listinfo/python-list *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis -- http

Re: Access to comp.lang.python

2010-05-16 Thread Vincent Davis
. I would welcome advice. Colin W. -- http://mail.python.org/mailman/listinfo/python-list *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis -- http://mail.python.org/mailman/listinfo/python-list

Is this an ok thing to do in a class

2010-05-17 Thread Vincent Davis
') afoo.x 2 afoo.A 1 afoo.letter['a'] 1 afoo.letter.items() [('a', 1), ('c', 3), ('b', 2)] *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this an ok thing to do in a class

2010-05-18 Thread Vincent Davis
Thanks for the feed back Vincent On Tue, May 18, 2010 at 8:50 AM, Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote: Simon Brunning a écrit : On 18 May 2010 06:21:32 UTC+1, Vincent Davis vinc...@vincentdavis.net wrote: Just wondering if there is a problem with mixing

how to cause a request for a missing class attribute cause its calculation

2010-05-18 Thread Vincent Davis
. Thanks *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this an ok thing to do in a class

2010-05-18 Thread Vincent Davis
not. afoo.letter['a'] = 345 afoo.A 1 Thats kinda a bummer, whats a good way to make sure affo.A gets updated? Vincent ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp

Re: Is this an ok thing to do in a class

2010-05-18 Thread Vincent Davis
On Tue, May 18, 2010 at 3:15 PM, Ethan Furman et...@stoneleaf.us wrote: Vincent Davis wrote: What you are pointing out is that the assignment is not reversed . But that does make me thing of something I had not. afoo.letter['a'] = 345 afoo.A 1 Thats kinda a bummer, whats a good way

Re: sound effects in python

2010-05-18 Thread Vincent Davis
like to modify (e.g. change tempo, pitch, add echo, amplify, etc). Any recommendation on how I can achieve this in python independent of platform? Thanks -- http://mail.python.org/mailman/listinfo/python-list *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http

__str__ for each function in a class

2010-05-18 Thread Vincent Davis
= self.new*-1 return self._y ... print(class.x) x print(class.y) - y - *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp://www.linkedin.com/in/vincentdavis -- http://mail.python.org/mailman/listinfo

Re: Python Script for Website Mirroring

2010-05-19 Thread Vincent Davis
you please point me to a decent Python script(s) that I could customize to do automatic Website mirroring? Thanks Much! Kevin -- http://mail.python.org/mailman/listinfo/python-list *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http://vincentdavis.net | LinkedInhttp

Re: speed up a numpy code with huge array

2010-05-25 Thread Vincent Davis
],axis=0)[0] D=array([aa,bb,cc]) det=numpy.linalg.det(D) V[j+2] = abs(det)/6 pathV = pt + vtet savetxt(pathV, V, fmt='%.3e') ### -- http://mail.python.org/mailman/listinfo/python-list *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog http

Question about permutations (itertools)

2010-05-31 Thread Vincent Davis
As a note I am doing this in py3. I am looking for the most efficient (speed) way to produce an an iterator to of permutations. One of the problem I am having it that neither combinations nor permutations does not exactly what I want directly. For example If I want all possible ordered lists of

Re: Question about permutations (itertools)

2010-05-31 Thread Vincent Davis
On Mon, May 31, 2010 at 8:17 AM, Xavier Ho cont...@xavierho.com wrote: list(combinations_with_replacement('01',3)) ('0', '0', '0') ('0', '0', '1') ('0', '1', '1') ('1', '1', '1') Is it possible to get combinations_with_replacement to return numbers rather than strings? (see above)

Re: Python Jobs

2010-06-09 Thread Vincent Davis
On Wed, Jun 9, 2010 at 2:21 PM, Michael Chambliss em...@mchambliss.com wrote: I use Python for my own entertainment and for quick jobs, but haven't been able to use it professionally up to this point.  As a former Perl developer and someone that's currently required to code in Java I'm starting

Download an attachment from an IMAP email

2011-02-03 Thread Vincent Davis
, IMAP_PORT) rc, resp = M.login('x@', 'X') print rc, resp M.select('[Gmail]/All Mail') M.search(None, 'FROM', 'some...@logitech.com') #M.fetch(121, '(body[header.fields (subject)])') M.fetch(121, '(RFC822)') -- Thanks Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo

Re: Download an attachment from an IMAP email

2011-02-04 Thread Vincent Davis
hgc On Thu, Feb 3, 2011 at 6:52 PM, Kushal Kumaran kushal.kumaran+pyt...@gmail.com kushal.kumaran%2bpyt...@gmail.com wrote: On Fri, Feb 4, 2011 at 3:44 AM, Vincent Davis vinc...@vincentdavis.net wrote: I have a few emails I am trying to download from my google account. I seem

error in tutorial for 3.0, section 9.3.3

2009-05-23 Thread Vincent Davis
://docs.python.org/3.0/tutorial/classes.html#a-first-look-at-classes I am reading this section so to learn about classes but if this is right I think I need to start over. Thanks Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list

Re: error in tutorial for 3.0, section 9.3.3

2009-05-23 Thread Vincent Davis
let me add that I see that this could be right if x.counter = 1 and counter need not have anything to do with MyClass but this could be more clear. Thanks Vincent Davis 720-301-3003 On Sat, May 23, 2009 at 7:08 AM, Vincent Davis vinc...@vincentdavis.netwrote: Section 9.3.3 says that given

Re: error in tutorial for 3.0, section 9.3.3

2009-05-23 Thread Vincent Davis
: A simple example class i = 12345 counter = 1 def f(self): return 'hello world' Thanks again Vincent Davis On Sat, May 23, 2009 at 8:24 AM, Benjamin Kaplan benjamin.kap...@case.eduwrote: On Sat, May 23, 2009 at 9:13 AM, Vincent Davis vinc...@vincentdavis.netwrote: let

Re: import _sqlite3 no module named error

2009-06-04 Thread Vincent Davis
when I try to run his app I get the no module named _sqlite3 , I am not sure what this is caused by as it looks to me like sqlite3 is trying to import it. Any idea how to fix this? Other than the obvious of getting _sqlite3 somehow, or maby it is that simple  

Understanding and dealing with an exception

2012-10-13 Thread Vincent Davis
I am working on a script to find bad image files. I am using PIL and specifically image.verify() I have a set of known to be bad image files to test. I also what to be able to test any file for example a .txt and deal with the exception. Currently my code is basically try: im =

Re: Understanding and dealing with an exception

2012-10-13 Thread Vincent Davis
Oops, I was going to make note of the file size. 1.2MB Vincent On Sat, Oct 13, 2012 at 10:31 PM, Chris Angelico ros...@gmail.com wrote: On Sun, Oct 14, 2012 at 3:23 PM, Vincent Davis vinc...@vincentdavis.net wrote: OverflowError: Python int too large to convert to C long line 266

Re: Understanding and dealing with an exception

2012-10-13 Thread Vincent Davis
14, 2012 at 3:36 PM, Vincent Davis vinc...@vincentdavis.net wrote: Oops, I was going to make note of the file size. 1.2MB Then I'd definitely declare the file bad; I don't know what the valid ranges for channels and ysize are, but my reading of that is that your file's completely corrupt

Re: Understanding and dealing with an exception

2012-10-14 Thread Vincent Davis
Yes afile is the file name and extension, ifile is the full file name and path. Thanks Vincent On Sunday, October 14, 2012, MRAB wrote: On 2012-10-14 05:23, Vincent Davis wrote: I am working on a script to find bad image files. I am using PIL and specifically image.verify() I have a set

get each pair from a string.

2012-10-21 Thread Vincent Davis
I am looking for a good way to get every pair from a string. For example, input: x = 'apple' output 'ap' 'pp' 'pl' 'le' I am not seeing a obvious way to do this without multiple for loops, but maybe there is not :-) In the end I am going to what to get triples, quads... also. Thanks Vincent

  1   2   >