Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-02-01 Thread gene tani
On Jan 30, 4:40 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote: > I do not understand why no one has answered the following question: > > Has anybody worked with Gene Expression Programming > > David Blubaugh > David (may i call you David?) May i suggest you lock your workstation when you

Re: Did you read about that?

2007-05-06 Thread gene tani
On May 6, 6:26 am, "Martin P. Hellwig" <[EMAIL PROTECTED]> wrote: > Dustan wrote: > > On May 6, 8:20 am, Steven D'Aprano > > <[EMAIL PROTECTED]> wrote: > >> On Sun, 06 May 2007 04:53:23 -0700, Dustan wrote: > >>> SPAM! > >>> SPAM! > >>> SPAM! > >>> SPAM! > >>> SPAM! > >>> SPAM! > >>> SPAM! > >>> SP

Re: NLTK, Random Sentence Generators?

2007-04-10 Thread gene tani
On Apr 10, 1:36 am, Passer By <[EMAIL PROTECTED]> wrote: > Has any created or not of examples of random sentence generators using > n-gram models (or other models might be interesting). > > I know of one example from a course at MIT, but besides that nothing. > > Any help would be great. Markov ch

Re: Custom Python Runtime

2007-04-08 Thread gene tani
On Apr 6, 4:52 pm, "Jack" <[EMAIL PROTECTED]> wrote: > Since the full installation of Python (from either the standard installer or > ActiveState installer) is too big for my intended use, I'd like to build a > custom distribution of Python for Windows platform, omitting some lib files, > such as a

Re: Sort by domain name?

2006-10-02 Thread gene tani
Paul Rubin wrote: > "js " <[EMAIL PROTECTED]> writes: > > Here, domain name doesn't contain subdomain, > > or should I say, domain's part of 'www', mail, news and en should be > > excluded. > > It's a little more complicated, you have to treat co.uk about > the same way as .com, and similarly for

Re: RegexBuddy (anyone use this?)

2006-09-16 Thread gene tani
[EMAIL PROTECTED] wrote: > vbgunz wrote: > > > > Has anyone tried this thing.. > > > > http://www.regular-expressions.info/regexbuddy.html > > > > I use kodos http://kodos.sourceforge.net/. I firmly agree using a tool > > like this to learn regular expressions will not only save you a > > ridiculo

Re: Python Syntax Highlighting Module

2006-08-21 Thread gene tani
[EMAIL PROTECTED] wrote: > Hello, > I have an idea for a project which involves an editor that supports > syntax highlighting. This would be for any language, particularly php, > html, css, etc. I would like to write this program using python. It > would only make sense to base this upon existi

Re: Eval (was Re: Question about using python as a scripting language)

2006-08-09 Thread gene tani
Chris Lambacher wrote: > On Wed, Aug 09, 2006 at 11:51:19AM -0400, Brendon Towle wrote: > I don't disagree with you. The problem is that the obvious way to do it > (eval) is a big security hole. In this case you are trusting that no one > inserts themselves between you and the website providing

Re: technique to enter text using a mobile phone keypad (T9 dictionary-based disambiguation)

2006-08-08 Thread gene tani
Petr Jakeš wrote: > I have a standard 12-key mobile phone keypad connected to my Linux > machine as a I2C peripheral. I would like to write a code which allows > the text entry to the computer using this keypad (something like T9 on > the mobile phones) > > According to the http://www.yorku.ca/mac

Re: Design Patterns in Python

2006-08-04 Thread gene tani
Gabriel Genellina wrote: > Hello > > Most authors talk about Java/C++, and describe patterns used as a > workaround to their static class model; the dynamic nature of Python > allows for trivial implementations in some cases. Eckel's thinking in Python too http://www.mindview.net/Books/TIPython

Re: Design Patterns in Python

2006-08-04 Thread gene tani
Gabriel Genellina wrote: > Hello > > Most authors talk about Java/C++, and describe patterns used as a > workaround to their static class model; the dynamic nature of Python > allows for trivial implementations in some cases. > I've seen some design patterns examples on the ActiveState site, and >

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread gene tani
[EMAIL PROTECTED] wrote: > Hi all. I've been try to learn ruby for a few months but I'm about > ready to give up. The available books either assume a programming > background, or are out of date. Anyway, http://www.awaretek.com/book.html -- http://mail.python.org/mailman/listinfo/python-list

Re: metaclass : parse all class once before doing anything else ?

2006-07-30 Thread gene tani
Paddy wrote: > Laurent Rahuel wrote: > > > > Laurent. > > I, like Diez am unsure of why you would need what you have asked for, > but maybe this will help. > > You can keep track of all instances of a class by this kind of thing: > > >>> class C1(object): > ... inst = [] > ... def __init__(se

Re: Restricted Access

2006-07-11 Thread gene tani
Georg Brandl wrote: > Cameron Laird wrote: > > In article <[EMAIL PROTECTED]>, > > iapain <[EMAIL PROTECTED]> wrote: > > . > > . > > . > >>Does that mean there is no way to implement restricted enviorment? > > . > >

Re: first book about python

2006-07-09 Thread gene tani
IOANNIS MANOLOUDIS wrote: > I want to learn python. > I plan to buy a book. I always find printed material more convenient than > reading on-line tutorials. > I don't know PERL or any other scripting language. I only know some BASH > programming. I am looking for a book which will help me get star

Re: python guru in the Bay Area

2006-07-01 Thread gene tani
bruce wrote: > hi... > > is there someone in the Bay Area who knows python, that I can talk to ... I > have the shell of a real basic app, and I'd like someone who can walk me > through how to set it up. > > i'm talking about passing arrays, setting up global data, etc... basically, > if i can cre

Re: search engine

2006-06-24 Thread gene tani
George Sakkis wrote: > vinodh kumar wrote: > > hai all, > > i am student of computer science dept. i have planned to > > design a search engine in python. i am seeking info about how to > > proceed further. > > i need to know what r the modules that can be used. > > There is not

Re: crawlers in python with graphing?

2006-06-20 Thread gene tani
bryan rasmussen wrote: > Hi, > > Sorry, was imprecise, I meant not save the downloaded page locally. > There probably isn't one though, so I should build one myself. > Probably just need a good crawler that can be set to dump all links > into dataset that I can analyse with R. > > Cheers, > Bryan

Re: any subway experiences

2006-06-17 Thread gene tani
a wrote: > thanks for reading Yah, the mass transit systems are, um, challenging but workable in many US cities. Canada's much better BUT the Subway framework that's not developed anymore had a dev mailing list: http://groups.google.com/group/subway-devel Google for "subway web framework". An

Re: Looking for examples related to advanced python string, list and map operations

2006-06-15 Thread gene tani
A.M wrote: > Hi, > > > > Is there any online resource that gives examples about advanced python > string, list and map operations? > http://goog-goopy.sourceforge.net/goopy.functional.html#-variance http://oakwinter.com/code/functional/documentation.html -- http://mail.python.org/mailman/listin

Re: learning python idioms

2006-06-11 Thread gene tani
bayerj wrote: > Hi, > > If you switched from java to python the best point to start is > http://dirtsimple.org/2004/12/python-is-not-java.html. > > Greets, > -Justin yup, you could spend weeks reading the Language Wars: http://www.google.com/search?hl=en&q=site%3Aartima.com+java+python&btnG=Goog

Re: learning python idioms

2006-06-11 Thread gene tani
[EMAIL PROTECTED] wrote: > After several years developing in Java, I've begun to switch to Python > for several of my new projects as I have found the language quite > interesting. I've read several tutorials and implemented a few sample > programs and I've found that Python enables one to progra

Re: Extended zip() for lists

2006-06-08 Thread gene tani
Florian Reiser wrote: > Hello, > > I have 4 lists: a, b, c and d > Out of this 4 lists I want to build a table (e.g. list of lists): > > a|b|c|d > --- > a1|b1|c1|d1 > a1|b2||d2 > > You see: the lists are not equally sized. > Is there a command which fills up the shorter

Re: newbie: python application on a web page

2006-06-07 Thread gene tani
puzz wrote: > Hi all, > I'd also appreciate a link to a beginner forum > http://www.daniweb.com/techtalkforums/forum114.html and (not really a beginner forum, not really high volume, either) http://community.livejournal.com/python_dev/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing to a certain line?

2006-06-06 Thread gene tani
bruno at modulix wrote: > > Else - if you want/need to stick to human readable flat text files - at > least write a solid librairy handling this, so you can keep client code > free of technical cruft. > > HTH > -- > bruno desthuilliers for human readable, you might want to look at reading and wri

Re: Python to C converter

2006-06-05 Thread gene tani
Rene Pijlman wrote: > [EMAIL PROTECTED]: > >I have an application return in python. I want this to be > >converted to C. > > http://www.python.org/doc/faq/general/#can-python-be-compiled-to-machine-code-c-or-some-other-language > http://pyfaq.infogami.com/can-python-be-compiled-to-machine-code-c-

Re: Max function question: How do I return the index of the maximum value of a list?

2006-06-04 Thread gene tani
jj_frap wrote: > I'm new to programming in Python and am currently writing a three-card > poker simulator. I have completed the entire simulator other than > determining who has the best hand (which will be far more difficult > than the aspects I've codes thus far)...I store each player's hand in

Re: ANN: PQRC - Python Quick Reference Card - v 0.55

2006-06-04 Thread gene tani
Laurent Pointal wrote: > [for those who dont read clp.announce] > > The Python Quick Reference Card (PQRC) aims to provide a printable quick > reference documentation for the Python language and some of its main > standard libraries (currently for Python 2.4). > > PQRC tries to group informations

Re: Are there something like "Effective Python"?

2006-06-02 Thread gene tani
Mike Meng wrote: > Hi all, > I just finished reading Learning Python 3rd ed, and am doing my > first Python application, which retrieves and process text and XML > documents from Web. Python helped me to write the application in a few > hours, I'm very happy with its productivity. But the p

Re: summarize text

2006-05-29 Thread gene tani
robin wrote: > hello list, > > does anyone know of a library which permits to summarise text? i've > been looking at nltk but haven't found anything yet. any help would be unclear what you're asking, maybe look at: http://www.cs.waikato.ac.nz/~ml/weka/index.html http://www.kdnuggets.com/software

Re: Can any body help me

2006-05-26 Thread gene tani
satish wrote: > how to write script for these > > 1.Given a test file containing lines of words such as (abc, abb, > abd,abb, etc), write a script that prints, in order of frequency, how > many times each word appears in the file. > > 2. > Write a script running in an endless loop that pings an IP

Re: Daily python url archives

2006-05-19 Thread gene tani
gene tani wrote: > Bobert wrote: > > Hi, > > > > Do you know by chance if someone has archives from the "daily python url" > > feed (http://www.pythonware.com/daily/rss2.xml) ? An archive of the last 3 > > or 6 months would be most useful to me. > &g

Re: Daily python url archives

2006-05-19 Thread gene tani
Bobert wrote: > Hi, > > Do you know by chance if someone has archives from the "daily python url" > feed (http://www.pythonware.com/daily/rss2.xml) ? An archive of the last 3 > or 6 months would be most useful to me. it gets picked up on Swik.net, with a bunch of other stuff: http://swik.net/Pyt

Re: who can give me the detailed introduction of re modle?

2006-05-19 Thread gene tani
softwindow wrote: > the re module is too large and difficult to study it's powerful, takes a little time to work with. Make yourself aware of the VERBOSE switch, RE debuggers in komodo and Wing, string functions/methods and when you need a full parser, also http://www.awaretek.com/tutorials.htm

Re: How to guess the language of a given textstring?

2006-05-15 Thread gene tani
Roman wrote: > Does anybody know an easy way (or tool) to guess the language of a > given text string? > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/355807 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/326576 -- http://mail.python.org/mailman/listinfo/python-list

Re: python rounding problem.

2006-05-07 Thread gene tani
Erik Max Francis wrote: > chun ping wang wrote: > > > Hey i have a stupid question. > > > > How do i get python to print the result in only three decimal place... > > > > Example>>> round (2.9954254, 3) > > 2.9951 > > > > but i want to get rid of all trailing 0's..how would i d

Re: Measure memory usage in Python

2006-05-01 Thread gene tani
Rune Strand wrote: > gene tani wrote: > > Rune Strand wrote: > > > Is there a way to measure how much memory a data structure use? For > > > instance, what is the footprint of a particular list object like > > > [0,1,2,3,4,5,6,7,8,9]? > > > > i ha

Re: Measure memory usage in Python

2006-04-30 Thread gene tani
Rune Strand wrote: > Is there a way to measure how much memory a data structure use? For > instance, what is the footprint of a particular list object like > [0,1,2,3,4,5,6,7,8,9]? i have a note to try this, but haven't got around to it, if you want to blog/post http://pysizer.8325.org/ -- htt

Re: (was Re: Xah's Edu Corner: Criticism vs Constructive Criticism)

2006-04-26 Thread gene tani
John Bokma wrote: > Roedy Green <[EMAIL PROTECTED]> wrote: > > I leave that up to Xah's ISP/USP and hosting provider to decide :-D > he's solidified position as top troll of 2003-2006 -- http://mail.python.org/mailman/listinfo/python-list

Re: Coming from delphi - looking for an IDE - willing to spend money

2006-04-24 Thread gene tani
Just call me James wrote: > Hi, > > Coming away from the luxury of the delphi IDE has been something of a > shock. > > As a consequence I've become aware that maybe I need to spend some > money on a python IDE. You can google for lots of IDE reviews, here's a start http://www.awaretek.com/tutori

Re: Looking for resources for making the jump from Java to Python easier and more productive

2006-04-24 Thread gene tani
Ant wrote: > Take a look at the newgroup archives over the last week or two - there > seem to have been a glut of people coming from Java to Python and > asking the same sort of questions. There were some links to a bunch of > Python 'gotcha' pages which will be useful. > Here's a few gotchas whi

Re: any update to this?

2006-04-17 Thread gene tani
[EMAIL PROTECTED] wrote: > hi > i was looking at this : > http://www.python.org/doc/essays/comparisons.html > on comparisons of python and other languages? are there any updates to > this doc? or is there > other reliable source for such comparison elsewhere? thanks lots of blogs out there, check

Re: Python certification/training

2006-04-17 Thread gene tani
aum wrote: > > Makes me wonder, just out of curiosity - are there any universities > actually teaching python (in anything bigger than a small elective > module), or are they all still owned by Java, C++, C# and Visual Basic? > like NLTK, maybe? http://www.ldc.upenn.edu/sb/home/papers/nltk.pdf

Re: Help for a complete newbie

2006-04-15 Thread gene tani
Ralph H. Stoos Jr. wrote: > Tim, > > After a little more research, I did find that out. It is funny, but in > the tutorial "Non-Programmers Tutorial For Python", it makes no mention > of the indentation issue, at least in the beginning portions which I had > read. > > This is an age old problem o

Re: python on Mac

2006-04-06 Thread gene tani
Lou Pecora wrote: > YIKES! Don't do that. Don't mess with Apple's python. Not > recommended. Check the MacPython FAQ and Wiki pages. Python 2.4 was > installed in /usr/local/bin. You should put that in your $PATH variable > Before /usr/bin. That will cause the new Python to be launched. >

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Apr 4)

2006-04-04 Thread gene tani
Peter Otten wrote: > The old Python "To-Do List" now lives principally in a > SourceForge reincarnation. > http://sourceforge.net/tracker/?atid=355470&group_id=5470&func=browse > http://python.sourceforge.net/peps/pep-0042.html > Thanks, very nice summary. One thing, the

Re: python tutorial: popular/informative Python sites ?

2006-04-01 Thread gene tani
Fredrik Lundh wrote: > the "what now?" page in the tutorial > > to replace it with something else, what should that be? what sites > do pythoneers and pythonistas visit these days? > > post your suggestions in this thread or on this page: > Pilgrims tricks/ips http://diveintopython.org/appendix/t

Re: how to comment lot of lines in python

2006-03-31 Thread gene tani
[EMAIL PROTECTED] wrote: > Like in C we comment like > /* > Bunch of lines of code > */ > scite has a feature where you modify your delimiter in block comments, i.e. what comes after "#" http://scintilla.sourceforge.net/SciTEDoc.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing csh scripts with python

2006-03-29 Thread gene tani
Dave Benjamin wrote: > On Tue, 28 Mar 2006, David Hirschfield wrote: > > > I need to be able to parse the script, modify some variable settings and > > then write the script back out so that the only changes are the > > variables I've modified (comments, ordering of statements, etc. must > > remai

Re: What's The Best Editor for python

2006-03-25 Thread gene tani
gene tani wrote: > Christoph Zwerschke wrote: > > Just because nobody has mentioned them so far: > > http://spyced.blogspot.com/2006/02/pycon-python-ide-review.html -- http://mail.python.org/mailman/listinfo/python-list

Re: What's The Best Editor for python

2006-03-25 Thread gene tani
Christoph Zwerschke wrote: > Just because nobody has mentioned them so far: > > - SciTe is a perfect editor for Pyhton on Win and Linx > - PyScripter is a wonderful IDE (but only on Win) > - DrPython is a nice platform independent editor/mini-IDE > http://www.artima.com/forums/flat.jsp?forum=106

Re: What's the best way to learn perl for a python programmer?

2006-03-24 Thread gene tani
vj wrote: > I've been given a project which requires writing scripts that need to > be run on over 3000 servers. Only about 15% of them have python > installed on them. While all/most of them will have perl. > > I'll try and do as much as possible in pexpect but am sure I'll have do > some signifi

Re: Spidering Hacks for Python, not Perl

2006-03-21 Thread gene tani
gene tani wrote: > Duncan Booth wrote: > > Enigma Curry wrote: > > a couple more http://cheeseshop.python.org/pypi/Orchid/1.0 http://cheeseshop.python.org/pypi/webstemmer/0.5.0 -- http://mail.python.org/mailman/listinfo/python-list

Re: Spidering Hacks for Python, not Perl

2006-03-21 Thread gene tani
Duncan Booth wrote: > Enigma Curry wrote: > > > I've been looking for similar stuff recently. I haven't found much, but > > this is the list of links I've come across so far: > > http://awaretek.com/nowak/mygale.html http://cheeseshop.python.org/pypi/spider.py/0.5 http://sig.levillage.org/?p=599

Re: how to get 20000 html pages content quickly from one server?

2006-03-15 Thread gene tani
JuHui wrote: > Hi > I want to get 20 html pages content from one server, you know > urllib.urlopen need construct network connection, it will be very > slowly, how to speed up this function? > I try to using multi-thread, it speed up, but I want to quickly more, > any idea about it? > Thank

Re: Python source cross reference doc generator?

2006-03-11 Thread gene tani
Colin J. Williams wrote: > Harry Fuecks wrote: > > Hi All, > > > > Wondering if a tool exists to generate "cross reference" documentation > > for Python code bases? > > > > Particularly after something like phpxref - > > http://phpxref.sourceforge.net/ : written in Perl, scans a bunch of > > PHP s

Re: Learning different languages

2006-03-09 Thread gene tani
Harry George wrote: > > re the OP: > > I find I have to concentrate on one language for a while (several > programs) to ramp up on the syntax, semantics, idioms, and libraries. > Then I'm safe to wander off and learn other languages. When it comes > time to do a project, I use one main language u

Re: Learning different languages

2006-03-07 Thread gene tani
Rich wrote: > Hi, > > (this is a probably a bit OT here, but comp.lang seems rather > desolated, so I'm not sure I would get an answer there. And right now > I'm in the middle of learning Python anyway so...) > > Anyway, my question is: what experience you people have with working > with different

Re: Checking function calls

2006-03-07 Thread gene tani
Roy Smith wrote: > Fredrik Tolf wrote: > >If I have a variable which points to a function, can I check if certain > >argument list matches what the function wants before or when calling it? > > > >Currently, I'm trying to catch a TypeError when calling the function > >(since that is what is rais

Re: Fetch info from website and write to txt file.

2006-03-06 Thread gene tani
Pitmairen wrote: > I want to make a program that get info from a website and prints it out > in a txt file. > > I made this: > > import urllib > f = urllib.urlopen("http://www.imdb.com/title/tt0407304/";) path of even less resistance http://imdbpy.sourceforge.net/ -- http://mail.python.org/mail

Re: Fetch info from website and write to txt file.

2006-03-06 Thread gene tani
Pitmairen wrote: > I want to make a program that get info from a website and prints it out > in a txt file. > > I made this: > > import urllib > f = urllib.urlopen("http://www.imdb.com/title/tt0407304/";) > s = f.read() > k = open("test.txt","w") > k.write(s) > k.close() > f.close() > > That saves

Re: automatic referencing for variables?

2006-03-06 Thread gene tani
[EMAIL PROTECTED] wrote: > i am SURE i am using the wrong terminology... > > but what i would like to do is something like this: > > pageContent=''' > {toc} > h1. Header Section > h2. Date: > {metadata:date}'''+date+'''{metatdata} > h2. Author: > {metadata:author}Len Sweet{metadata} > h1.

Re: Simulation Programming Skills and Python

2006-03-06 Thread gene tani
Richard Blackwood wrote: > Hello all. I have a few questions about simulation programming. One, do > all programmers know to how to code a simulation? By simulation I mean a > model of real world relationships (i.e. like Civilization which is a > simulation of ruling nations through various histor

Re: Papers on Dynamic Languages

2006-03-05 Thread gene tani
Jay Parlar wrote: > > All that looks fantastic, and I'd forgotten there was a paper on > Shedskin. > > Thanks a bunch, > Jay P. lots of spirited discussion at artima http://www.artima.com/forums/flat.jsp?forum=106&thread=7590 http://c2.com/cgi/wiki?DuckTyping http://lambda-the-ultimate.org/node/

Re: do design patterns still apply with Python?

2006-03-02 Thread gene tani
Terry Hancock wrote: > > This sounds like an article crying out to be written, > "(Learning) Design Patterns with Python". > > Has it been written already? > > Cheers, > Terry > > -- > Terry Hancock ([EMAIL PROTECTED]) > Anansi Spaceworks http://www.AnansiSpaceworks.com There's a couple Alex M sl

Re: Python Indentation Problems

2006-02-26 Thread gene tani
[EMAIL PROTECTED] wrote: > I am a newbie to Python. I am mainly using Eric as the IDE for coding. > Also, using VIM and gedit sometimes. > > I had this wierd problem of indentation. My code was 100% right but it > wont run because indentation was not right. I checked time and again > but still no

Re: regular expresson for Unix and Dos Lineendings wanted

2006-02-23 Thread gene tani
gene tani wrote: > Franz Steinhaeusler wrote: > > > > Who can help me (regular expression, which works for both cases). > > universal newlines: > http://www.python.org/doc/2.3.3/whatsnew/node7.html > http://mail.python.org/pipermail/python-list/2006-February/324410.ht

Re: regular expresson for Unix and Dos Lineendings wanted

2006-02-23 Thread gene tani
Franz Steinhaeusler wrote: > Hello, I need a regularexpression, which trims trailing whitespaces. > > While with unix line endings, it works; > but not with Window (Dos) CRLF's: > > >>> import re > >>> retrailingwhitespace = re.compile('(?<=\S)[ \t]+$', re.MULTILINE) > > 1) Windows > >>> r="erewr

Re: That's really high-level: bits of beautiful python

2006-02-22 Thread gene tani
Jeffrey Schwab wrote: > Max wrote: > > I was just thinking perhaps we should create some kind of collection of > > bits of "impressive" code like this. > > Do you mean something like the ASPN Cookbooks? > > http://aspn.activestate.com/ASPN/Cookbook/ > repositories, indexes and search engine

Re: deriving from float or int

2006-02-21 Thread gene tani
Russ wrote: > Does it ever make sense to derive a class from a basic type such as > float or int? Suppose, for example, that I want to create a class for > physical scalars with units. I thought about deriving from float, then > adding the units. I played around with it a bit, but it doesn't seem

Re: Augmented assignment

2006-02-21 Thread gene tani
Terry Hancock wrote: > On Tue, 21 Feb 2006 10:55:42 +0530 > Suresh Jeevanandam <[EMAIL PROTECTED]> wrote: > Seriously, > I think they are usually equivalent internally, > at least for immutable objects. > yah, but when you do augmented assigns on lists, or mix immutable an dmutable: http://zeph

Re: Python vs. Lisp -- please explain

2006-02-18 Thread gene tani
[EMAIL PROTECTED] wrote: > > I'm wondering if someone can explain to me please what it is about > Python that is so different from Lisp that it can't be compiled into > something as fast as compiled Lisp? From this above website and > others, I've learned that compiled Lisp can be nearly as fast

Re: Safe Python Execution

2006-02-16 Thread gene tani
Jean-Paul Calderone wrote: > On Thu, 16 Feb 2006 07:59:03 -0800, Alex Martelli <[EMAIL PROTECTED]> wrote: > >Graham <[EMAIL PROTECTED]> wrote: > > > >> I've been messing around with trying to get a small sandbox like > >> environment where i could execute python code in a "safe" way. > >> Basicall

Re: web crawler in python or C?

2006-02-16 Thread gene tani
abhinav wrote: > Hi guys.I have to implement a topical crawler as a part of my > project.What language should i implement Oh, and there's some really good books out there, besides the Orilly Spidering Hacks. Springer Verlag has a couple books on "Text Mining" and at least a couple books with "we

Re: web crawler in python or C?

2006-02-16 Thread gene tani
Paul Rubin wrote: > "abhinav" <[EMAIL PROTECTED]> writes: > > maintaining huge data structures.What should be the language so as > > not to compromise that much on speed.What is the performance of > > python based crawlers vs C based crawlers.Should I use both the > > languages(partly C and pytho

Re: hard disk activity

2006-02-13 Thread gene tani
VSmirk wrote: > I'm working primarily on Windows XP, but my solution needs to be cross > platform. > > The problem is that I need more than the fact that a file has been > modified. I need to know what has been modified in that file. > > I am needing to synchronize the file on a remote folder, an

Re: Tracking down memory leaks?

2006-02-12 Thread gene tani
[EMAIL PROTECTED] wrote: > MKoool wrote: > > I have an application with one function called "compute", which given a > > filename, goes through that file and performs various statistical > > analyses. It uses arrays extensively and loops alot. it prints the > > results of it's statistical signif

Re: Is there any books such as 'effective python' or else about the performance?

2006-02-12 Thread gene tani
Kenneth Xie wrote: > att, thx. Start here. http://www.python.org/moin/PythonSpeed/PerformanceTips http://trific.ath.cx/resources/python/optimization/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python good for web crawlers?

2006-02-10 Thread gene tani
Paul Rubin wrote: > Xavier Morel <[EMAIL PROTECTED]> writes: > > BeautifulSoup... > > The API of the package is extremely simple, straightforward and... obvious. > > I did not find that. I spent a few minutes looking at the > documentation and it wasn't obvious at all how to use it. Maybe I 1.

Re: Test indexers...how do they work?

2006-02-09 Thread gene tani
Raja Raman Sundararajan wrote: > Hello guys, > I was investigating how one can use the "text indexers" in python > and I stumbled across several ones. eg., pylucene > > I wanted to know how the algorithm of indexers look like. I have heard > people talking about B-Trees. But this info. is simp

Re: Twisted book opinions?

2006-02-09 Thread gene tani
Matt Goodall wrote: > Jay Parlar wrote: > > I was hoping to get some c.l.p. opinions on O'Reilly's new Twisted book. > > I think it's a good book to get. I know a fair amount about Twisted but > it still made for interesting reading. > > Tommi Virtanen (aka tv) posted a great review of the book sh

Re: Compiling

2006-02-05 Thread gene tani
Simon Faulkner wrote: > Pardon me if this has been done to death but I can't find a simple > explanation. > > I love Python for it's ease and speed of development especially for the > "Programming Challenged" like me but why hasn't someone written a > compiler for Python? > > I guess it's not that

Re: Fuzzy Lookups

2006-01-30 Thread gene tani
BBands wrote: > Diez B. Roggisch wrote: > > I did a levenshtein-fuzzy-search myself, however I enhanced my version by > > normalizing the distance the following way: > > Thanks for the snippet. I agree that normalizing is important. A > distance of three is one thing when your strings are long, bu

Re: Find directory name of file?

2006-01-30 Thread gene tani
ngw wrote: > > Try os.path.dirname (__file__) > what O/S and python release are you using? I get NameError: '__file__' not defined in win32 and OS X (both are 2.4.x, installed from ActiveState installers) -- http://mail.python.org/mailman/listinfo/python-list

Re: web crawling.

2006-01-19 Thread gene tani
S Borg wrote: > Hello, > > I have been writing very simple Python programs that parse HTML and > such, mainly just to get > a better feel for the language. Here is my question: If I parsed an > HTML page into all of the image > files listed on that page, how could I request all of those images an

Re: search multiple dictionaries efficiently?

2006-01-17 Thread gene tani
Livin wrote: > I'm a noobie so please be easy on me. I have searched a ton and did not find > anything I could understand. > > I'm using py2.3 > > I've been using Try/Except but this gets long with multiple dictionaries. > > I found some code on web pages and such but cannot get them to work. Any

Re: Spanish Translation of any python Book?

2006-01-14 Thread gene tani
Luis M. González wrote: > Lamentablemente, no conozco ningún tutorial o libro en castellano... http://www.python.org/doc/NonEnglish.html#spanish -- http://mail.python.org/mailman/listinfo/python-list

Re: Hijacking threads

2006-01-13 Thread gene tani
Peter Hansen wrote: > gene tani wrote: > > Roy Smith wrote: > >>Thanks for posting that URL; I hadn't seen the list before. > [...] > > > > pls don't hijack threads > > Um, he didn't "hijack" it, he follow a tangent to the disc

Why is there no post-pre increment operator in python

2006-01-13 Thread gene tani
Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > "gene tani" <[EMAIL PROTECTED]> wrote: > > > http://zephyrfalcon.org/labs/python_pitfalls.html > > Thanks for posting that URL; I hadn't seen the list before. Skimming over > it, none

Re: Spanish Translation of any python Book?

2006-01-13 Thread gene tani
Olaf "El Blanco" wrote: > Maybe there is someone that speak spanish. I need the best spanish book for > learning python. > you should learn Chinese, Korean and Russian so you can read this many times http://diveintopython.org/#languages -- http://mail.python.org/mailman/listinfo/python-list

Re: Limiting the size of List and making it Homogeneous

2006-01-13 Thread gene tani
ankit wrote: > Is it possible to limit the size of list in python. > I want to make list of 5 elements. How can I achieve this thing in > python. And one more thing can we declare list to store elements of > same type as in c, C++ we can declare an > array which can have 5 elements of type int. >

Re: Newcomer question wrt variable scope/namespaces

2006-01-13 Thread gene tani
Florian Daniel Otel wrote: > Hello all, > > > Attached are 3 small python scripts that illustrate my "problem". The > first one uses string tuples and behaves as expected. The other two > use dictionaries and (resp.) lists and illustrate my "problem" > > TIA for any pointers, > > Florian > > P.S.

Re: Limiting the size of List and making it Homogeneous

2006-01-13 Thread gene tani
gene tani wrote: > ankit wrote: > > Is it possible to limit the size of list in python. > > I want to make list of 5 elements. How can I achieve this thing in > > python. And one more thing can we declare list to store elements of > > same type as in c, C++ we can dec

Re: Why is there no post-pre increment operator in python

2006-01-13 Thread gene tani
[EMAIL PROTECTED] wrote: > Anyone has any idea on why is there no post/pre increment operators in > python ? > Although the statement: > ++j > works but does nothing "+=1" and "-=1" inflate your KLOC by .001, but they always work as expected with integers, it's when you do augmented assignments

Re: What is the slickest way to transpose a square list of lists (tuple of tuples)?

2006-01-09 Thread gene tani
Gerard Brunick wrote: > My way is ugly. These has to be a better way. > > Thanks, > Gerard transpose funcitons/methods: http://numeric.scipy.org/ http://numpy.sourceforge.net/numdoc/numdoc.pdf -- http://mail.python.org/mailman/listinfo/python-list

Re: How login & download file from remote web site? Passwords a problem?

2006-01-09 Thread gene tani
[EMAIL PROTECTED] wrote: > How make a Python script > > 1. login > 2. type password & > 3. download file > > all from a **remote web site**? > > I'm not comfortable with *MY* software handling the password part. > > It just seems like trouble if users must tell *my* software their > password. > >

Re: How login & download file from remote web site? Passwords a problem?

2006-01-09 Thread gene tani
[EMAIL PROTECTED] wrote: > How make a Python script > > 1. login > 2. type password & > 3. download file > > all from a **remote web site**? > > I'm not comfortable with *MY* software handling the password part. > > It just seems like trouble if users must tell *my* software their > password. > >

Re: - Requesting Comments for Process Definition and Presentation

2006-01-07 Thread Gene Tani
Xavier Morel wrote: > Ilias Lazaridis wrote: > > b) to retrieve feedback subjecting the Process Definition itself > > (content of diagramms, clarity, terminology etc.) > > > This is a lie, and you know it. I've said it before, i'll say it again; medical insurance premiums should be lower for peop

Re: itertools.izip brokeness

2006-01-03 Thread gene tani
[EMAIL PROTECTED] wrote: > <[EMAIL PROTECTED]> wrote: > > pissed-offedly-yr's, rurpy > > Well, i'm sorry your pissed off. I will say i believe that map(None,*sequences) mentioned above is a pretty commonly seen thing, as is padding shorter sequence for zip/izip. Also have you looked at diff

Re: Any wing2.0 users here?

2006-01-02 Thread gene tani
Alvin A. Delagon wrote: > emacs has been my long time companion for php, perl, and python. My boss > recommended to me Wing2.0, I find it hard to adjust though. What can you > say about this IDE? He say's if I think it could improve my productivity > he's willing to buy it for me. Suggestions for

  1   2   3   >