Re: [Tutor] IDLE

2017-12-30 Thread Random832
On Sat, Dec 30, 2017, at 04:07, Alan Gauld via Tutor wrote: > On 29/12/17 22:21, nelson jon kane wrote: > > > ..., he had his own personal name "put in" to his Python, > > I have no idea what you mean by that. > Python is an interpreter that executes your code. > It doesn't have a "User Name" in

Re: [Tutor] using sudo pip install

2017-04-20 Thread Random832
On Thu, Apr 20, 2017, at 15:48, Mats Wichmann wrote: > On 04/20/2017 01:24 PM, bruce wrote: > > Hey guys.. > > > > Wanted to get thoughts? > > > > On an IRC chat.. someone stated emphatically... > > > > Never do a "sudo pip install --upgrade..." > > > > The claim was that it could cause issues,

Re: [Tutor] sort() method and non-ASCII

2017-02-05 Thread Random832
On Sat, Feb 4, 2017, at 22:52, boB Stepp wrote: > Does the list sort() method (and other sort methods in Python) just go > by the hex value assigned to each symbol to determine sort order in > whichever Unicode encoding chart is being implemented? By default. You need key=locale.strxfrm to make it

Re: [Tutor] comp.lang.python on gmane

2016-10-28 Thread Random832
On Thu, Oct 27, 2016, at 20:40, Jim Byrnes wrote: > Is comp.lang.python available on gmane? > > I've googled and found references to it being on gmane but I can't find > it there. I'd like to use gmane because Comcast doesn't do usenet > anymore. I don't know about the current viability of gmane

Re: [Tutor] xpath - html entities issue -- &

2016-10-04 Thread Random832
On Tue, Oct 4, 2016, at 10:02, bruce wrote: > import libxml2dom > > q1=libxml2dom > > s2= q1.parseString(a.toString().strip(), html=1) > tt=s2.xpath(tpath) > > tt=tt[0].toString().strip() > print "tit "+tt > > - > > > the content of a.toString() (shortened)

Re: [Tutor] job killed: too high numbers?

2016-09-20 Thread Random832
On Tue, Sep 20, 2016, at 11:48, Gabriele Brambilla wrote: > I have this script ... > points = 3375000 ... > for iw in range(points): > print iw > does it mean that my number of points is too high? Probably. The most likely thing to cause something to exit with a status of "Killed"

Re: [Tutor] python memory management

2016-09-03 Thread Random832
On Fri, Sep 2, 2016, at 23:25, monik...@netzero.net wrote: > > By: > "reference cycles: if one object has a reference to another, and > that second object also has a reference to the first, that's a cycle." > > Is this what you mean? > a = 5 > b = a > a = b > > I just want to make sure I under