First  |  Prev |  Next  |  Last
Pages: 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
announcing jsonutil package
Folks: I've uploaded a small package to PyPI which is a small wrapper around simplejson that sets the default behavior so that JSON decimal values are mapped to type Decimal instead of type float: http://pypi.python.org/pypi/jsonutil It has pretty thorough unit tests, including a copy of all the simplejson ... 18 Jun 2010 14:38
i18n for applications and modules
Internationalizing Python applications is not really hard, and there are some useful how-tos available for the beginner. I've written several (still smallish) applications and localized them. Although it works, it has some rather inelegant areas or rough edges that keep nagging me. 1. Python itself is not re... 18 Jun 2010 13:32
catching my own exception
I have a problem with catching my own exception. Here is the code: http://fly.srk.fer.hr/~nick/travapi/blame.php?repname=Travian+API&path=%2Fvillage.py& Line 252 calls a method, which on line 207 raises a SomethingBeingBuiltError exception. On line 253 I catch that exception, but when I run that code, I get: T... 20 Jun 2010 18:56
using subprocess.Popen does not suppress terminal window on Windows
I am calling a ruby program from a python gui and using subprocess.Popen in Windows XP using python 2.6. Unfortunately, whenever the ruby program is called a blank command window appears on screen, annoying my users. Is there a way to suppress this behaviour? Below is a minimal program that demonstrates the pro... 18 Jun 2010 12:25
cannot get html content of tag with BeautifulSoup
Hello, does anyone know how to get html contents of an tag with BeautifulSoup? In example I'd like to get all html which is in first <p> tag, i.e. <span id="foo">This is paragraph</span> <b>one</b>. as unicode object p.contents gives me a list which I cannot join TypeError: sequence item 0: expected string, T... 18 Jun 2010 12:25
MAKE UPTO $5000 MONTHLY! $2000 INYOUR FIRST 30 DAYS!
MAKE UP TO $5000 PER MONTH $2000 IN FIRST 30 DAYS Generate $50 to $100 whenever you have a couple of hours free time tospare. You could make $50 or more in the next 2 hours. Starting right Now! Today! Awesome earnings get paid for your honest work Join as a free member and get paid to your bank account To join... 18 Jun 2010 08:02
Jewish Pirates of the Mediteranean
Excellent Video, VERRRY RARE !!! http://www.youtube.com/watch?v=r-72jGkGbsg On Jun 16, 2:25 am, nanothermite911fbibustards <nanothermite911fbibusta...(a)gmail.com> wrote: Jewish Pirates of the Caribbeanhttp://www.youtube.com/watch?v=cFSjKaiN47I&feature=related Python Jewish Pirates of the Caribbean ... 18 Jun 2010 15:43
Possible to reach back in stack and grab calling function'slocals()?
On Thu, 2010-06-17 at 16:02 -0400, python(a)bdurham.com wrote: Is there an elegant way to reach back in the stack and grab the calling function's copy of locals()? You can do it using my favourite function, sys._getframe: import sys def outer(): .... a = 1 .... inner() .... ... 18 Jun 2010 14:38
[suds] how to convert a sudsobject into its representative XML?
[The SUDS mailing list is clogged with spam. F'k'n arms race.] I'm trying to write a unit test on a view that will respond to SOAPist commands. To get there, the test must pass XML as if a SOAP client had cooked it up and sent it over the wire. So I have a auth object, like this: wsdl = path(__fil... 17 Jun 2010 20:05
Socket error 98 "Address already in use"
Hi, I'm trying to make a little mp3 server / client and I'm running into a problem with the Socket error 98 "Address already in use". The error doesn't happen right away, I can send 3-4 commands, disconnecting and reconnecting and they work fine and then I get this error and the client can no longer connect, althou... 17 Jun 2010 22:16
First  |  Prev |  Next  |  Last
Pages: 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90