Re: Can somebody give me an advice about what to learn?

2012-09-30 Thread rusi
On Sep 30, 5:58 pm, tcgo wrote: > Hi! > I'm really new to Usenet/Newsgroups, but... I'd like to learn some new > programming language, because I learnt a bit of Perl though its OOP is ugly. > So, after searching a bit, I found Python and Ruby, and both of they are cute. > So, assuming you'll say

Re: Article on the future of Python

2012-09-28 Thread rusi
On Sep 28, 5:54 pm, Steven D'Aprano wrote: > On Fri, 28 Sep 2012 05:08:24 -0700, rusi wrote: > > On Sep 27, 5:11 pm, Devin Jeanpierre wrote: > >> On Thu, Sep 27, 2012 at 2:13 AM, Steven D'Aprano > > >> wrote: > >> > On Tue, 25 Sep 2012 09:15:

Re: Article on the future of Python

2012-09-28 Thread rusi
On Sep 27, 5:11 pm, Devin Jeanpierre wrote: > On Thu, Sep 27, 2012 at 2:13 AM, Steven D'Aprano > > wrote: > > On Tue, 25 Sep 2012 09:15:00 +0100, Mark Lawrence wrote: > > And a response: > > >http://data.geek.nz/python-is-doing-just-fine > > Summary of that article: > > "Sure, you have all these

Re: Stop feeding the trolls (Was: which a is used?)

2012-09-27 Thread rusi
On Sep 28, 10:21 am, Dwight Hutto wrote: > On Fri, Sep 28, 2012 at 1:12 AM, Littlefield, Tyler > wrote: > > On 9/27/2012 10:50 PM, Dwight Hutto wrote: > > >> On Fri, Sep 28, 2012 at 12:40 AM, Chris Angelico wrote: > > >>> On Fri, Sep 28, 2012 at 1:47 PM, Dwight Hutto > >>> wrote: > > [ lo

Re: Bitshifts and "And" vs Floor-division and Modular

2012-09-07 Thread rusi
On Sep 7, 9:32 am, Paul Rubin wrote: > rusi writes: > > On an 8086/8088 a MUL (multiply) instruction was of the order of 100 > > clocks ...  On most modern processors (after the pentium) the > > difference has mostly vanished.  I cant find a good data sheet to > >

Re: Bitshifts and "And" vs Floor-division and Modular

2012-09-06 Thread rusi
On Sep 7, 5:01 am, jimbo1qaz wrote: > Is it faster to use bitshifts or floor division? And which is better, & or %? > All divisors and mods are power of 2, so are binary operations faster? And > are they considered bad style? On an 8086/8088 a MUL (multiply) instruction was of the order of 100 c

Re: How to tell people to ask questions the smart way

2012-09-04 Thread rusi
On Sep 5, 4:27 am, Mark Lawrence wrote: > On 05/09/2012 00:05, Ben Finney wrote: > > > > > > > > > > > Andreas Perstinger writes: > > >> On 04.09.2012 11:34, Paolo wrote: > >>> how do I know if a JTextField has the focus? > >>> thank to all > > >> Look there: > >>http://www.catb.org/esr/faqs/smar

Re: Flexible string representation, unicode, typography, ...

2012-08-28 Thread rusi
On Aug 28, 4:57 am, Neil Hodgson wrote: > wxjmfa...@gmail.com: > > > Go "has" the integers int32 and int64. A rune ensure > > the usage of int32. "Text libs" use runes. Go has only > > bytes and runes. > >      Go's text libraries use UTF-8 encoded byte strings. Not arrays of > runes. See, for exa

python-list@python.org

2012-08-24 Thread rusi
On Aug 24, 8:58 pm, rusi wrote: > On Aug 24, 7:23 pm, Ramchandra Apte wrote: > > > As BFDL, I hereby command everybody to stop the discussion. > > lets put time on useful stuff > > > i am using google groups (i think it knows what to do) > > Your posts are co

Re: Looking for duplicate modules

2012-08-24 Thread rusi
On Aug 23, 8:30 pm, Roy Smith wrote: > We got burned yesterday by a scenario which has burned us before.  We had > multiple copies of a module in sys.path.  One (the one we wanted) was in our > deployed code tree, the other was in /usr/local/lib/python/ or some such.  It > was a particularly co

Re: Flexible string representation, unicode, typography, ...

2012-08-24 Thread rusi
On Aug 24, 12:22 am, Ian Kelly wrote: > On Thu, Aug 23, 2012 at 12:33 PM,   wrote: > >> >>> sys.getsizeof('a' * 80 * 50) > > >> > 4025 > > >> sys.getsizeof('a' * 80 * 50 + '•') > > >> > 8040 > > >>     This example is still benefiting from shrinking the number of bytes > > >> in half over usi

python-list@python.org

2012-08-24 Thread rusi
On Aug 24, 7:23 pm, Ramchandra Apte wrote: > As BFDL, I hereby command everybody to stop the discussion. > lets put time on useful stuff > > i am using google groups (i think it knows what to do) Your posts are coming in doubles. And the quoted lines are coming double-spaced! Actually the 'new'

Re: Data cleaning workouts

2012-08-23 Thread rusi
On Aug 23, 12:52 pm, Fg Nu wrote: > List folk, > > I am a newbie trying to get used to Python. I was wondering if anyone knows > of web resources that teach good practices in data cleaning and management > for statistics/analytics/machine learning, particularly using Python. > > Ideally, these w

Re: Guarding arithmetic

2012-08-23 Thread rusi
On Aug 23, 3:11 pm, Peter Otten <__pete...@web.de> wrote: > Mark Carter wrote: > > Suppose I want to define a function "safe", which returns the argument > > passed if there is no error, and 42 if there is one. So the setup is > > something like: > > > def safe(x): > >    # WHAT WOULD DEFINE HERE?

Re: Objects in Python

2012-08-23 Thread rusi
On Aug 23, 9:34 am, Steven D'Aprano wrote: > On Wed, 22 Aug 2012 18:46:43 +0100, lipska the kat wrote: > > We need to separate out the 'view' from the 'implementation' here. Most > > developers I know, if looking at the code and without the possibly > > dubious benefit of knowing that in Python 'e

Re: Top-posting &c. (was Re: [ANNC] pybotwar-0.8)

2012-08-20 Thread rusi
On Aug 19, 12:15 pm, Steven D'Aprano wrote: > is probably a really great person and kind to small animals and furry > children, but... ROFL! The first we're all familiar with. Furry children? Something to do with heads the size of a planet? -- http://mail.python.org/mailman/listinfo/python-l

Re: How do I display unicode value stored in a string variable using ord()

2012-08-19 Thread rusi
On Aug 19, 11:11 pm, wxjmfa...@gmail.com wrote: > Le dimanche 19 août 2012 19:48:06 UTC+2, Paul Rubin a écrit : > > > > > But they are not ascii pages, they are (as stated) MOSTLY ascii. > > > E.g. the characters are 99% ascii but 1% non-ascii, so 393 chooses > > > a much more memory-expensive enco

Re: How do I display unicode value stored in a string variable using ord()

2012-08-18 Thread rusi
On Aug 18, 10:59 pm, Steven D'Aprano wrote: > On Sat, 18 Aug 2012 08:07:05 -0700, wxjmfauth wrote: > > Is there any reason why non ascii users are somehow penalized compared > > to ascii users? > > Of course there is a reason. > > If you want to represent 1114111 different characters in a string,

Re: Top-posting &c. (was Re: [ANNC] pybotwar-0.8)

2012-08-18 Thread rusi
On Aug 18, 8:34 pm, Grant Edwards wrote: > On 2012-08-17, rusi wrote: > > > I was in a corporate environment for a while.  And carried my > > 'trim&interleave' habits there. And got gently scolded for seeming to > > hide things!! > > I have, rarely, g

Re: Top-posting &c. (was Re: [ANNC] pybotwar-0.8)

2012-08-17 Thread rusi
On Aug 17, 10:19 am, Dennis Lee Bieber wrote: > On Thu, 16 Aug 2012 15:42:54 -0700 (PDT), Madison May > declaimed the following in > gmane.comp.python.general: > > > > > As a lurker, I agree completely with Chris's sentiments. > >         I've been holding back on quoting the "netiquette RFC"...

Re: remote read eval print loop

2012-08-17 Thread rusi
On Aug 17, 12:25 pm, Chris Angelico wrote: > On Fri, Aug 17, 2012 at 12:27 PM, Steven D'Aprano > > wrote: > > There is already awesome protocols for running Python code remotely over > > a network. Please do not re-invent the wheel without good reason. > > > See pyro, twisted, rpyc, rpclib, jpc,

Re: Top-posting &c. (was Re: [ANNC] pybotwar-0.8)

2012-08-17 Thread rusi
On Aug 17, 3:36 am, Chris Angelico wrote: > On Fri, Aug 17, 2012 at 1:40 AM, Ramchandra Apte > wrote: > > On 16 August 2012 21:00, Mark Lawrence wrote: > >> and "bottom" reads better than "top" > > > Look you are the only person complaining about top-posting. > > GMail uses top-posting by defau

Re: save dictionary to a file without brackets.

2012-08-13 Thread rusi
On Aug 13, 1:05 pm, Steven D'Aprano wrote: > > Chill out Alex, it's all good. Mark was channelling a famous scene from > "Fawlty Towers", staring Monty Python's own John Cleese, hence it is on- > topic, for the sillier definitions of on-topic. Ha! Thanks for that connection. Watched and enjoyed F

Re: Looking for a good introduction to object oriented programming with Python

2012-08-08 Thread rusi
On Aug 8, 2:51 pm, lipska the kat wrote: > The point I'm obviously struggling to make is that words convey concepts > The word Person conveys a whole lifetime of experience of People and as > imperfect human beings many of us are unable to tease out 'bits of being > a person' that are relevant to

Re: Looking for a good introduction to object oriented programming with Python

2012-08-07 Thread rusi
On Aug 7, 7:34 pm, lipska the kat wrote: > > Never thought so for a moment, good to know you can be reasonable as > well as misguided ;-) Well Lipska I must say that I find something resonant about the 'no- person' thing, though I am not sure what. You also said something about 'user' being more

Re: Intermediate Python user needed help

2012-08-06 Thread rusi
On Aug 7, 8:06 am, Jugurtha Hadjar wrote: > On 08/05/2012 09:52 PM, John Mordecai Dildy wrote: > > > NameError: name 'start' is not defined > > > anyone know how to make start defined > > Maybe rename it "defined_start" ;) > > I wonder how someone can get to the point of writing more than 76 lines

Alternate Python extensions (was alternate Python implementations)

2012-08-06 Thread rusi
On Aug 4, 11:15 am, Steven D'Aprano wrote: > Most people are aware, if only vaguely, of the big Four Python > implementations: I think the question about where Cython fits into this, raises the need for a complementary list to Steven's. What are the different ways in which python can be extende

Re: The way to develope a graphical application to manage a Postgres database

2012-08-06 Thread rusi
On Aug 5, 11:26 pm, Csanyi Pal wrote: > Mark Lawrence writes: > > On 05/08/2012 16:58, Csanyi Pal wrote: > >> Walter Hurry writes: > > >>> On Thu, 02 Aug 2012 20:24:36 +0200, Csanyi Pal wrote: > > I'm searching for a way to develope a Python graphical application for a > Postgresql dat

Re: Intermediate Python user needed help

2012-08-06 Thread rusi
On Aug 7, 6:16 am, Steven D'Aprano wrote: > On Mon, 06 Aug 2012 09:05:50 -0700, Ethan Furman wrote: > >   These are not the errors an intermediate user would make, nor the > > questions an intermediate user would ask.  These are the errors that > > somebody who doesn't know Python would make. > >

Re: Looking for a good introduction to object oriented programming with Python

2012-08-06 Thread rusi
On Aug 6, 7:27 pm, lipska the kat wrote: > You take out the garbage. > I've got automatic garbage collection :-) BTW in "automatic garbage collection" which of the three words is most important? Least? Heres another take on nouns (and therefore OO): http://hilgart.org/enformy/dma-verb.htm --

Re: Looking for a good introduction to object oriented programming with Python

2012-08-06 Thread rusi
On Aug 6, 12:46 am, lipska the kat wrote: > On 04/08/12 16:49, Jean Dubois wrote: > > > I'm looking for a good introduction to object oriented programming > > with Python. > > Object Oriented programming is a mindset, a way of looking at that > particular part of our world that you are trying to

Re: Eclipse and the Python plugin

2012-08-03 Thread rusi
On Aug 3, 10:04 pm, lipska the kat wrote: > > 117 methods seems a lot doesn't it. I'm still trying to get my head > around Python packages, I think Eclipse will help me with this and the > whole module mix of functions and classes is taking a while to get used > to. The standard included libraries

Re: Eclipse and the Python plugin

2012-08-03 Thread rusi
On Aug 3, 4:34 pm, lipska the kat wrote: > A while ago someone asked me what I thought of the Eclipse plugin for > python, well I just downloaded and installed the latest version of > Eclipse for Java (Juno) followed by the Python plugin. Thanks Lipska for reporting back. I personally find the ec

Re: Is Python a commercial proposition ?

2012-07-30 Thread rusi
On Jul 29, 9:01 pm, lipska the kat wrote: > Pythoners > > Firstly, thanks to those on the tutor list who answered my questions. > > I'm trying to understand where Python fits into the set of commonly > available, commercially used languages of the moment. > > My most recent experience is with Java

Re: OT: Text editors

2012-07-28 Thread rusi
On Jul 29, 10:08 am, Ben Finney wrote: > Tim Chase writes: > > On Sat, Jul 28, 2012 at 6:29 PM, Mark Lawrence wrote: > > > I highly recommend the use of notepad++.  If anyone knows of a > > > better text editor for Windows please let me know :) I would have bet Mark was ribbing the folks on this

Re: from future import pass_function

2012-07-26 Thread rusi
On Jul 25, 1:40 pm, Ulrich Eckhardt wrote: > Hi! > > I just had an idea, it occurred to me that the pass statement is pretty > similar to the print statement, and similarly to the print() function, > there could be a pass() function that does and returns nothing. > > Example: >     def pass(): >  

Re: from future import pass_function

2012-07-25 Thread Rusi
Ulrich: If you take a look at pep 3105 you find five rationales. http://www.python.org/dev/peps/pep-3105/#rationale If the first were the only one then your suggestion would have merit. There are also the other 4 in which pass and print dont really correspond. Steven wrote earlier: > I have an ax

Re: Using Python packaging tools to maintain source distributions in other languages?

2012-07-24 Thread Rusi
On Jul 25, 2:25 am, eric.lemi...@gmail.com wrote: > On Monday, July 23, 2012 11:59:10 PM UTC-6, Rusi wrote: > > Ive heard good things about scons http://en.wikipedia.org/wiki/SCons > > I've heard about SCons but don't know much about it.  From what little I've &

Re: Using Python packaging tools to maintain source distributions in other languages?

2012-07-23 Thread rusi
On Jul 23, 11:16 pm, eric.lemi...@gmail.com wrote: > Greetings all, > > I would like to leverage the Python packaging tools (e.g. distutils, > setuptools, distribute, et. al.) to maintain (i.e. download, extract, > configure, make, install, package) source distributions other than Python > modul

Re: Gender, Representativeness and Reputation in StackOverflow

2012-07-23 Thread rusi
> On Mon, 23 Jul 2012 22:51:07 -0400, Devin Jeanpierre wrote: > > When people boycott a product, it isn't because not having the product > > is better than having the product. That's clearly untrue: despite the > > reasons for the boycott, the product has some value. They boycott it > > because by

Re: My first ever Python program, comments welcome

2012-07-23 Thread rusi
On Jul 22, 10:23 pm, Lipska the Kat wrote: > Heh heh, Nothing to do with Eclipse, just another thing to get my head > around. For work and Java IMHO you can't beat eclipse... > at the moment I'm getting my head around git, Bumped into this yesterday. Seems like a good aid to git-comprehension ht

Re: Freedom and Data (was Gender, Representativeness and Reputation in StackOverflow)

2012-07-23 Thread rusi
On Jul 24, 9:28 am, Chris Angelico wrote: > On Tue, Jul 24, 2012 at 1:56 PM, rusi wrote: > > "How many of you use Linux?" I ask. > > The awkwardness is in the definition of the question. Many of the > products that I buy will have, at some point, been carried by a tru

Freedom and Data (was Gender, Representativeness and Reputation in StackOverflow)

2012-07-23 Thread rusi
On Jul 24, 7:51 am, Devin Jeanpierre wrote: > On Mon, Jul 23, 2012 at 9:30 PM, Steven D'Aprano > > wrote: > >> Leaving aside the point that this is not directly related to Python, my > >> opinion is that if the authors will not make past and future papers > >> freely available, not even an abstra

Re: Converting a list of strings into a list of integers?

2012-07-23 Thread rusi
On Jul 23, 7:27 pm, Grant Edwards wrote: > That said, "map" seems to be frowned upon by the Python community for > reasons I've never really understood,... Maybe the analogy: comprehension : map:: relational calculus : relational algebra In particular map, filter correspond to project and

Re: My first ever Python program, comments welcome

2012-07-22 Thread rusi
On Jul 22, 2:20 pm, Lipska the Kat wrote: > Well I have to say that I've used Eclipse with the myEclipse plugin for > a number of years now and although it has it's moments it has earned me > LOADS of MONEY so I can't really criticise it. Ive probably tried to use eclipse about 4 times in the la

Re: My first ever Python program, comments welcome

2012-07-21 Thread rusi
On Jul 22, 1:10 am, Dave Angel wrote: > A totally off-the-wall query.  Are you using a source control system, > such as git ?  It can make you much braver about refactoring a working > program. Question in a similar vein: What development environment do you use? My impression is that the majorit

Re: can someone teach me this?

2012-07-20 Thread rusi
On Jul 21, 7:09 am, Menghsiu Lee wrote: "can someone teach me this?" Lesson 1: Use an informational subject line Lesson 2: Post what you did and what happened -- http://mail.python.org/mailman/listinfo/python-list

Re: Encapsulation, inheritance and polymorphism

2012-07-19 Thread rusi
ented language is just plain misleading. > On 19/07/12 07:09, rusi wrote: > > In layman-speak and object is well, a thing. > > But we are not talking in 'layman-speak' we are discussing concepts that > are familiar to us in the 'language of the domain' at

Re: Encapsulation, inheritance and polymorphism

2012-07-18 Thread rusi
On Jul 19, 6:34 am, Steven D'Aprano wrote: > On Wed, 18 Jul 2012 15:40:00 +0100, Lipska the Kat wrote: > > Object Oriented programming is all about encapsulating human concepts in > > a way that makes sense to human beings. Make no mistake, it is NEVER the > > case that a software system is writte

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread rusi
On Jul 18, 5:46 am, Andrew Cooper wrote: > On 17/07/2012 19:36, Lipska the Kat wrote: > > > > > > > > > > > On 17/07/12 19:18, Mark Lawrence wrote: > >> On 17/07/2012 18:29, Ethan Furman wrote: > >>> Terry Reedy wrote: > On 7/17/2012 10:23 AM, Lipska the Kat wrote: > > > Well 'type-bondag

Re: Implicit conversion to boolean in if and while statements

2012-07-16 Thread rusi
On Jul 15, 9:50 pm, Rick Johnson wrote: > On Sunday, July 15, 2012 11:19:16 AM UTC-5, Ian wrote: > > On Sun, Jul 15, 2012 at 4:56 AM, Steven D'Aprano > > wrote: > > > (For the record, I can only think of one trap for the unwary: time > > > objects are false at *exactly* midnight.) > > > Ugh, that

Re: Simulation Results Managment

2012-07-15 Thread rusi
On Jul 15, 11:35 am, Dieter Maurer wrote: > moo...@yahoo.co.uk writes: > > ... > > Does pickle have any advantages over json/yaml? > > It can store and retrieve almost any Python object with almost no effort. > > Up to you whether you see it as an advantage to be able to store > objects rather tha

Re: Simulation Results Managment

2012-07-14 Thread rusi
On Jul 14, 10:50 am, moo...@yahoo.co.uk wrote: > Hi, > This is a general question, loosely related to python since it will be the > implementation language. > I would like some suggestions as to manage simulation results data from my > ASIC design. > > For my design, > - I have a number of simula

Re: Python and Qt4 Designer

2012-07-14 Thread rusi
On Jul 14, 7:45 pm, Michael Torrie wrote: > On 07/13/2012 03:12 PM, Jean Dubois wrote: > > > Thanks for the extra docu references > > In this day and age, I think compiling ui files to code is probably on > the way out.  Instead you should consider using the ui files directly in > your code.  This

Re: lambda in list comprehension acting funny

2012-07-13 Thread rusi
On Jul 14, 8:43 am, Steven D'Aprano wrote: > On Fri, 13 Jul 2012 19:31:24 -0700, rusi wrote: > > Consider the following > > > def foo(x): > >     i = 100 > >     if x: > >         j = [i for i in range(10)] > >         return i > >     else: &g

Re: lambda in list comprehension acting funny

2012-07-13 Thread rusi
On Jul 13, 10:53 pm, Hans Mulder wrote: > If you add `global VERBOSE` to `caller`, then there is only one > variable named `VERBOSE` and what `function` does, depends on > the most recent assignment to that variable. > > If you remove your `global VERBOSE`, then there are two > variables by that n

Re: lambda in list comprehension acting funny

2012-07-13 Thread rusi
On Jul 13, 9:12 pm, "Prasad, Ramit" wrote: > > VERBOSE = True > > > def function(arg): > >     if VERBOSE: > >        print("calling function with arg %r" % arg) > >     process(arg) > > > def caller(): > >     VERBOSE = False > >     function(1) > > > -

Re: code review

2012-07-13 Thread rusi
On Jul 13, 8:36 pm, Chris Angelico wrote: > On Sat, Jul 14, 2012 at 1:04 AM, Steven D'Aprano > > wrote: > > Actually, no. Is True less than False, or is it greater? In boolean > > algebra, the question has no answer. It is only an implementation detail > > of Python that chooses False < True. > >

Re: lambda in list comprehension acting funny

2012-07-13 Thread rusi
To come back to the OPs question. Variables can be assigned. Or they can be bound. [C++ programmers will be familiar with the difference between initialization and assignment] List comprehensions are defined in terms of assignment to the local variable rather than binding. Hence the issue. Below

Re: lambda in list comprehension acting funny

2012-07-13 Thread rusi
On Jul 13, 11:36 am, Steven D'Aprano wrote: > On Thu, 12 Jul 2012 21:33:40 -0700, rusi wrote: > > On Jul 11, 11:41 am, Daniel Fetchinson > > wrote: > >> funcs = [ lambda x: x**i for i in range( 5 ) ] print funcs[0]( 2 ) > >> print funcs[1]( 2 ) > &g

Re: lambda in list comprehension acting funny

2012-07-12 Thread rusi
On Jul 11, 11:41 am, Daniel Fetchinson wrote: > funcs = [ lambda x: x**i for i in range( 5 ) ] > print funcs[0]( 2 ) > print funcs[1]( 2 ) > print funcs[2]( 2 ) > > This gives me > > 16 > 16 > 16 > > When I was excepting > > 1 > 2 > 4 > > Does anyone know why? > > Cheers, > Daniel Your expectatio

Re: Python Interview Questions

2012-07-10 Thread rusi
On Jul 10, 12:33 pm, Steven D'Aprano wrote: > This is why I hate job interviews. You have like 30 minutes, or even as > little as 30 seconds, to make a good impression on somebody who may or > may not be capable of telling the difference between a cheese sandwich > and a box of hair -- and even th

Re: Python Interview Questions

2012-07-09 Thread rusi
On Jul 10, 4:40 am, Roy Smith wrote: > In article , >  Christian Heimes wrote: > > > Am 09.07.2012 23:22, schrieb Peter: > > > One of my favourite questions when interviewing - and it was 100% reliable > > > :-) - "what are your hobbies?" > > > > If the answer included programming then they were

Re: code review

2012-07-04 Thread rusi
On Jul 4, 11:17 am, alex23 wrote: > On Jul 4, 3:39 pm, "Littlefield, Tyler" wrote: > > > I basically just stopped after a while. It got into a my language is > > better than your language, so I didn't see much constructive info. > > To be fair, it's more "my vision of the language is better than

Re: code review

2012-07-02 Thread rusi
On Jul 3, 7:25 am, John O'Hagan wrote: > > I agree to some extent, but as a counter-example, when I was a child there > a subject called "Weights and Measures" which is now redundant because of the > Metric system. I don't miss hogsheads and fathoms at all. > > Music is another field which could d

Re: IPython 0.13 is officially out!

2012-07-01 Thread rusi
On Jul 1, 9:03 pm, Dave Cook wrote: > On 2012-07-01, Virgil Stokes wrote: > > > I have tried to update 0.12 in Ubuntu 12.04 but as of now it can not find > > 0.13. > > Any suggestions on how to get it into Ubuntu 12.04 would be appreciated. > > Install pip and use it to upgrade ipython: > > sudo

Re: code review

2012-06-30 Thread rusi
On Jul 1, 8:23 am, Steven D'Aprano wrote: > On Sun, 01 Jul 2012 10:37:05 +1000, Chris Angelico wrote: > > On Sun, Jul 1, 2012 at 10:08 AM, Ben Finney > > wrote: > >> Thomas Jollans writes: > > >>> My sole point, really, is that "normally", one would expect these two > >>> expressions to be equiv

Re: code review

2012-06-30 Thread rusi
On Jul 1, 3:05 am, Thomas Jollans wrote: > Yes. My sole point, really, is that "normally", one would expect these > two expressions to be equivalent: > > a < b < c > (a < b) < c > > This is clearly not true. That's the inconsistency here I dont see the inconsistency with the specific example

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-29 Thread rusi
On Jun 10, 3:36 pm, Arnaud Delobelle wrote: > On 10 June 2012 07:16, rusi wrote: > > > This is worth a read in this > > context:http://osteele.com/archives/2004/11/ides > > Interesting! I definitely fall nicely at one extreme of this > dichotomy.  Every time I&#

Re: Recommend decent Computer Science books

2012-06-27 Thread rusi
On Jun 28, 2:00 am, David Thomas wrote: > Hi I know that this is a group about Python.  But I am just wondering if > anybody can recommend any introductory/good books on Conputer Science. > > Kind regards This is like asking: How do I live my life? or make money (or love)? etc Not that there are

Re: emded revision control in Python application?

2012-06-22 Thread rusi
On Jun 22, 8:58 pm, duncan smith wrote: > Hello, >        I have an application that would benefit from collaborative > working. Over time users construct a "data environment" which is a > number of files in JSON format contained in a few directories (in the > future I'll probably place these in a

Re: which one do you prefer? python with C# or java?

2012-06-12 Thread rusi
On Jun 12, 3:19 am, Matej Cepl wrote: > On 11/06/12 06:20, rusi wrote: > > > Hi Matěj! If this question is politically incorrect please forgive me. > > Do you speak only one (natural) language -- English? > > And if this set is plural is your power of expression identi

Re: which one do you prefer? python with C# or java?

2012-06-10 Thread rusi
On Jun 10, 6:40 pm, Matej Cepl wrote: > On 10/06/12 00:44, Yesterday Paid wrote: > > > I'm planning to learn one more language with my python. > > Just my personal experience, but after passively learning many many > languages, I came to the conclusion that I (and I suppose many others) > am able

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-10 Thread rusi
On Jun 10, 4:52 pm, Dietmar Schwertberger wrote: > Am 10.06.2012 08:16, schrieb rusi:> This is worth a read in this > context:http://osteele.com/archives/2004/11/ides > > > I've read the article. It presents some nice ideas, but probably the > author has not used Pyt

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-09 Thread rusi
On Jun 9, 10:07 pm, Dietmar Schwertberger wrote: > > And you can than go in the code editor to that function and change the > > code to do whatever you want. > > Having to go there is already more work than I would expect. > I would expect to go there e.g. by a double-click. > > This is just a min

Re: Nexus Programming Language

2012-06-09 Thread rusi
On Jun 10, 7:46 am, Adam Campbell wrote: > The Nexus programming language version 0.5.0 has been released. It is > an "object-oriented, dynamically-typed, reflective programming > language", drawing from Lua and Ruby.www.nexuslang.org What does nexus have that python doesn't? Yeah I know this kin

Re: python for android anyone?

2012-05-28 Thread rusi
On May 28, 9:13 pm, Paul Rubin wrote: > rusi writes: > > Ive been wanting to try the sl4a for a new android phone Ive got hold > > of as spelt out at > >http://www.linuxjournal.com/article/10940 > > > Has anyone any experience/dos/donts for this? > > One of

python for android anyone?

2012-05-28 Thread rusi
Ive been wanting to try the sl4a for a new android phone Ive got hold of as spelt out at http://www.linuxjournal.com/article/10940 Has anyone any experience/dos/donts for this? I am writing this while the update of the android sdk is happening and its taking forever. So just wondering if its wort

Re: escaping/encoding/formatting in python

2012-05-21 Thread rusi
On Apr 6, 10:13 am, Steve Howell wrote: > On Apr 5, 9:59 pm,rusi wrote: > > > On Apr 6, 6:56 am,SteveHowell wrote: > > > > One of the biggest nuisances for programmers, just beneath date/time > > > APIs in the pantheon of annoyances, is that we are constantly dea

Re: Trouble splitting strings with consecutive delimiters

2012-05-01 Thread rusi
On May 1, 9:50 am, deuteros wrote: > I'm using regular expressions to split a string using multiple delimiters. > But if two or more of my delimiters occur next to each other in the > string, it puts an empty string in the resulting list. For example: > >         re.split(':|;|px', "width:150px;he

Re: why () is () and [] is [] work in other way?

2012-04-26 Thread rusi
On Apr 26, 7:44 pm, Adam Skutt wrote: > On Apr 26, 10:18 am, rusi wrote: > > > On Apr 26, 4:42 pm, Adam Skutt wrote: > > > > In a mathematical sense, you're saying that given f(x) = x+2, using > > > f(x) is somehow more "direct" (whatever

Re: why () is () and [] is [] work in other way?

2012-04-26 Thread rusi
On Apr 26, 4:42 pm, Adam Skutt wrote: > > In a mathematical sense, you're saying that given f(x) = x+2, using > f(x) is somehow more "direct" (whatever the hell that even means) than > using 'x+2'.  That's just not true.  We freely and openly interchange > them all the time doing mathematics.  Pro

Re: why () is () and [] is [] work in other way?

2012-04-24 Thread rusi
On Apr 24, 4:06 pm, Thomas Rachel wrote: > Am 24.04.2012 08:02 schrieb rusi: > > > On Apr 23, 9:34 am, Steven D'Aprano > +comp.lang.pyt...@pearwood.info>  wrote: > > >> "is" is never ill-defined. "is" always, without exception, returns True

Re: why () is () and [] is [] work in other way?

2012-04-23 Thread rusi
On Apr 23, 9:34 am, Steven D'Aprano wrote: > "is" is never ill-defined. "is" always, without exception, returns True > if the two operands are the same object, and False if they are not. This > is literally the simplest operator in Python. Circular definition: In case you did not notice, 'is' an

Re: Python Gotcha's?

2012-04-16 Thread rusi
On Apr 16, 11:44 am, Bryan wrote: > Steven D'Aprano wrote: > > And how is that different from any other two versions of Python? > > Python 3.0, also known as “Python 3000” or “Py3K”, is the first ever > *intentionally backwards incompatible* Python release. --GVR > > > Unless both versions include

Re: Newbie python questions...

2012-04-15 Thread rusi
On Apr 14, 11:25 pm, vmars316 wrote: > win7HomePremium: > Greetings, > 1) > I installed portablePython(pP) here: > C:\Users\vmars\Python3 >  ?Does that look ok? A brief look at portable python's website indicates that its meant for running off usb sticks (ie without installation) If you are insta

Re: Newbie python questions...

2012-04-15 Thread rusi
On Apr 15, 7:47 am, Steven D'Aprano wrote: > On Sat, 14 Apr 2012 11:25:57 -0700, vmars316 wrote: > > win7HomePremium: > > Greetings, > > 1) > > I installed portablePython(pP) here: > > C:\Users\vmars\Python3 > >  ?Does that look ok? > > Sure, why not? > > > 2) > > I would like to try pyWin, but it

Re: python module development workflow

2012-04-12 Thread rusi
On Apr 11, 8:38 pm, Peng Yu wrote: > On Apr 11, 10:25 am, John Gordon wrote: > > > In <2900f481-fbe9-4da3-a7ca-5485d1ceb...@m13g2000yqc.googlegroups.com> Peng > > Yu writes: > > > > It is confusing to me what the best workflow is for python module > > > development. There is setup.py, egg. Also

Re: Python Gotcha's?

2012-04-06 Thread rusi
On Apr 6, 8:40 pm, André Malo wrote: > * Steven D'Aprano wrote: > > On Thu, 05 Apr 2012 23:08:11 +0200, André Malo wrote: > > >> * Steven D'Aprano wrote: > > >>> For a 21st century programming language or data format to accept only > >>> one type of quotation mark as string delimiter is rather lik

Re: Python Gotcha's?

2012-04-06 Thread rusi
On Apr 6, 7:18 pm, Grzegorz Staniak wrote: > On 06.04.2012, Steven D'Aprano wroted: > > >> Are there languages (other than python) in which single and double > >> quotes are equivalent? > > > Classic REXX, CSS, JavaScript, Lua, Prolog, XPath, YAML, Modula-2, HTML, > > and (of course) English. The

Re: Python Gotcha's?

2012-04-06 Thread rusi
On Apr 6, 6:55 pm, Steven D'Aprano wrote: > On Thu, 05 Apr 2012 21:28:01 -0700, rusi wrote: > > Are there languages (other than python) in which single and double > > quotes are equivalent? > > Classic REXX, CSS, JavaScript, Lua, Prolog, XPath, YAML, Modula-2, HTML,

Re: escaping/encoding/formatting in python

2012-04-06 Thread rusi
On Apr 6, 1:52 pm, Nobody wrote: > On Thu, 05 Apr 2012 22:28:19 -0700, rusi wrote: > > All this mess would vanish if the string-literal-starter and ender > > were different. > > You still need an escape character in order to be able to embed an > unbalanced end character

Re: Python Gotcha's?

2012-04-05 Thread rusi
On Apr 6, 9:54 am, Steve Howell wrote: > JS, YAML, and HTML are pretty similar to Python with respect to single > vs. double, as far as I know/remember/care. [Complete ignoramus here -- writing after a few minutes of googling] YAML: http://yaml.org/spec/current.html#single%20quoted%20style/synta

Re: escaping/encoding/formatting in python

2012-04-05 Thread rusi
On Apr 6, 10:13 am, Steve Howell wrote: > On Apr 5, 9:59 pm, rusi wrote: > > > On Apr 6, 6:56 am, Steve Howell wrote: > > > > One of the biggest nuisances for programmers, just beneath date/time > > > APIs in the pantheon of annoyances, is that we are const

Re: escaping/encoding/formatting in python

2012-04-05 Thread rusi
On Apr 6, 6:56 am, Steve Howell wrote: > One of the biggest nuisances for programmers, just beneath date/time > APIs in the pantheon of annoyances, is that we are constantly dealing > with escaping/encoding/formatting issues. [OT for this list] If you run $ find /usr/share/emacs/23.3/lisp/ -name

Re: Python Gotcha's?

2012-04-05 Thread rusi
On Apr 5, 4:06 pm, Duncan Booth wrote: > Steven D'Aprano wrote: > > JSON expects double-quote marks, not single: > >     v = json.loads("{'test':'test'}")  fails > >     v = json.loads('{"test":"test"}')  succeeds > > You mean JSON expects a string with valid JSON? > Quelle surprise. Are there l

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-04 Thread rusi
On Apr 3, 11:42 pm, Nathan Rice wrote: > Lets start with some analogies.  In cooking, chefs use recipes to > produce a meal; the recipe is not a tool.  In architecture, a builder > uses a blueprint to produce a building; the blueprint is not a tool. > In manufacturing, expensive machines use plans

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread rusi
All this futuristic grandiloquence: On Apr 3, 10:17 pm, Nathan Rice wrote: > The crux of my view is that programming languages exist in part > because computers in general are not smart enough to converse with > humans on their own level, so we have to talk to them like autistic 5 > year-olds.  T

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread rusi
On Apr 3, 9:15 pm, Nathan Rice wrote: > On Tue, Apr 3, 2012 at 9:51 AM, rusi wrote: > > On Apr 3, 5:39 pm, Nathan Rice > > wrote: > > >> Don't think "underlying", instead think "canonical". > > >> Ultimately, the answers to yo

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread rusi
On Apr 3, 5:39 pm, Nathan Rice wrote: > > Don't think "underlying", instead think "canonical". > > Ultimately, the answers to your questions exist in the world for you > to see.  How does a surgeon describe a surgical procedure?  How does a > chef describe a recipe?  How does a carpenter describe

<    2   3   4   5   6   7   8   9   10   >