Re: how to avoid leading white spaces

2011-06-04 Thread rusi
The efficiently argument is specious. [This is a python list not a C or assembly list] The real issue is that complex regexes are hard to get right -- even if one is experienced. This is analogous to the fact that knotty programs can be hard to get right even for experienced programmers. The

Re: Something is rotten in Denmark...

2011-06-02 Thread rusi
On Jun 3, 4:43 am, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Alain Ketterlin wrote: But going against generally accepted semantics should at least be clearly indicated. Lambda is one of the oldest computing abstraction, and they are at the core of any functional programming language.

Re: scope of function parameters

2011-05-31 Thread rusi
On May 29, 1:30 pm, Henry Olders henry.old...@mcgill.ca wrote: I just spent a considerable amount of time and effort debugging a program. The made-up code snippet below illustrates the problem I encountered: def main():         a = ['a list','with','three elements']         print a        

Re: scope of function parameters

2011-05-31 Thread rusi
On May 31, 9:46 pm, rusi rustompm...@gmail.com wrote: So you then use (something like) fnc2(c):  return c[0:1] + c[2:] Er sorry -- that should have been def fnc2(c): return c[0:1] + ('having',) + c[2:] -- http://mail.python.org/mailman/listinfo/python-list

Re: float(nan) in set or as key

2011-05-31 Thread rusi
On Jun 1, 7:45 am, Carl Banks pavlovevide...@gmail.com wrote: On Sunday, May 29, 2011 8:59:49 PM UTC-7, Steven D#39;Aprano wrote: On Sun, 29 May 2011 17:55:22 -0700, Carl Banks wrote: Floating point arithmetic evolved more or less on languages like Fortran where things like exceptions

Re: Alternatives to PythonPath

2011-05-29 Thread rusi
On May 30, 2:49 am, ray r...@aarden.us wrote: I am using Win7 on a tightly locked down desktop. Is there an alternative to using PythonPath? What are the trade-offs? Thanks, ray Externally: 1. PYTHONPATH 2. .pth files

Re: float(nan) in set or as key

2011-05-29 Thread rusi
On May 30, 7:53 am, Chris Angelico ros...@gmail.com wrote: On Mon, May 30, 2011 at 12:17 PM, Carl Banks pavlovevide...@gmail.com wrote: If I were designing a new floating-point standard for hardware, I would consider getting rid of NaN.  However, with the floating point standard that

Re: and becomes or and or becomes and

2011-05-23 Thread rusi
On May 23, 5:30 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Sun, 22 May 2011 15:39:33 -0700, Tim Roberts wrote: Stef Mientki stef.mien...@gmail.com wrote: must of us will not use single bits these days, but at first sight, this looks funny : a=2 b=6 a and b 6

Tkinter bug?

2011-05-23 Thread rusi
/comp.lang.python/browse_thread/thread/4f55b4cb77653115/6543ed65bbb51c09?lnk=gstq=rusi#6543ed65bbb51c09 http://groups.google.com/group/comp.lang.python/browse_thread/thread/36e757567f28368e/8737ab250b9f657a?lnk=gstq=rusi+ipython#8737ab250b9f657a -- http://mail.python.org/mailman/listinfo/python-list

more than just ipython broken in windows

2011-05-22 Thread rusi
Earlier I asked about a problem with ipython in windows which does not seem to be there in linux. Now I find that a similar problem surfaces with turtle -- so it seemingly is not so much an ipython problem. The problem can be seen thus: Lets say I want to try out some turtle commands such as:

Re: checking if a list is empty

2011-05-21 Thread rusi
On May 22, 1:11 am, Terry Reedy tjre...@udel.edu wrote: I agree that the domain of a function should be defined from the start (and only expanded in the future). I dont understand... I dont always write correct code -- otherwise called 'a bug' -- though I never let the damn bug lose

Re: checking if a list is empty

2011-05-21 Thread rusi
On May 22, 8:52 am, Chris Angelico ros...@gmail.com wrote: On Sun, May 22, 2011 at 1:02 PM, rusi rustompm...@gmail.com wrote: Why is the C library in linux called libc6 and not just libc? I assume you mean this?http://www.linux-m68k.org/faq/glibcinfo.html Ha Ha! Thanks for that link! I quote

embedding and extending on windows

2011-05-20 Thread rusi
A client wants to 'be lectured' on extending and embedding python on windows. I am familiar with this (or was until python2.3 or thereabouts) on linux -- never done it on windows. Can some kind soul point me to some link on the issues/pitfalls re this? I see three choices: 1. Us MS C for the C

Re: English Idiom in Unix: Directory Recursively

2011-05-20 Thread rusi
On May 20, 1:48 pm, Hans Georg Schaathun h...@schaathun.net wrote: On 20 May 2011 06:55:35 GMT, Steven D'Aprano  steve+comp.lang.pyt...@pearwood.info wrote: :  On Thu, 19 May 2011 22:13:14 -0700, rusi wrote: : : [I agree with you Xah that recursion is a technical word that should

Recursion in Computer Science

2011-05-19 Thread rusi
There have been a number of unrelated discussions regarding recursion on this list. I believe that recursion occurs in a wider spread of areas than is usually recognised. Heres a list of some such areas. Please note I am using recursion in a broad and somewhat fuzzy sense. Narrow specific

Re: English Idiom in Unix: Directory Recursively

2011-05-19 Thread rusi
On May 20, 2:21 am, Rikishi42 skunkwo...@rikishi42.net wrote: On 2011-05-18, Hans Georg Schaathun h...@schaathun.net wrote: Now Mac OS X has maintained the folder concept of older mac generations, and Windows has cloned it.  They do not want the user to understand recursive data

Re: Recursion in Computer Science

2011-05-19 Thread rusi
On May 20, 10:18 am, Chris Angelico ros...@gmail.com wrote: On Fri, May 20, 2011 at 3:05 PM, rusi rustompm...@gmail.com wrote:  - data can be code -- viruses It's not JUST viruses. There's plenty of legitimate reasons for your data to actually be code... that's how compilers work! :) Chris

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread rusi
On May 18, 9:51 am, Roland Hutchinson my.spamt...@verizon.net wrote: Sorry to have to contradict you, but it really is a textbook example of recursion.  Try this psuedo-code on for size:   Well and so far this thread is a textbook example of myths and misconceptions regarding recursion :D 1.

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread rusi
On May 18, 11:58 am, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, May 18, 2011 at 12:06 AM, rusi rustompm...@gmail.com wrote: 4. Recursion in 'recursion theory' aka 'computability theory' is somehow different from recursion in programming. Um, it is.  Consider the simple function (lambda

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread rusi
On May 18, 11:50 am, Harrison Hill harrish...@gmx.com wrote: Rusi wrote I could continue down 2,3,4 but really it may be worthwhile if the arguers first read the wikipedia disambiguation pages on recursion... No need - I have the Dictionary definition of recursion here: Recursion: (N

Multiple python environments (was Python 2.7 Debian 6.0. Squeeze)

2011-05-18 Thread rusi
On May 18, 12:05 pm, Sebastien Douche sdou...@gmail.com wrote: On Thu, May 12, 2011 at 17:27, Jorge Romero jorgeromero...@gmail.com wrote: I tried Googling about Python 2.7 on Debian Squeeze, but did not find anything but discussions -.-. Anyone out there that can point me some helpful

Re: ipython prompt does not appear in windows

2011-05-18 Thread rusi
On May 18, 3:31 am, Ori L. ori.liv...@gmail.com wrote: See here for a workaround:https://bugs.launchpad.net/ipython/+bug/290228 First result on Google for the query ipython emacs windows, BTW. Thanks -- I did find that before asking. That link starts by recommending a small change (add -i

Re: Multiple python environments (was Python 2.7 Debian 6.0. Squeeze)

2011-05-18 Thread rusi
On May 18, 12:41 pm, rusi rustompm...@gmail.com wrote: On May 18, 12:05 pm, Sebastien Douche sdou...@gmail.com wrote: On Thu, May 12, 2011 at 17:27, Jorge Romero jorgeromero...@gmail.com wrote: I tried Googling about Python 2.7 on Debian Squeeze, but did not find anything

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread rusi
On May 18, 5:09 pm, Peter Moylan inva...@peter.pmoylan.org.invalid wrote: ObAUE: In common parlance, the English word recursion means pretty much the same as what computing people call iteration.  This might be the first time I have ever found a point of agreement with Xah Lee. Maybe the

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread rusi
On May 18, 7:32 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Wed, May 18, 2011 at 1:10 AM, rusi rustompm...@gmail.com wrote: Um, it is.  Consider the simple function (lambda x, y: x + y). Mathematically, this function is recursive.  Algorithmically, it is not.  Do you disagree? See

Re: Faster Recursive Fibonacci Numbers

2011-05-18 Thread rusi
On May 18, 7:27 pm, RJB rbott...@csusb.edu wrote: Thank you!  Very cool and clear.  I hoped that there was something that Python made natural I couldn't see after 50 years in other languages. I'd like to work on combining both approaches.  It may take a while... From the Knuth identity

ipython prompt does not appear in windows

2011-05-17 Thread rusi
If I use ipython under emacs on linux it works (at least basic REPL) ie I can type an expression and I get a result followed by a prompt On windows ipython works at the shell. Plain python works in emacs as well. But inside emacs I dont see a prompt in ipython although I see it in python. I have

Re: Faster Recursive Fibonacci Numbers

2011-05-17 Thread rusi
On May 17, 8:50 pm, RJB rbott...@csusb.edu wrote: I noticed some discussion of recursion. the trick is to find a formula where the arguments are divided, not decremented. I've had a divide-and-conquer recursion for the Fibonacci numbers for a couple of years in C++ but just for fun rewrote

Re: Faster Recursive Fibonacci Numbers

2011-05-17 Thread rusi
On May 17, 8:50 pm, RJB rbott...@csusb.edu wrote: I noticed some discussion of recursion. the trick is to find a formula where the arguments are divided, not decremented. I've had a divide-and-conquer recursion for the Fibonacci numbers for a couple of years in C++ but just for fun rewrote

Re: Faster Recursive Fibonacci Numbers

2011-05-17 Thread rusi
add a linear search at the bottom using the 5f**2 +/- 4 rule, which would still be quite fast out to about 10 times that. The decimal module gets you a tiny bit further, and after that it's time to just use Dijkstra's, like rusi suggested. In any event, I still think this formulation

Re: checking if a list is empty

2011-05-16 Thread rusi
On May 16, 2:36 am, Terry Reedy tjre...@udel.edu wrote: On 5/15/2011 1:33 PM, rusi wrote: On May 15, 10:07 am, Steven D'Apranosteve +comp.lang.pyt...@pearwood.info  wrote: I'm afraid I don't understand what you mean. Can you explain please, what properties of first class booleans do you

Re: checking if a list is empty

2011-05-15 Thread rusi
On May 15, 10:07 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: I'm afraid I don't understand what you mean. Can you explain please, what properties of first class booleans do you think are missing from Python? Dijkstra's writings I alluded to, take a logic/math line to

Re: checking if a list is empty

2011-05-15 Thread rusi
: desideradum = : : = true The cost is that bool has to be properly reified. Steven wrote: Rusi wrote: For example if my language seems to have entities like '2' '3' '+' but 2+3 does not work out equal to 5 we would (I hope!) not say the language has first-class numbers. Well, that's

Re: how to install easy_install

2011-05-14 Thread rusi
On May 13, 11:29 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, May 13, 2011 at 11:40 AM, rusi rustompm...@gmail.com wrote: I tried to install easy_install (This is on windows) I downloaded the executable and ran it. It claimed to have done its job. But now when I type easy_install

Re: checking if a list is empty

2011-05-14 Thread rusi
On May 14, 12:39 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Thu, 12 May 2011 23:46:12 -0700, rusi wrote: Mathematics has existed for millenia. Hindu-arabic numerals (base-10 numbers) have been known for about one millennium The boolean domain is only a 100 years old

Re: checking if a list is empty

2011-05-14 Thread rusi
On May 14, 6:42 pm, Chris Angelico ros...@gmail.com wrote: On Sat, May 14, 2011 at 5:45 PM, rusi rustompm...@gmail.com wrote: And then we get the interesting result that (True = True) is False How does this work? In Python, the = sign is illegal there, and if you mean True == True

Re: Recursion or iteration (was Fibonacci series recursion error)

2011-05-14 Thread rusi
On May 14, 2:48 am, Mark Dickinson dicki...@gmail.com wrote: I don't see this (or Hans' version) as cheating at all. Yeah sure -- cheating is a strong word :-) This really *is* the power algorithm, just in a different number system from the usual one. Yes that was my point. If we take

Re: checking if a list is empty

2011-05-14 Thread rusi
On May 14, 8:55 pm, Chris Angelico ros...@gmail.com wrote: On Sun, May 15, 2011 at 1:47 AM, rusi rustompm...@gmail.com wrote: So since [1,2,3] is one way of writing True (lets call it True3) and [1,2] is another (call it True2) then we have True3 == True2 is False But since according

Re: checking if a list is empty

2011-05-14 Thread rusi
On May 15, 4:26 am, Ben Finney ben+pyt...@benfinney.id.au wrote: rusi rustompm...@gmail.com writes: [Steven quote] In Python, [1, 2, 3] is another way of writing true, and [] is another way of writing false. Similarly with any other arbitrary objects. The only things that bools True

Re: Recursion or iteration (was Fibonacci series recursion error)

2011-05-14 Thread rusi
On May 15, 2:19 am, Ian Kelly ian.g.ke...@gmail.com wrote: On Sat, May 14, 2011 at 11:24 AM, rusi rustompm...@gmail.com wrote: def fib(n):    if n==1 or n==2:        return 1    elif even(n):        return sq(fib (n//2)) + 2 * fib(n//2) * fib(n//2 - 1)    else:        return sq(fib

Re: checking if a list is empty

2011-05-13 Thread rusi
Mathematics has existed for millenia. Hindu-arabic numerals (base-10 numbers) have been known for about one millennium The boolean domain is only a 100 years old. Unsurprisingly it is not quite 'first-class' yet: See http://www.cs.utexas.edu/users/EWD/transcriptions/EWD10xx/EWD1070.html [Lifted

Re: checking if a list is empty

2011-05-13 Thread rusi
On May 13, 1:02 pm, Chris Rebert c...@rebertia.com wrote: On Thu, May 12, 2011 at 11:46 PM, rusi rustompm...@gmail.com wrote: The boolean domain is only a 100 years old. Unsurprisingly it is not quite 'first-class' yet: See It is nowadays. Every halfway-mainstream language I can think

Re: Recursion or iteration (was Fibonacci series recursion error)

2011-05-13 Thread rusi
On May 12, 3:06 am, Hans Mulder han...@xs4all.nl wrote: On 03/05/2011 09:52, rusi wrote: [If you believe it is, then try writing a log(n) fib iteratively :D ] It took me a while, but this one seems to work: from collections import namedtuple Triple = namedtuple('Triple', 'hi mid lo

how to install easy_install

2011-05-13 Thread rusi
I tried to install easy_install (This is on windows) I downloaded the executable and ran it. It claimed to have done its job. But now when I type easy_install at a cmd prompt I get easy_install is not a command... [I guess I am a perennial noob to windows, never being able to comprehend the PATH

Re: Testing tools classification

2011-05-10 Thread rusi
On May 10, 8:55 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 07 May 2011 02:21:02 -0300, rusi rustompm...@gmail.com escribió: There is this nice page of testing tools taxonomy: http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy But it does not list staf:http

Non Programming in python

2011-05-10 Thread rusi
Sorry for a silly subject change: A better one will be welcome -- cant think of a name myself. There is this whole area of python that may be called the non- programming side of programming: Is there some central site where all such is put up? What if any should such a bundle of things be

Re: Non Programming in python

2011-05-10 Thread rusi
On May 11, 12:28 am, Terry Reedy tjre...@udel.edu wrote: On 5/10/2011 12:41 PM, rusi wrote: Sorry for a silly subject change: A better one will be welcome -- cant think of a name myself. Associated tools. I might separate them into development tools (up to the production of python.exe

Re: Development tools and practices for Pythonistas

2011-05-08 Thread rusi
On Apr 26, 7:39 pm, snorble snor...@hotmail.com wrote: I'm not a Pythonista, but I aspire to be. My current tools: Python, gvim, OS file system My current practices: When I write a Python app, I have several unorganized scripts in a directory (usually with several named test1.py,

Re: What other languages use the same data model as Python?

2011-05-07 Thread rusi
On May 8, 7:17 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Sat, 07 May 2011 21:21:45 +1200, Gregory Ewing wrote: Hans Georg Schaathun wrote: You cannot reference nor manipulate a reference in python, and that IMHO makes them more abstract. You can manipulate them

Python packaging (was Development tools and practices for Pythonistas)

2011-05-06 Thread rusi
On May 6, 2:59 pm, Tim Golden m...@timgolden.me.uk wrote: On 06/05/2011 10:51, Jonathan Hartley wrote: On Apr 26, 3:39 pm, snorblesnor...@hotmail.com  wrote: I appreciate any advice or guidance anyone has to offer. The 'Python Project HOWTO' gives good advice in terms of setting up a

Testing tools classification

2011-05-06 Thread rusi
There is this nice page of testing tools taxonomy: http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy But it does not list staf: http://staf.sourceforge.net/index.php. -- http://mail.python.org/mailman/listinfo/python-list

Re: Recursion or iteration (was Fibonacci series recursion error)

2011-05-03 Thread rusi
On May 3, 10:29 am, Chris Angelico ros...@gmail.com wrote: On Tue, May 3, 2011 at 3:27 PM, Dan Stromberg drsali...@gmail.com wrote: Doh. Usually when someone gives a recursive solution to this problem, it's O(logn), but not this time. Here's a logn one: :-) Ok so you beat me to it :D I

Re: Recursion or iteration (was Fibonacci series recursion error)

2011-05-03 Thread rusi
On May 3, 3:32 pm, Dave Angel da...@ieee.org wrote: What I'm surprised at is that nobody has pointed out that the logn version is also generally more accurate, given traditional floats. Usually getting the answer accurate (given the constraints of finite precision intermediates) is more

Re: Development tools and practices for Pythonistas

2011-05-03 Thread rusi
On May 3, 11:19 pm, Anssi Saari a...@sci.fi wrote: rusi rustompm...@gmail.com writes: I am a bit surprised that no one has mentioned rcs so far Not an option if you are not on a *ix system and not something I am specifically recommending. I actually use rcs in Windows. Needs a little

Re: Fibonacci series recursion error

2011-05-02 Thread rusi
On Apr 30, 11:14 am, Peter Otten __pete...@web.de wrote: For the record, the one true way to implement the Fibonacci series in Python is def fib(): ...     a = b = 1 ...     while True: ...             yield a ...             a, b = b, a+b # look ma, no temporary variable Not any claim

Re: Development tools and practices for Pythonistas

2011-05-02 Thread rusi
On May 2, 12:08 pm, Algis Kabaila akaba...@pcug.org.au wrote: Actually, Bazaar is more convenient than rcs for a single user, as the repository can be the working directory (with a hidden .bzr directory that stores diffs).   Dont exactly understand... Is it that you want it specifically

Re: Fibonacci series recursion error

2011-05-02 Thread rusi
On Apr 30, 12:18 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: The number of calls is given by a recursive function with a similar form as that of Fibonacci. As far as I know, it doesn't have a standard name, but I'll call it R(n): R(n) = R(n-1) + R(n-2) + 1, where R(0) =

Re: Fibonacci series recursion error

2011-05-02 Thread rusi
On May 2, 2:53 pm, Hans Georg Schaathun h...@schaathun.net wrote: On 02 May 2011 08:56:57 GMT, Steven D'Aprano  steve+comp.lang.pyt...@pearwood.info wrote: :  I see your smiley, but there are a number of similar series as Fibonacci, :  with the same recurrence but different starting values,

Recursion or iteration (was Fibonacci series recursion error)

2011-05-02 Thread rusi
On May 3, 2:50 am, harrismh777 harrismh...@charter.net wrote: The thing about this problem that puzzles me, is why we might consider recursion for a possible solution in the first place This can be answered directly but a bit lengthily. Instead let me ask a seemingly unrelated (but actually

Re: Development software

2011-05-02 Thread rusi
On May 2, 8:23 pm, Petey efri...@gmail.com wrote: Hi! I'm new to programming. I started with php earlier and I dropped it for Python. I use Eclipse+PyDev for python, html and css. Which programmes should I start using because they might be useful in the future? Which functions of

Re: Fibonacci series recursion error

2011-05-02 Thread rusi
On May 3, 5:21 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Mon, 02 May 2011 21:02:43 +0100, Hans Georg Schaathun wrote: The other arguments are valid.  And they make me lean more towards more static, compiled languages without the excessive run-time dynamism of

Re: Development tools and practices for Pythonistas

2011-05-01 Thread rusi
On Apr 30, 8:21 am, CM cmpyt...@gmail.com wrote: A lone developer using such a VCS reaps the benefits of this by getting good merging support. While we're on the topic, when should a lone developer bother to start using a VCS?  At what point in the complexity of a project (say a hobby

Re: Development tools and practices for Pythonistas

2011-05-01 Thread rusi
On May 2, 8:22 am, Ben Finney ben+pyt...@benfinney.id.au wrote: rusi rustompm...@gmail.com writes: You may want to look at rcs if you are in the space where you want: -- something better than tarballs -- no pretensions beyond single-user, single-machine, (almost)single- file usage (ie

Re: recommended Emacs mode (was Re: Development tools and practices for Pythonistas)

2011-04-27 Thread rusi
On Apr 27, 11:39 am, Gour-Gadadhara Dasa g...@atmarama.net wrote: On Tue, 26 Apr 2011 07:39:41 -0700 (PDT) snorble snor...@hotmail.com wrote: I'm not a Pythonista, but I aspire to be. My current tools: Python, gvim, OS file system I'm also starting with Python after abandoning idea to

Re: Development tools and practices for Pythonistas

2011-04-26 Thread rusi
On Apr 26, 7:39 pm, snorble snor...@hotmail.com wrote: I am aware of tools like version control systems, bug trackers, and things like these, but I'm not really sure if I need them, You either dont want version control But if I ever made something worth releasing, and got a request

Re: Comparing VCS tools (was Development tools and practices for Pythonistas)

2011-04-26 Thread rusi
On Apr 27, 6:44 am, Tim Chase python.l...@tim.thechases.com wrote: On 04/26/2011 01:42 PM, Algis Kabaila wrote: Thomas, have you tried bzr (Bazaar) and if so do you consider hg (Mercurial) better? And why is it better?   (bzr is widely used in ubuntu, which is my favourite distro at

Re: Terrible FPU performance

2011-04-26 Thread rusi
On Apr 27, 10:11 am, Alec Taylor alec.tayl...@gmail.com wrote: What's an FPU? http://lmgtfy.com/?q=fpu -- http://mail.python.org/mailman/listinfo/python-list

Re: De-tupleizing a list

2011-04-25 Thread rusi
On Apr 26, 9:59 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Mon, 25 Apr 2011 20:28:22 -0700, Gnarlodious wrote: I have an SQLite query that returns a list of tuples: [('0A',), ('1B',), ('2C',), ('3D',),... What is the most Pythonic way to loop through the list

Re: Vectors

2011-04-24 Thread rusi
On Apr 25, 4:49 am, Robert Kern robert.k...@gmail.com wrote: On 4/22/11 7:32 PM, Algis Kabaila wrote: On Saturday 23 April 2011 06:57:23 sturlamolden wrote: On Apr 20, 9:47 am, Algis Kabailaakaba...@pcug.org.au wrote: Are there any modules for vector algebra (three dimensional

Re: Python IDE/text-editor

2011-04-18 Thread rusi
On Tue, 2011-04-19 at 06:51 +0300, Teemu Likonen wrote: emacs * 3 On Apr 19, 9:17 am, Westley Martínez aniko...@gmail.com wrote: vi * 3 This would be a competition except for viper: http://www.emacswiki.org/emacs/ViperMode IOW emacs can be morphed into vi --

Re: Python IDE/text-editor

2011-04-18 Thread rusi
On Apr 19, 9:32 am, Ben Finney ben+pyt...@benfinney.id.au wrote: Alec Taylor alec.tayl...@gmail.com writes: Please continue with your recommendations. At some point you need to act on these recommendations by picking one for the time being. If you're so tight for time, why are you still

Re: Python IDE/text-editor

2011-04-18 Thread rusi
On Apr 19, 9:44 am, Chris Angelico ros...@gmail.com wrote: On Tue, Apr 19, 2011 at 2:37 PM, rusi rustompm...@gmail.com wrote: On Tue, 2011-04-19 at 06:51 +0300, Teemu Likonen wrote: emacs * 3 On Apr 19, 9:17 am, Westley Martínez aniko...@gmail.com wrote: vi * 3 This would

Re: An unusual question...

2011-04-17 Thread rusi
On Apr 17, 9:37 pm, wisecrac...@tesco.net wrote: Hi Sturla... You'll need to mmap or valloc a page-alligned memory buffer (for which the size must be a multiple of the system page size), and call mprotect to make it executable. Copy your binary code into this buffer. Then you will need

Re: Egos, heartlessness, and limitations

2011-04-16 Thread rusi
On Apr 16, 9:27 am, Littlefield, Tyler ty...@tysdomain.com wrote:  And who pissed in Guido's punch bowl anyway? Why is he such an elitist  now? Why can he not come over once and a while and rub shoulders withhttp://www.youtube.com/watch?v=FMEe7JqBgvg He he -- Bravo! --

Re: Python IDE/text-editor

2011-04-16 Thread rusi
On Apr 16, 9:13 pm, Chris Angelico ros...@gmail.com wrote: Based on the comments here, it seems that emacs would have to be the editor-in-chief for programmers. I currently use SciTE at work; is it reasonable to, effectively, bill my employer for the time it'll take me to learn emacs? It

Re: Python IDE/text-editor

2011-04-16 Thread rusi
On Apr 17, 3:19 am, John Bokma j...@castleamber.com wrote: rusi rustompm...@gmail.com writes: On Apr 16, 9:13 pm, Chris Angelico ros...@gmail.com wrote: Based on the comments here, it seems that emacs would have to be the editor-in-chief for programmers. I currently use SciTE at work

Re: Python IDE/text-editor

2011-04-16 Thread rusi
On Apr 17, 4:12 am, Krzysztof Bieniasz krzysztof.t.bieni...@gmail.com wrote: It takes a day or two to learn emacs. It takes forever to set it up. Remember, Emacs is THE way. It's the light in the darkness, it'll save your soul and bring you happiness. Isn't it worth the trouble? :)

Re: Python IDE/text-editor

2011-04-16 Thread rusi
On Apr 17, 8:22 am, John Bokma j...@castleamber.com wrote: rusi rustompm...@gmail.com writes: On Apr 17, 3:19 am, John Bokma j...@castleamber.com wrote: rusi rustompm...@gmail.com writes: On Apr 16, 9:13 pm, Chris Angelico ros...@gmail.com wrote: Based on the comments here, it seems

Re: Can you advice a Python library to query a lan subnet with SNMP and collect MAC addresses of nodes?

2011-04-16 Thread rusi
On Apr 15, 3:22 pm, Aldo Ceccarelli ceccarelli.a...@gmail.com wrote: On 15 Apr, 11:54, frankcui frankcu...@gmail.com wrote: On 04/15/2011 05:00 PM, Aldo Ceccarelli wrote: Hello All, in my specific problem I will be happy of a response where possible to: 1. distinguish different

Re: Python IDE/text-editor

2011-04-15 Thread rusi
On Apr 16, 8:20 am, Alec Taylor alec.tayl...@gmail.com wrote: Good Afternoon, I'm looking for an IDE which offers syntax-highlighting, code-completion, tabs, an embedded interpreter and which is portable (for running from USB on Windows). Here's a mockup of the app I'm looking

Re: Free software versus software idea patents

2011-04-11 Thread rusi
On Apr 11, 12:53 pm, geremy condra debat...@gmail.com wrote: On Sun, Apr 10, 2011 at 7:49 PM, harrismh777 harrismh...@charter.net wrote: Chris Angelico wrote:      All software can be expressed as lambda calculus. The point being, all  software is mathematics... With enough

Re: Dump interpreter history?

2011-04-11 Thread rusi
script readline ipython all nice solutions... There's one more (old) one: emacs ie you can run python inside (under) emacs That way you can pun thus: your interactions with python are a session when you choose and a file when you choose (buffer in emacs-speak). [Frank admission: The emacs

Re: Argument of the bool function

2011-04-09 Thread rusi
On Apr 10, 8:35 am, Grant Edwards inva...@invalid.invalid wrote: On 2011-04-09, Lie Ryan lie.1...@gmail.com wrote: On 04/09/11 08:59, candide wrote: Le 09/04/2011 00:03, Ethan Furman a ?crit :   bool([x]) dir([object]) Not very meaningful, isn't it ? The error says it

Re: running Python2 Python3 parallel concurrent

2011-04-05 Thread rusi
On Mar 31, 6:05 am, harrismh777 harrismh...@charter.net wrote: Greetings,      The purpose of this communique is to document a process for installing python2.7.1 in parallel with python3.2 on a concurrent desktop with independent idle and python path structure. Not sure if this is

Re: delete namespaces

2011-03-30 Thread rusi
On Mar 30, 6:14 am, monkeys paw mon...@joemoney.net wrote: How do i delete a module namespace once it has been imported? I use import banner Then i make a modification to banner.py. When i import it again, the new changes are not reflected. Is there a global variable i can modify? It

Re: I found some very odd behaviour in Python's very basic types

2011-03-10 Thread rusi
On Mar 10, 10:47 am, Sunjay Varma varma.sun...@gmail.com wrote: For some reason, sub-classing and overwriting a built-in type does not change the behavior of the literal. Have you looked through this? http://www.python.org/download/releases/2.2/descrintro/#subclassing [Dunno exactly how

Re: Problems of Symbol Congestion in Computer Languages

2011-03-01 Thread rusi
On Mar 1, 6:01 pm, Mark Thomas m...@thomaszone.com wrote: I know someone who was involved in creating a language called A+. It was invented at Morgan Stanley where they used Sun keyboards and had access to many symbols, so the language did have set symbols, math symbols, logic symbols etc.

Re: Problems of Symbol Congestion in Computer Languages

2011-02-28 Thread rusi
On Feb 17, 3:07 am, Xah Lee xah...@gmail.com wrote: might be interesting. 〈Problems of Symbol Congestion in Computer Languages (ASCII Jam; Unicode; Fortress)〉http://xahlee.org/comp/comp_lang_unicode.html Haskell is slowly moving this way see for example

Re: Problems of Symbol Congestion in Computer Languages

2011-02-28 Thread rusi
On Feb 28, 11:39 pm, Dotan Cohen dotanco...@gmail.com wrote: You miss the canonical bad character reuse case: = vs ==. Had there been more meta keys, it might be nice to have a symbol for each key on the keyboard. I personally have experimented with putting the symbols as regular keys and the

Re: Use the Source Luke

2011-02-04 Thread rusi
On Feb 2, 12:32 am, OKB (not okblacke) brennospamb...@nobrenspambarn.net wrote: Tim Wintle wrote: (2) is especially important IMO - under half of the python developers I have regularly worked with would feel comfortable reading C - so for the other half reading C source code probably

Re: Use the Source Luke

2011-02-04 Thread rusi
On Feb 4, 9:34 pm, rusi rustompm...@gmail.com wrote: [PS Does not read properly in google docs though it reads ok in acroread and evince ] Sorry google docs does not like the pdf Heres a ps https://docs.google.com/leaf?id=0B3gsacOF56PxOWUxZTVmOTQtYWIxNy00ZGFjLWEwODUtZDVkM2MyZGI5ZmRkhl=en

Re: Use the Source Luke

2011-02-04 Thread rusi
On Feb 5, 12:11 am, OKB (not okblacke) brennospamb...@nobrenspambarn.net wrote:         Very interesting, thanks.  I think Python has its own warts comparable to some of those you mention, but not all.  What bothers me most is when practicality beats purity is invoked, with practicality

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread rusi
On Feb 1, 1:35 am, Raymond Hettinger pyt...@rcn.com wrote: However, even the parts of the standard library written in pure Python don't seem to be getting read anymore, so I'm still inclined to attribute the issue to 1) inconvenient placement of source code, 2) a largish code base, and 3)

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread rusi
On Feb 1, 11:14 am, rusi rustompm...@gmail.com wrote: On Feb 1, 1:35 am, Raymond Hettinger pyt...@rcn.com wrote: snipped O O wrong thread... sorry! -- http://mail.python.org/mailman/listinfo/python-list

Re: Use the Source Luke

2011-01-31 Thread rusi
The following, meant for this thread, went to another my mistake :-) -- On Feb 1, 1:35 am, Raymond Hettinger pyt...@rcn.com wrote: However, even the parts of the standard library written in pure Python don't seem to be getting read anymore, so I'm still inclined to

Re: Use the Source Luke

2011-01-30 Thread rusi
On Jan 30, 6:19 pm, David Boddie da...@boddie.org.uk wrote: You might find this page useful: http://www.wikinfo.org/index.php/Comparison_of_desktop_search_software David Thanks for that link David I note particularly the disclaimer that it was removed from wikipedia [Like when

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-30 Thread rusi
On Jan 30, 6:31 pm, bansi mail2ba...@gmail.com wrote: On Jan 28, 4:22 pm, Benjamin Kaplan benjamin.kap...@case.edu wrote: You'll need to have Visual C++ 2008 (not 2010) installed for this to work. You can get it for free fromhttp://www.microsoft.com/express/Downloads/if you don't

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-30 Thread rusi
On Jan 30, 10:35 pm, rusi rustompm...@gmail.com wrote: On Jan 30, 6:31 pm, bansi mail2ba...@gmail.com wrote: Isn't it possible to implement your suggestion without installing Visual C++ 2008 . http://code.google.com/p/pyodbc/wiki/Building#Windows Well... This is what the official site says

Re: Understanding def foo(*args)

2011-01-30 Thread rusi
On Jan 31, 12:35 am, rantingrick rantingr...@gmail.com wrote: Also, can the terms method and function be used interchangeably? Can the terms cars and truck be used interchangeably? Oooff! A load of meaning in that one line -- I wonder though if the OP will understand... --

Re: Use the Source Luke

2011-01-29 Thread rusi
On Jan 30, 2:22 am, Ben Finney ben+pyt...@benfinney.id.au wrote: The “problem”, which I don't consider to be a problem per se, is one of OS-wide policy, not “installers”. The policy is a matter of tradeoffs across the system, and isn't “tucking the code away in a dark corner”. Earlier mail:

<    4   5   6   7   8   9   10   >