Entries tagged python
If python dictionaries are inherently orderless, why were they given the name if a real dictionary is sorted by letter?
The metaphor here is that paper dictionaries make it easy to look stuff up by letter or word—just like Python dictionaries make looking something up by key an instant operation.[... 114 words]
I don’t think you can.[... 42 words]
I imagine the reason is very simple: Because it’s fun![... 27 words]
I think you’ll find that PROGRAMMERS have a tendency to develop their own thing rather than contributing to an existing project. It’s even got its own TLA: NIH (Not Invented Here).[... 94 words]
Companies like Wipro (Indian company), Infosys (company), Capgemini uses Java, .Net for developing web and desktop application. But I haven’t seen any consulting company of their size using Python. Is there any python consulting company of size 1000...
ThoughtWorks do a lot of projects in Ruby and some in Python. Their website says they now have 1700 people.[... 65 words]
ShowMeDo has 55 video screencasts covering all sorts of aspects of Django development: http://showmedo.com/videotutoria...[... 56 words]
He’s incorrect (or at least out of date). Most professional python programmers that I know of use virtualenv, which makes it easy for deployed Python code to live in its own environment with its own set of modules installed separately from the core system packages.[... 106 words]
Not as far as I can tell—but then like many (most?) other Django users I’m too busy using it to build things to worry too much about whether or not it’s fashionable.[... 46 words]
Is there a framework that allows me to collect input from individual users, and then charge for the aggregate and analysis of that data?
No—your needs are extremely specific. You’re going to have to build this yourself.[... 95 words]
For me, the single most productive advantage of Python is the ability to work with it interactively in a REPL—I use ipython but Python also ships with an interactive mode out of the box.[... 176 words]
SSDs are faster than regular drives for every application—Python is no different. That said, unless the Python code you are developing does a huge amount of disk IO you probably won’t notice the difference.[... 57 words]
It probably won’t teach you the basics, but we’ve collected 190 videos from conference talks about Python here: http://lanyrd.com/topics/python/...[... 35 words]
Twitter API: What is the best data storage mechanism and client library for analysing tweets using Python?
It depends on how much data you intend to collect, and how you intend to then share that data.[... 182 words]
Yes. And I say that as an author of another Django migrations tool (dmigrations) which offered a small subset of South’s current functionality.[... 42 words]
What’s a good web dev platform if I work in Python, but want something faster to set up than Django?
Sounds like the perfect use case for Google App Engine, with its offline task queues and one-click deployment.[... 44 words]
What are the tradeoffs (e.g. development speed, performance, scalability) between using various php frameworks, ruby/rails, or python/django? Is there any reason to choose one overwhelmingly over another?
At this point, I’d argue that the decision between them comes down to programming language rather than framework—the frameworks have mostly converged on a very similar set of features.[... 145 words]
Our site Lanyrd catalogs conference speakers by their Twitter ID, so you could use it to find people who speak at Python conferences—for example:[... 52 words]
No, but I wish there was.[... 29 words]
Why does Python load imported modules separately for different files, unlike C or PHP? Isn’t that inefficient in terms of memory usage?
It doesn’t—you’re misunderstanding how Python’s module system works. If two different places have “import os” in them, the os module is only imported and executed once—it’s cached in the sys.modules dictionary so you can see it happen if you want to. The key thing to understand is that “import os” attaches the os module to the “os” symbol within the current file’s scope, loading it only if it hasn’t been loaded already.[... 104 words]
Dive into Python 3 is well worth a look: http://diveintopython3.org/[... 48 words]
The best documentation I’ve seen on generators is this: http://www.dabeaz.com/generators/[... 26 words]
Mahalo is based in Santa Monica, and they have a very talented team of Python/Django people. They also host a regular Django meetup: http://www.meetup.com/ladjango/[... 40 words]
Read “Python is not Java” from 2004—it has some good tips on how working with the two languages differs.[... 41 words]
Python’s C code has some excellent documentation, including detailed write-ups of how Python’s dictionary and sorting algorithms work. They’re a great read.[... 42 words]
I’d advocate decoupling your long polling endpoints entirely from the rest of your web app stack. Personally I like Node.js for this, but Tornado would work just fine too (I’ve experimented successfully with Tornado long polling in the past).[... 171 words]
No. SQLAlchemy can talk to all sorts of different DB-API compliant backends, including MySQL Connector/J (Jython only), MySQL Connector/Python, mysql-python (the MySQLdb module) and OurSQL—plus backends for many other databases. See the full list here:[... 50 words]
I’m a big fan of Fabric for automated deployment scripts. Start by reading this tutorial: http://morethanseven.net/2009/07...[... 40 words]
My best guess would be Disqus. Instagram are pretty enormous these days as well.[... 31 words]
Back in October 2008, myself and 11 others set out on the first /dev/fort expedition. The idea was simple: gather a dozen geeks, rent a fort, take food and laptops and see what we could build in a week.[... 558 words]
As you may have heard, the UK government released a fresh batch of MP expenses documents a week ago on Thursday. I spent that week working with a small team at Guardian HQ to prepare for the release. Here’s what we built:[... 2051 words]