Yahoo! Launches Python Developer Center
SimonW writes "Yahoo! has launched a Python Developer Center as part of their Developer Network. The new site explains how to access Yahoo!'s many web service APIs using Python, and includes tutorials on using Python with REST, JSON, XML and RSS. The site joins Yahoo!'s existing developer centers for PHP and JavaScript."
Python developer, I think this is great. I'm glad that Python is gaining more acceptance.
If the quality is on par with their Javascript library, we're in for a real treat
"Python developer, I think this is great. I'm glad that Python is gaining more acceptance."
Up next...Lisp! Oh, wait.
BTW What do Yahoo API's provide?
It's pretty cool of Yahoo to provide so much to the dev community. It's definitely improved my feelings about the company.
I wonder why they've made this foray into the Python world? I know they decided to focus on PHP a few years back. Did they find some tasks were easier to accomplish in Python? Or are they simply trying to reach out to another developer community?
Every time I see a story about Yahoo concerning developers, it's exactly what I want to hear. While their competitors are saying "do no evil", Yahoo seems to be living it.
I don't know if I'm quite there yet, but my hard-to-break habit of Googling everything might be worth breaking if this kind of developer-focused attitude from Yahoo continues like it has. It's at least very tempting.
I think this very cool. I hope that this means that a Ruby version is on the horizon!
Wake me when they create a Ruby/Rails section.
Guido! Let my whitespace go!
http://rsstool.berlios.de/ taught me everything I needed to know about taking advantage of RSS feeds.
Furthermore, unlike their previous offerings, they have released little new code here. The only code they have released is an API to their search engine. The rest seem to be HOWTOs on how to python to access their services.
Still good info though. Thanks
Launch...?
....Snakes on a Plane!!!
Python....?
While browsing through this, I noticed the following in ther Weather RSS feed page:
The feeds are provided free of charge for use by individuals and non-profit organizations for personal, non-commercial uses.
and then
Yahoo! also reserves the right to require you to cease distributing these feeds at any time for any reason.
So, while it's cool and all, is there any value to using their weather RSS feed (and I assume it's similar with other services), beyond my ability to play with them? I mean, even I'm not making any money off it, presumably, if I put the effort in accessing those feeds, I expect them to be available to me in the future? Or do they provide a paid-for version for this?
My only problem with Microsoft is the severity of bugs in their software.
You're in luck! Here's a quote from Guido: "Maybe my spiritual beliefs shine through here -- I'm a convinced atheist."
I don't know anything about Ruby's creator, but Larry Wall has always creeped me out too. I sure was happy when Python came along - a sensible language created by a logical Dutchman.
Did you honestly just compare giving up the name of a journalist to the attempted genocide of Jewish people? You are one brave... Oh, you posted AC. I take that back.
No, providing a few dev tools does not make past mistakes 'better'. But it does show they can actually care.
"If you make people think they're thinking, they'll love you; But if you really make them think, they'll hate you." - DM
Every time I see a story about Yahoo concerning Chinese bloggers, it's exactly what I want to hear. While their competitors are saying "do no evil", Yahoo seems to be handing dissidents over to the authorities without hesitation.
I don't know if I'm quite there yet, but my hard-to-break habit of challenging the official line might be worth breaking if this kind of blogger-focused attitude from Yahoo continues like it has. It's at least very tempting with the war on terror and current levels of surveillance here in the west.
--
Reseed (sic) the astroturf!
The great and mighty Anonymous wrote:
Launch...?
Python....?
Snakes on a Plane!!!
Yep, it's another Product Placement deal. Pretty shameless -- all the searches shown in the movie start at yahoo.com, and yahoo.com plugs the movie right down to the programmer level. Pitiful.
Stressed? Me? Of course not. Stress is what a rubber band feels before it breaks, silly.
I know everybody gets hung up on the whitespace thing when they look at Python. But you know what? Once you start actually coding in it for any significant amount of time, it's not a big deal. When you first start, I know you expect it to be really annoying, but that simply doesn't turn out to be the case. The supposed problem evaporates.
Every time you hear anybody moan about Python's significant whitespace, ask them how long they've spent actually writing Python. You'll see the same thing as I do - that virtually everybody complaining has never given Python a chance, and that virtually everybody who has given Python a chance has realised that the significant whitespace isn't a big deal.
No
In a world where people are imprisioned for expressing themselves, do you expect me to post onto a web forum using my real name?
It does? Does assisting in human rights violations shows that they care.. or not? You pretty much just confirmed my point.
Not only did they release a nice guide, but the guide is actually good: while the first XML library they talk about in XML parsing is xml.dom.minidom, they also explain how to use the XML API with effbot's ElementTree (and link to both ElementTree and cElementTree), which is more than likely the best Python XML library. And the recommend UFP (Universal Feed Parser) for RSS parsing.
The worst thing you can say about them is that they did their homework, kudos to the Yahoo guys.
"The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler
Does this make Yahoo! a friend of Open Source?
...ahem...Yahoo!?
Or would it be premature of me to exclaim
If you want people to switch to Scheme, explain why they should and how it would benefit them, don't just say "lol ur language is teh sux, use mine". That's exactly the kind of stupid shit that gives Lisp users a reputation as a bunch of arrogant assholes.
And yes, Scheme is a great language, and I love it, but it's not the best thing for every situation. If you truly think one language is the best choice for everything, then you're a total idiot.
Also, no even slightly popular browser supports client side scripting with Scheme, and most web hosts don't offer server-side scripting with it either.
don't feed the trolls :)
First to insult me as a Lisp bigot, then you try to associate yourself with it. Amusing! You Python bottom feeders shouldn't be so sensitive.
an ill wind that blows no good
Python is so 2004. Everyone knows that Ruby is the current language du jour. Yahoo needs to catch up.
Software sucks. Open Source sucks less.
The guy is joking, trolling, or an idiot. In any of these cases, his opinion has no bearing on atheism and it certainly does not transform atheism into a religion.
I suspect he was joking, because honestly, who says things like the GP did?
(also an atheist).
Bleep
You are narrowing your options considering who who developed the initial versions of GCC.
an ill wind that blows no good
I'm just glad they did this ahead of any Ruby foray. Online, all I hear anymore is loud rowdy Ruby peope and anti-Python people, some of whom are the same. At the bookstore, I easily see two times more Python books than Ruby. This tells me that despite the online hype, there's still a lot of quiet interest in Python and it isn't that Ruby or anything else is pushing us aside, it's that we're not very vociferous.
Which is fine with me. As long as Yahoo and other outlets keep that in mind that is. Python is not dead no matter what some people want to believe from the SNR.
If my grammar and spelling are off, I am [distracted/tired/careless] (take your pick)
Its sort of ironic that Guido van Rossum, the creator of Python, now works at Yahoo's competitor (Google).
Ah yes, Lisp. The language where each programmer uses macros to try to reinvent their very own real object system, real language syntax, real containers, and real OS interface library; poorly.
Bah, Smalltalk is better than all of those.
Stupidity is like nuclear power, it can be used for good or evil. And you don't want to get any on you.
OK, I'll bite. What about Larry Wall has creeped you out? He might have mentioned his religious beliefs, but I don't think he's been pushy about anything. As a matter of fact, it seems to me the philosophy behind perl seems to be avoiding pushiness even if it means going to questionable extremes. I guess people like you who think everyone should think like you creep me out, thus my putting this in as an anonymous coward.
What the...? I didn't know English was created by an atheist. If not, I guess you'll just have to shut up.
(Disclaimer: this is not aimed at atheists.)
I can't say I have specialized in it, but I have used it. If you are going to program with side effects (OO) it doesn't get any simpler. I could live with it. How can anyone explain the madness of Python's fashionability over smalltalk?
an ill wind that blows no good
Where precisely did I say I think everyone should think like me? I think you have some anger issues to work out. A reading comprehension class might help too, as would a sense of humour.
In a world where people are imprisioned for expressing themselves, do you expect me to post onto a web forum using my real name?
Wow, get your head out of your ass.
Like anybody cares about your posts at Slashdot
This page mainly demonstrates how to take advantage of Yahoo's APIs with Python. I think that the engineers and managers at Yahoo must be paying attention to the competative edge in productivity that Python can offer. It really is an all purpose programming tool that works well in many niches.
He picks forums the same way.
The language is simpler than the others yet for more expressive and powerful. Learn something. Use it!
Oh is it?
Scheme with or without macros?
Scheme without macros is a laughably weak language compared to Python.
Scheme with macros can not be said to be simpler than Python.
More expressive? Show me any good expressive Scheme program that can not be expressed with round-the-same-length Python program, that is also easier on the eyes?
Many of us Pythoneers have been there. Exactly where you are, bitching about the "whitespace".
.. but .. its just wrong!"
:-)
Only after using it for a little while we understood that we can never go back.
The way I resisted whitespace in the beginning now seems so stupid..
There really is no real claim against significant whitespace except the knee-jerk reaction of ".. but
If you actually try to use Python, you'll never want to go back to cluttering your visual space with unnecessary noise {}.
There's always the obvious option of using #{ and #} around your indented blocks
supposedly Matz is a real rarity, a Japanese mormon. Not that surprising, since Japan is all about weird fusions
Some do. I use yasos which is part of slib. You must be a C++ person who doesn't like macros because one of the priests of strong typing told you not to. A pity. Macros are an irreplacable feature being forgotten now in dumbed down languages. Read Paul Graham's On Lisp someday and get clued in.
???
Scheme supports Lists, vectors, and alists and iteration natively. Libstdc++ has spent the last 10 years trying to catch up, and doing so poorly. Python doesn't even have these. You don't know what you are talking about.
What slackjawed Python programmer doesn't spend every waking hour "wrapping" existing C API's. My Gentoo system is rotten with them. It saddens me that there is not a full scheme system yet. In the meantime scheme shell is pleasant way to interact with a GNU/Linux system.
an ill wind that blows no good
"More expressive? Show me any good expressive Scheme program that can not be expressed with round-the-same-length Python program, that is also easier on the eyes?"
Funny how you wrote those specs. Someone could meet all the rest, and you could pull a subjective "but it hurts my eyes!". Fortunately the real world is more practical than that.
"Also, no even slightly popular browser supports client side scripting with Scheme, and most web hosts don't offer server-side scripting with it either."
JsScheme
Scheme hosting...sort of
What is the point if these components cannot be re-used for building commercial applications.
Would'nt be yahoo better off to have their components used by true application developers. Its rather
unfortunate that they are entirely missing out on an opportunity to hookup developers use these
for real, make the components stronger. And have thousands of apps having the look and feel of Yahoo.
Iam sure they can easily have small hooks into their revenue generating services.
http://developer.yahoo.com/usagePolicy/#uses
I don't know, maybe the fact that for Perl 6 he released a bunch of Apocalypses. Apparently these are "revelations" and not "the end of the world." I suppose Larry Wall is God. Or His Prophet.
On the other hand, perhaps Larry IS God . . .
8 of 13 people found this answer helpful. Did you?
What does religion have to do with programming languages? As a _true_ atheist you should care about this particular point.
I'm an atheist too, and the point is to keep our minds open and willing to accept and change our thoughts.
You cannot ignore other people just because of their religion, that is not what an atheist stands for, we are against those lines of thinking.
Would you not take your medication if you found it it was invented by a religious person?
So God writes in Forth, not Lisp, as many supposed.
In a large program, though, I do tend to use comments to identify the end of blocks.
To me, this implies that in a large program, you have very large blocks.
Why don't you just divide them up into very small functions so that each function is trivial and very easy to verify for correctness, and incidentally very easy to follow the indentation of?
My tendency is to use functions for code that will be repeated at some point.
I strongly disagree with this method. I agree with the whole functions' section in the Linux kernel coding style.
I think that you should divide functions such that each function is trivial and more importantly trivially verifiable. With good naming conventions and division of responsibilities, you don't need to "jump between functions" as you only read the functions for implementation details. The interface and what they do should be fairly obvious.
A large function will most likely host bugs, while a tiny function that does exactly one thing (no more, and no less) will most likely be bug-free.
Division into functions is not a simple matter though, there are many criterions for the division of functions (wrappers, chronological, implementation hiding, indirection, code repeatability, etc).
I still maintain that you can't have too many comments. I would recommend commenting the end of any block, including a function block, that might often have the top of the block not on the same screen, just to make quick navigation easier.
I disagree here too. The best documentation is self-documenting code, and bad documentation is worse than no documentation.
The problem with redundant comments (such as "if X: end block" and such) is not just the time they take to write and the visual noise they add, but most importantly, it is that these comments are almost never up-to-date. Nobody bothers to update such redundant comments, and they become bad documentation.
If you can replace a comment with a descriptive variable assignment, e.g instead of:
# We blit the image into the center position:
image.blit((WIDTH/2, HEIGHT/2))
Use:
center_position = (WIDTH/2, HEIGHT/2)
image.blit(center_position)
The variable assignment will remain correct and kept up-to-date. The comment is likely to grow out of sync with the code, and even if it doesn't - the reader is not sure whether to trust the comments. Remember that the code is the most accurate documentation.
It's funny, because JavaScript has everything you would want from Scheme except macros and continuations, and I don't think most script kiddies will be (or should be) using those features...
(Well, okay, JavaScript isn't properly tail-recursive either. But what does it matter if you use map or foreach?)
Atheism IS a religion.
A religion is a belief system.
LK
"Hi. This is my friend, Jack Shit, and you don't know him." - Lord Kano