Animations with mayavi and moviepy

2016-05-10 Thread Poul Riis
The animation example below (taken from http://zulko.github.io/blog/2014/11/29/data-animations-with-python-and-moviepy/) stops after producing and displaying the 41 frames. In stead, after producing the 41 frames I want to make it loop continuously. I have googled and googled and googled and sti

Re: Intel Distribution for Python

2016-05-10 Thread Chris Angelico
On Wed, May 11, 2016 at 1:17 PM, Arshpreet Singh wrote: > Thanks for the information, I just applied for program but I got one mail > about license and expiration. > > > This software license expires on October 29, 2016. > > > I am not able to understand that can anyone put some light on that h

Re: Intel Distribution for Python

2016-05-10 Thread Terry Reedy
On 5/10/2016 11:12 PM, Chris Angelico wrote: On Wed, May 11, 2016 at 12:00 PM, beliavsky--- via Python-list wrote: The Intel Distribution for Python 2017 Beta https://software.intel.com/en-us/python-distribution is available for Windows, Linux, and Mac OS for Python 2.7 and 3.5. "The Beta pr

Re: Intel Distribution for Python

2016-05-10 Thread Arshpreet Singh
Thanks for the information, I just applied for program but I got one mail about license and expiration. This software license expires on October 29, 2016. I am not able to understand that can anyone put some light on that how license can be expired? -- https://mail.python.org/mailman/listi

Re: Intel Distribution for Python

2016-05-10 Thread Chris Angelico
On Wed, May 11, 2016 at 12:00 PM, beliavsky--- via Python-list wrote: > The Intel Distribution for Python 2017 Beta > https://software.intel.com/en-us/python-distribution is available for > Windows, Linux, and Mac OS for Python 2.7 and 3.5. > > "The Beta product adds new Python packages like sci

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-10 Thread Paul Rubin
DFS writes: > But, I am dead serious about becoming a good Python developer, and I > truly appreciate all clp replies. People are more likely to reply to you if your posting style makes you enjoyable instead of annoying to engage with. That's community spirit. Friendly participation is always we

Intel Distribution for Python

2016-05-10 Thread beliavsky--- via Python-list
The Intel Distribution for Python 2017 Beta https://software.intel.com/en-us/python-distribution is available for Windows, Linux, and Mac OS for Python 2.7 and 3.5. "The Beta product adds new Python packages like scikit-learn, mpi4py, numba, conda, tbb (Python interfaces to Intel® Threading Bui

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-10 Thread Chris Angelico
On Wed, May 11, 2016 at 10:16 AM, Thomas 'PointedEars' Lahn wrote: >>> With the “%” string operator (deprecated), >> >> according to who? > > TFM. [citation needed] ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-10 Thread Thomas 'PointedEars' Lahn
DFS wrote: > On 5/8/2016 8:44 PM, Thomas 'PointedEars' Lahn wrote: >> DFS wrote: >>> sSQL = "line 1\n" >>> sSQL += "line 2\n" >>> sSQL += "line 3" >> >> […] >> #--- >> sSQL = ("line 1\n" >> "line 2\n" >> "line 3")

Moderation [was Re: ...What's wrong with this concatenation statement?]

2016-05-10 Thread Steven D'Aprano
On Wed, 11 May 2016 10:16 am, Thomas 'PointedEars' Lahn wrote: > (Note to moderators: But you have let *this* through, huh?) Moderation only affects the mailing list python-list@python.org, the Usenet mirror remains unmoderated. If you are reading this via Usenet, you may see DFS's insults, but

Re: pylint woes

2016-05-10 Thread MRAB
On 2016-05-10 23:36, DFS wrote: [snip] If lists are still being created: * at every moment in time, len(list1) returns a length that doesn't change even if data is added to the list after the call to len(). Example: If the list has 100 items in it at the point len(list) is called: for i in ra

Re: String concatenation (was: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?)

2016-05-10 Thread sohcahtoa82
On Sunday, May 8, 2016 at 5:44:25 PM UTC-7, Thomas 'PointedEars' Lahn wrote: > Also, it would be a good idea if you posted under your real name. Internet > is the thing with cables; Usenet is the thing with people. I for one tend > to avoid communicating with few-letter entities; exceptions to

Re: python - handling HTTP requests asynchronously

2016-05-10 Thread Michael Selik
On Sat, May 7, 2016 at 4:46 PM wrote: > Il giorno sabato 7 maggio 2016 21:04:47 UTC+2, Michael Selik ha scritto: > > On Fri, May 6, 2016 at 3:01 AM wrote: > > > > > The PDF is generated through an external API. Since currently is > generated > > > on demand, this is handled synchronously via an

Re: What should a decorator do if an attribute already exists?

2016-05-10 Thread Michael Selik
On Tue, May 10, 2016 at 11:48 AM Peter Otten <__pete...@web.de> wrote: > Steven D'Aprano wrote: > > I have a decorator that adds an attribute to the decorated function: > >inner.instrument = instrument > >return inner > > the original instrument is still accessible as f.__wrapped__.instr

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-10 Thread Ethan Furman
On 05/10/2016 02:21 PM, DFS wrote: [some inflammatory nonsense] and is now being moderated. If you see flame-bait in one of the unmoderated venues please ignore it. Thanks. -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

Re: pylint woes

2016-05-10 Thread DFS
On 5/7/2016 10:50 PM, Chris Angelico wrote: On Sun, May 8, 2016 at 12:15 PM, DFS wrote: The only reason for j in range(len(list1)): do something with list1[j], list2[j], list3[j], etc. or for item1, item2, item3 in zip(list1, list2, list3): do something with the items works is bec

Re: The irony

2016-05-10 Thread sohcahtoa82
On Tuesday, May 10, 2016 at 11:03:47 AM UTC-7, DFS wrote: > "There should be one-- and preferably only one --obvious way to do it." > > https://www.python.org/dev/peps/pep-0020/ > > Each method of string concatenation has different uses. > --- > sSQL = "line 1\

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-10 Thread Ethan Furman
On 05/10/2016 02:21 PM, DFS wrote: On 5/9/2016 3:53 AM, Steven D'Aprano wrote: Pointlessly provocative subject line edited. huh? You called yourself a "master crafts/wo/man". Challenging someone's boastful claim isn't trolling. My expectation was to not be met by smug, sanctimonious

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-10 Thread Chris Angelico
On Wed, May 11, 2016 at 7:21 AM, DFS wrote: > Take your net-nannying somewhere else. It's not welcome /anywhere/. DFS, you are out of line. Please reconsider the *way* you are saying things, and especially, don't call people names. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-10 Thread DFS
On 5/10/2016 2:15 PM, Ian Kelly wrote: On Tue, May 10, 2016 at 10:16 AM, DFS wrote: On 5/9/2016 3:53 AM, Steven D'Aprano wrote: On Monday 09 May 2016 09:10, DFS wrote: sSQL = "line 1\n" sSQL += "line 2\n" sSQL += "line 3" Pointlessly provocative subject line edited. huh? You called

Re: Pylint prefers list comprehension over filter...

2016-05-10 Thread DFS
On 5/10/2016 3:34 PM, Terry Reedy wrote: On 5/10/2016 9:51 AM, Claudiu Popa wrote: Thank you for letting us know. While pylint is indeed opinionated in some cases, we're not trying to be "arrogant", as you put it, towards Guido or the other core developers. What's sad in this particular case is

Re: Pylint prefers list comprehension over filter...

2016-05-10 Thread Chris Angelico
On Wed, May 11, 2016 at 1:35 AM, wrote: > Basically, pylint overwhelms the user > right now with its enabled checks and we're trying to split these > into tiers, as seen in the following: > > $ pylint myproject > # core checkers enabled > 10/10 - Congrats, you're clean on a core. You

Re: Pylint prefers list comprehension over filter...

2016-05-10 Thread Terry Reedy
On 5/10/2016 11:35 AM, pcmantic...@gmail.com wrote: The bad-builtin check is now an extension, so using the first case would enable it. The 'old' (not 'bad') builtin check should include using map instead of a comprehension. The check should also pay attention to whether the function argume

Re: Pylint prefers list comprehension over filter...

2016-05-10 Thread Terry Reedy
On 5/10/2016 9:51 AM, Claudiu Popa wrote: Thank you for letting us know. While pylint is indeed opinionated in some cases, we're not trying to be "arrogant", as you put it, towards Guido or the other core developers. What's sad in this particular case is that the feedback had to come in rather a

Re: json.loads(...) ValueError: Expecting value: line 1 column 1 (char 0)

2016-05-10 Thread zljubisic
That was it. Thanks guys for your help. Best regards. -- https://mail.python.org/mailman/listinfo/python-list

Re: An educational site written in Python (from YCombinator's RFS)

2016-05-10 Thread DFS
On 5/10/2016 2:13 AM, Cai Gengyang wrote: Ok, so after reading YCombinator's RFS, I have decided that I want to work on this : --- EDUCATION If we can fix education, we can eventua

Re: The irony

2016-05-10 Thread Tim Chase
(interspersing letters to name your examples) On 2016-05-10 14:03, DFS wrote: A (nope) > --- > sSQL = "line 1\n" > sSQL += "line 2\n" > sSQL += "line 3" B (see below) > --- > sSQL = ("line 1\n" > "line 2\n" > "lin

Re: The irony

2016-05-10 Thread Ned Batchelder
On Tuesday, May 10, 2016 at 2:03:47 PM UTC-4, DFS wrote: > Which is the "one obvious way" to do it? > > I liked: > > sSQL = "line 1\n" > sSQL += "line 2\n" > sSQL += "line 3" > > > but it's frowned upon in PEP8. I would use a way you didn't show: sSQL = """ line1 line2

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-10 Thread Ian Kelly
On Tue, May 10, 2016 at 10:16 AM, DFS wrote: > On 5/9/2016 3:53 AM, Steven D'Aprano wrote: >> >> On Monday 09 May 2016 09:10, DFS wrote: >> >>> sSQL = "line 1\n" >>> sSQL += "line 2\n" >>> sSQL += "line 3" >> >> >> Pointlessly provocative subject line edited. > > > > huh? You called yourself a "

The irony

2016-05-10 Thread DFS
"There should be one-- and preferably only one --obvious way to do it." https://www.python.org/dev/peps/pep-0020/ --- sSQL = "line 1\n" sSQL += "line 2\n" sSQL += "line 3" --- sSQL = ("line 1\n" "line 2\n" "line 3"

Re: An educational site written in Python (from YCombinator's RFS)

2016-05-10 Thread Ned Batchelder
On Tuesday, May 10, 2016 at 2:13:42 AM UTC-4, Cai Gengyang wrote: > > EDUCATION > > If we can fix education, we can eventually do everything else on this list. > The first attempts to use technology to fix education have focused on using > the Internet to distribute traditional content to a wide

Re: What should a decorator do if an attribute already exists?

2016-05-10 Thread Ethan Furman
On 05/10/2016 08:45 AM, Steven D'Aprano wrote: I have a decorator that adds an attribute to the decorated function: My question is, what should I do if the decorated function already has an instrument attribute? If the decorator is adding an attribute for the decorated thing to use, and th

Re: What should a decorator do if an attribute already exists?

2016-05-10 Thread MRAB
On 2016-05-10 17:06, Stephen Hansen wrote: On Tue, May 10, 2016, at 08:45 AM, Steven D'Aprano wrote: I have a decorator that adds an attribute to the decorated function: [...] My question is, what should I do if the decorated function already has an instrument attribute? 1. raise an exception?

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-10 Thread Steven D'Aprano
On Wed, 11 May 2016 02:16 am, DFS wrote: > huh? You called yourself a "master crafts/wo/man". [...] > DuhPricko *plonk* -- Steven -- https://mail.python.org/mailman/listinfo/python-list

Re: What should a decorator do if an attribute already exists?

2016-05-10 Thread Peter Otten
Steven D'Aprano wrote: > I have a decorator that adds an attribute to the decorated function: > > > def decorate(func): > instrument = make_instrument() > > @functools.wraps(func) > def inner(*args): > instrument.start() > result = func(*args) > instrument.fi

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-10 Thread Rustom Mody
On Tuesday, May 10, 2016 at 9:46:45 PM UTC+5:30, DFS wrote: > On 5/9/2016 3:53 AM, Steven D'Aprano wrote: > > On Monday 09 May 2016 09:10, DFS wrote: > > > >> sSQL = "line 1\n" > >> sSQL += "line 2\n" > >> sSQL += "line 3" > > > > Pointlessly provocative subject line edited. > > > huh? You call

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-10 Thread Stephen Hansen
On Tue, May 10, 2016, at 09:16 AM, DFS wrote: > But no, "master", your answers are incorrect. What's wrong with that > concat statement is that += concatenation is frowned upon by python's > creator, and is not recommended (in PEP8): > > > Code should be written in a way that does not disadva

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-10 Thread DFS
On 5/9/2016 3:53 AM, Steven D'Aprano wrote: On Monday 09 May 2016 09:10, DFS wrote: sSQL = "line 1\n" sSQL += "line 2\n" sSQL += "line 3" Pointlessly provocative subject line edited. huh? You called yourself a "master crafts/wo/man". -

Re: What should a decorator do if an attribute already exists?

2016-05-10 Thread Stephen Hansen
On Tue, May 10, 2016, at 08:45 AM, Steven D'Aprano wrote: > I have a decorator that adds an attribute to the decorated function: > [...] > My question is, what should I do if the decorated function already has an > instrument attribute? > > 1. raise an exception? This. Your decorator should, IMHO

What should a decorator do if an attribute already exists?

2016-05-10 Thread Steven D'Aprano
I have a decorator that adds an attribute to the decorated function: def decorate(func): instrument = make_instrument() @functools.wraps(func) def inner(*args): instrument.start() result = func(*args) instrument.finish() return result inner.instrum

Re: Pylint prefers list comprehension over filter...

2016-05-10 Thread pcmanticore
On Tuesday, May 10, 2016 at 5:58:37 PM UTC+3, Steven D'Aprano wrote: > Hi Claudiu, > > > On Tue, 10 May 2016 11:51 pm, Claudiu Popa wrote: > > > Thank you for letting us know. While pylint is indeed > > opinionated in some cases, we're not trying to be > > "arrogant", as you put it, towards Guid

Re: Pylint prefers list comprehension over filter...

2016-05-10 Thread Steven D'Aprano
A further comment: On Tue, 10 May 2016 11:51 pm, Claudiu Popa wrote: > Thank you for letting us know. While pylint is indeed > opinionated in some cases, we're not trying to be > "arrogant", And from the docs: "What Pylint says is not to be taken as gospel and Pylint isn’t smarter than you are

Re: Pylint prefers list comprehension over filter...

2016-05-10 Thread Steven D'Aprano
Hi Claudiu, On Tue, 10 May 2016 11:51 pm, Claudiu Popa wrote: > Thank you for letting us know. While pylint is indeed > opinionated in some cases, we're not trying to be > "arrogant", as you put it, towards Guido or the other core > developers. What's sad in this particular case is that the > fe

Re: TypeError: unorderable types: function() < int()

2016-05-10 Thread Steven D'Aprano
On Tue, 10 May 2016 11:47 pm, Chris Angelico wrote: > On Tue, May 10, 2016 at 11:40 PM, Steven D'Aprano > wrote: >> You are asking the player to hit enter at 10 seconds. *Exactly* ten >> seconds. The computer can measure time to well under a millionth of a >> second, I'm pretty sure that nobody,

Re: Pylint prefers list comprehension over filter...

2016-05-10 Thread Claudiu Popa
On Sunday, May 8, 2016 at 4:41:02 AM UTC+3, Terry Reedy wrote: > On 5/7/2016 3:17 PM, Christopher Reimer wrote: > > > For my purposes, I'm using the list comprehension over filter to keep > > pylint happy. > > How sad. The pylint developers arrogantly take it on themselves to > revise Python, a

Re: TypeError: unorderable types: function() < int()

2016-05-10 Thread Chris Angelico
On Tue, May 10, 2016 at 11:40 PM, Steven D'Aprano wrote: > You are asking the player to hit enter at 10 seconds. *Exactly* ten seconds. > The computer can measure time to well under a millionth of a second, I'm > pretty sure that nobody, no matter how skillful, can be expected to hit > enter after

Re: TypeError: unorderable types: function() < int()

2016-05-10 Thread Steven D'Aprano
Hello George, and welcome! On Tue, 10 May 2016 07:01 pm, George Molsom wrote: > I have created a program in class 'make a game that tests how good people > are at guessing when 10 seconds has elapsed.' > > The following are the code I currently have and the error produced when I > attempt to ru

Re: TypeError: unorderable types: function() < int()

2016-05-10 Thread Chris Angelico
On Tue, May 10, 2016 at 10:19 PM, Dennis Lee Bieber wrote: > You invoke strftime() [in default: use current time mode], but pass it > a format that is not defined in the documentation (or wasn't in Python 2.7 > which I'm still running). #2 > %s (lowercase) formats the seconds field

Re: pygame easy create

2016-05-10 Thread harirammanohar
On Tuesday, May 10, 2016 at 10:51:58 AM UTC+5:30, hariram...@gmail.com wrote: > On Monday, May 9, 2016 at 11:12:47 PM UTC+5:30, sohca...@gmail.com wrote: > > On Monday, May 9, 2016 at 3:15:45 AM UTC-7, hariram...@gmail.com wrote: > > > On Monday, May 9, 2016 at 10:50:47 AM UTC+5:30, hariram...@gmai

ANN: eGenix pyOpenSSL Distribution 0.13.15

2016-05-10 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.13.15 An easy-to-install and easy-to-use distribution of the pyOpenSSL Python interface for OpenS

Re: TypeError: unorderable types: function() < int()

2016-05-10 Thread Ben Finney
George Molsom writes: > I have created a program in class 'make a game that tests how good > people are at guessing when 10 seconds has elapsed.' Welcome! You may want to join the dedicated beginners forum https://mail.python.org/mailman/listinfo/tutor> where we collaboratively teach foundationa

TypeError: unorderable types: function() < int()

2016-05-10 Thread George Molsom
I have created a program in class 'make a game that tests how good people are at guessing when 10 seconds has elapsed.' The following are the code I currently have and the error produced when I attempt to run it. I have tried everything I can think of to resolve the issue, and I have also run t

Re: String concatenation

2016-05-10 Thread David Palao
2016-05-10 9:54 GMT+02:00 Steven D'Aprano : > On Tuesday 10 May 2016 17:13, Paul Rubin wrote: > >> Steven D'Aprano writes: >>> Australia's naming laws almost certainly wouldn't allow such a name. >> >> https://en.wikipedia.org/wiki/Facebook_real- > name_policy_controversy#Vietnamese > > "Phuc Dat

Re: String concatenation

2016-05-10 Thread Steven D'Aprano
On Tuesday 10 May 2016 17:13, Paul Rubin wrote: > Steven D'Aprano writes: >> Australia's naming laws almost certainly wouldn't allow such a name. > > https://en.wikipedia.org/wiki/Facebook_real- name_policy_controversy#Vietnamese "Phuc Dat Bich" was a hoax, but it probably would be allowed in A

Re: String concatenation

2016-05-10 Thread Paul Rubin
Steven D'Aprano writes: > Australia's naming laws almost certainly wouldn't allow such a name. https://en.wikipedia.org/wiki/Facebook_real-name_policy_controversy#Vietnamese -- https://mail.python.org/mailman/listinfo/python-list

Re: An educational site written in Python (from YCombinator's RFS)

2016-05-10 Thread Joel Goldstick
On Tue, May 10, 2016 at 2:13 AM, Cai Gengyang wrote: > Ok, so after reading YCombinator's RFS, I have decided that I want to work on > this : > > > --- > > EDUCATION > > If we can fix e