Re: Memory stats

2005-09-27 Thread gene tani
linux: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286222 Martin v. Löwis wrote: > Tarek Ziadé wrote: > > I am trying to find a general memory profiler that can measure the > > memory usage in Python program > > and gather some stats about object usages, and things like that. > > As Di

Re: A Moronicity of Guido van Rossum

2005-10-01 Thread gene tani
(posted c.l.python ONLY) Xah (may i call you Xah?) SOrry to say, but your older posts were much funnier: http://groups.google.com/group/comp.lang.lisp/browse_frm/thread/15f7015d23a6758e/9ee26da60295d7c8?lnk=st&q=&rnum=5&hl=en#9ee26da60295d7c8 (also seems your anti-cult cult really hasn't gotten

Re: Python for search engine development

2005-10-02 Thread gene tani
http://groups.google.com/group/comp.lang.python/browse_thread/thread/6e6dc84e68e25039/1436d0b3466e262a?q=lucene&rnum=1#1436d0b3466e262a Mike Meyer wrote: > "corebump" <[EMAIL PROTECTED]> writes: > > > hi everybody, > > i planinng develop a search engine and i think using the python. Python > > per

Re: Finding the Process Path

2005-10-03 Thread gene tani
other ways to get at info: if sys.hexversion > 0x010502F0: sys.versioninfo, version, etc. platform.architecture, processor etc. distutils.sysconfig.get_makefile_filename( ) Benji York wrote: > Peck, Jon wrote: > > I have Python code running in an application, and I would like to find > > the

Re: Python based unacceptable language filter

2005-10-03 Thread gene tani
Good question, but Y'know, i don't think i'm the only one using a threaded mail reader. Pls don't hijack others' threads. David Pratt wrote: > Hi. Is anyone aware of any python based unacceptable language filter > code to scan and detect bad language in text from uploads etc. > > Many thanks. >

Re: Extending Python

2005-10-08 Thread gene tani
Yup, still there, issues 1 and 2 http://pyzine.com/Issue002/index.html Also recommend Dave Kuhlman's brief intro (open in your tabbed browser) http://www.rexx.com/~dkuhlman/python_201/python_201.html#SECTION00600 Alex Martelli wrote: > Micah Elliott <[EMAIL PROTECTED]> wrote: > >

Re: Perl's documentation come of age

2005-10-10 Thread gene tani
request for Google groups enhancement: Report Abuse button should have 4 choices: - Spam - Illegal Content - Xah - other ;-} Christos Georgiou wrote: > On Wed, 05 Oct 2005 21:36:47 -0600, rumours say that Mahesh Padmanabhan > <[EMAIL PROTECTED]> might have written: > > >In article <[EMAIL PROTECT

Re: Learning Python

2005-10-10 Thread gene tani
This should be good for a couple weeks http://www.awaretek.com/tutorials.html http://www.rexx.com/~dkuhlman/python_101/python_101.html http://www.rexx.com/~dkuhlman/python_201/python_201.html http://www.ibiblio.org/obp/py4fun/ http://the.taoofmac.com/space/Python/Grimoire http://mail.python.org/p

Re: where to get modules for python

2005-10-11 Thread gene tani
http://www.python.org/doc/faq/library.html#how-do-i-find-a-module-or-application-to-perform-task-x [EMAIL PROTECTED] wrote: > hi > i am new to python and was wondering where can i find modules for > python? > Something very much like what CPAN has for Perl. > I am searching for SSL/SSH modules for

Re: Looking for a Python mentor

2005-10-12 Thread gene tani
is this it:? http://mail.python.org/mailman/listinfo/tutor LenS wrote: > Hello > > Was wandering if there is any place where some one could go to get > mentoring on python coding. I have started coding in python but I am > the only one in the shop using it. So there is no one around to look > o

Re: Here I am again, same old arguments

2005-10-13 Thread gene tani
google "cheat sheet" or "quick reference" http://rgruet.free.fr/#QuickRef http://infohost.nmt.edu/tcc/help/pubs/python22/ http://www.onlamp.com/pub/a/python/excerpt/PythonPocketRef/index.html http://diveintopython.org/appendix/abstracts.html http://www.yukoncollege.yk.ca/~ttopper/COMP118/rCheatShe

Re: Python vs Ruby

2005-10-20 Thread gene tani
http://blog.ianbicking.org/ruby-python-power.html http://www.ruby-doc.org/RubyEyeForThePythonGuy.html http://onestepback.org/index.cgi/Tech/Ruby/PythonAndRuby.rdoc http://www.approximity.com/ruby/Comparison_rb_st_m_java.html http://www.jvoegele.com/software/langcomp.html http://reflectivesurface.co

Re: High Order Messages in Python

2005-10-23 Thread gene tani
http://www.artima.com/intv/closures.html http://www.rubyist.net/~matz/slides/oscon2005/index.html It's a read-write closure, a co-routine, sort of a continuation (tho Kernel.callcc is considered the real continuation mechanism). And you can make it a Proc object (basically an unbound object you ca

Re: Syntax across languages

2005-10-25 Thread gene tani
APL, i haven't thought about that in 15 years. I think it was (quad)CT for comparison tolerance, at least in IBM APL. Alex Martelli wrote: > Tom Anderson <[EMAIL PROTECTED]> wrote: >... > > What would approximate FP equality even mean? How approximate? > > In APL, it meant "to within [a certa

Re: the PHP ternary operator equivalent on Python

2005-11-18 Thread gene tani
Mike Meyer wrote: > "Daniel Crespo" <[EMAIL PROTECTED]> writes: > > > Hi! > > > > I would like to know how can I do the PHP ternary operator/statement > > (... ? ... : ...) in Python... > > > > I want to something like: > > > > a = {'Huge': (quantity>90) ? True : False} > > > > Any suggestions? >

Re: Precision for equality of two floats?

2005-11-29 Thread gene tani
Anton81 wrote: > Hi! > > When I do simple calculation with float values, they are rarely exactly > equal even if they should be. What is the threshold and how can I change > it? > > e.g. "if f1==f2:" will always mean "if abs(f1-f2)<1e-6:" > > Anton googled for "floating point" "comparison toleran

Re: xpath support in python 2.4

2005-11-29 Thread gene tani
And80 wrote: > Hi, > I would like to use xpath modules in python2.4 In my local machine > I am running python2.3.5 and on the server I run python2.4. I have seen > that while on my computer i am able to import xml.xpath, on the server > the module seems to not exist. Is it still part of the st

Re: Eclipse best/good or bad IDE for Python?

2005-12-02 Thread gene tani
[EMAIL PROTECTED] wrote: > I'm trying to move beyond Emacs/Vim/Kate > and was wondering if Eclipse is better and if it is the *best* > IDE for Python. > > Should I leave Emacs and do Python coding in Eclipse? > > Chris I'm agnostic; lots of IDE's/editors have buzz, you should learn to use at leas

Re: Eclipse best/good or bad IDE for Python?

2005-12-04 Thread gene tani
[EMAIL PROTECTED] wrote: > Though I tried most the above listed IDEs, sticking with a few for > awhile, I always find myself gravitating back to the one no one ever > mentions: IDLE. It's simple, fast, and with multiple monitors the lack > of tabs really isn't much of a problem. > > The biggest re

Re: HTML parsing/scraping & python

2005-12-04 Thread gene tani
John J. Lee wrote: > Sanjay Arora <[EMAIL PROTECTED]> writes: > > > We are looking to select the language & toolset more suitable for a > > project that requires getting data from several web-sites in real- > > timehtml parsing/scraping. It would require full emulation of the > > browser, incl

Re: Need help implementing an algorithm in python

2005-12-05 Thread gene tani
ech0 wrote: > I would appreciate any help I can get in finding a solution to the > following problem: > > == > > Below is a diagram: > http://www.muchographiks.com/algo.jpg > > THE PROBLEM > > Lets say we have 4 terms (purple represen

Re: Bitching about the documentation...

2005-12-05 Thread gene tani
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > > > Gee, I wonder if I typed "sort" into the search box on the wiki it might > > turn up something useful? Well, what do you know? > > > > 2 results of about 4571 pages. (0.19 seconds) > > > > 1. HowTo/Sorting > > 2. SortingListsOf

Re: Bitching about the documentation...

2005-12-06 Thread gene tani
[EMAIL PROTECTED] wrote: > >> Are you telling us you learned C#, smalltalk, lisp, C, perl, > >> whatever, from 1 website only, without looking at any books, without > >> spending any money on IDEs or any software? Cause that's what you're > >> asking here. > > rurpy> For perl and

Re: extract python install info from registry

2005-12-06 Thread gene tani
> > There's more to it than that... isn't there? I've used _winreg and the > win32 extensions in the past when working with the registry. I thought > perhaps someone had already scripted something to extract this info. > Yes, a small firm named Microsoft has done this (but not tested w/2.4): htt

Re: How to get the extension of a filename from the path

2005-12-08 Thread gene tani
Lad wrote: > Hello, > what is a way to get the the extension of a filename from the path? > E.g., on my XP windows the path can be > C:\Pictures\MyDocs\test.txt > and I would like to get > the the extension of the filename, that is here > txt > > > I would like that to work on Linux also > Thank

Re: How to get the extension of a filename from the path

2005-12-08 Thread gene tani
Lad wrote: > Thank you ALL for help > Regards, > L. addendum: ASPN Python cookbook often has something relevant / modifiable for your needs: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81931 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52661 (in this case code from 2001 /

Re: Catching error text like that shown in console?

2005-12-09 Thread gene tani
Peter A. Schott wrote: > I know there's got to be an easy way to do this - I want a way to catch the > error text that would normally be shown in an interactive session and put that > value into a string I can use later. I've tried just using a catch statement > and trying to convert the output t

Re: a sequence question

2005-01-30 Thread gene . tani
cookbook's not an easy grep but: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303060 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303279 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/347689 -- http://mail.python.org/mailman/listinfo/python-list

Re: Help! Host is reluctant to install Python

2005-01-30 Thread gene . tani
Based on discusses with these guys, who know LAMP, python, ruby inside and out, and support it well: http://textdrive.com/ I'm guessing you'd have a hard time finding mod_python / apache hosting unless you get a dedicated server. It's pretty labor-intensive setup and admin-wise. linux shell /

Re: The next Xah-lee post contest

2005-01-30 Thread gene . tani
Tragi-comic. really. BTW you forgot cross-post to c.l.scheme, C, smalltalk and C++ -- http://mail.python.org/mailman/listinfo/python-list

Re: What platforms have Python Virtual Machines and what version(s) ofPython do they support?

2005-06-19 Thread gene tani
http://dmoz.org/Computers/Programming/Languages/Python/Ports/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Help implementing an idea

2005-06-19 Thread gene tani
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/299271 or the nice recipe, page 403 of cookbook2, that i can't find in ASPN -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there something similar to ?: operator (C/C++) in Python?

2005-06-19 Thread gene tani
If your test variable has specific values to branch on, the standard way is to have those values be keys in a dictionary, and do: branched_func_obj = dict_of_values.get(testvar) And the lambda hack is here, courtesy of Peter Norvig http://www.norvig.com/python-iaq.html -- http://mail.python.or

Re: Create our own python source repository

2005-06-21 Thread gene tani
Practical Python is quite a good book. And to re-iterate again, teh humongous tutorial list which has Hetland's Instant python among others: http://www.awaretek.com/tutorials.html Brian van den Broek wrote: > Michele Simionato said unto the world upon 21/06/2005 07:58: > > qwwee: > > > >>for a c

Re: tree functions daily exercise: Table

2005-06-21 Thread gene tani
Dear Mr. Jones: Our team of 3,972 expert testers judged the output of your troll-spewing neural net virtually indistinguishable from the original. Given this, I am please to announce that our firm is willing to discuss arrangements for an exclusive license that you would likely find financially c

Re:

2005-06-22 Thread gene tani
i think this came up yesterday\ http://www.python.org/cgi-bin/moinmoin/IntegratedDevelopmentEnvironments -- http://mail.python.org/mailman/listinfo/python-list

Re: Optimize a cache

2005-06-22 Thread gene tani
i think ring buffer http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/68429 -- http://mail.python.org/mailman/listinfo/python-list

Re: Optimize a cache

2005-06-22 Thread gene tani
a ring buffer? http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/68429 -- http://mail.python.org/mailman/listinfo/python-list

Re: Seeking IDE

2005-06-30 Thread gene tani
http://www.python.org/cgi-bin/moinmoin/IntegratedDevelopmentEnvironments http://wiki.python.org/moin/PythonEditors http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/6ab929ca5507a05/ebf77ab2ea664a3c?q=IDE+group:comp.lang.python&rnum=6&hl=en#ebf77ab2ea664a3c -- http://mail.pyt

Re: Seeking IDE

2005-06-30 Thread gene tani
woops: I like komodo (almost free, from: http://wiki.python.org/moin/Komodo and jedit: http://www.opensourcetutorials.com/tutorials/Server-Side-Coding/Python/review-of-python-ide/page1.html http://plugins.jedit.org/updates.php?page=3 Heard good things about WIngIDE, the other almost free IDE -

Re: Seeking IDE

2005-06-30 Thread gene tani
I encourage NOPs (non-original posters) to paste their thoughts into the wiki for posterity/FAQing, e.g. currently no info on synEdit: http://wiki.python.org/moin/IntegratedDevelopmentEnvironments -- http://mail.python.org/mailman/listinfo/python-list

Re: Escaping commas within parens in CSV parsing?

2005-06-30 Thread gene tani
Why don't you use a different delimiter when you're writing the CSV? -- http://mail.python.org/mailman/listinfo/python-list

Re: website catcher

2005-07-03 Thread gene tani
maybe look at Harvestman http://cheeseshop.python.org/HarvestMan/1.4%20final -- http://mail.python.org/mailman/listinfo/python-list

Re: How do you program in Python?

2005-07-04 Thread gene tani
+1 on investing in emacs. There's a shiny new release of the Oreilly, which is (a really large book) that a lot of people teach themself out of: http://www.oreilly.com/catalog/gnu3/ But i would also recommend komodo from activestate's IDE, easy and powerful, once you understand what all's in the

Re: Learning Python - IM Wiki

2005-07-08 Thread gene tani
The python tutor good for this http://mail.python.org/mailman/listinfo/tutor Miki Tebeka wrote: > Hello Jorge, > > >Is there some sort of a Wiki where I could post the code and have > >advice on what, how and where to improve? Or should I post the code it > >here? > You can always get

Re: Web App like Google

2005-07-13 Thread gene tani
a good text indexer will help, look at lupy, pyndex, xapian etc http://www.pypackage.org/packages/python-pyndex http://www.divmod.org/Home/Projects/Lupy/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Web App like Google

2005-07-13 Thread gene tani
Yes, there's a lot of issues, cross-site scripting, session hijacking, proper authentication, etc. Open Web App Security Project is useful www.owasp.org Also, before you start with NLP and full-on parsers, think about if you can apply a text indexer, stemming and stopping both your user's queri

Re: Web App like Google

2005-07-13 Thread gene tani
Good luck, report back. My canonical 1st step w/stuff that looks like NLP, is to flip thru the Jurafsky/Martin and Norvig Russell AI texts and identify paths of least resistance, like naive Bayesian or LSI, that have perl/python/ruby/C packages that i can thrash around in with my data . some othe

Re: problems with python 2.4 help

2005-07-16 Thread gene tani
ipython and pyshell? http://www.onlamp.com/pub/a/python/2005/01/27/ipython.html http://www.wxpython.org/PyManual.html -- http://mail.python.org/mailman/listinfo/python-list

Re: What module to use to get a file from a website?

2005-07-16 Thread gene tani
curl and wget are the most robust ways to do this http://cool.haxx.se/mailman/listinfo/curl-and-python http://www.gnu.org/software/wget/wget.html -- http://mail.python.org/mailman/listinfo/python-list

Re: I just wanna know about os.path module..

2005-07-17 Thread gene tani
look at 'path' module too http://www.jorendorff.com/articles/python/path/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE

2005-07-19 Thread gene tani
you have an embarassment of riches (i think that's the phrase) http://wiki.python.org/moin/IntegratedDevelopmentEnvironments also try Eric and Komodo (the other $30 IDE with free trial). -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a query to the browser from time to time?

2005-07-19 Thread gene tani
not clear if you're asking about XMLHttpRequest http://www.modernmethod.com/sajax/ http://nevow.com/Nevow2004Tutorial.html#livepage or custom browser object: http://wwwsearch.sourceforge.net/mechanize/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Could anyone write a small program to log the Signal-to-Noise figures for a Netgear DG834 router?

2005-07-19 Thread gene tani
ok, i don't see URL and password here, so try: urllib2 (maybe mechanize), then beautiful soup. maybe another HTML parser ... -- http://mail.python.org/mailman/listinfo/python-list

Re: OO design

2005-07-19 Thread gene tani
fav DP books: http://www.oreilly.com/catalog/hfdesignpat/ http://www.netobjectives.com/dpexplained/ -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary that discards old items

2005-07-22 Thread gene tani
not clear if you want a FIFO, or a LRU on read or write, so for the non-dictionary component of this, you could also ( (search Cookbook) || google) for terms like "ring buffer", "fixed-size cache", um, "bounded queue", "circular buffer", "deque", there's probably a bunch of others. -- http://mai

Re: command line argument passing

2005-07-22 Thread gene tani
just remember: sys.argv[0] == script name http://www.artima.com/weblogs/viewpost.jsp?thread=4829 -- http://mail.python.org/mailman/listinfo/python-list

Re: broken links

2005-07-22 Thread gene tani
OR: (I think it does the same thing) os.access(filename,OS.F_OK) -- http://mail.python.org/mailman/listinfo/python-list

Re: Detecting computers on network

2005-07-22 Thread gene tani
Hi Sandeep, i didn't see where you said if these hosts you want to ping are on your internal network, or beyond your gateway. Probably the only truly reliable way to maintain an active hosts list is to install a ping-sending client on them, like http://aspn.activestate.com/ASPN/Cookbook/Python/R

Re: decoding html

2005-07-22 Thread gene tani
http://docs.python.org/lib/module-htmlentitydefs.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python to runother programs

2005-07-23 Thread gene tani
this isn't really enough data to go on. What operating system (sounds like win2k/XP), does Crystal reports and unnamed accounting software have COM hooks? Look at Simon Brunning posts: http://www.brunningonline.net/simon/blog/archives/000652.html http://aspn.activestate.com/ASPN/Cookbook/Python/

Re: Neat access to db query results

2005-07-23 Thread gene tani
There's a few places to stash apps, libraries, or small code snippets so they can be search engined, if you provide some inline comments, unit/functional tests, and examples of how to use/known limitations: Vaults Parnassus, dmoz, ActiveState cookbook http://aspn.activestate.com/ASPN/Cookbook/Pyth

Re: PostgreSQL & Python vs PHP

2005-07-23 Thread gene tani
To be honest, this is a pretty open-ended question. Are there specific issues (SQL injection/security, minimizing db connections, simplest code, etc, your'e concerned with?) To be more honest, googline "Python vs. PHP" raises lots of hits http://wiki.w4py.org/pythonvsphp.html http://www.redcor.ch

Re: PostgreSQL & Python vs PHP

2005-07-23 Thread gene tani
ok, to make this less open-ended, you should mention what O/S and web server you have in mind, whether the web and DB servers will be under your admin (big diff betw python and PHP, as far as finding shared server accounts at web hosts), what kinds of queries, concurrent read/write volumes, transac

Re: FAQ?

2005-07-24 Thread gene tani
Here's my trove of FAQ/Gotcha lists http://www.ferg.org/projects/python_gotchas.html http://zephyrfalcon.org/labs/python_pitfalls.html http://zephyrfalcon.org/labs/beginners_mistakes.html http://www.onlamp.com/pub/a/python/2004/02/05/learn_python.html http://www.norvig.com/python-iaq.html http:/

Re: Getting the --options of configure on installed python

2005-07-24 Thread gene tani
look in distutils.cfg: http://www.python.org/doc/2.4.1/inst/config-syntax.html for modules compiled in, sys.builtin_module_names -- http://mail.python.org/mailman/listinfo/python-list

Re: Fire event when variable is Set/Get

2005-07-24 Thread gene tani
this recipe takes medium-deep copies (shallow copies of embedded sequences/dict's) of an obj's __dict__ when you need to monitor changes to the object's state from that point on: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/302742 -- http://mail.python.org/mailman/listinfo/python-list

Re: Knowing when a file completes.

2005-07-26 Thread gene tani
http://tgolden.sc.sabren.com/python/win32_how_do_i/watch_directory_for_changes.html -- http://mail.python.org/mailman/listinfo/python-list

Re: functions without parentheses

2005-07-28 Thread gene tani
http://onestepback.org/index.cgi/Tech/Ruby/PythonAndRuby.rdoc this blog talks about design differences, e.g. what "." means, whether functions and methods are 1st-class objects. St -- http://mail.python.org/mailman/listinfo/python-list

Re: monitor a folder for file creation, how?

2005-07-28 Thread gene tani
win32: (I posted this link in response to same question, um, day bef. yesterday) http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/9a1c7629db72d064/56008cb68eeffa23?hl=en#56008cb68eeffa23 (Thanks to Tim Golden for collecting the info) OS X: I dunno... -- http://mail.python.

Re: writing a web client

2005-07-29 Thread gene tani
fuzzy's urllib2 info is excellent. The other way peopel snarf stuff over HTTP and FTP is using 'wget' or 'libcurl'. THere's http://pycurl.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: writing a web client

2005-07-29 Thread gene tani
Here: http://diveintopython.org/http_web_services/index.html#oa.divein Here: Cookbook rel 2, and: http://aspn.activestate.com/ASPN/Cookbook/Python?kwd=Web Here:other really good py intros which cover 2.2 / urllib (maybe 2.3, I don't have them with me), but examples should all not give deprecation

Re: Newer than a Newbe

2005-08-01 Thread gene tani
http://www.python.org/cgi-bin/moinmoin/PythonHosting -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE's

2005-08-01 Thread gene tani
(instead of saying "google is your bud", & because this ? isn't readily FAQ-able) i suggest Google Advanced Searching c.l.py for "python IDE intellisense" or "code completion" or "regex debugger" or "contextual help" or "whatever_feature" (each feature has about 15 codenames, keep at it), maybe th

Re: namespaces

2005-08-01 Thread gene tani
re-read page 74 of the nutshell about "." and __dict__. this bit about philosophical differences in dictionary lookups vs. sending a message to an object might help http://onestepback.org/index.cgi/Tech/Ruby/PythonAndRuby.rdoc -- http://mail.python.org/mailman/listinfo/python-list

Re: Newer than a Newbe

2005-08-02 Thread gene tani
Truthfully, the number of frameworks is staggering, tho some are specialized for blogs/wiki, search engine, PIM, etc. http://www.colorstudy.com/docs/shootout.html http://pythonology.org/howto http://aspn.activestate.com/ASPN/Cookbook/Python?kwd=Web http://www.awaretek.com/tutorials.html#web http:/

Oreilly CodeZoo

2005-08-05 Thread gene tani
http://radar.oreilly.com/archives/2005/08/codezoo_program_1.html http://python.codezoo.com/ Nice to see that python is in-demand, but what is the rationale for another ASPN cookbook/Parnassus / pypackage / dmoz type repository? -- http://mail.python.org/mailman/listinfo/python-list

Re: Decline and fall of scripting languages ?

2005-08-06 Thread gene tani
(copied from "Fat/Lazy" thread http://martinfowler.com/bliki/CollectionClosureMethod.html http://onestepback.org/index.cgi/Tech/Ruby/PythonAndRuby.rdoc -- http://mail.python.org/mailman/listinfo/python-list

Re: Splitting a string into groups of three characters

2005-08-07 Thread gene tani
Um, you shd 1st search cookbook, or Vaults Parnassu, dmoz python section, pypackage: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/347689 http://www.codezoo.com/ http://www.vex.net/parnassus/ http://www.pypackage.org/packages -- http://mail.python.org/mailman/listinfo/python-list

Re: Decline and fall of scripting languages ?

2005-08-07 Thread gene tani
(throw Martin Fowler and Paul Graham into google blender) http://www.billkatz.com/node/42 http://osteele.com/archives/2005/03/ruby-and-laszlo -- http://mail.python.org/mailman/listinfo/python-list

Re: Oreilly CodeZoo

2005-08-08 Thread gene tani
There it is, right on homepage. Thanks, it looks quite nice, and i see you'll be an indep. gems server, and more... I did try searching on "postscript" and it didn't pull up pyscript. Also, HTML on the "Search" results page is kind of not rendered great in Firefox1.06 /WinXP SP2. BUt it's a rea

Re: "Ordered" dicts

2005-08-10 Thread gene tani
More ways to do it, from the FAQ http://www.python.org/doc/faq/programming.html#how-can-i-get-a-dictionary-to-display-its-keys-in-a-consistent-order Also look at the recipe, page 222 of Cookbook2, that allows you to rank key values by their associated values, and demonstrate the power of mixins.

Re: help in algorithm

2005-08-10 Thread gene tani
this sounds like LSI / singular value decomposition (?) http://javelina.cet.middlebury.edu/lsa/out/lsa_explanation.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: regex help

2005-08-11 Thread gene tani
when *I* google http://www.awaretek.com/tutorials.html#regular http://en.wikibooks.org/wiki/Programming:Python_Strings http://www.regexlib.com/Default.aspx http://docs.python.org/lib/module-re.html http://diveintopython.org/regular_expressions/index.html#re.intro http://www.amk.ca/python/howto/r

Re: How do these Java concepts translate to Python?

2005-08-12 Thread gene tani
I think you'll like python. http://naeblis.cx/rtomayko/2004/12/15/the-static-method-thing http://dirtsimple.org/2004/12/java-is-not-python-either.html (and python-is-not-java) -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is this?

2005-08-12 Thread gene tani
I think you got your answer. FWIW, questions like this i usually look 1st in the Cookbook (i.e. the Oreilly dead trees, 2nd edition). See Chap. 4 And: My gotcha list, http://www.ferg.org/projects/python_gotchas.html http://zephyrfalcon.org/labs/python_pitfalls.html http://zephyrfalcon.org/labs/

Re: Jargons of Info Tech industry

2005-08-12 Thread gene tani
the other canonical responses: - killfile killfile killfile - nothing to see here ... keep moving - don't cross-post your replies, don't rile the perl users. -- http://mail.python.org/mailman/listinfo/python-list

Re: up to date books?

2005-08-18 Thread gene tani
Start here: http://naeblis.cx/rtomayko/2004/12/15/the-static-method-thing http://dirtsimple.org/2004/12/java-is-not-python-either.html http://ischenko.blogspot.com/2005/02/java-may-not-be-that-bad-after-all.html and maybe poke around ehre to learn about language design, how people define typing,

Re: up to date books?

2005-08-18 Thread gene tani
well, it's not easy to find neutral comparisons of ruby and python, but http://www.ruby-doc.org/RubyEyeForThePythonGuy.html http://onestepback.org/index.cgi/Tech/Ruby/PythonAndRuby.rdoc http://www.approximity.com/ruby/Comparison_rb_st_m_java.html http://reflectivesurface.com/weblog/2004/12/19/why

Re: import __main__ where can i find a module called "__main__.py"?

2005-08-21 Thread gene tani
http://www.python.org/doc/faq/programming.html#how-do-i-find-the-current-module-name -- http://mail.python.org/mailman/listinfo/python-list

Re: last line chopped from input file

2005-08-21 Thread gene tani
or: (for long-running Win32 processes) os.startfile(r'/relative/path/to/app') http://docs.python.org/lib/os-process.html under linux/BSD/solaris, i've run into situations where PATH and other environmental var s aren't what you expect (they're from the /etc/profile system defaults, not from your

Re: network programming

2005-08-21 Thread gene tani
If i had started in 8th grade, I'd be Guido MartelliPeters by now! Anyway, these people claim to have 125 tutorials, it'll take at least a couple hours to work thru http://www.awaretek.com/tutorials.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Eve from Adams' Ribs

2005-08-23 Thread gene tani
ORM: Several to choose from: http://blogs.nuxeo.com/sections/blogs/florent_guillaume/2005_08_11_object_relational http://en.wikipedia.org/wiki/Object-relational_mapping#Python http://www.python.org/pypi?:action=browse&asdf=256 -- http://mail.python.org/mailman/listinfo/python-list

Re: Reg python nature.

2005-08-23 Thread gene tani
Do some reading, and stop hijacking threads http://www.python.org/doc/faq/general.html -- http://mail.python.org/mailman/listinfo/python-list

Re: py to exe: suggestions?

2005-08-28 Thread gene tani
There's movpy, w/option to exclude Unicode/win98 capabilities: http://www.voidspace.org.uk/python/movpy/ Also: http://www.effbot.org/zone/exemaker.htm http://www.python.org/doc/current/dist/postinstallation-script.html http://www.jython.org/docs/differences.html Ben Finney wrote: > chris patton

Re: python and ajax

2005-08-30 Thread gene tani
http://www.modernmethod.com/sajax/ http://selenium.thoughtworks.com/usage.html Stephan Diehl wrote: > On Mon, 29 Aug 2005 12:04:46 -0700, Steve Young wrote: > > > Hi, I was wondering if anybody knew of any good > > tutorial/example of AJAX/xmlhttprequest in python. > > Thanks. > > > > -Steve > > A

Re: array of arrays question

2005-08-30 Thread gene tani
I think this is addressed somewhere in a python Gotchas list. These lists're huge, but if you scan thru these every once in a while, they're big timesavers: http://www.ferg.org/projects/python_gotchas.html http://zephyrfalcon.org/labs/python_pitfalls.html http://zephyrfalcon.org/labs/beginners_mi

Re: how to join two Dictionary together?

2005-08-30 Thread gene tani
look Pyth Cookbook 2nd edit, Sec 4.17: "Unions/intersections dictionaries". You'll see idioms like this for dict unions: uniondict=dict(dict1, **dict2) filter (dicta.has_key, dictb.keys()) DENG wrote: > yes, that's really what i want! > > the 2nd replace the 1st one' value! > > thanks so much

Re: graphical or flow charting design aid for python class development?

2005-08-31 Thread gene tani
Have you looked at class browser module? Not the graphical tool you're looking for, but maybe a good start http://www.python.org/doc/2.0.1/lib/module-pyclbr.html William Gill wrote: > Being somewhat new to Python, and having a tendency to over complicate > things in my class design, I was wonder

Re: graphical or flow charting design aid for python class development?

2005-08-31 Thread gene tani
forgot mention Komodo's code and object browser, which're both in the $30 license http://aspn.activestate.com/ASPN/docs/Komodo/3.1/komodo-doc-codeintel.html#codeintel_codebrowser and SPE's supposed to have some kinda class explorer http://www.stani.be/python/spe -- http://mail.python.org/mailma

  1   2   3   >