Re: [Tutor] differences between map and partial?

2016-09-27 Thread Steven D'Aprano
Hello Liu An and welcome! On Tue, Sep 27, 2016 at 05:23:52PM +0800, source liu wrote: > this one works print p.map(partial(file_op,lineop=unity),input) > this one doesn't work print p.map(lambda x:file_op(x,unity), input) What does "doesn't work" mean? What is "p.map"? What

[Tutor] Google is not your friend (was: NumPy and SciPy)

2016-09-27 Thread Ben Finney
Alan Gauld via Tutor writes: > I'm not sure if they are up to 3.5 yet or not but the easiest way is > just to grab a full distro such as Anaconda or Canopy. Google is your > friend. I do wish that meme would die. Google is many things, but it is *not* your friend. Corporations

Re: [Tutor] differences between map and partial?

2016-09-27 Thread Danny Yoo
On Tue, Sep 27, 2016 at 2:23 AM, source liu wrote: > Hi, List > > the test code as attached Unfortunately, it didn't attach. If you can inline the content of the test code, that would be helpful. > this one works print p.map(partial(file_op,lineop=unity),input)

[Tutor] NumPy and SciPy

2016-09-27 Thread Floeck, Thomas
Hi there, you have an idea where I can find NumPy and SciPy windows *.exe-files for Python 3.5? Thanks for any help! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

[Tutor] differences between map and partial?

2016-09-27 Thread source liu
Hi, List the test code as attached first i tried map, and failed, then i turned to partial from functools the latter one works, i wonder if there is unseen tricky from me between them :) this one works print p.map(partial(file_op,lineop=unity),input) this one doesn't work

Re: [Tutor] TDD in Python

2016-09-27 Thread Peter Otten
angela ebirim wrote: > Hello everyone, > > I'm a new member on this maling list and am in the process of learning > python. > > I'm keen to learn about testing my Python code and hoping someone could > help me with this query... > > #test.py > > class Test: >def __init__(self, members): >

Re: [Tutor] Help!!

2016-09-27 Thread Alan Gauld via Tutor
On 26/09/16 23:50, Shooby Herrmann wrote: > I am using JES. I've never heard of JES and know nothing about it. Fortunately it doesn't look like this problem has much to do with JES so that's not a problem this time... However in future when you submit a question (whether on this list or

[Tutor] Help!!

2016-09-27 Thread Shooby Herrmann
Hi, I am using JES. I need to write a program and find all pixels in a circle and in a square. Here is what I have written with the more detailed purpose of the program. I know this is not correct, but I'm not sure how to fix it. Please help. #The purpose of this assignment is to give you