Re: Automation

2013-11-19 Thread Alister
On Tue, 19 Nov 2013 23:52:09 +1100, Chris Angelico wrote: > On Tue, Nov 19, 2013 at 11:36 PM, Alister > wrote: >> the language & nationality is Scottish, the people are Scots & Scotch >> is a type of whisky. > > Hmm, I don't know that it's that c

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: > On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano > wrote: >> 2 does count because it isn't divisible by 3. The question states, >> "[count] how many positive integers less than N are not divisible > by 2,3 >> or 5". Two is not divisible by 3, so

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: > On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano > wrote: >> 2 does count because it isn't divisible by 3. The question states, >> "[count] how many positive integers less than N are not divisible > by 2,3 >> or 5". Two is not divisible by 3, so

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > On 20/11/2013 09:29, Alister wrote: >> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >> >>> On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano >>> wrote: >>>> 2 does count be

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > On 20/11/2013 09:29, Alister wrote: >> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >> >>> On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano >>> wrote: >>>> 2 does count be

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > On 20/11/2013 09:29, Alister wrote: >> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >> >>> On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano >>> wrote: >>>> 2 does count be

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > On 20/11/2013 09:29, Alister wrote: >> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >> >>> On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano >>> wrote: >>>> 2 does count be

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 14:49:59 +, Alister wrote: > On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > >> On 20/11/2013 09:29, Alister wrote: >>> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >>> >>>> On 20 Nov 2013 03:52:10 GMT, Steve

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 15:06:44 +, Alister wrote: > On Wed, 20 Nov 2013 14:49:59 +0000, Alister wrote: > >> On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: >> >>> On 20/11/2013 09:29, Alister wrote: >>>> On Wed, 20 Nov 2013 00:54:28 -0500, Dave

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 14:49:59 +, Alister wrote: > On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > >> On 20/11/2013 09:29, Alister wrote: >>> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >>> >>>> On 20 Nov 2013 03:52:10 GMT, Steve

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: > On Thu, Nov 21, 2013 at 2:09 AM, Alister > wrote: >> must be a strange quirk of pan & turned off hide to system tray & allow >> multiple instances. > > Hmm. Hard to know, but I can imagine that having mu

Multiple postings

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 15:35:14 +, Alister wrote: > On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: > >> On Thu, Nov 21, 2013 at 2:09 AM, Alister >> wrote: >>> must be a strange quirk of pan & turned off hide to system tray & >>> allow

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: > On Thu, Nov 21, 2013 at 2:09 AM, Alister > wrote: >> must be a strange quirk of pan & turned off hide to system tray & allow >> multiple instances. > > Hmm. Hard to know, but I can imagine that having mu

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: > On Thu, Nov 21, 2013 at 2:09 AM, Alister > wrote: >> must be a strange quirk of pan & turned off hide to system tray & allow >> multiple instances. > > Hmm. Hard to know, but I can imagine that having mu

Re: Total Python Newbie needs geting started info.

2013-11-20 Thread Alister
On Thu, 21 Nov 2013 03:14:44 +1100, Chris Angelico wrote: > On Thu, Nov 21, 2013 at 3:03 AM, Ev J wrote: >> Before I go too far down this road, I need to know if I can/should use >> this environment to develop GUI applications. Is there graphical >> support for this - for example I can I just in

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 16:29:54 +, Mark Lawrence wrote: > On 20/11/2013 15:34, Alister wrote: >> On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: >> >>> On Thu, Nov 21, 2013 at 2:09 AM, Alister >>> wrote: >>>> must be a strange quirk of pan

Re: Python application for rpm creation

2013-11-25 Thread Alister
On Mon, 25 Nov 2013 19:47:44 +0530, Unix SA wrote: > Hello guys, > > Probably not right forum but I thought I should get some suggestions. > > I am looking for some tool written in python which can help users to > create rpm spec files and later help to build rpms, this will be for > users who a

Re: parsing nested unbounded XML fields with ElementTree

2013-11-26 Thread Alister
On Mon, 25 Nov 2013 18:25:55 -0500, Larry Martell wrote: > On Mon, Nov 25, 2013 at 6:19 PM, Chris Angelico > wrote: > >> On Tue, Nov 26, 2013 at 9:45 AM, Larry Martell >> >> wrote: >> > On Monday, November 25, 2013 5:30:44 PM UTC-5, Chris Angelico wrote: >> > >> >> First off, please clarify: Ar

Re: parsing nested unbounded XML fields with ElementTree

2013-11-26 Thread alister
On 26/11/13 11:59, Larry Martell wrote: On Tue, Nov 26, 2013 at 5:41 AM, Alister wrote: On Mon, 25 Nov 2013 18:25:55 -0500, Larry Martell wrote: On Mon, Nov 25, 2013 at 6:19 PM, Chris Angelico wrote: On Tue, Nov 26, 2013 at 9:45 AM, Larry Martell wrote: On Monday, November 25, 2013 5:30

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-26 Thread Alister
On Wed, 27 Nov 2013 01:52:11 +1100, Chris Angelico wrote: > On Wed, Nov 27, 2013 at 1:37 AM, Roy Smith wrote: >> We live in an international world (otherwise we wouldn't need that >> annoying unicode stuff). When you say, "effort to be understandable", >> what you're really saying is, "everybody

Re: Managing Google Groups headaches

2013-11-28 Thread Alister
On Fri, 29 Nov 2013 02:08:17 +1100, Chris Angelico wrote: > On Fri, Nov 29, 2013 at 2:04 AM, rusi wrote: >> Its really quite unclear to me why GG is a problem if all the problems >> of GG are obviated. > > Which is easier, fiddling around with your setup so you can post > reasonably on Google Gr

Re: Managing Google Groups headaches

2013-11-28 Thread Alister
On Fri, 29 Nov 2013 02:08:17 +1100, Chris Angelico wrote: > On Fri, Nov 29, 2013 at 2:04 AM, rusi wrote: >> Its really quite unclear to me why GG is a problem if all the problems >> of GG are obviated. > > Which is easier, fiddling around with your setup so you can post > reasonably on Google Gr

Re: Managing Google Groups headaches

2013-11-28 Thread Alister
On Fri, 29 Nov 2013 02:08:17 +1100, Chris Angelico wrote: > On Fri, Nov 29, 2013 at 2:04 AM, rusi wrote: >> Its really quite unclear to me why GG is a problem if all the problems >> of GG are obviated. > > Which is easier, fiddling around with your setup so you can post > reasonably on Google Gr

Re: Managing Google Groups headaches

2013-11-28 Thread Alister
On Fri, 29 Nov 2013 02:08:17 +1100, Chris Angelico wrote: > On Fri, Nov 29, 2013 at 2:04 AM, rusi wrote: >> Its really quite unclear to me why GG is a problem if all the problems >> of GG are obviated. > > Which is easier, fiddling around with your setup so you can post > reasonably on Google Gr

Re: Managing Google Groups headaches

2013-11-28 Thread Alister
On Thu, 28 Nov 2013 08:22:27 -0800, rusi wrote: > On Thursday, November 28, 2013 9:20:39 PM UTC+5:30, Alister wrote: >> On Fri, 29 Nov 2013 02:08:17 +1100, Chris Angelico wrote: > >> > On Fri, Nov 29, 2013 at 2:04 AM, rusi wrote: >> >> Its really quite unclear

Re: [newbie] trying socket as a replacement for nc

2013-12-12 Thread Alister
On Thu, 12 Dec 2013 01:21:27 -0800, Jean Dubois wrote: > On Thursday, December 12, 2013 9:21:32 AM UTC+1, Chris Angelico wrote: >> On Thu, Dec 12, 2013 at 7:08 PM, Jean Dubois >> wrote: >> >> > Thanks for the reply, I changed the line you mentioned to >> >> > s.send('*IDN?\n') >> >> >> >> Se

Re: [newbie] trying socket as a replacement for nc

2013-12-12 Thread Alister
On Thu, 12 Dec 2013 01:21:27 -0800, Jean Dubois wrote: > On Thursday, December 12, 2013 9:21:32 AM UTC+1, Chris Angelico wrote: >> On Thu, Dec 12, 2013 at 7:08 PM, Jean Dubois >> wrote: >> >> > Thanks for the reply, I changed the line you mentioned to >> >> > s.send('*IDN?\n') >> >> >> >> Se

Re: Editor for Python

2014-01-08 Thread Alister
On Wed, 08 Jan 2014 16:13:09 +0100, Jean-Michel Pichavant wrote: > - Original Message - > >> I've been pleased with Komodo, and certainly prefer it over Notepad++. > >> Komodo: >> http://www.activestate.com/komodo-ide?gclid=COHE4eLj7rsCFQISMwodOUQAiw > > Komodo is an IDE and costs 385$.

Re: Learning python networking

2014-01-09 Thread Alister
On Wed, 08 Jan 2014 19:49:40 -0800, Dan Stromberg wrote: > > The third quote, from Brian Kernighan, seems to underestimate the > complexity of asynchronous programming in the large - it's probably not > just twice as hard. Perhaps it should be rephrased as "at least twice as hard" It really doe

Re: Time zones and why they change so damned often

2014-01-09 Thread Alister
On Thu, 09 Jan 2014 07:17:25 +, Mark Lawrence wrote: > On 09/01/2014 04:14, Chris Angelico wrote: >> On Thu, Jan 9, 2014 at 2:54 PM, Ben Finney >> wrote: >>> I'm approaching it with the goal of knowing better what I'm talking >>> about when I advocate scrapping the whole DST system :-) >> >>

Re: Constructive Criticism

2014-01-10 Thread Alister
On Thu, 09 Jan 2014 13:05:23 -0800, jeremiah valerio wrote: > On Thursday, January 9, 2014 2:54:44 PM UTC-6, Christopher Welborn > wrote: >> On 01/08/2014 11:56 PM, jeremiahvalerio...@gmail.com wrote: >> >> > Hi, hows it going I've been self teaching myself python, and i typed >> > up this small

Re: Time zones and why they change so damned often

2014-01-10 Thread Alister
On Fri, 10 Jan 2014 07:31:11 +, Bob Martin wrote: > in 714232 20140109 120741 Alister wrote: >>On Thu, 09 Jan 2014 07:17:25 +, Mark Lawrence wrote: >> >>> On 09/01/2014 04:14, Chris Angelico wrote: >>>> On Thu, Jan 9, 2014 at 2:54 PM, Ben Finney >&g

Re: Time zones and why they change so damned often

2014-01-11 Thread Alister
On Sat, 11 Jan 2014 07:52:36 +, Bob Martin wrote: we dont have "Daylight saving time" we switch between GMT (Greenwich Mean Time) and BST (British Summer Time) at some point in the past we have also used DST (Double Summer Time). >>> >>> British Summer Time *is* Daylight Saving Time

Re: Time zones and why they change so damned often

2014-01-11 Thread Alister
On Sat, 11 Jan 2014 11:10:41 +, Alister wrote: > On Sat, 11 Jan 2014 07:52:36 +, Bob Martin wrote: >>>>>we dont have "Daylight saving time" we switch between GMT (Greenwich >>>>>Mean Time) and BST (British Summer Time) at some point in the pas

Re: Time zones and why they change so damned often

2014-01-11 Thread Alister
On Sat, 11 Jan 2014 11:10:41 +, Alister wrote: > On Sat, 11 Jan 2014 07:52:36 +, Bob Martin wrote: >>>>>we dont have "Daylight saving time" we switch between GMT (Greenwich >>>>>Mean Time) and BST (British Summer Time) at some point in the pas

Re: What's correct Python syntax?

2014-01-14 Thread Alister
On Tue, 14 Jan 2014 00:46:56 -0800, Igor Korot wrote: > Hi, ALL, > I'm trying to process a file which has following lines: > > 192.168.1.6 > 192.168.1.7: ICMP echo request, id 100, seq 200, length 30 > > (this is the text file out of tcpdump) > > Now I can esily split the line twice: once by ':

Re: Compiling main script into .pyc

2014-01-17 Thread Alister
On Thu, 16 Jan 2014 17:01:51 -0800, Sam wrote: > One thing I observe about python byte-code compiling is that the main > script does not gets compiled into .pyc. Only imported modules are > compiled into .pyc. > > May I know how can I compile the main script into .pyc? It is to > inconvenience po

Re: [newbie] advice and comment wanted on first tkinter program

2014-01-20 Thread Alister
On Sun, 19 Jan 2014 20:04:05 -0800, Jean Dupont wrote: > Op zaterdag 18 januari 2014 16:12:41 UTC+1 schreef Oscar Benjamin: >> On 18 January 2014 14:52, Jean Dupont wrote: >> > >> > Thanks Peter and Terry Jan for the useful suggestions. One thing >> > which I >> >find a bit weird: when asking for

Re: Can post a code but afraid of plagiarism

2014-01-20 Thread Alister
On Sun, 19 Jan 2014 23:55:59 -0800, indar kumar wrote: > Thanks all for help and positive comments. Actually, I tried to ask some > questions but I was discouraged to do so saying that I was working on a > project or some assignment. Truth be told I am stuck at one point and > since I don't have e

Re: [newbie] advice and comment wanted on first tkinter program

2014-01-22 Thread Alister
On Wed, 22 Jan 2014 06:45:53 -0800, Jean Dupont wrote: > Op maandag 20 januari 2014 10:17:15 UTC+1 schreef Alister: >> On Sun, 19 Jan 2014 20:04:05 -0800, Jean Dupont wrote: >> >> > Op zaterdag 18 januari 2014 16:12:41 UTC+1 schreef Oscar Benjamin: >> >> O

Re: buggy python interpretter or am I missing something here?

2014-01-27 Thread Alister
O > My python stuff is all rapid application development for personal > projects. If I need to do anything serious I take the time to do it in > C+ > +. Many people "Prototype" in python & then re-factor into a compiled language later if needed (often it turns out there is not really any need

Re: Calculator Problem

2014-02-02 Thread Alister
On Sun, 02 Feb 2014 13:16:44 -0800, Charlie Winn wrote: > Hey Guys i Need Help , When i run this program i get the 'None' Under > the program, see what i mean by just running it , can someone help me > fix this > > def Addition(): > print('Addition: What are two your numbers?') > 1 = floa

Re: Consistent error

2016-01-03 Thread Alister
On 03/01/16 16:55, cc.fezer...@gmail.com wrote: On Sunday, January 3, 2016 at 5:14:33 PM UTC+1, Chris Angelico wrote: On Mon, Jan 4, 2016 at 2:59 AM, wrote: Thanks Chris! Don't worry about the indent, will fix it I've rewritten it to this- def get_algorithm_result( numlist ): largest =

Re: can't decompress data; zlib not available

2016-01-11 Thread Alister
On 11/01/16 13:24, loial wrote: I am migrating a python script from Red hat linux REL 6.6 to AIX 7.1 I am using python 2.7.10 On AIX I the ror zipimport.ZipImportError: can't decompress data; zlib not available Any ideas how to get this to work on AIX? install the zlib library's (these ar

Re: Turtle

2016-01-15 Thread Alister
On 14/01/16 22:22, Stallone Carl wrote: Dear sir/madam I am currently using python 3.5.0 and I have been trying to write a program using turtle but is not seem to be working. I have followed all tutarial on the web and when i compare it with my code my am duing everything the same way but it stil

Re: Stop writing Python 4 incompatible code

2016-01-15 Thread Alister
On 15/01/16 18:09, Bernardo Sulzbach wrote: On Fri, Jan 15, 2016 at 3:02 PM, William Ray Wing wrote: What Micro$oft was actually sued for was worse. They would approach a small company: “We like your product/technology, we think we are interested in buying you out, but we want to see your c

Re: Using 'Or'

2016-01-16 Thread Alister
On 15/01/16 20:24, Kitten Corner wrote: Hi, I have python version 3.5.1 and I am working on a project, I'm trying to make it by using the 'or' sequence, I'm trying to make it do 1 thing or the other, here's an example: print('i like pie' or 'i like donuts'), it only does the thing that's before t

Re: Stop writing Python 4 incompatible code

2016-01-16 Thread Alister
On 15/01/16 18:55, Bernardo Sulzbach wrote: On Fri, Jan 15, 2016 at 4:46 PM, Alister wrote: Doublespace disk compression springs to mind Does not ring a bell, I was not even born for MS-DOS 6.0. it was exactly the scenario described A company had developed a means of impo=roving the

Re: Deploy Python script on Apache using mod_wsgi

2016-01-16 Thread Alister
On 15/01/16 22:33, gupta.ashish65...@gmail.com wrote: I am trying to deploy a python script on Apache using mod_wsgi. How to write the wsgi file for mod_wsgi ? I have asked my question here on http://stackoverflow.com/q/33314787/2350219 a Google search for python wsgi brings up many tutorials

Re: Using 'Or'

2016-01-16 Thread Alister
On 16/01/16 21:53, Steven D'Aprano wrote: On Sun, 17 Jan 2016 01:06 am, Alister wrote: Conditional operators (or and not == etc.) need to be used in a test Technically, that is incorrect. yes but the op is confused in his usage enough at present how else would you expect you

Re: I m facing some problem while opening the interpreter. how can I resolve the issue?

2016-02-16 Thread Alister
On Wed, 17 Feb 2016 01:25:52 +0530, Chinmaya Choudhury wrote: > Please guide me. > #Chinmay > > Sent from Mail for Windows 10 open it correctly -- The temperature of the aqueous content of an unremittingly ogled culinary vessel will not achieve 100 degrees on the Celsius scale. -- https:/

Re: merging number of csv files

2016-03-03 Thread alister
On Thu, 03 Mar 2016 01:46:38 -0800, m.t.egle wrote: > Hey! > > I have been goggling around for the last few days and tried out many > python codes. that is where you are going wrong. you need to understand the concepts of what you are trying to do and an understanding of how the language works.

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-03-03 Thread alister
On Thu, 03 Mar 2016 13:35:12 +1100, Chris Angelico wrote: > On Thu, Mar 3, 2016 at 1:27 PM, Steven D'Aprano > wrote: >> We can be absolutely certain that Kenneth weighs less than the entire >> universe. We don't even need a set of scales. > > Formal proof: > > 1) No physical object can have neg

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-03-03 Thread alister
On Thu, 03 Mar 2016 11:03:55 -0700, Ian Kelly wrote: > On Thu, Mar 3, 2016 at 10:21 AM, alister > wrote: >> On Thu, 03 Mar 2016 13:35:12 +1100, Chris Angelico wrote: >>> 1) No physical object can have negative mass. >>> 2) I am a part of the universe and have

Re: Continuing indentation

2016-03-04 Thread alister
On Fri, 04 Mar 2016 10:23:37 +0900, INADA Naoki wrote: >> >> Indeed. I don't understand why, when splitting a condition such as >> this, >> people tend to put the operator at the end of each line. >> >> > Because PEP8 says: > >> The preferred place to break around a binary operator is after the

Re: Continuing indentation

2016-03-04 Thread alister
On Fri, 04 Mar 2016 10:12:58 +, cl wrote: > Steven D'Aprano wrote: >> On Fri, 4 Mar 2016 12:23 pm, INADA Naoki wrote: >> >> >> >> >> >> Indeed. I don't understand why, when splitting a condition such as >> >> this, >> >> people tend to put the operator at the end of each line. >> >> >> >> >

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-03-04 Thread alister
On Thu, 03 Mar 2016 18:02:04 -0500, William Ray Wing wrote: >> On Mar 3, 2016, at 3:20 PM, alister wrote: >> >> On Thu, 03 Mar 2016 11:03:55 -0700, Ian Kelly wrote: >> >>> On Thu, Mar 3, 2016 at 10:21 AM, alister >>> wrote: >>>> On

Re: Perl to Python again

2016-03-12 Thread alister
On Fri, 11 Mar 2016 19:15:48 -0500, Fillmore wrote: > On 3/11/2016 7:12 PM, Martin A. Brown wrote: >> >> Aside from your csv question today, many of your questions could be >> answered by reading through the manual documenting the standard >> datatypes (note, I am assuming you are using Python 3).

Re: issue with CVS module

2016-03-12 Thread alister
On Fri, 11 Mar 2016 16:26:02 -0500, Fillmore wrote: > On 3/11/2016 4:15 PM, Mark Lawrence wrote: >> >> https://docs.python.org/3/library/csv.html#csv.Dialect.doublequote >> >> > thanks, but my TSV is not using any particular dialect as far as I > understand... > > Thank you, anyway Every variati

Re: Hello

2016-03-12 Thread alister
On Fri, 11 Mar 2016 17:53:45 -0500, Larry Martell wrote: > On Fri, Mar 11, 2016 at 4:49 AM, Steven D'Aprano > wrote: > >> On Fri, 11 Mar 2016 02:28 pm, rubengoods...@yahoo.com wrote: >> >> > I am having trouble installing the Python software. >> >> Make sure your computer is turned on. I can't t

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-12 Thread alister
On Fri, 11 Mar 2016 22:24:45 +, BartC wrote: > On 11/03/2016 21:59, Mark Lawrence wrote: >> On 11/03/2016 18:57, BartC wrote: > >> def test(): >> s="" >> for i in range(1000): >> s+="*" >> print (len(s)) >> >> test() > >> The minor snag that you might like to corr

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-12 Thread alister
On Sat, 12 Mar 2016 11:08:25 +, BartC wrote: > > >> You're not mistaken. There are no "character constants" in Python. > >> (Note that the definition would be Unicode codepoints, rather than > >> ASCII values.) I don't often miss them, though. > >> Yes, a complete non-issue. > > Really?

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-12 Thread alister
On Sat, 12 Mar 2016 10:31:39 +, BartC wrote: > On 12/03/2016 10:06, alister wrote: >> On Fri, 11 Mar 2016 22:24:45 +, BartC wrote: >> >>> On 11/03/2016 21:59, Mark Lawrence wrote: >>>> On 11/03/2016 18:57, BartC wrote: >>> >>>&

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-12 Thread alister
On Sat, 12 Mar 2016 16:42:47 +, BartC wrote: > On 12/03/2016 15:30, Chris Angelico wrote: >> On Sun, Mar 13, 2016 at 2:12 AM, BartC wrote: > >>> However, I was going to revise my benchmark to use strings instead of >>> integers, to show how much slower they would be. But the program was >>>

Re: Simple exercise

2016-03-14 Thread alister
On Mon, 14 Mar 2016 07:07:45 -0700, Rick Johnson wrote: > On Thursday, March 10, 2016 at 7:22:26 PM UTC-6, Mark Lawrence wrote: >> Always a code smell when range() and len() are combined. > > I would be careful about dealing in absolutes Mark. a code smell does not necesarily mean the code is wr

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-14 Thread alister
On Mon, 14 Mar 2016 14:43:22 +, BartC wrote: > On 13/03/2016 09:39, Steven D'Aprano wrote: >> On Sun, 13 Mar 2016 04:54 am, BartC wrote: > >>> Common sense tells you it is unlikely. >> >> Perhaps your common sense is different from other people's common >> sense. To me, and many other Python

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-15 Thread alister
On Mon, 14 Mar 2016 20:31:06 +, BartC wrote: > On 14/03/2016 19:45, alister wrote: >> On Mon, 14 Mar 2016 14:43:22 +, BartC wrote: >> >>> On 13/03/2016 09:39, Steven D'Aprano wrote: >>>> On Sun, 13 Mar 2016 04:54 am, BartC wrote: >&g

Re: empty clause of for loops

2016-03-19 Thread alister
On Wed, 16 Mar 2016 11:47:31 +0100, Peter Otten wrote: > Sven R. Kunze wrote: > >> Hi, >> >> a colleague of mine (I write this mail because I am on the list) has >> the following issue: >> >> >> for x in my_iterable: >> # do >> empty: >> # do something else >> >> >> What's the most

Re: How to waste computer memory?

2016-03-19 Thread alister
On Thu, 17 Mar 2016 21:37:02 +, alister wrote: > On Fri, 18 Mar 2016 07:42:30 +1100, Chris Angelico wrote: > >> On Fri, Mar 18, 2016 at 7:31 AM, wrote: >>> Rick Johnson wrote: >>>> >>>> In the event that i change my mind about Unicode, and/or

Re: How to waste computer memory?

2016-03-19 Thread alister
On Fri, 18 Mar 2016 07:42:30 +1100, Chris Angelico wrote: > On Fri, Mar 18, 2016 at 7:31 AM, wrote: >> Rick Johnson wrote: >>> >>> In the event that i change my mind about Unicode, and/or for the sake >>> of others, who may want to know, please provide a list of languages >>> that *YOU* think h

Re: empty clause of for loops

2016-03-19 Thread alister
On Wed, 16 Mar 2016 13:45:53 +, Mark Lawrence wrote: > On 16/03/2016 13:25, alister wrote: >> On Wed, 16 Mar 2016 11:47:31 +0100, Peter Otten wrote: >> >>> Sven R. Kunze wrote: >>> >>>> Hi, >>>> >>>> a colleague of mine (I w

Re: Python

2016-03-24 Thread alister
On Thu, 24 Mar 2016 12:21:29 -0400, Niyoo *Unkown* wrote: > The reason I uninstalled Python was because it was 32 bit not 64 bit and > I couldn't find the 64 bit version. that's nice -- That which is not good for the swarm, neither is it good for the bee. -- https://mail.python.org/mailman/l

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-24 Thread alister
On Thu, 24 Mar 2016 14:04:53 +, BartC wrote: > On 24/03/2016 13:50, Steven D'Aprano wrote: >> On Thu, 24 Mar 2016 02:24 pm, Chris Angelico wrote: >> >> >>> This is how you're currently evaluating Python. Instead of starting >>> with the most simple and obvious code >> >> One problem is that wh

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-24 Thread alister
On Thu, 24 Mar 2016 14:28:32 +, BartC wrote: > On 24/03/2016 14:01, Chris Angelico wrote: > >> I don't, until it's pointed out. At that point, someone who respects >> the language will at least pay *some* heed to the changed >> recommendations; what we're seeing here is that he continues to u

Re: Web Scraping

2016-03-25 Thread alister
On Thu, 24 Mar 2016 18:17:43 -0700, 121sukha wrote: > I am new to python and I want to use web scraping to download songs from > website. > how do I write code to check if the website has uploaded a new song and > have that song automatically be downloaded onto my computer. I know how > to use the

Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread alister
On Thu, 24 Mar 2016 23:46:14 +, Mark Lawrence wrote: > On 24/03/2016 23:33, Ian Kelly wrote: >> On Thu, Mar 24, 2016 at 4:58 PM, Mark Lawrence >> wrote: >>> No. While this idiot, BartC, is let loose on this forum, I'll say >>> what I like. >> >> Good to know. I've been on the fence about thi

Re: (test) ? a:b

2014-10-22 Thread alister
On Thu, 23 Oct 2014 03:28:48 +1100, Steven D'Aprano wrote: >> Why on earth would you recommend this outdated hack, when there's a >> true conditional operator? >> >> j = 3 if j >= 10 else j+1 > > I think that's a bit harsh. Especially since this appears to have been > Buscacio's first post

Re: (test) ? a:b

2014-10-24 Thread alister
On Fri, 24 Oct 2014 10:20:30 -0700, Dan Stromberg wrote: > On Fri, Oct 24, 2014 at 1:38 AM, Steven D'Aprano > wrote: >> I don't get why that's considered hard to read. > >> So why is it hard to read when the index is a flag? >> >> value = [f, g][cond]() > > It's clear to you, it's clear to me,

Re: I am out of trial and error again Lists

2014-10-24 Thread alister
On Fri, 24 Oct 2014 16:58:00 -0400, Seymore4Head wrote: > On Fri, 24 Oct 2014 20:37:31 + (UTC), Denis McMahon > wrote: > >>On Fri, 24 Oct 2014 10:38:31 -0400, Seymore4Head wrote: >> >>> I tried list(range(10) >> >>This is missing a ")" >> >>It probably sat there waiting for you to finish the

Re: (test) ? a:b

2014-10-25 Thread alister
On Sat, 25 Oct 2014 16:03:16 +1100, Steven D'Aprano wrote: > [Alister] >> I had to mentally step through this before it became apparent what it >> was doing, can see places where it could be usefull (a switch >> replacement) but it is not instantly obvious > &g

Re: Classes and the command line

2014-10-27 Thread alister
On Sun, 26 Oct 2014 23:32:08 -0400, Seymore4Head wrote: > On Mon, 27 Oct 2014 14:06:11 +1100, Ben Finney > wrote: > >>Seymore4Head writes: >> >>> I am trying to learn classes. >>> I am currently using Python 2.7 at the command line. >> >>(I think you mean “the interactive Python interpreter”, o

Re: Anyone know the solution

2014-10-27 Thread alister
On Mon, 27 Oct 2014 08:10:04 -0700, emmanueloje wrote: > Write a program that reads the contents of the two files into two > separate lists. The user should be able to enter a boy's name, a girl's > name or both, and the application will display messages indicating >

Re: Classes

2014-10-31 Thread alister
On Thu, 30 Oct 2014 17:34:57 -0400, Seymore4Head wrote: > On Thu, 30 Oct 2014 14:28:19 -0700, Larry Hudson > wrote: > >>On 10/30/2014 01:16 PM, Seymore4Head wrote: >>> class pet: >>> def set_age(self,age): >>> self.age=age >>> def get_age(self): >>> return self.age >>

Re: what can i do to improve my skill after finished python course on codecademy

2014-11-01 Thread alister
On Sat, 01 Nov 2014 08:01:12 -0700, fanhuhuai wrote: > i will finish the python course on codecademy soon,i dont konw how to > improve my skill and what can i do to use it ,some projects ? should i > learn others course ? find a task you need a solution too. are there any regular admin task you p

Re: A syntax question

2014-11-10 Thread alister
On Mon, 10 Nov 2014 12:07:58 +0100, Mok-Kong Shen wrote: > I don't understand the following phenomenon. Could someone kindly > explain it? Thanks in advance. > > M. K. Shen > > - > > count=5 > > def test(): >print(count) >if count==5: >

Re: Python script that does batch find and replace in txt files

2014-11-10 Thread alister
On Sun, 09 Nov 2014 17:49:29 -0800, Syed Khalid wrote: > Albert, > > Code is not removing empty lines containing blank characters and not > removing leading and trailing spaces present in each line. > > > > > import glob, codecs, re, os > > regex = re.compile(r"Age: |Sex: |House No: ") # e

Re: A syntax question

2014-11-10 Thread alister
On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote: > On 2014-11-10, David Palao wrote: > >>> My crystal ball is currently in for repair and is not expected back in >>> the foreseeable future. >> >> Without a crystal ball, this prediction might be not well founded. > > That isn't a predict

Re: A syntax question

2014-11-10 Thread alister
On Mon, 10 Nov 2014 14:54:55 +, alister wrote: > On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote: > >> On 2014-11-10, David Palao wrote: >> >>>> My crystal ball is currently in for repair and is not expected back >>>> in the foreseeable fu

Re: I don't read docs and don't know how to use Google. What does the print function do?

2014-11-11 Thread alister
On Mon, 10 Nov 2014 21:36:54 +, Denis McMahon wrote: > On Mon, 10 Nov 2014 10:56:18 -0800, sohcahtoa82 wrote: > >> ... I know software engineers make lots of money so I want to be one. > > I hear that pretty boy male escorts can make even more money than > software engineers. > > They also

Re: A syntax question

2014-11-11 Thread alister
On Mon, 10 Nov 2014 19:53:56 -0500, Dennis Lee Bieber wrote: > On Mon, 10 Nov 2014 14:56:11 GMT, alister > declaimed the following: > >>On Mon, 10 Nov 2014 14:54:55 +, alister wrote: >> >>> On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote: >>>

Re: html page mail link to webmail program

2014-11-12 Thread alister
On Tue, 11 Nov 2014 17:35:11 -0800, Ethan Furman wrote: > On 11/11/2014 05:08 PM, Ben Finney wrote: >> Ethan Furman writes: >> >>> My wife (using a Win7 machine) will be on a web page that has a link >>> to mail somebody. She clicks on it, and it opens the currently >>> installed but unused Thun

Re: html page mail link to webmail program

2014-11-12 Thread alister
On Wed, 12 Nov 2014 08:56:07 +, alister wrote: > On Tue, 11 Nov 2014 17:35:11 -0800, Ethan Furman wrote: > >> On 11/11/2014 05:08 PM, Ben Finney wrote: >>> Ethan Furman writes: >>> >>>> My wife (using a Win7 machine) will be on a web page that has

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-17 Thread alister
On Mon, 17 Nov 2014 08:56:43 +1100, Chris Angelico wrote: > On Mon, Nov 17, 2014 at 4:21 AM, Roy Smith wrote: >> In article , >> Chris Angelico wrote: >> >>> UDP for anything more than your network's MTU is inefficient >> >> Why do you say it's inefficient? Sure, the UDP datagram will get >> f

Re: Python IDE.

2014-11-20 Thread alister
On Thu, 20 Nov 2014 11:19:23 -0800, dvenkatj2eedev wrote: > On Thursday, November 20, 2014 2:09:24 PM UTC-5, larry@gmail.com > wrote: >> On Thu, Nov 20, 2014 at 2:01 PM, wrote: >> > Can someone suggest a good python IDE. >> >> PyCharm, but it's not free. > > If you can tell me a free one,

Re: How to access Qt components loaded from file?

2014-11-20 Thread alister
On Thu, 20 Nov 2014 21:19:28 +, Juan Christian wrote: > On Thu Nov 20 2014 at 7:07:10 PM Mark Lawrence > wrote: >> >> You also need to study the difference between top posting, interspersed >> posting and bottom posting. The second and third are very much the >> prefered styles here. >> >> >

Re: How to access Qt components loaded from file?

2014-11-21 Thread alister
On Thu, 20 Nov 2014 22:41:02 +, Juan Christian wrote: > On Thu Nov 20 2014 at 8:20:29 PM alister > > wrote: >> >> Then either do the necessary work (you have just proven you can)or find >> a better way of communicating with this news group(NNTP or the mailing >&

Re: Using Python for date calculations

2014-11-21 Thread alister
On Fri, 21 Nov 2014 12:15:03 +0200, Steve Hayes wrote: > On Fri, 21 Nov 2014 19:40:22 +1100, Chris Angelico > wrote: > >>On Fri, Nov 21, 2014 at 7:35 PM, Steve Hayes >>wrote: >>> This Python script does it for me. >>> >>> year = input("Year: ") >>> age = input("Age: ") >>> born = year-age print

Re: Using Python for date calculations

2014-11-21 Thread alister
On Fri, 21 Nov 2014 10:20:06 +, Mark Lawrence wrote: > On 21/11/2014 08:50, Gary Herron wrote: >> On 11/21/2014 12:35 AM, Steve Hayes wrote: >>> I've finally found a use for Python. >>> >>> When, in the course of my genealogy research, I look at census or >>> burial records, I often want to wo

Re: How to access Qt components loaded from file?

2014-11-21 Thread alister
On Fri, 21 Nov 2014 12:10:21 +, Juan Christian wrote: > On Fri Nov 21 2014 at 8:05:30 AM alister > > wrote: > >> All of this VVV [...] > > > I'm sorry, I didn't know, but it seems there isn't any option to remove > that in the Inbox (new G

Re: Using Python for date calculations

2014-11-21 Thread alister
On Fri, 21 Nov 2014 08:54:23 -0500, random832 wrote: > On Fri, Nov 21, 2014, at 05:33, alister wrote: >> the problem with input is code-injection which is very similar to sql >> injection (httpd://xkcd.com/327). >> >> the data entered by the user is processed as if

<    1   2   3   4   5   6   7   8   >