Re: generator/coroutine terminology

2015-03-14 Thread Rustom Mody
On Sunday, March 15, 2015 at 1:45:37 AM UTC+5:30, Ian wrote: Now which should be considered definitive, the language reference or the PEP? This question is not rhetorical; I don't know the answer. Regardless of the answer though, the PEP at least illuminates the design intent of the

Re: generator/coroutine terminology

2015-03-14 Thread Rustom Mody
On Saturday, March 14, 2015 at 10:22:51 PM UTC+5:30, Chris Angelico wrote: On Sun, Mar 15, 2015 at 3:33 AM, Rustom Mody wrote: As best as I can see python makes no distinction between such a foo and the more usual function/methods that have no returns. You can I can talk about

Re: generator/coroutine terminology

2015-03-14 Thread Rustom Mody
On Saturday, March 14, 2015 at 9:45:10 PM UTC+5:30, Chris Angelico wrote: On Sun, Mar 15, 2015 at 2:59 AM, Rustom Mody wrote: Causing all sorts of unnecessary confusions: An int-function returns int and a char*-functions returns char*. Does a void-function return void?? No a void function

Re: generator/coroutine terminology

2015-03-14 Thread Rustom Mody
On Saturday, March 14, 2015 at 11:34:27 AM UTC+5:30, Steven D'Aprano wrote: A generator (function) may be a function which returns an iterator,... I find generator-function misleading in the same way that pineapple misleadingly suggests apple that grows on pines A builtin function is a

Re: The idle gui

2015-03-14 Thread Rustom Mody
On Saturday, March 14, 2015 at 3:28:11 PM UTC+5:30, Chris Angelico wrote: On Sat, Mar 14, 2015 at 12:35 PM, Dave Angel wrote: Not if you don't take it to him. If you just call him on the phone, and say Jimmy doesn't work he doesn't even know what make and model the vehicle is. Or whether

Re: generator/coroutine terminology

2015-03-14 Thread Rustom Mody
On Saturday, March 14, 2015 at 8:59:22 PM UTC+5:30, Rustom Mody wrote: On Saturday, March 14, 2015 at 11:34:27 AM UTC+5:30, Steven D'Aprano wrote: A generator (function) may be a function which returns an iterator,... I find generator-function misleading in the same way that pineapple

Re: Code hosting providers

2015-03-13 Thread Rustom Mody
On Saturday, March 14, 2015 at 9:15:39 AM UTC+5:30, Paul Rubin wrote: Mario Figueiredo writes: Question: How much money is this group, taken as the whole of the python world, spending on remote hosting per month? I'd wager very little, since most options are completely free. Oh come on,

Re: generator/coroutine terminology

2015-03-13 Thread Rustom Mody
On Friday, March 13, 2015 at 1:53:50 PM UTC+5:30, Chris Angelico wrote: On Fri, Mar 13, 2015 at 4:28 PM, Rustom Mody wrote: And even there I would expect generators to close with StopIteration Whereas I would expect coroutines to close (on close method) with GeneratorExit [Ive

generator/coroutine terminology

2015-03-12 Thread Rustom Mody
This is more a question about standard terminology/conventions than about semantics - of course assuming I understand :-) Say I have a simple yielding function: def foo(x): yield x+1 yield x+2 And I have g = foo(2) If I look at type, g's type is 'generator' whereas foo is just plain-ol

Re: generator/coroutine terminology

2015-03-12 Thread Rustom Mody
On Friday, March 13, 2015 at 9:00:17 AM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: On Thursday, March 12, 2015 at 11:25:32 PM UTC+5:30, Marko Rauhamaa wrote: Rustom Mody : I guess we need 1. A clear ontology of the base concepts (which is a buzzword for nailed-down

Re: generator/coroutine terminology

2015-03-12 Thread Rustom Mody
On Thursday, March 12, 2015 at 11:25:32 PM UTC+5:30, Marko Rauhamaa wrote: Rustom Mody : I guess we need 1. A clear ontology of the base concepts (which is a buzzword for nailed-down terminology) According to the documentation, a function whose definition contains a yield statement

Re: generator/coroutine terminology

2015-03-12 Thread Rustom Mody
Guess I should be pleased that I am doing as good as you (and Chris) describe. For some reason or not I am not... On Thursday, March 12, 2015 at 9:58:07 PM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: This is more a question about standard terminology/conventions than about

Re: Newbie question about text encoding

2015-03-09 Thread Rustom Mody
On Monday, March 9, 2015 at 12:05:05 PM UTC+5:30, Steven D'Aprano wrote: Chris Angelico wrote: As to the notion of rejecting the construction of strings containing these invalid codepoints, I'm not sure. Are there any languages out there that have a Unicode string type that requires that

Re: Newbie question about text encoding

2015-03-08 Thread Rustom Mody
On Monday, March 9, 2015 at 7:39:42 AM UTC+5:30, Cameron Simpson wrote: On 07Mar2015 22:09, Steven D'Aprano wrote: Rustom Mody wrote: [...big snip...] Some parts are here some earlier and from my memory. If details wrong please correct: - 200 million records - Containing 4 strings

Re: Newbie question about text encoding

2015-03-07 Thread Rustom Mody
On Saturday, March 7, 2015 at 4:39:48 PM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: This includes not just bug-prone-system code such as Java and Windows but seemingly working code such as python 3. What Unicode bugs do you think Python 3.3 and above have? Literal/Legalistic

Re: Newbie question about text encoding

2015-03-07 Thread Rustom Mody
On Saturday, March 7, 2015 at 11:41:53 AM UTC+5:30, Terry Reedy wrote: On 3/6/2015 11:20 AM, Rustom Mody wrote: = pp =  print (pp) = Try open it in idle3 and you get (at least I get): $ idle3 ff.py Traceback (most recent call last): File /usr/bin/idle3

Re: Newbie question about text encoding

2015-03-07 Thread Rustom Mody
On Saturday, March 7, 2015 at 11:49:44 PM UTC+5:30, Mark Lawrence wrote: On 07/03/2015 17:16, Marko Rauhamaa wrote: Mark Lawrence: It would clearly help if you were to type in the correct UK English accent. Your ad-hominem-to-contribution ratio is alarmingly high. Marko

Re: Is nan in (nan,) correct?

2015-03-06 Thread Rustom Mody
On Saturday, March 7, 2015 at 5:04:02 AM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: On Friday, March 6, 2015 at 10:13:55 PM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: On Friday, March 6, 2015 at 3:57:12 AM UTC+5:30, rand...@fastmail.us wrote: It's been brought

Re: Is nan in (nan,) correct?

2015-03-06 Thread Rustom Mody
On Friday, March 6, 2015 at 3:57:12 AM UTC+5:30, rand...@fastmail.us wrote: It's been brought up on Stack Overflow that the in operator (on tuples, and by my testing on dict and list, as well as dict lookup) uses object identity as a shortcut, and returns true immediately if the object being

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-06 Thread Rustom Mody
On Friday, March 6, 2015 at 9:08:07 AM UTC+5:30, Chris Angelico wrote: Allow me to summarize this subthread: * sohcahtoa makes a comment implying that this list is full of nerds who know nothing about dating. Gender-nonspecific and most likely self-deprecating as much as insulting. * I

Re: Newbie question about text encoding

2015-03-06 Thread Rustom Mody
On Friday, March 6, 2015 at 8:20:22 PM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: On Friday, March 6, 2015 at 10:50:35 AM UTC+5:30, Chris Angelico wrote: [snip example of an analogous situation with NULs] Strawman. Sigh. If I had a dollar for every time somebody cried

Re: Is nan in (nan,) correct?

2015-03-06 Thread Rustom Mody
On Friday, March 6, 2015 at 10:13:55 PM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: On Friday, March 6, 2015 at 3:57:12 AM UTC+5:30, rand...@fastmail.us wrote: It's been brought up on Stack Overflow that the in operator (on tuples, and by my testing on dict and list, as well

Re: Newbie question about text encoding

2015-03-06 Thread Rustom Mody
On Friday, March 6, 2015 at 2:33:11 PM UTC+5:30, Rustom Mody wrote: Lets please stick to UTF-16 shall we? Now tell me: - Is it broken or not? - Is it widely used or not? - Should programmers be careful of it or not? - Should programmers be warned about it or not? Also: Can a programmer

Re: Is nan in (nan,) correct?

2015-03-06 Thread Rustom Mody
On Friday, March 6, 2015 at 3:31:58 PM UTC+5:30, Chris Angelico wrote: On Fri, Mar 6, 2015 at 8:50 PM, Rustom Mody wrote: In a language like python with decent exceptions we do not need nans. Not so. I could perhaps accept that we don't need signalling NaNs, as they can be replaced

Re: Newbie question about text encoding

2015-03-06 Thread Rustom Mody
On Friday, March 6, 2015 at 10:50:35 AM UTC+5:30, Chris Angelico wrote: On Fri, Mar 6, 2015 at 3:53 PM, Rustom Mody wrote: My conclusion: Early adopters of unicode -- Windows and Java -- were punished for their early adoption. You can blame the unicode consortium, you can blame

Re: Newbie question about text encoding

2015-03-06 Thread Rustom Mody
On Friday, March 6, 2015 at 3:24:48 PM UTC+5:30, Chris Angelico wrote: On Fri, Mar 6, 2015 at 8:02 PM, Rustom Mody wrote: Broken systems can be shown up by anything. Suppose you have a program that breaks when it gets a NUL character (not unknown in C code); is the fault with the Unicode

Re: Is nan in (nan,) correct?

2015-03-06 Thread Rustom Mody
On Friday, March 6, 2015 at 10:29:19 PM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: On Friday, March 6, 2015 at 3:31:58 PM UTC+5:30, Chris Angelico wrote: On Fri, Mar 6, 2015 at 8:50 PM, Rustom Mody wrote: In a language like python with decent exceptions we do not need nans

Re: Is nan in (nan,) correct?

2015-03-06 Thread Rustom Mody
On Friday, March 6, 2015 at 10:48:07 PM UTC+5:30, Chris Angelico wrote: On Sat, Mar 7, 2015 at 4:04 AM, Rustom Mody wrote: You dont grok your theory of computation very well do you? def foo(x): return x + x def bar(x): return x + x def baz(x): return 2*x One can imagine

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-06 Thread Rustom Mody
On Saturday, March 7, 2015 at 10:36:54 AM UTC+5:30, Gregory Ewing wrote: alister wrote: a popular UK soap made an extreme effort not to show a cross or Christmas tree during a church wedding in case it offended not-Christians. In today's climate, when offending certain varieties of

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-06 Thread Rustom Mody
On Thursday, March 5, 2015 at 10:49:54 AM UTC+5:30, Marko Rauhamaa wrote: Rustom Mody: You keep talking of accent. At first I thought you were using the word figuratively or else joking. Im now beginning to wonder if you mean it literally. If so have you patented a new AOIP protocol

Re: Newbie question about text encoding

2015-03-05 Thread Rustom Mody
On Thursday, March 5, 2015 at 7:36:32 PM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: On Wednesday, March 4, 2015 at 10:25:24 AM UTC+5:30, Chris Angelico wrote: On Wed, Mar 4, 2015 at 3:45 PM, Rustom Mody wrote: It lists some examples of software that somehow break/goof going

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Rustom Mody
On Thursday, March 5, 2015 at 1:03:13 AM UTC+5:30, Marko Rauhamaa wrote: Steven D'Aprano: Care to enlighten us then? Because your anecdote doesn't appear to have even the most tenuous relationship to this discussion. Even more important, when you talk about Python or other computer stuff

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Rustom Mody
On Wednesday, March 4, 2015 at 6:46:32 PM UTC+5:30, Marko Rauhamaa wrote: llanitedave : Seems the ultimate in irony when a language invented by a Dutchman and named after a British comedy troupe gets bogged down in an argument about whether its users are sufficiently American. No, the

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-03 Thread Rustom Mody
On Tuesday, March 3, 2015 at 10:02:30 AM UTC+5:30, Mario Figueiredo wrote: On Mon, 2 Mar 2015 19:51:31 -0800 (PST), Rustom Mody wrote: I dont know what you are saying Mario or even whom you are addressing I was replying directly to Marko. I don't think it is possible to establish

Re: Newbie question about text encoding

2015-03-03 Thread Rustom Mody
On Thursday, February 26, 2015 at 10:33:44 PM UTC+5:30, Terry Reedy wrote: On 2/26/2015 8:24 AM, Chris Angelico wrote: On Thu, Feb 26, 2015 at 11:40 PM, Rustom Mody wrote: Wrote something up on why we should stop using ASCII: http://blog.languager.org/2015/02/universal-unicode.html I

Re: Newbie question about text encoding

2015-03-03 Thread Rustom Mody
On Wednesday, March 4, 2015 at 10:25:24 AM UTC+5:30, Chris Angelico wrote: On Wed, Mar 4, 2015 at 3:45 PM, Rustom Mody wrote: It lists some examples of software that somehow break/goof going from BMP-only unicode to 7.0 unicode. IOW the suggestion is that the the two-way

Re: Newbie question about text encoding

2015-03-03 Thread Rustom Mody
On Wednesday, March 4, 2015 at 12:14:11 AM UTC+5:30, Chris Angelico wrote: On Wed, Mar 4, 2015 at 5:03 AM, Rustom Mody wrote: What I was trying to say expanded here http://blog.languager.org/2015/03/whimsical-unicode.html [Hope the word 'whimsical' is less jarring and more accurate than

Re: Newbie question about text encoding

2015-03-03 Thread Rustom Mody
On Wednesday, March 4, 2015 at 9:35:28 AM UTC+5:30, Rustom Mody wrote: On Wednesday, March 4, 2015 at 8:24:40 AM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: On Thursday, February 26, 2015 at 10:33:44 PM UTC+5:30, Terry Reedy wrote: On 2/26/2015 8:24 AM, Chris Angelico wrote

Re: Newbie question about text encoding

2015-03-03 Thread Rustom Mody
On Wednesday, March 4, 2015 at 12:07:06 AM UTC+5:30, jmf wrote: Le mardi 3 mars 2015 19:04:06 UTC+1, Rustom Mody a écrit : On Thursday, February 26, 2015 at 10:33:44 PM UTC+5:30, Terry Reedy wrote: On 2/26/2015 8:24 AM, Chris Angelico wrote: On Thu, Feb 26, 2015 at 11:40 PM, Rustom Mody

Re: Newbie question about text encoding

2015-03-03 Thread Rustom Mody
On Wednesday, March 4, 2015 at 8:24:40 AM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: On Thursday, February 26, 2015 at 10:33:44 PM UTC+5:30, Terry Reedy wrote: On 2/26/2015 8:24 AM, Chris Angelico wrote: On Thu, Feb 26, 2015 at 11:40 PM, Rustom Mody wrote: Wrote something up

Re: Uncanny valley of languages

2015-03-02 Thread Rustom Mody
On Monday, March 2, 2015 at 4:25:04 PM UTC+5:30, Jonas Wielicki wrote: I wonder whether this discussion has anything to do with the Uncanny Valley [1]. snipped [1]: https://en.wikipedia.org/wiki/Uncanny_valley That's right. And thanks for the reference. Had seen that some time but forgot

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-02 Thread Rustom Mody
On Tuesday, March 3, 2015 at 8:21:53 AM UTC+5:30, Mario Figueiredo wrote: On Mon, 02 Mar 2015 17:30:42 +0200, Marko Rauhamaa wrote: Steven D'Aprano: But for Britons to use American English is, in a way, to cease to be Britons at all. Did Hugh Laurie have to turn in his British

Re: Python Worst Practices

2015-03-01 Thread Rustom Mody
On Sunday, March 1, 2015 at 10:32:00 PM UTC+5:30, Marko Rauhamaa wrote: Mark Lawrence : Are you suggesting that we Brits have a single home accent? If you are, you need to stand up as your voice is rather muffled. That by the way is a British expression that may or may not be used

Re: Python Worst Practices

2015-02-28 Thread Rustom Mody
On Saturday, February 28, 2015 at 9:34:05 PM UTC+5:30, Cousin Stanley wrote: From : Tim Chase A quick google-and-tally for languages and their corresponding number of keywords: re-sorted 21 : Lua 31 : Python2.x 33 : Python3.x 33 : C

Re: Newbie question about text encoding

2015-02-26 Thread Rustom Mody
On Thursday, February 26, 2015 at 6:10:25 PM UTC+5:30, Rustom Mody wrote: On Wednesday, February 25, 2015 at 2:12:09 AM UTC+5:30, Dave Angel wrote: On 02/24/2015 02:57 PM, Laura Creighton wrote: Dave Angel are you another Native English speaker living in a world where ASCII is enough

Re: Newbie question about text encoding

2015-02-26 Thread Rustom Mody
On Thursday, February 26, 2015 at 10:16:11 PM UTC+5:30, Sam Raker wrote: I'm 100% in favor of expanding Unicode until the sun goes dark. Doing so helps solve the problems affecting speakers of underserved languages--access and language preservation. Speakers of Mongolian, Cherokee,

Re: Newbie question about text encoding

2015-02-26 Thread Rustom Mody
On Wednesday, February 25, 2015 at 2:12:09 AM UTC+5:30, Dave Angel wrote: On 02/24/2015 02:57 PM, Laura Creighton wrote: Dave Angel are you another Native English speaker living in a world where ASCII is enough? I'm a native English speaker, and 7 bits is not nearly enough. Even if I

Re: Newbie question about text encoding

2015-02-26 Thread Rustom Mody
On Thursday, February 26, 2015 at 10:33:44 PM UTC+5:30, Terry Reedy wrote: On 2/26/2015 8:24 AM, Chris Angelico wrote: On Thu, Feb 26, 2015 at 11:40 PM, Rustom Mody wrote: Wrote something up on why we should stop using ASCII: http://blog.languager.org/2015/02/universal-unicode.html I

Re: Newbie question about text encoding

2015-02-26 Thread Rustom Mody
On Thursday, February 26, 2015 at 10:33:44 PM UTC+5:30, Terry Reedy wrote: You should add emoticons, but not call them or the above 'gibberish'. Done -- and of course not under gibberish. I dont really know much how emoji are used but I understand they are. JFTR I consider it necessary to be

Re: strip bug?

2015-02-25 Thread Rustom Mody
On Wednesday, February 25, 2015 at 4:35:37 AM UTC+5:30, bay...@gmail.com wrote: 'http://xthunder'.strip('http://') 'xthunder' 'http://thunder'.strip('http://') 'under' I could understand backslash but forward slash? Others have answered specifically. However you probably want to look

Re: What the Pythons docs means by container ?

2015-02-20 Thread Rustom Mody
On Wednesday, February 18, 2015 at 2:51:34 AM UTC+5:30, candide wrote: Official Python documentation very frequently invokes a mysterious *container* data structure. The PLR manual explains : -- Some objects contain references to other objects; these are called

Re: Python discussed in Nature

2015-02-12 Thread Rustom Mody
On Thursday, February 12, 2015 at 11:59:55 PM UTC+5:30, John Ladasky wrote: On Thursday, February 12, 2015 at 3:08:10 AM UTC-8, Fabien wrote: ... what a coincidence then that a huge majority of scientists (including me) dont care AT ALL about unicode. But since scientists are not paid

Re: Wildly OT: pop-up virtual keyboard for Mac or Linux?

2015-02-11 Thread Rustom Mody
On Wednesday, February 11, 2015 at 10:42:59 PM UTC+5:30, Marko Rauhamaa wrote: Rustom Mody : On Wednesday, February 11, 2015 at 6:06:03 PM UTC+5:30, Marko Rauhamaa wrote: The problem with xkbmap is that I don't know how to specify a new keyboard map as a regular user. I know how

Re: Wildly OT: pop-up virtual keyboard for Mac or Linux?

2015-02-11 Thread Rustom Mody
On Wednesday, February 11, 2015 at 11:24:33 PM UTC+5:30, Marko Rauhamaa wrote: Rustom Mody wrote: xkb supercedes xmodmap which is increasingly unsupported ie it does all of the earlier functionality and much more Only catch is to have to read impenetrable docs :-) Ive been directed

Re: idle feature request

2015-02-11 Thread Rustom Mody
On Thursday, February 12, 2015 at 7:57:48 AM UTC+5:30, Terry Reedy wrote: On 2/11/2015 1:00 PM, Mark Lawrence wrote: On 11/02/2015 13:11, Rustom Mody wrote: Context: I am using idle for taking python classes. Teaching or taking? Teaching -- I would like to mail¹ students the interaction

Re: Wildly OT: pop-up virtual keyboard for Mac or Linux?

2015-02-11 Thread Rustom Mody
On Wednesday, February 11, 2015 at 9:50:15 AM UTC+5:30, Chris Angelico wrote: On Wed, Feb 11, 2015 at 3:10 PM, Steven D'Aprano wrote: Rustom Mody wrote: $ setxkbmap -query# examine current settings Alas, that does not appear to work in Debian squeeze: steve@runes

Re: Wildly OT: pop-up virtual keyboard for Mac or Linux?

2015-02-11 Thread Rustom Mody
On Wednesday, February 11, 2015 at 5:52:49 PM UTC+5:30, Rustom Mody wrote: On Wednesday, February 11, 2015 at 9:50:15 AM UTC+5:30, Chris Angelico wrote: On Wed, Feb 11, 2015 at 3:10 PM, Steven D'Aprano wrote: Rustom Mody wrote: $ setxkbmap -query# examine current settings

Re: Wildly OT: pop-up virtual keyboard for Mac or Linux?

2015-02-11 Thread Rustom Mody
unsupported. Rustom Mody wrote: Can someone try out: $ setxkbmap -layout us,gr -option grp:ralt_rshift_toggle I tried it. Earlier that used to work as a *toggle* ie a RAlt-RShift chord would go to gr(eek) and another would come back to 'us'. I noticed, thanks very much

idle feature request

2015-02-11 Thread Rustom Mody
Context: I am using idle for taking python classes. Finish the class and run out usually in a hurry and forget to save the idle interaction window. Would like to save it so that I can mail it to the students. In emacs I could set a hook to make arbitrary 'buffers' like the python-idle shell

Re: idle feature request

2015-02-11 Thread Rustom Mody
On Wednesday, February 11, 2015 at 6:50:35 PM UTC+5:30, Fabien wrote: On 11.02.2015 14:11, Rustom Mody wrote: Context: I am using idle for taking python classes. I know this is not your question, but: have you considered using iPython notebooks for teaching? They save automatically, look

Re: Wildly OT: pop-up virtual keyboard for Mac or Linux?

2015-02-10 Thread Rustom Mody
On Wednesday, February 11, 2015 at 2:36:23 AM UTC+5:30, Skip Montanaro wrote: I know this is way off-topic for this group, but I figured if anyone in the online virtual communities I participate in would know the answer, the Pythonistas would... Google has so far not been my friend in this

Re: Wildly OT: pop-up virtual keyboard for Mac or Linux?

2015-02-10 Thread Rustom Mody
On Wednesday, February 11, 2015 at 9:40:50 AM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: $ setxkbmap -query# examine current settings Alas, that does not appear to work in Debian squeeze: steve@runes:~$ setxkbmap -query Error! Option -query not recognized

Re: doc buglets?

2015-02-10 Thread Rustom Mody
On Monday, February 9, 2015 at 9:25:45 PM UTC+5:30, Mark Lawrence wrote: On 09/02/2015 11:28, Rustom Mody wrote: Poking around in help() (python 3.4.2) I find * PACKAGES does not seem to have anything on packages * DYNAMICFEATURES seems to be some kind of footnote

Re: Incompatible idioms: relative imports, top-level program file

2015-02-10 Thread Rustom Mody
On Sunday, February 8, 2015 at 3:52:19 AM UTC+5:30, Gregory Ewing wrote: Rustom Mody wrote: Wanted to try out sympy. apt-install promised ź GB download, ž GB space usage Just getting a src-tarball was: 6M download, 30M after opening the tar. Have you actually tried compiling and using

Re: Wildly OT: pop-up virtual keyboard for Mac or Linux?

2015-02-10 Thread Rustom Mody
On Wednesday, February 11, 2015 at 11:55:19 AM UTC+5:30, Kushal Kumaran wrote: Skip Montanaro writes: I know this is way off-topic for this group, but I figured if anyone in the online virtual communities I participate in would know the answer, the Pythonistas would... Google has so far

Re: Wildly OT: pop-up virtual keyboard for Mac or Linux?

2015-02-10 Thread Rustom Mody
On Wednesday, February 11, 2015 at 9:50:15 AM UTC+5:30, Chris Angelico wrote: On Wed, Feb 11, 2015 at 3:10 PM, Steven D'Aprano wrote: Rustom Mody wrote: $ setxkbmap -query# examine current settings Alas, that does not appear to work in Debian squeeze: steve@runes

doc buglets?

2015-02-09 Thread Rustom Mody
Poking around in help() (python 3.4.2) I find * PACKAGES does not seem to have anything on packages * DYNAMICFEATURES seems to be some kind of footnote * SPECIALATTRIBUTES has 'bases' and 'subclasses'. It seems to me a more consistent naming for OOP would be in order. These are the OOP-metaphors

Re: Incompatible idioms: relative imports, top-level program file

2015-02-06 Thread Rustom Mody
On Saturday, February 7, 2015 at 8:43:44 AM UTC+5:30, Rustom Mody wrote: There is on the one hand python modules/packages mechanism with all the hell of dozens of incompatible versions of setuptools/distribute/distutils etc. On the other there is the OS-specific practices/policy

Re: Incompatible idioms: relative imports, top-level program file

2015-02-06 Thread Rustom Mody
On Saturday, February 7, 2015 at 7:35:12 AM UTC+5:30, Ben Finney wrote: Ethan Furman writes: On 02/06/2015 04:44 PM, Ben Finney wrote: A program will often have enough complexity that its implementation occupies several sub-modules. There's no need to explose those in a site

Re: meaning of: line, =

2015-02-06 Thread Rustom Mody
On Friday, February 6, 2015 at 6:40:23 PM UTC+5:30, Devin Jeanpierre wrote: Sorry for late reply, I somehow missed this email. On Thu, Feb 5, 2015 at 8:59 AM, Rustom Mody wrote: The reason I ask: I sorely miss haskell's pattern matching in python. It goes some way: ((x,y),z) = ((1,2

Re: meaning of: line, =

2015-02-06 Thread Rustom Mody
On Friday, February 6, 2015 at 6:40:23 PM UTC+5:30, Devin Jeanpierre wrote: Sorry for late reply, I somehow missed this email. On Thu, Feb 5, 2015 at 8:59 AM, Rustom Mody wrote: The reason I ask: I sorely miss haskell's pattern matching in python. It goes some way: ((x,y),z) = ((1,2

Re: meaning of: line, =

2015-02-05 Thread Rustom Mody
On Thursday, February 5, 2015 at 10:15:29 PM UTC+5:30, Rustom Mody wrote: On Thursday, February 5, 2015 at 9:39:27 PM UTC+5:30, Ian wrote: On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano wrote: Devin Jeanpierre wrote: On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico wrote: On Thu, Feb

Re: meaning of: line, =

2015-02-05 Thread Rustom Mody
On Thursday, February 5, 2015 at 9:39:27 PM UTC+5:30, Ian wrote: On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano wrote: Devin Jeanpierre wrote: On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico wrote: On Thu, Feb 5, 2015 at 4:36 AM, Peter Otten wrote: Another alternative is to put a list

Re: meaning of: line, =

2015-02-04 Thread Rustom Mody
On Wednesday, February 4, 2015 at 8:14:29 PM UTC+5:30, Albert-Jan Roskam wrote: - Original Message - From: Chris Angelico Sent: Wednesday, February 4, 2015 3:24 PM Subject: Re: meaning of: line, = On Thu, Feb 5, 2015 at 1:08 AM, ast wrote: I dont understand why there is a

Re: Python is DOOMED! Again!

2015-02-02 Thread Rustom Mody
On Monday, February 2, 2015 at 1:13:30 PM UTC+5:30, Paul Rubin wrote: Steven D'Aprano writes: No apples and no oranges aren't the same thing, but if somebody is expecting no apples, and I give them no oranges instead, it would be churlish for them to complain that none of them are

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-02 Thread Rustom Mody
On Monday, February 2, 2015 at 10:57:27 AM UTC+5:30, Vito De Tullio wrote: Steven D'Aprano wrote: Checking the REPL first would have revealed that [].__dir__ raises AttributeError. In other words, lists don't have a __dir__ method. ? Python 3.4.2 (default, Nov 29 2014, 00:45:45)

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Rustom Mody
On Tuesday, February 3, 2015 at 4:51:18 AM UTC+5:30, Gabriel Ferreira wrote: Mark Lawrence wrote: I don't actually know, but could you please provide some context and write in plain English, those damn ... things are extremely annoying. Hi, Mark. I am developing a research

Ghost vulnerability

2015-02-02 Thread Rustom Mody
How many people (actually machines) out here are vulnerable? http://security.stackexchange.com/questions/80210/ghost-bug-is-there-a-simple-way-to-test-if-my-system-is-secure shows a python 1-liner to check -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread Rustom Mody
On Monday, February 2, 2015 at 9:40:35 PM UTC+5:30, Mark Lawrence wrote: On 02/02/2015 08:52, Marko Rauhamaa wrote: Chris Angelico : On Mon, Feb 2, 2015 at 12:59 PM, Steven D'Aprano wrote: And there are underspecified rules too. What is the plural of octopus? No fair looking it up in

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-01 Thread Rustom Mody
On Sunday, February 1, 2015 at 9:51:11 PM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: The other day I was taking a class in which I was showing - introspection for discovering -- help, type, dir etc at the repl - mapping of surface syntax to internals eg. a + b ←→ a.__add__(b

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-01 Thread Rustom Mody
On Monday, February 2, 2015 at 9:22:51 AM UTC+5:30, Rustom Mody wrote: On Sunday, February 1, 2015 at 9:51:11 PM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: The other day I was taking a class in which I was showing - introspection for discovering -- help, type, dir etc

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-01 Thread Rustom Mody
On Monday, February 2, 2015 at 9:34:53 AM UTC+5:30, Rustom Mody wrote: On Monday, February 2, 2015 at 9:22:51 AM UTC+5:30, Rustom Mody wrote: On Sunday, February 1, 2015 at 9:51:11 PM UTC+5:30, Steven D'Aprano wrote: Rustom Mody wrote: The other day I was taking a class in which I

Re: [OT] fortran lib which provide python like data type

2015-01-31 Thread Rustom Mody
On Saturday, January 31, 2015 at 5:52:58 PM UTC+5:30, Marko Rauhamaa wrote: Esthetically, I'm most impressed with Scheme. One day it might give Python a run for its money. Marko Aren't you getting this backwards?

Re: [OT] fortran lib which provide python like data type

2015-01-31 Thread Rustom Mody
On Saturday, January 31, 2015 at 4:34:14 PM UTC+5:30, Steven D'Aprano wrote: Yesterday, as I wrote that message, my web browser crashed *eight times* in a matter of half an hour. There are thousands of serious security vulnerabilities due to mishandled pointers. Anyone who thinks that Linux

Re: [OT] fortran lib which provide python like data type

2015-01-31 Thread Rustom Mody
On Saturday, January 31, 2015 at 11:13:29 PM UTC+5:30, Marko Rauhamaa wrote: Rustom Mody: On Saturday, January 31, 2015 at 5:52:58 PM UTC+5:30, Marko Rauhamaa wrote: Esthetically, I'm most impressed with Scheme. One day it might give Python a run for its money. Aren't you getting

dunder-docs (was Python is DOOMED! Again!)

2015-01-31 Thread Rustom Mody
On Sunday, February 1, 2015 at 10:15:13 AM UTC+5:30, Ethan Furman wrote: On 01/31/2015 07:16 PM, Steven D'Aprano wrote: But by default, Python will fallback on __repr__ if __str__ doesn't exist, or __str__ if __repr__ doesn't exist, or both. Or something. (I always forget what the rules

Re: [OT] fortran lib which provide python like data type

2015-01-30 Thread Rustom Mody
On Friday, January 30, 2015 at 1:03:03 PM UTC+5:30, Christian Gollwitzer wrote: Am 30.01.15 um 02:40 schrieb Rustom Mody: FORTRAN use dictionary type(dictionary), pointer :: d d=dict_new() call set(d//'toto',1) v = d//'toto' call dict_free(d) The corresponding python

Re: [OT] fortran lib which provide python like data type

2015-01-30 Thread Rustom Mody
On Friday, January 30, 2015 at 10:39:12 PM UTC+5:30, Michael Torrie wrote: On 01/30/2015 09:27 AM, Rustom Mody wrote: ... if I restate that in other words it says that sufficiently complex data structures will be beyond the reach of the standard RAII infrastructure. Of course this only

RAII vs gc (was fortran lib which provide python like data type)

2015-01-30 Thread Rustom Mody
On Friday, January 30, 2015 at 11:01:50 PM UTC+5:30, Rustom Mody wrote: On Friday, January 30, 2015 at 10:39:12 PM UTC+5:30, Michael Torrie wrote: On 01/30/2015 09:27 AM, Rustom Mody wrote: ... if I restate that in other words it says that sufficiently complex data structures

Re: [OT] fortran lib which provide python like data type

2015-01-29 Thread Rustom Mody
On Friday, January 30, 2015 at 4:09:19 AM UTC+5:30, beli...@aol.com wrote: On Thursday, January 29, 2015 at 10:01:00 AM UTC-5, Liu Zhenhai wrote: Hi, I am not sure here is the right place to ask this question, but I want to give it a shot:) are there fortran libs providing python like

Re: Sort of Augmented Reality

2015-01-29 Thread Rustom Mody
On Friday, January 30, 2015 at 7:52:58 AM UTC+5:30, Dennis Lee Bieber wrote: On Thu, 29 Jan 2015 14:38:20 +0100, franssoa declaimed the following: Hello, (please excuse my english as is not my primary language) - I own a webcam that take a picture of outside of my house once per minute.

Re: An object is an instance (or not)?

2015-01-28 Thread Rustom Mody
On Wednesday, January 28, 2015 at 10:39:34 PM UTC+5:30, rand...@fastmail.us wrote: On Wed, Jan 28, 2015, at 01:59, Ben Finney wrote: You have no justification to claim that, and it's hostile and dismissive to claim it so assertively. Sorry about that - I was tired and had just read

Re: Is there a more elegant way to spell this?

2015-01-27 Thread Rustom Mody
On Tuesday, January 27, 2015 at 6:45:41 PM UTC+5:30, Neal Becker wrote: Is there a more elegant way to spell this? for x in [_ for _ in seq if some_predicate]: Depends on what follows the ':' In the trivial case all thats outside the comprehension can be dropped: [x for x in [y for y in

kivy: python on android

2015-01-27 Thread Rustom Mody
Following some posts here I thought I'd try python on android via kivy. Followed the tutorials -- involved a couple of GBs(!!) of downloads using something called buildozer Finally got a hello world running on a phone -- Yay! Now when I try to go from hello world to something a more

Re: An object is an instance (or not)?

2015-01-27 Thread Rustom Mody
On Wednesday, January 28, 2015 at 7:55:12 AM UTC+5:30, Ned Batchelder wrote: On 1/27/15 7:17 PM, Mario Figueiredo wrote: Ned Batchelder says... A common mistake is to believe that OOP is a well-defined term. It's not it's a collection of ideas that are expressed slightly differently in

Re: An object is an instance (or not)?

2015-01-27 Thread Rustom Mody
On Wednesday, January 28, 2015 at 11:31:46 AM UTC+5:30, random wrote: On Wed, Jan 28, 2015, at 00:43, Devin Jeanpierre wrote: On Tue, Jan 27, 2015 at 9:37 PM, random832 wrote: Sub itself is not a Sub object, it is a type object. instance is implicit in the phrase foo object. Yes.

Re: An object is an instance (or not)?

2015-01-27 Thread Rustom Mody
On Wednesday, January 28, 2015 at 10:18:07 AM UTC+5:30, alex23 wrote: On 28/01/2015 10:24 AM, Mario Figueiredo wrote: In other words, the object know as Sub class is not an instance object. True, it is an instance of the object 'type'. class Foo: ... pass ...

Re: An object is an instance (or not)?

2015-01-27 Thread Rustom Mody
On Wednesday, January 28, 2015 at 10:55:32 AM UTC+5:30, Marko Rauhamaa wrote: Python itself has answers to your questions: isinstance(3, int) True isinstance(3, int) False isinstance(int, type) True isinstance(type, int) False isinstance(type, type)

Re: An object is an instance (or not)?

2015-01-27 Thread Rustom Mody
On Wednesday, January 28, 2015 at 1:42:47 AM UTC+5:30, Mario Figueiredo wrote: This is a follow up from a previous discussion in which it is argued that the following code produces the correct error message terminology, considering that in Python an object is also an instance. class

Re: Idiomatic backtracking in Python

2015-01-25 Thread Rustom Mody
On Monday, January 26, 2015 at 12:52:04 PM UTC+5:30, Jussi Piitulainen wrote: Rustom Mody writes: To add to Ian: The classic way of doing it in a functional framework is called: Replace failure by list of successes https://rkrishnan.org/files/wadler-1985.pdf The things

<    5   6   7   8   9   10   11   12   13   14   >