Announce: WHIFF 1.1 Release

2011-03-17 Thread Aaron Watters
cks http://whiffdoc.appspot.com/docs/W1100_2200.TreeView Google App Engine compatibility http://whiffdoc.appspot.com/docs/W1100_2300.GAEDeploy And much more. Please try it out and let me know what you think. Also, thanks to all for suggestions and other feedback. -- Aaron Watters === This one goes

Re: Pdf download using mechanize

2010-07-06 Thread Aaron Watters
ge.net/mechanize/doc.html It looks like downloading any sort of file and saving it should be straightforward to me, but I haven't tried it. Aaron Watters http://whiffdoc.appspot.com === % man less less is more. -- http://mail.python.org/mailman/listinfo/python-list

Re: I strongly dislike Python 3

2010-06-28 Thread Aaron Watters
thon in favor of a less chaotic platform, like Java or C# or even (got help us) Perl. I apologize if I pontificate. -- Aaron Watters -- http://mail.python.org/mailman/listinfo/python-list

Re: I wander which is better? JSP or Python? And is there a place for JSP?

2010-06-28 Thread Aaron Watters
regular expressions and such. It's very easy to understand, develop, debug. This is why I wrote WHIFF to use a similar but generalized "drop in" paradigm. http://whiffdoc.appspot.com -- Aaron Watters === % man less less is more. -- http://mail.python.org/mailman/listinfo/python-list

Re: mysql query results to web page

2010-06-22 Thread Aaron Watters
I scripting. I also had to mess with some directory permissions because my MySQLdb on my Mac in inside a Python Egg... to get around these sorts of problems you may have to look at your server error log. Also please see the WHIFF quickstart for a discussion of setting up a WSGI/WHIFF based CGI script. Good luck! -- Aaron Watters === % man less less is more. -- http://mail.python.org/mailman/listinfo/python-list

conceptual model diagram builder

2010-06-22 Thread Aaron Watters
source at this link. http://code.google.com/p/whiff/source/browse/#hg/trunk/test/root/schema Let me know what you think. If you want to get the source you will have to clone the google code mercurial archive (it isn't part of the whiff release yet). -- Aaron Watters === This

Announcing: WHIFF 1.0

2010-06-05 Thread Aaron Watters
eploy And much more. Please try it out and let me know what you think -- Aaron Watters === This one goes to eleven. -- http://mail.python.org/mailman/listinfo/python-list

Re: CGI templating with python

2010-04-02 Thread Aaron Watters
out the test drive. http://whiffdoc.appspot.com/docs/W.intro -- Aaron Watters === This one goes to 11. -- http://mail.python.org/mailman/listinfo/python-list

Re: regex object limitations/behavior for large regexes?

2009-12-30 Thread Aaron Watters
Sorry, I should have looked harder. I found this: http://bugs.python.org/issue1160 It looks exactly like my use case. drat. -- Aaron Watters http://whiffdoc.appspot.com === less is more. -- http://mail.python.org/mailman/listinfo/python-list

regex object limitations/behavior for large regexes?

2009-12-30 Thread Aaron Watters
very large? Do they remain as fast? Do they display reasonable (linear or n log n) memory growth? Do they just stop working at some point? Please reply if you have any experience with very large regexes or other insights. Thanks in advance. -- Aaron Watters === less is more --

Re: Moving from PHP to Python. Is it Possible

2009-12-29 Thread Aaron Watters
than full > academic description. http://whiffdoc.appspot.com (again) there are lots and lots of examples. I hope you like it and have a happy new year! -- Aaron Watters === my resolution last year was not to make any resolutions this year. -- http://mail.python.org/mailman/listinfo/python-list

wave robot notes

2009-12-23 Thread Aaron Watters
using wave, please add it to a wave and try it out. It should "respond" to a BNF rule you type in like this one: program ::= "begin" (statement ";")+ "end" $$ Happy Holidays everyone... I'm off to the slopes :). -- Aaron Watters === an apple ev

Re: ANN: WHIFF.0.7 += GAE + jQueryUI + internationalization + testdrive = (last beta?)

2009-12-10 Thread Aaron Watters
gh for you? :) You are now immortalized in the WHIFF repository http://aaron.oirt.rutgers.edu/cgi-bin/whiffRepo.cgi/rev/6d8c650102dd Please let me know if anything else offends your sensibilities. Thanks again, -- Aaron Watters === an apple every 8 hours will keep 3 doctors away. -- kliban -- http

Re: a huge shared read-only data in parallel accesses -- How? multithreading? multiprocessing?

2009-12-09 Thread Aaron Watters
or Python or any other programming language. Generally you can always get to any piece of data in about 4 seeks at most anyway, so if your disk is fast your app will be fast too. The file can be accessed concurrently without problems by any number of processes or threads. -- Aa

Re: ANN: WHIFF.0.7 += GAE + jQueryUI + internationalization + testdrive = (last beta?)

2009-12-09 Thread Aaron Watters
On Dec 9, 1:48 pm, Terry Reedy wrote: > Aaron Watters wrote: > > Also the WHIFF documentation is now hosted on Google App > > Engine at thehttp://whiffdoc.appspot.com/domain. > > When I went there and clicked on the "scatter chart is generated by a > straightforwa

ANN: WHIFF.0.7 += GAE + jQueryUI + internationalization + testdrive = (last beta?)

2009-12-09 Thread Aaron Watters
lemented on Google App Engine using WHIFF. I hope you like. -- Aaron Watters === Talk low. Talk slow. And don't say a lot. -- John Wayne's advice to Clint Eastwood -- http://mail.python.org/mailman/listinfo/python-list

Re: High-performance Python websites

2009-12-06 Thread Aaron Watters
/ and here http://listtree.appspot.com/ I hope that helps. -- Aaron Watters === an apple every 8 hours will keep 3 doctors away. -kliban -- http://mail.python.org/mailman/listinfo/python-list

Re: python simply not scaleable enough for google?

2009-11-20 Thread Aaron Watters
Comparing language platforms using small numeric benchmarks often completely misses the point. -- Aaron Watters http://whiffdoc.appspot.com http://listtree.appspot.com === an apple every 8 hours will keep 3 doctors away. - kliban -- http://mail.python.org/mailman/listinfo/python-list

Re: python simply not scaleable enough for google?

2009-11-17 Thread Aaron Watters
speaking someone should invite Matt Mackall to give a Python conference keynote. Or how about Bram Cohen for that matter... -- Aaron Watters http://listtree.appspot.com/ === if you want a friend, get a dog. -Truman -- http://mail.python.org/mailman/listinfo/python-list

Re: wsgi with separate css file

2009-11-13 Thread Aaron Watters
om/ service is implemented using WHIFF under the Google App Engine environment. -- Aaron Watters === TO INFINITY... AND BEYOND! -- http://mail.python.org/mailman/listinfo/python-list

Re: python simply not scaleable enough for google?

2009-11-13 Thread Aaron Watters
running on my laptop is *much* faster. By the way: the GO language smells like Rob Pike, and I certainly hope it is more successful than Limbo was. Of course, if Google decides to really push it then it's gonna be successful regardless of all other considerations, just like Sun did to

graceful degradation : is it degrading?

2009-11-02 Thread Aaron Watters
le javascript if you want to use this page..." What is the state of best-practices and such? -- Aaron Watters === she was dirty, flirty / musta been about thirty... Stones '60s she was shifty, nifty / musta been about fifty... Stones '90s (what rhymes with 80?) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python library "support" propaganda lists?

2009-10-30 Thread Aaron Watters
On Oct 30, 12:51 pm, Robert Kern wrote: > On 2009-10-30 11:31 AM, Aaron Watters wrote: > > > I know this may be due to simple laziness and negligence, > > but in that case they should turn moderation off. > > That's the funny thing about mailing list problems. I

Re: Python library "support" propaganda lists?

2009-10-30 Thread Aaron Watters
in particular -- I'm just making a general observation. Maybe as Robert suggests I will try comp.lang.python as a fall back after a few days of nonresponsiveness in the future... -- Aaron Watters http://aaron.oirt.rutgers.edu/myapp/docs/W1100_2200.TreeView === "I'm

Python library "support" propaganda lists?

2009-10-30 Thread Aaron Watters
line RTFM reply to the poster. There, I feel better now. -- Aaron Watters http://aaron.oirt.rutgers.edu/myapp/docs/W1100_1600.openFlashCharts === If you think you are smart enough to write multi-threaded programs, then you're not.-- Jim Ahlstrom -- http://mail.python.org/mailman/listinfo/python-list

Re: Web development with Python 3.1

2009-10-27 Thread Aaron Watters
I built WHIFF :). http://aaron.oirt.rutgers.edu/myapp/docs/W1100_2200.TreeView -- Aaron Watters === If all you got is lemons, make lemonade. -- anon. -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: WHIFF += Mako & treeview & url rewrites

2009-10-27 Thread Aaron Watters
On Oct 27, 8:16 am, Aaron Watters wrote: > On Oct 27, 8:02 am, alex23 wrote: > > > If you need a full traceback, let me know. > > Well, yes, the bottom of the traceback would be more useful :). > >    -- Aaron Watters Alex sent me the traceback (thanks!) and after con

Re: ANN: WHIFF += Mako & treeview & url rewrites

2009-10-27 Thread Aaron Watters
On Oct 27, 8:02 am, alex23 wrote: > If you need a full traceback, let me know. Well, yes, the bottom of the traceback would be more useful :). -- Aaron Watters -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: WHIFF += Mako & treeview & url rewrites

2009-10-27 Thread Aaron Watters
Paul Boddie wrote: > On 27 Okt, 03:49, Aaron Watters wrote: ... > > http://aaron.oirt.rutgers.edu/myapp/GenBankTree/index > > This looks interesting, but when I have JavaScript switched off, I get > a big traceback ... I just tried it. How do you get a traceback? For me none

Re: ANN: WHIFF += Mako & treeview & url rewrites

2009-10-27 Thread Aaron Watters
On Oct 27, 7:04 am, Paul Boddie wrote: > On 27 Okt, 03:49, Aaron Watters wrote: > > > > > WHIFF now includes components for > > implementing "tree views" for web navigation panes > > or other purposes, either using AJAX or frame > &g

Re: Web development with Python 3.1

2009-10-26 Thread Aaron Watters
aaron.oirt.rutgers.edu/myapp/GenBankTree/index http://whiff.sourceforge.net -- Aaron Watters === It gotta be rock-roll music if you wanna dance with me if you wanna dance with me -- http://mail.python.org/mailman/listinfo/python-list

ANN: WHIFF += Mako & treeview & url rewrites

2009-10-26 Thread Aaron Watters
at are shorter and easier to understand. Read it here: http://aaron.oirt.rutgers.edu/myapp/docs/W1100_2050.UrlMapping WHIFF HOME PAGE: http://whiff.sourceforge.net I hope you like it! -- Aaron Watters === less is more. -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Relational Mappers are evil (a meditation)

2009-10-21 Thread Aaron Watters
On Oct 16, 10:35 am, mario ruggier wrote: > On Oct 5, 4:25 pm, Aaron Watters wrote: > > > Occasionally I fantasize about making a non-trivial change > > to one of these programs, but I strongly resist going further > > than that because the ORM meatgrinder makes

Object Relational Mappers are evil (a meditation)

2009-10-05 Thread Aaron Watters
etween extremely unpleasant and impossible to make any non-trivial changes to a non-trivial program, especially after it has been populated with data. Ok I feel a little better now. Maybe I should get back to work... -- Aaron Watters http://aaron.oirt.rutgers.edu/myapp/docs/W1100_1200.wwiki

Re: AJAX Widget Framework

2009-10-02 Thread Aaron Watters
in support for AJAX. You could probably use this as a starting point for building your "grid" widget. I've used WHIFF with jquery and mootools javascript libraries with much success. Please let me know what you think. -- Aaron Watters === Ban DHMO! http://www.dhmo.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: is this whiff/wsgi claim true?

2009-09-30 Thread Aaron Watters
wsgi/wiki/ConfigurationDirectives#WSGIScr... Thanks. I think this observation makes a liar of me :(. I'll have to reword the claim. I could split hairs to assert that this is "not the same" thing, but it's close enough -- Aaron Watters === Speak roughly to your little boy

Re: is this whiff/wsgi claim true?

2009-09-25 Thread Aaron Watters
o note similarities with to modpy/publisher and even CGI but none of these are WSGI components or infrastructures whereas WHIFF is both a WSGI component and an infrastructure. So this is not the counterexample I was looking for. -- Aaron Watters === - She turned me into a newt! - A newt? - ...I g

is this whiff/wsgi claim true?

2009-09-25 Thread Aaron Watters
to correct the statement and my knowledge of what else is out there is faulty and incomplete, so please correct me. Thanks, -- Aaron Watters === less is more -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a pure Python chart drawing module

2009-09-18 Thread Aaron Watters
se are very pretty. http://aaron.oirt.rutgers.edu/myapp/docs/W1100_1600.openFlashCharts -- Aaron Watters === Tee front: 80 minutes / 16 positions / no protection back: Rutgers Rugby -- http://mail.python.org/mailman/listinfo/python-list

WHIFF += Open Flash Charts

2009-09-17 Thread Aaron Watters
script And XML). Project home page: http://whiff.sourceforge.net . Documentation index: http://aaron.oirt.rutgers.edu/myapp/docs/W.intro . I hope you like it! -- Aaron Watters === an apple every 8 hours will keep 3 doctors away -- kliban -- http://mail.python.org/mailman/listinfo/python-list

Re: Data visualization in Python

2009-08-20 Thread Aaron Watters
IFF is a collection of support services for WSGI applications which allows applications to be composed by "dropping" dynamic pages into container directories. http://aaron.oirt.rutgers.edu/myapp/docs/W.intro thanks, -- Aaron Watters === Sisyphus got ripped. -- http://mail.pytho

Re: off topic: google groups sucks?

2009-08-17 Thread Aaron Watters
n the results I want. (Lucene has this property too -- you get the results the algorithm wants you to get, rather than the results you want to get.) -- Aaron Watters === In communism the future is certain, but the past is ever changing. -- http://mail.python.org/mailman/listinfo/python-list

Re: off topic: google groups sucks?

2009-08-17 Thread Aaron Watters
On Aug 17, 10:05 am, Aaron Watters wrote: > Just a note.  It seems that google groups is increasing the > sucks coefficient. I'm having better luck now using the advanced search option with queries like gadfly group:comp.lang.python which become http://groups.google.com/grou

off topic: google groups sucks?

2009-08-17 Thread Aaron Watters
ng? gmane? With all the smart people working at google how can they up like this? Inquiring minds want to know. -- Aaron Watters === Sisyphus got ripped. -- http://mail.python.org/mailman/listinfo/python-list

WHIFF 0.4 += repoze.who authentication + menus + calculator + docs.

2009-07-14 Thread Aaron Watters
. Documentation index: http://aaron.oirt.rutgers.edu/myapp/docs/W.intro . I hope you like it! -- Aaron Watters === % ping elvis elvis is alive -- http://mail.python.org/mailman/listinfo/python-list

Re: Good books in computer science?

2009-06-16 Thread Aaron Watters
the extra £10-£30 to get the > latest edition? This is the best book ever written on computer science and the first edition is free. http://www.math.upenn.edu/~wilf/AlgComp3.html -- Aaron Watters http://aaron.oirt.rutgers.edu/myapp/amcharts/doc === less is more. -- http://mail.python.

Re: ANN: WHIFF += Flash chart widget support (Aaron Watters)

2009-06-12 Thread Aaron Watters
oked pretty good too, which I may add sometime. http://teethgrinder.co.uk/open-flash-chart/ -- Aaron Watters === an apple every 8 hours will keep 3 doctors away. -- kliban -- http://mail.python.org/mailman/listinfo/python-list

ANN: WHIFF += Flash chart widget support

2009-06-11 Thread Aaron Watters
F does not provide a "packaged cake mix" for baking a web application. Instead WHIFF is designed to provide a set of ingredients which can be easily combined to make web applications (with no need to refine your own sugar or mill your own wheat). I hope you like it. -- Aaron Watters === l

Re: free chart lib for Python?

2009-06-10 Thread Aaron Watters
in applets. Documentation here: http://aaron.oirt.rutgers.edu/myapp/amcharts/doc You can get it from the WHIFF mercurial repository for now. http://aaron.oirt.rutgers.edu/cgi-bin/whiffRepo.cgi I will upload a tarball to http://whiff.sourceforge.net soonish. Thanks in advance for any comments. -- Aaron Watte

Ann: Nucular full text search 0.5 +boolean queries +unicode fixes

2009-05-20 Thread Aaron Watters
ular is pure Python. Nucular indexes and retrieves data quickly. Nucular has a funny name. More information about Nucular including links to documentation, and releases is available at http://nucular.sourceforge.net Thanks: Rene Maurer and Matt Chaput and others for comments, suggestions, patches.

Re: OT: a metacomment on feedback comments

2009-04-27 Thread Aaron Watters
Regarding feedback about WHIFF -- WSGI/HTTP Integrated Filesystems Frames On Apr 23, 3:43 pm, Aaron Watters wrote: > On Apr 23, 11:54 am, Johannes Bauer wrote: > > > To sum it up, I think it's a neat idea, but it's not really intuitive. > > After being quite sta

Re: OT: a metacomment on feedback comments

2009-04-23 Thread Aaron Watters
te for my initial thoughts inspired by J.B's comments. [BTW: I had to back out a handful of mootools coolnesses because they broke in horrible ways under IE8 -- I apologize if you saw a blank page or any other weirdness.] Thanks again! -- Aaron Watters http://aaron.oirt.rutgers.edu/mya

OT: a metacomment on feedback comments

2009-04-23 Thread Aaron Watters
and the FCK wisiwig editor, checked in to the repository and demoed in the documentation, but not tarred up in a release yet. At least I'm having fun with it! -- Aaron Watters http://aaron.oirt.rutgers.edu/myapp/docs/W1500.whyIsWhiffCool === ban dhmo! http://www.dhmo.org/ -- http:/

Re: Too early implementation

2009-04-18 Thread Aaron Watters
months but I think I started/restarted 3 times before I was happy with the basic approach and could move forward past step (3). -- Aaron Watters http://aaron.oirt.rutgers.edu/myapp/docs/W1500.whyIsWhiffCool === Software time estimation rule: How long could it possibly take? Double that. Switch

Re: WHIFF - was: Re: Using Python after a few years of Ruby

2009-04-16 Thread Aaron Watters
wledge. I'm looking forward to learning otherwise. Please don't be too harsh. -- Thanks, Aaron Watters === If all the economists in the world were placed end to end they'd still point in different directions. -- http://mail.python.org/mailman/listinfo/python-list

Re: WHIFF - was: Re: Using Python after a few years of Ruby

2009-04-15 Thread Aaron Watters
etter way to explain what I mean. -- Aaron Watters ( http://whiff.sourceforge.net ) === Sisyphus got ripped. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python after a few years of Ruby

2009-04-15 Thread Aaron Watters
me testing the comments feature :) ). Back in the old days you could at least count on someone yelling at you about how your design was such a bad idea -- Aaron Watters === HELP! HELP! I'M BEING REPRESSED! -- http://mail.python.org/mailman/listinfo/python-list

Re: HTML Conversion in python

2009-04-13 Thread Aaron Watters
There are many other HTML generation approaches as indicated by the Wiki link previously. As far as I know the WHIFF approach is the most "compositional". Please correct me if I'm wrong. Thanks, -- Aaron Watters === 'To join the Guild I had to kill somebody, cruelly, with no

Re: Data Model:

2009-04-12 Thread Aaron Watters
ns when making this decision? > > Thanks! It looks to me that the two designs might be useful for different purposes. What are you trying to do? -- Aaron Watters whiff.sourceforge.net http://aaron.oirt.rutgers.edu/myapp/root/misc/erdTest -- http://mail.python.org/mailman/listinfo/python-list

Ann: WHIFF -- WSGI/HTTP INTEGRATED FILESYSTEM FRAMES

2009-04-12 Thread Aaron Watters
king a web application. Instead WHIFF is designed to provide a set of ingredients which can be easily combined to make web applications (with no need to refine your own sugar or mill your own wheat). I hope you like it. -- Aaron Watters === Why is a giraffe's neck so long? Because its head is

ANN: Nucular full text indexing 0.4

2009-02-05 Thread Aaron Watters
rmats (the change was needed to fix a bug). On Windows XP I had to delete the old package manually from the Python library before the install for the new package would work properly. I hope you like it. -- Aaron Watters === Fear has several advantages over gratitude. Gratitude is intrinsical

Re: search speed

2009-02-01 Thread Aaron Watters
erms anywhere (full text) searches for terms within fields, searches for prefixes in fields, searches based on field inequality, or searches for field exact value. I would argue this subsumes the standard "fielded approach". -- Aaron Watters === Oh, I'm a lumberjack and I'

Re: Project structure - Best practices

2008-11-30 Thread Aaron Watters
7;m completely confused about any implications related to integrated system testing or "easyinstall"... Wise, pragmatic advice would be appreciated. (But if we could avoid the "buzzillion directories" approach prevalent in the java alternative universe, that would be nice.)

Re: marshal.dumps quadratic growth and marshal.dump not allowing file-like objects

2008-06-18 Thread Aaron Watters
aranoid, whereas pickle is a security disaster waiting to happen unless you are extremely cautious... yet again. Sorry, I know a even a monkey learns after 3 times... -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=disaster -- http://mail.python.org/mailman/listinfo/python-list

Re: STL multimap

2008-05-06 Thread Aaron Watters
h no bubbling. It's too bad the Python that comes installed on Macs doesn't support channels :(. I know I didn't address your question or comments... -- Aaron Watters http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=ifdef+stackless -- http://mail.python.org/mailman/listinfo/python-list

Re: STL multimap

2008-05-05 Thread Aaron Watters
variable-width. You lost me here. python 2.6: >>> def (a): a[:]=[x] File "", line 1 def (a): a[:]=[x] ^ SyntaxError: invalid syntax All the best. -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=gaping+security+hole -- http://mail

Re: Why is None <= 0

2008-05-02 Thread Aaron Watters
his using L.sort(cmp) where cmp is implemented in Python can result in a significant speed penalty. What's up with Tim Peters anyway? I haven't seen much from him for a while. -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=quote+tim+peters -- http://mail.python.org/mailman/listinfo/python-list

Re: Cookie Confusion - How to Set a Cookie

2008-05-02 Thread Aaron Watters
On May 1, 9:02 am, [EMAIL PROTECTED] wrote: > On Apr 29, 3:35 pm, Aaron Watters <[EMAIL PROTECTED]> wrote: > > > > > > Thanks for the code, Aaron. I will give it a try. > > > > I've been reading some more about cookielib and am not sure whether I &g

Re: Tremendous slowdown due to garbage collection

2008-04-30 Thread Aaron Watters
this would make an excellent computer science Master's Thesis topic. Anybody looking for a topic? -- Aaron Watters http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=use+while+fresh -- http://mail.python.org/mailman/listinfo/python-list

Re: best way to host a membership site

2008-04-30 Thread Aaron Watters
tes that looked a little like this...) -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=slip+nibble -- http://mail.python.org/mailman/listinfo/python-list

Re: best way to host a membership site

2008-04-30 Thread Aaron Watters
possible that my understanding of Django is not deep enough and that the answer is "Django". -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=you+may+cheat -- http://mail.python.org/mailman/listinfo/python-list

Re: Cookie Confusion - How to Set a Cookie

2008-04-29 Thread Aaron Watters
send the cookie header to the client correctly (if the client is configured to cooperate). -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=default+does+nothing -- http://mail.python.org/mailman/listinfo/python-list

Re: simple chemistry in python

2008-04-29 Thread Aaron Watters
entific data repositories (not web search forms: downloadable complete data)? -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=valence -- http://mail.python.org/mailman/listinfo/python-list

Re: Cookie Confusion - How to Set a Cookie

2008-04-28 Thread Aaron Watters
if cookie == '': return {} c = SimpleCookie() c.load(cookie) cookiedict = {} for key in c.keys(): cookiedict[key] = c.get(key).value return cookiedict === All the best. -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=monster -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k concerns. An example

2008-04-27 Thread Aaron Watters
k about it. Can anyone recommend a good book on Ruby :)? -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=unnecessary+breakage -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k concerns. An example

2008-04-27 Thread Aaron Watters
ith no changes (but please note that I don't write gui stuff, which is less stable -- I'm speaking of algorithmic and system libraries). -- Aaron Watters === btw: usage (5) for "shame" in the python source: http://www.xfeedme.com/nucular/pydistro.py/go?FocusId=463&FREETEXT=shame -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k concerns. An example

2008-04-24 Thread Aaron Watters
On Apr 24, 10:10 am, Paul McGuire <[EMAIL PROTECTED]> wrote > end point applications (I consider maintaining 2 branches to be in the > "not working" category), but it does NOT WORK for people who maintain > modules for other people to use, because those people may be on a > range of Python versions

Re: py3k concerns. An example

2008-04-18 Thread Aaron Watters
alty (afaik there isn't). An alternative is to provide an alternate interface to string.format so that you could pass in an object which might emulate a dictionary, like string.formatDict(D) -- or you could even adopt a shortcut notation like string % D -- hey there's an idea! -- Aaron Watt

py3k concerns. An example

2008-04-18 Thread Aaron Watters
mple way to translate my code, I think. I suspect you will find this kind of subtle issue in many places. Or worse, you won't find it until after your program has been installed in production. It's a damn shame because if string%dict was just left in it wouldn't be an issue. Also,

Re: Database vs Data Structure?

2008-04-18 Thread Aaron Watters
ho have a "rabbit cage" project -- and if you just pickle everything you will end up traversing the entire database, possibly multiple times to find it. A little old fashioned database design up front can save you a lot of pain. -- Aaron Watters === http://www.xfeedme.com/nucular/pydi

Re: py3k s***s

2008-04-18 Thread Aaron Watters
sting code. I really like developing in Python -- but it's hard to keep doing it when the growth curve is so slow and a so many people have deep reservations about it, inspired in part, justifiably, by nonsense like this. In fact, I basically stopped. Then I came back. Now I'm won

Re: py3k s***s

2008-04-17 Thread Aaron Watters
ally or accidentally which means I'll have to carefully rewrite and retest any code which uses the new and improved libraries ... and the "deprecated/removed" libs won't work anymore, so I can't just put them into my package... sigh. -- Aaron Watters === http://www.xfe

Re: py3k s***s

2008-04-16 Thread Aaron Watters
an python" is a "better coding practice". I've seen it happen. -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=alien -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k s***s

2008-04-16 Thread Aaron Watters
e Perl 4 was. The cost paid for these minor improvements is too high in my book. But I suppose if it is going to happen do it sooner rather than later. Just *please* *please* don't systematically break the pre-existing code base again for a very long time, preferable ever. -- Aaron Wat

Re: py3k s***s

2008-04-16 Thread Aaron Watters
uld be a good thing. It seems to have happened in the Perl4->5 migration some years ago. Could happen again. -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=repeatedly+hammer -- http://mail.python.org/mailman/listinfo/python-list

Re: Profiling very small/quick functions, help!?

2008-04-16 Thread Aaron Watters
in xrange(1,1): test = power(10,10) if __name__=="__main__": try: from cProfile import run except: from profile import run for x in range(1, 1): run("test1()") all the best! -- Aaron Watters === http://www.xfeedme.com/nuc

Re: py3k s***s

2008-04-16 Thread Aaron Watters
on environment, ecosystem and community. In the short term I foresee everything bifurcating into two separate code bases, and I think that's a shame, and I don't really see the need. -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=nightmare -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k s***s

2008-04-16 Thread Aaron Watters
On Apr 16, 12:27 pm, Rhamphoryncus <[EMAIL PROTECTED]> wrote: > On Apr 16, 6:56 am, Aaron Watters <[EMAIL PROTECTED]> wrote: > > > I don't get it. It ain't broke. Don't fix it. > > So how would you have done the old-style class to new-style class >

Re: py3k s***s

2008-04-16 Thread Aaron Watters
On Apr 16, 11:15 am, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > On 16 abr, 09:56, Aaron Watters <[EMAIL PROTECTED]> wrote: > > > In my opinion python's adherence to backwards compatibility > > has been a bit mythological anyway -- many new python versions

Re: py3k s***s

2008-04-16 Thread Aaron Watters
e the basic treatment of strings is totally different in py3k, it seems. Maybe there is a secret desire in the Python community to remain a fringe minority underdog forever? -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=reap+dead+child -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k s***s

2008-04-16 Thread Aaron Watters
istake :) (but I still think full stackless would be much better, which python seems to be very slowly moving towards.) -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=nonsense -- http://mail.python.org/mailman/listinfo/python-list

Re: Tremendous slowdown due to garbage collection

2008-04-15 Thread Aaron Watters
igned to stream results sequentially from disk whenever possible. The one place where it doesn't do this very well (proximity searches) shows the most problems with performance (under bad circumstances like searching for two common words in proximity). -- Aaron Watters === http://www.xf

Re: Tremendous slowdown due to garbage collection

2008-04-14 Thread Aaron Watters
hink the default behaviour of the gc is pretty silly. I tend to disable automatic gc and explicitly put in collections when I know I'm done with some big operation these days. -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=dumb+slow -- http://mail.python.org/mailman/listinfo/python-list

Re: Profiling programs/scripts?

2008-04-11 Thread Aaron Watters
Python installations. The profile "run" function will run the tests function and print a report on the timings and counts it found. More info here: http://docs.python.org/lib/profile.html -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=emulate+perl -- ht

Re: april fools email backfires

2008-04-02 Thread Aaron Watters
On Apr 2, 11:07 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > > Can you post a link? > > -- Paul Sorry. It came from private email. And I don't want to get anyone in trouble... -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=

Re: object-relational mappers

2008-04-02 Thread Aaron Watters
nd in emergencies it can save you a lot of pain. But if you use it too often and too seriously you end up with really big problems. -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=mysterious+objects -- http://mail.python.org/mailman/listinfo/python-list

april fools email backfires

2008-04-02 Thread Aaron Watters
would be a great idea; it's about time; gotta do something about this mess... -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=other+surprises -- http://mail.python.org/mailman/listinfo/python-list

object-relational mappers

2008-04-01 Thread Aaron Watters
s to say I feel that they all make me learn so much about the internals and features of the O-R mapper itself that I would be better off rolling my own queries on an as-needed basis without wasting so many brain cells. comments? -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro

Re: csv Parser Question - Handling of Double Quotes

2008-03-28 Thread Aaron Watters
zarre and surprising results in the illustrated case. It's a matter of taste of course... -- Aaron Watters === http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=mondo+bizarre -- http://mail.python.org/mailman/listinfo/python-list

Re: csv Parser Question - Handling of Double Quotes

2008-03-27 Thread Aaron Watters
s, delimiter): for line in lines: fields = line.split(delimiter) fields = map(trimQuotes, fields) yield fields def test(): lines = ['"t"h"is";"is";"a";"test"'] for fields in simpleCsv(lines, ';'):

  1   2   >