shuffle things around a bit

This commit is contained in:
Kenneth Reitz
2012-02-21 01:15:00 -05:00
parent 166c5a97fe
commit add958b068
23976 changed files with 0 additions and 0 deletions
@@ -0,0 +1 @@
[{"user_id": 10074, "stars": [], "topic_id": 14661, "date_created": 1300871646.291486, "message": "Hey guys :)\nI try to import a dynamic located .py file. In plugins/<name>/config.py (<name> is the name of a plugin) I have a dictionary called config_dic = {..}. Now I want to use this dictionary and I tried this: my_config = __import__(\"plugins.\"+plugin+\".config\").config_dic but this does not work (No module named plugins.default.config)", "group_id": 292, "id": 415563}, {"user_id": 10074, "stars": [{"date_created": 1300918595.047112, "user_id": 141}], "topic_id": 14661, "date_created": 1300875036.9329619, "message": "self solved... I had to place __init__.py files in each subfolder. Didn't know that python need those to recognize a folder as a package :)", "group_id": 292, "id": 415822}, {"user_id": 257, "stars": [{"date_created": 1300888221.6687019, "user_id": 22109}, {"date_created": 1300900408.301348, "user_id": 1736}, {"date_created": 1300910794.174346, "user_id": 19652}], "topic_id": 14661, "date_created": 1300882964.0232761, "message": "use importlib.import_module instead of __import__", "group_id": 292, "id": 416594}, {"user_id": 257, "stars": [], "topic_id": 14661, "date_created": 1300882972.673908, "message": "it's also available as a backport for older versions", "group_id": 292, "id": 416596}]
@@ -0,0 +1 @@
[{"user_id": 21126, "stars": [], "topic_id": 40991, "date_created": 1309563179.847019, "message": "Can anyone suggest an advanced Python book? Pro Python? Expert Python Programming? Others?", "group_id": 292, "id": 1546130}, {"user_id": 21126, "stars": [], "topic_id": 40991, "date_created": 1309563260.7697811, "message": "This wiki seems like a good start: http://wiki.python.org/moin/AdvancedBooks", "group_id": 292, "id": 1546140}, {"user_id": 12747, "stars": [], "topic_id": 40991, "date_created": 1309584822.8724329, "message": "pro django has a good discussion on meta classes", "group_id": 292, "id": 1547032}, {"user_id": 35932, "stars": [{"date_created": 1309614942.0365829, "user_id": 8391}], "topic_id": 40991, "date_created": 1309594236.991281, "message": "Pro Python by Marty Alchin", "group_id": 292, "id": 1547367}, {"user_id": 8391, "stars": [], "topic_id": 40991, "date_created": 1309615003.2364111, "message": "@williamratcliff Pro Python is essentially that infamous chapter from Pro Python extended out into an entire book :P", "group_id": 292, "id": 1547932}, {"user_id": 8391, "stars": [], "topic_id": 40991, "date_created": 1309614965.1348, "message": "Expert Python Programming is also really really good.", "group_id": 292, "id": 1547930}, {"user_id": 21126, "stars": [], "topic_id": 40991, "date_created": 1309630691.5283711, "message": "thanks. it is helpful to see a thumbs up for both those books.", "group_id": 292, "id": 1548925}]
@@ -0,0 +1 @@
[{"user_id": 5673, "stars": [], "topic_id": 9284, "date_created": 1298755443.4664381, "message": "If you're working on porting python 2 code to python 3 using 2to3, this topic is for you. Feel free to share techniques that have worked for you, ask about issues that have caused you trouble, or try to recruit help for specific porting projects.", "group_id": 292, "id": 215705}, {"user_id": 5673, "stars": [], "topic_id": 9284, "date_created": 1298759261.766942, "message": "(The code, btw, is in formencode's tests.test_htmlfill.py)", "group_id": 292, "id": 215880}, {"user_id": 5673, "stars": [], "topic_id": 9284, "date_created": 1298759231.9803591, "message": "There seems to be a weird issue with converting __builtin__ to builtins. The import got changed, but a place where it got used later on didn't get fixed. I'm working around it by doing `import __builtin__ as builtins`, and using builtins in the code. It's a little ugly, as it converts to `import builtins as builtins`, but it seems to work. Anyone know why that wouldn't get caught?", "group_id": 292, "id": 215872}, {"user_id": 2863, "stars": [], "topic_id": 9284, "date_created": 1298784227.6680961, "message": "@jodyer did you report the issue?", "group_id": 292, "id": 216565}, {"user_id": 5673, "stars": [], "topic_id": 9284, "date_created": 1298833525.8251719, "message": "@brettcannon: Not yet. Gonna do that today.", "group_id": 292, "id": 219303}, {"user_id": 5673, "stars": [], "topic_id": 9284, "date_created": 1298838389.6941049, "message": "@brettcannon: Done. Thanks for the motivator.", "group_id": 292, "id": 220422}, {"user_id": 1944, "stars": [], "topic_id": 9284, "date_created": 1298980571.3494971, "message": "I've found it useful to have distribute run 2to3 on installation and run the tests against different Pythons using tox", "group_id": 292, "id": 233935}, {"user_id": 1944, "stars": [], "topic_id": 9284, "date_created": 1298980606.787672, "message": "Note that you have to include the tests in your package for distribute to run 2to3 on those too", "group_id": 292, "id": 233937}, {"user_id": 5582, "stars": [], "topic_id": 9284, "date_created": 1298982023.5555749, "message": "Relevant blog post (not mine): Lessons learned porting dateutil to Python 3 http://www.protocolostomy.com/2011/02/25/lessons-learned-porting-dateutil-to-python-3/", "group_id": 292, "id": 234047}, {"user_id": 5639, "stars": [{"date_created": 1298987716.129684, "user_id": 5582}], "topic_id": 9284, "date_created": 1298987564.328536, "message": "heh. That's my post! ;-P", "group_id": 292, "id": 234637}, {"user_id": 2863, "stars": [], "topic_id": 9284, "date_created": 1299043402.523454, "message": "I should also point out there is now a HOWTO on porting: http://docs.python.org/dev/howto/pyporting.html", "group_id": 292, "id": 243678}, {"user_id": 5673, "stars": [], "topic_id": 9284, "date_created": 1299096566.930521, "message": "I'm finding this article very helpful: http://techspot.zzzeek.org/2011/01/24/zzzeek-s-guide-to-python-3-porting/", "group_id": 292, "id": 252422}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 13689, "stars": [], "topic_id": 41161, "date_created": 1309859284.5154109, "message": "techcrunch.com/2011/06/21/influads-launches-crowd-sourced-ad-network-to-try-and-de-clutter-the-web-of-banners", "group_id": 292, "id": 1565977}, {"user_id": 13689, "stars": [], "topic_id": 41161, "date_created": 1309859216.007339, "message": "Hi guys, Anibal CEO of InfluAds here. This is a bit of a promotion but also something that i believe is very relevant to some of you.", "group_id": 292, "id": 1565972}, {"user_id": 13689, "stars": [], "topic_id": 41161, "date_created": 1309859281.30036, "message": "INFLUADS recently launched a crowd-sourced ad network where people can build their own networks. We always wanted to start one focusing on Python and Django only (the first of it kind).", "group_id": 292, "id": 1565976}, {"user_id": 13689, "stars": [], "topic_id": 41161, "date_created": 1309859378.6776011, "message": "Let me know if you are interested (anibal@influads.com) and feel free to check more at http://influads.com or join at http://influads.com/publishers", "group_id": 292, "id": 1565987}, {"user_id": 13689, "stars": [], "topic_id": 41161, "date_created": 1309859341.5125201, "message": "Would you be interested in joining? We need 10 or so interesting sites and we'll ask those publishers to start inviting others onboard, curating the quality onboard. When we reach a minimum size, we'll take care of sales and launch it officially.", "group_id": 292, "id": 1565985}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 36606, "stars": [], "topic_id": 39984, "date_created": 1308665022.3603101, "message": "hey guys, i'm looking for a python developer (& django ) from delhi who can teach me python.", "group_id": 292, "id": 1448672}, {"user_id": 34979, "stars": [{"date_created": 1313724499.9338901, "user_id": 39891}], "topic_id": 39984, "date_created": 1308749569.5703709, "message": "Why do they have to be from Delhi? The whole beauty of the Web is that they can be from anywhere.", "group_id": 292, "id": 1456978}, {"user_id": 22109, "stars": [{"date_created": 1308793993.524483, "user_id": 1081}, {"date_created": 1308815486.621572, "user_id": 1398}, {"date_created": 1309083527.510536, "user_id": 592}, {"date_created": 1309158504.667707, "user_id": 28690}, {"date_created": 1317493178.755929, "user_id": 41734}], "topic_id": 39984, "date_created": 1308769691.475069, "message": "http://learnpythonthehardway.org/", "group_id": 292, "id": 1459369}, {"user_id": 1398, "stars": [{"date_created": 1314976674.1758821, "user_id": 40425}], "topic_id": 39984, "date_created": 1308815536.7476699, "message": "Yeah, http://learnpythonthehardway.org is the best class/tutorial/book I've ever seen for Python or just plain programming. Read every sentence and don't cut-and-paste at all. If you finish, you will know Python.", "group_id": 292, "id": 1464391}, {"user_id": 22943, "stars": [], "topic_id": 39984, "date_created": 1310692712.011272, "message": "(you will know basic basic basic python)", "group_id": 292, "id": 1641750}]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 2810, "stars": [], "topic_id": 48790, "date_created": 1324047042.5961771, "message": "Hmmm dunno :)", "group_id": 292, "id": 2743697}, {"user_id": 15940, "stars": [], "topic_id": 48790, "date_created": 1324046649.279398, "message": "i just wanted to check :)", "group_id": 292, "id": 2743688}, {"user_id": 20107, "stars": [], "topic_id": 48790, "date_created": 1324047749.5939021, "message": "I love Convore, but it seems to have lost its main user base within the past couple months. I'm still getting the weekly conversation digest, but other than that I haven't heard from the convore team in a while. I wonder what's up.", "group_id": 292, "id": 2743713}, {"user_id": 15940, "stars": [], "topic_id": 48790, "date_created": 1324047947.7098179, "message": "convore is good but not much people here", "group_id": 292, "id": 2743717}, {"user_id": 1924, "stars": [], "topic_id": 48790, "date_created": 1324048606.030293, "message": "The creators of Convore have been been working on http://Grove.io and some article I read said they failed to find a use case for Convore.", "group_id": 292, "id": 2743734}, {"user_id": 5114, "stars": [], "topic_id": 48790, "date_created": 1324057977.2691679, "message": "well, yes... but we need more people.", "group_id": 292, "id": 2743793}, {"user_id": 2108, "stars": [], "topic_id": 48790, "date_created": 1324096588.870626, "message": "Convore is great!", "group_id": 292, "id": 2743911}, {"user_id": 13325, "stars": [], "topic_id": 48790, "date_created": 1324101395.822798, "message": "Convore does have a use case. It's just not in the technical audience. Look at a forum like babycenter. It's very high traffic and it's users use it like a chatroom. We're talking 10 to 20 posts a minute in a thread. Something like convore is perfect for that situation.", "group_id": 292, "id": 2743922}, {"user_id": 21093, "stars": [], "topic_id": 48790, "date_created": 1324132282.855767, "message": "I think it's useful as a forum because it has decent email notification of new posts and traffic, something that I find is often lacking in such things. It enables publicly available conversations that feel somewhat like IRC but are sorted by topic and asynchronous so they don't requiring my constant presence (twitter has the same async property but I think convore wins in approach to dealing w/ topics and overall ui design). I'm a bit surprised it's not proved popular among Python folks, but it is competing w/ web search, stackoverflow, irc, twitter, and the news groups as a way to ask questions and get answers. Convore might be more useful for things like communicating at PyCon (and it was used a lot for that last year).", "group_id": 292, "id": 2743962}, {"user_id": 44443, "stars": [], "topic_id": 48790, "date_created": 1324240143.108604, "message": "Hello", "group_id": 292, "id": 2744153}, {"user_id": 38714, "stars": [], "topic_id": 48790, "date_created": 1324173883.2270689, "message": "+1 for convore from me too. I think it's a great little app. I like the idea of themed conversations, which makes things more structured than IRC.", "group_id": 292, "id": 2744058}, {"user_id": 38714, "stars": [], "topic_id": 48790, "date_created": 1324173907.5277469, "message": "However, it runs quite slow for me.", "group_id": 292, "id": 2744059}, {"user_id": 1924, "stars": [], "topic_id": 48790, "date_created": 1324312175.697422, "message": "@timClicks ...and then there's that and the fail kitty. :-/", "group_id": 292, "id": 2744422}, {"user_id": 1924, "stars": [], "topic_id": 48790, "date_created": 1324312140.800102, "message": "@emperorcezar @sdeibel @timClicks +1. I really enjoyed it at PyCon, and find it much more appealing than a mailing list for community starting. I'm have a hunch that when they said \"use case\" they really meant business case. :-/ I wouldn't mind a clone or multiple convore sites out there, but do like that all the groups are connected.", "group_id": 292, "id": 2744420}]
@@ -0,0 +1 @@
[{"user_id": 2169, "stars": [], "topic_id": 17535, "date_created": 1302059460.5530419, "message": "Passing a URL argument as a string variable gives different results than passing an argument as a hand typed string. If that makes any sense", "group_id": 292, "id": 554050}, {"user_id": 9307, "stars": [], "topic_id": 17535, "date_created": 1302073451.400332, "message": "We use that library at work but I haven't seen that bug. Can you paste a repro somewhere?", "group_id": 292, "id": 555711}, {"user_id": 2169, "stars": [], "topic_id": 17535, "date_created": 1302102447.7790599, "message": "I will", "group_id": 292, "id": 560199}, {"user_id": 1398, "stars": [], "topic_id": 17535, "date_created": 1302116894.5370209, "message": "I'ce heard the python-sdk from facebook is broken at this time.", "group_id": 292, "id": 563211}, {"user_id": 8391, "stars": [], "topic_id": 17535, "date_created": 1302118517.693119, "message": "It's not worth even looking at. It doesn't even have a license.", "group_id": 292, "id": 563647}, {"user_id": 8391, "stars": [], "topic_id": 17535, "date_created": 1302118544.356647, "message": "It's easy enough to wrap the graph api manually.", "group_id": 292, "id": 563655}, {"user_id": 3354, "stars": [], "topic_id": 17535, "date_created": 1302663415.2041619, "message": "What about authentication? I struggled to find a workflow for desktop apps but couldn't come up with anything workable. Their web stuff seems horrendously clunky and badly documented (to me, anyway).", "group_id": 292, "id": 655902}, {"user_id": 9896, "stars": [], "topic_id": 17535, "date_created": 1302679844.6401131, "message": "the official facebook python-sdk is an atrocity, unfortunately I always found it easier to just do it by hand (both auth and graph api)", "group_id": 292, "id": 661024}, {"user_id": 9896, "stars": [], "topic_id": 17535, "date_created": 1302679971.187597, "message": "just look at this bug report with which I couldn't agree more: https://github.com/facebook/python-sdk/issues/58", "group_id": 292, "id": 661035}]
@@ -0,0 +1 @@
[{"user_id": 28054, "stars": [], "topic_id": 37988, "date_created": 1307118580.134258, "message": "I've used some Java BDD tools like Concordion in the past. Freshen looks good, just curious if anyone has anything good/bad/indifferent to say about it. Thanks.", "group_id": 292, "id": 1278719}, {"user_id": 8984, "stars": [], "topic_id": 37988, "date_created": 1307179336.4184279, "message": "I tried it for a while but went back to unittest and nose", "group_id": 292, "id": 1285243}, {"user_id": 5367, "stars": [], "topic_id": 37988, "date_created": 1307350380.98873, "message": "I still see BDD style tests as just verbose unit tests. Only using them in javascript with jasmine just because it's a great tool and no other reason. But that's just me and might be missing something.", "group_id": 292, "id": 1301487}, {"user_id": 960, "stars": [], "topic_id": 37988, "date_created": 1307421899.181376, "message": "I'm using Lettuce because of it's Django integration until I get the chance to write a new one. Unfortunately, none of the Cucumber clones in Python get it right imo. All are just slightly off.", "group_id": 292, "id": 1316956}, {"user_id": 28054, "stars": [], "topic_id": 37988, "date_created": 1307457522.344106, "message": "thanks for the feedback. I'm going to play around with it today and see what I think.", "group_id": 292, "id": 1322058}]
@@ -0,0 +1 @@
[]
@@ -0,0 +1 @@
[{"user_id": 2863, "stars": [], "topic_id": 2653, "date_created": 1297289153.9559569, "message": "http://docs.python.org/devguide/", "group_id": 292, "id": 58600}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 6661, "stars": [], "topic_id": 10956, "date_created": 1299313023.805321, "message": "I have already asked this in the Hacker News group but realised this might be a better place to ask it", "group_id": 292, "id": 275428}, {"user_id": 6661, "stars": [], "topic_id": 10956, "date_created": 1299313049.4182169, "message": "http://news.ycombinator.com/item?id=2291064", "group_id": 292, "id": 275430}, {"user_id": 6661, "stars": [], "topic_id": 10956, "date_created": 1299313058.374454, "message": "Please answer if you can", "group_id": 292, "id": 275432}, {"user_id": 12817, "stars": [], "topic_id": 10956, "date_created": 1299325287.6245289, "message": "I dived straight into Django (coming from a PHP background), but if you want to start with something you can hit the ground running with on a small app maybe try Flask?", "group_id": 292, "id": 276043}, {"user_id": 7364, "stars": [], "topic_id": 10956, "date_created": 1299444316.4323289, "message": "tuhin: it depends a lot on the project, as different frameworks have different strengths.", "group_id": 292, "id": 281757}, {"user_id": 19235, "stars": [{"date_created": 1299471423.242234, "user_id": 1}, {"date_created": 1299508258.5492909, "user_id": 7179}], "topic_id": 10956, "date_created": 1299471327.9219229, "message": "I think it's better to have a good understanding of the language before diving into frameworks. You can begin with \"Dive Into Python\" by Mark Pilgrim - http://diveintopython.org/toc/index.html", "group_id": 292, "id": 285045}, {"user_id": 18539, "stars": [], "topic_id": 10956, "date_created": 1299497808.2432749, "message": "Although I mostly agree you should probably learn the language before kicking off with frameworks, the feedback I have seen from newbies in #python (the IRC channel) makes me actively dislike DIP, and I am nowhere near alone in that. There's basically Learn Python the Hard Way, Think Python, and the official tutorial. They all cater to different levels of existing knowledge (everyone, non-programming geeks, non-Python programmers respectively).", "group_id": 292, "id": 286988}, {"user_id": 2313, "stars": [], "topic_id": 10956, "date_created": 1299504454.3283391, "message": "DIP is totally outdated and doesn't follow PEP 8. It does not introduce with statements and if expressions; the XML/HTML processing chapters are best ignored entirely and these are just the problems obvious at first glance. The functional programming stuff is a joke at best and almost everything related to import and sys.modules... well lets just forget that ever happened.", "group_id": 292, "id": 287456}, {"user_id": 6661, "stars": [], "topic_id": 10956, "date_created": 1299561377.990731, "message": "FWIW, I am familiar with the very basic stuff mentioned in \"How to think like a Computer Scientist\" and the 6.0 of MIT OCW. Dive into Python will be the secondary reading but I want to also start understanding things like threads, error handling, URL templating, user sessions and how to implement all that in Python. Not sure if the book ever goes into that.", "group_id": 292, "id": 294188}, {"user_id": 6415, "stars": [], "topic_id": 10956, "date_created": 1299582202.523035, "message": "@tuhin Once you are confortable with the language, you should read about modules you are interested in (like threading) in \"Python Module of the Week\" http://www.doughellmann.com/PyMOTW/contents.html @doughellmann has plans to turn this into a book too.", "group_id": 292, "id": 295453}, {"user_id": 1760, "stars": [{"date_created": 1299616624.8474791, "user_id": 6415}], "topic_id": 10956, "date_created": 1299588464.8190751, "message": "The book is nearly done and available for preorder now. http://www.doughellmann.com/books/byexample/index.html", "group_id": 292, "id": 295731}]
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
[]
+1
View File
@@ -0,0 +1 @@
[]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 1116, "stars": [], "topic_id": 42210, "date_created": 1310986644.287596, "message": "What are the best practices for running a google app engine project using python. Thanks!", "group_id": 292, "id": 1661528}, {"user_id": 13507, "stars": [], "topic_id": 42210, "date_created": 1311944003.4853809, "message": "seems there aren't any", "group_id": 292, "id": 1747001}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 16699, "stars": [], "topic_id": 40838, "date_created": 1309444798.706121, "message": "If you want to use python to generate non-xml/non-html output (i.e. bash scripts, ini files, apache configs, etc), what's the best templating language to use?", "group_id": 292, "id": 1528410}, {"user_id": 651, "stars": [], "topic_id": 40838, "date_created": 1309524265.8276141, "message": "I really like mustache (available for python via pystache). I use it to generate a bunch of different outputs like markdown and tex.", "group_id": 292, "id": 1539826}, {"user_id": 34132, "stars": [{"date_created": 1309567212.9468269, "user_id": 22109}, {"date_created": 1309647401.5462251, "user_id": 13912}], "topic_id": 40838, "date_created": 1309566554.52931, "message": "Jinja2 is excellent - syntax similar to Django templates, but more permissive and powerful", "group_id": 292, "id": 1546304}, {"user_id": 18123, "stars": [], "topic_id": 40838, "date_created": 1310227629.8295939, "message": "Jinja2 is great and you can use it to generate any text-based file", "group_id": 292, "id": 1599365}, {"user_id": 33745, "stars": [], "topic_id": 40838, "date_created": 1310307729.6549921, "message": "I use jinja2 as the default in Salt (saltstack.org) for generating many types of data files, it works great!", "group_id": 292, "id": 1604570}, {"user_id": 20399, "stars": [], "topic_id": 40838, "date_created": 1310391599.5356619, "message": "The \"templating engine cookoff\" might be useful to you: http://catherinedevlin.pythoneers.com/cookoff.html", "group_id": 292, "id": 1611939}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 20519, "stars": [], "topic_id": 12260, "date_created": 1299819254.0909071, "message": "Im new and i would like to know if theirs any great web hosting companies offering new technologies. FFmpeg support would be nice. thank you", "group_id": 292, "id": 319429}, {"user_id": 20519, "stars": [], "topic_id": 12260, "date_created": 1299819267.9468329, "message": "btw i currently use mediatemple.net", "group_id": 292, "id": 319431}, {"user_id": 5582, "stars": [], "topic_id": 12260, "date_created": 1299822824.131022, "message": "You should consider at least a VPS. Or Amazon EC2.", "group_id": 292, "id": 319687}, {"user_id": 20519, "stars": [], "topic_id": 12260, "date_created": 1299823567.96382, "message": "how would i set up a VPS? and whats the cost of amazon ec2.", "group_id": 292, "id": 319760}, {"user_id": 13501, "stars": [], "topic_id": 12260, "date_created": 1299827018.8746009, "message": "xmpp is the harder part... since in a sense you are running some sort of chat/messenging protocol with that", "group_id": 292, "id": 320201}, {"user_id": 11972, "stars": [], "topic_id": 12260, "date_created": 1299825696.5940371, "message": "EC2 can be free (or very very cheap) for the micro instances, there you can install Ubuntu.", "group_id": 292, "id": 320055}, {"user_id": 20519, "stars": [], "topic_id": 12260, "date_created": 1299827944.0164449, "message": "how can u st up a google app engine to work with a website. and ec2 can be free and im guessing u can install anything u want on that. and xmpp should not be too hard, but ive always wanted to mess with it.thank you everyone. i hope this helps others as much as it helps me.=]", "group_id": 292, "id": 320271}, {"user_id": 19652, "stars": [], "topic_id": 12260, "date_created": 1299827370.314326, "message": "I know that webfaction will support the cheap and ffmpeg you should hit the support chat for xmpp", "group_id": 292, "id": 320225}, {"user_id": 3751, "stars": [], "topic_id": 12260, "date_created": 1299827654.2416301, "message": "google app engine support both django and xmpp, but is not reliable all the time", "group_id": 292, "id": 320245}, {"user_id": 3409, "stars": [], "topic_id": 12260, "date_created": 1299833449.2055399, "message": "I'd go with a VPS (I have experience with Slicehost, personally).\nEC2 is nice, but it was incredibly slow for me (the same application on a supposedly similar SliceHost VPS supported about 10 times more concurrent connections on the VPS).", "group_id": 292, "id": 320654}, {"user_id": 13501, "stars": [], "topic_id": 12260, "date_created": 1299836253.455358, "message": "gae's sounds like a good one... but just don't know the xmpp backend they provides would cost your CPU time... if not, that's is a good deal (just your xmpp_handlers should not cost too much to maintain than http requests)", "group_id": 292, "id": 320970}, {"user_id": 16058, "stars": [], "topic_id": 12260, "date_created": 1300007167.1825881, "message": "Media Temple is good (but expensive), use their (ve) servers", "group_id": 292, "id": 339671}, {"user_id": 21059, "stars": [], "topic_id": 12260, "date_created": 1300050482.556303, "message": "@igorgue How can the micro instance be free? Isn't there always some charge?", "group_id": 292, "id": 343539}, {"user_id": 560, "stars": [], "topic_id": 12260, "date_created": 1300052501.076349, "message": "takes a fair bit of finagling to get it going properly", "group_id": 292, "id": 343730}, {"user_id": 560, "stars": [], "topic_id": 12260, "date_created": 1300052491.253546, "message": "media temple can be a pain in the butt", "group_id": 292, "id": 343728}, {"user_id": 1736, "stars": [], "topic_id": 12260, "date_created": 1300073798.320075, "message": "@dsr Free for one year for new customers, along with some EBS and S3 usage I think. Micro instances are effectively using the random scraps of space left as physical servers fill up with VMs, which is why performance is so blowful.", "group_id": 292, "id": 344782}, {"user_id": 11972, "stars": [], "topic_id": 12260, "date_created": 1300113211.6607959, "message": "@dsr I think if you use Amazon's provided and Micro instances, you get it for free, if not for very very cheap, of course these instances are limited. http://aws.amazon.com/ec2/#pricing", "group_id": 292, "id": 347661}, {"user_id": 21059, "stars": [], "topic_id": 12260, "date_created": 1300138858.503233, "message": "@coderanger @igorgue Thanks folks. I found that shortly after asking. Seems like a pretty good deal for cutting one's teeth on.", "group_id": 292, "id": 351332}, {"user_id": 13893, "stars": [], "topic_id": 12260, "date_created": 1300141290.922035, "message": "If dedicated box is too much for you, you can't go wrong with either linode or slicehost. You get what you pay for with them. And since you have full control of your system, you can put ffmpeg/anything you like", "group_id": 292, "id": 351560}]
@@ -0,0 +1 @@
[{"user_id": 6671, "stars": [{"date_created": 1299708960.4136159, "user_id": 13912}], "topic_id": 11488, "date_created": 1299652788.924978, "message": "Statistically speaking, desktop systems are running Windows XP, and are therefore not running Python at all. Some smaller number of them are running Snow Leopard, and those are running 2.6. :)", "group_id": 292, "id": 302349}, {"user_id": 5942, "stars": [], "topic_id": 11488, "date_created": 1299654529.6142631, "message": "some guys use Python only for Google App Engine, so maybe 2.5.", "group_id": 292, "id": 302416}, {"user_id": 5942, "stars": [], "topic_id": 11488, "date_created": 1299659173.8566511, "message": "@adsworth , if one is a general Python coder, 2.6 or 2.7 can handle local GAE too. on the other hand, if one is a GAE only user, the tutorial from GAE said Python 2.5.2 is the right version, so.", "group_id": 292, "id": 302694}, {"user_id": 17897, "stars": [], "topic_id": 11488, "date_created": 1299658671.7917261, "message": "@sungiang but the guys who have 2.5 for GAE installed probably also have 2.6.", "group_id": 292, "id": 302666}, {"user_id": 17897, "stars": [], "topic_id": 11488, "date_created": 1299658623.2373321, "message": "@glyph to true about the WinXP thing and packaging an app for Win32 will include Python anyway. SL having 2.6 is good to know. I guess the rest of them are running Ubuntu and that also has 2.6. Debian Lenny still had 2.5 although Squeeze has just been released and that has 2.6.", "group_id": 292, "id": 302662}, {"user_id": 17897, "stars": [], "topic_id": 11488, "date_created": 1299658727.90959, "message": "Windows and MacOS X are pretty simple about versions. My thoughts were more in the direction of the Linux users who still only have 2.5 in their distros repositories.", "group_id": 292, "id": 302671}, {"user_id": 13501, "stars": [], "topic_id": 11488, "date_created": 1299665835.5053091, "message": "always assume the worst... so use hashlib imports...", "group_id": 292, "id": 303424}, {"user_id": 13912, "stars": [], "topic_id": 11488, "date_created": 1299709320.6859479, "message": "even if you take red hat and derivatives out of the equation, even for linux only", "group_id": 292, "id": 309007}, {"user_id": 13912, "stars": [], "topic_id": 11488, "date_created": 1299709158.7882979, "message": "yeah, relying on any one python version is generally a bad idea", "group_id": 292, "id": 308984}, {"user_id": 17897, "stars": [], "topic_id": 11488, "date_created": 1299710180.031554, "message": "the question came up for me whether I want to start using .format for string formatting. That means I would have to rely on 2.6. I'm using % for now so 2.5 is still OK.", "group_id": 292, "id": 309078}, {"user_id": 13912, "stars": [], "topic_id": 11488, "date_created": 1299713356.8734651, "message": "yeah, you can be pretty sure there are people using <2.6, especially red hat users, but that's your choice, what minimum version of python your project will require", "group_id": 292, "id": 309294}, {"user_id": 18972, "stars": [], "topic_id": 11488, "date_created": 1299713410.2567561, "message": "depends on who's desktops.. Enterprises using rhel4 and rhel5 are still both stuck on python 2.4 as their defacto version. :( This is one reason I suggest people get over using the distro version and bundle their own with their app when possible.", "group_id": 292, "id": 309303}, {"user_id": 5942, "stars": [], "topic_id": 11488, "date_created": 1299725400.2829521, "message": "@gpshead for web dev, maybe. for client script/GUI app, maybe it's a bit of tired to ask user to installing a standalone Python before one can use it.", "group_id": 292, "id": 310205}, {"user_id": 19652, "stars": [], "topic_id": 11488, "date_created": 1299729388.147995, "message": "I think 2.5 will be more reasonable. The Redhat/centos case is pretty bad as @gpshead pointed out they are stuck on 2.4 and due to support that's not going away for a long time. If i'ts a desktop app Perhaps going back to 2.4 will be the most secure option", "group_id": 292, "id": 310769}, {"user_id": 18972, "stars": [], "topic_id": 11488, "date_created": 1299730200.3941071, "message": "Yeah you never ever want to ask a user to install python x.y themselves for a client app, it needs to be bundled as part of your app (which is not how open source things tend to be released...) for a single \"click\" install.", "group_id": 292, "id": 310823}, {"user_id": 17897, "stars": [], "topic_id": 11488, "date_created": 1299743835.7240911, "message": "@gpshead I'm happy that my app is coming along nicely. I don't even want to try and wrap my head around bundling python with my release. Although I guess I could ask the WingIDE guys for tips. They have their own bundled python.", "group_id": 292, "id": 311718}]
@@ -0,0 +1 @@
[{"user_id": 653, "stars": [], "topic_id": 13054, "date_created": 1300132695.8360081, "message": "In Python 2.7, I had some code that l looked like this (assume `right` is a list of dictionaries): right = {r.get(join_key): r for r in right}. When I run this same code in 2.5, I get a syntax error. What feature or change is it in 2.7 that makes this work?", "group_id": 292, "id": 350353}, {"user_id": 5778, "stars": [], "topic_id": 13054, "date_created": 1300132779.8569939, "message": "you can kinda do a dict comprehension in 2.5", "group_id": 292, "id": 350366}, {"user_id": 6587, "stars": [], "topic_id": 13054, "date_created": 1300132767.9435201, "message": "2.5 doesn't have dictionary comprehension", "group_id": 292, "id": 350362}, {"user_id": 5778, "stars": [], "topic_id": 13054, "date_created": 1300132803.525593, "message": "right = dict([(key, val) for key, val in right.items()])", "group_id": 292, "id": 350377}, {"user_id": 653, "stars": [], "topic_id": 13054, "date_created": 1300132883.390187, "message": "@codekoala Cool. Thanks for that too.", "group_id": 292, "id": 350397}, {"user_id": 653, "stars": [], "topic_id": 13054, "date_created": 1300132814.855623, "message": "@keegan Thanks! I knew how to fix it, but I wasn't sure why it was broken. Usually the other way around.", "group_id": 292, "id": 350379}, {"user_id": 5778, "stars": [], "topic_id": 13054, "date_created": 1300132890.8648541, "message": "@aezellisdead np", "group_id": 292, "id": 350398}, {"user_id": 5778, "stars": [{"date_created": 1300136588.153187, "user_id": 16058}], "topic_id": 13054, "date_created": 1300132827.894654, "message": "or just dict(derp for derp in right.items())", "group_id": 292, "id": 350381}]
@@ -0,0 +1 @@
[{"user_id": 960, "stars": [], "topic_id": 40886, "date_created": 1309477117.5344219, "message": "Are there any ways to provide a new pth file instead of the auto-generated one that distribute/setuptools creates?", "group_id": 292, "id": 1535210}, {"user_id": 960, "stars": [], "topic_id": 40886, "date_created": 1309477154.0172019, "message": "And yes, I know... that's dangerous, shouldn't do it, etc., and so on, in ad infinitum. I have a real need right now.", "group_id": 292, "id": 1535216}, {"user_id": 960, "stars": [], "topic_id": 40886, "date_created": 1309479834.2839949, "message": "Nope, I mean a whole different pth file.", "group_id": 292, "id": 1535793}, {"user_id": 8391, "stars": [], "topic_id": 40886, "date_created": 1309478442.4703691, "message": "you mean the default location for installed packages (eg. via `python setup.py install) ?", "group_id": 292, "id": 1535541}, {"user_id": 960, "stars": [], "topic_id": 40886, "date_created": 1309479837.1855471, "message": "See https://gist.github.com/1057594", "group_id": 292, "id": 1535794}]
@@ -0,0 +1 @@
[{"user_id": 2169, "stars": [], "topic_id": 16634, "date_created": 1301623582.3572061, "message": "Like the title says, working with the facebook graph api, some calls return strings that are not JSON. Any way I can detect this?", "group_id": 292, "id": 498530}, {"user_id": 218, "stars": [], "topic_id": 16634, "date_created": 1301625368.3300231, "message": "yes.", "group_id": 292, "id": 498702}, {"user_id": 1736, "stars": [], "topic_id": 16634, "date_created": 1301624132.4743309, "message": "json.loads will raise a ValueError", "group_id": 292, "id": 498583}, {"user_id": 218, "stars": [], "topic_id": 16634, "date_created": 1301625386.2190681, "message": "except ValueError: print \"its not json\"", "group_id": 292, "id": 498705}, {"user_id": 2169, "stars": [], "topic_id": 16634, "date_created": 1301625073.3004251, "message": "I'm new to this. Is that a typical way to set this up. Just except a ValueError?", "group_id": 292, "id": 498666}, {"user_id": 218, "stars": [], "topic_id": 16634, "date_created": 1301625379.53285, "message": "try: simplejson.loads(my_string)", "group_id": 292, "id": 498704}, {"user_id": 7781, "stars": [], "topic_id": 16634, "date_created": 1301635642.961771, "message": "Agreed, the easiest way is to try to deserialise it and catch the error on fail.", "group_id": 292, "id": 499681}]
@@ -0,0 +1 @@
[{"user_id": 27283, "stars": [{"date_created": 1304396877.7337279, "user_id": 1982}], "topic_id": 33332, "date_created": 1304384090.690834, "message": "I believe I have found an ideal way to deal with dependencies when developing python web applications. The idea is to set up a private PyPI server and mirror all your packages from there. I have written a script that utilizes pip to do this: http://ssutch.org/requisite and a guide that shows how easy it is to get up and running with your own copy of PyPI: http://ssutch.org/chishop-epio Tell me what you think.", "group_id": 292, "id": 891456}, {"user_id": 9229, "stars": [], "topic_id": 33332, "date_created": 1304403989.4238579, "message": "Oh, and apache isn't really necessary. \"python -m SimpleHTTPServer\" in the cached files directory will do :-)", "group_id": 292, "id": 894760}, {"user_id": 9229, "stars": [], "topic_id": 33332, "date_created": 1304403923.295049, "message": "Where I work we have a simple proxy that we use when performing our first installation with pip. It stores off the downloaded files which we move to a directory that Apache can serve. We then point pip at that apache directory for all subsequent installations. Easy as pie. I should write this up...", "group_id": 292, "id": 894759}, {"user_id": 18985, "stars": [], "topic_id": 33332, "date_created": 1304430500.5971889, "message": "I keep each package in HG, use hgwebdir to serve up all those repos, then each package in my requirements.txt file points at those (using \"-e hg+http://...\")", "group_id": 292, "id": 898058}, {"user_id": 27283, "stars": [], "topic_id": 33332, "date_created": 1304451261.884079, "message": "@r1chardj0n3s you should indeed write this up.", "group_id": 292, "id": 902184}, {"user_id": 4383, "stars": [], "topic_id": 33332, "date_created": 1304575370.4655721, "message": "I have situations where setting up pypi servers is pretty annoying and cost prohibitive. We would have to set up a pypi server for each customer and project. It would be a nightmare managing all of that.", "group_id": 292, "id": 924943}, {"user_id": 4383, "stars": [], "topic_id": 33332, "date_created": 1304575444.4115419, "message": "And what happens when dependencies change? Does your deploy script update your pypi installation automatically or do you need to update it manually? I would like to be able to update requirements.txt and not really worry about much else.", "group_id": 292, "id": 924963}, {"user_id": 27283, "stars": [], "topic_id": 33332, "date_created": 1304665160.8153231, "message": "@ianmlewis that's what requisite is supposed to accomplish.", "group_id": 292, "id": 939198}, {"user_id": 27283, "stars": [], "topic_id": 33332, "date_created": 1304665188.6950951, "message": "@ianmlewis it probably wouldn't work great for your situation, however.", "group_id": 292, "id": 939202}]
@@ -0,0 +1 @@
[{"user_id": 8391, "stars": [{"date_created": 1301548659.1057639, "user_id": 1}, {"date_created": 1301551846.2365351, "user_id": 141}, {"date_created": 1301554768.2362189, "user_id": 11972}, {"date_created": 1301557177.791271, "user_id": 5942}, {"date_created": 1301580440.7122011, "user_id": 209}], "topic_id": 16408, "date_created": 1301548359.1295171, "message": "I wrote a Python module for making awesome CLI apps easily: https://github.com/kennethreitz/clint", "group_id": 292, "id": 488383}, {"user_id": 8391, "stars": [], "topic_id": 16408, "date_created": 1301548370.212764, "message": "Thoughts welcome", "group_id": 292, "id": 488388}, {"user_id": 11972, "stars": [{"date_created": 1301586294.7898879, "user_id": 8391}], "topic_id": 16408, "date_created": 1301554832.705195, "message": "Looks really cool!, I'm already liking it because of the color output :-)", "group_id": 292, "id": 489504}, {"user_id": 14438, "stars": [{"date_created": 1301586302.08518, "user_id": 8391}], "topic_id": 16408, "date_created": 1301561132.3692911, "message": "Interesting staff. It would have been usefull when I were building console scripts (I'm on the web land now). Congrat'", "group_id": 292, "id": 490316}, {"user_id": 13325, "stars": [{"date_created": 1301586304.431854, "user_id": 8391}], "topic_id": 16408, "date_created": 1301575535.7657349, "message": "With the name, I see what you did there -_-", "group_id": 292, "id": 491250}, {"user_id": 13006, "stars": [], "topic_id": 16408, "date_created": 1301577699.8911581, "message": "Look cools at first glance. Great for sysadmin stuff. Can it be used for remote (ssh) stuff a la fabric?", "group_id": 292, "id": 491578}]
@@ -0,0 +1 @@
[{"user_id": 11592, "stars": [], "topic_id": 33620, "date_created": 1304513341.306675, "message": "Is there any standardized reference / tests for wannabe WSGI servers? Like i want to implement some bicycle for edutainment purposes and be sure any WSGI-compliant application or framework will happily work under it.", "group_id": 292, "id": 912486}, {"user_id": 7376, "stars": [], "topic_id": 33620, "date_created": 1304518217.1760161, "message": "http://docs.python.org/library/wsgiref.html#module-wsgiref.validate", "group_id": 292, "id": 913255}]
@@ -0,0 +1 @@
[{"user_id": 18979, "stars": [], "topic_id": 17382, "date_created": 1302012467.9919181, "message": "hello everybody .. this convore thing is new to me so forgive me any errors or stuff like that ;]", "group_id": 292, "id": 541211}, {"user_id": 18979, "stars": [], "topic_id": 17382, "date_created": 1302012543.8575349, "message": "i was wondering how i can get buildout ot use gmake instead of make as im trying to build typhoonAE on FreeBSD. One of the dependancies is libmemcached which needs gmake instead of make and i have no clue how to change the buildout.cfg so that the recipe uses gmake ;]", "group_id": 292, "id": 541232}, {"user_id": 18979, "stars": [], "topic_id": 17382, "date_created": 1302012552.7636299, "message": "thnx for any help", "group_id": 292, "id": 541234}, {"user_id": 10377, "stars": [], "topic_id": 17382, "date_created": 1302015845.1017179, "message": "i set an environment variable MAKE to /usr/bin/gmake or whereever it is.", "group_id": 292, "id": 541839}, {"user_id": 18979, "stars": [], "topic_id": 17382, "date_created": 1302017548.781992, "message": "and ofcourse the zc.recipe.cmmi is a zipped egg, not a dir so no easy hacking ;[", "group_id": 292, "id": 542232}, {"user_id": 18979, "stars": [], "topic_id": 17382, "date_created": 1302017126.9528611, "message": "this works to set the make used by configure to use gmake .. unfortunately the cmmi recipe calls system(\"make\") which still calls the \"normal\" make. lets see if i can configure the cmmi stuff ;] thnx !", "group_id": 292, "id": 542133}, {"user_id": 10377, "stars": [{"date_created": 1302019700.448421, "user_id": 11592}], "topic_id": 17382, "date_created": 1302017226.4219589, "message": "freebsd is a charm isn't it?", "group_id": 292, "id": 542168}, {"user_id": 18979, "stars": [], "topic_id": 17382, "date_created": 1302017753.3062811, "message": "what os are you using ?", "group_id": 292, "id": 542274}, {"user_id": 10377, "stars": [], "topic_id": 17382, "date_created": 1302017596.8320761, "message": "good luck, I just got lxml libs installed after days.", "group_id": 292, "id": 542246}, {"user_id": 18979, "stars": [], "topic_id": 17382, "date_created": 1302017398.7174749, "message": "hehe yeah ;] i normally use ubuntu but this is a freebsd jail almost for free so i need to use what i've been provided with.", "group_id": 292, "id": 542202}, {"user_id": 18979, "stars": [], "topic_id": 17382, "date_created": 1302017797.8952789, "message": "anyways thnx for the help", "group_id": 292, "id": 542289}, {"user_id": 25337, "stars": [], "topic_id": 17382, "date_created": 1302022879.6024671, "message": "@jsonbot I have unzip=true in .buildout/default.cfg to prevent the zipped egg annoyance.", "group_id": 292, "id": 543363}, {"user_id": 18979, "stars": [], "topic_id": 17382, "date_created": 1302024941.656966, "message": "thnx for the tip ;] seems a bit unpossible to use the standaard TyphoonAE buildout.cfg so i am trying now to make my own buildout.cfg and use the ports to compile as much as possible", "group_id": 292, "id": 543694}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 10074, "stars": [], "topic_id": 33596, "date_created": 1304498236.8649659, "message": "hey guys, i have a string with \"000000010000001F\" and i want to convert it into raw bits. If you would print the raw bits, you will get a lot of \"?\" (question marks) because it often has not the right code for letters.", "group_id": 292, "id": 910641}, {"user_id": 10074, "stars": [], "topic_id": 33596, "date_created": 1304498258.0913501, "message": "How can i achieve this?", "group_id": 292, "id": 910651}, {"user_id": 31883, "stars": [], "topic_id": 33596, "date_created": 1304506185.053365, "message": "@Samuirai I think you want \"\".join(str(bin(ord(x)))[2:].zfill(8) for x in that_string), but if that string is formatted as bytes in hex (e.g. \"1F\" == 31), then you want str(bin(int(that_string, 16)))[2:]", "group_id": 292, "id": 911630}, {"user_id": 222, "stars": [{"date_created": 1304541507.6970789, "user_id": 20326}, {"date_created": 1304561404.0114341, "user_id": 12831}, {"date_created": 1304582347.8982041, "user_id": 141}], "topic_id": 33596, "date_created": 1304538040.519418, "message": "The right way:\n\n >>> import binascii\n >>> binascii.a2b_hex('000000010000001F')\n '\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x1f'\n\nCheating:\n\n >>> '000000010000001F'.decode('hex')\n '\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x1f'", "group_id": 292, "id": 918652}, {"user_id": 222, "stars": [], "topic_id": 33596, "date_created": 1304538071.95239, "message": "If you want to get a list of int instead of a str you can map(ord, _) on that or use the array module.", "group_id": 292, "id": 918664}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 2588, "stars": [], "topic_id": 20834, "date_created": 1303480756.5471499, "message": "http://dabeazconcurrent.eventbrite.com/?ref=enivte&invite=ODk4OTI1L2JyaWFuQGxpbmNvbG5sb29wLmNvbS8w%0A&utm_source=eb_email&utm_medium=email&utm_campaign=invitenew&utm_term=eventpage", "group_id": 292, "id": 781590}]
@@ -0,0 +1 @@
[{"user_id": 9896, "stars": [], "topic_id": 18878, "date_created": 1302607170.8038499, "message": "In a recent pycon or djangocon someone had a talk where a decorator injected the decorated function everywhere where it was called from", "group_id": 292, "id": 640342}, {"user_id": 9896, "stars": [], "topic_id": 18878, "date_created": 1302607182.7889669, "message": "does anyone remember what talk it was?", "group_id": 292, "id": 640345}, {"user_id": 9896, "stars": [], "topic_id": 18878, "date_created": 1302607201.5910709, "message": "just want to show it to a colleague of mine, don't worry, we won't use that kind of stuff ;-)", "group_id": 292, "id": 640351}, {"user_id": 1822, "stars": [], "topic_id": 18878, "date_created": 1302614266.7929671, "message": "You mean a decorator that monkey patches instead of wraps?", "group_id": 292, "id": 642117}, {"user_id": 9896, "stars": [], "topic_id": 18878, "date_created": 1302615770.986546, "message": "yea, it was a real fun one. it microoptimizes your code by removing the overhead of function calls :D", "group_id": 292, "id": 642687}, {"user_id": 8019, "stars": [], "topic_id": 18878, "date_created": 1302644829.2328601, "message": "this might have been my @inline lightning-talk at PyCon AU last year; I", "group_id": 292, "id": 651359}, {"user_id": 8019, "stars": [], "topic_id": 18878, "date_created": 1302644844.3209209, "message": "I'll put it up on my github, hang on a tick...", "group_id": 292, "id": 651361}, {"user_id": 8019, "stars": [{"date_created": 1302650375.180794, "user_id": 1736}, {"date_created": 1302659696.9310551, "user_id": 5778}, {"date_created": 1302679547.48123, "user_id": 9896}, {"date_created": 1302705431.233032, "user_id": 22368}], "topic_id": 18878, "date_created": 1302649977.976289, "message": "code: https://github.com/rfk/atinline", "group_id": 292, "id": 652538}, {"user_id": 8019, "stars": [], "topic_id": 18878, "date_created": 1302649972.5479691, "message": "lightning talks video: http://python.mirocommunity.org/video/1782/pyconau-2010-lightning-talks-s", "group_id": 292, "id": 652537}, {"user_id": 9896, "stars": [], "topic_id": 18878, "date_created": 1302679539.135884, "message": "@rfkelly, yep thats the one. love the idea, such a fun way to abuse decorators", "group_id": 292, "id": 660985}]
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 15368, "stars": [], "topic_id": 9278, "date_created": 1298751881.3985291, "message": "Does anyone have or know a good way of autocompleting a Linux directory/file using readline? I know it can handle the current directory and you can use chdir() to move it somewhere else but I'm getting annoyed at trying to make it browse my filesystem effectively.", "group_id": 292, "id": 215477}, {"user_id": 3997, "stars": [{"date_created": 1298774188.3982689, "user_id": 261}], "topic_id": 9278, "date_created": 1298772890.4429231, "message": "Autocompleting in Python interpreter? Try iPython.", "group_id": 292, "id": 216183}, {"user_id": 11592, "stars": [], "topic_id": 9278, "date_created": 1298787207.831584, "message": "http://stackoverflow.com/questions/187621/how-to-make-a-python-command-line-program-autocomplete-arbitrary-things-not-inte i guess you'll have to update autocompleter status by yourself. Check the source for of bpython for a hints.", "group_id": 292, "id": 216667}, {"user_id": 3751, "stars": [], "topic_id": 9278, "date_created": 1298788504.953681, "message": "ipython +1", "group_id": 292, "id": 216693}, {"user_id": 15368, "stars": [], "topic_id": 9278, "date_created": 1298801459.9928269, "message": "It's for inside an application, so iPython won't work. But thanks.", "group_id": 292, "id": 216901}, {"user_id": 1736, "stars": [], "topic_id": 9278, "date_created": 1298831320.1123631, "message": "@kura You can embed an IPython instance within an app.", "group_id": 292, "id": 218881}]
@@ -0,0 +1 @@
[{"user_id": 20582, "stars": [], "topic_id": 38901, "date_created": 1307707634.0328729, "message": "how do i tell setup.py to install it in /usr/local/bin vs /Library/etcetcetc ?", "group_id": 292, "id": 1360019}, {"user_id": 20582, "stars": [], "topic_id": 38901, "date_created": 1307707756.9533441, "message": "running install\nrunning build\nrunning build_scripts\nrunning install_scripts\ncopying build/scripts-2.6/my_script.py -> /System/Library/Frameworks/Python.framework/Versions/2.6/bin\nchanging mode of /System/Library/Frameworks/Python.framework/Versions/2.6/bin/my_script.py to 755\n", "group_id": 292, "id": 1360032}, {"user_id": 20582, "stars": [], "topic_id": 38901, "date_created": 1307707674.3299761, "message": "I looked at django and how it gets its django_admin.py installed correctly and tried replicating it:", "group_id": 292, "id": 1360022}, {"user_id": 20582, "stars": [], "topic_id": 38901, "date_created": 1307707684.883008, "message": "class osx_install_data(install_data):\n def finalize_options(self):\n self.set_undefined_options('install', ('install_lib', 'install_dir'))\n install_data.finalize_options(self)\n\n\nif sys.platform == \"darwin\": \n cmdclasses = {'install_data': osx_install_data} \nelse: \n cmdclasses = {'install_data': install_data} \n\n\nsetup(\n cmdclass = cmdclasses,\n scripts = ['utils/my_script.py',]\n)", "group_id": 292, "id": 1360023}, {"user_id": 20582, "stars": [], "topic_id": 38901, "date_created": 1307707727.336576, "message": "but still getting:", "group_id": 292, "id": 1360027}, {"user_id": 14874, "stars": [], "topic_id": 38901, "date_created": 1307770545.7306261, "message": "python setup.py install --prefix /usr/local ??", "group_id": 292, "id": 1368739}, {"user_id": 14874, "stars": [], "topic_id": 38901, "date_created": 1307770590.461396, "message": "There are a lot of options you can pass. Try `python setup.py install --help`", "group_id": 292, "id": 1368742}, {"user_id": 20582, "stars": [], "topic_id": 38901, "date_created": 1307777028.5245609, "message": "@brainsik yup i know i could use the prefix option, but just wondering how django manages to install it correctly... another option i was considering is to install it as a library and then use entry_points, but this doesn't feel right for a script that's not meant to be used as a library", "group_id": 292, "id": 1369055}]
@@ -0,0 +1 @@
[{"user_id": 11592, "stars": [{"date_created": 1301472837.7530241, "user_id": 1}, {"date_created": 1301473174.014704, "user_id": 10074}, {"date_created": 1301486911.362571, "user_id": 5778}], "topic_id": 16190, "date_created": 1301472702.1692729, "message": "def regroup(l, n):\n \"\"\" Regroup iterable l by series of n elements\n \n >>> list(regroup([1,2,3,4,5,6,'EVIL_VALUE'], 3))\n [[1, 2, 3], [4, 5, 6], ['EVIL_VALUE']]\n \"\"\"\n for i in xrange(0,len(l), n): yield l[i:i+n]", "group_id": 292, "id": 479540}, {"user_id": 10074, "stars": [], "topic_id": 16190, "date_created": 1301472284.123632, "message": "Hey guys,\nI want to divide a string in pairs of maximum 2 characters.\nprint map(lambda x,y: x+y, 'abcdefgh'[0::2],'abcdefgh'[1::2])\nthis works fine for an even number of characters. But It should work for an odd number too.\nI tried this: map(lambda x='_',y='_': x+y, 'abcdefgh'[0::2],'abcdefgh'[1::2]) to set a default value if something is not set, but this doesn't work. Any suggestions?", "group_id": 292, "id": 479518}, {"user_id": 10074, "stars": [{"date_created": 1301486892.048543, "user_id": 5778}], "topic_id": 16190, "date_created": 1301472914.027566, "message": "Found another solution:\nmap(lambda x,y: (x if x!=None else '_')+(y if y!=None else '_'), 'abcdefgh'[0::2],'abcdefgh'[1::2])", "group_id": 292, "id": 479587}, {"user_id": 10074, "stars": [], "topic_id": 16190, "date_created": 1301473225.650924, "message": "Is my solution consistent? I mean, is it ok? Or do you think its a bad style?", "group_id": 292, "id": 479619}, {"user_id": 11592, "stars": [{"date_created": 1301487002.5848391, "user_id": 5778}], "topic_id": 16190, "date_created": 1301473541.1663289, "message": "1) map sticks whole list in memory so it would have memory issues on large data. 2) Lambdas are unnecessary most of the time, so if you typing it do a quick check: maybe you should use list comp's or gen expressions. 3) Gluing strings with a \u00ab+\u00bb takes a lot of operations juggling with objects, so it's slow. 4) For each element you do unnecessary ternary expression... twice! 5) And that's only for 2-element groups.", "group_id": 292, "id": 479643}, {"user_id": 3978, "stars": [], "topic_id": 16190, "date_created": 1301494786.5076821, "message": "Note this will force the iterable into a list which will load it all into memory.", "group_id": 292, "id": 481844}, {"user_id": 3978, "stars": [], "topic_id": 16190, "date_created": 1301494652.339236, "message": "import math\n\ndef section(iterable, by):\n \"\"\"\n >>> section([1, 2, 3, 4, 5], 2)\n <<< [[1, 2], [3, 4], [5]]\n \"\"\"\n iterable = list(iterable)\n x = int(math.ceil(float(len(iterable)) / float(by)))\n return [iterable[by * i:by * (i + 1)] for i in xrange(x)]\n", "group_id": 292, "id": 481840}, {"user_id": 2588, "stars": [], "topic_id": 16190, "date_created": 1301505260.1286769, "message": "some suggestions: http://stackoverflow.com/questions/312443/how-do-you-split-a-list-into-evenly-sized-chunks-in-python", "group_id": 292, "id": 483185}]
@@ -0,0 +1 @@
[{"user_id": 1881, "stars": [], "topic_id": 20455, "date_created": 1303261172.8986311, "message": "Looking for tips, sites, or services that aid Django deployment", "group_id": 292, "id": 749348}, {"user_id": 4149, "stars": [], "topic_id": 20455, "date_created": 1303262649.3158021, "message": "well django is a framework so i don't think there are hosting centers that would help in that, but just look for a good python host", "group_id": 292, "id": 749450}, {"user_id": 719, "stars": [{"date_created": 1303635599.8367879, "user_id": 14080}], "topic_id": 20455, "date_created": 1303263035.7593119, "message": "@loganlinn Services > http://ep.io, http://gondor.io, http://dotcloud.com... Tips: @jacobian's Django Deployment Workshop > http://ontwik.com/python/django-deployment-workshop-by-jacob-kaplan-moss/ (There's an updated version from the last PyCon but I can't seem to find the recorded video.)", "group_id": 292, "id": 749503}, {"user_id": 1736, "stars": [], "topic_id": 20455, "date_created": 1303280215.6020391, "message": "@micrypt Tutorials weren't recorded this year (or likely in the future either, it is a dicely legal matter to do so, and expensive)", "group_id": 292, "id": 752539}, {"user_id": 1736, "stars": [], "topic_id": 20455, "date_created": 1303280242.608474, "message": "There is a Chef group here on Convore, as well as a Django Community group, those are probably places to start.", "group_id": 292, "id": 752540}, {"user_id": 29889, "stars": [], "topic_id": 20455, "date_created": 1303885567.3053269, "message": "Django on google app engine", "group_id": 292, "id": 822515}, {"user_id": 19441, "stars": [{"date_created": 1309228650.6069641, "user_id": 22109}], "topic_id": 20455, "date_created": 1309147938.0492079, "message": "I made this fabric script (fabfile) that automates the process (one command) of creating and setting up an Amazon EC2 server for django deployment. Give it a try https://github.com/gcollazo/Fabulous", "group_id": 292, "id": 1492740}, {"user_id": 7376, "stars": [], "topic_id": 20455, "date_created": 1309970273.165966, "message": "@gcollazo I love your logo :p", "group_id": 292, "id": 1576846}, {"user_id": 19441, "stars": [], "topic_id": 20455, "date_created": 1309989685.551904, "message": "@ericmoritz thanks! It's from http://macmcrae.com", "group_id": 292, "id": 1580137}, {"user_id": 26925, "stars": [], "topic_id": 20455, "date_created": 1310025528.533879, "message": "@coderanger Can you explain the legal matters? Asking because we have to decide if we record tutorials at PyCon DE 2011.", "group_id": 292, "id": 1582886}, {"user_id": 26925, "stars": [], "topic_id": 20455, "date_created": 1310025468.894208, "message": "Steve Losh has written a good blog post on Django development and deployment http://stevelosh.com/blog/2011/06/django-advice/", "group_id": 292, "id": 1582882}, {"user_id": 1736, "stars": [], "topic_id": 20455, "date_created": 1310065711.090095, "message": "@keimlink Most people giving tutorials at PyCon do Python training as part of their job (either full-time training, or just when they have time). Putting up video of the tutorial is a threat to their livelihood as people are far less likely to pay for a class when a video is online for free. The legal issues came into when we discussed trying to put them up behind a pay-wall, but this would leave the PSF liable for the inevitable leak.", "group_id": 292, "id": 1586752}, {"user_id": 7376, "stars": [], "topic_id": 20455, "date_created": 1310078072.6293991, "message": "@gcollazo I was the guy on Reddit that said its logo should be a rainbow :)", "group_id": 292, "id": 1588419}]
@@ -0,0 +1 @@
[{"user_id": 1, "stars": [], "topic_id": 17342, "date_created": 1301985695.58255, "message": "Oh wait, so the entire template is just {{ x }}? That's not just one part of it?", "group_id": 292, "id": 536729}, {"user_id": 1736, "stars": [], "topic_id": 17342, "date_created": 1301985734.0510781, "message": "It is also possible the author is a moron, without more info it is hard to say", "group_id": 292, "id": 536738}, {"user_id": 6627, "stars": [], "topic_id": 17342, "date_created": 1301985599.657896, "message": "Is there any point to a Django template which consists of {{ x }}, ie, just basically echoing x? Just came across this and was wondering if I was missing something. Any reason not to send x directly?", "group_id": 292, "id": 536698}, {"user_id": 1736, "stars": [], "topic_id": 17342, "date_created": 1301985585.461587, "message": "As opposed to?", "group_id": 292, "id": 536692}, {"user_id": 1, "stars": [], "topic_id": 17342, "date_created": 1301985628.036516, "message": "Depends what x is", "group_id": 292, "id": 536706}, {"user_id": 1736, "stars": [{"date_created": 1302017762.1359241, "user_id": 141}], "topic_id": 17342, "date_created": 1301985655.2682741, "message": "Giving the author the benefit of the doubt, it might be the default template in a place when the user of the app is expected to override it with something better", "group_id": 292, "id": 536718}, {"user_id": 6627, "stars": [], "topic_id": 17342, "date_created": 1301985698.4594049, "message": "Ah, thanks! I think in this case it's just an HTML string, but I'll dig into it further with these things in mind.", "group_id": 292, "id": 536731}, {"user_id": 6627, "stars": [{"date_created": 1301985937.104233, "user_id": 1}], "topic_id": 17342, "date_created": 1301985817.2468309, "message": "I guess it is probably a place holder as suggested if there is no other clear reason for it", "group_id": 292, "id": 536762}, {"user_id": 1, "stars": [], "topic_id": 17342, "date_created": 1301985652.6459751, "message": "If x is a model instance whose __unicode__ or __str__ method does something nontrivial, then it could make sense.", "group_id": 292, "id": 536716}, {"user_id": 6627, "stars": [], "topic_id": 17342, "date_created": 1301985736.982929, "message": "yeah, the entire template is {{ x }}, and the output from rendering that is sent out directly", "group_id": 292, "id": 536739}, {"user_id": 6627, "stars": [], "topic_id": 17342, "date_created": 1301985764.6602359, "message": "definitely not a moron", "group_id": 292, "id": 536745}, {"user_id": 6627, "stars": [{"date_created": 1302142686.9073019, "user_id": 205}], "topic_id": 17342, "date_created": 1301985956.6562481, "message": "thanks for the quick responses! This is great", "group_id": 292, "id": 536802}, {"user_id": 4383, "stars": [], "topic_id": 17342, "date_created": 1301987203.905277, "message": "I'm guessing it's django-notifications from pinax", "group_id": 292, "id": 537192}, {"user_id": 4383, "stars": [{"date_created": 1302003037.0368421, "user_id": 11592}], "topic_id": 17342, "date_created": 1301987215.433939, "message": "It's there so you can override it with your own template.", "group_id": 292, "id": 537195}, {"user_id": 1677, "stars": [], "topic_id": 17342, "date_created": 1302154431.2563651, "message": "Seconding the suggestion that it's there so you might override it in your own template.", "group_id": 292, "id": 572070}, {"user_id": 4077, "stars": [], "topic_id": 17342, "date_created": 1302186182.96473, "message": "Sending 'x' to be rendered MIGHT be SLIGHTLY faster, but then you also lose the ability to cache the templates, I'd think, which is a big hit. You could potentially rig up your own solution using your own cache store, but I can't see a situation in which this way is faster.", "group_id": 292, "id": 575510}, {"user_id": 4077, "stars": [], "topic_id": 17342, "date_created": 1302186082.7211771, "message": "The real reason you wouldn't want to build your page in the view, and then just pass 'x' out to render is that it's harder to maintain. That's kind of the point behind MVC (or MVC-like) frameworks, to abstract away components that make sense. It's easier to edit a 'plain HTML' template that accepts tags than it is to build the entirety of the output in a view -- plus, the latter method is FAR less reusable.", "group_id": 292, "id": 575485}, {"user_id": 4077, "stars": [], "topic_id": 17342, "date_created": 1302186124.1258211, "message": "One of the main benefits to this is that you can hire a designer to build the HTML template, and all they have to know is HTML, to get the job done. They don't need to know anything about Django, or Python to implement it.", "group_id": 292, "id": 575494}]
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 10969, "stars": [], "topic_id": 16876, "date_created": 1301754983.545876, "message": "I have serious problems creating 3d-graphs with functions... doesn't work and the manual doesn't help *sigh*", "group_id": 292, "id": 508824}]
@@ -0,0 +1 @@
[{"user_id": 4219, "stars": [], "topic_id": 13202, "date_created": 1300201640.9882841, "message": "Was reading how a very high % of their code is the same for both windows and mac: http://highscalability.com/blog/2011/3/14/6-lessons-from-dropbox-one-million-files-saved-every-15-minu.html", "group_id": 292, "id": 357047}, {"user_id": 4219, "stars": [], "topic_id": 13202, "date_created": 1300201725.553365, "message": "I didn't realize python was used for GUI's development...I'd like to see some screenshots to see how they look :)", "group_id": 292, "id": 357072}, {"user_id": 4219, "stars": [], "topic_id": 13202, "date_created": 1300201664.662344, "message": "\"Runs on a single code base using Python. Dropbox runs on Windows, Mac, Linux using tools like PyObjs, WxPython, types, py2exe, py2app, PyWin32.\"", "group_id": 292, "id": 357057}, {"user_id": 20745, "stars": [], "topic_id": 13202, "date_created": 1300204746.977747, "message": "There are Python bindings for many GUI toolkits (http://wiki.python.org/moin/GuiProgramming).", "group_id": 292, "id": 357759}, {"user_id": 10890, "stars": [], "topic_id": 13202, "date_created": 1300214170.616847, "message": "interesting how Dropbox solved this problem: \"Memory fragmentation is what happens when different sized memory blocks are continually being deleted and allocated. What happens is contiguous blocks of memory can no longer be allocated. CPython doesn't have a garbage collector, so all this memory simply wasn't able to be allocated and the heap continually grew so memory requests could be satisfied.\" \\\\ I thought garbage collection was intrinsic to Python ... so at point does all this become problematic?", "group_id": 292, "id": 359252}, {"user_id": 20745, "stars": [{"date_created": 1300253549.1566091, "user_id": 10890}, {"date_created": 1300394135.327111, "user_id": 16058}], "topic_id": 13202, "date_created": 1300240241.804296, "message": "The 2nd comment is right: \"This is clearly false. What CPython doesn't have is a *compacting* garbage collector.\"", "group_id": 292, "id": 361952}, {"user_id": 20745, "stars": [], "topic_id": 13202, "date_created": 1300240367.239156, "message": "And to your other question: it becomes problematic when your app starts forcing the OS into swapping. :) I.e., premature optimization is the root of all kinds of evil. Unless you start seeing a noticeable performance issue, don't worry about it. They did see a big issue with memory usage, so took the extraordinary step of doing their own allocator.", "group_id": 292, "id": 361964}, {"user_id": 10890, "stars": [], "topic_id": 13202, "date_created": 1300253540.6122611, "message": "@davidblewett Thanks for your clarification. So for long-running processes, the quick fix might be to flush to disk, then restart occasionally.", "group_id": 292, "id": 362991}, {"user_id": 3511, "stars": [], "topic_id": 13202, "date_created": 1300278674.909204, "message": "convy: take a look at Dabo, which is a Python application framework that wraps the wxPython UI toolkit: http://dabodev.com (I'm one of the authors).", "group_id": 292, "id": 364849}, {"user_id": 3748, "stars": [], "topic_id": 13202, "date_created": 1300283703.1804781, "message": "Download and install wxpython and the demo.", "group_id": 292, "id": 365864}, {"user_id": 12963, "stars": [], "topic_id": 13202, "date_created": 1300304493.8649349, "message": "@convy Thanks for pointing out Dabo - looks interesting!", "group_id": 292, "id": 368988}]
@@ -0,0 +1 @@
[{"user_id": 22988, "stars": [], "topic_id": 14102, "date_created": 1300652157.707916, "message": "As in topic, I can't find good tutorial where I could connect to cpython's debugger from a scripting runtime already embedded in my app. Can you point me out to good reference or tutorial?", "group_id": 292, "id": 393593}, {"user_id": 21093, "stars": [], "topic_id": 14102, "date_created": 1300715908.4468479, "message": "Can you use pdb.run or pdb.settrace? You may need to modify the code that invokes Python. Also, at least some IDEs can do this. For example http://wingide.com/doc/debug/debugging-embedded-code (I work on Wing so I know about it but others can probably do this also)", "group_id": 292, "id": 398062}]
@@ -0,0 +1 @@
[{"user_id": 12683, "stars": [{"date_created": 1300475271.8718729, "user_id": 14562}], "topic_id": 12510, "date_created": 1299890037.265615, "message": "http://www.eflorenzano.com/blog/post/technology-behind-convore/", "group_id": 292, "id": 329058}, {"user_id": 13954, "stars": [], "topic_id": 12510, "date_created": 1299889960.7729771, "message": "https://bitbucket.org/ckreutzer/eventlet-django-webchat/src", "group_id": 292, "id": 329056}, {"user_id": 13954, "stars": [], "topic_id": 12510, "date_created": 1299889893.6780319, "message": "What are some solutions that people are using for real time django applications?", "group_id": 292, "id": 329053}, {"user_id": 13954, "stars": [{"date_created": 1300475249.2594831, "user_id": 14562}], "topic_id": 12510, "date_created": 1299889953.022053, "message": "Currently at the company I work for, we are using a RabbitMQ + Orbited connections with celery to broadcast messages to all clients. I'm seeing more use of Comet apps in Django and Convore appears to have a similar setup.", "group_id": 292, "id": 329055}, {"user_id": 13954, "stars": [], "topic_id": 12510, "date_created": 1299906516.8076501, "message": "http://antirez.com/post/redis-weekly-update-3-publish-submit.html", "group_id": 292, "id": 330192}, {"user_id": 13954, "stars": [{"date_created": 1300475456.655292, "user_id": 14562}], "topic_id": 12510, "date_created": 1299906625.5605271, "message": "http://rediscookbook.org/pubsub_for_synchronous_communication.html", "group_id": 292, "id": 330200}, {"user_id": 16446, "stars": [], "topic_id": 12510, "date_created": 1300349779.624644, "message": "I tried django-celeryd + redis, and works perfectly", "group_id": 292, "id": 372284}, {"user_id": 13876, "stars": [{"date_created": 1300475310.201066, "user_id": 14562}, {"date_created": 1300776511.556289, "user_id": 14074}], "topic_id": 12510, "date_created": 1300354111.187465, "message": "Hookbox (http://hookbox.org/) is a new tool for real-time wsgi; had a talk at pycon this year.", "group_id": 292, "id": 372583}, {"user_id": 16058, "stars": [], "topic_id": 12510, "date_created": 1300394088.5530429, "message": "Celery is slow. Use beanstalkd, it's the fastest and lightest work queue.", "group_id": 292, "id": 377440}, {"user_id": 12791, "stars": [], "topic_id": 12510, "date_created": 1300432078.120939, "message": "Can anybody speak to Hookbox's performance? It looks like it would fit my requirements, so I'm considering giving it a try. Plus, Michael Carter's hair is so fly.", "group_id": 292, "id": 380311}, {"user_id": 13876, "stars": [], "topic_id": 12510, "date_created": 1300439256.733717, "message": "@zuwiki I can't speak to it yet, but will probably be doing some playing around with it next week sometime", "group_id": 292, "id": 380784}, {"user_id": 6661, "stars": [], "topic_id": 12510, "date_created": 1300452665.57778, "message": "Common guys, is that all we have in the Python toolbag for real time apps? Especially interested in the real time solutions with Django.", "group_id": 292, "id": 381725}, {"user_id": 4077, "stars": [], "topic_id": 12510, "date_created": 1300475689.932951, "message": "so, comparatively, Celery is slow.", "group_id": 292, "id": 384780}, {"user_id": 14562, "stars": [], "topic_id": 12510, "date_created": 1300475372.9522359, "message": "@myfreeweb why do you think Celery is slow? Could you explain?", "group_id": 292, "id": 384756}, {"user_id": 4077, "stars": [], "topic_id": 12510, "date_created": 1300475680.1188829, "message": "Celery isn't slow. Beanstalk is, however, crazy fast.", "group_id": 292, "id": 384779}, {"user_id": 14562, "stars": [], "topic_id": 12510, "date_created": 1300479153.5354509, "message": "yeah, I think the same.", "group_id": 292, "id": 385000}, {"user_id": 22769, "stars": [], "topic_id": 12510, "date_created": 1300484324.9710381, "message": "bla", "group_id": 292, "id": 385508}, {"user_id": 18773, "stars": [], "topic_id": 12510, "date_created": 1300484394.619206, "message": "I know you said \"especially interested in django\", but if you're really using long-running comet connections a synchronous server like django sounds like the wrong tool for the job. Hookbox appears to be a way to bridge the two approaches, which sounds like it has merit. Or you may just want one of the asynchronous servers like Twisted or DIesel.", "group_id": 292, "id": 385516}, {"user_id": 257, "stars": [], "topic_id": 12510, "date_created": 1301222643.55632, "message": "Beanstalk is available as a message transport in Celery, so I'm not sure what you mean by Celery is slow, do you mean that the framework itself is slow (multiprocessing etc)?", "group_id": 292, "id": 450598}]
@@ -0,0 +1 @@
[{"user_id": 844, "stars": [], "topic_id": 46960, "date_created": 1319419162.297338, "message": "I have been a user of Python for a while now but as a solo learning experience I'm still frustrated. I don't have people next to me to pick up from. And while I have tried to start a Python users group in town that has not yielded much result.", "group_id": 292, "id": 2417258}, {"user_id": 844, "stars": [], "topic_id": 46960, "date_created": 1319419482.3623791, "message": "The problem as I now see it is that I consistently run into issues as I use python, and I'm don't have a handy guide as to how to resolve the issues,, When I see a traceback I am often mystified what to do next. How to see the variables, particularly if they are in objects of various types.. How to execute modules that are part of larger systems , using various debug tools.. how to trace down missing imports.. how to figure out what packages are where ( I think I'm finally getting somewhere with this..", "group_id": 292, "id": 2417295}, {"user_id": 844, "stars": [], "topic_id": 46960, "date_created": 1319419951.467716, "message": "So are there some pointers that the true pythonistas can share? I want to join the secrets society! I may have missed something obvious, would not be the 1st time..", "group_id": 292, "id": 2417362}, {"user_id": 844, "stars": [], "topic_id": 46960, "date_created": 1319420388.5259321, "message": "as I look through some of the questions here they are in the same vein,, so maybe there might be a way to put a simple faq type guide for some of these types of questions,, I'm just at the early edge of being able to start, So that has prompted me to ask to see what else I have missed.", "group_id": 292, "id": 2417413}, {"user_id": 16589, "stars": [], "topic_id": 46960, "date_created": 1319435387.798327, "message": "When you see a traceback, the first thing to do is to read it very attentively. This sounds trite, but it's easy to be put off by a wall of message and to skim over it. Open the files referenced, read the code, and try to understand it. \n\nPersonally I find IPython fantastic for exploring modules: http://ipython.org/\nOne of the things it can do is to automatically start the debugger when an exception is raised, so that you can examine the program state at that point.\n\nJust in case, for the basics work through: http://learnpythonthehardway.org/ and http://www.diveintopython.net/", "group_id": 292, "id": 2418982}, {"user_id": 844, "stars": [], "topic_id": 46960, "date_created": 1319471214.3574719, "message": "I agree that Ipython is proving quite useful.. And I have read through the books which cover \"programming\" quite well but not usage in the broader sense. For instance learning the whys and wherefores of Distribute, what to do when libraries go wrong, how to figure that out etc.. and then there is virtual env.. And nothing seems to cover debugging larger projects.. I also use four versions of Python on my system, and that took a while before I figured out how to do it properly... (2.5 for app-engine, 2.6 shipped with my Ubuntu and 2.7 for new projects, and then there is Python 3) Which once you are beyond the basics you tend to dive into using Python tools, and sometimes having issues... :-) NEW Python users run into these issues way before they are \"prepared\" to deal with them.", "group_id": 292, "id": 2421257}, {"user_id": 5630, "stars": [], "topic_id": 46960, "date_created": 1319479039.465663, "message": "@neaj +1 for these suggestions... Really good stuff.", "group_id": 292, "id": 2422186}, {"user_id": 16589, "stars": [], "topic_id": 46960, "date_created": 1319968515.8703101, "message": "\"when libraries go wrong\" <-- That's like \"how long is a piece of string\". It might be a bug in the library, it might be a bad interaction with some other software, or the library might just not work the way you think it does. General troubleshooting practice applies. The first step is usually to try and boil down your issue to something simple and reproducible that clearly illustrates your problem. This may help you fix it, and also helps when asking on sites like http://stackoverflow.com/", "group_id": 292, "id": 2467384}, {"user_id": 16589, "stars": [], "topic_id": 46960, "date_created": 1319968026.5340409, "message": "I can only agree that `distribute` and the whole setuptools saga is a pain. Try and avoid it. Stick with http://guide.python-distribute.org/installation.html and try not to get caught up in the acres of blogs debating the whys and wherefores. The guide is on https://bitbucket.org/tarek/hitchhiker-guide-packaging/issues/ where you can log issues, and there is a mailing list. ", "group_id": 292, "id": 2467357}, {"user_id": 16589, "stars": [], "topic_id": 46960, "date_created": 1319968851.1300931, "message": "For normal use of virtualenv, everything you need should be at http://www.virtualenv.org/", "group_id": 292, "id": 2467407}]
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 10074, "stars": [], "topic_id": 19904, "date_created": 1302989068.6678679, "message": "Hello,\nI want to learn something about particle animations, heightmaps, ...\nI use Tkinter atm, but when I want to draw a 500x500 pixel picture , it is too slow...\nIs there a fast library for python, to draw such many pixels with a relative \"high\" framerate?", "group_id": 292, "id": 713532}, {"user_id": 8917, "stars": [], "topic_id": 19904, "date_created": 1302992000.8765819, "message": "not sure if it would work for you, but have you looked at PIL at all?", "group_id": 292, "id": 713681}, {"user_id": 8917, "stars": [], "topic_id": 19904, "date_created": 1302992657.628427, "message": "oh sorry, just saw the bits about it being animated", "group_id": 292, "id": 713706}, {"user_id": 719, "stars": [], "topic_id": 19904, "date_created": 1302992916.348376, "message": "@Samuirai Take a look at pyGame (http://pygame.org) or pyglet (http://www.pyglet.org)?", "group_id": 292, "id": 713719}, {"user_id": 8917, "stars": [], "topic_id": 19904, "date_created": 1302992661.943887, "message": "i need to learn to read", "group_id": 292, "id": 713707}, {"user_id": 27235, "stars": [], "topic_id": 19904, "date_created": 1303041711.5897059, "message": "Also PyOpenGL (google for it)", "group_id": 292, "id": 716554}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 141, "stars": [{"date_created": 1300042852.4020081, "user_id": 20170}, {"date_created": 1300212943.4795799, "user_id": 4077}], "topic_id": 12754, "date_created": 1299996119.111043, "message": "http://learnpythonthehardway.org/ is written for people who don't know programming at all, but that just means if you can program something else you can do it in hours instead of weeks.", "group_id": 292, "id": 339184}, {"user_id": 20138, "stars": [], "topic_id": 12754, "date_created": 1299993218.9366491, "message": "Tell me how I can transition to Python. Please....", "group_id": 292, "id": 339018}, {"user_id": 141, "stars": [], "topic_id": 12754, "date_created": 1299996663.8563931, "message": "beyond that, pick a project you can afford to spend time learning with, and start. use other resources (books, forums, Stack Overflow) to enable yourself to do the work. with a real project you'll find concrete problems that help you form the practical questions with which you can learn all the concepts.", "group_id": 292, "id": 339267}, {"user_id": 141, "stars": [{"date_created": 1299998909.9237831, "user_id": 11592}], "topic_id": 12754, "date_created": 1299996063.6110849, "message": "IME writing code is always the fastest way.", "group_id": 292, "id": 339180}, {"user_id": 141, "stars": [{"date_created": 1300038652.228385, "user_id": 20138}, {"date_created": 1300254900.916831, "user_id": 20196}], "topic_id": 12754, "date_created": 1299997039.3762741, "message": "make sure you have Python 2.6 or 2.7. the manual is here: http://docs.python.org/index.html and the standard library documentation is here: http://docs.python.org/modindex.html (though once you know the name of the module you want it can be quicker to google \u201c<module> python\u201d, for example \u201cdatetime python\u201d)", "group_id": 292, "id": 339301}, {"user_id": 141, "stars": [], "topic_id": 12754, "date_created": 1299997677.6371491, "message": "@operator HTH!", "group_id": 292, "id": 339333}, {"user_id": 15162, "stars": [{"date_created": 1300254883.604234, "user_id": 20196}], "topic_id": 12754, "date_created": 1300000920.548357, "message": "try the online version of Dive Into Python: http://diveintopython.org/toc/index.html", "group_id": 292, "id": 339440}, {"user_id": 15162, "stars": [{"date_created": 1300038658.3212731, "user_id": 20138}], "topic_id": 12754, "date_created": 1300001330.380105, "message": "and while you're learning, use ipython or bpython to try things out. It's a lot faster than going back and forth between editor and terminal every time you make a syntax error", "group_id": 292, "id": 339443}, {"user_id": 20138, "stars": [{"date_created": 1300043021.0208039, "user_id": 141}], "topic_id": 12754, "date_created": 1300038643.6796989, "message": "Thank you for the helpful tips. I will make my next project in python.", "group_id": 292, "id": 341997}, {"user_id": 11972, "stars": [], "topic_id": 12754, "date_created": 1300113366.634788, "message": "yay", "group_id": 292, "id": 347677}, {"user_id": 4077, "stars": [{"date_created": 1300257966.7388411, "user_id": 11972}], "topic_id": 12754, "date_created": 1300212958.359374, "message": "Another vote for \"Learn Python the Hard Way\".", "group_id": 292, "id": 359121}, {"user_id": 20138, "stars": [{"date_created": 1300259399.6883609, "user_id": 141}], "topic_id": 12754, "date_created": 1300256148.003267, "message": "@markpasc very useful resource. Thanks.", "group_id": 292, "id": 363237}, {"user_id": 16446, "stars": [], "topic_id": 12754, "date_created": 1300349353.571655, "message": "+1 Dive into Python", "group_id": 292, "id": 372271}, {"user_id": 11972, "stars": [], "topic_id": 12754, "date_created": 1300349701.5093529, "message": "Easy... hire Will Smith to use his flashy thingy (http://www.youtube.com/watch?v=pu7NObQcOdk&feature=player_detailpage#t=10s) then learn Python", "group_id": 292, "id": 372282}, {"user_id": 8224, "stars": [], "topic_id": 12754, "date_created": 1300749708.0335, "message": "Is there anything in the world of print that is good?", "group_id": 292, "id": 403537}]
@@ -0,0 +1 @@
[{"user_id": 6544, "stars": [], "topic_id": 4383, "date_created": 1297455970.4044299, "message": "With Nokia and Microsoft being partners now, I wonder if the PySide team is going to get the axe. I sure hope not...", "group_id": 292, "id": 82984}, {"user_id": 6544, "stars": [], "topic_id": 4383, "date_created": 1297862895.584362, "message": "Well, my question was answered. http://lists.openbossa.org/pipermail/pyside/2011-February/002099.html . No one here seems to care, though, hehe.", "group_id": 292, "id": 119648}, {"user_id": 5942, "stars": [], "topic_id": 4383, "date_created": 1297872728.3611889, "message": "@ARussell , thanks for the info about pyside.", "group_id": 292, "id": 121050}, {"user_id": 11205, "stars": [], "topic_id": 4383, "date_created": 1297976991.0167229, "message": "A hearty thanks from me as well. I have been concerned, I prefer PySide over PyQT, but have been to busy to search. Thanks again.", "group_id": 292, "id": 135960}, {"user_id": 1781, "stars": [], "topic_id": 4383, "date_created": 1298036132.8648601, "message": "@ARussell thanks for the update.", "group_id": 292, "id": 142684}, {"user_id": 6544, "stars": [], "topic_id": 4383, "date_created": 1298033928.968421, "message": "You're welcome. =) I'm looking forward to the 1.0 release; they actually have a release candidate out now. http://www.pyside.org/2011/02/python-for-qt-version-1-0-0-release-candidate-1-the-name-doesnt-matter-released/", "group_id": 292, "id": 142447}, {"user_id": 620, "stars": [], "topic_id": 4383, "date_created": 1298311493.2510459, "message": "Glad to hear about PySide not getting axed. I just started using it and would hate to switch to something else now.", "group_id": 292, "id": 160298}]
@@ -0,0 +1 @@
[{"user_id": 960, "stars": [], "topic_id": 36252, "date_created": 1306017189.0328281, "message": "Created a small package who's sole purpose is to handle declaring namespaces. It's in the \"it works for me with all the tests passing\" mode right now, but I'm almost positive there's all manner of edge cases I've missed.", "group_id": 292, "id": 1138252}, {"user_id": 960, "stars": [], "topic_id": 36252, "date_created": 1306017202.7568231, "message": "I'd love some feedback on it: https://github.com/tswicegood/ns.py", "group_id": 292, "id": 1138254}, {"user_id": 960, "stars": [], "topic_id": 36252, "date_created": 1306017222.446785, "message": "Bonus points if the feedback is in the form of broken test cases :-)", "group_id": 292, "id": 1138260}, {"user_id": 18665, "stars": [], "topic_id": 36252, "date_created": 1306028048.194751, "message": "Can you provide some fully working examples? As a beginner level Python programmer, it's not immediately obvious to me why this is needed, the benefits it provides and most importantly, how I can start using it.", "group_id": 292, "id": 1139188}, {"user_id": 1736, "stars": [{"date_created": 1306032158.9844279, "user_id": 4156}, {"date_created": 1306080167.4539969, "user_id": 960}, {"date_created": 1306082325.726248, "user_id": 1243}, {"date_created": 1306150081.596951, "user_id": 5778}], "topic_id": 36252, "date_created": 1306028608.411613, "message": "As an example, Foo-A contains the files foo/__init__.py and foo/a.py, Foo-B contains foo/__init__.py and foo/b.py. Normally whichever of these was found first by the importer would become the canonical entry in sys.modules for \"foo\", but if both __init__.py files use this namespace package system, you can import both foo.a and foo.b without either overriding the other.", "group_id": 292, "id": 1139223}, {"user_id": 18665, "stars": [], "topic_id": 36252, "date_created": 1306028110.2758651, "message": "And by \"fully working examples\", try to stay away from foo bar etc. Provide a real life example of where namespacing is essential so I have a production quality pattern to copy from.", "group_id": 292, "id": 1139190}, {"user_id": 1736, "stars": [], "topic_id": 36252, "date_created": 1306028484.913928, "message": "Yeah, when you say \"namespaces\" I'm sure people will think of module and class-level namespaces, which this has nothing to do with. \"Namespace packages\" is the term I hear used, though that is about as clear as mud too. For people finding this, namespace packages are a mechanism whereby two (or more) distributions (which are the things you think of as packages, listed on PyPI, installed via pip, etc) share part of their package path. A common example is the the flaskext namespace. All Flask extensions use \"flaskext.\" as the back of the package path, and use the \"namespace packages\" feature to prevent overriding each other.", "group_id": 292, "id": 1139207}, {"user_id": 18665, "stars": [], "topic_id": 36252, "date_created": 1306053287.7977669, "message": "Thanks @coderanger, that is exactly what I was after!", "group_id": 292, "id": 1140481}, {"user_id": 213, "stars": [{"date_created": 1306085360.411238, "user_id": 1736}], "topic_id": 36252, "date_created": 1306064980.024281, "message": "@tswicegood So what's the difference between ns.declare and pkgutil.extend_path? http://docs.python.org/library/pkgutil.html#pkgutil.extend_path", "group_id": 292, "id": 1141112}, {"user_id": 960, "stars": [], "topic_id": 36252, "date_created": 1306080433.996031, "message": "@jezdez It actually isn't all that different, just a different way to do the same thing.", "group_id": 292, "id": 1142576}, {"user_id": 960, "stars": [], "topic_id": 36252, "date_created": 1306080466.2802041, "message": "Mine is modeled after pkg_resources (obviously, not the best role-model) so it mucks with sys.path rather than modifying a module's __path__.", "group_id": 292, "id": 1142578}, {"user_id": 960, "stars": [], "topic_id": 36252, "date_created": 1306080549.5021651, "message": "That said, it looks like pkgutil.extend_path does what I want without requiring an entirely separate package installed (a la pkg_resources or ns.py)", "group_id": 292, "id": 1142582}, {"user_id": 960, "stars": [], "topic_id": 36252, "date_created": 1306080705.2886319, "message": "@ryan_blunden If you'd like to see a full example using pkg_resources, you can look at the code on GitHub under the user armstrongcms.", "group_id": 292, "id": 1142611}, {"user_id": 213, "stars": [], "topic_id": 36252, "date_created": 1306138895.1956179, "message": "@tswicegood Gotcha, FWIW, I believe pkg_resources forked pkgutil at the time and Tarek moved a few things back again in one of the newer Python versions.", "group_id": 292, "id": 1150208}]
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 29156, "stars": [], "topic_id": 19835, "date_created": 1302965190.928503, "message": "if any one of you pythoooners want a RSS feeds followed just let me know and i will set the bot up on a new group with the feed in it", "group_id": 292, "id": 710957}, {"user_id": 29156, "stars": [{"date_created": 1302965214.4939139, "user_id": 27202}], "topic_id": 19835, "date_created": 1302965096.7103641, "message": "see https://convore.com/comppythondevel/gmane/", "group_id": 292, "id": 710950}, {"user_id": 29156, "stars": [], "topic_id": 19835, "date_created": 1302965137.809777, "message": "!chan-enable", "group_id": 292, "id": 710953}, {"user_id": 18979, "stars": [], "topic_id": 19835, "date_created": 1302965139.929086, "message": "19835 channel enabled", "group_id": 292, "id": 710954}, {"user_id": 29156, "stars": [], "topic_id": 19835, "date_created": 1302965205.189193, "message": "this is what list are running on the bot right now", "group_id": 292, "id": 710960}, {"user_id": 18979, "stars": [], "topic_id": 19835, "date_created": 1302965222.386214, "message": " tipfy, typhoonae, typhoonae-hg, wiki", "group_id": 292, "id": 710964}, {"user_id": 29156, "stars": [], "topic_id": 19835, "date_created": 1302965210.299257, "message": "!rss-list", "group_id": 292, "id": 710961}, {"user_id": 18979, "stars": [], "topic_id": 19835, "date_created": 1302965212.1764901, "message": "rss items: MeukTracker, appengine, appengine-blog, appengine-group, appengine-group-python, appengine-reddit, appengine-twitter, bof, cpython, dancetunes, debian_new, debianblogs, devel, dfly, facebook-dev-forum, github, gozerbot, gozerplugs, habbietest, jsonbot, jsonbot-twitter, mazehub, melmothx-git, nasa, nos, nrc, pycassa, pythonblog, rodrecipes, sure, thequestion, - 1 more", "group_id": 292, "id": 710962}, {"user_id": 29156, "stars": [], "topic_id": 19835, "date_created": 1302965220.5372219, "message": "!more", "group_id": 292, "id": 710963}, {"user_id": 29156, "stars": [], "topic_id": 19835, "date_created": 1302965363.174607, "message": "there is also a RSS feed on the cpython mercurial repo on hg.python.org ... see https://convore.com/hgcpython/log/", "group_id": 292, "id": 710991}]
@@ -0,0 +1 @@
[{"user_id": 18539, "stars": [], "topic_id": 14937, "date_created": 1300966944.3533001, "message": "I notice myself doing this a lot. Practical example from today, when I'm hacking on #python's new IRC bot: from twisted.words.protocols import irc as twirc (or maybe twpirc). This is to differentiate it from other modules called IRC, while still being short. I guess it may be an antipattern because, well, acronymic names usually are :)", "group_id": 292, "id": 425719}, {"user_id": 7129, "stars": [], "topic_id": 14937, "date_created": 1300967771.9991241, "message": "Antipattern. I generally don't like it as you are namespacing stuff manually when Python can already do that for you, and it makes it more difficult to remember what stuff is at a glance. (\"Hey what's twirc.. oh yeah it's Twisted's version\")", "group_id": 292, "id": 425774}, {"user_id": 7129, "stars": [], "topic_id": 14937, "date_created": 1300967804.3743169, "message": "(Of course, \"as\" imports can be pretty handy in edge cases.)", "group_id": 292, "id": 425777}, {"user_id": 7129, "stars": [], "topic_id": 14937, "date_created": 1300967774.8627989, "message": "In Twisted it's very very common to do (eg.) \"from twisted.words import protocols\" and then just use protocols.irc.", "group_id": 292, "id": 425775}, {"user_id": 927, "stars": [{"date_created": 1300988783.0695331, "user_id": 141}], "topic_id": 14937, "date_created": 1300973201.403686, "message": "Minor anti-pattern but reasonable when things should be interchangeable (e.g. import simplejson as json)", "group_id": 292, "id": 426547}, {"user_id": 24439, "stars": [{"date_created": 1300988794.9645181, "user_id": 141}, {"date_created": 1301833229.681514, "user_id": 2313}], "topic_id": 14937, "date_created": 1300974171.4522231, "message": "I don't like importing modules at all, when I can avoid it. In other words, I write \"from package.subpackage.module import Stuff, That, IWant\".", "group_id": 292, "id": 426671}, {"user_id": 14874, "stars": [], "topic_id": 14937, "date_created": 1301171665.642287, "message": "I'll use 'as' for things like: from foo.bar import config as bar_config", "group_id": 292, "id": 447511}, {"user_id": 14874, "stars": [], "topic_id": 14937, "date_created": 1301171609.437289, "message": "I'm opposite of @mithrandi. When reading new code, seeing pkg.sub.foo() makes it immediately clear where the function came from and probably what it's related to. I suppose this opens the door for an IDE war. Let's not.", "group_id": 292, "id": 447505}, {"user_id": 10411, "stars": [], "topic_id": 14937, "date_created": 1301181248.534951, "message": "Pattern: allows you flatten the namespace hierarchy but still retain the information about where the name came from. (Also useful in the shell.)", "group_id": 292, "id": 448380}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 7, "stars": [{"date_created": 1302548606.5165589, "user_id": 1881}, {"date_created": 1302549235.892487, "user_id": 2810}, {"date_created": 1302550449.7711329, "user_id": 1284}, {"date_created": 1302558395.731446, "user_id": 915}, {"date_created": 1302568118.0576811, "user_id": 3354}, {"date_created": 1302568446.013963, "user_id": 12404}, {"date_created": 1302572378.1908741, "user_id": 5778}, {"date_created": 1302609021.9913571, "user_id": 213}], "topic_id": 18646, "date_created": 1302547567.4078369, "message": "If you monkey patch this I will kill you.", "group_id": 292, "id": 627853}, {"user_id": 7, "stars": [], "topic_id": 18646, "date_created": 1302547578.061079, "message": "Good day.", "group_id": 292, "id": 627856}, {"user_id": 2810, "stars": [], "topic_id": 18646, "date_created": 1302549292.451616, "message": "Ups - I did it again... :D", "group_id": 292, "id": 628239}, {"user_id": 3354, "stars": [], "topic_id": 18646, "date_created": 1302568145.3733301, "message": "I smell trouble [exits].", "group_id": 292, "id": 633094}, {"user_id": 3354, "stars": [], "topic_id": 18646, "date_created": 1302568144.8897431, "message": "I smell trouble [exits].", "group_id": 292, "id": 633093}, {"user_id": 5778, "stars": [], "topic_id": 18646, "date_created": 1302572437.518497, "message": "@alex I wish I would have seen this earlier in my day... Would have been good for more chuckles at work :D", "group_id": 292, "id": 634295}]
@@ -0,0 +1 @@
[{"user_id": 34431, "stars": [], "topic_id": 37252, "date_created": 1306670486.4742031, "message": "I started python because I wanted to use Django. This is less then ideal and unfortunate as in the beginning I assumed that the python functionality I was seeing in Django was infact Django functionality. I already knew C,C++, Java etc. so it wasn't a problem picking it up but I feel that, while I know how to program using python, I don't know program in python! What's a good way to really get into all of Python's features?", "group_id": 292, "id": 1217042}, {"user_id": 13403, "stars": [{"date_created": 1306684314.2448671, "user_id": 13817}], "topic_id": 37252, "date_created": 1306670703.1874001, "message": "Dive Into Python <http://diveintopython.org/> is a great way to familiarise yourself with the language\u2019s features and give yourself an idea of what it means for code to be Pythonic.", "group_id": 292, "id": 1217064}, {"user_id": 3354, "stars": [{"date_created": 1306891701.679635, "user_id": 8391}], "topic_id": 37252, "date_created": 1306754519.5951879, "message": "There's also Zed Shaw's \"Learning Python the Hard Way\", and loads of material on the web. http://tutorial.python.org/ might be a little on the simple side.", "group_id": 292, "id": 1226326}, {"user_id": 20326, "stars": [], "topic_id": 37252, "date_created": 1306848168.609385, "message": "@pastylegs Perhaps you should go over the official tutorial http://docs.python.org/tut -- it covers most of the features you need for normal programming in Python which may help you to delineate between Python features and stuff in Django.\n\nI suspect with your background Dive Into Python and Learn Python The Hard Way would ultimately be a waste of time for you. LPTHW stays pretty basic and is really intended for new programmers. DIP does get a little more advanced, but I really don't think it's an especially great resource; it targets less-relevant versions of Python and has a lot of ugly examples and inaccurate statements. If you insist on a book, you might check out http://www.greenteapress.com/thinkpython/thinkpython.html", "group_id": 292, "id": 1237334}, {"user_id": 18123, "stars": [], "topic_id": 37252, "date_created": 1306934577.353632, "message": "... but you learn all the important details you missed the first time.", "group_id": 292, "id": 1252973}, {"user_id": 18123, "stars": [{"date_created": 1307011884.6845441, "user_id": 5942}, {"date_created": 1308823256.165736, "user_id": 12963}], "topic_id": 37252, "date_created": 1306934439.845952, "message": "\"Beginning Python from novice to professional\", chapters 1-11. The first two chapters might seem basic", "group_id": 292, "id": 1252956}]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 35260, "stars": [], "topic_id": 38198, "date_created": 1307301389.844116, "message": "hey", "group_id": 292, "id": 1294915}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 37937, "stars": [], "topic_id": 41774, "date_created": 1310504816.78057, "message": "why is Python 3.1 and 2.7 recognizing {1,2,3} but not printing (via str) {1,2,3}", "group_id": 292, "id": 1623244}, {"user_id": 37937, "stars": [], "topic_id": 41774, "date_created": 1310504841.8614991, "message": "instead you always get an \"ugly\" set([1,2,3])", "group_id": 292, "id": 1623247}, {"user_id": 20326, "stars": [], "topic_id": 41774, "date_created": 1310566480.2444489, "message": "This is not the case in my 3.1, and this probably isn't a change that will make it into a 2.7 minor release.\n\nIf you still have an idea you want to push forward, try the python-ideas mailing list.", "group_id": 292, "id": 1628699}, {"user_id": 37937, "stars": [], "topic_id": 41774, "date_created": 1311259971.0897441, "message": "python-ideas sounds like a good idea -- but I would assume there is a reason that the (nice looking '{1,2,3}') 3.1 behavior was not backported to 2.7", "group_id": 292, "id": 1689985}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 5006, "stars": [], "topic_id": 11811, "date_created": 1299707490.412164, "message": "I followed the docs and it's a total failure. I don't understand what I do wrong. Is somebody really developping Qt apps under Mac Os X using Qt Creator & PySide ?", "group_id": 292, "id": 308761}, {"user_id": 8019, "stars": [], "topic_id": 11811, "date_created": 1299715529.2598381, "message": "Yes, I've got an app that runs cross-platform on win32/osx/linux using PySide. It's not a complicated GUI but it does work. What problems are you having, I'll do what I can to help out.", "group_id": 292, "id": 309473}]
@@ -0,0 +1 @@
[{"user_id": 214, "stars": [], "topic_id": 9797, "date_created": 1299016665.5518031, "message": "You're talking about the client lib here, or the server? Both Twisted and eventlet make more sense on the API service side. I don't think performance issues in an HTTP client are really going to be relevant.", "group_id": 292, "id": 239467}, {"user_id": 214, "stars": [], "topic_id": 9797, "date_created": 1299017255.2372961, "message": "I'm a fan of both RestKit and https://github.com/sixapart/remoteobjects - the latter is built on httplib2, which has its weak spots (cookie handling?), but the HTTP layer can be swapped out for anything API-compatible with httplib2.", "group_id": 292, "id": 239598}, {"user_id": 603, "stars": [], "topic_id": 9797, "date_created": 1299016513.4884889, "message": "eventlet would be worth a look.", "group_id": 292, "id": 239429}, {"user_id": 214, "stars": [], "topic_id": 9797, "date_created": 1299016694.774755, "message": "At least, I'd build it and benchmark before I'd start worrying about performance of an HTTP client lib.", "group_id": 292, "id": 239477}, {"user_id": 653, "stars": [], "topic_id": 9797, "date_created": 1299016398.788764, "message": "We are building a service layer API which speaks HTTP. Our app is going to be built on top of it and I'm trying to abstract all the HTTP handling into a single method for the app developers to use. This is an internal API only, but I'd still like to make this client perform well. Can anyone point me to resources and tools that would make this work well? I'm thinking something like Twisted might work here, but I'd like the hear about other options.", "group_id": 292, "id": 239393}, {"user_id": 603, "stars": [], "topic_id": 9797, "date_created": 1299016654.4736719, "message": "quick question, are you talking about creating the api layer or the api client?", "group_id": 292, "id": 239465}, {"user_id": 1152, "stars": [{"date_created": 1299017026.497967, "user_id": 1}, {"date_created": 1299024851.9488561, "user_id": 3751}], "topic_id": 9797, "date_created": 1299016953.4057209, "message": "check out https://github.com/benoitc/restkit/ and pycurl (http://pycurl.sourceforge.net/) - I use a lot of pycurl + threads (https://bitbucket.org/nasuni/workerpool/overview)", "group_id": 292, "id": 239518}, {"user_id": 653, "stars": [], "topic_id": 9797, "date_created": 1299017328.9763961, "message": "The server's performance issues are another issue altogether. I just have this fear of a single method that handles every call to the API from within our app being horribly slow. Perhaps, as noted, my worrying time is misplaced.", "group_id": 292, "id": 239629}, {"user_id": 1, "stars": [], "topic_id": 9797, "date_created": 1299017049.4022641, "message": "Yeah RestKit rocks, they're hardcore--wrote their own HTTP parser!", "group_id": 292, "id": 239544}, {"user_id": 653, "stars": [], "topic_id": 9797, "date_created": 1299017258.0734279, "message": "Sorry for the confusion. I'm talking about the client working against an internal API.", "group_id": 292, "id": 239600}, {"user_id": 214, "stars": [{"date_created": 1299073233.0479269, "user_id": 927}, {"date_created": 1299081879.1908669, "user_id": 6704}], "topic_id": 9797, "date_created": 1299017352.812021, "message": "Unless you're going to have a single client making lots of concurrent connections to multiple servers (reverse of the more common situation), I'd pick your client lib for nice API, good code, and maintainability.", "group_id": 292, "id": 239635}, {"user_id": 653, "stars": [], "topic_id": 9797, "date_created": 1299018391.888361, "message": "Restkit's reusable connections and Resource possibilities seem like a good fit. Thanks all for the pointers.", "group_id": 292, "id": 240284}, {"user_id": 17467, "stars": [], "topic_id": 9797, "date_created": 1299036274.6184261, "message": "is json-rpc worth a consideration?", "group_id": 292, "id": 242961}, {"user_id": 1736, "stars": [], "topic_id": 9797, "date_created": 1299037457.854099, "message": "@crazygir How is that related?", "group_id": 292, "id": 243083}]
@@ -0,0 +1 @@
[{"user_id": 8649, "stars": [], "topic_id": 20463, "date_created": 1303265910.5398281, "message": "(2) It's not at all clear from the diagram that pip is an *existing* tool that works now, and that relies on setuptools and distribute.", "group_id": 292, "id": 749930}, {"user_id": 8649, "stars": [], "topic_id": 20463, "date_created": 1303265877.018575, "message": "(1) It's not clear if pip's position in the top row is merely because of its role as a package installer/uninstaller, or because it is a wrapper around setuptools/distribute.", "group_id": 292, "id": 749917}, {"user_id": 8649, "stars": [], "topic_id": 20463, "date_created": 1303265626.9021521, "message": "I just saw the Hitchhiker's Guide to Packaging on the python.org site today, and was perusing it when I saw this graphic showing the past, current, and future of Python packaging.", "group_id": 292, "id": 749840}, {"user_id": 8649, "stars": [{"date_created": 1303674965.3688331, "user_id": 4747}], "topic_id": 20463, "date_created": 1303265978.4326639, "message": "(3) While setuptools and distribute are headed for the trash bin, the same is not show for the distutils package, despite the fact that the text below clearly indicates that distutils will be removed from the standard lib.", "group_id": 292, "id": 749949}, {"user_id": 8649, "stars": [], "topic_id": 20463, "date_created": 1303265735.2690101, "message": "I feel that this graphic is somewhat misleading or confusing, for several reasons.", "group_id": 292, "id": 749883}, {"user_id": 8649, "stars": [], "topic_id": 20463, "date_created": 1303266153.3538411, "message": "Shoot, forgot to post the link: http://guide.python-distribute.org/introduction.html#current-state-of-packaging", "group_id": 292, "id": 750021}, {"user_id": 8649, "stars": [], "topic_id": 20463, "date_created": 1303266127.4532421, "message": "And as someone who is moderately familiar with the things mentioned in the diagram and its accompanying text, it's not clear to me whether pip is going to be rebased on distutils2 and all of setuptools's download/install functionality will be reimplemented, or if it will perhaps just cannibalize the modules and functions it needs. Both of these prospects seem non-trivial to me.", "group_id": 292, "id": 750006}, {"user_id": 5981, "stars": [], "topic_id": 20463, "date_created": 1303512392.029654, "message": "Huh. I had no idea setuptools was such a taboo. I've been using it and honestly hadn't found a reason not to.", "group_id": 292, "id": 785849}, {"user_id": 9229, "stars": [], "topic_id": 20463, "date_created": 1303549674.7000389, "message": "@theomn if it works for you that's fine - but for others there's situations where it doesn't (eg Python 3) and there's bugs that have been fixed in distribute.", "group_id": 292, "id": 788222}, {"user_id": 6125, "stars": [], "topic_id": 20463, "date_created": 1303557996.9021571, "message": "The future will be \"packaging\" in the stdlib starting with Python 3.3 and back ported as distutils2 for older versions of Python. Pip will become a wrapper around distutils2/packaging offer additional features such as installing from a mercurial checkout. The main reason for the changes can be found by reviewing both PEP 390: http://www.python.org/dev/peps/pep-0390/ and PEP 376: http://www.python.org/dev/peps/pep-0376/. Work is activity taking place as we prepare for a merge to the upstream Python 3.3 repo hosted at hg.python.org: https://bitbucket.org/tarek/cpython/changesets", "group_id": 292, "id": 788501}, {"user_id": 15015, "stars": [], "topic_id": 20463, "date_created": 1303647909.5264349, "message": "Seriously, the \"future\" would be a whole lot better if there was just one box called \"standard library\".", "group_id": 292, "id": 794392}, {"user_id": 1822, "stars": [{"date_created": 1303662588.7390699, "user_id": 222}, {"date_created": 1303672089.4066629, "user_id": 141}, {"date_created": 1303694986.1592591, "user_id": 9229}, {"date_created": 1303713279.768244, "user_id": 11592}, {"date_created": 1303738470.8472359, "user_id": 12817}, {"date_created": 1303748140.9922359, "user_id": 5673}, {"date_created": 1303752716.14238, "user_id": 22109}], "topic_id": 20463, "date_created": 1303654053.3950191, "message": "I don't understand why \"packaging\" can't be backported to 2.x as \"packaging\" instead of \"distutils2\"?", "group_id": 292, "id": 794896}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 5370, "stars": [{"date_created": 1298693706.321466, "user_id": 7379}], "topic_id": 3505, "date_created": 1297339073.361481, "message": "@rehmetjan 123", "group_id": 292, "id": 68622}, {"user_id": 5370, "stars": [], "topic_id": 3505, "date_created": 1297339121.826741, "message": "@forzh zz", "group_id": 292, "id": 68624}, {"user_id": 7745, "stars": [], "topic_id": 3505, "date_created": 1297579062.1603169, "message": "hello", "group_id": 292, "id": 88389}, {"user_id": 1736, "stars": [], "topic_id": 3505, "date_created": 1297631963.2174201, "message": "@ericflo I'm sure within a week James will have a Pinax template that will put you out of business ;-)", "group_id": 292, "id": 93790}, {"user_id": 4077, "stars": [], "topic_id": 3505, "date_created": 1297631171.5482049, "message": "By 'this kind of website', are you referring to convore, or was there a link that got left out?", "group_id": 292, "id": 93655}, {"user_id": 1, "stars": [], "topic_id": 3505, "date_created": 1297631227.5694561, "message": "I'm curious about that too :)", "group_id": 292, "id": 93671}, {"user_id": 4546, "stars": [{"date_created": 1298694490.30428, "user_id": 7379}], "topic_id": 3505, "date_created": 1297761344.8787439, "message": "@bmelton just a SNS website looks like Convore. Pinax is cool, but I can't start", "group_id": 292, "id": 109886}, {"user_id": 456, "stars": [], "topic_id": 3505, "date_created": 1298677369.465183, "message": "Pinax can certainly be used as the starting point for almost any Django site; but the devil is in the detail; there are a lot of technology choices that still need to be made (and challenges to be solved) and domain-specific code to be written", "group_id": 292, "id": 212098}]
@@ -0,0 +1 @@
[{"user_id": 8558, "stars": [], "topic_id": 11750, "date_created": 1299692404.602273, "message": "I'm trying to build Python 3.2 for Ubuntu Lucid from the Debian/Ubuntu sources (from Natty), but the build breaks when the python3.2-dbg package is being build. I see no obvious way to NOT having that package built. Anyone?", "group_id": 292, "id": 307070}]
@@ -0,0 +1 @@
[{"user_id": 43435, "stars": [], "topic_id": 47735, "date_created": 1321129188.842088, "message": "How do u change your pic", "group_id": 292, "id": 2560726}, {"user_id": 42139, "stars": [], "topic_id": 47735, "date_created": 1321660454.9490571, "message": "eazy", "group_id": 292, "id": 2597570}]
@@ -0,0 +1 @@
[{"user_id": 33293, "stars": [{"date_created": 1314024511.4137599, "user_id": 40069}], "topic_id": 43261, "date_created": 1312415050.5877111, "message": "really need a shortcut", "group_id": 292, "id": 1789297}, {"user_id": 1736, "stars": [], "topic_id": 43261, "date_created": 1312424614.8026631, "message": "https://github.com/achiu/terminitor works nicely for me.", "group_id": 292, "id": 1790426}, {"user_id": 5778, "stars": [{"date_created": 1313437971.8835101, "user_id": 39700}], "topic_id": 43261, "date_created": 1313249386.156935, "message": "I use xdotool on Linux", "group_id": 292, "id": 1864367}]
@@ -0,0 +1 @@
[{"user_id": 1736, "stars": [{"date_created": 1301636822.6853671, "user_id": 5367}, {"date_created": 1301722941.3259389, "user_id": 205}, {"date_created": 1301774881.0095129, "user_id": 4893}, {"date_created": 1302140442.797332, "user_id": 1874}, {"date_created": 1302235715.459887, "user_id": 208}], "topic_id": 16203, "date_created": 1301619442.4286101, "message": "Follow @jezdez on GitHub", "group_id": 292, "id": 498081}, {"user_id": 1398, "stars": [{"date_created": 1301727418.5699151, "user_id": 7}], "topic_id": 16203, "date_created": 1301619349.910671, "message": "Entirely via twitter and RSS feed and user groups.", "group_id": 292, "id": 498077}, {"user_id": 5367, "stars": [{"date_created": 1301723991.561641, "user_id": 18123}, {"date_created": 1302251589.7179389, "user_id": 4578}], "topic_id": 16203, "date_created": 1301636998.5085981, "message": "Following pypi on twitter. Watching videos from confs.", "group_id": 292, "id": 499734}, {"user_id": 8391, "stars": [], "topic_id": 16203, "date_created": 1301727798.030117, "message": "Also, planet python", "group_id": 292, "id": 507701}, {"user_id": 8391, "stars": [], "topic_id": 16203, "date_created": 1301727200.363956, "message": "Shameless self plug: follow http://thechangelog.com :)", "group_id": 292, "id": 507686}, {"user_id": 719, "stars": [], "topic_id": 16203, "date_created": 1301734567.784488, "message": "Follow @simonw on GitHub. He's been a tad less active on there lately though.", "group_id": 292, "id": 507904}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 2376, "stars": [], "topic_id": 34184, "date_created": 1304791157.6478741, "message": "Reading this discussion at StackOverflow http://stackoverflow.com/questions/153524/code-to-logging-ratio and wondering. While writing apps, how much and what do you log?\n\nDo you agree with \"visible logging code is clutter and like excessive comments, it actively obscures the code that's doing the real work in the application\" point made by Jeff Atwood in his post http://www.codinghorror.com/blog/2008/12/the-problem-with-logging.html ?", "group_id": 292, "id": 951918}, {"user_id": 3617, "stars": [], "topic_id": 34184, "date_created": 1304792991.1017599, "message": "@abhinavsood No. Logging is vital to tracking down problems. Sure you can have way too much logging, but it shouldn't be left out just because it makes it a tad harder to read.", "group_id": 292, "id": 952108}, {"user_id": 28054, "stars": [], "topic_id": 34184, "date_created": 1304870003.713836, "message": "@abhinavsood Verbose logging has helped me debug production issues many times. The only downside is performance. Wrap debug logging in isEnabledFor() calls so that you don't waste CPU building log strings you don't log when you turn off debug level logging. This is most important if you do debug logging inside of loops.", "group_id": 292, "id": 958133}, {"user_id": 32604, "stars": [], "topic_id": 34184, "date_created": 1304880542.426676, "message": "@abhinavsood Logging is definitely important and cannot be ignored but at the same time your code seems to be obscure. I have some experience working with a new kind of programming concept that lets you write all the logging code in just one class and calls the methods automatically. Sounds magical ! I know but it is true just Google AOP(Aspect Oriented Programming), its built upon the fact that most applications have certain cross cutting concerns. It has been implemented on almost all the languages using some 3rd party libraries. I have used AspectJ which is for Java, but I am sure there must be some for Python as well. So using this you can write your code without much logging and then even write the logging code at a later stage when you are testing your app!", "group_id": 292, "id": 959401}, {"user_id": 2376, "stars": [], "topic_id": 34184, "date_created": 1305009914.8555601, "message": "Thanks, you guys. This is helpful. One of my friends is writing an app using WordPress and we had a good debate on this topic. Just when we were finally about to settle - he brought up that he'll be logging errors and other information to the database instead of flat files. I don't think that's a good idea! or, is it? I mean, metrics and stuff like that in DB - cool, but logs?", "group_id": 292, "id": 985964}, {"user_id": 11592, "stars": [], "topic_id": 34184, "date_created": 1305181720.174077, "message": "@abhinavsood just use syslog and let admin configure it as he likes", "group_id": 292, "id": 1020966}, {"user_id": 3617, "stars": [], "topic_id": 34184, "date_created": 1305183606.9155991, "message": "@abhinavsood Seems a bit overkill, but it really depends on what exactly he's logging. For example logging 404 errors to a DB for use with a redirection plugin makes sense, but just logging them for an admin to see might not be all that useful.", "group_id": 292, "id": 1021183}]
@@ -0,0 +1 @@
[{"user_id": 8291, "stars": [], "topic_id": 15181, "date_created": 1301038669.8873899, "message": "Hi. I find it hard to debug PyQt4 apps. I guess it's because Qt has it's own GUI thread. Usually (in a non-GUI app) I would invoke set_trace() and simply inspect local objects. It doesn't work in PyQt4. After googling some docs I tried to use set_trace with pyqtRemoveInputHook() but still it's unusable. Putting a trace before app.exec_() prevents app from showing windows etc., putting it afterwards is meaningless because app either is working at GUI thread or already has stopped running.", "group_id": 292, "id": 436513}, {"user_id": 8291, "stars": [], "topic_id": 15181, "date_created": 1301038770.270257, "message": "Is there any way to debug my apps so easily as in pure C++/PyQt4 (by putting breaks/set_trace's everywhere I want) ?", "group_id": 292, "id": 436516}, {"user_id": 17897, "stars": [], "topic_id": 15181, "date_created": 1301041780.831744, "message": "use WingIDE. Their debugger handles that nicely. :)", "group_id": 292, "id": 436778}, {"user_id": 8291, "stars": [], "topic_id": 15181, "date_created": 1301048696.9609849, "message": "Well thaks, but it's not a solution (in my opinion). Obviously it's proprietary and also is a bloated IDE. A solution working in plain old text editor would be nice.", "group_id": 292, "id": 437393}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 39247, "stars": [], "topic_id": 45458, "date_created": 1316311605.0758131, "message": "I've been trying to deal with very simple question within python for weeks;\nhttp://stackoverflow.com/questions/7184375/how-to-find-import-name-of-any-package-in-python\n\nI modified the TokenMacGuy's code snippet there a bit and put it on github;\nhttps://gist.github.com/1176645\n\nBut still could not get that solution working in a reliable way for all the packages on pypi. It is failing for every second package. Any help will be appreciated.", "group_id": 292, "id": 2153936}, {"user_id": 40774, "stars": [], "topic_id": 45458, "date_created": 1317020792.6254079, "message": "Perhaps it is better you start with explaining the purpose of finding the module name. A package may well export several modules.", "group_id": 292, "id": 2214805}, {"user_id": 39247, "stars": [], "topic_id": 45458, "date_created": 1322132272.2683539, "message": "yes, terms are ambiguous here. my question was \"how to find the desirable import namespace of any python distribution\" as there is no shortcut answer for that.. because a distribution may have zero or more packages. therefore may come with more than 1 import namespaces such as \"test\" package.", "group_id": 292, "id": 2630006}, {"user_id": 40129, "stars": [], "topic_id": 45458, "date_created": 1322162101.5814941, "message": "I think rope (http://rope.sourceforge.net/) could help you. As feature it has \"Fixing imports when needed\"", "group_id": 292, "id": 2631865}]
@@ -0,0 +1 @@
[{"user_id": 960, "stars": [], "topic_id": 44315, "date_created": 1314052351.622457, "message": "Any thoughts on blowing away the site packages that `site` loads so it will refresh everything?", "group_id": 292, "id": 1934531}, {"user_id": 960, "stars": [], "topic_id": 44315, "date_created": 1314052531.007334, "message": "Doing a `del sys.modules[\"some_package\"]; import site; import some_package;` doesn't seem to work. `some_package` should be getting reimported.", "group_id": 292, "id": 1934561}, {"user_id": 960, "stars": [], "topic_id": 44315, "date_created": 1314052521.8371029, "message": "I'm playing with some oddball quirks because of namespace packages and in-process installation.", "group_id": 292, "id": 1934558}, {"user_id": 37535, "stars": [], "topic_id": 44315, "date_created": 1314886902.725564, "message": "You could reload your package. For example: \nIn [1]: import datetime\nIn [2]: reload(datetime)\nThis will change the entire module for the new version or simply reload the same version.", "group_id": 292, "id": 2020578}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 10074, "stars": [], "topic_id": 16034, "date_created": 1301409868.3441629, "message": "I need it atm for Ubuntu and later on another Linux System (but I think if it works on Ubuntu, it should work there too)", "group_id": 292, "id": 469771}, {"user_id": 10074, "stars": [], "topic_id": 16034, "date_created": 1301409424.0628431, "message": "Hey,\nI'm working on a script which needs to set a global environment variable. os.environ['var'] doesn't do what I need. How can I do this?", "group_id": 292, "id": 469690}, {"user_id": 5266, "stars": [], "topic_id": 16034, "date_created": 1301409728.312465, "message": "In Windows: write it to the registry and then broadcast the change", "group_id": 292, "id": 469754}, {"user_id": 1736, "stars": [], "topic_id": 16034, "date_created": 1301416595.2145541, "message": "@Samuirai Make a file in /etc/profile.d and then restart the machine", "group_id": 292, "id": 470648}, {"user_id": 1736, "stars": [], "topic_id": 16034, "date_created": 1301422955.2264991, "message": "If you just want to set something for all _future_ processes, then yes, you don't need to restart anything", "group_id": 292, "id": 471261}, {"user_id": 1736, "stars": [], "topic_id": 16034, "date_created": 1301422893.3200221, "message": "@kseistrup Actually yes, if you want to spread the variable to all processes you need to restart all processes (which is effectively the same as restarting the box)", "group_id": 292, "id": 471248}, {"user_id": 8558, "stars": [], "topic_id": 16034, "date_created": 1301422823.8906939, "message": "@coderanger OP is on Linux, not Windows \u2014 no need to restart.\n@samurai If you mean global as in system environment variable, you can set KEY=VAL pairs in /etc/environment. You should probably also take a look at pam_env(8).", "group_id": 292, "id": 471229}, {"user_id": 1736, "stars": [{"date_created": 1301499379.261703, "user_id": 20326}, {"date_created": 1301572813.7490461, "user_id": 26840}], "topic_id": 16034, "date_created": 1301422910.718528, "message": "There is \"no\" way to affect the env variables of a running process other than the current one", "group_id": 292, "id": 471253}, {"user_id": 10074, "stars": [], "topic_id": 16034, "date_created": 1301471888.244772, "message": "The problem is, that my scripts just starts other processes. If I set the os.environ var in my start script, the var is not known in the new processes. Atm I set the env variable global, but I think this should be my permanent solution.", "group_id": 292, "id": 479485}, {"user_id": 16551, "stars": [{"date_created": 1301554802.4507959, "user_id": 1736}], "topic_id": 16034, "date_created": 1301536497.094408, "message": "@davisp Setting something in os.environ should do an implicit os.putenv. What you will not see in os.environ however is anything set using C level putenv as os.environ is only populated from C level environ on process/sub interpreter startup.", "group_id": 292, "id": 486877}, {"user_id": 1736, "stars": [], "topic_id": 16034, "date_created": 1301554814.5167251, "message": "In fact forget os.putenv exists", "group_id": 292, "id": 489494}, {"user_id": 507, "stars": [], "topic_id": 16034, "date_created": 1301533958.6186719, "message": "You're hitting the issue that os.environ is not a live map of the environment. You want to use os.putenv", "group_id": 292, "id": 486432}]
@@ -0,0 +1 @@
[{"user_id": 4219, "stars": [{"date_created": 1315921274.1616819, "user_id": 39276}], "topic_id": 39226, "date_created": 1307989134.4888389, "message": "http://amzn.com/0596158106", "group_id": 292, "id": 1382824}]
@@ -0,0 +1 @@
[{"user_id": 8391, "stars": [{"date_created": 1307990162.9459479, "user_id": 960}], "topic_id": 39193, "date_created": 1307978840.7072041, "message": "While hacking away on Requests, I needed a PostBin service that works with all request types. So, I wrote HttpBin", "group_id": 292, "id": 1381220}, {"user_id": 8391, "stars": [{"date_created": 1308071227.4868939, "user_id": 36195}, {"date_created": 1309152795.6823771, "user_id": 6487}], "topic_id": 39193, "date_created": 1307978866.798439, "message": "http://httpbin.org", "group_id": 292, "id": 1381226}, {"user_id": 8391, "stars": [], "topic_id": 39193, "date_created": 1307979906.818995, "message": "(Flask powered)", "group_id": 292, "id": 1381331}, {"user_id": 8391, "stars": [], "topic_id": 39193, "date_created": 1307978867.6151559, "message": "feature suggestions welcome!", "group_id": 292, "id": 1381227}, {"user_id": 831, "stars": [], "topic_id": 39193, "date_created": 1307984474.026854, "message": "Very nice. I might get a chance to try it out next week.", "group_id": 292, "id": 1382067}]
@@ -0,0 +1 @@
[{"user_id": 5006, "stars": [{"date_created": 1310497375.2220919, "user_id": 27890}], "topic_id": 41726, "date_created": 1310470058.290149, "message": "Every now and then there is a connection problem and it takes hours to get to the point where new files are downloded again. Is there a way to speed up initial mirroring and start from point of crash instead of retry from beggining ?", "group_id": 292, "id": 1619404}, {"user_id": 5006, "stars": [], "topic_id": 41726, "date_created": 1310596711.3949399, "message": "I found the fix it's here: https://bugs.launchpad.net/pypi-mirror/+bug/712989", "group_id": 292, "id": 1632752}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 10074, "stars": [], "topic_id": 18890, "date_created": 1302611963.3481259, "message": "FYI Python 2.6", "group_id": 292, "id": 641537}, {"user_id": 7129, "stars": [{"date_created": 1302612954.937269, "user_id": 1284}, {"date_created": 1302613122.3843989, "user_id": 2810}, {"date_created": 1302659784.841393, "user_id": 5778}, {"date_created": 1302710701.206393, "user_id": 20326}], "topic_id": 18890, "date_created": 1302612944.6384301, "message": "Alternatively, change \"class a:\" to \"class a(object):\" and then call super(b, self).__init__(string)", "group_id": 292, "id": 641747}, {"user_id": 10074, "stars": [], "topic_id": 18890, "date_created": 1302611938.7587011, "message": "the __init__ from a is not called. I thought I have to write it in the b__init__ but i don't know how.", "group_id": 292, "id": 641531}, {"user_id": 10074, "stars": [], "topic_id": 18890, "date_created": 1302611895.092232, "message": "class a:\n def __init__(self,string):\n print string+\" a\"\n\nclass b(a):\n def __init__(self,string):\n print string+\" b\"\n \nz = b(\"asd\")", "group_id": 292, "id": 641517}, {"user_id": 7129, "stars": [{"date_created": 1302612955.954293, "user_id": 1284}, {"date_created": 1302631352.1037941, "user_id": 1}], "topic_id": 18890, "date_created": 1302612912.9132349, "message": "You must call superconstructors manually. You are using old-style classes, so you should add a.__init__(self, string) to b's __init__.", "group_id": 292, "id": 641734}, {"user_id": 10074, "stars": [{"date_created": 1302618879.8057041, "user_id": 1284}], "topic_id": 18890, "date_created": 1302615021.6986389, "message": "Thank You very much. I always found the super() method, but it didn't work. And I was not sure If I'm allowed to change the super class.\nWhat does inherit from tobject?", "group_id": 292, "id": 642380}, {"user_id": 10074, "stars": [{"date_created": 1302618882.768434, "user_id": 1284}, {"date_created": 1302710707.9852691, "user_id": 20326}], "topic_id": 18890, "date_created": 1302615069.597805, "message": "Should I prefer (object)? What are the improvements?", "group_id": 292, "id": 642400}, {"user_id": 719, "stars": [{"date_created": 1302618884.7362239, "user_id": 1284}], "topic_id": 18890, "date_created": 1302615868.4329159, "message": "@Samuirai http://realmike.org/blog/2010/07/18/introduction-to-new-style-classes-in-python/", "group_id": 292, "id": 642714}, {"user_id": 719, "stars": [], "topic_id": 18890, "date_created": 1302615935.602145, "message": "There's also @raymondh's guide to descriptors: http://users.rcn.com/python/download/Descriptor.htm", "group_id": 292, "id": 642730}, {"user_id": 1736, "stars": [{"date_created": 1302710713.4410391, "user_id": 20326}], "topic_id": 18890, "date_created": 1302630847.9111371, "message": "The short version, inheriting from object in Python 2.x is just a flag for wanting the new, nicer object model", "group_id": 292, "id": 646701}, {"user_id": 1736, "stars": [{"date_created": 1302710715.7397859, "user_id": 20326}], "topic_id": 18890, "date_created": 1302630866.145771, "message": "This is gone in Python 3.x though, the old object model was removed entirely", "group_id": 292, "id": 646709}, {"user_id": 1736, "stars": [{"date_created": 1302631109.357641, "user_id": 1284}, {"date_created": 1302631368.872354, "user_id": 1}, {"date_created": 1302659823.656898, "user_id": 5778}, {"date_created": 1302710718.9520259, "user_id": 20326}], "topic_id": 18890, "date_created": 1302630885.929606, "message": "So in Python 2.x you should always inherit from object", "group_id": 292, "id": 646723}, {"user_id": 3354, "stars": [], "topic_id": 18890, "date_created": 1302662716.395921, "message": "The easiest way to do so being to add\n\n__metaclass__ = type", "group_id": 292, "id": 655618}, {"user_id": 3354, "stars": [], "topic_id": 18890, "date_created": 1302662725.4009769, "message": "to the start of your module.", "group_id": 292, "id": 655625}]
@@ -0,0 +1 @@
[{"user_id": 35971, "stars": [], "topic_id": 39525, "date_created": 1308210189.679405, "message": "Anyone have good documentation for getting mysqldb working for OSX?", "group_id": 292, "id": 1408213}, {"user_id": 18665, "stars": [], "topic_id": 39525, "date_created": 1308212380.0990591, "message": "You should be good to go with:\n\nbrew install mysql\npip install mysql-python", "group_id": 292, "id": 1408401}, {"user_id": 21059, "stars": [], "topic_id": 39525, "date_created": 1308228611.935147, "message": "I did it a long time ago, but I remember it being a pain. postgresql has an easy installer though.", "group_id": 292, "id": 1409525}, {"user_id": 6541, "stars": [{"date_created": 1308320932.7996609, "user_id": 35932}], "topic_id": 39525, "date_created": 1308240829.457124, "message": "@ruffyleaf look MNPP http://blog.getmnpp.org/mnpp-010-released includes django and mysqldb", "group_id": 292, "id": 1411592}, {"user_id": 35971, "stars": [], "topic_id": 39525, "date_created": 1308295131.9609859, "message": "Another good one here", "group_id": 292, "id": 1416745}, {"user_id": 35971, "stars": [], "topic_id": 39525, "date_created": 1308295139.331569, "message": "http://birdhouse.org/blog/2009/02/21/python-mysql-connections-on-mac-os/comment-page-1/#comment-308282", "group_id": 292, "id": 1416748}, {"user_id": 35971, "stars": [], "topic_id": 39525, "date_created": 1308295154.55426, "message": "I reckon I will try out mnpp as well", "group_id": 292, "id": 1416754}]
@@ -0,0 +1 @@
[{"user_id": 719, "stars": [{"date_created": 1298441301.0781331, "user_id": 3751}, {"date_created": 1298448260.8778379, "user_id": 13893}], "topic_id": 8236, "date_created": 1298429828.0971119, "message": "@gulopine's Pro Python", "group_id": 292, "id": 185578}, {"user_id": 15015, "stars": [{"date_created": 1298431676.0595901, "user_id": 14022}, {"date_created": 1298434733.9143159, "user_id": 5639}, {"date_created": 1298441286.4502749, "user_id": 3751}, {"date_created": 1298444975.2454309, "user_id": 38}, {"date_created": 1298445708.774756, "user_id": 5435}, {"date_created": 1298447956.1895249, "user_id": 6587}, {"date_created": 1298469893.071367, "user_id": 1289}], "topic_id": 8236, "date_created": 1298429963.039618, "message": "At the risk of self-promotion, I've always considered my \"Python Essential Reference\" to be written for an intermediate/advanced audience. Of course, your mileage might vary.", "group_id": 292, "id": 185583}, {"user_id": 719, "stars": [{"date_created": 1298444962.580585, "user_id": 38}], "topic_id": 8236, "date_created": 1298430522.305753, "message": "+1 for \"Python Essential Reference.\" Excellent choice.", "group_id": 292, "id": 185598}, {"user_id": 12747, "stars": [], "topic_id": 8236, "date_created": 1298432993.4633901, "message": "beginning python from novice to professional.", "group_id": 292, "id": 185662}, {"user_id": 12747, "stars": [{"date_created": 1298434728.373327, "user_id": 5639}, {"date_created": 1298441293.5974629, "user_id": 3751}], "topic_id": 8236, "date_created": 1298433007.8295879, "message": "Pro Django (good discussion of Metaclasses)", "group_id": 292, "id": 185665}, {"user_id": 719, "stars": [], "topic_id": 8236, "date_created": 1298437290.5167241, "message": "@kennethreitz I actually didn't find Expert Python Programming that helpful. It seemed to spend a lot of time on project configuration info' and general best practices. Perhaps I read it too late. *shrug* Hopefully, another edition is somewhere around the corner.", "group_id": 292, "id": 185823}, {"user_id": 8391, "stars": [], "topic_id": 8236, "date_created": 1298435947.8795731, "message": "Expert Python Programming by Tarek Ziad\u00e9 is fantastic.", "group_id": 292, "id": 185763}, {"user_id": 13733, "stars": [], "topic_id": 8236, "date_created": 1298439146.9016221, "message": "Seconding Pro Django. Although if you're not looking for any Django-specific knowledge, you'll really only want chapter 2. You can grab just that chapter off of SafariBooksOnline for $2 in download-tokens.", "group_id": 292, "id": 185951}, {"user_id": 719, "stars": [], "topic_id": 8236, "date_created": 1298439317.453059, "message": "Might be worth mentioning that Pro Python is an expansion of Pro Django's famous \"Chapter 2\" by the same author.", "group_id": 292, "id": 185962}, {"user_id": 3751, "stars": [], "topic_id": 8236, "date_created": 1298441239.3298709, "message": "cool! thanks all", "group_id": 292, "id": 186028}, {"user_id": 3751, "stars": [], "topic_id": 8236, "date_created": 1298441277.821172, "message": "(already got Pro Django, will look for Pro Python and Python Essential Reference ;))", "group_id": 292, "id": 186036}, {"user_id": 3751, "stars": [], "topic_id": 8236, "date_created": 1298442798.1663339, "message": "@dabeaz \"Python Essential Reference\" listed in http://wiki.python.org/moin/BeginnersGuide/Programmers , I think that's why I always overlooked it", "group_id": 292, "id": 186072}, {"user_id": 5942, "stars": [], "topic_id": 8236, "date_created": 1298444602.2377119, "message": "@second Expert Python Programming, I really like this book, and I do find some guy don't agree. so maybe our taste is different.", "group_id": 292, "id": 186126}, {"user_id": 13893, "stars": [], "topic_id": 8236, "date_created": 1298448323.347723, "message": "+1 for Pro Python", "group_id": 292, "id": 186203}, {"user_id": 8391, "stars": [], "topic_id": 8236, "date_created": 1298469708.357378, "message": "Pro Python looks good. I haven't don't much with meta-programming. *Purchased*. Hope it reads well on the Kindle.", "group_id": 292, "id": 187600}, {"user_id": 15180, "stars": [], "topic_id": 8236, "date_created": 1298470061.380517, "message": "+ Pro Python", "group_id": 292, "id": 187657}, {"user_id": 1760, "stars": [], "topic_id": 8236, "date_created": 1298570563.4759791, "message": "I've got a book coming out this summer written specifically for intermediate programmers. \"The Python Standard Library By Example\" http://www.doughellmann.com/books/byexample/", "group_id": 292, "id": 199666}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 33745, "stars": [], "topic_id": 36010, "date_created": 1305838640.6993511, "message": "Salt is a remote execution system similar to func and mcollective", "group_id": 292, "id": 1116377}, {"user_id": 33745, "stars": [{"date_created": 1306042922.724159, "user_id": 12621}], "topic_id": 36010, "date_created": 1305838738.722059, "message": "written in python, of course! github: https://github.com/thatch45/salt screencast: http://blip.tv/thomas-s-hatch/salt-0-8-7-presentation-5180182 Release info: http://red45.wordpress.com/", "group_id": 292, "id": 1116414}, {"user_id": 33745, "stars": [], "topic_id": 36010, "date_created": 1305838751.8625729, "message": "Tell me what you all think!", "group_id": 292, "id": 1116420}, {"user_id": 4156, "stars": [], "topic_id": 36010, "date_created": 1305863121.5088611, "message": "I don't have time to watch the screencast and your readme doesn't have any usage examples -- can you outline what makes Salt appreciably different from Fabric, Pyro, Execnet and/or Pushy?", "group_id": 292, "id": 1120218}, {"user_id": 4748, "stars": [], "topic_id": 36010, "date_created": 1305869669.341722, "message": "@bitprophet well, for one thing it goes better on steak than fabric. Just sayin'", "group_id": 292, "id": 1120895}, {"user_id": 4156, "stars": [], "topic_id": 36010, "date_created": 1305870908.910872, "message": "@offby1 Spoken like somebody who's never had a steak n' silk sandwich! (hm. that sounds kind of dirty.)", "group_id": 292, "id": 1121092}, {"user_id": 4748, "stars": [], "topic_id": 36010, "date_created": 1305870954.5572679, "message": "Yeah. It really, really does.", "group_id": 292, "id": 1121099}, {"user_id": 1930, "stars": [], "topic_id": 36010, "date_created": 1305875223.749325, "message": ":-)", "group_id": 292, "id": 1121749}, {"user_id": 33711, "stars": [], "topic_id": 36010, "date_created": 1305896590.4009509, "message": "What's going on?! In confused", "group_id": 292, "id": 1125209}, {"user_id": 33745, "stars": [], "topic_id": 36010, "date_created": 1305904037.018765, "message": "@bitprophet, does that help?", "group_id": 292, "id": 1126603}, {"user_id": 33745, "stars": [{"date_created": 1306038871.3606861, "user_id": 31561}], "topic_id": 36010, "date_created": 1305903704.369169, "message": "Salt is more of an administration tool than an rpc layer. And unlike Fabric it uses its own daemon rather than ssh. Unlike Pyro it is very easy to integrate into an application, but does not create remote objects", "group_id": 292, "id": 1126543}, {"user_id": 33745, "stars": [], "topic_id": 36010, "date_created": 1305903820.328474, "message": "A good example can be found here: https://github.com/thatch45/salt/wiki/Salt-Command-Line-Client", "group_id": 292, "id": 1126565}, {"user_id": 33745, "stars": [], "topic_id": 36010, "date_created": 1305903850.2851541, "message": "Salt uses a PUB-SUB mechanism to send commands to groups of machines in parallel", "group_id": 292, "id": 1126570}, {"user_id": 33745, "stars": [], "topic_id": 36010, "date_created": 1305903884.549005, "message": "it is more like a simple, usable amqp broker.", "group_id": 292, "id": 1126584}, {"user_id": 4156, "stars": [], "topic_id": 36010, "date_created": 1305914358.1309991, "message": "Yes, thanks!", "group_id": 292, "id": 1128523}]

Some files were not shown because too many files have changed in this diff Show More