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 Linu
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
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 th
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 synta
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
> > > - introspect
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:
> > >
> >
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
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:
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 look
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 res
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
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
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 i
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,
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.
>
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.
>
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
> > >
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 practi
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
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
>
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.
&
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
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!
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
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
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
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:
> > >
> > >>
ormer is obsolete and increasingly 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 c
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 be
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
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
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 imp
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
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
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 c
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
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
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 li
On Wednesday, February 12, 2014 5:51:29 AM UTC+5:30, ngangsia akumbo wrote:
> Please i have a silly question to ask.
>
>
> How long did it take you to learn how to write programs?
>
>
> What is the best way i can master thinker?
>
> I know the syntax but using it to write a program is a proble
On Tuesday, February 11, 2014 10:19:53 PM UTC+5:30, Walter Hughey wrote:
>
> This "newcomer" apologizes for -- this crap came from you -.
Firstly, on the behalf of the list, Apologies for uncalled for and unhelpful
rudeness
> I suppose what you mean by "top posting" is replying to an
On Wednesday, February 12, 2014 3:37:04 PM UTC+5:30, Ben Finney wrote:
> Chris Angelico writes:
> > On Wed, Feb 12, 2014 at 7:56 PM, Ben Finney wrote:
> > > So, if I understand you right, you want to say that you've not found
> > > a computer that works with the *complete* set of real numbers. Ye
On Wednesday, February 12, 2014 7:34:42 PM UTC+5:30, Mark Lawrence wrote:
> I ask you, members of the jury, to find the accused, jmf, guilty of
> writing nonsense and deliberately using google groups to double line
> space. The evidence is directly above and quite clearly prooves, beyond
> a r
On Wednesday, February 12, 2014 7:55:32 PM UTC+5:30, Mark Lawrence wrote:
> On 12/02/2014 14:14, Rustom Mody wrote:
> > On Wednesday, February 12, 2014 7:34:42 PM UTC+5:30, Mark Lawrence wrote:
> >> I ask you, members of the jury, to find the accused, jmf, guilty of
> &g
On Thursday, February 13, 2014 2:15:28 AM UTC+5:30, Ian wrote:
> On Wed, Feb 12, 2014 at 7:11 AM, Rustom Mody wrote:
> > On Wednesday, February 12, 2014 3:37:04 PM UTC+5:30, Ben Finney wrote:
> >> Chris Angelico writes:
> >> > On Wed, Feb 12, 2014 at 7:56 PM, Ben Fi
On Wednesday, February 12, 2014 10:41:36 PM UTC+5:30, larry@gmail.com wrote:
> My personal rule is that I will give people 1 or 2 chances after they
> are asked. If they continue to top post or send double space posts, I
> simply ignore everything from them until they get with the program. If
>
On Thursday, February 13, 2014 8:52:51 PM UTC+5:30, Walter Hughey wrote:
> I am addressing this to the entire site - I thinks. And this will be my final
> answer on this subject.
> It remains to be seen if I remain on this site or tell all good bye.
> For the most part, the few people who resp
On Friday, February 14, 2014 2:57:13 AM UTC+5:30, Martin Schöön wrote:
> Den 2013-09-17 skrev rusi
> > On Wednesday, September 11, 2013 7:44:04 PM UTC+5:30,
> > mnishpsyched wrote:
> >> Hey i am a programmer but new to python. Can anyone guide
> >> me in knowing which is a better IDE used to dev
On Friday, February 14, 2014 12:14:31 PM UTC+5:30, Chris Angelico wrote:
> Oh, that's fine, he's not my cat anyway. Go ahead, build it.
Now Now! I figured you were the cat out here!
--
https://mail.python.org/mailman/listinfo/python-list
On Saturday, February 15, 2014 6:27:33 AM UTC+5:30, Chris Angelico wrote:
> On Sat, Feb 15, 2014 at 8:43 AM, Marko Rauhamaa wrote:
> > Unfortunately neither the "everything is a reference" model nor the
> > "small/big" model help you predict the value of an "is" operator in the
> > ambiguous cases
On Saturday, February 15, 2014 7:38:39 AM UTC+5:30, Chris Angelico wrote:
> On Sat, Feb 15, 2014 at 12:55 PM, Rustom Mody wrote:
> > On Saturday, February 15, 2014 6:27:33 AM UTC+5:30, Chris Angelico wrote:
> >> Can you give an example of an ambiguous case? Fundamentally, the
On Saturday, February 15, 2014 8:12:14 AM UTC+5:30, Chris Angelico wrote:
> On Sat, Feb 15, 2014 at 1:34 PM, Rustom Mody wrote:
> > At what level can you explain the following?
> >>>> x = 1234567 * 1234567
> >>>> x
> > 1524155677489L
> Well, for
On Saturday, February 15, 2014 9:03:36 AM UTC+5:30, Chris Angelico wrote:
> On Sat, Feb 15, 2014 at 2:14 PM, Rustom Mody wrote:
> > On Saturday, February 15, 2014 8:12:14 AM UTC+5:30, Chris Angelico wrote:
> >> Well, for a start, I'd use Python 3, so there's no n
On Saturday, February 15, 2014 10:50:35 AM UTC+5:30, Ian wrote:
> On Fri, Feb 14, 2014 at 9:24 PM, Rustom Mody wrote:
> > In the case of physical objects like dice there is a fairly
> > unquestionable framing that makes identity straightforward --
> > 4-dimensional space-tim
On Saturday, February 15, 2014 11:45:00 AM UTC+5:30, Steven D'Aprano wrote:
> On Fri, 14 Feb 2014 17:55:52 -0800, Rustom Mody wrote:
> > My own preference: No is operator; only id when we deliberately need to
> > poke into the implementation.
> > Of course I am in a min
On Saturday, February 15, 2014 11:49:38 AM UTC+5:30, Ben Finney wrote:
> Rustom Mody writes:
> > Then you are obliged to provide some other way of understanding
> > object-identity
> How about: Every object has an identity, which is unique among all
> concurrently-exis
On Saturday, February 15, 2014 10:32:39 PM UTC+5:30, Roy Smith wrote:
> Steven D'Aprano :
> > > Object identity is simple and well-defined in Python. I don't know why
> > > you are so resistant to this. Read the documentation.
> Marko Rauhamaa
> > It is not defined at all:
> >Every object has
On Saturday, February 15, 2014 9:59:59 PM UTC+5:30, Marko Rauhamaa wrote:
> Steven D'Aprano:
> > Object identity is simple and well-defined in Python. I don't know why
> > you are so resistant to this. Read the documentation.
> It is not defined at all:
In a certain way thats what I am saying. Bu
On Sunday, February 16, 2014 4:45:04 AM UTC+5:30, Roy Smith wrote:
> In article Cameron Simpson wrote:
> > On 15Feb2014 12:10, Rita wrote:
> > > i just inherited a large python code base and I would like to optimize the
> > > code (run faster). The application is a scientific application so I rea
On Sunday, February 16, 2014 10:15:58 AM UTC+5:30, Sam wrote:
> I would like to learn and try out functional programming (FP). I love Python
> and would like to use it to try FP. Some have advised me to use Haskell
> instead because Python is not a good language for FP. I am sort of confused
> a
On Saturday, February 15, 2014 7:14:39 PM UTC+5:30, Marko Rauhamaa wrote:
> Mark Lawrence:
> > I have no interest in understanding object identity, I can write code
> > quite happily without it.
> Luckily, what we are now debating is mostly terminology and points of
> view where the outcomes are
On Sunday, February 16, 2014 8:53:47 PM UTC+5:30, Roy Smith wrote:
> We get a lot of newbie questions on this list. People are eager to jump
> in and answer them (which is wonderful), but sometimes we get off on
> tangents about trivia and lose sight of the real question, and our
> audience.
>
On Sunday, February 16, 2014 9:59:53 PM UTC+5:30, Ned Batchelder wrote:
> On 2/16/14 9:00 AM, Rustom Mody wrote:
> > On Saturday, February 15, 2014 7:14:39 PM UTC+5:30, Marko Rauhamaa wrote:
> >> Mark Lawrence:
> >>> I have no interest in understanding object identity
On Sunday, February 16, 2014 9:44:00 PM UTC+5:30, Roy Smith wrote:
> Moi?
See thats the problem with re's -- just 3 letters and completely
incomprehensible!
It even resembles our resident unicode-troll
Oui?
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, February 17, 2014 8:58:23 AM UTC+5:30, Roy Smith wrote:
> Chris Angelico wrote:
> > > The correct statement is "all values are objects", or "all data is
> > > objects".
> > > When people mistakenly say "everything is an object", they are implicitly
> > > only thinking about data.
> >
On Monday, February 17, 2014 12:01:18 PM UTC+5:30, Steven D'Aprano wrote:
> I take it that you haven't spent much time around beginners? Perhaps you
> should spend some time on the "tutor" mailing list. If you do, you will
> see very few abstract or philosophical questions such as whether
> refe
On Friday, February 21, 2014 12:01:53 PM UTC+5:30, Jaydeep Patil wrote:
> HI,
> I have a tuple. I need to make sqaure of elements of tuple and after that i
> want add all suared tuple elements for total. When i trying to do it, below
> error came.
> Code:
> seriesxlist1 = ((0.0,), (0.01,), (0.0
On Monday, March 3, 2014 6:57:15 AM UTC+5:30, Ned Batchelder wrote:
> On 3/2/14 6:14 PM, musicdenotation wrote:
> > If Python is not a fnctional language, then which programming paradigmis
> > dominant?
> is_a_functional_language() is not a binary condition, yes or no. It's a
> continuum. Pyth
On Monday, March 3, 2014 5:50:37 PM UTC+5:30, Chris Angelico wrote:
> On Mon, Mar 3, 2014 at 10:45 PM, Rustom Mody wrote:
> > - cannot do a 'type-incorrect' expression like
> >>>> [1,2] + [[3,4],[5]]
> > [1, 2, [3, 4], [5]]
> What do you mean by &qu
On Monday, March 3, 2014 7:18:00 PM UTC+5:30, Rustom Mody wrote:
> Unfortunately modern versions give a less helpful error message
> '++' is list-append, '?' is the prompt
> ? [1,2] + [[3,4],[5]]
Whoops Wrong cut-paste!
? [1,2] ++ [[3,4],[5]]
ERR
On Monday, March 3, 2014 7:30:17 PM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 4, 2014 at 12:48 AM, Rustom Mody wrote:
> > ? [1,2] + [[3,4],[5]]
> > ERROR: Type error in application
> > *** expression : [1,2] + [[3,4],[5]]
> > *** term : [1,2]
&g
On Monday, March 3, 2014 7:53:01 PM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 4, 2014 at 1:08 AM, Rustom Mody wrote:
> >> How do you know that [1,2] is a list that must contain nothing but
> >> integers? By extension, it's also a list that must contain positive
>
On Monday, March 3, 2014 8:31:47 PM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 4, 2014 at 1:38 AM, Rustom Mody wrote:
> > If you want the (semantic) equivalent of python's [1,2,'foo']
> > you need to make an explicit union Int and String and its that
> >
On Monday, March 3, 2014 3:12:30 PM UTC+5:30, ast wrote:
> hello
> Consider following code:
> >>> A=7
> >>> B=7
> >>> A is B
> True
> I understand that there is a single object 7 somewhere in memory and
> both variables A and B point toward this object 7
> now do the same with a list:
> >>> l1
On Tuesday, March 4, 2014 8:32:01 AM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 4, 2014 at 1:45 PM, Albert van der Horst wrote:
> >>No, the Python built-in float type works with a subset of real numbers:
> > To be more precise: a subset of the rational numbers, those with a
> > denominator
> >
On Tuesday, March 4, 2014 9:16:25 AM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 4, 2014 at 2:13 PM, Rustom Mody wrote:
> >> But it's a far cry from "all real numbers". Even allowing for
> >> continued fractions adds only some more; I don't think you c
On Tuesday, March 4, 2014 11:05:24 AM UTC+5:30, Steven D'Aprano wrote:
> On Tue, 04 Mar 2014 05:37:27 +1100, Chris Angelico wrote:
> > It's not possible to
> > sub-specify a type (like the "string('a'..'x')" type in Pike that will
> > take only strings with nothing but the first 24 lower-case lett
On Tuesday, March 4, 2014 11:34:55 AM UTC+5:30, Chris Angelico wrote:
> On Tue, Mar 4, 2014 at 4:35 PM, Steven D'Aprano wrote:
> > I have not used Haskell enough to tell you whether you can specify
> > subtypes. I know that, at least for numeric (integer) types, venerable
> > old Pascal allows you
On Tuesday, March 4, 2014 8:49:22 PM UTC+5:30, Jerry Hill wrote:
> On Mon, Mar 3, 2014 at 11:52 PM, Steven D'Aprano wrote:
> > If your intention is to treat None as a singleton sentinel, not as a
> > value, then you ought to use "is" to signal that intention, rather than
> > using == even if you kn
On Wednesday, March 5, 2014 7:39:17 AM UTC+5:30, Roy Smith wrote:
> "Rhodri James" wrote:
> > wrote:
> > > Code should look like its intent. Warping it around performance is
> > > hardly ever worthwhile.
> > That depends. In Python, I'd agree with you; if I'm worrying about
> > performance in P
On Tuesday, March 4, 2014 6:17:09 PM UTC+5:30, MRAB wrote:
> On 2014-03-04 02:09, Dennis Lee Bieber wrote:
> > On Sun, 2 Mar 2014 22:16:31 -0800 (PST), Westley Martínez declaimed:
> >> I understand that in an object method the first argument in the
> >> object itself, called self. However, it does
On Wednesday, March 5, 2014 9:11:13 AM UTC+5:30, Steven D'Aprano wrote:
> On Wed, 05 Mar 2014 02:15:14 +, Albert van der Horst wrote:
> > Adding cf's adds all computable numbers in infinite precision. However
> > that is not even a drop in the ocean, as the computable numbers have
> > measure
On Wednesday, March 5, 2014 9:38:58 AM UTC+5:30, Ian wrote:
> On Tue, Mar 4, 2014 at 8:36 PM, Rustom Mody wrote:
> > * ... which summarizes my objection in this thread: Python's 'is' leaks the
> > machine abstraction. 'id' does it legitimately (somewhat),
On Wednesday, March 5, 2014 10:02:16 AM UTC+5:30, Ben Finney wrote:
> Rustom Mody writes:
> > * ... which summarizes my objection in this thread:
> Your long post references many things. Which is the "which" to which you
> refer? What is it you're referring to
On Wednesday, March 5, 2014 10:07:44 AM UTC+5:30, Ben Finney wrote:
> Roy Smith writes:
> > I stopped paying attention to mathematicians when they tried to convince
> > me that the sum of all natural numbers is -1/12.
> I stopped paying attention to a particular person when they said "I
> stoppe
On Wednesday, March 5, 2014 10:36:37 AM UTC+5:30, Steven D'Aprano wrote:
> On Tue, 04 Mar 2014 19:36:38 -0800, Rustom Mody wrote:
> > Python's 'is' leaks
> > the machine abstraction. 'id' does it legitimately (somewhat), 'is' does
> >
On Wednesday, March 5, 2014 10:36:37 AM UTC+5:30, Steven D'Aprano wrote:
> On Tue, 04 Mar 2014 19:36:38 -0800, Rustom Mody wrote:
> > Python's 'is' leaks
> > the machine abstraction. 'id' does it legitimately (somewhat), 'is' does
>
On Wednesday, March 5, 2014 11:31:04 AM UTC+5:30, alex23 wrote:
> On 5/03/2014 3:47 PM, Rustom Mody wrote:
> > That python is a hll means that machine reprs are intended to be abstracted
> > away. 'is' fails to do that -- proof of that being the discrepancy bet
On Wednesday, March 5, 2014 11:53:21 AM UTC+5:30, Marko Rauhamaa wrote:
> Rustom Mody :
> > * ... which summarizes my objection in this thread: Python's 'is'
> > leaks the machine abstraction. 'id' does it legitimately (somewhat),
> > 'is'
On Wednesday, March 5, 2014 11:50:46 AM UTC+5:30, Ben Finney wrote:
> Rustom Mody writes:
> > That python is a hll means that machine reprs are intended to be abstracted
> > away. 'is' fails to do that -- proof of that being the discrepancy between
> > is and ==
On Thursday, March 6, 2014 3:11:10 AM UTC+5:30, Luciano Trespidi wrote:
> I'm very grateful if anyone can helpme to find a good program to develop in
> python lenguage.
> Thanks
> Inviato da:
> Ernesto Luciano Trespidi
> Email: keplero1...
> Tel. 32...
Hi and welcome
Just a small warning in ad
On Sunday, March 9, 2014 8:20:49 AM UTC+5:30, Steven D'Aprano wrote:
> No version of Python has, to my knowledge, used UTF-8 internally. Some
> other languages, such as Go and Haskell, do, and consequently string
> processing is slow for them.
Haskell: Its more like: "Heres the menu, take your p
On Sunday, March 9, 2014 2:09:32 PM UTC+5:30, wxjm...@gmail.com wrote:
> Le dimanche 9 mars 2014 03:40:28 UTC+1, MRAB a écrit :
> > On 2014-03-09 02:08, Dan Stromberg wrote:
> > > OK, I know that Unicode data is stored in an encoding on disk.
> > > But how is it stored in RAM?
> > > I realize I sho
On Monday, March 10, 2014 10:19:20 AM UTC+5:30, flebber wrote:
> I was wondering if a better programmer than I could explain if the removal of
> OO features in golang really does offer an great benefit over python.
That's a strange locution: You are suggesting that go had OOP and it was removed
-
On Monday, March 10, 2014 4:27:13 PM UTC+5:30, Ned Batchelder wrote:
> You are right that you and Steven have had a hard time communicating.
> You are part of "you and Steven", it would be at least polite to
> consider that part of the reason for the difficulty has to do with your
> style. It c
On Thursday, March 13, 2014 4:37:53 AM UTC+5:30, Steven D'Aprano wrote:
> On Wed, 12 Mar 2014 15:29:59 +, Alex van der Spek wrote:
> > Having been taught programming in Algol60 Python still defeats me at
> > times! Particularly since Algol60 wasn't very long lived and what came
> > thereafter
On Thursday, March 13, 2014 5:08:22 PM UTC+5:30, Ian wrote:
> On 13/03/2014 03:09, Rustom Mody wrote:
> > Call the action-world the 'imperative' world.
> > Call the value-world the 'functional' world ('declarative' would be
> > better but 'fu
On Friday, March 14, 2014 5:11:03 AM UTC+5:30, Steven D'Aprano wrote:
> On Thu, 13 Mar 2014 14:27:48 +0200, Marko Rauhamaa wrote:
> > Roy Smith :
> >> Steven D'Aprano wrote:
> >>> Because Python doesn't have true procedures
> >> What do you mean by "true procedure"? Are you just talking about
>
On Friday, March 21, 2014 2:23:25 AM UTC+5:30, Ned Batchelder wrote:
> On 3/20/14 4:42 PM, Marko Rauhamaa wrote:
> > Ned Batchelder :
> >> Plenty of people have adopted a dual-support strategy, with one code
> >> base that supports both Python 2 and Python 3. The six module can help
> >> a great de
On Friday, March 21, 2014 8:53:49 AM UTC+5:30, wrote:
> On Thursday, March 20, 2014 11:16:50 PM UTC-4, Dave Angel wrote:
> > > Hello good people I am working on a caeser cipher program for class.
> > > However, I ran into a problem with my outputs. Up to a certain point for
> > > example:
> > > 1
On Friday, March 21, 2014 11:38:42 AM UTC+5:30, Marko Rauhamaa wrote:
> Chris Angelico :
> > Then you're probably not using "sys.stdout.write" but some other file
> > object's write method.
> Correct, sys.stderr.write would have been a more accurate choice.
> > Also, I find it highly unusual tha
801 - 900 of 1750 matches
Mail list logo