Re: Please solve this problem
On Mon, Mar 9, 2020 at 11:21 AM sachin thakur wrote: > Rply if solved > > <..snip..> Solved, answer is: -- https://mail.python.org/mailman/listinfo/python-list
Re: EuroPython 2016 Keynote: Paul Hildebrandt
Quick note: blog and conference schedule links in the europython.eu site's custom 404 page are incorrect. https://ep2016.europython.eu/en/foobarbaz/ On Tue, May 31, 2016 at 4:22 PM, M.-A. Lemburgwrote: > We are pleased to announce our next keynote speaker for EuroPython > 2016: > > >*** Paul Hildebrandt *** > > > > About Paul Hildebrandt > -- > > Paul Hildebrandt has been a Senior Engineer with Walt Disney Animation > Studios (WDAS) since 1996, and has worked in both Systems and Software > engineering. His current title is Senior Software Engineer and Product > Owner for the Playback tools among his primary duties is spending time > working with the artists, understanding their needs, and designing > tools to assist them. If he is lucky, he gets to write code. > > Hildebrandt was born and raised in Anaheim, California. He received > his BSEE with a focus on Computing from California Polytechnic > University Pomona. He resides outside of Los Angeles with his wife and > three boys. > > The Keynote: Inside the Hat: Python @ Walt Disney Animation Studios > --- > > The Walt Disney Animation Studios has a long history of creating > acclaimed animated films and continues to be an industry leader with > regards to artistic achievements, storytelling excellence, and > cutting-edge innovations. Since the 1923 release of “Snow White” > they’ve been pushing forward technology in the art of movie > making. This push continues in the modern day with classics such as > Oscar winning box office hits “Big Hero 6” and “Frozen” and Oscar > nominated hits “Wreck-It Ralph”, “Tangled”, “Bolt”, “Treasure Planet”, > and “Dinosaur”. > > One of the most common questions I get when attending Python > conferences is “Why are you here?” People seem confused that > technology, especially Python is used in the making of animated > films. > > Paul will give you some background on the Walt Disney Animation > Studios and talk about where specifically Python comes into play. > > > With gravitational regards, > -- > EuroPython 2016 Team > http://ep2016.europython.eu/ > http://www.europython-society.org/ > > > PS: Please forward or retweet to help us reach all interested parties: > https://twitter.com/europython/status/737633789116088320 > Thanks. > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list
Re: Bash-like pipes in Python
On Wed, Mar 16, 2016 at 4:57 PM, Steven D'Apranowrote: > There's a powerful technique used in shell-scripting languages like bash: > pipes. The output of one function is piped in to become the input to the > next function. > > According to Martin Fowler, this was also used extensively in Smalltalk: > > http://martinfowler.com/articles/collection-pipeline/ > > and can also be done in Ruby, using method chaining. > > Here is a way to do functional-programming-like pipelines to collect and > transform values from an iterable: > > https://code.activestate.com/recipes/580625-collection-pipeline-in-python/ > > For instance, we can take a string, extract all the digits, convert them to > ints, and finally multiply the digits to give a final result: > > py> from operator import mul > py> "abcd12345xyz" | Filter(str.isdigit) | Map(int) | Reduce(mul) > 120 > > <..snip..> > Would be nice if this was possible: >>> get_digits = Filter(str.isdigit) | Map(int) >>> 'kjkjsdf399834' | get_digits Also, how about using '>>' instead of '|' for "Forward chaining" Regards, Omar -- https://mail.python.org/mailman/listinfo/python-list
Re: Bash-like pipes in Python
On Wed, Mar 16, 2016 at 5:39 PM, Steven D'Aprano <st...@pearwood.info> wrote: > On Thu, 17 Mar 2016 02:22 am, Omar Abou Mrad wrote: > > > Would be nice if this was possible: > > > >>>> get_digits = Filter(str.isdigit) | Map(int) > >>>> 'kjkjsdf399834' | get_digits > > > Yes it would. I'll work on that. > > > > Also, how about using '>>' instead of '|' for "Forward chaining" > > Any particular reason you prefer >> over | as the operator? Nothing major, only that it's closer to visual "forward" a la F#'s |> operator. I tend to see | as an indication of "OR" (bit or otherwise) rather than pipe (which I completely understand why you picked it). On a somewhat related note I had experimented with an overridden '|' a while ago to lift conditions and compose them (which is what spurred the get_digits question). https://gist.github.com/omaraboumrad/8424298 -- https://mail.python.org/mailman/listinfo/python-list
Re: Pylint 1.5.0 / Astroid 1.4.1 released
On Tue, Dec 1, 2015 at 1:42 AM, Claudiu Popawrote: > Hello, > > > I'm happy to announce you the release of Pylint 1.5.0, > respectively Astroid 1.4.1. > > > > Claudiu > -- > https://mail.python.org/mailman/listinfo/python-list > Awesome! Congrats! -- https://mail.python.org/mailman/listinfo/python-list
Re: Where is 'palindrome' defined?
On Mon, Jun 1, 2015 at 7:46 AM, fl rxjw...@gmail.com wrote: Hi, When I search solution of reverse a string/number, I came across a short function online: def palindrome(num): return str(num) == str(num)[::-1] I thought that it is a general function. And with the following variable: a '1234_' parlindrome(a) Traceback (most recent call last): File pyshell#126, line 1, in module parlindrome(a) NameError: name 'parlindrome' is not defined snip Further to the mentioned, be careful with your spelling, the function name as you've shown is palindrome but you're invoking it using parlindrome. Regards -- https://mail.python.org/mailman/listinfo/python-list
Re: HELP!! How to ask a girl out with a simple witty Python code??
On Thu, Mar 5, 2015 at 3:34 AM, Xrrific xiaok...@gmail.com wrote: Guys, please Help!!! I am trying to impress a girl who is learning python and want ask her out at the same time. Could you please come up with something witty incorporating a simple python line like If...then... but..etc. You will make me a very happy man!!! Thank you very much!!! -- https://mail.python.org/mailman/listinfo/python-list print Svar lbh jva! V'yy cvpx lbh hc gbzbeebj ng 7 :).decode('rot13') -- https://mail.python.org/mailman/listinfo/python-list
Re: Twitter Client on Terminal by Python
Dear Orakaro, Cool app you have there. Please consider the following comments as feedback in the most positive sense possible: - I didn't care for the figlet, it's noise beyond anything else, if you drop it, you would drop the pyfiglet dependency as well - What's with the SQLAlchemy dependency? I checked your table definitions and if I'm not mistaken all you're using is Theme, Message, Tweet. My first question on that front is why are message and tweet stored locally? Are you doing local caching to speed things up? What about theme? Good job and take care! Regards, Omar On Sun, Jul 13, 2014 at 9:00 PM, Orakaro nhatminh...@gmail.com wrote: Hello! I'm @dtvd88 on Twitter and very new here. I read from python.org that anything Python-related can be discussed, and not sure if I can share my OSS package here to get feedback or not ? I just wrote a Twitter Client on Terminal by Python, it has very beautiful display and even can display image on terminal. Check it out and maybe you guys will love it :) Homepage: http://www.rainbowstream.org/ Github: https://github.com/DTVD/rainbowstream Thanks for any feedback and sorry if this kind of topics is not tolerated here. -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: Show off your Python chops and compete with others
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 MetaBright to find outrageously skilled job candidates. Python is a new area of expertise for us. We make Challenges for a bunch of languages and we're excited to finally have Python released. Give it a shot -- I'd love to hear what you think. -- https://mail.python.org/mailman/listinfo/python-list Nathaniel, You may want to classify the questions under some weight. You can't really have a level 6 question about semi colon. Also, when the boss questions are being computed, you should run more than the 'example' given as a test, otherwise users can just cheat. For example, I think one of the 'Boss' question was return the first 3 digits of PI as a list, all i did was: return [3,1,4] Hope this helps. -- https://mail.python.org/mailman/listinfo/python-list