pyExcelerator question

2006-12-18 Thread Gerry
fects even cells written before the call to XFStyle. Can anyone shed any light? Thanks, Gerry from pyExcelerator import * w = Workbook() ws = w.add_sheet("alpha") style = XFStyle() style.alignment.wrap= Alignment.NOT_WRAP_AT_RIG

Re: pyExcelerator question

2006-12-19 Thread Gerry
Thanks!!! Looks great. Works for me. I'll try to submit the patch. Gerry -- http://mail.python.org/mailman/listinfo/python-list

PyExcelerator: how to set colours?

2006-12-22 Thread Gerry
I'd like some cell to be a Blue "ABCDE". Here's come code thatv tries various values for pattern_for_colour and font.colour_index, to no avail. Can anyone suggest the right way to set colours? Thanks! Gerry == from pyExcelerator import * w

file reading anomaly

2007-07-06 Thread Gerry
out any problem. On another, it appears to succeed (no run-time errors) but does not read all the lines. If I print the lines and sum of the line lengths so far inside the loop, the program can be seen to have only read the first N bytes, where N is either 4096, or 8192. Any ideas? Than

Re: file reading anomaly

2007-07-06 Thread Gerry
.append(0) t.append("F2") t = [str(x) for x in t] print >> n, " ".join(t) linesout+= 1 print "linesout", linesout m.close() n.close() On Jul 6, 12:48 pm, Gerry <[EMAIL PROTECTED]> wrote: > Python 2.5, Window

Re: file reading anomaly

2007-07-06 Thread Gerry
Final update: problem solved. In the big script, the snippet was reading depstats.txt which hadn't been closed. Sorry for all the bother. Gerry -- http://mail.python.org/mailman/listinfo/python-list

Question on SPE and pwintypes.dll

2007-08-17 Thread Gerry
on the shortcut gives an error pop-up, application failed to start cannot find pwintypes.dll. When I click "OK", SPE seems to start normally. Any idea what's up? Googling for pwintypes.dll didn't give me any hits. Gerry -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on SPE and pwintypes.dll

2007-08-17 Thread Gerry
On Aug 17, 10:14 am, [EMAIL PROTECTED] wrote: > On Aug 17, 8:38 am, Gerry <[EMAIL PROTECTED]> wrote: > > >I'm running SPE 8.3.c under XP, on a new PC. > > >The files for SPE and Python were copied to the new machine, but > > the OS wasn't migrate

mysterious unicode

2007-03-20 Thread Gerry
I'm using pyExcelerator and xlrd to read and write data from and to two spreadsheets. I created the "read" spreadsheet by importing a text file - and I had no unicode aspirations. When I read a cell, it appears to be unicode u'Q1", say. I can try cleaning it, like this: try: s.enco

Re: mysterious unicode

2007-03-20 Thread Gerry
On Mar 20, 7:29 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 20 Mar 2007 19:35:00 -0300, Gerry <[EMAIL PROTECTED]> > escribió: > Thanks! - that helps a lot. I'm still mystified why: qno was ever unicode, and why qno.encode("as

Re: Unicode in Excel files

2007-03-21 Thread Gerry
On Mar 21, 6:07 am, "John Machin" <[EMAIL PROTECTED]> wrote: > On Mar 21, 11:37 am, Carsten Haese <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-03-20 at 16:47 -0700, Gerry wrote: > > > I'm still mystified why: > > >qno was ever unicode,

exporting from twiki

2007-11-28 Thread Gerry
elete a few pages, I'm not sure I can re-generate the table of contents, and renumber the pages (in Acrobat). Do any of you have any tips or code on automating exports from a twiki? Thanks, Gerry -- http://mail.python.org/mailman/listinfo/python-list

Re: readlines() reading incorrect number of lines?

2007-12-21 Thread Gerry
chars[ord(c)] = 1 ords = chars.keys() ords.sort() for o in ords: if chr(o) in printable: c = chr(o) else: c = "UNP" print "%5d %-5s %10d" % (o, c, chars[o]) print "_" * 50 Gerry On Dec 20, 5:47 pm, John Machin <[EMAIL

Half-Broken filetype association in XP

2008-02-01 Thread Gerry
Under XP, until yesterday, I typed a.py in a dos box and a.py ran fine; typed a.xls and opened an excel window; typed a.doc and opened a word Document. Type, all of those fail - if typed in a DOS window. They all work -- if clicked in an explorer window. The registry looks fine (to me, fwtw):

Re: artificiall, agent, movement

2008-05-12 Thread Gerry
change routes if traffic seems too slow. I think if you start with a very small city -- perhaps just a 5 by 5 grid, and generate sources and destinations at intersections randomly along the perimeter, you'll have enough to prototype all of the building blocks. Gerry On May 12, 6:37 am, Iman &l

Re: Converting a simple python script to a simple windows executable

2008-06-12 Thread Gerry
On Jun 12, 4:04 am, William McBrine <[EMAIL PROTECTED]> wrote: > On Wed, 11 Jun 2008 12:25:29 -0700, geoffbache wrote: > > (1) py2exe. This is really for when python isn't installed on the remote > > user's machine, so it requires you to distribute a large amount of DLLs > > etc which are part of t

Re: How to make python scripts .py executable, not bring up editor

2008-07-09 Thread Gerry
And if you've gotten this far, why not take the next step: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/476204 and just type tryme (as opposed to tryme.py) Gerry -- http://mail.python.org/mailman/listinfo/python-list

Re: Dictionary bidirectional

2008-07-14 Thread Gerry
If keys and values are unique, maybe just store both in the same dictionary: mydict[a] = b mydict[b] = a ... Gerry On Jul 14, 8:31 am, Impotent Verse <[EMAIL PROTECTED]> wrote: > If keys and values are unique you could do this... > > -- > > #    

Re: Printing plain text with exact positioning on Windows

2010-01-06 Thread Gerry
a dot. PCL 5 absolutely would let you put text anywhere you wanted, including the absolute limits on margins that the hardware supports. (PCL is printer control language). Gerry -- http://mail.python.org/mailman/listinfo/python-list

Re: My own accounting python euler problem

2009-11-10 Thread Gerry
On Nov 8, 2:42 pm, Ozz wrote: > vsoler schreef: > And, of course, you'd want to take a look a this: http://xkcd.com/287/ Gerry > > > Instead of subsets, do you mean permutations/combinations?  Since 2 > > invoices can have the same amount perhaps the terms permutation

Re: Command line arguments??

2009-11-17 Thread Gerry
On Nov 17, 2:26 pm, Nobody wrote: > On Mon, 16 Nov 2009 23:30:09 +, Rhodri James wrote: > > Quote the filenames or escape the spaces: > > > C:\Python26\Python.exe C:\echo.py "C:\New Folder\text.txt" > > > We've been living with this pain ever since windowed GUIs encouraged users   > > to put s

win32api install problem

2009-07-20 Thread Gerry
ailed: The specified module could not be found. \Python26\Lib\site-packages has: 03/23/2009 08:35 AM win32 07/20/2009 09:08 AM win32com 02/18/2009 01:21 PM win32comext Can anyone offer a suggestion? Thanks, Gerry -- http://mail.python.org/mailman/listinfo/python-list

Python <=> Excel question

2005-09-30 Thread Gerry Blais
Newbie questions: Suppose abc.xls has sheets a, b, c. How can I find, in Python, the sheet names? Given a sheet name, how can I export the sheet as a csv file? Finally, how can I, in Python, make a .txt version of a Word document? Thanks, Gerry -- http://mail.python.org/mailman/listinfo

windows paging Q

2005-11-29 Thread Gerry Blais
not a factor in elapsed time, anyway? Tx, Gerry -- http://mail.python.org/mailman/listinfo/python-list

Problem when subclass instance changes base class instance variable

2005-04-15 Thread Gerry Sutton
Hi All! I have noticed a strange behavior when using a constant identifier to initialize an instance list variable in a base class and then trying to modifying the list in subclasses by using either the list.extend method or even by having the subclass create a whole new list in the variable.

Newbie Cygwin Q

2006-08-02 Thread Gerry Blais
ello" and I do the chmod, and submit ./hello.py I get a message "hello.py is currently being printed" and nothing happens, until I give up and ^C out. or, now, with no changes I can see, Can't find file hello What am I missing? Thanks, Gerry -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Cygwin Q

2006-08-02 Thread Gerry Blais
Sorry - problem solved. My #!/usr/Pyrthon2.4.exe was inadvertently on line 2... Gerry On Wed, 02 Aug 2006 13:04:10 -0400, Gerry Blais <[EMAIL PROTECTED]> wrote: >I'm trying to install and run, on XP, a queueing analysis package, >PDQ, which has a{ Python, swig, C library ver

Re: Cool JavaScript game

2008-02-02 Thread Gerry Ford
gt; > Its kind of a puzzle game with time-based scoring and other things. > Check it out. > > http://beem.awardspace.com > The game was as small as the link was large. -- Gerry Ford "The apple was really a peach." -- Allison Dunn on the garden of eden -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not Ruby?

2009-01-02 Thread Gerry Reno
There's been almost 50 responses to this rubbish post. Could you please all stop! -- http://mail.python.org/mailman/listinfo/python-list

Distutils, bdist_XXX, rpmbuild issues

2009-01-07 Thread Gerry Reno
his issue or is distutils in need of some enhancement. We need the "sdist" command to generate distinct pre-release candidate tarball names. And we need the "bdist_XXX" commands to generate distro-specific package naming such that the pre-release candidate packages can be updated by the final release package. Regards, Gerry -- http://mail.python.org/mailman/listinfo/python-list

Re: Distutils, bdist_XXX, rpmbuild issues

2009-01-07 Thread Gerry Reno
Ben Finney wrote: Gerry Reno writes: We have an application, foo-5.0.0, and we want to put out some pre-release candidates for testing, so we set the version to "5.0.0_rc1" in setup.py. That's where your problems start (as you no doubt surmised). If you want ver

Open source Web testing tool - cPAMIE 1.6b released

2008-04-16 Thread Gerry Paneda
Hi Rob, I have been watching your videos in ShowMeDo and first of all thanks - I just started looking at Automation again and this got me started fairly easy. I do have a question though. 2.0 does not seem to have getConfig and writeScript from the one I downloaded from sourceforge. I went t

Re: pop langs website ranking

2008-04-22 Thread Gerry Ford
"Paul McGuire" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Apr 22, 4:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > In February, i spent few hours researching the popularity of some > computer language websites. > I seem to recall this exact same post from *last* Febru

Re: A web site using Python

2010-12-06 Thread Gerry Reno
t; How-To: Add VirtualEnv and Django (WSGI framework) to XAMPP <http://www.apachefriends.org/f/viewtopic.php?f=17&t=42992> How-To: Add Python and mod_wsgi to XAMPP <http://www.apachefriends.org/f/viewtopic.php?f=17&t=42975> -Gerry On 12/06/2010 07:42 PM, Alice Bevan–McGregor wro

Added Python, WSGI to XAMPP

2010-12-09 Thread Gerry Reno
t; How-To: Add VirtualEnv and Django (WSGI framework) to XAMPP <http://www.apachefriends.org/f/viewtopic.php?f=17&t=42992> How-To: Add Python and mod_wsgi to XAMPP <http://www.apachefriends.org/f/viewtopic.php?f=17&t=42975> -Gerry -- http://mail.python.org/mailman/listinfo/python-list

Re: Added Python, WSGI to XAMPP

2010-12-13 Thread Gerry Reno
On 12/13/2010 06:34 PM, Chris Withers wrote: > On 09/12/2010 21:29, Gerry Reno wrote: >> How-To: Add VirtualEnv and Pylons (WSGI framework) to XAMPP >> <http://www.apachefriends.org/f/viewtopic.php?f=17&t=42981> > > You mean Pyramid, right? ;-) > > Chris >

Re: Added Python, WSGI to XAMPP

2010-12-13 Thread Gerry Reno
On 12/13/2010 07:12 PM, Chris Withers wrote: > On 14/12/2010 00:14, Gerry Reno wrote: >> On 12/13/2010 06:34 PM, Chris Withers wrote: >>> On 09/12/2010 21:29, Gerry Reno wrote: >>>> How-To: Add VirtualEnv and Pylons (WSGI framework) to XAMPP >>>> <http

Re: Added Python, WSGI to XAMPP

2010-12-13 Thread Gerry Reno
On 12/13/2010 11:13 PM, rusi wrote: > On Dec 10, 2:29 am, Gerry Reno wrote: > >> If you have any need of a portable LAMP stack, I just finished writing >> some How-To's for getting Python, VirtualEnv and WSGI frameworks running >> with XAMPP: >> >>

Pyramid and MVC (split from: Re: Added Python, WSGI to XAMPP)

2010-12-15 Thread Gerry Reno
On 12/15/2010 05:03 PM, Chris Withers wrote: > On 14/12/2010 00:58, Gerry Reno wrote: >> What I really don't like right off is that Pyramid is contorting the MVC >> model > > That specific pattern, I'm afraid, is a little antiquated nowadays, > particularly whe

Re: Added Python, WSGI to XAMPP

2010-12-15 Thread Gerry Reno
On 12/15/2010 07:36 PM, Ian Kelly wrote: > On Mon, Dec 13, 2010 at 5:58 PM, Gerry Reno wrote: > >> The VIEW is the bits that stream out of the webserver back to the users >> browser. The CONTROLLER is the code that gathers all the pieces from >> the model and constru

Re: Added Python, WSGI to XAMPP

2010-12-16 Thread Gerry Reno
On 12/16/2010 04:36 AM, Octavian Rasnita wrote: > From: "Ian Kelly" > > On Mon, Dec 13, 2010 at 5:58 PM, Gerry Reno wrote: > >> The VIEW is the bits that stream out of the webserver back to the users >> browser. >> > Why only to the user's

Re: Added Python, WSGI to XAMPP

2010-12-18 Thread Gerry Reno
;it' >> the view. > > In turbogears that is exactly what happens. > > Cheers, > Daniel > > > How-To: Add VirtualEnv and TurboGears2 (WSGI frmwk) to XAMPP http://www.apachefriends.org/f/viewtopic.php?f=17&t=43207 -Gerry -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2010-12-29 Thread Gerry Reno
wxPython looks good but I don't see anyone developing support for things like smartphones. Also, what do you think about frameworks such as pyjamas? It lets you write in python and compiles everything down to Javascript so it can be used across the Web as well as on the desktop. -- http://ma

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Gerry Reno
ey deserve to be respected for the contributions that they have made. The question now is whether Python needs to evolve its own GUI toolset. Regards, Gerry -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Gerry Reno
On 12/30/2010 10:28 PM, rantingrick wrote: > > Hmm, wxPython is starting to look like the answer to all our problems. > WxPython already has an IDE so there is no need to rewrite IDLE > completely. What do we have to loose by integrating wx into the > stdlib, really? > > In the spirit of "batte

Re: CPython on the Web

2011-01-02 Thread Gerry Reno
7;, [2*x for x in range(5)][:4] = So what is happening is that the whole Python interpreter has been converted to Javascript and is running the browser, is that correct? Ok, but the usual browser 'sandbox' constraints would still apply would they not? And what is the build toolchain that you need if you want to convert your modules to be importable with this "CPython on the Web"? Regards, Gerry -- http://mail.python.org/mailman/listinfo/python-list

Re: CPython on the Web

2011-01-02 Thread Gerry Reno
On 01/02/2011 05:53 PM, azakai wrote: > On Jan 2, 1:01 pm, Gerry Reno wrote: > >> Ok, visiting this page: >> >> http://syntensity.com/static/python.html >> >> I do not see anything happen when I click 'execute' button. I'm running >> Fi

Re: CPython on the Web

2011-01-02 Thread Gerry Reno
local/lib/lib-dynload'] Now, those paths must be on your machine because they are not on my client machine. But the interpreter is now running on MY machine. Well in a sandbox really. So how is that going to work? Regards, Gerry -- http://mail.python.org/mailman/listinfo/python-list

Re: CPython on the Web

2011-01-03 Thread Gerry Reno
On 01/03/2011 03:10 PM, azakai wrote: > On Jan 2, 5:55 pm, Gerry Reno wrote: > >> I tried printing sys.path and here is the output: >> >> ['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7/', >> '/usr/local/lib/py

Re: CPython on the Web

2011-01-03 Thread Gerry Reno
On 01/03/2011 03:13 PM, Diez B. Roggisch wrote: > > A fun hack. Have you bothered to compare it to the PyPy javascript > backend - perfomance-wise, that is? > > Diez > I don't think that exists anymore. Didn't that get removed from PyPy about 2 years ago

Re: CPython on the Web

2011-01-03 Thread Gerry Reno
On 01/03/2011 05:55 PM, Diez B. Roggisch wrote: > Gerry Reno writes: > > >> On 01/03/2011 03:13 PM, Diez B. Roggisch wrote: >> >>> A fun hack. Have you bothered to compare it to the PyPy javascript >>> backend - perfomance-wise, that is? >>

Re: CPython on the Web

2011-01-04 Thread Gerry Reno
, seehttp://emscripten.org >>> > On loading, I "get script stack space quota is exhausted" under > firefox 3.5.12, under linux. > Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100907 > Fedora/3.5.12-1.fc12 Firefox/3.5.12 > It's a Fi

Re: Can I have both Python 2.7 and Python 3.1 at the same time on the Mac?

2011-01-06 Thread Gerry Reno
On 01/06/2011 02:44 PM, Bill Felton wrote: > Hi All, > I'm new to python, trying to learn it from a variety of resources, including > references posted recently to this list. > I'm going through /www.openbookproject.net/thinkCSpy/ and find it makes use > of gasp, which apparently is not compatibl

Re: Python use growing fast

2011-01-10 Thread Gerry Reno
On 01/10/2011 08:31 PM, Katie T wrote: > On Mon, Jan 10, 2011 at 10:29 PM, John Nagle wrote: > >> On 1/10/2011 1:02 PM, MRAB wrote: >> >>> On 10/01/2011 20:29, Dan Stromberg wrote: >>> I invite folks to check out Tiobe's Language Popularity Rankings: http://www.tiobe.

Re: Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Gerry Reno
These command just allow you to use 'vi editing mode' within python.  If you've ever navigated a file with vi to go up and down the document you'll immediately know how it works.-GerryJun 13, 2010 07:39:35 PM, vinc...@vincentdavis.net wrote:On Sun, Jun 13, 2010 at 5:28 P

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Gerry Reno
sounds like your keymapping got messed with.you could just:set -o vipythonESC, Ctrl-jand now ESC-k and ESC-j will take you back and forth in history (std vi editing)-GerryJun 13, 2010 07:22:40 PM, vinc...@vincentdavis.net wrote:I just installed 2.6 and 3.1 from current maintenance source on MacOSx

Re: Strange factory pattern

2010-06-22 Thread Gerry Reno
This looks like a public class exposing an implementation private class.Jun 22, 2010 10:39:05 PM, zac...@gmail.com wrote:In the threading module there are several code bits following this convention:###def Class(*args, **kwargs):    return _Class(*args, **kwargs)class _Class(...###This is true for