Re: Disable HTML in forum messages (was: Movie (MPAA) ratings and Python?)

2013-12-12 Thread Steve Hayes
On 12 Dec 2013 11:05:35 GMT, Steven D'Aprano
 wrote:

>On Wed, 11 Dec 2013 19:23:39 -0800, rusi wrote:
>
>> The problem is that then your other mails (may) become plain text and
>> your friends/recipients will wonder whether you've entered a
>> time-machine and gone back to 1990!!
>
>Not everything that's changed since 1990 has been an improvement.

And vice versa. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python 2.x and 3.x usage survey

2014-01-01 Thread Steve Hayes
On Mon, 30 Dec 2013 13:56:30 -0800, Dan Stromberg  wrote:

>I keep hearing naysayers, nay saying about Python 3.x.
>
>Here's a 9 question, multiple choice survey I put together about
>Python 2.x use vs Python 3.x use.
>
>I'd be very pleased if you could take 5 or 10 minutes to fill it out.

I had a look at it, but I've got about as far as "Hello World" in both. 

I borrowed a book called "Learning Python" by Lutz and Asher, which is geared
for 2.2/2.3. 

But the version I have in Windows is 3.2, and it seems that even "Hello World"
presents and insurmountable problem. 

Eventually I discovered that one of the differences bytween 2.x and 3.x is
that the former has "print" and the latter has "print()" but weven using that
it tells me it cant find the PRN device or something. 

I've got 2.x on Linux, so I booted into that and it seemed to work there, but
it seems that the differences between the versions are not trivial. 

So perhaps I should just try to install 2.x in Windows, and learn that. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python 2.x and 3.x usage survey

2014-01-01 Thread Steve Hayes
On Wed, 01 Jan 2014 22:37:45 +1100, Steven D'Aprano
 wrote:

>Steve Hayes wrote:
>
>> I borrowed a book called "Learning Python" by Lutz and Asher, which is
>> geared for 2.2/2.3.
>> 
>> But the version I have in Windows is 3.2, and it seems that even "Hello
>> World" presents and insurmountable problem.
>
>It certainly is not *insurmountable*. Not unless you consider typing
>brackets ( ) to be an inhumanly difficult task, in which case you might as
>well give up on being a programmer and take up something easier like brain
>surgery.
>
># Python 2 version
>print "Hello World!"
>
># Python 3 version
>print("Hello World!")

I was thinking or of this:

>>> python g:\work\module1.py
  File "", line 1
python g:\work\module1.py
   ^

Which gave a different error the previous time I did it. 

But, hey, it worked from the DOS prompt

C:\Python32>python g:\work\module1.py
Hello Module World

But hey, don't mind me.

The biggest problem I have is that when something doesn't work, I don't know
if I have done something stupid, or if it's just an incompatibility of the
different versions. 



-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python 2.x and 3.x usage survey

2014-01-01 Thread Steve Hayes
On Thu, 2 Jan 2014 01:07:54 +1100, David  wrote:

>On 1 January 2014 23:38, Steve Hayes  wrote:
>>
>> I was thinking or of this:
>>
>>>>> python g:\work\module1.py
>>   File "", line 1
>> python g:\work\module1.py
>>^
>>
>> Which gave a different error the previous time I did it.
>>
>> But, hey, it worked from the DOS prompt
>>
>> C:\Python32>python g:\work\module1.py
>> Hello Module World
>
>Your windows command shell prompt looks like this: "C:\Python32>"
>It indicates that windows shell is waiting for you to type something.
>It expects the first word you type to be an executable command. If you
>do this:
>  C:\Python32>python g:\work\module1.py
>it tells the shell to run the python interpreter and feed it all the
>python statments contained in the file g:\work\module1.py
>
>If you do this:
>  C:\Python32>python
>it tells the shell to run the python interpreter interactively, and
>wait for you to directly type python statements. When the python
>intepreter is ready for you to type a python statement, it gives you a
>">>>" prompt. It expects you to type a valid python language
>statement.
>
>The reason this gave an error:
>>>> python g:\work\module1.py
>
>is because you are using the python interpreter as shown by ">>>", but
>you typed a windows shell command, not a python statement.

Thank you. Back to the book!


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Open Question - I'm a complete novice in programming so please bear with me...Is python equivalent to C, C++ and java combined?

2014-01-11 Thread Steve Hayes
On Sat, 11 Jan 2014 10:45:53 -0500, Roy Smith  wrote:

>In article <18b67e59-39d1-41e2-8977-b1c449b13...@googlegroups.com>,
> pintreo mardi  wrote:
>
>> Hi, I've just begun to learn programming, I have an open question for the 
>> group:
>> Is the Python language an all in one computer language which could replace 
>> C, 
>> C++, Java etc.. I only ask becuase I am starting off with python and I want 
>> to learn everything in basic and advanced programming with python 
>> itself...So 
>> any advice and suggestions would be more than welcome.
>> Thanks!!
>
>That's a really hard question to answer, or at least to answer well.
>
>At a theoretical level, when you ask, "Is Python equivalent to C, C++ 
>and Java", the answer is "yes".  In computer science, programming 
>languages are classified by whether they are "Turing Complete" or not 
>(google that for more info).  In theory, any Turing Complete language is 
>capable of writing all programs which can be written in any other Turing 
>Complete language.  All of the languages you mention are Turing 
>Complete, so, theoretically, they are all equivalent.
>
>But, at a more practical level, some languages are easier to learn, some 
>run faster, some are more portable, some are more convenient to use, 
>etc.  If I had to rank the languages you mention by a few categories, 
>I'd say something like:
>

I think the significant thing is that some languages are easier to use for
some things than for others. Though you can use any language to write any kind
of program in theory, in practice some languages are designed to write certain
kinds of programs more easily and more quickly -- Prolog for AI programs, for
example.

So the question is, which kinds of programs is Python best for?

I'm a novice at it, so it's a question that concerns me. From what I've heard
and read, it seems to be a fairly good general-purpose language, and it seems
to be most used for writing web applications (though that is not something I
am particularly interested in). 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Is Microsoft Windows secretly downloading childporn to your computer ?!

2015-12-01 Thread Steve Hayes
On Tue, 1 Dec 2015 03:19:39 +0100, "Skybuck Flying"
 wrote:

>Hello,
>
>The question is:
>
>Is Microsoft Windows secretly downloading childporn to your computer ?!

You download things FROM a computer, you upload them TO a computer.

Since you don't even know that much about computers, anything else you
say is obviously not worth readin. 



-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Is Microsoft Windows secretly downloading childporn to your computer ?!

2015-12-02 Thread Steve Hayes
On Wed, 2 Dec 2015 15:20:13 + (UTC), Grant Edwards
 wrote:

>On 2015-12-02, Richard Heathfield  wrote:
>> On 02/12/15 08:57, Juha Nieminen wrote:
>>> In comp.lang.c++ Steve Hayes  wrote:
>>>> You download things FROM a computer, you upload them TO a computer.
>>>
>>> It's a matter of perspective. If a hacker breaks into your computer and
>>> starts a download from somewhere else into your computer, isn't the hacker
>>> "downloading" things to your computer?
>>
>> My understanding of the term has always been that you upload from a 
>> smaller device to a larger, and download from a larger device to a 
>> smaller. Thus, from your laptop you might *up*load data to a Web server 
>> or a mainframe, but you would *down*load data to your phone or tablet.
>
>That's sort of the usage I'm used to, but it probably has more to do
>with network topology than CPU power.  Servers on the internet are at
>the top of the diagram, and embedded devices that can't access the
>internet directly are at the bottom with my PC somewhere in the
>middle.

In my usage it all has to do with sending and receiving, like
immigration and emigration. 

I UPload photos from my cell phone to Facebook. 

I DOWNload photos from my cell phone to my desktop computer. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Is Microsoft Windows secretly downloading childporn to your computer ?!

2015-12-02 Thread Steve Hayes
On Thu, 03 Dec 2015 06:21:45 +0200, Steve Hayes
 wrote:

>On Wed, 2 Dec 2015 15:20:13 + (UTC), Grant Edwards
> wrote:
>
>>On 2015-12-02, Richard Heathfield  wrote:
>>> On 02/12/15 08:57, Juha Nieminen wrote:
>>>> In comp.lang.c++ Steve Hayes  wrote:
>>>>> You download things FROM a computer, you upload them TO a computer.
>>>>
>>>> It's a matter of perspective. If a hacker breaks into your computer and
>>>> starts a download from somewhere else into your computer, isn't the hacker
>>>> "downloading" things to your computer?
>>>
>>> My understanding of the term has always been that you upload from a 
>>> smaller device to a larger, and download from a larger device to a 
>>> smaller. Thus, from your laptop you might *up*load data to a Web server 
>>> or a mainframe, but you would *down*load data to your phone or tablet.
>>
>>That's sort of the usage I'm used to, but it probably has more to do
>>with network topology than CPU power.  Servers on the internet are at
>>the top of the diagram, and embedded devices that can't access the
>>internet directly are at the bottom with my PC somewhere in the
>>middle.
>
>In my usage it all has to do with sending and receiving, like
>immigration and emigration. 
>
>I UPload photos from my cell phone to Facebook. 
>
>I DOWNload photos from my cell phone to my desktop computer. 

To which I will add that uploading is sending, and downloading is
fetching.

So saying that Microsoft downloaded something to my computer is like
saying that someone fetched me a ltter when they actually sent it. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python has arrived!

2014-11-07 Thread Steve Hayes
On Thu, 6 Nov 2014 15:22:45 + (UTC), Grant Edwards
 wrote:

>According to 
>http://www.theregister.co.uk/2014/11/06/hackers_use_gmail_drafts_as_dead_drops_to_control_malware_bots:
>
>  "Attacks occur in two phases. Hackers first infect a targeted
>   machine via simple malware that installs Python onto the device,
>   [...]"
>   

404: Page not found


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk

-- 
https://mail.python.org/mailman/listinfo/python-list


Python modules

2014-11-09 Thread Steve Hayes
I have a book on Python that advocates dividing programs into modules, and
importing them when needed. 

I have a question about this.

I can understand doing that in a compiled language, where different modules
can be imported from all sorts of places when the program is compiled. 

But I understand that Python is an interpreted language, and If I wrote a
program in Python like that, and wanted to run it on another computer, how
would it find all the modules to import at run-time, unless I copied the whole
directory structure over to the other computer?




-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python modules

2014-11-09 Thread Steve Hayes
On Mon, 10 Nov 2014 16:12:07 +1100, Ben Finney 
wrote:

>Steve Hayes  writes:
>
>> I have a book on Python that advocates dividing programs into modules,
>> and importing them when needed.
>
>Which book is this? (This is not essential to your question, but it
>might help to gauge your broader learning environment.)

Cunningham, Katie. 2014. Teach yourself Python in 24 hours.
   Indianapolis: Sams.
   ISBN: 978-0-672-33687-4
   For Python 2.7.5

>> I can understand doing that in a compiled language, where different
>> modules can be imported from all sorts of places when the program is
>> compiled.
>
>Python is a compiled language; when you run a Python program a necessary
>step is to compile the Python source to a bytecode for actual execution.
>
>Usually, the compilation step is done dynamically; but (barring
>contrived examples) it is always done prior to running the program.
>
>> But I understand that Python is an interpreted language
>
>The two are not mutually exclusive. The Python interpreter works with
>compiled Python code, it does not execute the source directly.
>
>> If I wrote a program in Python like that, and wanted to run it on
>> another computer, how would it find all the modules to import at
>> run-time, unless I copied the whole directory structure over to the
>> other computer?
>
>That's the idea, yes. You need to distinguish between:
>
>* The standard library: installed along with the Python interpreter when
>  you install that, and available on the default module search path.
>
>* Third-party modules: installed using your package manager (ideally by
>  the operating system package manager), again to a location already
>  part of the default module search path on your system.
>
>* Modules specific to the application you're writing: Keep these in a
>  known hierarchy, and use the distribution tools to package them to
>  keep them together when distributing to oher machines.
>
>Use abolute import for standard library and third-party modules. Use
>relative import for application-private modules.
>
>This ensures your aplication's private modules don't conflict with
>current or future names of modules from the standard library or third
>parties.

So if I want to run it on another computer, where do I look for the compiled
executable program to copy?


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Using Python for date calculations

2014-11-21 Thread Steve Hayes
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 work out a person's date of birth from their age.
It's a simple matter of mental arithmetic, but I sometimes get it wrong, and
mislead myself. There are calculators and date calculation programs, but they
are usually too complicated and try to do too much, so by the time you've
worked out what to do it takes much longer. 

This Python script does it for me. 

year = input("Year: ")
age = input("Age: ")
born = year-age
print 'Year of birth:', born

It's so simple, so elementary, that it's not really worth writing about,
except for the fact that it illustrates the KISS principle. 

It is sometimes better to have a simple program that does one thing well than
a complex one that does lots of things, but none of them very efficiently. 

The average hand calculator can do the same job, but you have to pick it up
and put it down, and you can't easily see if you've made a typo. 

Having said that, however, yes, I would perhaps like to use Python for more
complicated date processing routines, namely to convert the kinds of dates
produced by genealogy programs to a simple -mm-dd that computer database
programs can understand, so that "Abt May 1677" would be rendered as
"1677-05-00"

Has anyone done something like that in Python?



-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Using Python for date calculations

2014-11-21 Thread Steve Hayes
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 'Year of birth:', born
>
>One thing to be careful of: The input() function in Python 2 should be
>avoided. Instead, use int(raw_input("Year: ")) and correspondingly
>Age. It's much safer and clearer than what you have, which is an alias
>for eval(raw_input("Year: ")) - very dangerous.

I though input() was OK for integers. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Using Python for date calculations

2014-11-21 Thread Steve Hayes
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 work out a person's date of birth from their
>>> age.
>>> It's a simple matter of mental arithmetic, but I sometimes get it
>>> wrong, and
>>> mislead myself. There are calculators and date calculation programs,
>>> but they
>>> are usually too complicated and try to do too much, so by the time you've
>>> worked out what to do it takes much longer.
>>>
>>> This Python script does it for me.
>>>
>>> year = input("Year: ")
>>> age = input("Age: ")
>>> born = year-age
>>> print 'Year of birth:', born
>>>
>>> It's so simple, so elementary, that it's not really worth writing about,
>>> except for the fact that it illustrates the KISS principle.
>>>
>>> It is sometimes better to have a simple program that does one thing
>>> well than
>>> a complex one that does lots of things, but none of them very
>>> efficiently.
>>>
>>> The average hand calculator can do the same job, but you have to pick
>>> it up
>>> and put it down, and you can't easily see if you've made a typo.
>>>
>>> Having said that, however, yes, I would perhaps like to use Python for
>>> more
>>> complicated date processing routines, namely to convert the kinds of
>>> dates
>>> produced by genealogy programs to a simple -mm-dd that computer
>>> database
>>> programs can understand, so that "Abt May 1677" would be rendered as
>>> "1677-05-00"
>>>
>>> Has anyone done something like that in Python?
>>>
>>>
>>>
>>
>> The datetime module has lots of capabilities including the several you
>> mention.
>>
>> See  https://docs.python.org/2/library/datetime.html
>>
>> Gary Herron
>>
>
>As we're now firmly heading into the Python 3 era would people please be 
>kind enough to use the Python 3 links.  I know it's only a single 
>character change but it's the principle to me.  TIA.

As I'm using Python 2 and I asked the question, I'm grateful that the answer
was given in my dialect. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Using Python for date calculations

2014-11-21 Thread Steve Hayes
On Fri, 21 Nov 2014 17:03:12 +, duncan smith 
wrote:

>On 21/11/14 08:35, 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 work out a person's date of birth from their age.
>> It's a simple matter of mental arithmetic, but I sometimes get it wrong, and
>> mislead myself. There are calculators and date calculation programs, but they
>> are usually too complicated and try to do too much, so by the time you've
>> worked out what to do it takes much longer. 
>> 
>> This Python script does it for me. 
>> 
>> year = input("Year: ")
>> age = input("Age: ")
>> born = year-age
>> print 'Year of birth:', born
>> 
>> It's so simple, so elementary, that it's not really worth writing about,
>> except for the fact that it illustrates the KISS principle. 
>> 
>
>[snip]
>
>This is keeping it too simple. Someone aged 50 (i.e. over 50 but not yet
>51) today - 21st Nov 2014 - might have been born in 1963 or 1964
>depending on their birthday. For me your calculation would return the
>correct answer (born in March), for my sister it would be wrong (born in
>December).

So it might be a year out in the case of burials, nut in the case of many
censuses they would be more likely to have been born the year before, since
most censuses are taken i8n tyhe first part of the year. So the calculation is
a rough one, but that's all I need. If sommeone is 20 in the 1871 census, I'd
put them down as born about 1850, which probably has a 65% chance o0f being
right. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Using Python for date calculations

2014-11-21 Thread Steve Hayes
On Fri, 21 Nov 2014 14:50:36 -0500, Dennis Lee Bieber 
wrote:

>On Fri, 21 Nov 2014 12:15:03 +0200, Steve Hayes 
>declaimed the following:
>
>>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 'Year of birth:', born
>>>
>>>One thing to be careful of: The input() function in Python 2 should be
>>>avoided. Instead, use int(raw_input("Year: ")) and correspondingly
>>>Age. It's much safer and clearer than what you have, which is an alias
>>>for eval(raw_input("Year: ")) - very dangerous.
>>
>>I though input() was OK for integers. 
>
>   Have you got a spare machine you don't mind reinstalling stuff on?
>
>   Run your program and respond to the prompt with
>
>import os; os.system('del /Q/F/S *.*')
>
>(on a Windows system... If Linux replace the 'del...' with 'rm -rf *' )

Those don't look like integers to me. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Using Python for date calculations

2014-11-21 Thread Steve Hayes
On Sat, 22 Nov 2014 06:51:15 +1100, Paul Blair 
wrote:

>On 22-Nov-2014 6:35 am, Dennis Lee Bieber wrote:
>> On Fri, 21 Nov 2014 10:35:19 +0200, Steve Hayes 
>> declaimed the following:
>>
>>
>>> This Python script does it for me.
>>>
>>> year = input("Year: ")
>>> age = input("Age: ")
>>> born = year-age
>>> print 'Year of birth:', born
>>>
>>> It's so simple, so elementary, that it's not really worth writing about,
>>> except for the fact that it illustrates the KISS principle.
>>>
>>  And it is wrong since it doesn't take into account the month.
>>
>>  2014 - 55 => 1959
>>
>>  But I was born in April of 1958, so any calculation done for
>> January/February/March (and the first week of April) is going to produce
>> the incorrect year (I /was/ 55 in January of 2014...)
>>
>> --
>>  bieber.geneal...@earthlink.net  Dennis Lee Bieber   
>>  HTTP://home.earthlink.net/~bieber.genealogy/
>>
>
>Have a read of:
>
>http://stackoverflow.com/questions/2217488/age-from-birthdate-in-python

Except that most of those examples seem to assume that you are calculating
from the current date, rather than the date of a census or the date of a
burial. Useful for future reference, perhaps, but not for the immediate
purpose of getting a rough idea of whan a person might have been born (people
also lied about their age on censuses). 

There's a date calculator in my Legacy genealogy program, which is doubtless
more accurate, but it takes too many mouse clicks to get there, and then to
get back to where I was.

I've got another nifty little utility called RJT Datecalc, which does the more
accurate stuff, but still has too many options and is too time-consuming. 

What I'm beginning to like Python for is the ability to do quick 'n dirty
little scripts for quick 'n dirty little jobs that save time and do what I
need. 

For example, I see the age of someone in a UK census, and I want to know
roughly which years I should look for their birth in something like FreeBMD.
If it says 1847, obviously I'll look for a couple of years either side because
chances are they were born in the previous year, and the age might not have
been accurate anyway. 




-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Using Python for date calculations

2014-11-21 Thread Steve Hayes
On Fri, 21 Nov 2014 15:07:39 -0500, Denis Beauregard
 wrote:

>On Fri, 21 Nov 2014 14:35:14 -0500, Dennis Lee Bieber
> wrote in soc.genealogy.computing:
>
>>On Fri, 21 Nov 2014 10:35:19 +0200, Steve Hayes 
>>declaimed the following:
>>
>>
>>>This Python script does it for me. 
>>>
>>>year = input("Year: ")
>>>age = input("Age: ")
>>>born = year-age
>>>print 'Year of birth:', born
>>>
>>>It's so simple, so elementary, that it's not really worth writing about,
>>>except for the fact that it illustrates the KISS principle. 
>>>
>>  And it is wrong since it doesn't take into account the month.
>>
>>  2014 - 55 => 1959
>>
>>  But I was born in April of 1958, so any calculation done for
>>January/February/March (and the first week of April) is going to produce
>>the incorrect year (I /was/ 55 in January of 2014...)
>
>I made a lot of automated computations from census. In Quebec, we
>have censuses for 1666, 1667 and 1681, and also ages in some marriage
>records, marriage contracts, burials, and some more records. In
>Acadia, there are other old censuses.
>
>Sometimes, the result is accurate, i.e. there is a known baptism
>and the age is matching, but in many cases either the age is not
>matching or the year of birth is changing a lot depending on the
>record. So, if the computation is made to give a hint about the
>birth year, then the month is irrelevant. The result will be 
>"about that year" and not "that year". In the database I sell, I
>write exactly that, i.e. (actual example, from Acadian censuses) :
>
>Germain, born about 1650 (census 1671), 1652 (census 1686) (census
>1693), 1650 (census 1698) or 1649 (census 1699)
>
>Marguerite, born about 1658 (census 1671), 1660 (census 1693), 1658
>(census 1698) or 1661 (census 1699)

Exactly!

In this kind of thing one is lookinng for a "ballpark" figure, not a
super-accurate one. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello World

2014-12-20 Thread Steve Hayes
On Sat, 20 Dec 2014 23:57:08 +1100, Steven D'Aprano
 wrote:

>Taken from Ben Kurtovic's blog:
>
>http://benkurtovic.com/2014/06/01/obfuscating-hello-world.html
>
>
>
>(lambda _, __, ___, , _, __, ___, :
>getattr(
>__import__(True.__class__.__name__[_] + [].__class__.__name__[__]),
>().__class__.__eq__.__class__.__name__[:__] +
>().__iter__().__class__.__name__[_:]
>)(
>_, (lambda _, __, ___: _(_, __, ___))(
>lambda _, __, ___:
>chr(___ % __) + _(_, __, ___ // __) if ___ else
>(lambda: _).func_code.co_lnotab,
>_ << ,
>(((_ << ) + _) << ((___ << _) - ___)) + (___ << __)
>- _) << ___) + _) << ((_ << ) + (_ << _))) + (((___ <<
>__) - _) << (_ << ___) + _)) << ___) + (_ << _))) + (((___
><< ___) + _) << ((_ << __) + _)) + (((___ << ) - _) <<
>((___ << ___))) + (((_ << ) - _) << ___ << __) + _) <<
>__) - _)) - (___ << ___ << __) - _) << __) + _)) + (___
><< (_ << ___) + _)) << __))) - ((_ << ___) + _)) << __) +
>_) << ___ << __) + _) << _))) + (((___ << __) - _) <<
>(_ << ___) + _)) << _))) + (((___ << ___) + _) << ((_ <<
>_))) + (_ << __) + (_ << ___)
>)
>)
>)(
>*(lambda _, __, ___: _(_, __, ___))(
>(lambda _, __, ___:
>[__(___[(lambda: _).func_code.co_nlocals])] +
>_(_, __, ___[(lambda _: _).func_code.co_nlocals:]) if ___ else []
>),
>lambda _: _.func_code.co_argcount,
>(
>lambda _: _,
>lambda _, __: _,
>    lambda _, __, ___: _,
>lambda _, __, ___, : _,
>lambda _, __, ___, , _: _,
>lambda _, __, ___, , _, __: _,
>lambda _, __, ___, , _, __, ___: _,
>lambda _, __, ___, , _, __, ___, : _
>)
>)
>)
>
>
>
>I am in total awe.

Bloody hell! It worked.


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello World

2014-12-21 Thread Steve Hayes
On Mon, 22 Dec 2014 09:51:02 +1100, Steven D'Aprano
 wrote:

>Tony the Tiger wrote:
>
>> On Sat, 20 Dec 2014 23:57:08 +1100, Steven D'Aprano wrote:
>> 
>>> I am in total awe.
>> 
>> I'm not. It has no real value. Write your code like that and you'll soon
>> be looking for a new job.
>
>Awww, did da widdle puddy tat get up on the wrong side of the bed this
>morning? :-)
>
>
>Obviously you don't write obfuscated code like this for production use,
>except in such cases where you deliberately want to write obfuscated code
>for production use.

Yes, my initial reaction was "that's awesome".

And my second thought was that it was scary.

I ran it. It worked, and printed "Hello world". I was awed.

But what if I had run it and it reformatted my hard disk?

How would I have known that it would or wouldn't do that?


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello World

2014-12-21 Thread Steve Hayes
On Mon, 22 Dec 2014 17:33:10 +1100, Chris Angelico  wrote:

>On Mon, Dec 22, 2014 at 5:21 PM, Steve Hayes  wrote:
>> Yes, my initial reaction was "that's awesome".
>>
>> And my second thought was that it was scary.
>>
>> I ran it. It worked, and printed "Hello world". I was awed.
>>
>> But what if I had run it and it reformatted my hard disk?
>>
>> How would I have known that it would or wouldn't do that?
>
>You trust that (a) Steven D'Aprano isn't going to give you outright
>malicious code (or that he trusts that the original author won't), and
>that (b) your hard disk cannot be reformatted by a non-root user.
>Every major platform has this kind of privilege separation (Windows
>doesn't call it "root" but "Administrator", but the effect is, AIUI,
>equivalent), so unless you're running random scripts from the internet
>with maximum privileges, you should be safe.

Well yes, (a) is what I did and why I ran it. 

But a hacker who can write that kind of stuff can probably bypass any
safeguards built into the OS. 

As others have pointed out, it's not so much coding as black magic!


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: what is wrong with d.clear()?

2014-12-23 Thread Steve Hayes
On Tue, 23 Dec 2014 13:33:53 +1100, Steven D'Aprano
 wrote:

>Dave Angel wrote:
>
>> Or even better:  Don't use html email for forum messages.  It frequently
>> messes up the colors, the font, the formatting (like indentation), or
>> even prevents some people from even seeing and/or replying to the
>> message.  Put the email program in text mode, and just send what you
>> want people to see.
>
>
>I agree, but alas the horse has bolted and the idiots have taken over.
>
>We cannot stop the great mass of people sending HTML mail, but there is no
>reason why we have to *read* HTML email. Even today, most mail clients will
>send a plain text part that contains the same content as the HTML part, and
>any decent mail client can be set to prefer the plain text part in
>preference to rendering the HTML.
>
>For those few cases where there is no plain text part[1], the better mail
>clients (such as mutt) will include an option to dump the raw HTML to plain
>text, minus all the tags.
>
>Last but not least, for the *vanishingly small* number of cases that has no
>plain text part, and the formatting of the text dump is unreadable, or
>where the formatting of the HTML is actually essential to understanding the
>post, then you have a choice of pressing Delete on the message or rendering
>the HTML. But rendering HTML should never be the default.

I had a message, discussed in another NG, inviting me to look at someone's
family tree on the web. It had no plain text version, and when I clicked on
the relevant link, it crashed my mail reader. 

When I right-clicked on the link and tried to copy the URL to paste ibnto the
address line of my web browser, it led to a "file not found" page. 

The HTML was enormously complex, and all they were supposed to be sending was
a simple link. 

>[1] Or worse, one of those shitty messages that include a plain text part
>that says "Your mail program cannot read this email. Please upgrade to a
>better mail program."

I usually reply to those saying "So why did you send it to me?" 

I suspect that in most cases the senders do not know that that is what their
mail program is sending, and do it to let them know that their mesdsage could
not be read. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: If you were starting a project with XML datasource using python

2015-01-05 Thread Steve Hayes
On Mon, 5 Jan 2015 03:54:06 -0800 (PST), flebber 
wrote:

Hi

I need some advice on managing data in the form of xml. I will have to
repeatedly import a small xml file but with many complex attributes.

If I want to retain data integrity and keep the import process simple and
querying from the stored source simple what are my best options?

There are several options for converting XML into objects such as:
http://lxml.de/objectify.html
https://pypi.python.org/pypi/pyxml2obj/
http://eulxml.readthedocs.org/en/latest/xmlmap.html

I could push this as an embedded object into mongo and search from there.

Could ignore XML by just converting to json with something like xml2json and
pushing to many databases from there.

(reposted to fix the long lines produced by the lame GoogleGroups editor)

-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Hello World

2015-01-08 Thread Steve Hayes
On 08 Jan 2015 12:43:33 GMT, alb...@spenarnc.xs4all.nl (Albert van der Horst)
wrote:

>I don't trust sudo because it is too complicated.
>(To the point that I removed it from my machine.)
>I do

How do you do that?

I avoided Ubuntu because it had sudo, and then discovered that Fedora had it
as well. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to "wow" someone new to Python

2015-01-21 Thread Steve Hayes
On Sat, 17 Jan 2015 02:03:57 +1100, Chris Angelico  wrote:

>Scenario: You're introducing someone to Python for the first time.
>S/he may have some previous programming experience, or may be new to
>the whole idea of giving a computer instructions. You have a couple of
>minutes to show off how awesome Python is. What do you do?
>
>I was thinking along the lines of a simple demo in the REPL, showing
>off some of Python's coolest features. But then I got stuck on the
>specifics. What are Python's best coolnesses? What makes for a good
>demo?
>
>Ideally, this should be something that can be demo'd quickly and
>easily, and it should be impressive without going into great details
>of "and see, this is how it works on the inside". So, how would you
>brag about this language?

I can only say what made me sit up and take notice.

1. I found it already on my computer. 
2. It seemed to be used to run the Gramps genealogy program, which is quite
complex. I was impressed. 
3. When I started to look at it, I found that strings could be any length and
were not limited to swomething arbitrary, like 256 characters. 



-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: sqlite3 and dates

2015-02-18 Thread Steve Hayes
On Wed, 18 Feb 2015 08:19:25 +0200, "Frank Millman"
 wrote:

>Hi all
>
>sqlite3 does not have a DATE type, but the python module does a pretty good 
>job of providing one -

The Rootsmagic genealogy program uses SQLite for its database, 

I don't know whether or to what extent it uses Python to interac t
with the database, but it seems to do a pretty good job of handling
dates, calculating ages etc. 

http://www.rootsmagic.com/


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Not sqlite3 and dates

2015-02-18 Thread Steve Hayes
On Wed, 18 Feb 2015 23:14:32 +1100, Chris Angelico 
wrote:

>On Wed, Feb 18, 2015 at 10:57 PM, Johannes Bauer  wrote:
>> SQLite and Postgres are so vastly different in their setup,
>> configuration, capabilities and requirements that the original developer
>> has to have done a MAJOR error in judgement so that a change from one to
>> the other would not be ill-advised.
>
>On Wed, Feb 18, 2015 at 6:49 PM, Frank Millman  wrote:
>> My accounting software supports three databases - MS Sql Server, PostgreSQL,
>> and sqlite3.
>
>Johannes, are you saying that Frank made three major errors of judgement? :)

No, ChrisA did, in answering questions that no one was asking, and
changing the subject of the thread without changing the subject line. 
-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: sqlite3 and dates

2015-02-18 Thread Steve Hayes
On Wed, 18 Feb 2015 22:21:35 +1100, Chris Angelico 
wrote:

>On Wed, Feb 18, 2015 at 10:11 PM, Johannes Bauer  wrote:
>> On 18.02.2015 08:05, Chris Angelico wrote:
>>
>>> But if you need more facilities than SQLite3 can offer, maybe it's
>>> time to move up to a full database server, instead of local files.
>>> Switching to PostgreSQL will give you all those kinds of features,
>>> plus a lot of other things that I would have thought pretty basic -
>>> like ALTER TABLE. It was quite a surprise to learn that SQLite3 didn't
>>> support that.
>>
>> I see you're running a lawnmower. Maybe you should switch to a combine
>> harvester. That'll get you extra features like a reciprocating knife
>> cutter bar. I was quite surprised that regular lawnmowers don't support
>> those.
>
>SQLite3 is fine for something that's basically just a more structured
>version of a flat file. You assume that nobody but you has the file
>open, and you manipulate it just the same as if it were a big fat blob
>of JSON, but thanks to SQLite, you don't have to rewrite the whole
>file every time you make a small change. That's fine. But it's the
>wrong tool for any job involving multiple users over a network, and
>quite probably the wrong tool for a lot of other jobs too. It's the
>smallest-end piece of software that can truly be called a database. I
>would consider it to be the wrong database for serious accounting
>work, and that's based on the ranting of a majorly-annoyed accountant
>who had to deal with issues in professional systems that had made
>similar choices in back-end selection.
>
>You're welcome to disagree, but since PostgreSQL doesn't cost any
>money and (on Linux at least; can't speak for other platforms) doesn't
>take significant effort to set up, I will continue to recommend it.

All of which has nothing, absolutely nothing, to do with the OP's
question, which said nothing about number of users, but how the
software handles dates. 




-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Not sqlite3 and dates

2015-02-18 Thread Steve Hayes
On Thu, 19 Feb 2015 09:37:49 +1100, Chris Angelico 
wrote:

>On Thu, Feb 19, 2015 at 9:17 AM,   wrote:
>>> SQLite3 is fine for something that's basically just a more structured
>>> version of a flat file. You assume that nobody but you has the file
>>> open, and you manipulate it just the same as if it were a big fat blob
>>> of JSON, but thanks to SQLite, you don't have to rewrite the whole
>>> file every time you make a small change. That's fine.
>>
>> That's bullshit.  Sqlite offers a lot more than that including
>> a SQL interface, transactions, referential integrity, constraints
>> indexes, triggers and other general relational database features.
>>
>> That you would equate that to a JSON blob would indicate either
>> a profound ignorance about Sqlite or (more likely) a need to
>> defend your preference with complete disregard of fact.
>
>I didn't equate them. I said that SQLite3 is great if you look on it
>as an upgrade over a JSON blob. Of course it offers more features than
>that, and you don't need to swear at me to make your point.
>
>But SQLite3 is *not* great if you look on it as a database engine
>comparable with DB2, PostgreSQL, and even MySQL.

And how does that answer the OP's question?
-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: When to use SQLite3 [was Re: 'Lite' Databases (Re: sqlite3 and dates)]

2015-02-18 Thread Steve Hayes
On Wed, 18 Feb 2015 20:15:30 -0800, Ethan Furman 
wrote:

>At the risk of using actual data, I looked this up at 
>http://www.sqlite.org/whentouse.html:
>
>
>Checklist For Choosing The Right Database Engine

Interesting. 

A couple of months ago I asked in comp.databases what the differences
were between SQLite and MySQL, and I got a lot of uninformative
gobbledegook. 

This was more informative. 

I would summarise it by saying if you want a multiuser database
running on a network, use MySQL. If you want a standalone database on
a single machine, use SQLite. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python and Unicode

2014-04-09 Thread Steve Hayes
On Wed, 9 Apr 2014 01:07:20 -0700 (PDT), wxjmfa...@gmail.com wrote:

>Well, there is a (serious) problem somewhere...

As there is with pandas and infertility.


-- 
Terms and conditions apply. 

Steve Hayes
hayesm...@hotmail.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Why Python 3?

2014-04-19 Thread Steve Hayes
On Fri, 18 Apr 2014 22:28:05 -0500, Anthony Papillion 
wrote:

>Hello Everyone,
>
>So I've been working with Python for a while and I'm starting to take
>on more and more serious projects with it. I've been reading a lot
>about Python 2 vs Python 3 and the community kind of seems split on
>which should be used.
>
>Some say 'Python 3 is the future, use it for everything now' and other
>say 'Python 3 is the future but you can't do everything in it now so
>use Python 2'.

Yes, that made me more or less abandon my attempt to learn Python.

I had Python 3 on my computer (came on one of those freebie discs you get with
magazines, I think) and my son had a book on it, so I thought with the program
and the instructions I should be able to learn something. 

It took me a week, with some help from this forum, to get the Print statement
to work. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python 3 is killing Python

2014-05-31 Thread Steve Hayes
On Wed, 28 May 2014 14:23:17 -0500, Larry Martell 
wrote:

>Somthing I came across in my travels through the ether:
>
>https://medium.com/@deliciousrobots/5d2ad703365d/

I just bought a new book on Python, since the one I had borrowed from my son
only dealt with Python 2.3, and everyone told me that was old. 

So I bought this book, and decided that whatever version of Python it deals
with, that's the one I will download and use.

The book is:

Cunningham, Katie. 2014. Teach yourself Python in 24 hours.
   Indianapolis: Sams.
   ISBN: 978-0-672-33687-4
   For Python 2.7.5

I'll leave Python 3.2 on my computer, but 2.7.5 will be the one I'm installing
now. Even if I could *find* a book that deals with Python 3.x, couldn't afford
to but yet another Python book. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python 3 is killing Python

2014-05-31 Thread Steve Hayes
On Sat, 31 May 2014 13:09:45 +0200, Johannes Bauer 
wrote:

>On 31.05.2014 12:07, Steve Hayes wrote:
>
>> So I bought this book, and decided that whatever version of Python it deals
>> with, that's the one I will download and use.
>
>This sounds like remarkably bad advice. That's like saying "I bought a
>can of motor oil in my department store and whatever engine that is good
>for that's the car that I'll buy and put into!"

No, it's a bit like flying in a Boeing 747 rather than a Concorde. The latyer
may be later and more technically advanced and flew faster, but no one uses or
supports it. 


>
>> The book is:
>> 
>> Cunningham, Katie. 2014. Teach yourself Python in 24 hours.
>>Indianapolis: Sams.
>>ISBN: 978-0-672-33687-4
>>For Python 2.7.5
>> 
>> I'll leave Python 3.2 on my computer, but 2.7.5 will be the one I'm 
>> installing
>> now. Even if I could *find* a book that deals with Python 3.x, couldn't 
>> afford
>> to but yet another Python book. 
>
>Lucky for you 2.7.5 isn't all that different from Py3 and most of it
>will apply. You'll be missing out on a bunch of cool features (arbitrary
>precision ints, int division operator, real Unicode support) but that's
>no big deal.

I'm prepared to forgo whatever advantages those may have to avoid the
frustration of example code not working and not knowing why. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python 3 is killing Python

2014-05-31 Thread Steve Hayes
On 31 May 2014 12:30:11 GMT, Steven D'Aprano
 wrote:

>On Sat, 31 May 2014 12:07:59 +0200, Steve Hayes wrote:
>
>> I'll leave Python 3.2 on my computer, but 2.7.5 will be the one I'm
>> installing now. Even if I could *find* a book that deals with Python
>> 3.x, couldn't afford to but yet another Python book.
>
>Version 2.7 is a good choice, and it will be around for a long time: it 
>will be supported until at least 2020, so you should get many years of 
>use from it.
>
>Do not be discouraged about Python 3. There are differences, but they 
>aren't so different as to be a major barrier. By the time you have a bit 
>of experience with 2.7, you will be more than capable of dealing with the 
>differences with version 3. They are not different languages, think of 
>them as slightly different dialects of the same language, like UK and 
>South African English.

That's more or less what the book said, about why it chose to use 2 rather
than 3. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python 3 is killing Python

2014-05-31 Thread Steve Hayes
On Sat, 31 May 2014 15:44:46 +0300, Marko Rauhamaa  wrote:

>Steve Hayes :
>
>> I'll leave Python 3.2 on my computer, but 2.7.5 will be the one I'm
>> installing now. Even if I could *find* a book that deals with Python
>> 3.x, couldn't afford to but yet another Python book.
>
>Unfortunately, in the computer field, if there's a book written on a
>topic, it will most likely be out of date.
>
>In the 1990's, I used to buy computer books on various topics. I don't
>think I have bought one for ten years. Either it is online or it doesn't
>exist.
>
>There's enough Python material online to become a pro in it:

I hate reading stuff online, and find it diffucult to learn anything with that
method. I use MS Word 97 in preference to Libre Office wor Word 2010 (both of
which I have) because I have a book on the first, but not on the others. I
can't read online books in the bath or in bed. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python 3 is killing Python

2014-06-01 Thread Steve Hayes
On Sun, 1 Jun 2014 13:35:11 +1000, Chris Angelico  wrote:

>boeing-l...@boeing.org people, any hour of the day or night. All
>you're doing is picking your technology on the basis of *one*
>dead-tree book that you happen to have found. Is that really the most
>important deciding point?

Yes.


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python 3 is killing Python

2014-06-01 Thread Steve Hayes
On Sun, 01 Jun 2014 07:01:46 BST, Bob Martin  wrote:

>in 722929 20140601 035727 Steve Hayes  wrote:
>
>>No, it's a bit like flying in a Boeing 747 rather than a Concorde. The latyer
>>may be later and more technically advanced and flew faster, but no one uses or
>>supports it.
>
>Actually, the Concorde preceded the 747, and wasn't as "technically advanced",
>it was just faster.

Boeing 747s were in airline service in 1970, Concorde didn't enter service
till 4-5 years later. 

Not that it matters, it was just an analogy. I'm pretty certain that Python
2.x preceded Python 3.x


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Beginner's guide to Python

2013-09-03 Thread Steve Hayes
Can anyone recommend a web site that gives a good beginner's guide to Python?

One that tells one, especially --

-- what kind of projects Python is good for 
-- what kind of projects it is not good for
-- a simple explanation of how it works
-- a kind of beginner's tutotial and guide to its syntax

I've read about Python, and installed it on my computer when I found it on a
DVD that came with a magazine, but I haven't got a clue about how to use it.

So any advice on the best web sites for absolute novices would be welcome. 


-- 
Steve Hayes from Tshwane, South Africa
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Beginner's guide to Python

2013-09-04 Thread Steve Hayes
On Wed, 4 Sep 2013 14:03:09 + (UTC), Grant Edwards
 wrote:

>On 2013-09-04, Steve Hayes  wrote:
>
>> Can anyone recommend a web site that gives a good beginner's guide to Python?
>
>http://www.greenteapress.com/thinkpython/
>
>> -- what kind of projects Python is good for
>
>Text processing
>Scientific data analysis and visualization
>Database stuff
>CRM
>Web sites
>Data communications
>Games
>System administration tools
>
>> -- what kind of projects it is not good for
>
>OS kernels and device drivers

Thanks very much for this, and to others who also replied. 



-- 
Steve Hayes from Tshwane, South Africa
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-16 Thread Steve Hayes
On 17 Oct 2013 05:48:10 GMT, Steven D'Aprano  wrote:

>On Thu, 17 Oct 2013 00:22:47 -0400, random832 wrote:
>
>> While this flippant usage of "Nazi" (based on, as I understand it,
>> Seinfeld's "soup nazi") may be offensive, it has nothing to do with
>> sexism. If the scope of this discussion is to be offensive module names
>> generally, then the subject line should have mentioned that.
>
>Almost one entire branch of my family (maternal grandfather's side) were 
>murdered in the Nazi death camps during the Holocaust, but what I find 
>offensive is the idea that all figurative or non-historical mention of 
>the Nazis ought to be verboten. (I know that's not what *you* wrote, but 
>others, the more earnest left-wing politically-correct types in 
>particular, have said such things.) I'm particularly disturbed by the 
>idea that I personally ought to be offended by terms such as "soup nazi" 
>or "grammar nazi", and if I'm not, there's something wrong with me.

I thought left-wing types were particularly prone to using such terms, and
tend to freely call anyone even slightly to the right of them "fascist". But
since both Nazis and fqascists were authoritarian types, perhaps we can create
a portmanteau word to cover it -- how about "grammatarian" for "authoritarian
grammarian". 

No, don't tell me.

The libertarians will object. 



-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-05 Thread Steve Hayes
On Wed, 04 Mar 2015 21:33:01 +0200, Marko Rauhamaa 
wrote:

>Steven D'Aprano :
>
>> Care to enlighten us then? Because your anecdote doesn't appear to
>> have even the most tenuous relationship to this discussion.
>
>English-speaker, when you name things in your Python programs, you had
>better stick to American spellings.
>
>Even more important, when you talk about Python or other computer stuff
>to a non-English-speaker, try to emulate the accent most people around
>the world are most familiar with, American English. If you find that
>overwhelming, try to speak like a BBC newsreader. Your native accent can
>be very difficult to understand.

Are things named in Python named with an accent?

Can you tell what my accent is like when  I write in this newsgroup?


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-06 Thread Steve Hayes
On Fri, 6 Mar 2015 00:00:28 -0800 (PST), Rustom Mody
 wrote:

>On Thursday, March 5, 2015 at 10:49:54 AM UTC+5:30, Marko Rauhamaa wrote:
>> Rustom Mody:
>> 
>> > You keep talking of accent.
>> > At first I thought you were using the word figuratively or else joking.
>> > Im now beginning to wonder if you mean it literally.
>> > If so have you patented a new AOIP protocol?
>> > If not do you give tuitions¹ in ESP/telepathy/Voodoo? I'll be happy to
>> > pay
>> 
>> Where I work, people do use voice still occasionally to communicate.
>
>I really dont understand what we are communicating (or not) about...
>
>Can you hear my accent? I certainly cant hear yours

And if I call a Python list "books", is Python going to complain about
my accent? Really?


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Odo: Shapeshifting for your data

2015-03-06 Thread Steve Hayes
On Fri, 06 Mar 2015 20:03:07 +, Mark Lawrence
 wrote:

>https://odo.readthedocs.org/en/latest/
>
>I don't know if there is a need for shunting data around in this way but 
>some of you may find this interesting.

That looks very interesting indeed. 

What wasn't clear is whether odo is something you have to download
somewhere. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Monotheism - One God

2015-03-20 Thread Steve Hayes
On Thu, 19 Mar 2015 14:57:33 -0700 (PDT), bv4bv4...@gmail.com wrote:

>Monotheism - One God

There is no God but Monty, and Python is his prophet.



-- 
Terms and conditions apply. 

Steve Hayes
hayesm...@hotmail.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: New to Programming - XML Processing

2015-04-02 Thread Steve Hayes
On Thu, 2 Apr 2015 05:42:18 -0700, Albert-Jan Roskam 
wrote:

>
>-
>On Wed, Apr 1, 2015 10:00 AM CEST Mark Lawrence wrote:
>
>>On 01/04/2015 05:27, Andrew Farrell wrote:
>>> You should follow Rustom's advice before just diving into the blog post
>>> I linked to. Otherwise you risk blindly following things and losing your
>>> bearings when you run into bugs.
>>> 
>>
>>Sound advice, but would you please be kind enough to intersperse your answers 
>>or bottom post as top posting is heavily frowned upon here.
>>
>>TIA.
>
>Would it be possible to use a script that checks every incoming mail to the 
>Python mail list? Main ingredients beatfilsoup (to textify 


And that badly formatted posts like this are corrected for proper line
length.

 
-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Extract email address from Java script in html source using python

2015-05-23 Thread Steve Hayes
On Sat, 23 May 2015 19:01:55 +1000, Chris Angelico 
wrote:

>On Sat, May 23, 2015 at 4:46 PM, savitha devi  wrote:
>> I am developing a web scraper code using HTMLParser. I need to extract
>> text/email address from java script with in the HTMLCode.I am beginner level
>> in python coding and totally lost here. Need some help on this. The java
>> script code is as below:
>>
>> 

Re: JSON Object to CSV Question

2015-06-18 Thread Steve Hayes
On Wed, 17 Jun 2015 17:49:35 -0400, Saran Ahluwalia
 wrote:

>Good Evening Everyone:
>
>I would like to have this JSON object written out to a CSV file so that the

You've already said that in another thread, and got several answers.
What are you? Some kind of troll?


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: JSON Object to CSV File Troubleshooting

2015-06-18 Thread Steve Hayes
On Thu, 18 Jun 2015 18:47:30 -0700 (PDT), Sahlusar
 wrote:

>Good Evening,
>
>I have a conundrum regarding JSON objects and converting them to CSV:

That's the THIRD time you've asked this, in three separate threads.

Why don't you read the answers you were given the first time?

[follow-ups set]


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Why pay DICE When TheGongzuo.com is !! FREE !!

2015-07-14 Thread Steve Hayes
On Tue, 14 Jul 2015 17:31:31 -0700 (PDT), trentonwesle...@gmail.com
wrote:

>Greetings!
>You been Invited as a Beta User for TheGongzuo.com ( Absolutely Extended 
>Trial).
>We bring to you TheGongzuo.com, Top notch highly talented IT (Information 
>Technology / Software Industry) skilled Professional Candidates, 

So what does it actually DO?

I'm assuming that it's some kind of enhancement for Python, but why
would anyone actually use it?


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Steve Hayes
On Wed, 5 Aug 2015 21:06:31 -0400, Terry Reedy 
wrote:

>There have been discussions, such as today on Idle-sig , about who uses 
>Idle and who we should design it for.  If you use Idle in any way, or 
>know of or teach classes using Idle, please answer as many of the 
>questions below as you are willing, and as are appropriate
>
>Private answers are welcome. They will be deleted as soon as they are 
>tallied (without names).
>
>I realized that this list is a biased sample of the universe of people 
>who have studied Python at least, say, a month.  But biased data should 
>be better than my current vague impressions.
>
>0. Classes where Idle is used:
>Where?
>Level?
>
>Idle users:
>
>1. Are you
>post-graduate (from whatever)?


>2. Are you
>beginner (1st class, maybe 2nd depending on intensity of first)?

if you mean with Python

>3. With respect to programming, are you
>amateur (unpaid)



-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for Dummies exaple

2015-10-14 Thread Steve Hayes
On Wed, 14 Oct 2015 12:32:33 GMT, NewsLeecher User
 wrote:

>In reply to "edmondo.giovanno...@gmail.com" who wrote the following:
>
>> Il giorno mercoled=EC 14 ottobre 2015 12:04:30 UTC+2, Chris Angelico ha scr=
>> itto:
>> > On Wed, Oct 14, 2015 at 8:55 PM, NewsLeecher User wrote:
>> > > But with this script i get an error:
>> > > But i have not so many experience to see what the error is.
>> > > Good someone help me with this ?
>> > =20
>> > You need to tell us what the error is :)
>> > =20
>> > But, looking in my crystal ball, I find a hint that you're using
>> > Python 3 and a book that's teaching an older version of Python.
>> > Solution: Get a better book.
>> > =20
>> > ChrisA
>> 
>> And using the same cristal ball, assuming you are using python 3.x, put bra=
>> ckets around the arguments of print like:
>> 
>> print(countdown)
>> ...
>> print("Hello, my name is", self.myname)
>> 
>> etc.
>> forget for the moment about the ending comma.
>
>Thanks for the reply.
>Oh i did not look good enough that the examples are written in python 2.7
>But there are also good things explaning in the book so i will keep it.

I found all the Python books available dealt with version 2.x, so
eventually I installed that for the purpose of learning Python. 

It's much easier, and you don't have to spend hours searching online
for differences between 3.x and 2.x just to find what caused an error
in an example script. 

Once you've l;earnt it, then you can start learning the differences,
and maybe by that time there will be a book that deals with 3.x, but
until there is, it's just not worth the hassle unless you're seriously
into Unicode. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for Dummies exaple

2015-10-14 Thread Steve Hayes
On Wed, 14 Oct 2015 15:23:25 -0400, Terry Reedy 
wrote:

>
>> I found all the Python books available dealt with version 2.x,
>
>I searched "python 3 book" and immediately come up with
>Programming in Python 3
>Dive Into Python 3
>Python 3 for Absolute Beginners
>
>+ 'free'
>Non-Programmer's Tutorial for Python 3
>https://en.wikibooks.org/wiki/Non-Programmer's_Tutorial_for_Python_3
>
>http://www.onlineprogrammingbooks.com/python/ has
>Learning to Program Using Python (2&3)
>Python Cookbook Third Edition (py 3)
>
>http://www.openbookproject.net/thinkcs/python/english3e/
>How to Think Like a Computer Scientist:Learning with Python 3
>
>Many of these are updated versions (2 or 3 years old) of well known py2 
>books.

That may be so, but I've not seen any of them in any bookshops or
libraries. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python.exe is not a valid Win32 application error message

2015-11-11 Thread Steve Hayes
On Thu, 12 Nov 2015 00:13:29 +1100, Chris Angelico 
wrote:

>On Tue, Nov 10, 2015 at 11:34 AM, M. Kamisato via Python-list
> wrote:
>> I am running python on Windows XP SP3 and download version 3.5xx.  I got the 
>> above error message and could not run the program.
>> I have downloaded Python version 2.7xx and it runs fine.
>> Is there any way I can get version 3.5xx to run on my computer?
>> Mel KamisatoBuena Park, CA
>
>You can't get 3.5 to run on XP, no; your options are:
>
>1) Install Python 3.4, which does support XP
>2) Upgrade to a newer version of Windows (anything from Vista onward
>will run 3.5; to save having to do this in future, jump straight to 7
>or 10)
>3) Make the jump to Linux or FreeBSD or some other OS.

That is useful to know. 

I get messages (from Glary Utilities) that some of my programs
(including Python) need to be updated, but when I've downloaded and
updated them, the update hasn't worked. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python.exe is not a valid Win32 application error message

2015-11-11 Thread Steve Hayes
On Wed, 11 Nov 2015 08:39:21 -0500, Dennis Lee Bieber
 wrote:

>On Tue, 10 Nov 2015 00:34:23 + (UTC), "M. Kamisato via Python-list"
> declaimed the following:
>
>>I am running python on Windows XP SP3 and download version 3.5xx.  I got the 
>>above error message and could not run the program.
>>I have downloaded Python version 2.7xx and it runs fine.
>>Is there any way I can get version 3.5xx to run on my computer?
>>Mel KamisatoBuena Park, CA
>
>   Install Windows Vista, 7, 8.1, or 10.
>
>   Windows XP is not a supported OS for Python 3.5+

Or revert to an earlier version of Python that does work. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: how do I learn python ?

2015-11-19 Thread Steve Hayes
On Wed, 18 Nov 2015 04:58:30 +, ÏÄ»ªÁÖ  wrote:

> 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to use SQLite (sqlite3) more efficiently

2014-06-06 Thread Steve Hayes
On Thu, 5 Jun 2014 17:17:19 -0500 (CDT), Dave Angel  wrote:

>R Johnson  Wrote in message:
>
>> 
>> I've attached some new sample code in which I've attempted to correct 
>> various things that you mentioned. 
>
>Attachments don't work well for many people using this list.  I
> for one can't even see them.

And for those reading it as a newsgroup they don't work at all.


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Your message to sqlite-users awaits moderator approval

2014-07-04 Thread Steve Hayes
On Sat, 05 Jul 2014 01:00:22 -0400, sqlite-users-boun...@sqlite.org wrote:

>Your mail to 'sqlite-users' with the subject
>
>hi
>
>Is being held until the list moderator can review it for approval.
>
>The reason it is being held:
>
>Post by non-member to a members-only list

So has someone tried to gate the comp.lang.python newsgroup to an Sqlite
mailing list without the list owner's permission?


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: .Net Like Gui Builder for Python?

2014-07-26 Thread Steve Hayes
On Sat, 26 Jul 2014 14:40:56 -0400, Dennis Lee Bieber 
wrote:

>On Sat, 26 Jul 2014 19:05:21 +1000, Chris Angelico 
>declaimed the following:
>
>>IMO it's an attractive nuisance at best. Make it easy to build
>>something simple and flawed, and people will build things that aren't
>>simple but are still flawed. Microsoft has done this to the world a
>>few times - how many people do you know who use Excel for jobs that
>>would be better served by a database? (Or by a script, even; CSV
>>import into one sheet, manual fixups as required, then CSV export from
>>another sheet that has a bunch of formula cells. I've seen that done.)
>
>   The way they package Office doesn't help... Ignoring the
>subscription-based "Office 365" I was at Best Buy a few weeks ago... The
>only local-install version of Office (Home&Office I think) had Word, Excel,
>and PowerPoint.
>
>   How many /home/ users are creating presentations/slide-shows? Drop
>PowerPoint and include Access (which is essentially a GUI builder front-end
>for the Jet RDBM engine) and Publisher (seems a home user would do more
>with invitations, cards, and maybe reports/brochures)!

The one thing that isn't available with LibreOffice is OneNote, which you
don't seem to be able to get separately, and doesn't seem to have any
documentation (ie 3rd party books on it). But there is Evernote. 




-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Steve Hayes
On Sun, 27 Jul 2014 10:10:44 +0200, Chris “Kwpolska” Warrick
 wrote:

>On Sun, Jul 27, 2014 at 6:49 AM, Steve Hayes  wrote:
>> The one thing that isn't available with LibreOffice is OneNote, which you
>> don't seem to be able to get separately, and doesn't seem to have any
>> documentation (ie 3rd party books on it). But there is Evernote.
>
>OneNote is actually available for free: http://www.onenote.com/
>(though Evernote is superior)

That's interresting. 

The main reason I use Evernote is that I found a book for it, and couln't find
one for OneNote. 

OneNote does tables better than Evernote. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Steve Hayes
On Sun, 27 Jul 2014 14:42:49 +0200, Chris “Kwpolska” Warrick
 wrote:

>On Sun, Jul 27, 2014 at 2:24 PM, Steve Hayes  wrote:
>> The main reason I use Evernote is that I found a book for it, and couln't 
>> find
>> one for OneNote.
>
>Both are actually self-explanatory.  You should not need a book to use
>either, just an ability to read on-screen prompts and instruction.

Getting information in is easy enough, getting it out again is the problem,. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python Programing for the Absoulte Beginner

2014-08-02 Thread Steve Hayes
On Sun, 3 Aug 2014 08:30:15 +1000, Chris Angelico  wrote:

>On Sun, Aug 3, 2014 at 8:13 AM, Seymore4Head
> wrote:
>> https://www.google.com/webhp?hl=en&tab=ww&gws_rd=ssl#hl=en&q=python+programing+for+the+absolute+beginner
>>
>> There is a book listed as a PDF.
>>
>> When I try the first example of print "Game Over" I get a syntax
>> error.
>>
>> I have tried running the command line and the GUI.  I get the feeling
>> there is something else I need to run.
>>
>> http://imgur.com/RH3yczP
>
>Try this instead:
>
>print("Game Over")
>
>You're looking at a Python 2 book, and you're running Python 3. I
>would recommend instead getting a Python 3 tutorial:

Or do as I did, and install Python 2. 


-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python Programing for the Absoulte Beginner

2014-08-02 Thread Steve Hayes
On Sun, 3 Aug 2014 15:12:02 +1000, Chris Angelico  wrote:

>On Sun, Aug 3, 2014 at 3:11 PM, Steve Hayes  wrote:
>>>You're looking at a Python 2 book, and you're running Python 3. I
>>>would recommend instead getting a Python 3 tutorial:
>>
>> Or do as I did, and install Python 2.
>
>Better to install and learn Python 3. Much better.

I've got too big an investment in books on Python 2, and there are no books
available on Python 3 (I don't regard downloadable PDFs or other onlines stuff
as "books"). 




-- 
Steve Hayes from Tshwane, South Africa
Web:  http://www.khanya.org.za/stevesig.htm
Blog: http://khanya.wordpress.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
-- 
https://mail.python.org/mailman/listinfo/python-list