On Sunday, July 16, 2017 at 8:10:41 PM UTC+5:30, Rick Johnson wrote:
> On Sunday, July 16, 2017 at 2:55:57 AM UTC-5, Marko Rauhamaa wrote:
> > Mikhail V :
> > > On Sat, 15 Jul 2017 05:50 pm, Marko Rauhamaa wrote:
> > > >
> > > > Random access to code points is as uninteresting as
> > > > random acc
On Monday, July 17, 2017 at 6:58:57 AM UTC+5:30, Steve D'Aprano wrote:
> On Mon, 17 Jul 2017 01:40 am, Rustom Mody wrote:
>
> > On Sunday, July 16, 2017 at 8:10:41 PM UTC+5:30, Rick Johnson wrote:
> [...]
> > $ python
> > Python 3.6.0 |Anaconda 4.3.1 (64-bit)|
On Monday, July 17, 2017 at 9:41:51 AM UTC+5:30, Rustom Mody wrote:
> On a more serious note every other post on this (as on many discussing unicode
> more broadly) is so ridiculously Euro (or Anglo) centric I would not know
> where
> to begin.
> Witness your own…
&g
On Monday, July 17, 2017 at 10:14:00 PM UTC+5:30, Rhodri James wrote:
> On 17/07/17 05:10, Rustom Mody wrote:
> > Hint1: Ask your grandmother whether unicode's notion of character makes
> > sense.
> > Ask 10 gmas from 10 language-L's
> > Hint2: When in doubt
On Wednesday, July 19, 2017 at 3:00:21 AM UTC+5:30, Marko Rauhamaa wrote:
> Chris Angelico :
>
> > Let me give you one concrete example: the letter "ö". In English, it
> > is (very occasionally) used to indicate diaeresis, where a pair of
> > letters is not a double letter - for example, "coöperat
On Thursday, July 20, 2017 at 3:21:52 AM UTC+5:30, Rick Johnson wrote:
> On Tuesday, July 18, 2017 at 10:07:41 PM UTC-5, Steve D'Aprano wrote:
> > On Wed, 19 Jul 2017 12:10 am, Rustom Mody wrote:
>
> [...]
>
> > > Einstein: If you can't explain something
On Tuesday, July 25, 2017 at 7:12:44 AM UTC+5:30, Ben Finney quoted Thomas
Jefferson's :
> The cost of education is trivial compared to the cost of ignorance.
An interesting standard of “trivial”… given…
UK has risen to more than £100 billion for the first time
https://www.theguardian.com/mon
Of late there has been an explosion of spam
Thought it was only a google-groups (USENET?) issue and would be barred from
the mailing list.
But then find its there in the mailing list archives as well
Typical example:
https://mail.python.org/pipermail/python-list/2017-July/724085.html
What gives
On Tuesday, July 25, 2017 at 12:04:45 PM UTC+5:30, Ben Finney wrote:
> Ethan Furman writes:
>
> > Something like:
> >
> > try:
> >
> > except ZeroDivisionError as dead_exc:
> > exc = dead_exc
> >
> >
> > print(text_template.format(exc=exc)
>
On Wednesday, July 26, 2017 at 12:11:27 PM UTC+5:30, dieter wrote:
> yasirrbadamasi:
>
> > I have never execute any program before using python and a task was given
> > to me by my teacher
>
> I suggest to start by reading the Python tutorial:
> "https://docs.python.org/3/tutorial/index.html";.
Isn't dunder-bool what you want?
(dunder-nonzero in python2)
Dunno if special caveats for Enums
PS sorry for phone-post -- I've broken my leg
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, July 28, 2017 at 1:45:46 PM UTC+5:30, Ben Finney wrote:
> Ethan Furman writes:
>
> > class X(Enum):
> > Falsey = 0
> > Truthy = 1
> > Fakey = 2
> > def __bool__(self):
> > return bool(self.value)
>
> I am surprised this is not already the behaviour of an Enum c
On Saturday, August 5, 2017 at 6:55:09 AM UTC+5:30, Steve D'Aprano wrote:
> On Sat, 5 Aug 2017 12:43 pm, Ode Idoko wrote:
>
> > Can anyone help with the python code that can add 101, 102, 103...2033
> > please?
>
>
> Sounds like homework. Here are some hints for you to play around with and see
On Friday, August 11, 2017 at 8:33:32 PM UTC+5:30, Ian wrote:
> The grand-daddy of them all, NPL (which actually called them "set
> comprehensions" after mathematics):
>
> setofeven(X) <= <:x: x in X & even(x) :>
Thanks for reminding of NPL; will add it to my history summary at
http://blog.langua
On Saturday, August 12, 2017 at 5:25:43 PM UTC+5:30, Peter Otten wrote:
> Rustom Mody wrote:
>
> > [ My conjecture: The word ‘comprehension’ used this way in English is
> > meaningless and is probably an infelicious translation of something which
> > makes sense in Ger
On Sunday, August 13, 2017 at 6:04:42 AM UTC+5:30, Man with No Name wrote:
> So
>
> I've an idea to make use of python's unique environment (>>>) to form a
> peer-to-peer object-sharing ecosystem.
>
> Just pie-in-the-sky brainstorming...
>
> When a programmer (or object-user) starts up the
On Monday, August 14, 2017 at 4:26:06 AM UTC+5:30, Gregory Ewing wrote:
> Steve D'Aprano wrote:
>
> > Python's comprehensions are inspired by Haskell's, but we made different
> > choices
> > than they did: we make the fact that a comprehension is a loop over values
> > explicit, rather than impli
On Monday, August 14, 2017 at 3:30:39 PM UTC+5:30, Ben Finney wrote:
> Steven D'Aprano writes:
>
> > On Sun, 13 Aug 2017 21:06:08 -0700, Rustom Mody wrote:
> >
> > > Here's a bunch of different ways in which a mapping comprehension
> > > could be im
http://www.cosc.canterbury.ac.nz/greg.ewing/python/listcomp/
Greg's 1999 announcement.
If you see the "semantics are equivalent" Steven wins.
If you focus on "like other languages" then it's... well not quite equivalent!
We can take our pick!
For myself, as I earlier said, if python disagrees
On Tuesday, August 15, 2017 at 3:57:22 AM UTC+5:30, Gregory Ewing wrote:
> Ben Finney wrote:
> > That the comprehension
> > syntax *does not* necessarily connote a procedural loop, but instead can
> > quite reasonably be interpreted as its designer intended, a single
> > conceptual operation.
>
>
On Monday, August 14, 2017 at 10:35:22 PM UTC+5:30, Terry Reedy wrote:
> On 8/14/2017 5:59 AM, Ben Finney wrote:
>
> > At what point will you accept the feedback: That the comprehension
> > syntax *does not* necessarily connote a procedural loop, but instead can
> > quite reasonably be interpreted
On Tuesday, August 15, 2017 at 5:48:43 PM UTC+5:30, Steve D'Aprano wrote:
> On Tue, 15 Aug 2017 02:54 pm, Rustom Mody wrote:
>
> > On Monday, August 14, 2017 at 10:35:22 PM UTC+5:30, Terry Reedy wrote:
> [...]
> >> Suppose stdin contains "a\nb\nc\nd\ne\nf\
On Wednesday, August 16, 2017 at 8:24:46 PM UTC+5:30, Steve D'Aprano wrote:
> Over in another thread, we've been talking about comprehensions and their
> similarities and differences from the functional map() operation.
>
> Reminder:
>
> map(chr, [65, 66, 67, 68])
>
> will return ['A', 'B', 'C']
On Thursday, August 17, 2017 at 5:51:45 PM UTC+5:30, Gregory Ewing wrote:
> Steve D'Aprano wrote:
> > If he wanted declarative semantics, why didn't he argue for declarative
> > syntax
> > like "select...where", instead of choosing procedural syntax which matches
> > the
> > actual procedural sem
On Thursday, August 17, 2017 at 6:49:19 AM UTC+5:30, Mok-Kong Shen wrote:
> Am 17.08.2017 um 02:41 schrieb Steve D'Aprano:
> > On Thu, 17 Aug 2017 08:29 am, Mok-Kong Shen wrote:
> >
> >> I have earlier learned some other (older) programming languages. For
> >> these the formal parameters are eithe
On Thursday, August 17, 2017 at 8:13:24 PM UTC+5:30, Marko Rauhamaa wrote:
> Gregory Ewing :
> > I don't agree that the word "for" necessarily implies proceduralness.
>
> Programming languages stole the word from math, where it is
> nonprocedural.
>
> Really, "for" is just a preposition. In Algol
On Friday, August 18, 2017 at 8:37:43 AM UTC+5:30, Steve D'Aprano wrote:
> On Thu, 17 Aug 2017 11:19 pm, Rustom Mody wrote:
>
> > What is called ‘call-by-object’ or ‘call-by-sharing’ etc is really an
> > acknowledgement of the fact that parameter passing in the O
There is code and there are machines
There are Turing machines and Universal Turing machines
There are programs and there are programming languages
There are (il)legal programs and best/worst (software engineering) practices
As best as I can see most of us are talking of the respective latters abo
On Saturday, August 19, 2017 at 9:45:48 AM UTC+5:30, Steve D'Aprano wrote:
> On Sat, 19 Aug 2017 12:59 am, Chris Angelico wrote:
>
> > On Fri, Aug 18, 2017 at 11:46 PM, Rustom Mody wrote:
> >> Compare the well-known haskell tutorial
> >> http://learnyoua
On Sunday, August 20, 2017 at 11:00:22 AM UTC+5:30, Paul Rubin wrote:
> Rustom Mody writes:
> > Specifically the term 'comprehension' used today as a programming construct
> > traces somewhat tenuously to an axiom that Zermelo/Fraenkel formulated
> > in the 1920s
&g
Since this erm… discussion has also brought in Haskell
and in this case, the name, the history etc are related I thought I'd mention
the following
Around 2015 there was a major upheaval in the Haskell community around the
socalled FTP (foldable-traversable-prelude) controversy.
In many respects
On Friday, August 25, 2017 at 6:55:46 AM UTC+5:30, Ben Bacarisse wrote:
> Steve D'Aprano writes:
>
> > On Fri, 25 Aug 2017 09:41 am, bob gailer wrote:
> >
> >>> Help on built-in function floor in module math:
> >>>
> >>> floor(...)
> >>> floor(x)
> >>>
> >>> Return the floor of x as an I
On Friday, August 25, 2017 at 8:28:55 AM UTC+5:30, Ian wrote:
> On Aug 24, 2017 8:51 PM, "Larry Martell" wrote:
>
> On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote:
>
> > Statement 1: Aeroplanes fly
> > Statement 2: Submarines swim
> >
> >
&
On Friday, August 25, 2017 at 8:39:25 AM UTC+5:30, Rustom Mody wrote:
> On Friday, August 25, 2017 at 8:28:55 AM UTC+5:30, Ian wrote:
> > On Aug 24, 2017 8:51 PM, "Larry Martell" wrote:
> >
> > On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote:
> &g
On Friday, August 25, 2017 at 8:52:11 AM UTC+5:30, Steve D'Aprano wrote:
> On Fri, 25 Aug 2017 12:47 pm, Larry Martell wrote:
>
> > On Thu, Aug 24, 2017 at 9:21 PM Rustom Mody wrote:
> >
> >> Statement 1: Aeroplanes fly
> >> Statement 2: Submarines swi
On Friday, August 25, 2017 at 9:06:53 AM UTC+5:30, Steve D'Aprano wrote:
> On Fri, 25 Aug 2017 01:27 pm, Rustom Mody wrote:
>
> > People should be free to dislike who they like to dislike
> > However…
> > Calling Newton an idiot is ok… if you are not a physicist
On Friday, August 25, 2017 at 9:58:15 AM UTC+5:30, Chris Angelico wrote:
> On Fri, Aug 25, 2017 at 1:23 PM, Rustom Mody wrote:
> > Early in my python classes I show this:
> >
> > $ python
> > Python 2.7.13 (default, Jan 19 2017, 14:48:08)
> > [GCC 6.3.0 2
On Friday, August 25, 2017 at 9:09:16 AM UTC+5:30, larry@gmail.com wrote:
> On Thu, Aug 24, 2017 at 11:27 PM, Rustom Mody wrote:
> > Chomsky is in the Turing bracket, I wonder where Larry falls wrt CS
>
> I have a degree in Software Engineering from Rochester Institute of
On Friday, August 25, 2017 at 10:18:07 AM UTC+5:30, Rustom Mody wrote:
> On Friday, August 25, 2017 at 9:09:16 AM UTC+5:30, larry@gmail.com wrote:
> > On Thu, Aug 24, 2017 at 11:27 PM, Rustom Mody wrote:
> > > Chomsky is in the Turing bracket, I wonder where Larry falls wrt
On Friday, August 25, 2017 at 11:23:26 PM UTC+5:30, MRAB wrote:
> On 2017-08-25 15:40, Dennis Lee Bieber wrote:
> > On Thu, 24 Aug 2017 21:47:41 -0700 (PDT), Rustom Mody declaimed the
> > following:
> >
> >
> >>This was true of Britain 100 years ago
&g
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
> >
>
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.
>
> Ski
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 f
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
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 whic
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
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 probabl
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
> > â £Ye
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
> >
>
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
1701 - 1750 of 1750 matches
Mail list logo