[issue38295] test_relative_path of test_py_compile fails on macOS 10.15 Catalina

2019-12-03 Thread Amged Rustom
Change by Amged Rustom : -- nosy: +amgedr ___ Python tracker <https://bugs.python.org/issue38295> ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Multi meaning of label: Doc bug

2019-02-26 Thread Rustom Mody
On Wednesday, February 27, 2019 at 11:12:28 AM UTC+5:30, Rustom Mody wrote: > Ref: This stackexchange post: > https://unix.stackexchange.com/q/503241/323121 > > Context: Theres this guy who's really struggling with disk partitioning LVM > etc concepts. That point is not di

Multi meaning of label: Doc bug

2019-02-26 Thread Rustom Mody
Ref: This stackexchange post: https://unix.stackexchange.com/q/503241/323121 Context: Theres this guy who's really struggling with disk partitioning LVM etc concepts. That point is not directly relevant to this question. My answer on that post tries to clarify that 'label' can mean 3 things at

Re: [RELEASED] Python 3.4.9rc1 and Python 3.5.6rc1 are now available

2018-07-22 Thread Rustom Mody
On Friday, July 20, 2018 at 7:51:22 AM UTC+5:30, Larry Hastings wrote: … > the availability of Python 3.4.9rc1 and Python 3.5.6rc1. > Python's entrenched bureaucracy soldiers on, > //arry/  And ² at 325 posts of customary inanity at the recent events but nary a squeak of regret --

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-10 Thread Rustom Mody
Marko wrote: > When typing in code (in various languages), I have a habit of typing > "..." at places that need to be implemented Quite a research area actually https://wiki.haskell.org/GHC/Typed_holes -- https://mail.python.org/mailman/listinfo/python-list

Re: How to fill in a dictionary with key and value from a string?

2018-04-01 Thread Rustom Mody
On Saturday, March 31, 2018 at 4:30:04 PM UTC+5:30, bartc wrote: > On 30/03/2018 21:13, C W wrote: > > Hello all, > > > > I want to create a dictionary. > > > > The keys are 26 lowercase letters. The values are 26 uppercase letters. > > > > The output should look like: > > {'a': 'A', 'b':

Re: Converting list of tuple to list

2018-03-29 Thread Rustom Mody
On Thursday, March 29, 2018 at 8:42:39 PM UTC+5:30, Ganesh Pal wrote: > Hello Team, > > > > I have a list of tuple say [(1, 2, 1412734464L, 280), (2, 5, 1582956032L, > 351), (3, 4, 969216L, 425)] . I need to convert the above as > ['1,2,1412734464:280', > '2,5,1582956032:351',

Re: Entering a very large number

2018-03-25 Thread Rustom Mody
On Monday, March 26, 2018 at 12:55:43 AM UTC+5:30, Peter J. Holzer wrote: > On 2018-03-25 19:18:23 +0200, ast wrote: > > Le 25/03/2018 à 03:47, Steven D'Aprano a écrit : > > > The Original Poster (OP) is concerned about saving, what, a tenth of a > > > microsecond in total? Hardly seems worth the

Re: Entering a very large number

2018-03-23 Thread Rustom Mody
On Friday, March 23, 2018 at 5:46:56 PM UTC+5:30, ast wrote: > Hi > > I found this way to put a large number in > a variable. What stops you from entering the number on one single (v long) line? In case there is a religious commitment to PEP 8 dicta, the recommended meditation is this line

Re: Style Q: Instance variables defined outside of __init__

2018-03-21 Thread Rustom Mody
On Wednesday, March 21, 2018 at 5:37:48 AM UTC+5:30, Paul Rubin wrote: > Ben Finney writes: > > Any program which needs to interact with systems outside itself – which > > is to say, any program which performs useful work, ultimately – must > > have side effects. So it's absurd to advocate

Re: Treatment of NANs in the statistics module

2018-03-18 Thread Rustom Mody
On Saturday, March 17, 2018 at 3:22:46 PM UTC+5:30, Léo El Amri wrote: > On 17/03/2018 00:16, Steven D'Aprano wrote: > > The bug tracker currently has a discussion of a bug in the median(), > > median_low() and median_high() functions that they wrongly compute the > > medians in the face of NANs

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-01 Thread Rustom Mody
On Friday, March 2, 2018 at 10:05:41 AM UTC+5:30, Steven D'Aprano wrote: > On Thu, 01 Mar 2018 16:26:47 -0800, ooomzay wrote: > > >> >> When does the destination file get closed? > >> > > >> > When you execute:- > >> > > >> >del dst > >> > > >> > or:- > >> > > >> >dst = something_else >

Re: help me ? (Posting On Python-List Prohibited)

2018-03-01 Thread Rustom Mody
On Thursday, March 1, 2018 at 5:37:28 AM UTC+5:30, Steven D'Aprano wrote: > On Wed, 28 Feb 2018 09:58:24 -0800, Aktive wrote: > > > what the hell do you care about cheating.. > > > > the world doest care about cheating. > > > > its about skill. > > Because cheaters don't have skill. That's why

Re: Help to debug my free library

2018-01-31 Thread Rustom Mody
On Thursday, February 1, 2018 at 1:11:50 AM UTC+5:30, Victor Porton wrote: > wxjmfauth wrote: > > > Le mercredi 31 janvier 2018 20:13:06 UTC+1, Chris Angelico a écrit : > >> On Thu, Feb 1, 2018 at 5:58 AM, Victor Porton wrote: > >> > LibComCom is a C library which passes a string as stdin of an

Re: [OT] Dutch Reach [was Re: Where has the practice of sending screen shots as source code come from?]

2018-01-31 Thread Rustom Mody
On Wednesday, January 31, 2018 at 11:17:45 PM UTC+5:30, Adriaan Renting wrote: > I am Dutch and after googling the term, I can confirm that the "Dutch > Reach" is taught in driving school here. > I was taught this maneuvre when getting my licence 20 years ago. > And in the Netherlands, we

Re: Where has the practice of sending screen shots as source code come from?

2018-01-30 Thread Rustom Mody
On Tuesday, January 30, 2018 at 1:02:12 PM UTC+5:30, Steven D'Aprano wrote: > On Mon, 29 Jan 2018 21:32:11 -0800, Rustom Mody wrote: > > > On Sunday, January 28, 2018 at 8:37:11 PM UTC+5:30, Steven D'Aprano > > wrote: > >> I'm seeing this annoying practice more and m

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Rustom Mody
On Sunday, January 28, 2018 at 8:37:11 PM UTC+5:30, Steven D'Aprano wrote: > I'm seeing this annoying practice more and more often. Even for trivial > pieces of text, a few lines, people post screenshots instead of copying > the code. > > Where has this meme come from? It seems to be one which

Re: xpath prob, was Re: Why is there no functional xml?

2018-01-25 Thread Rustom Mody
On Wednesday, January 24, 2018 at 2:31:22 PM UTC+5:30, Peter Otten wrote: > Rustom Mody wrote: > > > With > > # Read above xml > >>>> with open('soap_response.xml') as f: inp = etree.parse(f) > > # namespace dict > >>>> nsd = {'soap

Re: Why is there no functional xml?

2018-01-23 Thread Rustom Mody
On Tuesday, January 23, 2018 at 8:23:43 PM UTC+5:30, Peter Otten wrote: > Rustom Mody wrote: > > [I find the OO/imperative style of making a half-done node and then > > [throwing > > piece-by-piece of contents in/at it highly aggravating] > > What I meant i

Re: Why is there no functional xml?

2018-01-22 Thread Rustom Mody
On Sunday, January 21, 2018 at 4:51:34 PM UTC+5:30, Peter Otten wrote: > Personally I'd probably avoid the extra layer and write a function that > directly maps dataclasses or database records to xml using the conventional > elementtree API. Would appreciate your thoughts/comments Peter! I

Re: Why is there no functional xml?

2018-01-21 Thread Rustom Mody
On Sunday, January 21, 2018 at 4:51:34 PM UTC+5:30, Peter Otten wrote: > Rustom Mody wrote: > > > Looking around for how to create (l)xml one sees typical tutorials like > > this: > > > > https://www.blog.pythonlibrary.org/2013/04/30/python-101-intro-t

Why is there no functional xml?

2018-01-20 Thread Rustom Mody
Looking around for how to create (l)xml one sees typical tutorials like this: https://www.blog.pythonlibrary.org/2013/04/30/python-101-intro-to-xml-parsing-with-elementtree/ Given the requirement to build up this xml: 1181251680 04008200E000 1181572063

Re: Pandas printing in jupyter

2018-01-16 Thread Rustom Mody
On Tuesday, January 16, 2018 at 6:04:06 PM UTC+5:30, Rustom Mody wrote: Had missed the mtd element ie changing elemfmt = """%d """ to elemfmt = """%d """ -- https://mail.python.org/mailman/listinfo/python-list

Re: Pandas printing in jupyter

2018-01-16 Thread Rustom Mody
On Tuesday, January 16, 2018 at 5:10:14 PM UTC+5:30, Rustom Mody wrote: > On Sunday, January 14, 2018 at 3:28:02 AM UTC+5:30, bo...@questa.la.so wrote: > > Rustom Mody writes: > > > > > Specifically and for starters, I want a numpy array — lets say 2D to > >

Re: Pandas printing in jupyter

2018-01-16 Thread Rustom Mody
On Sunday, January 14, 2018 at 3:28:02 AM UTC+5:30, bo...@questa.la.so wrote: > Rustom Mody writes: > > > Specifically and for starters, I want a numpy array — lets say 2D to > > start with — to be displayed(displayable) as elegantly as sympy does >

Re: Pandas printing in jupyter

2018-01-11 Thread Rustom Mody
On Thursday, January 11, 2018 at 2:49:27 PM UTC+5:30, Thomas Jollans wrote: > On 2018-01-11 09:59, Rustom Mody wrote: > > On Thursday, January 11, 2018 at 2:13:46 PM UTC+5:30, Paul Moore wrote: > >> The HTML representation is supplied by the object's _repr_html_ >

Re: Pandas printing in jupyter

2018-01-11 Thread Rustom Mody
On Thursday, January 11, 2018 at 2:13:46 PM UTC+5:30, Paul Moore wrote: > The HTML representation is supplied by the object's _repr_html_ > method. See https://ipython.org/ipython-doc/3/config/integrating.html > for some details. > > >>> import pandas as pd > >>> df = pd.DataFrame() > >>>

Pandas printing in jupyter

2018-01-10 Thread Rustom Mody
If I make a data-frame in pandas in jupyter notebook it prints very nicely ie it looks quite like a spreadsheet How does it do it? Who does it? The data-frame does not seem to have str/repr methods… -- https://mail.python.org/mailman/listinfo/python-list

Re: Numpy and Terabyte data

2018-01-02 Thread Rustom Mody
On Wednesday, January 3, 2018 at 1:43:40 AM UTC+5:30, Paul Moore wrote: > On 2 January 2018 at 17:24, Rustom Mody wrote: > > Someone who works in hadoop asked me: > > > > If our data is in terabytes can we do statistical (ie numpy pandas etc) > > analysis on it? >

Numpy and Terabyte data

2018-01-02 Thread Rustom Mody
Someone who works in hadoop asked me: If our data is in terabytes can we do statistical (ie numpy pandas etc) analysis on it? I said: No (I dont think so at least!) ie I expect numpy (pandas etc) to not work if the data does not fit in memory Well sure *python* can handle (streams of) terabyte

Re: emacsclient does not select frame?

2017-12-31 Thread Rustom Mody
On Sunday, December 31, 2017 at 9:00:53 PM UTC+5:30, Rustom Mody wrote: > With a lot of jumping through hoops Ive managed to get firefox to > call emacs(client) and save links+description(title)+selection(in firefox; > optional) into an org mode capture buffer. > > H

emacsclient does not select frame?

2017-12-31 Thread Rustom Mody
With a lot of jumping through hoops Ive managed to get firefox to call emacs(client) and save links+description(title)+selection(in firefox; optional) into an org mode capture buffer. However the call to emacsclient does not raise the frame... At least not consistently? Currently my hack is to

Re: Goto (Posting On Python-List Prohibited)

2017-12-29 Thread Rustom Mody
On Saturday, December 30, 2017 at 8:35:27 AM UTC+5:30, Lawrence D’Oliveiro wrote: > On Saturday, December 30, 2017 at 12:12:23 PM UTC+13, bartc wrote: > > Looking at 14 million lines of Linux kernel sources, which are in C, > > over 100,000 of them use 'goto'. About one every 120 lines. > >

Re: Python Learning

2017-12-21 Thread Rustom Mody
On Friday, December 22, 2017 at 12:12:58 AM UTC+5:30, Python wrote: > On Fri, Dec 15, 2017 at 04:51:09PM -0500, Bill wrote: > > >I'm new to programming, can anyone guide me, how to start learning python > > >programming language,...plz suggest some books also. > > > > > >Thanks all > > > > Are

Re: How to edit a function in an interactive python session?

2017-12-20 Thread Rustom Mody
On Thursday, December 21, 2017 at 7:12:24 AM UTC+5:30, Peng Yu wrote: > Hi, > > R has the function edit() which allows the editing of the definition > of a function. Does python have something similar so that users can > edit python functions on the fly? Thanks. > >

Re: [META] Are the list admins honouring Posting Prohibited demands?

2017-12-20 Thread Rustom Mody
FYI: On Wednesday, December 20, 2017 at 11:22:52 AM UTC+5:30, Steve D'Aprano wrote: > This is possibly a question for the list admins... > > I notice that Lawrence D’Oliveiro has taken up labelling his posts with a > demand that his posts are not to be posted to the Python-List mailing list.

Re: [OT] Python and Excel

2017-12-19 Thread Rustom Mody
On Tuesday, December 19, 2017 at 4:38:17 AM UTC+5:30, Les Cargill wrote: > oliver wrote: > > That would be amazing. I still have nightmares of when I had to create this > > big options analysis VBA program in Excel 2007. > > > > > Odd - I haven't found VBA itself to be all that horrible. Yeah,

Re: Python Learning

2017-12-17 Thread Rustom Mody
On Saturday, December 16, 2017 at 6:11:31 PM UTC+5:30, Marko Rauhamaa wrote: > Stefan Ram: > > > Varun R writes: > >>I'm new to programming, can anyone guide me, how to start > >>learning python programming language > > > > As a start, one should learn: > > > > 1.) how to install Python > >

Re: Python Learning

2017-12-17 Thread Rustom Mody
In response to > Rustom Mody wrote: >> On Saturday, December 16, 2017 at 9:45:17 AM UTC+5:30, Bill wrote: >>> so it really doesn't make that much difference where one starts, just >>> "Do It!". : ) >> Really ¿? >> https://en.wikipedia.or

Re: Python Learning (Posting On Python-List Prohibited)

2017-12-17 Thread Rustom Mody
On Sunday, December 17, 2017 at 6:39:41 AM UTC+5:30, Lawrence D’Oliveiro wrote: > On Sunday, December 17, 2017 at 2:26:43 AM UTC+13, Marko Rauhamaa wrote: > > > Unfortunately, Python's indentation mechanism makes the REPL too > > frustrating an environment to type in even the simplest of function

Re: Python Learning

2017-12-15 Thread Rustom Mody
On Saturday, December 16, 2017 at 9:45:17 AM UTC+5:30, Bill wrote: > Chris Angelico wrote: > > On Sat, Dec 16, 2017 at 8:51 AM, Bill wrote: > >> Varun R wrote: > >>> Hi All, > >>> > >>> I'm new to programming, can anyone guide me, how to start learning python > >>> programming language,...plz

Re: Answers to homework questions [WAS]: Re: Python homework

2017-12-14 Thread Rustom Mody
On Thursday, December 14, 2017 at 7:02:56 PM UTC+5:30, Rustom Mody wrote: > On Thursday, December 14, 2017 at 3:53:21 PM UTC+5:30, Lorenzo Sutton wrote: > > Hi Roger, > > > > On 13/12/17 23:31, ROGER GRAYDON CHRISTMAN wrote: > > > On Wed, Dec 13, 2017, Lorenzo Sutto

Re: Answers to homework questions [WAS]: Re: Python homework

2017-12-14 Thread Rustom Mody
On Thursday, December 14, 2017 at 3:53:21 PM UTC+5:30, Lorenzo Sutton wrote: > Hi Roger, > > On 13/12/17 23:31, ROGER GRAYDON CHRISTMAN wrote: > > On Wed, Dec 13, 2017, Lorenzo Sutton wrote: > >> > > On 05/12/17 06:33, nick martinez2 via Python-list wrote: > >>> I have a question on my homework.

Re: Please tell me how to execute python file in Ubuntu by double

2017-12-11 Thread Rustom Mody
other but past each other So… On Tuesday, December 12, 2017 at 2:45:32 AM UTC+5:30, Rick Johnson wrote: > Rustom Mody wrote: > > [...] > > > Whether there was nothing wrong in what I did, the "wrong- > > right" was de facto, or de jureâ | I will leave to

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Rustom Mody
On Sunday, December 10, 2017 at 11:15:15 AM UTC+5:30, Frank Millman wrote: > "Rustom Mody" wrote in message > > > > I was sending some files to some students. > Since it was more than one, the natural choice was a tarball. > [I believe that since it wa

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Rustom Mody
On Sunday, December 10, 2017 at 10:12:38 AM UTC+5:30, Rustom Mody wrote: > I was sending some files to some students. > Since it was more than one, the natural choice was a tarball. > [I believe that since it was a very tiny total space I did not compress the > tarball… but I d

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Rustom Mody
On Friday, December 8, 2017 at 6:40:17 AM UTC+5:30, Python wrote: > On Thu, Dec 07, 2017 at 01:29:11PM +1100, Steve D'Aprano wrote: > > On Thu, 7 Dec 2017 08:22 am, Python wrote: > > >> > Linux doesn’t do “OS file associations”. > > >> > > >> Then how does my Linux box know that when I

repeating posts

2017-12-08 Thread Rustom Mody
Repeating old posts again appearing [No not complaining… I know people are working on it. Thanks Skip and whoever else] Just thought I'd mention they are now mildly mojibaked -- https://mail.python.org/mailman/listinfo/python-list

Re: we want python software

2017-12-08 Thread Rustom Mody
On Wednesday, December 6, 2017 at 3:10:24 AM UTC+5:30, Igor Korot wrote: > Hi, Tony, > > On Tue, Dec 5, 2017 at 11:10 AM, Tony van der Hoff wrote: > > On 05/12/17 16:55, Igor Korot wrote: > >> Hi, > >> > >> On Tue, Dec 5, 2017 at 9:10 AM, Jyothiswaroop Reddy wrote: > >>> Sir, > >>> I am

Re: Anything similar to __END__ in perl

2017-12-08 Thread Rustom Mody
On Friday, December 8, 2017 at 3:13:56 PM UTC+5:30, Karsten Hilbert wrote: > On Thu, Dec 07, 2017 at 11:55:48PM -0600, Peng Yu wrote: > > > Hi, perl has __END__ which ignore all the lines below it. > > > > Is there anything similar to __END__ in python? Thanks. > > Something similar is: > >

Lies (was: we want python software)

2017-12-06 Thread Rustom Mody
On Wednesday, December 6, 2017 at 3:05:33 PM UTC+5:30, Steve D'Aprano wrote: > (By the way Rustom, if you're reading, thank you for that link to the video a > few weeks ago about teaching 2 + 2 = 22. My blood pressure just about doubled > watching it.) [Ref: https://youtu.be/Zh3Yz3PiX

Politeness (was: we want python software)

2017-12-06 Thread Rustom Mody
On Wednesday, December 6, 2017 at 4:05:43 PM UTC+5:30, Steve D'Aprano wrote: > On Wed, 6 Dec 2017 02:49 pm, Rustom Mody wrote: > > > You are assuming that the strangeness of the request is about 'tech' > > [engineering/tech existed centuries before computers] > >

Re: we want python software

2017-12-05 Thread Rustom Mody
On Wednesday, December 6, 2017 at 3:10:24 AM UTC+5:30, Igor Korot wrote: > Hi, Tony, > > On Tue, Dec 5, 2017 at 11:10 AM, Tony van der Hoff wrote: > > On 05/12/17 16:55, Igor Korot wrote: > >> Hi, > >> > >> On Tue, Dec 5, 2017 at 9:10 AM, Jyothiswaroop Reddy wrote: > >>> Sir, > >>> I am

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-05 Thread Rustom Mody
On Tuesday, December 5, 2017 at 2:28:44 PM UTC+5:30, Lawrence D’Oliveiro wrote: > On Tuesday, December 5, 2017 at 3:39:26 AM UTC+13, Rick Johnson wrote: > > > > Sounds like your OS file associations are all botched-up ... > > Linux doesn’t do “OS file associations”. From a strict pov thats

Re: why won't slicing lists raise IndexError?

2017-12-04 Thread Rustom Mody
On Tuesday, December 5, 2017 at 12:40:01 AM UTC+5:30, Jason Maldonis wrote: > I was extending a `list` and am wondering why slicing lists will never > raise an IndexError, even if the `slice.stop` value if greater than the > list length. > > Quick example: > > my_list = [1, 2, 3] > my_list[:100]

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-27 Thread Rustom Mody
On Monday, November 27, 2017 at 10:49:35 PM UTC+5:30, Skip Montanaro wrote: > > I strongly suspect that any recent emacs will have M-x insert-char > > (earlier it was called ucs-insert) default bound C-x 8 RET (yeah thats > > clunky) > > which will accept at the minibuffer input > > I tried C-x

Re: Increasing the diversity of people who write Python (was:

2017-11-27 Thread nospam . Rustom Mody
On Monday, November 27, 2017 at 8:07:47 PM UTC+5:30, Chris Angelico wrote: > On Tue, Nov 28, 2017 at 1:25 AM, Rustom Mody wrote: > > You could go one step more sophisticated and use TeX-input method > > (C-x RET C-\) > > After which \'e will collapse as ÄC > > â £Yeah

Re: Increasing the diversity of people who write Python (was:

2017-11-27 Thread nospam . Rustom Mody
On Friday, November 24, 2017 at 10:11:24 PM UTC+5:30, Skip Montanaro wrote: > > Because if I already can't understand the words, it will be more useful > > to me to be able to type them reliably at a keyboard, for replication, > > search, discussion with others about the code, etc. > > I am

Re: Benefits of unicode identifiers (was: Allow additional separator

2017-11-27 Thread nospam . Rustom Mody
On Monday, November 27, 2017 at 6:48:56 PM UTC+5:30, Rustom Mody wrote: > Having said that I should be honest to mention that I saw your post first on > my phone where the î, showed but the gØÜ« showed as a rectangle something like âî$ > > I suspect that îö OTOH would have workedâ | du

Re: Benefits of unicode identifiers (was: Allow additional separator

2017-11-27 Thread nospam . Rustom Mody
On Monday, November 27, 2017 at 3:43:20 PM UTC+5:30, Antoon Pardon wrote: > Op 23-11-17 om 19:42 schreef Mikhail V: > > Chris A wrote: > > > >>> On Fri, Nov 24, 2017 at 1:10 AM, Mikhail V wrote: > >>> > Chris A wrote: > > Fortunately for the world, you're not the one who decided

Re: connect four (game)

2017-11-27 Thread nospam . Rustom Mody
On Monday, November 27, 2017 at 12:12:24 PM UTC+5:30, Chris Angelico wrote: > On Mon, Nov 27, 2017 at 3:04 PM, Rustom Mody wrote: > >> Aviators have pinned down the best solution to this, I think. A pilot > >> is not expected to be perfect; he is expected to follow checkli

Re: connect four (game)

2017-11-27 Thread nospam . Rustom Mody
On Monday, November 27, 2017 at 9:08:42 AM UTC+5:30, Chris Angelico wrote: > On Mon, Nov 27, 2017 at 1:55 PM, Michael Torrie wrote: > > On 11/26/2017 07:11 AM, bartc wrote: > >>> You may argue that testing doesn't matter for his small game, written > >>> for his own education and amusement. The

Re: [META] Why are duplicate posts coming through?

2017-11-27 Thread nospam . Rustom Mody
On Monday, November 27, 2017 at 5:35:09 AM UTC+5:30, Skip Montanaro wrote: > Chris, > > Please forward one or two to me. Mark Sapiro and I have been banging on the > SpamBayes instance which supports the Usenet gateway. I suppose it's > possible some change caused the problem you're seeing. > >

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-27 Thread nospam . nospam . nospam . Rustom Mody
Mody) On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: > On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: > > Hi, my goal is to obtain an interpreter that internally > > uses UCS-2. Such a simple code should print 65535: > > > > import sys > > print

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-27 Thread Rustom Mody
On Monday, November 27, 2017 at 8:07:47 PM UTC+5:30, Chris Angelico wrote: > On Tue, Nov 28, 2017 at 1:25 AM, Rustom Mody wrote: > > You could go one step more sophisticated and use TeX-input method > > (C-x RET C-\) > > After which \'e will collapse as é > > “Yeah

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-27 Thread Rustom Mody
On Friday, November 24, 2017 at 10:11:24 PM UTC+5:30, Skip Montanaro wrote: > > Because if I already can't understand the words, it will be more useful > > to me to be able to type them reliably at a keyboard, for replication, > > search, discussion with others about the code, etc. > > I am

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-27 Thread Rustom Mody
On Monday, November 27, 2017 at 6:48:56 PM UTC+5:30, Rustom Mody wrote: > Having said that I should be honest to mention that I saw your post first on > my phone where the θ showed but the 횫 showed as a rectangle something like ⌧ > > I suspect that Δ OTOH would have worked… dunno

Re: connect four (game)

2017-11-27 Thread Rustom Mody
On Monday, November 27, 2017 at 12:12:24 PM UTC+5:30, Chris Angelico wrote: > On Mon, Nov 27, 2017 at 3:04 PM, Rustom Mody wrote: > >> Aviators have pinned down the best solution to this, I think. A pilot > >> is not expected to be perfect; he is expected to follow checkli

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-27 Thread Rustom Mody
On Monday, November 27, 2017 at 3:43:20 PM UTC+5:30, Antoon Pardon wrote: > Op 23-11-17 om 19:42 schreef Mikhail V: > > Chris A wrote: > > > >>> On Fri, Nov 24, 2017 at 1:10 AM, Mikhail V wrote: > >>> > Chris A wrote: > > Fortunately for the world, you're not the one who decided

Re: connect four (game)

2017-11-26 Thread Rustom Mody
On Monday, November 27, 2017 at 9:08:42 AM UTC+5:30, Chris Angelico wrote: > On Mon, Nov 27, 2017 at 1:55 PM, Michael Torrie wrote: > > On 11/26/2017 07:11 AM, bartc wrote: > >>> You may argue that testing doesn't matter for his small game, written > >>> for his own education and amusement. The

Re: [META] Why are duplicate posts coming through?

2017-11-26 Thread Rustom Mody
On Monday, November 27, 2017 at 5:35:09 AM UTC+5:30, Skip Montanaro wrote: > Chris, > > Please forward one or two to me. Mark Sapiro and I have been banging on the > SpamBayes instance which supports the Usenet gateway. I suppose it's > possible some change caused the problem you're seeing. > >

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . nospam . Rustom Mody
On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: > On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: > > Hi, my goal is to obtain an interpreter that internally > > uses UCS-2. Such a simple code should print 65535: > > > > import sys > > print sys.maxunicode > > >

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . Rustom Mody
On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: > On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: > > Hi, my goal is to obtain an interpreter that internally > > uses UCS-2. Such a simple code should print 65535: > > > > import sys > > print sys.maxunicode > > >

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-25 Thread Rustom Mody
On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: > On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: > > Hi, my goal is to obtain an interpreter that internally > > uses UCS-2. Such a simple code should print 65535: > > > > import sys > > print sys.maxunicode > > >

Re: Increasing the diversity of people who write Python (was: Benefits of unicode identifiers)

2017-11-25 Thread Rustom Mody
On Friday, November 24, 2017 at 10:52:47 PM UTC+5:30, Rick Johnson wrote: > Furthermore, if we are to march headlong onto the glorious > battlefields of diversity and equality… Obligatory viewing for those who underappreciate diversity, equality and such https://youtu.be/Zh3Yz3PiXZw [My old

Re: Pros and cons of Python sources?

2017-11-25 Thread Rustom Mody
On Saturday, November 25, 2017 at 9:45:07 PM UTC+5:30, Michael Torrie wrote: > On 11/25/2017 02:20 AM, Martin Schöön wrote: > > Some time ago I was advised that having a Python installation > > based on several sources (pip and Debian's repos in my case) > > is not a good idea. I need to tidy up

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-25 Thread Rustom Mody
On Saturday, November 25, 2017 at 6:03:52 PM UTC+5:30, Rustom Mody wrote: > On Friday, November 24, 2017 at 12:20:29 AM UTC+5:30, Mikhail V wrote: > > Ok, I personally could find some practical usage for that, but > > merely for fun. I doubt though that someone with less &g

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-25 Thread Rustom Mody
On Friday, November 24, 2017 at 12:20:29 AM UTC+5:30, Mikhail V wrote: > Ok, I personally could find some practical usage for that, but > merely for fun. I doubt though that someone with less > typographical experience and overall computer literacy could > really make benefits even for personal

Re: How to Generate dynamic HTML Report using Python

2017-11-21 Thread Rustom Mody
On Tuesday, November 21, 2017 at 7:06:18 PM UTC+5:30, Rustom Mody wrote: > On Tuesday, November 21, 2017 at 5:27:42 PM UTC+5:30, Ned Batchelder wrote: > > On 11/20/17 9:50 AM, Stefan Ram wrote: > > > Ned Batchelder writes: > > >> Also, why set headers that preven

Re: How to Generate dynamic HTML Report using Python

2017-11-21 Thread Rustom Mody
On Tuesday, November 21, 2017 at 5:27:42 PM UTC+5:30, Ned Batchelder wrote: > On 11/20/17 9:50 AM, Stefan Ram wrote: > > Ned Batchelder writes: > >> Also, why set headers that prevent the Python-List mailing list from > >> archiving your messages? > >I am posting to a Usenet newsgroup. I am

Re: Read Firefox sqlite files with Python

2017-11-06 Thread Rustom Mody
On Monday, November 6, 2017 at 8:42:29 AM UTC+5:30, Steve D'Aprano wrote: > On Mon, 6 Nov 2017 12:39 am, Paul Moore wrote: > > > On 5 November 2017 at 01:22, Steve D'Aprano wrote: > >> On Sun, 5 Nov 2017 04:32 am, Steve D'Aprano wrote: > >> > >>> I'm trying to dump a Firefox IndexDB sqlite file

Re: Thread safety issue (I think) with defaultdict

2017-11-02 Thread Rustom Mody
On Friday, November 3, 2017 at 6:28:28 AM UTC+5:30, Steve D'Aprano wrote: > On Fri, 3 Nov 2017 07:24 am, Chris Angelico wrote: > > > On Fri, Nov 3, 2017 at 3:27 AM, Israel Brewster wrote: > >> > >> Actually, that saying is about regular expressions, not threads :-) . In > >> the end, threads are

Re: Invoking return through a function?

2017-11-02 Thread Rustom Mody
On Tuesday, October 31, 2017 at 11:05:30 AM UTC+5:30, Steve D'Aprano wrote: > On Tue, 31 Oct 2017 02:26 pm, Rustom Mody wrote: > > > My own feeling about lisp-macros is conflicted: > > - They are likely the most unique feature of lisp, putting it at the top of > >

Re: Invoking return through a function?

2017-10-30 Thread Rustom Mody
On Tuesday, October 31, 2017 at 7:45:18 AM UTC+5:30, Alberto Riva wrote: > On 10/30/2017 12:23 AM, Rustom Mody wrote: > > On Sunday, October 29, 2017 at 9:52:01 PM UTC+5:30, Rick Johnson wrote: > >> On Sunday, October 29, 2017 at 9:19:03 AM UTC-5, Alberto Riva wrote: > >

Re: pythonw.exe error

2017-10-30 Thread Rustom Mody
On Monday, October 30, 2017 at 10:11:49 PM UTC+5:30, Igor Korot wrote: > Hi, > > > > On Oct 30, 2017 11:27 AM, "George Kalamaras via Python-list" wrote: > > When I am running IDLE return to me Missing python36.dll error > > Στάλθηκε από την Αλληλογραφία για Windows 10 > > > Could you please

Re: Invoking return through a function?

2017-10-29 Thread Rustom Mody
ys who hang around > here, and sometimes Rustom can get a little preachy about > FP, but mostly, we tolerate the fanboyism -- so long as it's > not rabid fanboyism. Rick's personal comments are one of the standard entertainments of this list. Enjoy! The comments on FP are more problemat

Re: Ide vs ide

2017-10-28 Thread Rustom Mody
On Saturday, October 28, 2017 at 4:46:03 PM UTC+5:30, Christian Gollwitzer wrote: > Am 28.10.17 um 09:04 schrieb Rustom Mody: > > [The other day I was writing a program to split alternate lines of a file; > > Apart from file-handling it was these two lines: > > > &g

Re: Ide vs ide

2017-10-28 Thread Rustom Mody
On Saturday, October 28, 2017 at 11:59:14 AM UTC+5:30, Andrew Z wrote: > Yeah, lets start the war! > // joking! > > But if i think about it... there are tons articles and flame wars about "a > vs b". > And yet, what if the question should be different: > > If you were to create the "ide" for

Re: Let's talk about debuggers!

2017-10-25 Thread Rustom Mody
On Wednesday, October 25, 2017 at 6:37:47 PM UTC+5:30, Thomas Jollans wrote: > Hi, > > I just wanted to know what tools everyone used for debugging Python > applications - scripts / backend / desktop apps / notebooks / whatever. > Apart from the usual dance with log files and strategically

Re: grapheme cluster library

2017-10-23 Thread Rustom Mody
On Monday, October 23, 2017 at 1:15:35 PM UTC+5:30, Steve D'Aprano wrote: > On Mon, 23 Oct 2017 05:47 pm, Rustom Mody wrote: > > > On Monday, October 23, 2017 at 8:06:03 AM UTC+5:30, Lawrence D’Oliveiro > > wrote: > [...] > >> Bear in mind that the logical represe

Re: grapheme cluster library (Posting On Python-List Prohibited)

2017-10-23 Thread Rustom Mody
On Monday, October 23, 2017 at 8:06:03 AM UTC+5:30, Lawrence D’Oliveiro wrote: > On Saturday, October 21, 2017 at 5:11:13 PM UTC+13, Rustom Mody wrote: > > Is there a recommended library for manipulating grapheme clusters? > > Is this <http://anoopkunchukuttan.github.io/indic

Re: grapheme cluster library

2017-10-21 Thread Rustom Mody
On Saturday, October 21, 2017 at 9:22:24 PM UTC+5:30, MRAB wrote: > On 2017-10-21 05:11, Rustom Mody wrote: > > Is there a recommended library for manipulating grapheme clusters? > > > > In particular, in devanagari > > क् + ि = कि > > in (pseudo)unicode

Re: grapheme cluster library

2017-10-21 Thread Rustom Mody
On Saturday, October 21, 2017 at 11:51:57 AM UTC+5:30, Chris Angelico wrote: > On Sat, Oct 21, 2017 at 3:25 PM, Stefan Ram wrote: > > Rustom Mody writes: > >>Is there a recommended library for manipulating grapheme clusters? > > > > The Python Library has a module

grapheme cluster library

2017-10-20 Thread Rustom Mody
Is there a recommended library for manipulating grapheme clusters? In particular, in devanagari क् + ि = कि in (pseudo)unicode names KA-letter + I-sign = KI-composite-letter I would like to be able to handle KI as a letter rather than two code-points. Can of course write an automaton to group

Re: [Tutor] beginning to code

2017-09-19 Thread Rustom Mody
On Tuesday, September 19, 2017 at 4:41:01 PM UTC+5:30, Antoon Pardon wrote: > Op 19-09-17 om 11:22 schreef Steven D'Aprano: > > Except for bools, where people freak out and are convinced the world will > > end if you just ask an object "are you true or false?". > > > > Perhaps just a *tiny*

Re: [Tutor] beginning to code

2017-09-18 Thread Rustom Mody
On Monday, September 18, 2017 at 6:25:09 PM UTC+5:30, Rustom Mody wrote: > On Monday, September 18, 2017 at 5:23:49 PM UTC+5:30, Rick Johnson wrote: > > On Sunday, September 17, 2017 at 8:51:38 PM UTC-5, INADA Naoki wrote: > > > > > > > > > > > >

Re: [Tutor] beginning to code

2017-09-18 Thread Rustom Mody
On Monday, September 18, 2017 at 5:23:49 PM UTC+5:30, Rick Johnson wrote: > On Sunday, September 17, 2017 at 8:51:38 PM UTC-5, INADA Naoki wrote: > > > > > > > > > > > I would agree that testing any of those for '== True' or > > > > the like is pointless redundancy, > > > > > > But what's wrong

Re: String to Dictionary conversion in python

2017-09-15 Thread Rustom Mody
On Saturday, September 16, 2017 at 2:04:39 AM UTC+5:30, jlad...@itu.edu wrote: > On Thursday, September 14, 2017 at 11:33:56 PM UTC-7, Ian wrote: > > On Fri, Sep 15, 2017 at 12:01 AM, wrote: > > > Hi, > > > > > > Can anyone help me in the below issue. > > > > > > I need to convert

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Rustom Mody
On Monday, September 11, 2017 at 1:28:24 PM UTC+5:30, Marko Rauhamaa wrote: > Gregory Ewing: > > > Chris Angelico wrote: > >> Async functions in > >> JS are an alternative to callback hell; most people consider async > >> functions in Python to be an alternative to synchronous functions. > > > >

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-09 Thread Rustom Mody
On Sunday, September 10, 2017 at 7:12:10 AM UTC+5:30, Gregory Ewing wrote: > Pavol Lisy wrote: > > Interesting reading: > > https://stackoverflow.blog/2017/09/06/incredible-growth-python/?cb=1 > > So, Python's rate of expansion is accelerating, like > the universe. Does that mean there's some

  1   2   3   4   5   6   7   8   9   10   >