Re: Python LOC, .exe size, and refactoring

2012-02-21 Thread Steven D'Aprano
On Tue, 21 Feb 2012 19:51:07 -0800, CM wrote: > I have an application that I was hoping to reduce a bit the size of its > .exe when "packaged" with py2exe. I'm removing some Python modules such > as Tkinter, etc., but now wonder how much I could size I could reduce by > refactoring--and therefore

Re: Should I acquire lock for logging.Handler.flush()?

2012-02-21 Thread Fayaz Yusuf Khan
On Tuesday 21 Feb 2012 12:52:14 PM Vinay Sajip wrote: > If you are using SMTPHandler, calling flush() won't do anything. > You'll probably need to subclass the handler to implement rate > limiting. Oh, no! I'm writing my own handler. https://github.com/fayazkhan/ses_handler/blob/master/ses_handler.

Campaign to raise $200 for python code statistics tool

2012-02-21 Thread umar nawaz
If $200 of contributions are made, I will create a python code statistics tool. To contribute go to this link on invested.in, a crowdfunding site (I cannot use kickstarter because I'm from Canada). http://invested.in/P2127/python-code-statistics-tool -- http://mail.python.org/mailman/listinfo/pyt

Python LOC, .exe size, and refactoring

2012-02-21 Thread CM
I have an application that I was hoping to reduce a bit the size of its .exe when "packaged" with py2exe. I'm removing some Python modules such as Tkinter, etc., but now wonder how much I could size I could reduce by refactoring--and therefore shortening--my code. Is there a rule of thumb that pr

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-21 Thread Kyle T. Jones
On 2/19/12 2:16 AM, SherjilOzair wrote: Well, if not modify python itself, I was thinking of making another shell, which borrows a lot from python, something like merging bash and python. such that I can do `cd ~/Desktop/dev` and `for i in open('file.txt'): print i` at the some shell. This I t

ali

2012-02-21 Thread Umair Ahmed
http://sharecash.org/download.php?file=2652910 -- http://mail.python.org/mailman/listinfo/python-list

Re: [pyxl] xlrd 0.7.2 released!

2012-02-21 Thread python-excel
Chris Withers wrote: > Hi All, > > I'm pleased to announce the release of xlrd 0.7.2. This release, > like the xlwt release, is long overdue and has been over 2.5 years > in the making! > [...snip...] > > I've currently only put up .tar.gz sdists, if anyone requires > anything else, please explai

Re: PyKota, Python: AttributeError: 'module' object has no attribute '_quote'

2012-02-21 Thread JohannesTU
Thanks for your advice. The command itself didn't work, but it brought me on the right path and "car and engine" are running now! ;-) I fixed the problem by copying the correct pg.py-file to the python2.7 path. After that the error didn't show up again and I'm now able to create users etc. Thank y

Re: Should I acquire lock for logging.Handler.flush()?

2012-02-21 Thread Vinay Sajip
On Feb 21, 7:23 am, Fayaz Yusuf Khan wrote: > I'm writing a custom logging Handler that sends emails through AWS Simple > Email Service using the boto library. > As there's a quota cap on how many (200) emails I can send within 24hrs, I > think I need to buffer my log messages from the emit() call

Re: xlwt 0.7.3 released!

2012-02-21 Thread Karim
Hello chris, Thanks for the greet news! Is there any chance that xlrd read .xlsx format and arrive to decode special unicode instead of firing some unicode Exception? Cheers Karim Le 21/02/2012 10:18, Chris Withers a écrit : Hi All, I'm pleased to announce the release of xlwt 0.7.3. This

[bug] imaplib case sensitive

2012-02-21 Thread Petite Abeille
Hello, Looks like imaplib is case sensitive, even though the IMAP protocol isn't: (1) Except as noted otherwise, all alphabetic characters are case-insensitive. The use of upper or lower case characters to define token strings is for editorial clarity only. Implementatio

xlrd 0.7.2 released!

2012-02-21 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.7.2. This release, like the xlwt release, is long overdue and has been over 2.5 years in the making! The highlights: - All messaging and debug logging is now written to the logfile provided to open_workbook. - Tolerant handling of file

xlwt 0.7.3 released!

2012-02-21 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlwt 0.7.3. This release is long overdue and has been over 2.5 years in the making! The highlights: - Added user_set and best_fit attributes to Column class. - Fixed an "[Errno 0] Error" raised when Worksheet.flush_row_data() was called after

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-21 Thread Serhiy Storchaka
18.02.12 20:58, SherjilOzair написав(ла): Has it been considered to add shell features to python, such that it can be used as a default shell, as a replacement for bash, etc. I'm sure everyone would agree that doing this would make the terminal very powerful. What are your views on this? Lo

Re: netCDF4 variable manipulation

2012-02-21 Thread Chris Rebert
On Tue, Feb 21, 2012 at 12:29 AM, Sheldon wrote: > On Feb 21, 12:53 am, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote: >> On Mon, 20 Feb 2012 12:37:22 -0800, Sheldon wrote: >> > Hi, >> >> > I'm trying to read a netCDF4 variable from a file (no problem) and then >> > scale it before writi

Re: netCDF4 variable manipulation

2012-02-21 Thread Sheldon
On Feb 21, 12:53 am, Steven D'Aprano wrote: > On Mon, 20 Feb 2012 12:37:22 -0800, Sheldon wrote: > > Hi, > > > I'm trying to read a netCDF4 variable from a file (no problem) and then > > scale it before writing over the original variable in the file. > > > I'm using python 2.7 and the latest netCD