Re: Memory stats
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 Diez says, use gc: gc.getobjects() gives you all container objects. > If you want a list of all objects (container or not), you have to > compile a debug build of Python. > > Regards, > Martin -- http://mail.python.org/mailman/listinfo/python-list
Re: A Moronicity of Guido van Rossum
(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 a lot of followers. You might want to change password on your email account and this time not give it out to all your friends. Anyway, good luck in all your future endeavors. Um, don't have to keep in touch, tho. Xah Lee wrote: > the programers in the industry, including bigwigs such as Guido or that > Larry Wall fuckhead, really don't know shit about computer languages. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python for search engine development
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 > > performance is enough this project? > > If you're going to do the heavy lifting in Python, maybe. It depends > on what you're going to search, and the performance requirements for a > search. > > On the other hand, if you use a Python wrapper around a full-text > search facility, so that python finds documents, takes queries and > formats results for the user, it should be just fine. > > -- > Mike Meyer <[EMAIL PROTECTED]> > http://www.mired.org/home/mwm/ > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list
Re: Finding the Process Path
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 full path of the process executable where it is running. > > Like this? > > >>> import sys > >>> sys.executable > '/usr/bin/python' > -- > Benji York -- http://mail.python.org/mailman/listinfo/python-list
Re: Python based unacceptable language filter
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. > David -- http://mail.python.org/mailman/listinfo/python-list
Re: Extending Python
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: > > > On Oct 05, Tuvas wrote: > > > I am looking for a good tutorial on how to extend python with C > > > code. I have an application built in C that I need to be able to use > > > in Python. I have searched through various sources, starting of > > I also covered the same subject in a more tutorial (but less deep and > extended) way in articles for "Py" magazine, but I don't know if those > old issues of it are still in print. > > > Alex -- http://mail.python.org/mailman/listinfo/python-list
Re: Perl's documentation come of age
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 PROTECTED]>, > > "Xah Lee" <[EMAIL PROTECTED]> wrote: > > > > > > >While I don't like to feed the trolls, I do find his posts amusing. He > >is like a spoilt child seeking attention. > > s/is like/is/ > -- > TZOTZIOY, I speak England very best. > "Dear Paul, > please stop spamming us." > The Corinthians -- http://mail.python.org/mailman/listinfo/python-list
Re: Learning Python
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/pipermail/tutor/ http://rgruet.free.fr/#QuickRef Paul DiRezze wrote: > I'm spending the next two weeks off and I'm looking to take a crack at > learning how to program in Python. Here's a list of the places I've > bookmarked: > > http://www.python.org/doc/ and more specifically > http://wiki.python.org/moin/ > http://wiki.python.org/moin/BeginnersGuide > http://www.python.org/doc/Intros.html > http://www.python.org/topics/ > > I'm looking for additional resources (links, names of books, > whatever...) that you think may help me out. > > I'm a hobby programmer using mostly BASIC(s) and some Java. I know > procedural programming and I know what encapsulation, inheritance and > polymorphism are but I have very little experience in using them as I've > written just a few Java programs (i.e., I guess I could use a primer in > OO programming). > > Any ideas? > > paul -- http://mail.python.org/mailman/listinfo/python-list
Re: where to get modules for python
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 use in Python. > thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a Python mentor
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 > over my code give suggestions on improvement, in style, logic, easier > ways of doing things etc. I am not really looking for hand holding as > much mentoring. I have purchased about every python book out and have > a list a mile long on my internet bookmarks. I believe I have a good > grasp of the fundamentals procedurally and I am fighting my way through > OOP. I am more at the stage of trying to pull things together into > programs that perform real world tasks. At one point I thought I saw > some place on one of the web site that did this kind of thing but I > can't find it now. > > Any help or suggestions welcomed > Len Sumnler -- http://mail.python.org/mailman/listinfo/python-list
Re: Here I am again, same old arguments
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/rCheatSheet.html http://www.onlamp.com/python/excerpt/PythonPocketRef/examples/python.pdf http://www.petefreitag.com/item/455.cfm http://diveintopython.org/appendix/tips.html > 3) Where do I find a command list, with syntax and all that fun stuff for > Python? I've explored > the python site to no end, but I can't seem to find a list. > -- http://mail.python.org/mailman/listinfo/python-list
Re: Python vs Ruby
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.com/weblog/2004/12/19/why-rails http://martinfowler.com/bliki/CollectionClosureMethod.html http://onestepback.org/articles/10things http://www.cincomsmalltalk.com/userblogs/avi/blogView?showComments=true&entry=3284695382 http://www.tbray.org/ongoing/When/200x/2005/08/27/Ruby http://pleac.sourceforge.net/ http://dev.rubycentral.com/faq/rubyfaq-2.html beza1e1 wrote: > Depends on your experience. If you know C,C++,Java and the whole -- http://mail.python.org/mailman/listinfo/python-list
Re: High Order Messages in Python
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 can pass to methods) with Proc#new or lambda. HTH vdrab wrote: > On a (somewhat) related note, > I've always wondered whether it is possible to emulate ruby blocks > using a python generator '+ alpha'. In my limited understanding of the > ruby block, the generator can inject values into a block, I suppose, > but what is the block itself? can it be a function? a class instance? > what would it look like? I am sure someone must have played around with > this. > any pointers? > cheers, > v. -- http://mail.python.org/mailman/listinfo/python-list
Re: Syntax across languages
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 certain quad-global whose name I don't > recall] in terms of relative distance", i.e., if I recall correctly, > "a=b" meant something like "abs(a-b)/(abs(a)+abs(b)) < quadEpsilon" or > thereabouts. Not too different from Numeric.allclose, except the latter > is "richer" (it takes both absolute and relative "epsilons", and also > implies an "and-reduce" if the objects being compared are arrays). > > > Alex -- http://mail.python.org/mailman/listinfo/python-list
Re: the PHP ternary operator equivalent on Python
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? > > Lots of ways, depending on your exact needs. What's best for what you > suggest is "a = {Huge : (False, True)[quantity > 90]}". Googling the http://www.python.org/doc/faq/programming.html#is-there-an-equivalent-of-c-s-ternary-operator -- http://mail.python.org/mailman/listinfo/python-list
Re: Precision for equality of two floats?
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 tolerance" http://www.boost.org/libs/test/doc/components/test_tools/floating_point_comparison.html -- http://mail.python.org/mailman/listinfo/python-list
Re: xpath support in python 2.4
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 standard > library? if not, what should I use? > > Thank you in advance, > Andrea Fiore a couple disconnected observations: - for install questions, you need to specify O/S, how you installed python, maybe something about RAM/CPU if performance constraints - check the blogalog about Xpath earlier this year: http://www.oreillynet.com/pub/wlg/6239 http://www.nelson.monkey.org/~nelson/weblog/tech/python/xpath.html -- http://mail.python.org/mailman/listinfo/python-list
Re: Eclipse best/good or bad IDE for Python?
[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 least a couple well: - vim, emacs - Wing, Komodo, Textmate (OS X only) - jedit, eclipse, - eric, PythonWin, kate, leo, etc. Check the wiki: http://wiki.python.org/moin/DevelopmentTools then google c.l.py for how your most desired features are supported: syntax coloring, SVN integrate, auto-complete (if you think it helps), pylint, threaded debugger, smart tags, object/class/code folding/browser etc. This guy spent a lot of time composing this: http://groups.google.com/group/comp.lang.python/browse_frm/thread/e3a65f2908bb8ba4/12ea5915f8f09546?q=IDE+subversion&rnum=1#12ea5915f8f09546 -- http://mail.python.org/mailman/listinfo/python-list
Re: Eclipse best/good or bad IDE for Python?
[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 reason I've found myself using IDLE is the > colorizing...I've found little support in other editors for builtins > having their own color. Do you mean keywords or modulenames/ classname that are builtin and from stdlib? colorization easily customized in Textmate, you can change color/ bold/italic /underlining of 32 categories of things (some not relevant to python, and italics not really that useful)): Comments, keywords, numers, user- defined constants, builtin consts, vars, strings, string interpolation, preproc'r line, preproc'r directive, func/meth name, class name, meth param, meth args, etc. In komodo, you can choose text color/font size/bold/italics (but not underline)for python for:bracebad, bracehighlite, classes, comments, control chars, default, functions, identifiers, indent guides, keywords,line numbers(?), numbers, operators, stderr/in/out, stringeol, strings. probably you can do similar things in vim,emacs,eclipse, wing, I haven't checked. Being able to bold/underline (Not relying solely on color) means you use fewer colors. Much easier on the eyes. -- http://mail.python.org/mailman/listinfo/python-list
Re: HTML parsing/scraping & python
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, including handling cookies, automated logins & following > > multiple web-link paths. Multiple threading would be a plus but not > > requirement. > [...] > > What's the application? > > > John I'll do your googling for you ;-p (The topic guide needs to be updated for mechanize, pamie, beautiful soup, clientTable, pullparser, etc.) http://www.python.org/topics/web/HTML.html http://blog.ianbicking.org/best-of-the-web-app-test-frameworks.html -- http://mail.python.org/mailman/listinfo/python-list
Re: Need help implementing an algorithm in python
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 represents the terms). Some terms in > these 4 terms combine to to make keywords (if we get the words in these > sub-terms they should equal to the keywords (e.g. terms ['kaiser > chiefs', 'i predict a riot', 'album'] combined make keywords ['kaiser', > 'chiefs', 'i', 'predict', 'a', 'riot', 'album']). There will be terms > leftover sometimes, not all terms are used. > > POSSIBLE ANSWER? > > How it searches for the answer is by combining terms from top to > bottom, then checking to see if the keywords match the combined terms. > > We start by with 1 combination (combine two terms). In the diagram, it > shows, t1 (term 1) combining with t2 then t3 then t4 (this is the red > line). If it can't find a match, it continues. It shows t2 combining > with t3 then t4 (dark green). If it can't find a match, it continues. > It shows t3 combining with t4 (light green). If by then it can't find a > match, we do the following: > > Now the above example was just 1 combination. It gets more complicated > because we are going to have to keep increasing the number of > combinations by 1 to find a match. We are going to keep doing this > until combinations >= len(keywords). So now its two combinations. t1 > will combine with t2 and t3. Check if its a match. If not continue. t1 > will combine with t3 and t4. check if its a match. t2 will combine with > t3 and t4. t3 and t4 can't combine by themselves because they are only > two terms so we skip them (we already did 2 term combinations). After > this if theres no match we do 3 combinations... all the way until > combinations >= len(keywords). > > == > > Here is what I have gotten so far: > http://pastebin.com/450352 > > I know exactly what to do its just I have no way of translating the > thought into programming code. If anybody can help at all I would > greatly appreciate it. > > Thanks. Be honest, is this a take-home final ? -- http://mail.python.org/mailman/listinfo/python-list
Re: Bitching about the documentation...
[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. SortingListsOfDictionaries > > Are we talking about the same Search box (at the top right of the > wiki page, and labeled "search"? Well, yes I did enter "sort" and > got (as I said) a long list of archived maillist postings. > > > Is it as good as Google ("site:wiki.python.org sort")? Unlikely, but it > > works fairly well. Granted, wikis are a different way of organizing content > > than static documentation with their nicely organized chapters, sections and > > indexes, but most of us around here are software engineer types, not tech > > writers, and since we're not paid to do any of this, we get to do anything > > we want. Most of us choose not to write documentation in our spare time. > > Go figure. If documentation's your thing, be my guest. Write new > > documentation, submit patches for existing documentation, rewrite it in > > Word. I don't care. Do whatever floats your boat. Just don't show up and > > bitch about the documentation if you're not willing to help. > > Well, I'm not totally sure but I think I would be willing to a least > try > contributing something. A large amount of the time I waste when > writing Python programs is directly attributable to poor documentation. > (To be fair Python is not the only software with this problem.) > > But, the standard responce of "don't complain, fix it yourself" is > bogus > too. There are plenty of people on this list willing to sing python's > praises, > for balance, there should be people willing to openly point out > python's > flaws. Documentation is certainly one of them. And I was correcting a > posting that explicitly said there was exceptionaly good information in > that Howto. That was just plain wrong. > > > Oh, did I mention that there's an Edit link at the top of almost every page > > on the wiki and that creating new pages is pretty simple? (Try searching > > the wiki for "WikiCourse".) Contributing new content to the existing more > > static documentation isn't all that hard either. > > As I said, I think wiki's suck. On almost every one I find the > information > disorganised, very spotty in coverage, extremely variable is qualilty > of writing, and often seeming like a conversation walked into in the > middle of. I still haven't figured out how to get to the Python wiki's > howto's by navigating from the front page. IMO wikis are best used > to collect information for later editing and inclusion into more formal > documentation. (That's a little stronger than my actual opinion but > it's too late right now more me to express it any better.) > > > If you prefer the latest documentation, bookmark this page: > > > > http://www.python.org/dev/doc/devel/index.html > > Thanks I will keep that in mind. But the obvious risk is that it > will refer to language features and changes not in the current > version. > > > That's updated every few months, more frequently as new releases approach. Well, the docs are what they are, I can find what I need. 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. So either spend a little money, buy the Nutshell and Cookbook, (or, look at dozens of books, and many excellent ones: http://www.amazon.com/exec/obidos/tg/browse/-/285856/ref=dp_brlad_entry/103-3311503-6360648 or spend some time, look at the 2 complete intro books published on the web, there's also: http://awaretek.com/tutorials.html http://www.vex.net/parnassus/ http://directory.google.com/Top/Computers/Programming/Languages/Python/Modules/ http://cheeseshop.python.org/ http://the.taoofmac.com/space/Python/Grimoire http://dmoz.org/Computers/Programming/Languages/Python/Modules/ http://aspn.activestate.com/ASPN/Cookbook/Python http://python.codezoo.com/ http://sourceforge.net/softwaremap/trove_list.php?form_cat=178&xdiscrim=178 Here's some FAQ/gotchas: http://www.ferg.org/projects/python_gotchas.html http://zephyrfalcon.org/labs/python_pitfalls.html http://zephyrfalcon.org/labs/beginners_mistakes.html http://www.python.org/doc/faq/ http://diveintopython.org/appendix/abstracts.html http://www.onlamp.com/pub/a/python/2004/02/05/learn_python.html http://www.norvig.com/python-iaq.html http://www.faqts.com/knowledge_base/index.phtml/fid/245 http://amk.ca/python/writing/warts So i don't think you ca really say the lang spec, the VM and the dev environment in general are poorly documented. -- http://mail.python.org/mailman/listinfo/python-list
Re: Bitching about the documentation...
[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 C, yes, that's (close to) what I'm telling you. > rurpy> Perl I learned exclusively from the man pages, before WWW. I > rurpy> used it for 10 years before I ever bought a printed book. C I > rurpy> learned exclusively from the K&R book. > > That's about the same for me, except Perl never "stuck". > > rurpy> I tried to learn Python from the "official" docs but found it > rurpy> impossible. > > I did as well, though the docs as they existed in 1993 or so (that is > pre-Lutz, pre-Beasley). > > > rurpy> I bought Beasley's book (I think this may have predated > rurpy> Martelli's book but I don't remember) which I thought quite good > rurpy> and which I still turn to before the Python docs in most cases. > > Like other free software, you can choose to figure things out yourself (use > the source Luke) or pay someone to help you out. I'm not using this as an > excuse for poor Python docs. > > rurpy> That's a very good list and I will save a copy, thanks. But what > rurpy> does it have to do with Python's documentation? > > I'm sure you could find similar lists for Perl, C, Ruby, Tcl, Java, C++, C#, > etc. Does that mean their documentation stinks? Maybe. Maybe not. It > just means a lot of people have somewhat different ways of tackling the same > problem. > > Skip Skip: good points orig qvetcher: Well, I won't have time til, maybe early 2007 to debate the meaning of "free software","official docs", is buying K&R buying a book? In the meantime, use the resources, Luke (i think i've been on usenet too long... signing out) -- http://mail.python.org/mailman/listinfo/python-list
Re: extract python install info from registry
> > 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): http://www.microsoft.com/technet/scriptcenter/scripts/python/os/registry/osrgpy01.mspx -- http://mail.python.org/mailman/listinfo/python-list
Re: How to get the extension of a filename from the path
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 you for help > L. minor footnote: windows paths can be raw strings for os.path.split(), or you can escape "/" tho Tom's examp indicates unescaped, non-raw string works with splitext() import os.path # winpath='C:\\Pictures\\MyDocs\\test.txt' winpath=r'C:\Pictures\MyDocs\test.txt' fpath,fname_ext=os.path.split(winpath) print "path: %s ; fname and ext: %s"%(fpath, fname_ext) ext=fname_ext.split(".")[-1] print ext -- http://mail.python.org/mailman/listinfo/python-list
Re: How to get the extension of a filename from the path
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 / 2 is probably py 2.0 or 2.1, shd still work) -- http://mail.python.org/mailman/listinfo/python-list
Re: Catching error text like that shown in console?
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 to string, but this doesn't always work. I > really don't have programs complex enough to do a lot of specific catching at > this point - I just want to know: > 1. something failed > 2. here's the error output/traceback > > Anyone know how I can do this or if it's possible? Didn't find anything > doing a > search so I figured I'd hit up the experts. > > Thanks. > > -Pete Schott I don't have an exact answer for you, but since no one else replied: look at subprocess module, and os.popen4() http://docs.python.org/lib/os-newstreams.html#os-newstreams http://docs.python.org/lib/module-subprocess.html http://mail.python.org/pipermail/python-list/2005-October/305671.html Hint: mentioning your O/S is pretty essential; for many issues, what version of py and how you installed it also -- http://mail.python.org/mailman/listinfo/python-list
Re: a sequence question
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
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 / python / SSH shdn't be a big deal, tho. -- http://mail.python.org/mailman/listinfo/python-list
Re: The next Xah-lee post contest
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?
http://dmoz.org/Computers/Programming/Languages/Python/Ports/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Help implementing an idea
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?
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.org/mailman/listinfo/python-list
Re: Create our own python source repository
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 certain argument I'd prefer an application fully > >>explained (also if not covering all the features) to a more general > >>tutorial with only brief and unrelated code snippets. > >>Unfortunately, that's not the way things are normally done, because it > >>is much harder to build a useful application and fully comment it > > > > > > A part the Cookbook, I know of at least two Python books taking the > > approach you describe: > > > > 1. Dive into Python (Pilgrim) > > 2. Programming Python (Lutz) > > > > Dive into Python is free (and even translated in Italian on > > www.python.it, IIRC) > > > > Michele Simionato > > > > Not free, but: > > Practical Python, published by the same press as the Pilgrim, steps > through incremental approaches to large (by book standards) > applications. From the author's site: > > "Hetland devotes the second half of the book to project development, > taking great care to choose a series of ten increasingly complex > applications that are of timely and wide-ranging interest to > burgeoning and expert developers alike. Project focus includes > automated document conversion, newsgroup administration, graphical PDF > document generation, remote document maintenance, the creation of a > peer-to-peer system with XML-RPC, database integration, and GUI and > game development. > " > http://hetland.org/writing/practical-python/ > > best, > > Brian vdB -- http://mail.python.org/mailman/listinfo/python-list
Re: tree functions daily exercise: Table
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 compelling. Please do not post the code on sourcefurge or whatever you call that open source thing until you speak with us. S. Ballmer -- http://mail.python.org/mailman/listinfo/python-list
Re:
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
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
a ring buffer? http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/68429 -- http://mail.python.org/mailman/listinfo/python-list
Re: Seeking IDE
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.python.org/mailman/listinfo/python-list
Re: Seeking IDE
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 -- http://mail.python.org/mailman/listinfo/python-list
Re: Seeking IDE
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?
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
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?
+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 menu- & toolbars: http://www.activestate.com/Products/Komodo/?_x=1 (Maybe look at WingIDE, too, i've heard it's good) And the python quick refs: http://rgruet.free.fr/PQR24/PQR2.4.html http://www.onlamp.com/pub/a/python/excerpt/PythonPocketRef/index.html -- http://mail.python.org/mailman/listinfo/python-list
Re: Learning Python - IM Wiki
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 help here, the Python community is *very* helpful. > > If you prefer a Wiki, try www.wikispaces.org for free Wiki hosting. > > Bye. > -- > > Miki Tebeka <[EMAIL PROTECTED]> > http://tebeka.bizhat.com > The only difference between children and adults is the price of the toys -- http://mail.python.org/mailman/listinfo/python-list
Re: Web App like Google
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
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 queries and the database content. Much easier conceptually, easier on db server too. and there's lots of good python packages/python bindings. http://www.xapian.org/ 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
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 other NLP packages: http://www.ellogon.org/ http://web.media.mit.edu/~hugo/montylingua/ -- http://mail.python.org/mailman/listinfo/python-list
Re: problems with python 2.4 help
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?
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..
look at 'path' module too http://www.jorendorff.com/articles/python/path/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Python IDE
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?
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?
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
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
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://mail.python.org/mailman/listinfo/python-list
Re: command line argument passing
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
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
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/Recipe/52302 And think about possible legal ramifications of port scanning hosts or possibly getting your IP blacklisted by a host's firewall, before you do it. -- http://mail.python.org/mailman/listinfo/python-list
Re: decoding html
http://docs.python.org/lib/module-htmlentitydefs.html -- http://mail.python.org/mailman/listinfo/python-list
Re: Using python to runother programs
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/Recipe/279003 -- http://mail.python.org/mailman/listinfo/python-list
Re: Neat access to db query results
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/Python http://www.pypackage.org/packages http://dmoz.org/Computers/Programming/Languages/Python/Modules/ http://www.vex.net/parnassus/ -- http://mail.python.org/mailman/listinfo/python-list
Re: PostgreSQL & Python vs PHP
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/wikis/semi_intern/BasicReferenceOfMoreLanguages -- http://mail.python.org/mailman/listinfo/python-list
Re: PostgreSQL & Python vs PHP
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, transactions, dirtiness, etc. etc Also if you build your questions to this newsgroup on past threads you've read, you will get absolute superb information, I guarantee it. -- http://mail.python.org/mailman/listinfo/python-list
Re: FAQ?
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://www.faqts.com/knowledge_base/index.phtml/fid/245 http://amk.ca/python/writing/warts -- http://mail.python.org/mailman/listinfo/python-list
Re: Getting the --options of configure on installed python
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
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.
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
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?
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.org/mailman/listinfo/python-list
Re: writing a web client
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
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 warnings: Practical Py (Hetland), Text Processing (Mertz). -- http://mail.python.org/mailman/listinfo/python-list
Re: Newer than a Newbe
http://www.python.org/cgi-bin/moinmoin/PythonHosting -- http://mail.python.org/mailman/listinfo/python-list
Re: Python IDE's
(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 throw in your O/S of choice. 2005 threads have volumes written about vim,emacs,eclipse, eric, komodo, wing, Jedit, SPE, KDevelop, others. Then send feedback to the wiki: http://wiki.python.org/moin/IntegratedDevelopmentEnvironments (oh, and don't expect a perfect Visual Studio/IntelliJ/eclipse for java workalike) -- http://mail.python.org/mailman/listinfo/python-list
Re: namespaces
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
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://www.personal.psu.edu/staff/i/u/iua1/python_reviews.html http://subway.python-hosting.com/ http://snakelets.sourceforge.net/ http://www.cherrypy.org/ http://spyce.sourceforge.net/ http://www.mems-exchange.org/software/quixote/ http://mail.python.org/pipermail/medusa-dev/2003/000843.html http://www.awaretek.com/tutorials.html#firedrop http://www.webwareforpython.org/ http://wiki.webwareforpython.org/thiswiki.html http://moinmoin.wikiwikiweb.de/ http://webservices.xml.com/pub/a/ws/2003/05/13/email.html http://www.oreillynet.com/pub/au/1099 http://www.divmod.org/Home/Projects/Lupy/ -- http://mail.python.org/mailman/listinfo/python-list
Oreilly CodeZoo
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 ?
(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
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 ?
(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
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 really great start overall. http://python.codezoo.com/news.csp -- http://mail.python.org/mailman/listinfo/python-list
Re: "Ordered" dicts
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. -- http://mail.python.org/mailman/listinfo/python-list
Re: help in algorithm
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
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/regex/ http://gnosis.cx/publish/programming/regular_expressions.html also look into ActiveStateKomodo reg ex debugger ( I think WIng IDE has it too -- http://mail.python.org/mailman/listinfo/python-list
Re: How do these Java concepts translate to Python?
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?
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/beginners_mistakes.html http://www.onlamp.com/pub/a/python/2004/02/05/learn_python.html http://www.norvig.com/python-iaq.html http://www.faqts.com/knowledge_base/index.phtml/fid/245 http://amk.ca/python/writing/warts -- http://mail.python.org/mailman/listinfo/python-list
Re: Jargons of Info Tech industry
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?
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, etc http://www.artima.com/ -- http://mail.python.org/mailman/listinfo/python-list
Re: up to date books?
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-rails http://martinfowler.com/bliki/CollectionClosureMethod.html Also, Hal Fulton's "Ruby Way" book has a good "Python vs. ruby syntax" appendix, if it's still in print -- http://mail.python.org/mailman/listinfo/python-list
Re: import __main__ where can i find a module called "__main__.py"?
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
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 .bashrc). I can't remember if anything like that happens in windows. -- http://mail.python.org/mailman/listinfo/python-list
Re: network programming
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
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.
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?
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 <[EMAIL PROTECTED]> wrote: > > I need to convert a python file to an '.exe'. > > A Python program is executable only in the context of a Python > interpreter. Python is a dynamic language; it can't be compiled to > native machine code. > > > I've tried py2exe, and I don't like it because you have to include > > that huge dll and libraries. > > That's the Python interpreter environment, and the standard Python > library that is made available in the Python environment. Without > them, your program isn't executable. > > What were you hoping for? > > -- > \ "If trees could scream, would we be so cavalier about cutting | > `\ them down? We might, if they screamed all the time, for no good | > _o__) reason." -- Jack Handey | > Ben Finney -- http://mail.python.org/mailman/listinfo/python-list
Re: python and ajax
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 > > As all the others have said already, AJAX has nothing to do with python, > but everything with JavaScript. > You might want to check out MochiKit (http://mochikit.com), a lightweight > JavaScript library written by Bob Ippolito. Bob did a very good job in > turning programming JS into a more python like experience. > - stephan -- http://mail.python.org/mailman/listinfo/python-list
Re: array of arrays question
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_mistakes.html http://www.python.org/doc/faq/ http://diveintopython.org/appendix/abstracts.html http://www.onlamp.com/pub/a/python/2004/02/05/learn_python.html http://www.norvig.com/python-iaq.html http://www.faqts.com/knowledge_base/index.phtml/fid/245 http://amk.ca/python/writing/warts Meo wrote: > yes, > > thank you for your help -- http://mail.python.org/mailman/listinfo/python-list
Re: how to join two Dictionary together?
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 King -- http://mail.python.org/mailman/listinfo/python-list
Re: graphical or flow charting design aid for python class development?
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 wondering if anyone can suggest a > simple graphical or flowcharting tool that they use to organize their > class and program design? Because of a 55 mph head-on accident a few > years back, I have short term memory problems, so flipping back and > forth between pages of code is next to impossible for me to keep > straight. A simple graphical model would allow me to 'see' everything > in one view, and better organize my resulting code. I have had limited > success using pydoc to view my classes, but it's not really much help in > development, just review, and sometimes there is too much info. > > I have used editors for other languages that allow the view to expand > and collapse functions/methods (like message threads here on the board), > which help, but I haven't seen anything like this for python. > > Thanks for any suggestions. > > Bill -- http://mail.python.org/mailman/listinfo/python-list
Re: graphical or flow charting design aid for python class development?
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/mailman/listinfo/python-list