"fork and exit" needed?

2006-11-27 Thread Vincent Delporte
Hi I'm a Python newbie, and would like to rewrite this Perl scrip to be run with the Asterisk PBX: http://www.voip-info.org/wiki/view/Asterisk+NetCID Anyone knows if those lines are necessary, why, and what their alternative is in Python? --- open STDOUT, '>/dev/null'; fork and exi

Reading GDSII layouts

2006-11-28 Thread Vincent Arnoux
Hello, I am looking for a library for reading GDSII layout files structures (hierarchy, cells names, ...). I found IPKISS (http://www.photonics.intec.ugent.be/research/facilities/design/ipkiss/default.htm), but it looks to be a generator and not a reader. Thank you, Vincent -- http

Re: "fork and exit" needed?

2006-11-28 Thread Vincent Delporte
On Tue, 28 Nov 2006 08:30:03 -0600, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >> import os,sys,time >> print "pre:", os.getpid() >> sys.stdout = open(os.devnull, 'w') >> print "post:", os.getpid() >> time.sleep(60) >> >> (Granted, I'm on WinXP; I also suspect the original stdout is still op

Re: Reading GDSII layouts

2006-11-29 Thread Vincent Arnoux
or a library that would display only cell references, and not load the entire design (what will be too time consuning with Python). And this doesn't look to be present in IPKiss. Vincent -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading GDSII layouts

2006-11-29 Thread Vincent Arnoux
; jr Well, if you know how to extract cell names and references from a GDSII layout, that would be usefull. Perhaps can you send me your code if you don't mind and I will try to do something from it ? Vincent -- http://mail.python.org/mailman/listinfo/python-list

Re: "fork and exit" needed?

2006-11-30 Thread Vincent Delporte
On Tue, 28 Nov 2006 04:30:09 -0600, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >I'm not sure how you do open stdout to /dev/null in python though! > >I suspect something like this... > > import posix > posix.close(1) > posix.open("/dev/null", posix.O_WRONLY) Thanks everyone, but no go :-/ Neith

Re: "fork and exit" needed?

2006-11-30 Thread Vincent Delporte
On Thu, 30 Nov 2006 15:38:11 +0100, Vincent Delporte <[EMAIL PROTECTED]> wrote: >Here's my Python rewrite: >http://codecomplete.free.fr/asterisk/python_cid.txt More information. Here's what Asterisk says when I call in: *CLI> -- Executing LookupCIDName("SIP/f

Re: "fork and exit" needed?

2006-11-30 Thread Vincent Delporte
On Thu, 30 Nov 2006 15:48:53 +0100, Vincent Delporte <[EMAIL PROTECTED]> wrote: >-- Launched AGI Script /var/lib/asterisk/agi-bin/ncid.python.agi >Failed to execute '/var/lib/asterisk/agi-bin/ncid.python.agi': Exec >format error Stupid me :-/ Forgot the all-important

Re: "fork and exit" needed?

2006-11-30 Thread Vincent Delporte
On Thu, 30 Nov 2006 10:18:24 -0500, "Mike C. Fletcher" <[EMAIL PROTECTED]> wrote: >which is how Linux knows what interpreter to use for the script. Thanks. That's what I found out after a bit more research. I didn't pay attention to this because it's not needed to run under Windows, and I was focu

Mod_python vs. application server like CherryPy?

2006-12-05 Thread Vincent Delporte
Hi I'm still a newbie when it comes to web applications, so would like some help in choosing a solution to write apps with Python: What's the difference between using running it through mod_python vs. building an application server using Python-based tools like CherryPy, Quixote, Draco, etc.? Tha

Re: Mod_python vs. application server like CherryPy?

2006-12-06 Thread Vincent Delporte
On 5 Dec 2006 17:05:06 -0800, "fumanchu" <[EMAIL PROTECTED]> wrote: >In a nutshell, mod_python gives you >access from Python to the Apache API, whereas CherryPy and friends give >you their own API. I didn't know Apache had an API of its own, or that it was even needed when writing a web applicatio

Re: Mod_python vs. application server like CherryPy?

2006-12-06 Thread Vincent Delporte
On 6 Dec 2006 14:55:58 -0800, "Graham Dumpleton" <[EMAIL PROTECTED]> wrote: >Although WSGI is an extreme case because of the level it pitches at, >other systems such as CherryPy and Django aren't much different as they >effectively duplicate a lot of stuff that could be achieved using more >basic f

Re: Mod_python vs. application server like CherryPy?

2006-12-06 Thread Vincent Delporte
On 6 Dec 2006 16:32:14 -0800, "Graham Dumpleton" <[EMAIL PROTECTED]> wrote: >Getting perhaps back to the answer you were seeking right back at the >start, that is if you are new to web application and development and >Python, then you may well be better of just using a higher level >framework as th

Re: Good Looking UI for a stand alone application

2006-12-17 Thread Vincent Delporte
On Sun, 17 Dec 2006 09:37:04 +0100, [EMAIL PROTECTED] (Luc Heinrich) wrote: >Crossplatform toolkits/frameworks suck. All of them. No exception. If >you want your app to look *AND* feel great on all platform, abstract the >core of your application and embed it in platform native GUI code. +1. Appli

Re: Good Looking UI for a stand alone application

2006-12-17 Thread Vincent Delporte
On Mon, 18 Dec 2006 01:23:10 +0100, Christophe Cavalaria <[EMAIL PROTECTED]> wrote: >They use QT. Back to read the first part of your post. It doesn't make much difference: - QT is big, so even small apps carry a lot of baggage - by not using the native widgets, you're dependent on that layer to

Re: Good Looking UI for a stand alone application

2006-12-18 Thread Vincent Delporte
On 17 Dec 2006 21:20:14 -0800, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >You could write it as a web app, with an executable which launches the >server and points a browser at it. Right, I was thinking of this too, but since the OP was talking of a fat app... >Python GUI work is a bit of a

Re: Good Looking UI for a stand alone application

2006-12-20 Thread Vincent Delporte
On Tue, 19 Dec 2006 08:15:18 -0600, "Chris Mellon" <[EMAIL PROTECTED]> wrote: >There's a few more caveats I haven't addressed, and there are places >where wx isn't perfect. BTW, do you know of a good article/book on writing cross-platform GUI apps, with recommendations, pitfalls, etc. especially

Re: How do I tell if I'm running in the PyWin interpreter?

2006-01-28 Thread vincent wehren
ndle it | separately on initialization so I get a real raw input and not the | redefined Tkinter version. | import sys import os if os.path.basename(sys.executable) == 'Pythonwin.exe': #Pythonwin specific initialization else: #Other HTH, Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: [Errno 9] Bad File Descriptor on Windows 2003 Server & Py 2.4.1

2005-05-03 Thread vincent wehren
at the rest of script: Try using either escaped backslashes as in: a = os.stat('C:\\WINDOWS\\System32\\config\\%s' %log) or a raw string (as long as it doesn't end with a single backslash) as in: a = os.stat(r'C:\WINDOWS\System32\config\%s' %log) or simply use forward sla

Re: trouble with lists

2005-05-03 Thread vincent wehren
same type as s). Note also that the copies are shallow; nested structures are not copied. This often haunts new Python programmers; consider: >>> lists = [[]] * 3 >>> lists [[], [], []] >>> lists[0].append(3) >>> lists [[3], [3], [3]]"""etc. -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for Example of wxFontEnumerator Use

2005-05-05 Thread vincent wehren
ou should. You can get your version from http://wxpython.org/download.php. Regards, -- Vincent Wehren | | Thanks, | | Weston | -- http://mail.python.org/mailman/listinfo/python-list

Re: a cx_Oracle ORA-01036 problem

2005-05-05 Thread vincent wehren
kd, INVOICE_DATE=datum_g, | PAYMENT_DEADLINE=datum_d, POINTS=bodovi) |c = db.cursor() |c.execute(SQL, **args) Shouldn't that be c.execute(SQL, args) (no **-unpacking of the dictionary)? -- Vincent Wehren | Same thing. | | Everything works If I use python string subst

Re: computer unable to load _pysvn.pyc

2005-05-08 Thread vincent wehren
heck if the .dll has any dependencies that are not present on the host system (using depends.exe for example) -- i.e. function calls that are not supported. -- Vincent Wehren | note this is py2exe package made on a windows xp system | -- http://mail.python.org/mailman/listinfo/python-list

Re: Proxy Design Advice Needed

2005-05-11 Thread vincent wehren
. > So, what do you think of this code and how should I improve it? > > Thanks a lot for your help! > > -Matthias This may be help: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/366254 -- Vincent Wehren > > > Code (just copy and pasts and it should run): > &g

Re: Multiple "cmp"s chained one after another

2005-05-14 Thread vincent wehren
12, 3) d3 = datetime.date(2002, 12, 6) d4 = datetime.date(1977, 12, 7) dates =[d1,d2,d3,d4] datesNorm = [obj.replace(year=1900) for obj in (dates)] datesNorm.sort() print datesNorm # etcetera HTH, --- Vincent | | This implementation of cmp_birthdays is very ugly. Image you want to | chain mor

Re: Multiple "cmp"s chained one after another

2005-05-14 Thread vincent wehren
"Volker Grabsch" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | vincent wehren wrote: | > | > If you don't care about the year, why not just "normalize" the year | > to all be the same using the replace method of the date instance? |

Re: iso_8859_1 mystery/tkinter

2005-05-18 Thread vincent wehren
port Tkinter root = Tkinter.Tk() t = Tkinter.Text() t.pack() t.insert(0.0, '%c' % 0xb0) root.mainloop() which shows a vertical bar in the Text widget. Changing: t.insert(0.0, '%c' % 0xb0) to t.insert(0.0, u'%c' % 0xb0) should do the trick though. -- Regards, Vincent Wehren | | Regards, | Martin | -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread vincent wehren
application are properties that need to be matched the language(s) of choice, as well. Again, here Python is a more than serious contender. Regards, -- Vincent Wehren | The big attraction to me is the developer productivity. It seems that | if Python can handle it, then we could gain a

Re: install python 2.4.1

2005-05-22 Thread vincent wehren
) or komodo ide ? Don't know.. -- Vincent Wehren | | | pujo | -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem redirecting stdin on Windows

2005-05-25 Thread vincent wehren
list/2004-August/024920.html -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: need help of RE

2005-05-29 Thread vincent wehren
(Word2|woRd3)" parts = re.split('\W+', s) print [p for p in parts if p] -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Intellisense and the psychology of typing

2005-05-29 Thread Vincent Foley
I have rapidly skimmed over the few responses here. Auto completion is definitly possible in dynamic languages: Common Lisp has it with its Emacs mode, SLIME. If you're in a slime buffer, you type (get-un then press C-c Tab and Emacs will auto-complete with (get-universal-time), if there are many

Re: Python Exercises for Newbee

2005-05-30 Thread vincent wehren
ndows admin, you may also be interested in looking at Tim Golden's Python Stuff: http://tgolden.sc.sabren.com/python/index.html Enjoy! -- Vincent Wehren | | I appreciate if any one can give me such exersices or any link for the | same. | | | Thank You , | Kanthi Kiran | -- http://ma

Re: DB API 2.0 and transactions

2005-06-07 Thread vincent wehren
languages" *must* be doing something wrong! ;) ( Auto-commit set to "on" perhaps? ) Regards, - Vincent Wehren | -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get/set class attributes in Python

2005-06-12 Thread vincent wehren
27;m sure you know that has become a no-no in Python 2.4+ ;) >>> None = 1 SyntaxError: assignment to None >>> -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Getting web page throught a proxy (squid)

2007-09-27 Thread Vincent Sabard
salut jean-paul, comment vas-tu ? vincent sabard.-- http://mail.python.org/mailman/listinfo/python-list

Code reformater?

2007-01-19 Thread Vincent Delporte
Hello When I copy/paste Python code from the web, every so often, the TABs are wrong, which means that the code won't work and I have to manually reformat the code. Is there a code reformater that can parse the code to make it right? Thanks. -- http://mail.python.org/mailman/listinfo/py

Re: Code reformater?

2007-01-21 Thread Vincent Delporte
On Sun, 21 Jan 2007 14:15:46 +1100, Steven D'Aprano <[EMAIL PROTECTED]> wrote: >Still, it is better not to lose the indentation in the first place. Thanks for the tips. But it does happen when copy/pasting code from either a web page or an e-mail that TABs are messed up, which is not a problem wit

instead of reading cookies (plan B)

2007-12-11 Thread Vincent Hirth
I was just thinking of an alternative to reading cookies directly - at least in my case. What if I create a PHP file that contains the cookies in 2 lines, such as this? Myusername Mypassword What would the python script look like if I wanted to open the file and put the 2 values in vari

Re: Building Python (2.4.x) with Visual C++ 2005 Express Edition?

2006-05-06 Thread Vincent Wehren
ceforge.net/tracker/index.php?func=detail&aid=1350409&group_id=5470&atid=305470 which apparently has been applied to 2.5a2 - which started fine after building debug. Maybe this helps? Regards, Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

WebDAV client module

2009-01-13 Thread Vincent Gulinao
Kindly point me to a good WebDAV client module for Python. Looks like PyDav is popular, but it seems some of the modules used within were already deprecated. TIA. -- http://mail.python.org/mailman/listinfo/python-list

Re: WebDAV client module

2009-01-13 Thread Vincent Gulinao
Um.. and I can't seem to find any sample code of it around. Can anybody share a simple snippet of how to use it? I don't understand what's URI in PutFile method is suppose to be. TIA. On Tue, Jan 13, 2009 at 8:03 PM, Vincent Gulinao wrote: > Kindly point me to a good WebDAV

understanding nested lists?

2009-01-24 Thread Vincent Davis
sublist. here is the code I have. All the printed values are what I would expect except that all sublist values are replaced. Thanks for your help Vincent on the first iteration I get ; new_list [[None, 0, 1, None], [None, 0, 1, None], [None, 0, 1, None], [None, 0, 1, None], [None, 0, 1, None], [None, 0

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 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 se

print formating for matrix/table

2009-01-26 Thread Vincent Davis
ne. I 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
best solution, convert the list to an array before printing? Thanks Vincent Davis On Mon, Jan 26, 2009 at 5:23 PM, Robert Kern 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 ni

Re: print formating for matrix/table

2009-01-26 Thread Vincent Davis
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 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
yurl=urllib.urlopen(http://...). can I use the myurl as the string in a RE, thenum=pid.match(myurl) Thanks Vincent -- http://mail.python.org/mailman/listinfo/python-list

regular expression, help

2009-01-27 Thread Vincent Davis
yurl=urllib.urlopen(http://...). can I use the myurl as the string in a RE, thenum=pid.match(myurl) Thanks Vincent -- http://mail.python.org/mailman/listinfo/python-list

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 wrote: > On 2009-01-27, Bruno Desth

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 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 Vincen

Re: change syntax coloring in IDLE

2009-01-27 Thread Vincent Davis
Applet.app Mayavi.terminal Docs Pylab.terminal Examples Python Launcher.app Extras Update Shell Profile.command IDLE.app Then I do/get vincent-daviss-macbook-pro:EPD with Py2.5 4.0.30002 vmd$ IDLE.app -bash: IDLE.app: command not found Not sure what I am doing wrong Is the a way do download a new version o

Re: change syntax coloring in IDLE

2009-01-27 Thread Vincent Davis
using terminal and opening"In 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 wrote: > On 2009-01-27 13:40, Ned Deily wrot

program organization question

2009-01-28 Thread Vincent Davis
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.o

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 wrote: > On 2009-02-02 12:08, Vincent Davis wrote: >> >> Currently I am using the following: >> pgrades = [scipy.perce

Use list name as string

2009-02-04 Thread Vincent Davis
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 wrote: > 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. >> > > Witho

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 wrote: > I know nothing but that sucks

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 wrote: > 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 ent

Re: Use list name as string

2009-02-04 Thread Vincent Davis
programing in python 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

Re: Use list name as string

2009-02-04 Thread Vincent Davis
elist): "magic occurs" 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

Re: Use list name as string

2009-02-04 Thread Vincent Davis
my current knowledge. Any suggestions for reading about this? Thanks Vincent Davis On Wed, Feb 4, 2009 at 8:24 PM, Jervis Whitley wrote: > On Thu, Feb 5, 2009 at 3:57 AM, Vincent Davis > wrote: > > Sorry for not being clear > > I would have something like this > > x = [1, 2,

return multiple objects

2009-02-05 Thread Vincent Davis
ere 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 wrote: > On Fri, 06 Feb 2009 03:03:01 -0000, 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, 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, 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. &

Re: Spam

2009-02-12 Thread Vincent Davis
ally be reviewed? Thanks Vincent Davis On Thu, Feb 12, 2009 at 12:42 PM, Terry Reedy wrote: > Terry Reedy wrote: > >> andrew cooke wrote: >> >>> A quick search on "imap nntp" turned up this list that might be useful - >>> http://deflexion.com/messag

Above and beyond, A critique request

2009-02-15 Thread Vincent Davis
pplicant is not qualified - 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.

Re: illegal list name

2009-02-15 Thread Vincent Davis
n. Thanks Vincent Davis On Sun, Feb 15, 2009 at 5:24 PM, Sandra Quiles wrote: > > 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, Ma

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

2009-02-20 Thread Vincent Davis
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 wrote: > anyone interested in looking at the following problem. > > we are trying to express numbers as minimal expressions using

read csv error question

2009-02-23 Thread Vincent Davis
it. I don't what to change 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
n see anything about "rb" but I might just be really blind. Thanks again Vincent Davis On Mon, Feb 23, 2009 at 4:52 PM, Benjamin Kaplan wrote: > > > On Mon, Feb 23, 2009 at 6:43 PM, MRAB wrote: > >> Vincent Davis wrote: >> >>> I am trying to rea

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 wrote: > > > On Mon, Feb 23, 2009 a

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
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/listi

Re: help understanding class or function

2009-03-05 Thread Vincent Davis
example. Thanks Vincent Davis 720-301-3003 On Thu, Mar 5, 2009 at 5:13 PM, Gabriel Genellina wrote: > 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] >&g

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 wrote: > Muddy Coder schrieb: > > Hi Folks, > > > > If I have a python file foo.py in the current directory, I can simply > > import it

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

2009-03-17 Thread Vincent Davis
/www.engadget.com/2009/03/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

error in tutorial for 3.0, section 9.3.3

2009-05-23 Thread Vincent Davis
r) del x.counter will print 16 link, http://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 wrote: > Section 9.3.3 says that given, > class M

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 wrote: > > > On Sat, May 23, 2009 at 9:13 AM, Vincent Davis &g

import _sqlite3 no module named error

2009-06-04 Thread Vincent Davis
/Versions/2.5/lib/python2.5/sqlite3/dbapi2.py", line 27, in from _sqlite3 import * ImportError: No module named _sqlite3 logout Thanks Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list

Re: import _sqlite3 no module named error

2009-06-04 Thread Vincent Davis
you are using the MacPorts python2.5. > Try: > >    sudo port install py25-sqlite3 > > which will bring along sqlite3 if not already installed. Yes I am using macports I think sqlite is installed? here is what I get when I run sudo port install py25-sqlite3 vincent-daviss-macbook

Re: import _sqlite3 no module named error

2009-06-04 Thread Vincent Davis
On Thu, Jun 4, 2009 at 1:41 PM, Ned Deily wrote: > In article > <77e831100906041151g70868dbre1546cdb01082...@mail.gmail.com>, >  Vincent Davis wrote: >> Yes I am using macports I think sqlite is installed? here is what I >> get when I run >> sudo port install

How to develop a python application?

2009-06-04 Thread Vincent Davis
is a very brief explanation. There are several examples of similar python projects, but not web based. Granola pygarmin garmin-sync The closest web based example would be Training Peaks http://home.trainingpeaks.com/personal-edition/training-log-and-food-diary.aspx Thanks Vincent Davis 720-301-300

RE: About printing in IDLE?

2006-03-09 Thread Kelly Vincent
>Installed Python 2.4.2 on Windows XP. >Activated IDLE. >Loaded the following to the Edit window: >--- >print "hello world" >for i in range(10): > print i, > >print "Done" >--- >It prints as: 0 1 2 3 4 5 6 7 8 9 Done >Should not Done be printed on a new line alone? >Thanks for any guidance

Re: Getting .NET SDK to work with Python 2.4.2

2006-03-19 Thread Vincent Wehren
extensions | with mingw32? | I used the free MS Visual C++ Toolkit 2003 successfully to compile extenstions before I had access to VS. There's a how to here: http://www.vrplumber.com/programming/mstoolkit/ Regards, Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: How to check if a directory is exist in python?

2006-03-19 Thread Vincent Wehren
rg/lib/module-os.path.html} | | And why mkdir fails if the directory already exists? If you prefer a "more friendly" approach you may wanna take a look at Trent Mick's _mkdir which is located at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82465 | Regards, Vincen

Re: How to check if a directory is exist in python?

2006-03-19 Thread Vincent Wehren
"Vincent Wehren" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | <[EMAIL PROTECTED]> wrote in message | news:[EMAIL PROTECTED] ||I check the documentation here, but it does not say how to check if a || directory is exist in python? || http://docs.python.or

Re: Getting .NET SDK to work with Python 2.4.2

2006-03-19 Thread Vincent Wehren
"Dave" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | So this means that I have to download .NET 1.1 SDK. Visual Studio 8 | comes with msvcrt.lib, but im assuming it's the wrong version. | Yes, I'd say so. -- Vincent Wehren -- http://mail.python.o

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> | LinkedIn<http://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> | LinkedIn<http://www.linkedin.com/in/vincentdavis> On Wed, Dec 2, 2009 at 10:20 AM, sturlamolden wrote: > On 2 Des, 15:28, David Robinow

Re: is None or == None ?

2009-11-10 Thread Vincent Manis
On 2009-11-10, at 07:46, Grant Edwards wrote: > MacOS applications made the same mistake on the 68K. They > reserved the high-end bits At the time the 32-bit Macs were about to come on the market, I saw an internal confidential document that estimated that at least over 80% of the applications

Re: is None or == None ?

2009-11-10 Thread Vincent Manis
On 2009-11-10, at 19:07, Steven D'Aprano wrote: > On Tue, 10 Nov 2009 16:05:01 -0800, Vincent Manis wrote: > That is incorrect. The original Inside Mac Volume 1 (published in 1985) > didn't look anything like a phone book. The original Macintosh's CPU (the > Motorola

Re: is None or == None ?

2009-11-10 Thread Vincent Manis
On 2009-11-10, at 22:07, Vincent Manis wrote: > On 2009-11-10, at 19:07, Steven D'Aprano wrote: >> In fact, in Inside Mac Vol II, Apple explicitly gives the format of >> pointers: the low-order three bytes are the address, the high-order byte >> is used for flags: bit

<    1   2   3   4   5   6   >