Re: Insert comma in number?

2013-03-06 Thread ian douglas
On 03/06/2013 03:39 PM, eli m wrote: I have a python program that accepts input and calculates the factorial of that number, and i want to know if i can make it so commas get inserted in the number. For example: instead of 1000 it would say 1,000 pip install humanize import humanize

Re: Python script not working on windows 7 but works fine on linux

2013-03-04 Thread ian douglas
On 03/04/2013 11:06 AM, io wrote: esclusioni_file = open('/home/io/btc_trading/exclusions.txt','r') Windows error : Traceback (most recent call last): File C:\btc_trading\scripts \import_json_2_csv_from_web_and_exclusions.py, line 10, in module f =

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-27 Thread ian douglas
Some would argue that vim is always good enough, especially with its plugin system. I bounce between vim and Sublime Text 2, and recently bought PyCharm went it went on sale a week ago. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question regarding mod_python and a script for web.

2012-12-20 Thread ian douglas
Short answer: Use the POST method on the form instead of GET. Depending how you process the form you might need to make a few changes to the script that answers the request. -- http://mail.python.org/mailman/listinfo/python-list

Re: notmm is dead!

2012-10-28 Thread ian douglas
On 10/05/2012 12:37 PM, Prasad, Ramit wrote: I might be misunderstanding, but I think Etienne wants money in exchange for letting someone else take over. Not to stir up the hornet's nest any more, but it also sounds like now he wants money for people to license things as well: The license fee

Re: Python 2.6 and Sqlite3 - Slow

2012-08-27 Thread ian douglas
From the sqlite documentation he quoted, it appears that ANY network filesystem, local or otherwise, should be avoided. On Aug 27, 2012 8:13 PM, bruceg113...@gmail.com wrote: On Monday, August 27, 2012 10:32:47 PM UTC-4, Bryan wrote: bruceg113 wrote: I selected sqlite for the following

Re: Difference between json.load() and json.loads() [From: RE: question about file handling with with]

2012-03-28 Thread ian douglas
On Mar 28, 2012 6:54 AM, Nadir Sampaoli nadirsampa...@gmail.com wrote: Hello everyone (my first message in the mailing list), Is the following function correct? Yes, though I'd use json.load(f) instead of json.loads(). The docs aren't very clear (at least for me) about the difference

Re: random number

2012-03-26 Thread ian douglas
On Mar 26, 2012 12:28 AM, Steven Dapos;Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 26 Mar 2012 08:40:00 +0200, Michael Poeltl wrote: * Nikhil Verma varma.nikhi...@gmail.com [2012-03-26 08:09]: A truly random six digit number will include any number between 10 through