Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread Lawrence D’Oliveiro
On Tuesday, August 16, 2016 at 6:34:53 PM UTC+12, Ian wrote: > On Aug 15, 2016 6:57 PM, "Lawrence D’Oliveiro" wrote: > > Python, on the other hand, introduces the special word “lambda” for this > purpose, eschewing its usual “def”. > > Why? Something to do with GvR’s allergy to anonymous function

Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread Ian Kelly
On Aug 15, 2016 6:57 PM, "Lawrence D’Oliveiro" wrote: Python, on the other hand, introduces the special word “lambda” for this purpose, eschewing its usual “def”. Why? Something to do with GvR’s allergy to anonymous functions... Actually, GvR is on record stating that he's never much cared fo

Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread Lawrence D’Oliveiro
On Tuesday, August 16, 2016 at 6:26:01 PM UTC+12, Paul Rudin wrote: > sohcahtoa82 writes: >> squared_plus_one_list = map(lambda x: x**2 + 1, some_list) > > I realise that this is about understanding lambda, but it's worth noting > in passing that we tend to write this sort of thing as: > > square

Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread Paul Rudin
sohcahto...@gmail.com writes: > On Monday, August 15, 2016 at 8:07:32 AM UTC-7, alister wrote: >> On Mon, 15 Aug 2016 07:00:47 -0700, Sickfit92 wrote: >> >> > 1. How long did it take you guys to master the language or, let me put >> > it this way to completely get the hang and start writing code?

{RELEASE] Python 3.6.0a4 is now available

2016-08-15 Thread Ned Deily
On behalf of the Python development community and the Python 3.6 release team, I'm happy to announce the availability of Python 3.6.0a4. 3.6.0a4 is the last of four planned alpha releases of Python 3.6, the next major release of Python. During the alpha phase, Python 3.6 remains under heavy develop

Re: What is the trick between these?

2016-08-15 Thread Steven D'Aprano
On Tue, 16 Aug 2016 04:41 am, huey.y.ji...@gmail.com wrote: > Python complained that no attribute of load_canvas_image(). It is there, > coexisting with load_label_image(). > > I cannot figure out what is wrong with it, can somebody tell me why? > Thanks! No, we cannot, because we are not psychi

Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread Lawrence D’Oliveiro
On Tuesday, August 16, 2016 at 6:36:41 AM UTC+12, sohca...@gmail.com wrote: > What helped me understand Lambdas is figuring out that they're really just > a $1,000 term for a $5 concept. The excuse for the “$1,000 term” is that it came from Alonzo Church’s λ-calculus, which was an alternative for

docs on pythonhosted.org not updating with new version?

2016-08-15 Thread Irmen de Jong
Hi, as I've always done for a new release I've uploaded new versions of my package's documentation files, but they are not showing up on Pythonhosted.org - the previous version is still there. Is there something wrong with the update mechanism? I've been using "python3 setup.py build_sphinx uplo

Re: What is the trick between these?

2016-08-15 Thread Peter Otten
huey.y.ji...@gmail.com wrote: > I am trapped by these two funny things: > > class MyClass(upClass): > >def start(self): >***do_menu_here > >self.load_label_image() # ---> this works >self.load_canvas_image() # ---> this does not work > >def load_label_imag

Re: What is the trick between these?

2016-08-15 Thread MRAB
On 2016-08-15 19:41, huey.y.ji...@gmail.com wrote: Hi All, I am trapped by these two funny things: class MyClass(upClass): def start(self): ***do_menu_here self.load_label_image() # ---> this works self.load_canvas_image() # ---> this does not work def load_

What is the trick between these?

2016-08-15 Thread huey . y . jiang
Hi All, I am trapped by these two funny things: class MyClass(upClass): def start(self): ***do_menu_here self.load_label_image() # ---> this works self.load_canvas_image() # ---> this does not work def load_label_image(self): img = PhotoImage(file="xx.g

Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread sohcahtoa82
On Monday, August 15, 2016 at 8:07:32 AM UTC-7, alister wrote: > On Mon, 15 Aug 2016 07:00:47 -0700, Sickfit92 wrote: > > > 1. How long did it take you guys to master the language or, let me put > > it this way to completely get the hang and start writing code? > > > Some concepts took more time

Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread Paul Rubin
Sickfit92 writes: > 1. How long did it take you guys to master the language or, let me put > it this way to completely get the hang and start writing code? Just a day or two, but I was already experienced with several similar languages. It would take longer for a beginning programmer. > 2. What

Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread Grant Edwards
On 2016-08-15, Sickfit92 wrote: > 1. How long did it take you guys to master the language or, let me >put it this way to completely get the hang and start writing code? A few hours. The core language is pretty simple. [I was already fluent in a number of other programming languages -- if y

Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread Jan Erik Moström
On 15 Aug 2016, at 16:00, Sickfit92 wrote: 1. How long did it take you guys to master the language or, let me put it this way to completely get the hang and start writing code? I'm probably not representative since I had used about 10-15 different language before looking at Python. To learn t

Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread Chris Angelico
On Tue, Aug 16, 2016 at 12:00 AM, Sickfit92 wrote: > 1. How long did it take you guys to master the language or, let me put it > this way to completely get the hang and start writing code? Python wasn't my first language, so it was a lot easier for me to learn one more language than to learn pro

Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread alister
On Mon, 15 Aug 2016 07:00:47 -0700, Sickfit92 wrote: > 1. How long did it take you guys to master the language or, let me put > it this way to completely get the hang and start writing code? > > 2. What made you want to learn python? > > 3. Was it difficult to learn the language? > > 4. Have yo

Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread Uri Even-Chen
1. After one/two months I knew the language, but after a year really knew it well. 2. I love Python but at first I didn't understand indentation in Python and it was confusing. 3. No. Except indentation. 4. Yes, I got 2 jobs in Python. But I also had to know JavaScript and jQuery. Uri. *Uri E

Re: Finding the first index in a list greater than a particular value

2016-08-15 Thread Michael Selik
On Mon, Aug 15, 2016 at 2:01 AM Jussi Piitulainen < jussi.piitulai...@helsinki.fi> wrote: > There is a tradition of returning -1 when no valid index is found. > Sometimes it's better to break with tradition. Raise a ValueError. No silent errors, and all that Zen. -- https://mail.python.org/mailm

I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread Sickfit92
1. How long did it take you guys to master the language or, let me put it this way to completely get the hang and start writing code? 2. What made you want to learn python? 3. Was it difficult to learn the language? 4. Have you been able to get a job out of your new skill? Thank you guys! I'm

Re: I'm looking for a part-time job in Python / Django

2016-08-15 Thread Uri Even-Chen
Thank you Chris! Uri. *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/