Re: Making a Label that looks the same as a button.

2006-06-13 Thread Andrew Gwozdziewycz
border thicker. > > How do I get the Label object to look just like the Button object? > > -- > http://mail.python.org/mailman/listinfo/python-list --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://23excuses.com | http://ihadagreatview.org | http://and.rovir.us -- http://mail.python.org/mailman/listinfo/python-list

Re: .py and running in Windows:

2006-06-13 Thread Andrew Gwozdziewycz
change the default .py extension to open in an editor rather > than execute it if I open it? > > Thanks: > Michael Yanowitz > > -- > http://mail.python.org/mailman/listinfo/python-list --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://23excuses.com | http://ihadagreatview.o

Re: clear memory? how?

2006-05-09 Thread Andrew Gwozdziewycz
n toplevel. On May 9, 2006, at 4:27 AM, N/A wrote: > Hi all, > I am learning Python. Just wondering how to clear saved memory in > Python? Like in Matlab I can simply use "clear all" to clear all saved > memory. > > Thank u! > -- > http://mail.python.

Re: how to remove 50000 elements from a 100000 list?

2006-05-05 Thread Andrew Gwozdziewycz
10) >>>> b=range(5) >>>> for x in b: > ... a.remove(x) > ... > it will very slowly. Shall I change to another data structure and > choos > a better arithmetic? > any suggestion is welcome. > thanks a lot! > > -- > http://mail.python.

Re: Method acting on arguements passed

2006-05-05 Thread Andrew Gwozdziewycz
guments: def getBook(id=None, name=None): if id: # do whatever for id elif name: # do whatever for name here They are nearly identical. --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://www.23excuses.com http://ihadagreatview.org http://and.rovir.us -- http://mail.python

Re: Python for Perl programmers

2006-05-04 Thread Andrew Gwozdziewycz
eintopython.org since you know how to program already. It's free! --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org http://and.rovir.us -- http://mail.python.org/mailman/listinfo/python-list

Re: Splitting a string with extra parameters

2006-04-06 Thread Andrew Gwozdziewycz
d. This would fail if (and this too my knowledge is proper CSV): "Col 1 data 2,000", Col 2 data 3000, "Col 3 data 4,000" Since the second element doesn't have a comma, it doesn't have to be quoted. It's probably best to use the built in CSV parser assuming your

Re: How to parse a name out of a web page?

2006-04-05 Thread Andrew Gwozdziewycz
- > http://mail.python.org/mailman/listinfo/python-list Surely, this is a task for http://nltk.sourceforge.net/ . Especially if you want high accuracy. --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org http://and.rovir.us -- http://mail.python.org/mailman/listinfo/python-list

Re: Counting all permutations of a substring

2006-04-05 Thread Andrew Gwozdziewycz
easiest way to do that is to just check to see if the probestring starts a string at the current index of the string... def count_proper_substrings_equal_to(target, probe): i = 0 count = 0 while i < len(target): if target[i:].startswith(probe):

Re: What's The Best Editor for python

2006-03-25 Thread Andrew Gwozdziewycz
grams( for linux or windows ) --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org http://and.rovir.us -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheese Shop -> BSOL?

2006-03-11 Thread Andrew Gwozdziewycz
a healthy language. I can read it and write it without going blind or crazy. Ok, maybe I'm pushing it here. >Better eggs.python.org. Would support the spread of the new file >format, too. eggs.python.org actually seems quite good to me. It'd be even cooler if we cou

Re: How to pop random item from a list?

2006-03-11 Thread Andrew Gwozdziewycz
he main reason I am answering your mail is because you may have > intended to > post on c.l.py] > > Regarding your enhancement, I don't see any use cases that aren't > handled by > random.sample() already. > > Regards, > Peter I can see a us

Re: Python Evangelism

2006-03-10 Thread Andrew Gwozdziewycz
s the intended name... If the community then decides on some standardized automated package management, I'm sure PyPI (cheese shop) would probably be the definitive repository. $ pypi install hello is much better than $ bluecheese install hello -- Andrew Gwozdziewycz

Re: Python Evangelism

2006-03-09 Thread Andrew Gwozdziewycz
g something with Ruby On Rails knows that ruby is the language behind it. Does some non programmer care? No. If some non-programmer decided to create a new web app, and his friend said, 'I hear django is quick and oh, it use's this really cool easy to learn language python,' What's the difference? Is calling it Python on Trees any different? The guy doesn't know what python on is, let alone why it's on trees? --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org http://and.rovir.us -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Evangelism

2006-03-09 Thread Andrew Gwozdziewycz
me. Python has a ton of good projects and a ton of users. What we don't have is ruby on rails and the web 2.0 crowd, and I say, who the hell cares? We have everything else. -- Andrew Gwozdziewycz <[EMAIL PROTECTED]> http://ihadagreatview.org http://plasticandroid.org -- http://mail.python.org/mailman/listinfo/python-list

Re: linux clipboard?

2006-03-07 Thread Andrew Gwozdziewycz
On Mar 7, 2006, at 10:00 PM, [EMAIL PROTECTED] wrote: > ah.. ok. > gnome it is. > > are there py commands for gnome? > Since gnome uses gtk, you're best bet would be to check the pygtk documentation --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org

Re: ANN: FreeImagePy 1.2.2

2006-02-16 Thread Andrew Gwozdziewycz
reeImage :-( . both freeimagepy and freeimage are released under the GPL, PIL is not. -- Andrew Gwozdziewycz <[EMAIL PROTECTED]> http://ihadagreatview.org http://plasticandroid.org -- http://mail.python.org/mailman/listinfo/python-list

Re: web crawler in python or C?

2006-02-16 Thread Andrew Gwozdziewycz
numerous posts about spiders. One interesting fact is that google itself starting with their spiders in python. http://www-db.stanford.edu/~backrub/google.html I'm _sure_ it'll work for you. -- Andrew Gwozdziewycz <[EMAIL PROTECTED]> http://ihadagreatview.org http://plasticandroid

Re: trapping errors in function call syntax

2006-02-13 Thread Andrew Gwozdziewycz
t; def func(dummy=None, a=1, b=2, c=3): > ... if dummy is not None: > ... raise TypeError("invalid call") > ... print a, b, c > > (but this is easier to trick). > > hope this helps! > > > > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Andrew Gwozdziewycz <[EMAIL PROTECTED]> http://ihadagreatview.org http://plasticandroid.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Twisted book opinions?

2006-02-09 Thread Andrew Gwozdziewycz
leaves off. I thought the O'Reilly book was pretty decent at describing how to setup a web application. It's not entirely complete, but I was able to piece together an application with a somewhat complex web application on top of it. Twisted made it quite easy. -- Andrew Gwozdziewycz <[EMAI

Re: Unable to get PIL to load jpeg images

2006-02-08 Thread Andrew Gwozdziewycz
n remember when compiling the PIL on my mac having to create a symbolic link to libjpeg.so.6 or something. It was bizarre but worked fine afterwards. -- Andrew Gwozdziewycz <[EMAIL PROTECTED]> http://ihadagreatview.org http://plasticandroid.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Natural Language Date Processing.

2006-02-07 Thread Andrew Gwozdziewycz
ther or not it'll perform well is another story... Thanks for the help. -- Andrew Gwozdziewycz <[EMAIL PROTECTED]> http://ihadagreatview.org http://plasticandroid.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python good for web crawlers?

2006-02-07 Thread Andrew Gwozdziewycz
ic webcrawler as a google desktop plugin called Kongulo (http://sourceforge.net/projects/goog-kongulo/) which is written in python. I would think python would be perfect for this sort of application. Your bottleneck is always going to be downloading the page. -- Andrew Gwozdziewycz <[EMAIL

Re: Natural Language Date Processing.

2006-02-07 Thread Andrew Gwozdziewycz
source of the php function and it manually parses it (i assume according to the GNU date rules). However, i'd prefer not to have to port the function to python if someone else has already done so, or has a more pythonic implementation. -- Andrew Gwozdziewycz <[EMAIL PROTECTED]> http:

Natural Language Date Processing.

2006-02-07 Thread Andrew Gwozdziewycz
k the standard date, datetime and time modules and also mx.Date* modules. Am I overlooking something here or does it not exist? Anyone know of an implementation? Also, I realize that this is perhaps very English specific so I apologize to any non-native English speakers. --- Andrew Gwozdziewycz [EM

Re: would it be feasable to write python DJing software

2006-02-03 Thread Andrew Gwozdziewycz
x27;re development time will be fast, and you will probably see some good results. -- Andrew Gwozdziewycz <[EMAIL PROTECTED]> http://ihadagreatview.org http://plasticandroid.org -- http://mail.python.org/mailman/listinfo/python-list

Geocoding and python

2005-10-08 Thread Andrew Gwozdziewycz
Does anyone know of a python module that can read and search the tiger line data for geolocation? Currently, I can use xmlrpc to query geocoder.us but I'd rather not be querying their server if I don't have to. Thanks --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatvie

Re: divide

2005-10-07 Thread Andrew Gwozdziewycz
between any point within Part I and Point A is > smaller than to Point B and Point C. And the similar rule applies > to Part II and Part III. > Thanks for any idea. > -- > http://mail.python.org/mailman/listinfo/python-list --- Andrew Gwozdziewycz [EMAIL PROTECTE

Re: Help with chaos math extensions.

2005-10-06 Thread Andrew Gwozdziewycz
tension, not an economical question about my programming environment.Well, since I don't use Windows XP, I did not know this fact. I wasn't trying to offend you or argue with you, I was just flat out curious why you had to go out and buy Visual Studio.---Andrew Gwozdziewycz[EMAIL PROTECTED]http

Re: semi-newbie module namespace confusion

2005-10-04 Thread Andrew Gwozdziewycz
oducing a huge number of inconsistencies.Plus, it's not broken to begin with. ---Andrew Gwozdziewycz[EMAIL PROTECTED]http://ihadagreatview.orghttp://plasticandroid.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Reply-To header

2005-10-03 Thread Andrew Gwozdziewycz
mart Mailboxes have made it at least possible to have a small number of actual folders and a large number of smart mailboxes, which is very nice.Anyone know of any good mailing list plugins for mail.app?-Andrew Gwozdziewycz[EMAIL PROTECTED]http://ihadagreatview.orghttp://plasticandroid.org --

Reply-To header

2005-10-03 Thread Andrew Gwozdziewycz
Is it just me, or does python-list@python.org not send with a Reply- To header? --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org http://plasticandroid.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Python based unacceptable language filter

2005-10-03 Thread Andrew Gwozdziewycz
ast that's what i got from the question. There are many PHP implementations on the web, which could be adapted to python fairly easily. Most of which are probably not the most ideal solution and involve alot of stuff like for n in badwords: texttofilter.replace(n, '&#x

Re: Nufox : Xul + Python

2005-10-02 Thread Andrew Gwozdziewycz
; Regards > > Salvatore > > -- > http://mail.python.org/mailman/listinfo/python-list > --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org http://plasticandroid.org -- http://mail.python.org/mailman/listinfo/python-list