Problem with wxPython form

2023-03-10 Thread Chris
***/ ''' Module Name : alwsqin.py Author      : Chris Anderson Create Date : 03/10/2023 Description : This module contains the Sq In/MM/CM of leather used This file is Copyright Anderson Leather Works (c) 2023 ''' /###

ctypes struct alignment specification

2020-11-10 Thread Chris
I am working on a CUDA python API using ctypes. Within CUDA there are vector type structs defined (float2, float3, float4, int2, int3, int4, ...), all of which have an alignment specification (example of how this is specified https://stackoverflow.com/questions/12778949/cuda-memory-alignment/127

in-memory db? gadfly?

2005-09-22 Thread chris
Don't need to persist anything. Possible, or am I just talking crazy here? Thanks, Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: in-memory db? gadfly?

2005-10-07 Thread chris
sqlite worked perfectly, thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: in-memory db? gadfly?

2005-10-07 Thread chris
sqlite worked perfectly, thanks. -- http://mail.python.org/mailman/listinfo/python-list

HELP! py2exe error - No module named decimal

2005-10-21 Thread Chris
c:\python24\lib on the machine which ran py2exe, I see decimal.py and decimal.pyc. Can someone please help with this? I'm supposed to start testing the program today and I can't seem to move past this first step. Thanks!! Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: HELP! py2exe error - No module named decimal

2005-10-21 Thread Chris
That was it. Thank you so much! Chris In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > FYI there is a separate newsgroup for py2exe at > gmane.comp.python.py2exe. You may want to post > there also. > > Just as a suggestion, put an import decimal at > the

/usr/lib/python2.4/posixfile.py error

2005-11-03 Thread Chris
same script on my gentoo box at work tommorrow, but really would like to run this script asap. Any ideas on why it's failing on that python module? Any ideas greatfully received, Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: /usr/lib/python2.4/posixfile.py error

2005-11-05 Thread Chris
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Chris wrote: > > Wonder if anyone can help me? > > I very much doubt that, with as little information you gave us. > > > I am trying to run a perl script but I keep getting this error: > > &g

Comparison problem

2005-11-26 Thread Chris
Hi, I'm new to python, and I'm trying to write a small python script for a webpage. The script opens up a file called inventory, reads the contents, and checks the contents against the data from the form in my webpage. Now I have to do some slicing to get the name of the form elements (in this c

Re: urllib and proxy

2005-01-27 Thread chris
This was helpful. After reading this, I realized you can also just add this atop whatever script imports urllib. Just add after "import urllib": # Disable proxy use. urllib.getproxies = lambda x = None: {} -Chris http://www.fetidcascade.com/ -- http://mail.python.org/mailman/listi

Help with web dashboard

2005-01-27 Thread Chris
I've written some python scripts to handle different tasks on my Windows network. I would like for them to be accessible via a single web page (kind of like a dashboard) but have the scripts run on the web server (also a Windows box). Can anyone recommend a way (web server / language / method)

Re: Help with web dashboard

2005-01-28 Thread Chris
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Ifd you want to use standard CGI I've written a CGI user > authentication/management module called logintools. > Would this be preferred (or easier) than using an application server (ie. Zope or Webware)? If possible, I think it woul

urllib2.urlopen hangs, urllib.urlopen works?

2005-07-10 Thread Chris
ly to use urllib instead of urllib2 but am wondering where the problem is and if there is a workaround (or just my own stupidity)? Also with urllib I cannot send my own user-agent header as i wanted to do... thanks for any hint! chris -- http://mail.python.org/mailman/listinfo/python-list

Multivariable polynomials

2005-07-12 Thread Chris
Does anyone know of a good standalone implementation of multivariable polynomials in python? Thanks, Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Multivariable polynomials

2005-07-13 Thread Chris
rhaps it will be helpful for you. Chris -- http://mail.python.org/mailman/listinfo/python-list

Could anyone write a small program to log the Signal-to-Noise figures for a Netgear DG834 router?

2005-07-18 Thread Chris
then extracts the time and the SNR figure, and writes a line of a text file. I reckon it would be useful to many people. -- Chris -- http://mail.python.org/mailman/listinfo/python-list

OO design

2005-07-19 Thread chris
I've been scripting with python for a while now. Basically writing a few functions and running in the ipython shell. That's been very useful. But the more I do this the more I see that I'm doing more or less the same thing over and over again. So its feels like I need to get into class programming

Re: Could anyone write a small program to log the Signal-to-Noise figures for a Netgear DG834 router?

2005-07-19 Thread Chris
In article <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes >Chris, How would a wireless router show a signal to noise ratio? >Especially if it's providing the signal? The Netgear DG834 is a wired router. Its statistics page gives line

Re: Could anyone write a small program to log the Signal-to-Noise figures for a Netgear DG834 router?

2005-07-19 Thread Chris
In article <[EMAIL PROTECTED]>, Steven D'Aprano <[EMAIL PROTECTED]> writes >On Tue, 19 Jul 2005 07:24:19 +0100, Chris wrote: >> Could anyone write a small program to log the Signal-to-Noise figures >> for a Netgear DG834 router? >Are you offering to pay some

Re: OO design

2005-07-20 Thread chris
Extremely grateful for all the responses. I've pasted them all into a document and can now read all your valuable ideas together. Even at a first reading they have already helped clarify my thinking. Also minor clarifications:: > I'm hoping some of you python > lamas out there might be able to sh

Using win32com for web automation

2005-07-26 Thread Chris
Hi, I'm trying to figure out how to submit javascript forms using win32com in order to complete repetitive processes. The Webpage Source: (I tried to include only the important stuff) -- function mainPageOnLoad() { initLogin(); setEnterToSub

Regex for nested {}

2005-07-28 Thread Chris
n\t}\n\tsimple { ... }')] the regex I currently use stops at the first closing } but what I am looking for is a result as: [ "outer { inner1 { ... } inner2 { ... } }", "simple { ... }" ] is something like that possible? thanks for any hint chris -- http://mail.python.org/mailman/listinfo/python-list

showing help(M) when running module M standalone

2005-07-30 Thread Chris
== '__main__': print __doc__ print "\nFUNCTIONS:\n" for x in __all__: print x exec "print " + x + ".__doc__" Works but does not seem right using exec for such a task. any hint would be great! thanks chris -- http://mail.python.org/mailman/listinfo/python-list

Re: showing help(M) when running module M standalone

2005-07-30 Thread Chris
Dan Sommers wrote: > On Sat, 30 Jul 2005 17:04:50 +0200, > Chris <[EMAIL PROTECTED]> wrote: > > >>hello, >>I have a small module which only contains some utility functions. when >>running this standalone I would like to show the module docs a

Re: showing help(M) when running module M standalone

2005-07-30 Thread Chris
hello, thanks for all suggestions, if __name__ == '__main__': __name__ = 'MODULENAME' help(__name__) does actually work any even shows the modulename it should. chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing Docstrings Without Importing

2005-08-02 Thread Chris
utils being something like a standard for python (at least that's what I thought) would be really nice for it. chris sorry if i totally misunderstood the question... -- http://mail.python.org/mailman/listinfo/python-list

Re: get the return code when piping something to a python script?

2005-08-17 Thread chris
I use the following when I have an external command to do: # def doCommand( cmd,forked=False,runFrom=None ): """ Do a command, and return the (stdout+stderr) and the exit status. This was written to work both on Windows and *nix, and

Regular Expression IGNORECASE different for findall and split?

2005-09-06 Thread Chris
, re.I) ['1', '2X3'] >>> re.split('x', '1x2X3') ['1', '2X3'] I expected ['1', '2', '3'] but in this case re.I bahaves exactly as not present at all... Is that an expected behaviour or a fault? Running Python 2.4.1 on Windows XP thanks for any hint chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Ignoring ampersand(&) as a special character in xml

2005-09-06 Thread Chris
b" as a whole value? > > Thanks > Thierry > Simple use the XML Entity for & which is & a & b You could use CDATA sections too but they seem to have the effect on people ignoring that the containing strings are actually literary what they seem (in this c

Re: Ignoring ampersand(&) as a special character in xml

2005-09-06 Thread Chris
Chris wrote: > Thierry Lam wrote: > >> Let's say I have the following xml tag: >> >> a & b >> >> Currently, an xml parser will treat & as a special character. Does >> anyone know the special characters to use around the ampersand so th

__dict__ of object, Was: Regular Expression IGNORECASE different for findall and split?

2005-09-06 Thread Chris
Peter Otten wrote: > Chris wrote: > > >> >>> re.split('x', '1x2X3', re.I) >>['1', '2X3'] > > > >>I expected ['1', '2', '3'] but in this case re.I bahaves exactly as not >>

Re: __dict__ of object, Was: Regular Expression IGNORECASE differentfor findall and split?

2005-09-07 Thread Chris
Fredrik Lundh wrote: > Chris <[EMAIL PROTECTED]> wrote: > > >>but more of a basic question following, I was doing the following before: >> >>method = 'split' # came from somewhere else of course >>result = re.__dict__[method].(REGEX, TXT) &

Need help with C extension module

2005-09-07 Thread chris
= In() in.y = 1 in.s = "abc" ... out = func(in) maybe? Just no idea how to deal with the structs in the C extension module code. Any tips appreciated. Thanks, Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help with C extension module

2005-09-07 Thread chris
Any tips on what the pyrex should look like for my example? -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help with C extension module

2005-09-07 Thread chris
Many thanks Robert. That will be a good starting point. -Chris http://auslunch.com/ http://fetidcascade.com/ http://strombergers.com/python/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help with C extension module

2005-09-08 Thread chris
cdef outputs* o o = func(i, o) return o.y class Inputs: def __init__(self): self.x = "" So there is no explicit memory management going on there as in Robert's example. Is this ok? Thanks, Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: __dict__ of object, Was: Regular Expression IGNORECASE differentfor findall and split?

2005-09-08 Thread Chris
Mike Meyer wrote: > Chris <[EMAIL PROTECTED]> writes: > >>Fredrik Lundh wrote: >> >>>Chris <[EMAIL PROTECTED]> wrote: >>> >>> >>>>but more of a basic question following, I was doing the following before: >>>> &

Creating a list of Mondays for a year

2005-09-18 Thread Chris
Is there a way to make python create a list of Mondays for a given year? For example, mondays = ['1/3/2005','1/10/2005','1/17/2005','1/24/2005', '1/31/2005','2/7/2005', ... ] -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating a list of Mondays for a year

2005-09-19 Thread Chris
Thanks to everyone for your help! That fit the need perfectly. In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Is there a way to make python create a list of Mondays for a given year? > > For example, > > mondays = ['1/3/2005','1/10/2005','1/17/2005','1/24/2005', > '1/31/2005','2/7

Re: Python versus Perl ?

2005-02-09 Thread chris
hows some practical differences between Python and Perl that may be of interest. -Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and version control

2005-02-09 Thread Chris
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I don't know that you'll find a common approach. I use Subversion for > version control. For larger projects, I use Eclipse with the Pydev > plugin for editing, and the Subclipse plugin for talking to Subversion. > For smaller t

Re: Python COM Makepy Excel 9.0 error

2005-02-10 Thread Chris
Thank you! That did the trick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and "Ajax technology collaboration"

2005-02-24 Thread Chris
Does anyone else have any Nevow examples? In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > aurora <[EMAIL PROTECTED]> wrote: > > > It was discussed in the last Bay Area Python Interest Group meeting. > > > > Thursday, February 10, 2005 > > Agenda: Developing Responsive GUI Applicati

Re: Nevow examples

2005-02-25 Thread Chris
Does anyone know of a site(s) that shows examples of what you can do with Nevow? I'm not necessarily referring to code, but what it can do over the web. (Something I can show my boss if needed.) In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > There was a request for nevow exam

memory leaks with ctypes LoadLibrary ?

2005-03-01 Thread chris
What is the proper way to use ctypes to access an exported Function in a dll file on windows? I must be missing something because I get memory leaks when I use it: import ctypes import gc gc.enable() gc.set_debug(gc.DEBUG_LEAK) lib = ctypes.windll.LoadLibrary("H:\lib\mylib.dll") fn = lib.myfn f

Communication between python scripts

2005-03-01 Thread Chris
Is there a preferred method for having different scripts on different computers communicate with each other? For example, script A could tell script B that it is done with a certain process. I know how to do this using e-mail, but I would like a more direct method if possible. If my ISP's mail

Relative imports

2005-03-05 Thread Chris
Why do relative imports cause warnings in PyLint? A warning like this: ID:W0403 Relative import 'myPythonFileInTheSameFolder' When the import is like: from myPythonFileInTheSameFolder import MyClass -- http://mail.python.org/mailman/listinfo/python-list

Re: Relative imports

2005-03-05 Thread Chris
After reading that link I tried to change my imports like this: " from .myPythonFileInTheSameFolder import MyClass" Well, this caused an error in PyLint: Encountered "." at line 1, column 6. Was expecting one of: "or" ... "and" ... "not" ... "is" ... "in" ... "lambda" ...

Re: Web framework

2005-03-10 Thread Chris
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Gianluca Sartori wrote: > > Hi guys, > > > > What web framework do you suggest to develop with? > > I really like CherryPy. It has a very intuitive design. A "directory" > is an object and the "files" in it are methods. URL variables

csv module and unicode, when or workaround?

2005-03-11 Thread Chris
a C based module?. is this also the reason for the unicode unawareness? thanks chris -- http://mail.python.org/mailman/listinfo/python-list

Re: csv module and unicode, when or workaround?

2005-03-12 Thread Chris
hi, thanks for all replies, I try if I can at least get the work done. I guess my problem mainly was the rather mindflexing (at least for me) coding/decoding of strings... But I guess it would be really helpful to put the UnicodeReader/Writer in the docs thanks a lot chris -- http

database questions ala newbie pythonist

2004-12-01 Thread chris
####### Any help is greatly appreciated. Chris -- http://mail.python.org/mailman/listinfo/python-list

a newbie question

2004-12-08 Thread chris
In what directory are the preinstalled python libraries located on a Linux RH9 machine? -- http://mail.python.org/mailman/listinfo/python-list

Re: Fun with Outlook and MAPI

2004-12-10 Thread Chris
revent the confirmation dialogs with Outlook's MAPI dll. MS added them in a service pack as an anti-virus measure, so no work-around. Not all clients show these anoying dialogs though. Thunderbird definately doesn't. Unfortunately, I don't have the option of installing Thunderbird. Chris

Re: a newbie question

2004-12-11 Thread chris
Thank you. That's exactly what I needed. -- http://mail.python.org/mailman/listinfo/python-list

Re: Fun with Outlook and MAPI

2004-12-13 Thread Chris
SMTP will depend on customer requirements and how simple the configuration is. That pretty much sums it up. Also, since everything is done over IMAP with Outlook, I don't really have access to an SMTP server. Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Fun with Outlook and MAPI

2004-12-13 Thread Chris
ews is that the sent e-mail stays in the outbox instead of the sent folder. Any suggestions? Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Fun with Outlook and MAPI

2004-12-13 Thread Chris
DELETE_AFTER_SUBMIT,1)]) With these changes, the behavior in the outbox is consistent with sending messages directly from Outlook. """ regards Steve Actually, I had already found that message. It still doesn't do what I'm looking for(namely moving sent messages to the Sen

Re: Python IDE

2004-12-14 Thread Chris
se it for my Java developement and haven't had any problems with it. Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.0

2004-12-14 Thread Chris
.) Okay, I feel dumb now. :) Chris -- http://mail.python.org/mailman/listinfo/python-list

Python IDE

2004-12-14 Thread Chris
What IDE's do y'all recommend for Python? I'm using PythonWin atm, but I'd like something with more functionality. Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE

2004-12-15 Thread Chris
Try WingIDE if you have some money (about 35 E/$ for the personal version) to spend, it's worth every (euro)cent. But please try SPE first, maybe that's enough for you. SPE? Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: datetime

2004-12-16 Thread Chris
". Is that what you're running ? Doh! No, I'm still running 2.2. Anyways, I managed to do what I needed using time. Thanks for the help, though. Chris -- http://mail.python.org/mailman/listinfo/python-list

Fun with Outlook and MAPI

2004-12-10 Thread Chris
ew e-mails at a time, and would rather not have the user have to click yes for every single one. Does anyone know a workaround? I know about smtplib, but I would prefer to simply make what I have work. Thanks. Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Fun with Outlook and MAPI

2004-12-10 Thread Chris
ing to learn it and Python at the same time. :) Chris -- http://mail.python.org/mailman/listinfo/python-list

Python 3.0

2004-12-14 Thread Chris
Okay, color me stupid, but what is everyone referencing when they mention Python 3.0? I didn't see any mention of it on the Python site. Chris -- http://mail.python.org/mailman/listinfo/python-list

PythonWin Not Updating

2004-12-14 Thread Chris
I'm working on a program in PythonWin. The problem I'm running into is that after I make a code change, PythonWin doesn't always see it. Has anyone else had this problem? Chris -- http://mail.python.org/mailman/listinfo/python-list

datetime

2004-12-16 Thread Chris
Okay, I searched www.python.org for a date handler and found datetime. http://www.python.org/dev/doc/devel/lib/module-datetime.html However, whenever I try to import datetime, I get a No module named datetime error. What am I missing? Chris -- http://mail.python.org/mailman/listinfo/python

Use macros in Excel via win32com

2004-12-18 Thread chris
Run method of the excel application object...I think), but I can't figure out how to "install" the VBA macro code into the spreadsheet to begin with from my Python script. Any tips appreciated. Thanks, Chris -- http://mail.python.org/mailman/listinfo/python-list

odbc script

2004-12-18 Thread Chris
Hello, I posted a while back about a newbie database question and got a lot of great help here. My script that I am creating has come a long way (For me!) and almost does what I need it too. I am basicly using a dictionary to update a access database using an odbc connector. I am ab

Re: Use macros in Excel via win32com

2004-12-18 Thread chris
Thanks, but the problem is that I need to create the entire Excel document from scratch, dynamically, via the Python script. I want the script to add the macro code. -Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Use macros in Excel via win32com

2004-12-20 Thread chris
This makes sense. Thanks for the ideas. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python To Send Emails Via Outlook Express

2004-12-20 Thread Chris
AIL PROTECTED]" s.To = "[EMAIL PROTECTED]" s.Subject = "The subject" s.Send ... but nothing happens. What am I doing wrong? Does anyone have some sample code to share with me please? Do a search on the list for the thread Fun with Outlook and MAPI. That'll have your

Re: odbc script

2004-12-20 Thread Chris
sure I needed the conn.commit() as well. Chris "Benji York" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Chris wrote: >> what ever is the last loop through doesn't seem to update the >> database? > > Try a conn.commit() after your loop.

Are tuple really immutable?

2004-12-26 Thread Chris
tend to think that it means that the tuple is mutable. Indeed, it changed! 4) Even more confusing: I had the following strange result: (with both Python 2.3.3 and 2.4) >>> t[0]+=[1] Traceback (most recent call last): File "", line 1, in ? TypeError: object doesn't support item assignment >>> t ([1, 0, 1], [2]) There was an exception, but the list was still changed!? Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Are tuple really immutable?

2004-12-28 Thread Chris
Thank you. Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Are tuple really immutable?

2004-12-29 Thread Chris
s since he replied to all my questions ;-) Chris -- http://mail.python.org/mailman/listinfo/python-list

EARN CASH BY READING EMAILS. THIS REALLY WORKS I ALLREADY HAVE 10€ IN 1 MONTH AND ITS GROWING FASTER AND FASTER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2005-03-27 Thread CHRIS
http://www.smsprofit.nl/aanmeld.php?ref=78267 -- http://mail.python.org/mailman/listinfo/python-list

suggestions on how to do this

2005-04-27 Thread chris
The problem I have is as follows: I have a recursive function b(k) b(k) = -(A/k**2)*(b(k-2) - b(k-5)) k<0, b(k)=0 k=0, b(k)=1 k=1, b(k)=0 eg. b(2) = -A/4 b(3) = 0 b(4) = A**2/64 note that as k increases b(k) can itself be a sum of terms in powers of A rather than a single power of A

SWIG char** to Python list

2005-04-29 Thread Chris
more of SWIG or is there a simple way to make my C function fill a list of Python objects? Regards Chris -- http://mail.python.org/mailman/listinfo/python-list

socket client and server in one application?

2014-05-05 Thread chris
sever. Anyone have ideas about how I might frame this out? Thanks in advance, Chris. -- https://mail.python.org/mailman/listinfo/python-list

Re: socket client and server in one application?

2014-05-05 Thread chris
discussion of that anywhere. Thanks so much, Chris. -- https://mail.python.org/mailman/listinfo/python-list

IndexError: pop from empty list

2014-05-15 Thread chris
Any ideas about what this might mean? Running Debian Wheezy on a RaspBerry Pi and collecting data on a dispatch thread that is reading input on the serial port (connected to xbee series 1). It happens every few days but it really chokes the program. Thanks for any tips, ChrisJ Exception in

Re: socket client and server in one application?

2014-05-15 Thread chris
Again, thank you all for your help, Chris. On Monday, May 5, 2014 4:05:22 PM UTC-7, Chris Angelico wrote: > On Tue, May 6, 2014 at 8:37 AM, wrote: > > > I'm using a dispatch method to receive and occasionally send data through a > > serial port on a Raspberry Pi. I thi

Re: IndexError: pop from empty list

2014-05-15 Thread chris
this case I don't know which of my commands has spawned the error. I can experiment, I suppose, with putting a try/catch around suspected lines of code... Thanks, Chris. On Thursday, May 15, 2014 9:48:00 PM UTC-7, Gary Herron wrote: > On 05/15/2014 09:36 PM, ch...@freeranger.com wrote: >

WSGI (was: Re: Python CGI)

2014-05-25 Thread Chris
gi_module modules/mod_wsgi.so AddHandler wsgi-script .wsgi WSGIDaemonProcess myproj user=chris threads=3 [root@t-centos1 ~]# ps -ef|grep chris chris 1201 1199 0 08:47 ?00:00:00 /usr/sbin/httpd ---8<--- #!/usr/bin/python import get

Re: WSGI

2014-05-25 Thread Chris
On 05/25/2014 12:04 PM, alister wrote: > is your apache server running as root? > if so it probably should be corrected One is running as chris, the others as apache: [root@t-centos1 ~]# ps -ef|grep httpd root 1199 1 0 08:47 ?00:00:01 /usr/sbin/httpd chris 1293 1199

Script suddenly stops

2014-05-29 Thread Chris
Dear All, I'm trying to read ten 200 MB textfiles into a MySQL MyISAM database (Linux, ext4). The script output is suddenly stopping, while the Python process is still running (or should I say sleeping?). It's not in top, but in ps visible. Why is it stopping? Is there a way to make it continue,

Re: Script suddenly stops

2014-05-31 Thread Chris
Dear All, thanks a lot for your replies. I've found my mistake. The script output stopped, but the script was still filling the MySQL table. When I resized the Gnome terminal window the output continued. -- Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Introdution

2014-06-02 Thread Chris
Hi, On 06/03/2014 12:01 AM, Hisham Mughal wrote: > plz tell me about books for python > i am beginner of this lang.. the most important commands are in A Byte of Python [1]. This eBook isn't sufficient for programming, but it's a nice introduction. I bought Learning Python from Mark Lutz. It's n

question about dictionaries

2006-01-19 Thread Chris
When you declare a dictionary, Python puts it in a different order than the way you declare it: >>> stuff = {'\n':'', ':'\n'} >>> print stuff {'':'\n', '\n':''} Is there a way to stop this behavior? I want to process this dictionary in the order it's in, element by element. I'm running Python 2.3

saxutils.XMLGenerator and CDATA

2006-01-20 Thread chris
utput: from xml.sax import saxutils import sys handler = saxutils.XMLGenerator(sys.stdout) handler.startDocument() handler.startElement('sometag', {}) handler.characters('') handler.endElement('sometag') handler.endDocument() Produces: <![CDATA[x&<>xxx]]&

Re: How to generate graphics dynamically on the web using Python CGI script?

2006-01-20 Thread chris
This is a cool product that can produce any number of types of graphs. Supports Python, as well as lots of other languages. I have used it with success. There is a free version, as long as you don't mind the tiny logo they put into each graph. http://www.advsofteng.com/ -Chris --

super quick question

2006-08-04 Thread Chris
is there a prettier way to do this? string[:len(string)-1] thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: super quick question

2006-08-04 Thread Chris
It's very beautiful. Thanks jwoolard wrote: > Chris wrote: > > is there a prettier way to do this? > > string[:len(string)-1] > > > > thanks! > > string[:-1] > > Negative indices count from the end of the string! beautiful isn't it? -- http://mail.python.org/mailman/listinfo/python-list

error handling

2006-08-10 Thread Chris
I want to handle errors for a program i'm building in a specific way, but I don't want to use try/except/finally because it requires forming new blocks of code. I want to be able things like this: a = [2, 423, "brownie", 234.34] try: a[890] except IndexError: # I don't use 'finally' here because I

Re: error handling

2006-08-10 Thread Chris
I want to do this because there are several spots in my program where an error might occur that I want to handle the same way, but I don't want to rewrite the try..except block again. Is that clearer? And I meant sys.stderr... sorry 'bout that Simon Forman wrote: > Chris wrote:

dictionary update

2006-08-15 Thread Chris
for i in list_of_i's: self.i.update(i) How can this be done (I'm assuming it can be). thx Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Charts in Excel with pyExcelerator.ExcelMagic

2006-08-16 Thread Chris
implicate_order wrote: > Greetings, > Here's an Excel class I use. I'm afraid I can't recall where I found the basic class. I have a vague recollection it is due to Mark Hammond, author of the win32com package. Might have been in win32com demos. (Whoever the original author is anyway, many thanks

  1   2   3   4   5   6   7   8   9   10   >