Re: Gmail eats Python

2015-07-25 Thread Ian Kelly
On Jul 25, 2015 4:51 PM, "Ben Finney" wrote: > > Laura Creighton writes: > > > So it was my fault by sending him a reply with >>> to the far left. > > No, it was Google Mail's failt for messing with the content of the > message. > > Never forget that these services are meant to serve us. When the

Re: Gmail eats Python

2015-07-25 Thread Chris Angelico
On Sun, Jul 26, 2015 at 4:15 PM, Rustom Mody wrote: > Well Almost. > Emacs used to stand for "Eight Megabytes And Constantly Swapping" > At a time when 8 MB was large. Is it today? > So let me ask you: > Do you not use ½ dozen (at least) languages? > And their interpreters (when they exist) > And

Re: Gmail eats Python

2015-07-25 Thread Rustom Mody
On Sunday, July 26, 2015 at 11:05:14 AM UTC+5:30, Chris Angelico wrote: > On Sun, Jul 26, 2015 at 3:28 PM, Rustom Mody wrote: > > JFTR: Ive been using emacs for 20+ years. And I have the increasing feeling > > that my students are getting fedup with it (and me). Used Idle for my last > > python

Re: Hi

2015-07-25 Thread John Ladasky
On Saturday, July 25, 2015 at 10:39:48 AM UTC-7, 김지훈 wrote: > Hi. > I recently changed my path to be a programmer so I decided to learn python. > I downloaded files(Python 2.7.10 - 2015-05-23) to setup on your website. Unless you need to maintain someone's older software, I would personally recom

Re: Gmail eats Python

2015-07-25 Thread Ian Kelly
On Jul 25, 2015 8:36 AM, "Laura Creighton" wrote: > Ow! Gmail is understanding the >>> I stuck in as 'this is from the > python console as a quoting marker and thinks it can reflow that. You didn't use >>> in the email that I saw. That's actually three levels of quoting: one added in your reply

Re: Gmail eats Python

2015-07-25 Thread Jussi Piitulainen
Steven D'Aprano writes: > On Sun, 26 Jul 2015 03:47 am, Jussi Piitulainen wrote: > >> Just in case anyone cares, Gnus shows me those indentations as octal >> codes, \302\240\302\240 (followed by one ASCII space). I guess a >> \302\240 is a NO-BREAK SPACE in UTF-8, and I guess Gnus does not know >>

Re: Gmail eats Python

2015-07-25 Thread Chris Angelico
On Sun, Jul 26, 2015 at 3:28 PM, Rustom Mody wrote: > JFTR: Ive been using emacs for 20+ years. And I have the increasing feeling > that my students are getting fedup with it (and me). Used Idle for my last > python > course without too much grief. If only it were an option for 25 programming

Re: Gmail eats Python

2015-07-25 Thread Jussi Piitulainen
Laura Creighton writes: > In a message of Sat, 25 Jul 2015 20:52:38 +0300, Jussi Piitulainen writes: >>Jussi Piitulainen writes: >>> Has the world adopted UTF-8 as the default charset now or what? >>> (I'll be only glad to hear that it has, if it has, but a reference >>> to some sort of internet s

Re: Gmail eats Python

2015-07-25 Thread Rustom Mody
On Sunday, July 26, 2015 at 10:31:20 AM UTC+5:30, Jussi Piitulainen wrote: > Marko Rauhamaa writes: > > > Jussi Piitulainen writes: > > >> Just in case anyone cares, Gnus shows me those indentations as octal > >> codes, \302\240\302\240 (followed by one ASCII space). I guess a > >> \302\240 is a

Re: Gmail eats Python

2015-07-25 Thread Jussi Piitulainen
Marko Rauhamaa writes: > Jussi Piitulainen writes: >> Just in case anyone cares, Gnus shows me those indentations as octal >> codes, \302\240\302\240 (followed by one ASCII space). I guess a >> \302\240 is a NO-BREAK SPACE in UTF-8, and I guess Gnus does not know >> this because there is no chars

Re: 42**1000000 is CPU time free

2015-07-25 Thread Steven D'Aprano
On Sat, 25 Jul 2015 07:35 am, candide wrote: > Thanks to all for your response, I was not aware that the interpreter > evaluated pure litteral expressions at compile time. This is an implementation-dependent optimization, so different versions of Python may do more, or less, or even no, optimiza

Re: Hi

2015-07-25 Thread blue
... also you can have all python modules from : http://www.lfd.uci.edu/~gohlke/pythonlibs/ read this mini tutorial ( working also with python 2.7) : http://python-catalin.blogspot.ro/2014/10/windows-all-modules-for-python-34.html -- https://mail.python.org/mailman/listinfo/python-list

Re: Which GUI?

2015-07-25 Thread blue
Hi . I tested all. Now I think the PySide can more. https://pyside.readthedocs.org/en/latest/ See also http://free-tutorials.org/pyside-introduction-part-001/ http://python-catalin.blogspot.ro/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Gmail eats Python

2015-07-25 Thread Steven D'Aprano
On Sun, 26 Jul 2015 03:47 am, Jussi Piitulainen wrote: > Just in case anyone cares, Gnus shows me those indentations as octal > codes, \302\240\302\240 (followed by one ASCII space). I guess a > \302\240 is a NO-BREAK SPACE in UTF-8, and I guess Gnus does not know > this because there is no charse

Re: Gmail eats Python

2015-07-25 Thread Steven D'Aprano
On Sun, 26 Jul 2015 02:34 am, Laura Creighton wrote: > Gmail eats Python. > > We just saw this mail back from Sebastian Luque which says in part: > try: all_your_code_which_is_happy_with_non_scalars except WhateverErrorPythonGivesYouWhenYouTryThisWithScalars: whatever_you_want_to_

Re: scalar vs array and program control

2015-07-25 Thread Steven D'Aprano
On Sat, 25 Jul 2015 02:18 pm, Seb wrote: > Hello, > > I'm fairly new to Python, struggling to write in a more object-oriented, > functional style. I just wrote a function that takes two arrays > representing sine (y) and cosine (x) angle coordinates, and returns the > angle in degrees. Alas, y

Re: UDP and Python2.7 and 2.7 documentation gives error!

2015-07-25 Thread Grant Edwards
On 2015-07-25, =?utf-8?q?St=C3=A9phane?= Wirtel wrote: > the bind function is for the server, not for the client. It's for both. When you're sending, it is used to specify the source port. -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Re: Gmail eats Python

2015-07-25 Thread Grant Edwards
On 2015-07-25, Laura Creighton wrote: > Gmail eats Python. > > We just saw this mail back from Sebastian Luque which says in part: > try: all_your_code_which_is_happy_with_non_scalars except WhateverErrorPythonGivesYouWhenYouTryThisWithScalars: whatever_you_want_to_do_when_this_happ

Re: Gmail eats Python

2015-07-25 Thread Chris Angelico
On Sun, Jul 26, 2015 at 10:52 AM, Ben Finney wrote: > Zachary Ware writes: > >> If the gmail app on my phone had the option, I'd only send the plain >> text. > > Isn't that a good reason to avoid composing email messages on a program > that lacks the correct capability? > > If the GMail app lacks

Re: Gmail eats Python

2015-07-25 Thread Ben Finney
Zachary Ware writes: > If the gmail app on my phone had the option, I'd only send the plain > text. Isn't that a good reason to avoid composing email messages on a program that lacks the correct capability? If the GMail app lacks the ability to send plain text, there are better alternatives (in

Re: Gmail eats Python

2015-07-25 Thread Ben Finney
Laura Creighton writes: > So it was my fault by sending him a reply with >>> to the far left. No, it was Google Mail's failt for messing with the content of the message. Never forget that these services are meant to serve us. When they fail to do so because they're violating internet standards,

Re: Python Questions - July 25, 2015

2015-07-25 Thread tjohnson
On Saturday, July 25, 2015 at 5:40:02 AM UTC-4, E.D.G. wrote: > Posted by E.D.G. July 25, 2015 > >This posting involves general interest matters and some specific > questions regarding Python code usage. Any help would be appreciated. > > 1. Program conversion effort > 2. Specific code

Re: Which GUI?

2015-07-25 Thread Kevin Walzer
On 7/24/15 4:11 PM, Cecil Westerhof wrote: Top-posting is (rightly) frowned upon in this group. Could you use inline posting next time? Meta is definitely NOT discouraged on this list, but it should be. Nothing like derailing an interesting thread with lectures on where to post. And someo

Re: Gmail eats Python

2015-07-25 Thread Zachary Ware
On Jul 25, 2015 2:45 PM, "Marko Rauhamaa" wrote: > (It's another question what place text/html has on this forum in the > first place.) If the gmail app on my phone had the option, I'd only send the plain text. As is, I'm just glad it does send a plain text version :) -- Zach (On a phone) -- ht

Re: Gmail eats Python

2015-07-25 Thread Marko Rauhamaa
Jussi Piitulainen : >>    >>> def test(): pass >>    ... >>    >>> print('Hi world') >>    Hi world >>    >>> > > Just in case anyone cares, Gnus shows me those indentations as octal > codes, \302\240\302\240 (followed by one ASCII space). I guess a > \302\240 is a NO-BREAK SPACE in UTF-

Re: Which GUI?

2015-07-25 Thread llanitedave
On Friday, July 24, 2015 at 4:16:19 PM UTC-7, Mark Lawrence wrote: > On 24/07/2015 23:20, Frank Miles wrote: > > On Fri, 24 Jul 2015 19:31:36 +0100, Paulo da Silva wrote: > > > > [snip] > > > > > >> Which technology is better? > >> matplotlib? > >> tkinter? > >> wxwidgets? > >> qt? > > > > Sadly -

Re: Python 3.4 Idle?

2015-07-25 Thread Mark Lawrence
On 24/07/2015 02:50, Steve Burrus wrote: On Thursday, July 23, 2015 at 8:41:03 PM UTC-5, Chris Angelico wrote: On Fri, Jul 24, 2015 at 11:34 AM, Steve Burrus wrote: I got Idle the other day biut had to get the older version, 2.7, of python to get it. So I wonder if there is an Idle version t

Re: Gmail eats Python

2015-07-25 Thread Jon Ribbens
On 2015-07-25, Jussi Piitulainen wrote: > Just in case anyone cares, Gnus shows me those indentations as octal > codes, \302\240\302\240 (followed by one ASCII space). I guess a > \302\240 is a NO-BREAK SPACE in UTF-8, and I guess Gnus does not know > this because there is no charset specification

Re: Hi

2015-07-25 Thread Emile van Sebille
On 7/24/2015 10:30 PM, 김지훈 wrote: Hi. I recently changed my path to be a programmer so I decided to learn python. I downloaded files(Python 2.7.10 - 2015-05-23 ) to setup on your website. (also got the version of x64 because of my cpu) But wh

Re: UDP and Python2.7 and 2.7 documentation gives error!

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 19:43:45 +0200, "Stéphane Wirtel" writes: >the bind function is for the server, not for the client. > >here is an example: https://wiki.python.org/moin/UdpCommunication > >Stephane >On 25 Jul 2015, at 19:10, Nils wrote: > >> UDP and Python2.7 and 2.7 documentation g

Re: Gmail eats Python

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 20:52:38 +0300, Jussi Piitulainen writes: >Jussi Piitulainen writes: >> Has the world adopted UTF-8 as the default charset now or what? (I'll >> be only glad to hear that it has, if it has, but a reference to some >> sort of internet standard would be nice.) I don'

Re: UDP and Python2.7 and 2.7 documentation gives error!

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 19:10:53 +0200, Nils writes: >UDP and Python2.7 and 2.7 documentation gives error! >I am trying to send UDP messages from one PC to another, using P2.7. >BUT I get an error I do not understand, this as I am following the doc's >for Python2.7! Listing of the script w

Re: Gmail eats Python

2015-07-25 Thread Jussi Piitulainen
Jussi Piitulainen writes: > Zachary Ware writes: [snip what I quoted from him] Oh well - Gnus made me go through some hoops to send the characters that were in the unknown-to-it encoding, and then mangled them. This is what I had added: > Just in case anyone cares, Gnus shows me those indentati

Re: Gmail eats Python

2015-07-25 Thread Jussi Piitulainen
Zachary Ware writes: > On Jul 25, 2015 11:35 AM, "Laura Creighton" wrote: >> >> Gmail eats Python. >> >> We just saw this mail back from Sebastian Luque which says in part: >> >> >>> try: all_your_code_which_is_happy_with_non_scalars except >> >>> WhateverErrorPythonGivesYouWhenYouTryThisWithScala

Re: scalar vs array and program control

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 18:53:33 +0200, "Thomas 'PointedEars' Lahn" wr ites: >Laura Creighton wrote: > >> […] "Thomas 'PointedEars' Lahn" [writes]: >>> Laura Creighton wrote: […] You really cannot make your code 'more functional' and 'more object-oriented' at the same time -- mo

Re: UDP and Python2.7 and 2.7 documentation gives error!

2015-07-25 Thread Stéphane Wirtel
the bind function is for the server, not for the client. here is an example: https://wiki.python.org/moin/UdpCommunication Stephane On 25 Jul 2015, at 19:10, Nils wrote: UDP and Python2.7 and 2.7 documentation gives error! I am trying to send UDP messages from one PC to another, using P2.7. BU

Re: Python 3.4 Idle?

2015-07-25 Thread Irmen de Jong
On 25-7-2015 18:00, Steve Burrus wrote: > On Thursday, July 23, 2015 at 8:50:47 PM UTC-5, Steve Burrus wrote: >> On Thursday, July 23, 2015 at 8:41:03 PM UTC-5, Chris Angelico wrote: >>> On Fri, Jul 24, 2015 at 11:34 AM, Steve Burrus >>> wrote: I got Idle the other day biut had to get the ol

Hi

2015-07-25 Thread 김지훈
Hi. I recently changed my path to be a programmer so I decided to learn python. I downloaded files(Python 2.7.10 - 2015-05-23 ) to setup on your website. (also got the version of x64 because of my cpu) But when I try to install it, there is an

UDP and Python2.7 and 2.7 documentation gives error!

2015-07-25 Thread Nils
UDP and Python2.7 and 2.7 documentation gives error! I am trying to send UDP messages from one PC to another, using P2.7. BUT I get an error I do not understand, this as I am following the doc's for Python2.7! Listing of the script with error result following: im

Re: Gmail eats Python

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 11:51:49 -0500, Zachary Ware writes: >On Jul 25, 2015 11:35 AM, "Laura Creighton" wrote: >> >> Gmail eats Python. >> >> We just saw this mail back from Sebastian Luque which says in part: >> >> >>> try: all_your_code_which_is_happy_with_non_scalars except >> >>> Wh

Re: scalar vs array and program control

2015-07-25 Thread Thomas 'PointedEars' Lahn
Thomas 'PointedEars' Lahn wrote: > # > class A: > def __init__ (self, v=0): > self._value = v > > def foo (self, f, b): > return f(f, self._value, b) I mean return f(self._value, b) -- Poin

Re: scalar vs array and program control

2015-07-25 Thread Thomas 'PointedEars' Lahn
Laura Creighton wrote: > […] "Thomas 'PointedEars' Lahn" [writes]: >> Laura Creighton wrote: >>> […] You really cannot make your code 'more functional' and 'more >>> object-oriented' at the same time -- more in one style implies less >>> in the other. >> How did you get that idea? > > Because pu

Re: Gmail eats Python

2015-07-25 Thread Zachary Ware
On Jul 25, 2015 11:35 AM, "Laura Creighton" wrote: > > Gmail eats Python. > > We just saw this mail back from Sebastian Luque which says in part: > > >>> try: all_your_code_which_is_happy_with_non_scalars except > >>> WhateverErrorPythonGivesYouWhenYouTryThisWithScalars: > >>> whatever_you_want_to

Re: Python 3.4 Idle?

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 09:00:18 -0700, Steve Burrus writes: >On Thursday, July 23, 2015 at 8:50:47 PM UTC-5, Steve Burrus wrote: >> On Thursday, July 23, 2015 at 8:41:03 PM UTC-5, Chris Angelico wrote: >> > On Fri, Jul 24, 2015 at 11:34 AM, Steve Burrus >> > wrote: >> > > I got Idle the

Gmail eats Python

2015-07-25 Thread Laura Creighton
Gmail eats Python. We just saw this mail back from Sebastian Luque which says in part: >>> try: all_your_code_which_is_happy_with_non_scalars except >>> WhateverErrorPythonGivesYouWhenYouTryThisWithScalars: >>> whatever_you_want_to_do_when_this_happens Ow! Gmail is understanding the >>> I stuck

Re: Python 3.4 Idle?

2015-07-25 Thread Steve Burrus
On Thursday, July 23, 2015 at 8:50:47 PM UTC-5, Steve Burrus wrote: > On Thursday, July 23, 2015 at 8:41:03 PM UTC-5, Chris Angelico wrote: > > On Fri, Jul 24, 2015 at 11:34 AM, Steve Burrus > > wrote: > > > I got Idle the other day biut had to get the older version, 2.7, of > > > python to get

Re: scalar vs array and program control

2015-07-25 Thread Sebastian P . Luque
On Sat, 25 Jul 2015 14:44:43 +0200, Laura Creighton wrote: > And because I was rushed and posted without revision I left out > something important. >> So this is, quite likely, the pattern that you are looking for: >> try: all_your_code_which_is_happy_with_non_scalars except >> WhateverErrorPyt

Re: Python Questions - July 25, 2015

2015-07-25 Thread Laura Creighton
>Another question: > > With my Perl programs, when I want to run the programs on a new >computer or even from a flash drive, basically all I do is copy an entire >existing Perl program directory to the new computer or flash drive. And >that works. However, to make certain that it will wo

Re: Python Questions - July 25, 2015

2015-07-25 Thread E.D.G.
"Laura Creighton" wrote in message news:mailman.977.1437831069.3674.python-l...@python.org... I can answer some of these. Posted by E.D.G. July 25, 2015 Thanks for all of the comments. My retired professional programming colleague is now going to have plenty of projects to work on.

Re: scalar vs array and program control

2015-07-25 Thread Peter Otten
Seb wrote: > Hello, > > I'm fairly new to Python, struggling to write in a more object-oriented, > functional style. I just wrote a function that takes two arrays > representing sine (y) and cosine (x) angle coordinates, and returns the > angle in degrees. I had initially written the function t

Re: scalar vs array and program control

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 14:57:14 +0200, "Thomas 'PointedEars' Lahn" wr ites: >Laura Creighton wrote: > >> […] You really cannot make your code 'more functional' and 'more object- >> oriented' at the same time -- more in one style implies less in the other. > >How did you get that idea? B

Re: Python Questions - July 25, 2015

2015-07-25 Thread Laura Creighton
I can answer some of these. In a message of Sat, 25 Jul 2015 04:39:43 -0500, "E.D.G." writes: > At the moment our Perl programs use Windows "Pipes" plus files in an >interactive mode to send data to Gnuplot so that the data can be plotted. >That actually produces good results. But it is a

Re: Python Questions - July 25, 2015

2015-07-25 Thread E.D.G.
wrote in message news:2adac4ce-976f-4a8a-849d-c76e484eb...@googlegroups.com... 1. Download the Windows installer from Python.org to get started. It's the simplest and most common way to get started with Python on Windows. 2. Your assumption that Python does not have GUI capabilities built into

Re: scalar vs array and program control

2015-07-25 Thread Thomas 'PointedEars' Lahn
Laura Creighton wrote: > […] You really cannot make your code 'more functional' and 'more object- > oriented' at the same time -- more in one style implies less in the other. How did you get that idea? -- PointedEars Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.

Re: scalar vs array and program control

2015-07-25 Thread Laura Creighton
And because I was rushed and posted without revision I left out something important. >So this is, quite likely, the pattern that you are looking for: > >try: > all_your_code_which_is_happy_with_non_scalars >except WhateverErrorPythonGivesYouWhenYouTryThisWithScalars: > whatever_you_wan

Python Questions - July 25, 2015

2015-07-25 Thread tandrewjohnson
Sorry, in #2 I meant to say that your assumption *is* correct. My bad. -- https://mail.python.org/mailman/listinfo/python-list

Python Questions - July 25, 2015

2015-07-25 Thread tandrewjohnson
1. Download the Windows installer from Python.org to get started. It's the simplest and most common way to get started with Python on Windows. 2. Your assumption that Python does not have GUI capabilities built into the language is not correct. But unlike Perl, it has the GUI library Tkinter bu

Re: scalar vs array and program control

2015-07-25 Thread Chris Angelico
On Sat, Jul 25, 2015 at 9:01 PM, Laura Creighton wrote: > How did I know to look for ValueErrors? > int("1.2") > Traceback (most recent call last): > File "", line 1, in > ValueError: invalid literal for int() with base 10: '1.2' > > Cause that is what Python gives you. If it had given

Re: Python Questions - July 25, 2015

2015-07-25 Thread Jonas Wielicki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, These are quite a few questions and I’ll try to answer some of them. I have cut out the windows specific questions because I cannot answer them . On 25.07.2015 11:39, E.D.G. wrote: > At the moment our Perl programs use Windows "Pipes" plus file

Re: scalar vs array and program control

2015-07-25 Thread Laura Creighton
You have a bit of a problem, in that "functional" and "object-oriented" are two different styles of programming. You really cannot make your code 'more functional' and 'more object-oriented' at the same time -- more in one style implies less in the other. I think you may have got the mistaken ide

Python Questions - July 25, 2015

2015-07-25 Thread E.D.G.
Posted by E.D.G. July 25, 2015 This posting involves general interest matters and some specific questions regarding Python code usage. Any help would be appreciated. 1. Program conversion effort 2. Specific code questions 1. PROGRAM CONVERSION EFFORT An effort is underway by s