Re: Show off your Python chops and compete with others

2013-11-12 Thread Nathaniel Sokoll-Ward
Hi Omar, Thanks for the suggestions! Your point about question difficulty is well taken. We previously organized questions into sections based on difficulty or topic, but have been experimenting with doing away with sections entirely. We are developing a way to intelligently deliver questions to

Re: Show off your Python chops and compete with others

2013-11-08 Thread Mark Lawrence
On 08/11/2013 02:18, Roy Smith wrote: In article , alex23 wrote: On 8/11/2013 11:54 AM, Roy Smith wrote: Dead code doesn't count. Neither do shifting goalposts. It's not a shifting goalpost. My original statement was that: def foo(): raise Exception defines a function which 1) has

Re: Show off your Python chops and compete with others

2013-11-07 Thread Omar Abou Mrad
On Thu, Nov 7, 2013 at 2:00 AM, Nathaniel Sokoll-Ward < nathanielsokollw...@gmail.com> wrote: > Thought this group would appreciate this: > www.metabright.com/challenges/python > > MetaBright makes skill assessments to measure how talented people are at > different skills. And recruiters use MetaB

Re: Show off your Python chops and compete with others

2013-11-07 Thread Gregory Ewing
alex23 wrote: In [2]: import dis In [3]: dis.dis(foo) 2 0 LOAD_GLOBAL 0 (Exception) 3 RAISE_VARARGS1 6 LOAD_CONST 0 (None) 9 RETURN_VALUE Seeing as we're being pedantic, the function *does* return None,

Re: Show off your Python chops and compete with others

2013-11-07 Thread Steven D'Aprano
On Thu, 07 Nov 2013 22:05:14 -0600, Tim Chase wrote: > On 2013-11-07 21:18, Roy Smith wrote: >> It's not a shifting goalpost. My original statement was that: >> >> def foo(): >>raise Exception >> >> defines a function which 1) has no explicit return statement and 2) >> does not return None.

Re: Show off your Python chops and compete with others

2013-11-07 Thread Tim Chase
On 2013-11-07 21:18, Roy Smith wrote: > It's not a shifting goalpost. My original statement was that: > > def foo(): >raise Exception > > defines a function which 1) has no explicit return statement and 2) > does not return None. I stand by that statement. There is no > possible codepath,

Re: Show off your Python chops and compete with others

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 1:18 PM, Roy Smith wrote: > It's not a shifting goalpost. My original statement was that: > > def foo(): >raise Exception > > defines a function which 1) has no explicit return statement and 2) does > not return None. I stand by that statement. There is no possible >

Re: Show off your Python chops and compete with others

2013-11-07 Thread Roy Smith
In article , alex23 wrote: > On 8/11/2013 11:54 AM, Roy Smith wrote: > > Dead code doesn't count. > > Neither do shifting goalposts. It's not a shifting goalpost. My original statement was that: def foo(): raise Exception defines a function which 1) has no explicit return statement and 2

Re: Show off your Python chops and compete with others

2013-11-07 Thread alex23
On 8/11/2013 11:54 AM, Roy Smith wrote: Dead code doesn't count. Neither do shifting goalposts. -- https://mail.python.org/mailman/listinfo/python-list

Re: Show off your Python chops and compete with others

2013-11-07 Thread Roy Smith
In article , alex23 wrote: > On 8/11/2013 11:02 AM, Roy Smith wrote: > > Well, if you want to be truly pedantic about it (*), this defines a > > function without an explicit return and which does not return None: > > > > def foo(): > > raise Exception > > > In [2]: import dis > In [3]: dis

Re: Show off your Python chops and compete with others

2013-11-07 Thread alex23
On 8/11/2013 11:02 AM, Roy Smith wrote: Well, if you want to be truly pedantic about it (*), this defines a function without an explicit return and which does not return None: def foo(): raise Exception In [2]: import dis In [3]: dis.dis(foo) 2 0 LOAD_GLOBAL 0 (Ex

Re: Show off your Python chops and compete with others

2013-11-07 Thread Roy Smith
In article , Alister wrote: > your sites answer is " defines a function that does nothing" > once you have defined the function try print (a(1,2,3)) > you will see that is does indeed return none, as do all functions without > an explicit return. Well, if you want to be truly pedantic about it

Re: Show off your Python chops and compete with others

2013-11-07 Thread 88888 Dihedral
On Friday, November 8, 2013 3:02:10 AM UTC+8, jsk...@gmail.com wrote: > We do not currently support cookieless or javascript-less browsing. We are > definitely looking at relying less and less on cookies, but it's unlikely > we'll ever be able to pull out javascript as it limits interactivity too

Re: Show off your Python chops and compete with others

2013-11-07 Thread Chris Angelico
On Fri, Nov 8, 2013 at 5:38 AM, Nathaniel Sokoll-Ward wrote: > Wow! Thanks for all the feedback everyone. This content is fresh so I > appreciate everyone's comments. As opposed to responding to each post > individually, I'll just lump everything in here... Best way, I think :) > I believe tha

Re: Show off your Python chops and compete with others

2013-11-07 Thread Tim Chase
On 2013-11-07 11:02, jski...@gmail.com wrote: > it's unlikely we'll ever be able to pull out javascript as it > limits interactivity too much. It was mostly in jest as it's one of the things I test when doing web development. That said, the quizzes are mostly just HTML forms where you pick the an

Re: Show off your Python chops and compete with others

2013-11-07 Thread Alister
On Thu, 07 Nov 2013 10:38:40 -0800, Nathaniel Sokoll-Ward wrote: > Wow! Thanks for all the feedback everyone. This content is fresh so I > appreciate everyone's comments. As opposed to responding to each post > individually, I'll just lump everything in here... > > >> >> My answer: "Defines a fu

Re: Show off your Python chops and compete with others

2013-11-07 Thread jskirst
We do not currently support cookieless or javascript-less browsing. We are definitely looking at relying less and less on cookies, but it's unlikely we'll ever be able to pull out javascript as it limits interactivity too much. Its definitely possible to do, and maybe something we can look at in

Re: Show off your Python chops and compete with others

2013-11-07 Thread Mark Lawrence
On 07/11/2013 18:38, Nathaniel Sokoll-Ward wrote: My answer: "Defines a function which returns None", but that isn't one of the choices. Roy, thanks for your note. When I run this code, the function just gets defined and nothing happens. None isn't returned. Do you recall why you found the o

Re: Show off your Python chops and compete with others

2013-11-07 Thread Nathaniel Sokoll-Ward
Wow! Thanks for all the feedback everyone. This content is fresh so I appreciate everyone's comments. As opposed to responding to each post individually, I'll just lump everything in here... Andrew, big thanks for your comments: > "What is the correct number of spaces for indentation in Python?

Re: Show off your Python chops and compete with others

2013-11-06 Thread Tim Chase
On 2013-11-06 17:31, John Nagle wrote: > >> MetaBright makes skill assessments to measure how talented > >> people are at different skills. And recruiters use MetaBright to > >> find outrageously skilled job candidates. > > With tracking cookies blocked, you get 0 points. And with JavaScript bl

Re: Show off your Python chops and compete with others

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 12:55 PM, John Ladasky wrote: > On Wednesday, November 6, 2013 4:00:57 PM UTC-8, Nathaniel Sokoll-Ward wrote: >> Thought this group would appreciate this: >> www.metabright.com/challenges/python > > I have to concur with what several other people are saying here. Several o

Re: Show off your Python chops and compete with others

2013-11-06 Thread John Ladasky
On Wednesday, November 6, 2013 4:00:57 PM UTC-8, Nathaniel Sokoll-Ward wrote: > Thought this group would appreciate this: www.metabright.com/challenges/python I have to concur with what several other people are saying here. Several of MetaBright's questions are ambiguously worded, or expect non-

Re: Show off your Python chops and compete with others

2013-11-06 Thread John Nagle
On 11/6/2013 5:04 PM, Chris Angelico wrote: > On Thu, Nov 7, 2013 at 11:00 AM, Nathaniel Sokoll-Ward > wrote: >> Thought this group would appreciate this: >> www.metabright.com/challenges/python >> >> MetaBright makes skill assessments to measure how talented people are at >> different skills. A

Re: Show off your Python chops and compete with others

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 12:12 PM, MRAB wrote: >> """From which languages are Python classes derived from?""" >> > Does it really have the word "from" twice? You know, I didn't even notice that. But since that was copied and pasted, I would say that yes, it really does. That's a pretty simple gramm

Re: Show off your Python chops and compete with others

2013-11-06 Thread MRAB
On 07/11/2013 00:59, Chris Angelico wrote: On Thu, Nov 7, 2013 at 11:00 AM, Nathaniel Sokoll-Ward wrote: Thought this group would appreciate this: www.metabright.com/challenges/python MetaBright makes skill assessments to measure how talented people are at different skills. And recruiters use

Re: Show off your Python chops and compete with others

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 11:00 AM, Nathaniel Sokoll-Ward wrote: > Thought this group would appreciate this: www.metabright.com/challenges/python > > MetaBright makes skill assessments to measure how talented people are at > different skills. And recruiters use MetaBright to find outrageously skille

Re: Show off your Python chops and compete with others

2013-11-06 Thread Chris Angelico
On Thu, Nov 7, 2013 at 11:00 AM, Nathaniel Sokoll-Ward wrote: > Thought this group would appreciate this: www.metabright.com/challenges/python > > MetaBright makes skill assessments to measure how talented people are at > different skills. And recruiters use MetaBright to find outrageously skille

Re: Show off your Python chops and compete with others

2013-11-06 Thread Mark Lawrence
On 07/11/2013 00:28, Andrew Cooper wrote: On 07/11/2013 00:24, Roy Smith wrote: In article , Andrew Cooper wrote: On 07/11/2013 00:00, Nathaniel Sokoll-Ward wrote: Thought this group would appreciate this: www.metabright.com/challenges/python MetaBright makes skill assessments to measure

Re: Show off your Python chops and compete with others

2013-11-06 Thread Andrew Cooper
On 07/11/2013 00:24, Roy Smith wrote: > In article , > Andrew Cooper wrote: > >> On 07/11/2013 00:00, Nathaniel Sokoll-Ward wrote: >>> Thought this group would appreciate this: >>> www.metabright.com/challenges/python >>> >>> MetaBright makes skill assessments to measure how talented people are

Re: Show off your Python chops and compete with others

2013-11-06 Thread Roy Smith
In article , Andrew Cooper wrote: > On 07/11/2013 00:00, Nathaniel Sokoll-Ward wrote: > > Thought this group would appreciate this: > > www.metabright.com/challenges/python > > > > MetaBright makes skill assessments to measure how talented people are at > > different skills. And recruiters us

Re: Show off your Python chops and compete with others

2013-11-06 Thread Andrew Cooper
On 07/11/2013 00:00, Nathaniel Sokoll-Ward wrote: > Thought this group would appreciate this: www.metabright.com/challenges/python > > MetaBright makes skill assessments to measure how talented people are at > different skills. And recruiters use MetaBright to find outrageously skilled > job can

Show off your Python chops and compete with others

2013-11-06 Thread Nathaniel Sokoll-Ward
Thought this group would appreciate this: www.metabright.com/challenges/python MetaBright makes skill assessments to measure how talented people are at different skills. And recruiters use MetaBright to find outrageously skilled job candidates. Python is a new area of expertise for us. We make