Re: Egos, heartlessness, and limitations

2011-04-16 Thread rusi
On Apr 16, 9:27 am, "Littlefield, Tyler" 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! -- http://mail.python.org/mailman/list

Re: Python IDE/text-editor

2011-04-16 Thread rusi
On Apr 16, 9:13 pm, Chris Angelico 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 takes a day or tw

Re: Python IDE/text-editor

2011-04-16 Thread rusi
On Apr 17, 3:19 am, John Bokma wrote: > rusi writes: > > On Apr 16, 9:13 pm, Chris Angelico 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 > >>

Re: Python IDE/text-editor

2011-04-16 Thread rusi
On Apr 17, 4:12 am, Krzysztof Bieniasz 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? :) > > Seriously though, when I w

Re: Python IDE/text-editor

2011-04-16 Thread rusi
On Apr 17, 8:22 am, John Bokma wrote: > rusi writes: > > On Apr 17, 3:19 am, John Bokma wrote: > >> rusi writes: > >> > On Apr 16, 9:13 pm, Chris Angelico wrote: > >> >> Based on the comments here, it seems that emacs would have to be the > &g

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 wrote: > On 15 Apr, 11:54, frankcui 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 operating systems of answering n

Re: An unusual question...

2011-04-17 Thread rusi
On Apr 17, 9:37 pm, 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 to do som

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 wrote: vi * 3 This would be a competition except for viper: http://www.emacswiki.org/emacs/ViperMode IOW emacs can be morphed into vi -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE/text-editor

2011-04-18 Thread rusi
On Apr 19, 9:32 am, Ben Finney wrote: > Alec Taylor 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 evaluating editors after > several days of

Re: Python IDE/text-editor

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

Re: Vectors

2011-04-24 Thread rusi
On Apr 25, 4:49 am, Robert Kern 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 Kabaila > > wrote: > >>> Are there any modules for vector algebra (three dimensional > >>> vectors, vector addition, sub

Re: De-tupleizing a list

2011-04-25 Thread rusi
On Apr 26, 9:59 am, Steven D'Aprano 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 returning a list > > like this?:

Re: Development tools and practices for Pythonistas

2011-04-26 Thread rusi
On Apr 26, 7:39 pm, snorble 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 > like, "I have probl

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

2011-04-26 Thread rusi
On Apr 27, 6:44 am, Tim Chase 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 present). > > Each of

Re: Terrible FPU performance

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

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 wrote: > On Tue, 26 Apr 2011 07:39:41 -0700 (PDT) > > snorble 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 use D for our > desktop

Re: Development tools and practices for Pythonistas

2011-05-01 Thread rusi
On Apr 30, 8:21 am, CM 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 > project, but >

Re: Development tools and practices for Pythonistas

2011-05-01 Thread rusi
On May 2, 8:22 am, Ben Finney wrote: > rusi 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 small s

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

Re: Development tools and practices for Pythonistas

2011-05-02 Thread rusi
On May 2, 12:08 pm, Algis Kabaila 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 hidden? Otherwise rc

Re: Fibonacci series recursion error

2011-05-02 Thread rusi
On Apr 30, 12:18 pm, Steven D'Aprano 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) = R(1) = 1 Changing your definitio

Re: Fibonacci series recursion error

2011-05-02 Thread rusi
On May 2, 2:53 pm, Hans Georg Schaathun wrote: > On 02 May 2011 08:56:57 GMT, Steven D'Aprano  > wrote: > > :  I see your smiley, but there are a number of similar series as Fibonacci, > :  with the same recurrence but different starting values, or similar but > :  slightly different recurrences

Recursion or iteration (was Fibonacci series recursion error)

2011-05-02 Thread rusi
On May 3, 2:50 am, harrismh777 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 much the same) questi

Re: Development software

2011-05-02 Thread rusi
On May 2, 8:23 pm, Petey 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 eclipse are use

Re: Fibonacci series recursion error

2011-05-02 Thread rusi
On May 3, 5:21 am, Steven D'Aprano 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 > > python. > > If you value runtime eff

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

2011-05-03 Thread rusi
On May 3, 10:29 am, Chris Angelico wrote: > On Tue, May 3, 2011 at 3:27 PM, Dan Stromberg 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 was trying to arrive at an answer

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

2011-05-03 Thread rusi
On May 3, 3:32 pm, Dave Angel 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 important than p

Re: Development tools and practices for Pythonistas

2011-05-03 Thread rusi
On May 3, 11:19 pm, Anssi Saari wrote: > rusi 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 li

Python packaging (was Development tools and practices for Pythonistas)

2011-05-06 Thread rusi
On May 6, 2:59 pm, Tim Golden wrote: > On 06/05/2011 10:51, Jonathan Hartley wrote: > > > On Apr 26, 3:39 pm, snorble  wrote: > >> I appreciate any advice or guidance anyone has to offer. > > > The 'Python Project HOWTO' gives good advice in terms of setting up a > > new project, what files and di

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: What other languages use the same data model as Python?

2011-05-07 Thread rusi
On May 8, 7:17 am, Steven D'Aprano 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 just fine by moving them

Re: Development tools and practices for Pythonistas

2011-05-08 Thread rusi
On Apr 26, 7:39 pm, snorble 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, test2.py, etc., f

Re: Testing tools classification

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

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 called?

Re: Non Programming in python

2011-05-10 Thread rusi
On May 11, 12:28 am, Terry Reedy 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 producti

Re: checking if a list is empty

2011-05-12 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 fro

Re: checking if a list is empty

2011-05-13 Thread rusi
On May 13, 1:02 pm, Chris Rebert wrote: > On Thu, May 12, 2011 at 11:46 PM, rusi 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

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

2011-05-13 Thread rusi
On May 12, 3:06 am, Hans Mulder 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(&

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: how to install easy_install

2011-05-14 Thread rusi
On May 13, 11:29 pm, Ian Kelly wrote: > On Fri, May 13, 2011 at 11:40 AM, rusi 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

Re: checking if a list is empty

2011-05-14 Thread rusi
On May 14, 12:39 pm, Steven D'Aprano 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 wrote: > On Sat, May 14, 2011 at 5:45 PM, rusi 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, then it'

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

2011-05-14 Thread rusi
On May 14, 2:48 am, Mark Dickinson 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 the standard log

Re: checking if a list is empty

2011-05-14 Thread rusi
On May 14, 8:55 pm, Chris Angelico wrote: > On Sun, May 15, 2011 at 1:47 AM, rusi 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 sin

Re: checking if a list is empty

2011-05-14 Thread rusi
On May 15, 4:26 am, Ben Finney wrote: > rusi 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 and False are

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

2011-05-14 Thread rusi
On May 15, 2:19 am, Ian Kelly wrote: > On Sat, May 14, 2011 at 11:24 AM, rusi 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: > >    

Re: checking if a list is empty

2011-05-15 Thread rusi
On May 15, 10:07 am, Steven D'Aprano 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 this. Let me try to rephrase Dijkstr

Re: checking if a list is empty

2011-05-15 Thread rusi
; (implies) or at best <= (follows from) It is possible to do all this -- traditional logic -- using = (aka iff, <=>, etc) The benefit is that logic becomes much more like traditional algebra: Proofs become of the form: desideradum = : : = true The cost is that bool has to be properly rei

Re: checking if a list is empty

2011-05-15 Thread rusi
On May 16, 2:36 am, Terry Reedy wrote: > On 5/15/2011 1:33 PM, rusi wrote: > > > On May 15, 10:07 am, Steven D'Aprano > +comp.lang.pyt...@pearwood.info>  wrote: > > >> I'm afraid I don't understand what you mean. Can you explain please, what > >

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 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 it > in Pyth

Re: Faster Recursive Fibonacci Numbers

2011-05-17 Thread rusi
On May 17, 8:50 pm, RJB 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 it > in Pyth

Re: Faster Recursive Fibonacci Numbers

2011-05-17 Thread rusi
t; > And increasingly inaccurate from 71 on. > > > Yup. That's floating point for you. For larger values you could just > > 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 > &

Re: English Idiom in Unix: Directory Recursively

2011-05-17 Thread rusi
On May 18, 9:51 am, Roland Hutchinson 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. 'Recursive' is a meani

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread rusi
On May 18, 11:58 am, Ian Kelly wrote: > On Wed, May 18, 2011 at 12:06 AM, rusi wrote: > > 4. Recursion in 'recursion theory' aka 'computability theory' is > > somehow different from recursion in programming. > > Um, it is.  Consider the simple functi

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread rusi
On May 18, 11:50 am, Harrison Hill 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: &g

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

2011-05-18 Thread rusi
On May 18, 12:05 pm, Sebastien Douche wrote: > On Thu, May 12, 2011 at 17:27, Jorge Romero 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 material or anyone who had luck running

Re: ipython prompt does not appear in windows

2011-05-18 Thread rusi
On May 18, 3:31 am, "Ori L." 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 flag) to ipython.

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

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

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread rusi
On May 18, 5:09 pm, Peter Moylan 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 common usage mirrors the facts

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread rusi
On May 18, 7:32 pm, Ian Kelly wrote: > On Wed, May 18, 2011 at 1:10 AM, rusi 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? > &g

Re: Faster Recursive Fibonacci Numbers

2011-05-18 Thread rusi
On May 18, 7:27 pm, RJB 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 F[n+m] = .. you p

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 definiti

Re: English Idiom in Unix: Directory Recursively

2011-05-19 Thread rusi
On May 20, 2:21 am, Rikishi42 wrote: > On 2011-05-18, Hans Georg Schaathun 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 structures, and therefore, naturally, avoid t

Re: Recursion in Computer Science

2011-05-19 Thread rusi
On May 20, 10:18 am, Chris Angelico wrote: > On Fri, May 20, 2011 at 3:05 PM, rusi 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! :) &g

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 ex

Re: English Idiom in Unix: Directory Recursively

2011-05-20 Thread rusi
On May 20, 1:48 pm, Hans Georg Schaathun wrote: > On 20 May 2011 06:55:35 GMT, Steven D'Aprano  > 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 not > : > be foisted o

Re: checking if a list is empty

2011-05-21 Thread rusi
On May 22, 1:11 am, Terry Reedy 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 intentionally. And when I

Re: checking if a list is empty

2011-05-21 Thread rusi
On May 22, 8:52 am, Chris Angelico wrote: > On Sun, May 22, 2011 at 1:02 PM, rusi 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: > You s

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: and becomes or and or becomes and

2011-05-23 Thread rusi
On May 23, 5:30 am, Steven D'Aprano wrote: > On Sun, 22 May 2011 15:39:33 -0700, Tim Roberts wrote: > > Stef Mientki 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 > > a & b > >>2 > >

Tkinter bug?

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

Re: Alternatives to PythonPath

2011-05-29 Thread rusi
On May 30, 2:49 am, ray 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 http://bob.pythonmac.org/archives/2005/02/06/using-pth-files-for-python-devel

Re: float("nan") in set or as key

2011-05-29 Thread rusi
On May 30, 7:53 am, Chris Angelico wrote: > On Mon, May 30, 2011 at 12:17 PM, Carl Banks 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 exists, that almost all floating point

Re: scope of function parameters

2011-05-31 Thread rusi
On May 29, 1:30 pm, Henry Olders 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 >         print fnc1(a) >

Re: scope of function parameters

2011-05-31 Thread rusi
On May 31, 9:46 pm, rusi 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 wrote: > On Sunday, May 29, 2011 8:59:49 PM UTC-7, Steven D'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 were unheard of, > >

Re: PYTHON 3.4 LEFTOVERS

2013-11-17 Thread rusi
On Sunday, November 17, 2013 2:42:05 PM UTC+5:30, Ferrous Cranus wrote: > Στις 16/11/2013 6:46 μμ, ο/η YBM έγραψε: > > You are utterly stupid: > > 1st: rm does not read its standard input so doing > > whatever | rm -fr is useless > > 2st: even if it had worked (i.e. removed the files) they > > woul

Re: Having trouble setting up an extremely simple server...

2013-11-21 Thread rusi
On Friday, November 22, 2013 11:02:43 AM UTC+5:30, Steven D'Aprano wrote: > To a fluent Python programmer, that's what semi-colons are like, although > to a lesser degree. An unnecessary distraction and annoyance, rather like > people who talk like this: > "Er, I prefer, um, using the semicolon

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-22 Thread rusi
On Friday, November 22, 2013 6:22:29 PM UTC+5:30, Bharath Kummar wrote: > Hello Sir/Mam,  > Could you please help me with my current research ?  Am implementing the > concept in python language.  > My doubts are : > 1)  Is it possible to Retrieve the address of a variable in python ? > 2)  Is it p

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 7:41:54 AM UTC+5:30, Ned Batchelder wrote: > On 11/26/13 8:26 PM, Rick Johnson wrote: > And will you be here to explain to time-travelling Shakespeare why we > are all of us speaking English completely wrong (to his ears)? And to my (Indian!!) ears when Tim says

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 3:02:54 PM UTC+5:30, rusi wrote: [Last line cut-off by mistake!] > It is my impression that the arguments that happen in/around > programming languages are more-heat-less-light than in typical > art/science because artistic questions masq

Re: Completely and utterly Off Topic [was Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !]

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 12:18:11 PM UTC+5:30, Steven D'Aprano wrote: > On Tue, 26 Nov 2013 17:26:48 -0800, Rick Johnson wrote: > [...] > > "A new home-run record!" > What is this "home-run" of which you speak? Houses don't generally run. > Surely you're not using a regional idiom outsid

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 6:27:52 PM UTC+5:30, Robert Kern wrote: > On 2013-11-27 08:16, Antoon Pardon wrote: > > Op 26-11-13 22:42, Tim Delaney schreef: > >> On 27 November 2013 03:57, Antoon Pardon wrote: > >> So I can now ask my questions in dutch and expect others to try and > >>

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 7:39:37 PM UTC+5:30, Larry wrote: > On Wed, Nov 27, 2013 at 5:31 AM, Paul Rudin wrote: > > rusi writes: > >> Propositionally: All languages are equal -- Turing complete > > As an aside, not all languages are Turing complete. For example C

Re: Wrapping around a list

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 4:16:50 PM UTC+5:30, Amjad Syed wrote: > Hello, > > I am working on a problem (Bioinformatics domain) where all possible > combinations of input string needs to be printed as sublist If we take the standard combinations (Pascal triangle) result nCr + nCr-1 = n+1Cr

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 9:55:12 PM UTC+5:30, Tim Chase wrote: > On 2013-11-27 01:32, rusi wrote: > > > And will you be here to explain to time-travelling Shakespeare > > > why we are all of us speaking English completely wrong (to his > > > ears)? > >

Re: Access database - GUI - Python - I need architectural advice

2013-11-27 Thread rusi
On Thursday, November 28, 2013 3:05:13 AM UTC+5:30, jm.almeras wrote: > Hello ! > I wish to develop a database application with a lot of specific > functionnalities dealing with sound files. > I have developped an Access prototype and run into a first problem : it > is not so easy to find code

Curing google groups issues (was parsing nested unbounded XML…)

2013-11-28 Thread rusi
On Tuesday, November 26, 2013 4:55:55 AM UTC+5:30, larry@gmail.com wrote: > > Not sure what you mean by malformed. I don't really care for Google Groups, > > but I've been using it to post to this any other groups for years (since rn > > and deja news went away) and no one ever said my posts we

Managing Google Groups headaches

2013-11-28 Thread rusi
This silly google-groups does not reflect changed subject lines!! That means that GG users who may want to read this may not see it. So reposting as a new thread: -- Here's what I do to manage the GG-headaches: 1. Firefox needs to have the "Its all text" addon i

Re: Managing Google Groups headaches

2013-11-28 Thread rusi
On Thursday, November 28, 2013 7:28:14 PM UTC+5:30, Chris Angelico wrote: > On Fri, Nov 29, 2013 at 12:52 AM, rusi wrote: > > Here's what I do to manage the GG-headaches: > Useful tips, I am sure, but they solve the problem only for you. > Everyone who reads python-lis

Re: Managing Google Groups headaches

2013-11-28 Thread rusi
On Thursday, November 28, 2013 7:55:52 PM UTC+5:30, Chris Angelico wrote: > On Fri, Nov 29, 2013 at 1:17 AM, rusi wrote: > > The problems with GG as I understand are > > 1. Double spacing > > 2. Long lines > > As far as I can see both are cured with the method outlined

Re: Managing Google Groups headaches

2013-11-28 Thread rusi
On Thursday, November 28, 2013 9:20:39 PM UTC+5:30, Alister wrote: > On Fri, 29 Nov 2013 02:08:17 +1100, Chris Angelico wrote: > > On Fri, Nov 29, 2013 at 2:04 AM, rusi wrote: > >> Its really quite unclear to me why GG is a problem if all the problems > >> of GG are ob

Re: Managing Google Groups headaches

2013-11-28 Thread rusi
Here's a 1-click pure python solution. As I said I dont know how to manage errors! 1. Put it in a file say cleangg.py and make it executable 2. Install it as the 'editor' for the "Its all text" firefox addon 3. Click the edit and you should get a cleaned out post -- #

Re: Getting the Appdata Directory with Python and PEP?

2013-11-28 Thread rusi
On Thursday, November 28, 2013 9:41:30 PM UTC+5:30, Eamonn Rea wrote: > Oh, sorry, I'm new to how Google Groups works. I wonder why it lays it out > like that. Can it not just show quotes like the way that PHPbb does? > > I never thought of reading the source code, thanks! :-) > > Oh, and the last

Re: Managing Google Groups headaches

2013-11-28 Thread rusi
On Thursday, November 28, 2013 11:59:13 PM UTC+5:30, Michael Torrie wrote: > On 11/28/2013 10:23 AM, Ned Batchelder wrote: > > Funny, I thought the sentiment of many here was, "let's just keep this > > as a newsgroup, why do we need the mailing list also?" but I'll admit to > > being confused abo

Re: Managing Google Groups headaches

2013-11-28 Thread rusi
On Friday, November 29, 2013 12:07:29 AM UTC+5:30, rusi wrote: > On Thursday, November 28, 2013 11:59:13 PM UTC+5:30, Michael Torrie wrote: > > On 11/28/2013 10:23 AM, Ned Batchelder wrote: > > > Funny, I thought the sentiment of many here was, "let's just keep this

Re: Change a file type in Python?

2013-11-30 Thread rusi
On Sunday, December 1, 2013 5:34:11 AM UTC+5:30, Eamonn Rea wrote: > Thanks for the help! > > Ok, I'll look into the mailing list. [Assuming you are using GG with firefox on linux] All you need to do is 1. Install 'Its all text' FF addon 2. Point the 'editor' of 'Its all text' to the below python

Re: Change a file type in Python?

2013-11-30 Thread rusi
On Sunday, December 1, 2013 8:52:03 AM UTC+5:30, Chris Angelico wrote: > On Sun, Dec 1, 2013 at 2:02 PM, rusi wrote: > > On Sunday, December 1, 2013 5:34:11 AM UTC+5:30, Eamonn Rea wrote: > >> Thanks for the help! > >> > >> Ok, I'll look into the mailing

Re: Checking Common File Types

2013-12-01 Thread rusi
On Monday, December 2, 2013 5:11:15 AM UTC+5:30, jade wrote: > > To: pytho...@python.org > > From: wlf...@ix.netcom.com > > Subject: Re: Checking Common File Types > > Date: Sun, 1 Dec 2013 18:23:22 -0500 > > > > On Sun, 1 Dec 2013 18:27:16 +, jade declaimed the > > following: > > > > >Hello

<    1   2   3   4   5   6   7   8   9   10   >