Unicode in Python

2014-04-21 Thread Rustom Mody
On Sunday, April 20, 2014 3:29:00 PM UTC+5:30, Steven D'Aprano wrote: > On Fri, 18 Apr 2014 23:40:18 -0700, Paul Rubin wrote: > > > It's just that the improvement > > from 2 to 3 is rather small, and 2 works perfectly well and people are > > used to it, so they keep using it. > > > Spoken like a

Re: Unicode in Python

2014-04-21 Thread Rustom Mody
On Tuesday, April 22, 2014 11:14:17 AM UTC+5:30, Terry Reedy wrote: > On 4/21/2014 11:57 PM, Rustom Mody wrote: > > As a unicode user (ok wannabe unicode user :D ) Ive > > written up some unicode ideas that have been discussed here in the > > last couple of weeks: > >

Re: Unicode in Python

2014-04-21 Thread Rustom Mody
On Tuesday, April 22, 2014 11:41:56 AM UTC+5:30, Steven D'Aprano wrote: > On Mon, 21 Apr 2014 20:57:39 -0700, Rustom Mody wrote: > > As a unicode user (ok wannabe unicode user :D ) Ive written up some > > unicode ideas that have been discussed here in the last coupl

Re: Unicode in Python

2014-04-22 Thread Rustom Mody
On Tuesday, April 22, 2014 12:01:06 PM UTC+5:30, Ian wrote: > On Apr 22, 2014 12:01 AM, "Rustom Mody" wrote: > > As a unicode user (ok wannabe unicode user :D ) Ive > > written up some unicode ideas that have been discussed here in the > > last couple of weeks: >

Re: Unicode in Python

2014-04-22 Thread Rustom Mody
On Tuesday, April 22, 2014 12:01:06 PM UTC+5:30, Ian wrote: > On Apr 22, 2014 12:01 AM, "Rustom Mody" wrote: > > As a unicode user (ok wannabe unicode user :D ) Ive > > written up some unicode ideas that have been discussed here in the > > last couple of weeks: >

Unicode in Python

2014-04-22 Thread Rustom Mody
Chris Angelico wrote: > it's impossible for most people to type (and programming with a palette > of arbitrary syntactic tokens isn't my idea of fun)... Where's the suggestion to use a "palette of arbitrary tokens" ? I just tried a greek keyboard; ie do $ setxkbmap -option "grp:switch,grp:alt_shi

Re: Unicode in Python

2014-04-23 Thread Rustom Mody
ode is a character-set, its better to think of it as a repertory -- here is the universal set from which a choice is available. On Wednesday, April 23, 2014 11:20:35 AM UTC+5:30, Chris Angelico wrote: > On Wed, Apr 23, 2014 at 3:31 PM, Rustom Mody wrote: > > Chris Angelico wrote: > >>

Re: Unicode in Python

2014-04-23 Thread Rustom Mody
On Wednesday, April 23, 2014 1:23:00 PM UTC+5:30, Steven D'Aprano wrote: > On Tue, 22 Apr 2014 23:57:46 -0700, Rustom Mody wrote: > > On the other hand when/if a keyboard mapping is defined in which the > > characters that are commonly needed are available, it is reasonab

Re: Unicode in Python

2014-04-27 Thread Rustom Mody
On Wednesday, April 23, 2014 11:29:13 PM UTC+5:30, Rustom Mody wrote: > On Wednesday, April 23, 2014 1:23:00 PM UTC+5:30, Steven D'Aprano wrote: > > On Tue, 22 Apr 2014 23:57:46 -0700, Rustom Mody wrote: > > > On the other hand when/if a keyboard mapping is defined in whi

Cant type unicode with compose anymore

2014-04-29 Thread Rustom Mody
For some time now I have this in my X startup programs: $ setxkbmap -option compose:menu After this I can type (in mostly any window) for example: (with MN being the windows-menu key) MN.. gives ... ie an ellipses MN--. gives - ie an en dash MN--- gives -- ie an em dash Not to mention all the e"

Cant type unicode with compose anymore

2014-04-29 Thread Rustom Mody
For some time now I have this in my X startup programs: $ setxkbmap -option compose:menu After this I can type (in mostly any window) for example: (with MN being the windows-menu key) MN.. gives ... ie an ellipses MN--. gives - ie an en dash MN--- gives -- ie an em dash Not to mention all the e"

Re: Cant type unicode with compose anymore

2014-04-29 Thread Rustom Mody
On Tuesday, April 29, 2014 4:44:48 PM UTC+5:30, Rustom Mody wrote: > > Any clues? > > > Its the same for emacs 23 and 24 Whoops! Wrong list :-) -- https://mail.python.org/mailman/listinfo/python-list

Re: Cant type unicode with compose anymore

2014-04-29 Thread Rustom Mody
On Tuesday, April 29, 2014 4:48:51 PM UTC+5:30, Rustom Mody wrote: Ive done it a second time !?! Probably related to the temp being a cool > 40 °C -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode 7

2014-04-29 Thread Rustom Mody
On Tuesday, April 29, 2014 11:29:23 PM UTC+5:30, Tim Chase wrote: > While I dislike feeding the troll, what I see here is: Since its Unicode-troll time, here's my contribution http://blog.languager.org/2014/04/unicode-and-unix-assumption.html :-) More seriously, since Ive quoted some esteemed

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Thursday, May 1, 2014 10:30:43 AM UTC+5:30, Steven D'Aprano wrote: > On Tue, 29 Apr 2014 21:53:22 -0700, Rustom Mody wrote: > > On Tuesday, April 29, 2014 11:29:23 PM UTC+5:30, Tim Chase wrote: > >> While I dislike feeding the troll, what I see here is: > > Since i

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Friday, May 2, 2014 5:03:21 AM UTC+5:30, MRAB wrote: > On 2014-05-01 23:38, Terry Reedy wrote: > > On 5/1/2014 2:04 PM, Rustom Mody wrote: > >>>> Since its Unicode-troll time, here's my contribution > >>>> http://blog.languager.org/2014/04/unicode-and

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Friday, May 2, 2014 4:08:35 AM UTC+5:30, Terry Reedy wrote: > On 5/1/2014 2:04 PM, Rustom Mody wrote: > >>> Since its Unicode-troll time, here's my contribution > >>> http://blog.languager.org/2014/04/unicode-and-unix-assumption.html > I will not comment

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Friday, May 2, 2014 7:59:55 AM UTC+5:30, Rustom Mody wrote: > "Why should I pay more for a EURO sign than a $ sign?" A unicode 'headache' there: I typed the Euro sign (trying again € ) not EURO Somebody -- I guess its GG in overhelpful mode -- converted it And made

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Friday, May 2, 2014 8:09:44 AM UTC+5:30, Ben Finney wrote: > Rustom Mody writes: > > Yes, the headaches go a little further back than Unicode. > Okay, so can you change your article to reflect the fact that the > headaches both pre-date Unicode, and are made much easier by Un

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Friday, May 2, 2014 8:31:56 AM UTC+5:30, Chris Angelico wrote: > On Fri, May 2, 2014 at 12:29 PM, Rustom Mody wrote: > > Here is an instance of someone who would like a certain optimization to be > > dis-able-able > > https://mail.python.org/pipermail/python-list/2014

Re: Unicode 7

2014-05-01 Thread Rustom Mody
On Friday, May 2, 2014 9:46:36 AM UTC+5:30, Terry Reedy wrote: > On 5/1/2014 7:33 PM, MRAB wrote: > > On 2014-05-01 23:38, Terry Reedy wrote: > >> On 5/1/2014 2:04 PM, Rustom Mody wrote: > >>>>> Since its Unicode-troll time, here's my contribution > >

Re: Unicode 7

2014-05-02 Thread Rustom Mody
On Friday, May 2, 2014 2:15:41 PM UTC+5:30, Steven D'Aprano wrote: > On Thu, 01 May 2014 19:02:48 -0700, Rustom Mody wrote: > > - Worst of all what we > > *dont* see -- how many others dont see what we see? > Again, this a deficiency of the font. There are very few code poi

Re: Unicode 7

2014-05-02 Thread Rustom Mody
On Friday, May 2, 2014 5:25:37 PM UTC+5:30, Steven D'Aprano wrote: > On Fri, 02 May 2014 03:39:34 -0700, Rustom Mody wrote: > > On Friday, May 2, 2014 2:15:41 PM UTC+5:30, Steven D'Aprano wrote: > >> On Thu, 01 May 2014 19:02:48 -0700, Rustom Mody wrote: > >>

Re: Unicode 7

2014-05-02 Thread Rustom Mody
On Friday, May 2, 2014 5:25:37 PM UTC+5:30, Steven D'Aprano wrote: > On Fri, 02 May 2014 03:39:34 -0700, Rustom Mody wrote: > > On Friday, May 2, 2014 2:15:41 PM UTC+5:30, Steven D'Aprano wrote: > >> On Thu, 01 May 2014 19:02:48 -0700, Rustom Mody wrote: > >>

Re: Unicode 7

2014-05-02 Thread Rustom Mody
On Friday, May 2, 2014 11:37:02 PM UTC+5:30, Peter Otten wrote: > Rustom Mody wrote: > > Just noticed a small thing in which python does a bit better than haskell: > > $ ghci > > let (fine, fine) = (1,2) > > Prelude> (fine, fine) > > (1,2) > > In case its n

Re: Unicode 7

2014-05-02 Thread Rustom Mody
On Saturday, May 3, 2014 6:48:21 AM UTC+5:30, Ned Batchelder wrote: > On 5/2/14 8:58 PM, Rustom Mody wrote: > > On Friday, May 2, 2014 11:37:02 PM UTC+5:30, Peter Otten wrote: > >> Rustom Mody wrote: > >>> Just noticed a small thing in which python does a bit bet

Re: Unicode 7

2014-05-02 Thread Rustom Mody
On Saturday, May 3, 2014 7:24:08 AM UTC+5:30, Chris Angelico wrote: > On Sat, May 3, 2014 at 11:42 AM, Rustom Mody wrote: > > Two identifiers that to some programmers > > - can look the same > > - and not to others > > - and that the language treats as different >

Re: Pass variable by reference

2014-05-05 Thread Rustom Mody
On Tuesday, May 6, 2014 6:09:44 AM UTC+5:30, Satish Muthali wrote: > Hello experts, > I have a burning question on how to pass variable by reference in Python. Technically correct answer: You cant. But see below. > I understand that the data type has to be mutable. I dont know that mutability h

Re: A Question about Python

2014-05-06 Thread Rustom Mody
On Tuesday, May 6, 2014 5:39:25 PM UTC+5:30, doaa eman wrote: > hello; > > I'm a researcher from Cairo University (Information science Dep.) > i want to know how can i use Paython language on CiteULike > i need to use it for extracting only tagged articles in the field > of > medicine for exampl

Re: Pass variable by reference

2014-05-06 Thread Rustom Mody
On Wednesday, May 7, 2014 5:16:16 AM UTC+5:30, Chris Angelico wrote: > On Wed, May 7, 2014 at 7:00 AM, Mark H Harris wrote: > Is this code mutating or rebinding? > x = 1.1 > y = 2.2 > x = x + y Heh! Neat example! > What language did I write that in? Is there really a fundamental > difference

Re: Pass variable by reference

2014-05-06 Thread Rustom Mody
On Wednesday, May 7, 2014 8:09:34 AM UTC+5:30, Chris Angelico wrote: > On Wed, May 7, 2014 at 12:18 PM, Rustom Mody wrote: > > Wrong conclusion! > > These 3 lines look the same and amount to much the same in python and C. > > But as the example widens to something beyond 3

Re: The "does Python have variables?" debate

2014-05-07 Thread Rustom Mody
On Thursday, May 8, 2014 12:10:45 PM UTC+5:30, Ben Finney wrote: > Marko Rauhamaa writes: > > What you are describing is that Python has pointer semantics. > That doesn't describe it, no. To my eye, "pointer semantics" entails > that one can directly pass a pointer around as a value (which can't

Re: The "does Python have variables?" debate

2014-05-08 Thread Rustom Mody
On Friday, May 9, 2014 8:01:56 AM UTC+5:30, Chris Angelico wrote: > On Fri, May 9, 2014 at 12:21 PM, Roy Smith wrote: > > > > Steven D'Aprano wrote: > > > > > >> Although Fortran is still in use, and widely so, it is mostly used for > >> accessing existing Fortran libraries rather than writi

Re: The "does Python have variables?" debate

2014-05-09 Thread Rustom Mody
On Friday, May 9, 2014 11:21:37 AM UTC+5:30, Chris Angelico wrote: > On Fri, May 9, 2014 at 3:40 PM, Rustom Mody wrote: > > >> I'd like to argue that you're not using Fortran, then. You're making > >> use of it in the same way that I might make use of Rub

Re: The "does Python have variables?" debate

2014-05-09 Thread Rustom Mody
On Friday, May 9, 2014 7:59:14 PM UTC+5:30, Chris Angelico wrote: > The similarities and differences between the variable models are no > more relevant. What becomes relevant are the PyObject* pointer (the C > interface to a Python object (not variable)) and the various functions > for manipulating

Re: Values and objects

2014-05-09 Thread Rustom Mody
On Saturday, May 10, 2014 6:31:49 AM UTC+5:30, Steven D'Aprano wrote: > On Sat, 10 May 2014 01:34:58 +0300, Marko Rauhamaa wrote: > > > and you can't pass references to them. > > > That at least you have got right. > And that's Marko's main point > > > > Right, Python's variables aren't li

Re: Values and objects

2014-05-09 Thread Rustom Mody
On Saturday, May 10, 2014 8:03:28 AM UTC+5:30, Chris Angelico wrote: > > 2) Returning them. This is a lot more dodgy, owing to the > dangling-pointer issue, but as long as you accept that the reference > to a variable doesn't ensure its continued life, I suppose this might > be acceptable. Maybe.

Re: Why isn't my re.sub replacing the contents of my MS Word file?

2014-05-09 Thread Rustom Mody
On Saturday, May 10, 2014 1:21:04 AM UTC+5:30, scott...@gmail.com wrote: > Hi, > > > > here is a snippet of code that opens a file (fn contains the path\name) and > first tried to replace all endash, emdash etc characters with simple dash > characters, before doing a search. > > But the re

Re: The � debate

2014-05-10 Thread Rustom Mody
On Saturday, May 10, 2014 1:18:27 PM UTC+5:30, Steven D'Aprano wrote: > Python assignment doesn't copy values. Maybe our values differ ? -- https://mail.python.org/mailman/listinfo/python-list

Re: Free vs proprietary (was Re: NumPy, SciPy, & Python 3X Installation/compatibility issues)

2014-05-10 Thread Rustom Mody
On Sunday, May 11, 2014 9:46:06 AM UTC+5:30, Nelson Crosby wrote: > I also believe in this more 'BSD-like' view, but from a business point of > view. No one is going to invest in a business that can't guarantee against > piracy, and such a business is much less likely to receive profit (see > Ar

Re: Values and objects

2014-05-10 Thread Rustom Mody
On Saturday, May 10, 2014 2:39:31 PM UTC+5:30, Steven D'Aprano wrote: > > Personally, I don't imagine that there ever could be a language where > variables were first class values *exactly* the same as ints, strings, > floats etc. Otherwise, how could you tell the difference between a > functio

Re: Values and objects

2014-05-10 Thread Rustom Mody
On Sunday, May 11, 2014 11:51:59 AM UTC+5:30, Marko Rauhamaa wrote: > Rustom Mody : > > > > > On Saturday, May 10, 2014 2:39:31 PM UTC+5:30, Steven D'Aprano wrote: > > >> > > >> Personally, I don't imagine that there ever could be a l

Re: Fortran (Was: The "does Python have variables?" debate)

2014-05-11 Thread Rustom Mody
On Sunday, May 11, 2014 11:47:55 AM UTC+5:30, Mark H. Harris wrote: > 'Julia' is going to give everyone a not so small run for competition; > justifiably so, not just against FORTRAN. > > > Julia is Matlab and R, Python, Lisp, Scheme; all rolled together on > steroids. Its amazing as a dynami

Re: Values and objects

2014-05-11 Thread Rustom Mody
On Sunday, May 11, 2014 1:56:41 PM UTC+5:30, Jussi Piitulainen wrote: > Marko Rauhamaa writes: > > Rustom Mody: > > > > > On Saturday, May 10, 2014 2:39:31 PM UTC+5:30, Steven D'Aprano wrote: > > >> > > >> Personally, I don't imagine

Re: Values and objects

2014-05-11 Thread Rustom Mody
On Sunday, May 11, 2014 6:21:08 PM UTC+5:30, Steven D'Aprano wrote: > The point is, it is *logically impossible* for a language to use > precisely the same syntax for value-assignment and variable-assignment. > Consider the variable called "x", which is bound to the value 23. If the > language

Re: How do I access 'Beautiful Soup' on python 2.7 or 3.4 , console or idle versions.

2014-05-11 Thread Rustom Mody
On Saturday, May 10, 2014 10:28:18 PM UTC+5:30, Simon Evans wrote: > I am new to Python, but my main interest is to use it to Webscrape. I guess you've moved on from this specific problem. However here is some general advice: To use beautiful soup you need to use python. To use python you need to

Re: Why isn't my re.sub replacing the contents of my MS Word file?

2014-05-12 Thread Rustom Mody
On Monday, May 12, 2014 11:05:53 PM UTC+5:30, scott...@gmail.com wrote: > On Friday, May 9, 2014 8:12:57 PM UTC-4, Steven D'Aprano wrote: > > fStr = fStr.replace(b'‒', b'-') > >Still doesn't work > > > > Best: > > > > > > # Untested > > > > fStr = re.sub(b'&#x(201[2-5])|(2E3[A

Re: Everything you did not want to know about Unicode in Python 3

2014-05-12 Thread Rustom Mody
On Tuesday, May 13, 2014 6:48:35 AM UTC+5:30, Steven D'Aprano wrote: > On Mon, 12 May 2014 17:47:48 +, alister wrote: > > > Surely those example programs are not the pythonoic way to do things or > > am i missing something? > > > > Feel free to show us your version of "cat" for Python then.

Re: Everything you did not want to know about Unicode in Python 3

2014-05-12 Thread Rustom Mody
On Tuesday, May 13, 2014 11:09:06 AM UTC+5:30, Mark H. Harris wrote: > On 5/13/14 12:10 AM, Rustom Mody wrote: > > > I think the most helpful way forward is to accept two things: > > a. Unicode is a headache > > b. No-unicode is a non-option > > > QOTW

Re: Fortran (Was: The "does Python have variables?" debate)

2014-05-13 Thread Rustom Mody
On Tuesday, May 13, 2014 3:30:36 PM UTC+5:30, Chris Angelico wrote: > Actually, even the file system can do some of this to you. I was > checking lsof on one of my Linux systems a little while ago, and found > that I had half a dozen old versions of a program, all with the same > file name, all del

Re: PEP 8 : Maximum line Length :

2014-05-13 Thread Rustom Mody
On Tuesday, May 13, 2014 12:37:24 PM UTC+5:30, Ganesh Pal wrote: > Hi Team , > > > what would be the best way to intent the below line . > > I have few lines in my program exceeding the allowed maximum line Length of > 79./80 characters > > > Example 1 : > > >p = > Subprocess.Popen(s

Re: PEP 8 : Maximum line Length :

2014-05-13 Thread Rustom Mody
On Tuesday, May 13, 2014 2:15:49 PM UTC+5:30, Peter Otten wrote: > Ganesh Pal wrote: > > what would be the best way to intent the below line . > >p = > > Subprocess.Popen(shlex.split(cmd),stdout=subprocess.PIPE,stderr=subprocess.PIPE) > (3) Import names: > > > from subprocess import PIPE > p

Re: Everything you did not want to know about Unicode in Python 3

2014-05-13 Thread Rustom Mody
On Tuesday, May 13, 2014 7:13:47 PM UTC+5:30, Chris Angelico wrote: > On Tue, May 13, 2014 at 11:39 PM, Steven D'Aprano > > Or price something in cents? I suppose the days of the 25¢ steak dinner > > are long gone, but you might need to sell something for 99¢ a pound... > > > $0.99/lb? :) Dollar

Re: New to Python. For in loops curiosity

2014-05-13 Thread Rustom Mody
On Wednesday, May 14, 2014 9:08:32 AM UTC+5:30, Leonardo Petry wrote: > > This is just too convenient. > > Basically my question is: Why is python not treating the contents of > wordplay.txt as one long string and looping each character? Did you mean convenient or inconvenient? Anyways... Ma

Re: PEP 8 : Maximum line Length :

2014-05-14 Thread Rustom Mody
On Thursday, May 15, 2014 4:23:52 AM UTC+5:30, Albert van der Horst wrote: > > Rustom Mody wrote: > >80-character limit?! > >Sheesh! A relic of the days when terminals were ASCII and 80x24 > > > 80 character was the hard limit. > The soft limit for readability

Re: How do I access 'Beautiful Soup' on python 2.7 or 3.4 , console or idle versions.

2014-05-15 Thread Rustom Mody
On Thursday, May 15, 2014 4:55:42 PM UTC+5:30, Simon Evans wrote: > Dear Programmers, > > As anticipated, it has not been to long before I have encountered further > > difficulty. At the top of page 16 of 'Getting Started with Beautiful Soup" it > > gives code to be input, whether to the Pytho

Re: PEP 8 : Maximum line Length :

2014-05-15 Thread Rustom Mody
On Thursday, May 15, 2014 6:37:54 PM UTC+5:30, Marko Rauhamaa wrote: > Johannes Bauer : > > > > I don't know why anyone would force a display issue onto everyone. > > > Well, if I have to work with your code, you are forcing your style on > me. > > > > It imples the arrogant stance that every

Re: PEP 8 : Maximum line Length :

2014-05-15 Thread Rustom Mody
On Thursday, May 15, 2014 6:57:26 PM UTC+5:30, Chris Angelico wrote: > The limit of human readability is generally given to be somewhere in > the range of 60-120. It's not a single specific value that's exactly > the same for everyone; personally, I like my lines of code to be a bit > longer than 8

Re: PEP 8 : Maximum line Length :

2014-05-15 Thread Rustom Mody
On Thursday, May 15, 2014 7:28:01 PM UTC+5:30, Roy Smith wrote: > > Rustom Mody wrote: > > > > > And yet programmers continue to be decades behind all other users of > > computers. We continue to use flat text for our programs when all others > > have move

Re: PEP 8 : Maximum line Length :

2014-05-15 Thread Rustom Mody
On Friday, May 16, 2014 3:51:27 AM UTC+5:30, Terry Reedy wrote: > On 5/15/2014 9:58 AM, Rustom Mody wrote: > > > > As far as I can see the votaries of the mystical 79 have yet to explain > > how/where it appeared from > > > > As has been explained before, a

Re: PEP 8 : Maximum line Length :

2014-05-15 Thread Rustom Mody
On Friday, May 16, 2014 5:51:21 AM UTC+5:30, Ben Finney wrote: > > > Rather, I've claimed that the conventional lime length limit is *based > in* the real cognitive limits of human reading comprehension -- and that > technologies have been designed with corresponding limitations. > > > Nowhere

Re: PEP 8 : Maximum line Length :

2014-05-17 Thread Rustom Mody
On Saturday, May 17, 2014 7:36:19 PM UTC+5:30, Roy Smith wrote: > > Mark Lawrence wrote: > > > Now translate E=mc^2 into Java. > > > > > > > I can't do that as I simply don't understand it. What has the > > Marylebone Cricket Club got to do with E? > > A wicket looks like an E on its side.

Re: Python and Math

2014-05-17 Thread Rustom Mody
On Sunday, May 18, 2014 8:43:11 AM UTC+5:30, Bill Cunningham wrote: > Does Python have good mathematical capabilities? I am interested in > > learning a second language for mathematical purposes. I am considering > > looking at python, perl, fortran, Adas out. It looked too complicated to > >

Re: using a new computer and bringing needed libraries to it

2014-05-17 Thread Rustom Mody
On Sunday, May 18, 2014 5:47:05 AM UTC+5:30, Ned Batchelder wrote: > On 5/17/14 7:53 PM, CM wrote: > > > If I want to switch my work from one computer to a new one, and I > > have lots of various libraries installed on the original computer, > > what's the best way to switch that all to the new c

Re: Python and Math

2014-05-19 Thread Rustom Mody
On Monday, May 19, 2014 3:45:22 PM UTC+5:30, Fabien wrote: > Hi everyone, > I am new on this forum (I come from IDL and am starting to learn python) > This thread perfectly illustrates why Python is so scary to newcomers: > one question, three answers: yes, no, maybe. > Python-fans sure would a

Re: Python and Math

2014-05-19 Thread Rustom Mody
On Monday, May 19, 2014 6:39:49 PM UTC+5:30, Chris Angelico wrote: > On Mon, May 19, 2014 at 10:46 PM, Rustom Mody wrote: > > The provers call the calculators as "Just applied not pure mathematicians" > > The calculators say of the provers: "They are not mathematicia

Re: Python and Math

2014-05-19 Thread Rustom Mody
On Monday, May 19, 2014 8:26:11 PM UTC+5:30, jmf wrote: > Yesterday, I spent one hour attemepting to install IPython > for Py3.3 (win 7), I failed. I do not even succeed to > understand how. Pip, setuptools, whl or manualy with from the > zip... completely lost. There is always something not worki

Re: Clip Raster Image Pair by Overlapping Area using Python

2014-05-19 Thread Rustom Mody
On Tuesday, May 20, 2014 7:13:42 AM UTC+5:30, Chris Angelico wrote: > On a separate topic, you're posting through Google Groups with its > abhorrent bugs. Can you please either edit your posts before sending > (removing the blank lines, wrapping to a sane width, and trimming the > quoted text), or

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-19 Thread Rustom Mody
On Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > > On Mon, May 19, 2014 at 4:53 PM, wrote: > Could you kindly help? Sure. Either start writing code and then post when you > have problems, or investigate some shel

Re: Python and Math

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 3:43:45 PM UTC+5:30, Tim Golden wrote: > If it's possible, download get-pip.py from here: > > https://bootstrap.pypa.io/get-pip.py Gives me secure connection failed error (in firefox) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and Math

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 5:25:40 PM UTC+5:30, Tim Golden wrote: > On 20/05/2014 12:20, Rustom Mody wrote: > > > On Tuesday, May 20, 2014 3:43:45 PM UTC+5:30, Tim Golden wrote: > >> If it's possible, download get-pip.py from here: > >> > >> https://bo

Re: Python and Math

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 7:12:19 PM UTC+5:30, jmf wrote: > I give up. > Anyway, thanks. Take a deep breath. Be patient. And post the backtrace (or whatever is the evidence of 'not working') -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 10:08:06 PM UTC+5:30, Skip Montanaro wrote: > I don't have Windows and since upgrading my Mac to Mavericks I no > longer have Excel of any flavor. I have a few Excel spreadsheets in > which I store parameters from which I generate other config files. I > read those spreadsh

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 9:35:10 PM UTC+5:30, Jagadeesh N. Malakannavar wrote: > Hi Satish, > > Can you please send python part in plain text format? Python code here is > > difficult to read. It would be helpful to read https://wiki.python.org/moin/GoogleGroupsPython#Posting_from_Google_Group

Re: Reading OpenOffice spreadsheet in Python?

2014-05-21 Thread Rustom Mody
On Tuesday, May 20, 2014 10:08:06 PM UTC+5:30, Skip Montanaro wrote: > I don't have Windows and since upgrading my Mac to Mavericks I no > longer have Excel of any flavor. I have a few Excel spreadsheets in > which I store parameters from which I generate other config files. I > read those spreadsh

Re: Copying non-existing files

2014-05-21 Thread Rustom Mody
On Wednesday, May 21, 2014 2:11:42 PM UTC+5:30, Satish ML wrote: > import xlrd, sys, os, shutil > for f in files: > for s in source: > for d in destination: > print f > print s >

Re: Copying non-existing files

2014-05-21 Thread Rustom Mody
On Wednesday, May 21, 2014 8:15:10 PM UTC+5:30, Chris Angelico wrote: > On Thu, May 22, 2014 at 12:14 AM, Rustom Mody wrote: > > > d ++ "\\" ++ f > > ITYM: > > d + "\\" + f > > or possibly: > > d + "/" + f Heh! I had

Re: All-numeric script names and import

2014-05-22 Thread Rustom Mody
On Wednesday, May 21, 2014 7:16:46 PM UTC+5:30, Chris Angelico wrote: > If I have a file called 1.py, is there a way to import it? Obviously I > can't import it as itself, but in theory, it should be possible to > import something from it. I can manage it with __import__ (this is > Python 2.7 I'm w

Re: Windows automatic rebooting due to faulty code

2014-05-23 Thread Rustom Mody
On Friday, May 23, 2014 9:06:32 PM UTC+5:30, Chris Angelico wrote: > > There was a problem while creating the post asking the question. Here it is > > now: > > https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ > Solution: Get off Google Groups. Subscribe to python-list@p

Re: How keep Python 3 moving forward

2014-05-24 Thread Rustom Mody
On Saturday, May 24, 2014 3:29:01 PM UTC+5:30, Marko Rauhamaa wrote: > > > > Instead of focusing on bringing legacy libraries to Python3 (for which > there never seems to be a critical need), Python3 needs a brand new > killer module/application/library that is only available on Python3. > I t

Re: How keep Python 3 moving forward

2014-05-25 Thread Rustom Mody
On Sunday, May 25, 2014 8:51:18 PM UTC+5:30, Ethan Furman wrote: > On 05/24/2014 11:43 PM, jmf wrote: > > > > Python and unicode: a buggy hobbyist toy. > > Voil�. Nothing either good or bad. > > > I thought this was a moderated list. What exactly are the moderators doing? Your unicode is moj

Re: Hello and sorry for disturbing !

2014-05-26 Thread Rustom Mody
On Monday, May 26, 2014 2:57:54 PM UTC+5:30, Radu Ioan Barbos wrote: > Greetings from Romania,sorry > for my english,i just wanted to ask you if i need any other > software/program beside the one software from the next page > https://www.python.org/downloads/ > or is it enough the software on t

Re: Build tools, and Python 3 dependencies (was: How keep Python 3 moving forward)

2014-05-26 Thread Rustom Mody
On Tuesday, May 27, 2014 8:29:13 AM UTC+5:30, Steven D'Aprano wrote: > On Mon, 26 May 2014 08:44:51 -0400, Roy Smith wrote: > > > > >> That makes even less sense. The build system runs under whatever > > >> version of Python it needs, and your code runs under whatever version > > >> of Python

Re: Verify JSON Data

2014-05-26 Thread Rustom Mody
On Tuesday, May 27, 2014 12:05:58 AM UTC+5:30, Grant Edwards wrote: > On 2014-05-26, gaurang shah wrote: > > Would someone let me know how to verify JSON data in python. > Parse the file into a data structure with whatever parser you like, > then write a program to go thorugh the data structure a

Re: IDE for python

2014-05-28 Thread Rustom Mody
On Wednesday, May 28, 2014 4:13:29 PM UTC+5:30, Sameer Rathoud wrote: > Hello everyone, > I am new to python. > I am currently using python 3.3 > With python I got IDLE, but I am not very comfortable with this. > Please suggest, if we have any free ide for python development. Im not going to a

Re: Multi-line commands with 'python -c'

2014-05-29 Thread Rustom Mody
On Friday, May 30, 2014 6:22:24 AM UTC+5:30, Chris Angelico wrote: > Since lines are so critical to Python syntax, I'm a little surprised > there's no majorly obvious solution to this... or maybe I'm just > blind. > Problem: Translate this into a shell one-liner: > import os > for root, dirs, fil

Re: Multi-line commands with 'python -c'

2014-05-29 Thread Rustom Mody
On Friday, May 30, 2014 11:34:36 AM UTC+5:30, Rustom Mody wrote: > On Friday, May 30, 2014 6:22:24 AM UTC+5:30, Chris Angelico wrote: > > Since lines are so critical to Python syntax, I'm a little surprised > > there's no majorly obvious solution to this... or

Re: Multi-line commands with 'python -c'

2014-05-29 Thread Rustom Mody
On Friday, May 30, 2014 12:15:46 PM UTC+5:30, Rustom Mody wrote: > Heres a (pr) approx > > $ python -c 'import os, pprint; pprint.pprint ([ r for r, d, f in > os.walk(".") if len(d+f) != 1])' Without pprint: (pooor) python -c 'import os; print "\

Re: Multi-line commands with 'python -c'

2014-05-30 Thread Rustom Mody
On Friday, May 30, 2014 12:50:31 PM UTC+5:30, Chris Angelico wrote: > On Fri, May 30, 2014 at 4:04 PM, Rustom Mody wrote: > > I thought when one signs up for python one has to sign an affidavit > > saying: > > "I shall not write one-liners\n" * 100 > Certainly

Re: IDE for python

2014-05-30 Thread Rustom Mody
On Thursday, May 29, 2014 10:14:35 PM UTC+5:30, Paul Rudin wrote: > Terry Reedy writes: > > 3. Search unopened files (grep) for a string or re. > Emacs. How do you do this with emacs? I find a menagerie of greppish commands -- rgrep, lgrep, grep-find etc -- https://mail.python.org/mailman/listin

Re: IDE for python

2014-05-30 Thread Rustom Mody
On Friday, May 30, 2014 7:24:10 PM UTC+5:30, Marko Rauhamaa wrote: > Rustom Mody wrote: > > > >> > 3. Search unopened files (grep) for a string or re. > > > > How do you do this with emacs? > > I find a menagerie of greppish commands -- rgrep, lgrep,

Re: IDE for python

2014-05-30 Thread Rustom Mody
On Friday, May 30, 2014 8:36:54 PM UTC+5:30, wxjm...@gmail.com wrote: > Out of curiosity. > Are you the Rusi Mody attempting to dive in Xe(La)TeX? Yeah :-) As my blog posts labelled unicode will indicate I am a fan of using unicode in program source: http://blog.languager.org/search/label/Unicod

Re: IDE for python

2014-05-30 Thread Rustom Mody
On Friday, May 30, 2014 10:07:21 PM UTC+5:30, Terry Reedy wrote: > On 5/30/2014 12:15 PM, Rustom Mody wrote: > > > And for those who dont know xetex, its is really xɘtex – a pictorial > > anagram if written as XƎTEX > > I believe you mean 'pictorial palindrome&#x

Re: IDE for python

2014-05-30 Thread Rustom Mody
On Friday, May 30, 2014 10:08:04 PM UTC+5:30, Mark Lawrence wrote: > On 30/05/2014 17:15, Rustom Mody wrote: > > On Friday, May 30, 2014 8:36:54 PM UTC+5:30, jmf wrote: > > It is now about time that we stop taking ASCII seriously!! > This can't happen in the Python world un

Re: IDE for python

2014-05-30 Thread Rustom Mody
On Friday, May 30, 2014 10:47:33 PM UTC+5:30, wxjm...@gmail.com wrote: > = > Ok, thanks for the answer. > "xetex does not quite work whereas pdflatex works smoothly" > ? Problem is a combination of 1. I am a somewhat clueless noob 2. xetex is emerging technology therefore changing fast

Re: IDE for python

2014-05-31 Thread Rustom Mody
On Friday, May 30, 2014 10:37:00 PM UTC+5:30, Rustom Mody wrote: > You are talking about the infrastructure needed for writing unicode apps. > The language need not have non-ASCII lexemes for that > I am talking about something quite different. > Think for example of a German want

Re: Python 3 is killing Python

2014-05-31 Thread Rustom Mody
On Sunday, June 1, 2014 9:05:11 AM UTC+5:30, Chris Angelico wrote: > So if you want to start a one-man airline (where you're managing the > company, flying the plane, and everything else), do you start by > looking at the relative merits of the 747-400 and 777-300ER I guess a person starting a one

Re: IDE for python

2014-06-01 Thread Rustom Mody
On Sunday, June 1, 2014 2:01:09 PM UTC+5:30, Chris Angelico wrote: > On Sun, Jun 1, 2014 at 5:58 PM, Marko Rauhamaa wrote: > > As a Finnish-speaker, I hope that patch doesn't become default behavior. > > Too many times, we have been victimized by the German conventions. A > > Finnish-speaker would

Re: Python 3.2 has some deadly infection

2014-06-01 Thread Rustom Mody
On Monday, June 2, 2014 7:53:05 AM UTC+5:30, Tim Delaney wrote: > On 2 June 2014 11:14, Steven D'Aprano wrote: >>  Latin-1 is one of those legacy encodings which needs to die, not to be >> entrenched as the default. My terminal uses UTF-8 by default (as it >> should), and if I use the terminal to

Re: How to read a directory path from a txt file

2014-06-02 Thread Rustom Mody
On Monday, June 2, 2014 7:48:25 PM UTC+5:30, Samuel Kamau wrote: > I have created a txt file with various paths to directories. The paths look > like this > > /home/wachkama/Desktop/api/genshi > > /home/wachkama/Desktop/www/portal/schedule > > /home/wachkama/Desktop/show/help.genshi > > > >

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