Re: Running script in __main__ shows no output in IDLE

2006-05-23 Thread [EMAIL PROTECTED]
Thanks for your help! Shouldn't Idle have shown an error when trying to read the string constant if it's not interpretable as a normal string, then? /Heidi -- http://mail.python.org/mailman/listinfo/python-list

Don't wish to give up on a Tkinter GUI Builder :(

2006-05-23 Thread vbgunz
Hello world, I tried looking everywhere for a decent Tkinter GUI builder and the closest I got to finding one before being horrified from looking at the source was vtcl @ http://vtcl.sourceforge.net. The next closest thing was page @ http://page.sourceforge.net/ Page just didn't cut it for me and

Re: New beginner to python for advice

2006-05-23 Thread vbgunz
> I am a new beginner to python, would you like give me some > advice on studying it? http://www.python.org/doc/ is a real great place to start. Are you looking for different advice? -- http://mail.python.org/mailman/listinfo/python-list

how to change sys.path?

2006-05-23 Thread Ju Hui
is python search module by paths in sys.path? how to change it manuallly? -- http://mail.python.org/mailman/listinfo/python-list

RE: COM Server crashing when returning large arrays

2006-05-23 Thread Tim Golden
[Alastair Alexander] | Hi ... I'm using pythoncom to create a python COM server | application that needs to be able to return large arrays | to COM client apps. For example, I need to be able to | return an array to Excel that is 500 by 10, with each | element of the array holding a 32 byte st

Re: New beginner to python for advice

2006-05-23 Thread Florian Reiser
Hello Minlar, try: http://www.diveintopython.org/ It is written very cleary and helps you to get started very quickly. Mit freundlichen Grüssen Florian Reiser -- http://www.ra-bc.de RA Unternehmensberatung Führen durch präzise Daten "Minlar Ginger" <[EMAIL PROTECTED]> schrieb im Newsbeitrag

Re: module confict? gmpy and operator

2006-05-23 Thread [EMAIL PROTECTED]
Tim Peters wrote: > [EMAIL PROTECTED] > > Please try to give a complete program that illustrates the problem. > For example, this program shows no problem on my box (Windows Python > 2.4.3): Sorry about that. I thought the problem was more obvious. > I don't see a problem of any kind, and ther

Re: Class probkem - getting msg that self not defined

2006-05-23 Thread bruno at modulix
Andrew Robert wrote: > Hey Bruno, > > > Although I have not tested it, this appears to be it exactly. > > > Some confusion though. > > > > >>import struct >> >>class TriggerMessage(object): >>def __init__(self,data): >>""" >>Unpacks the passed binary data based on the >

Re: Don't wish to give up on a Tkinter GUI Builder :(

2006-05-23 Thread Fuzzyman
vbgunz wrote: > Hello world, > > I tried looking everywhere for a decent Tkinter GUI builder and the > closest I got to finding one before being horrified from looking at the > source was vtcl @ http://vtcl.sourceforge.net. The next closest thing > was page @ http://page.sourceforge.net/ > > Page

Re: manual http request

2006-05-23 Thread Simon Brunning
On 5/22/06, Steve Young <[EMAIL PROTECTED]> wrote: > Hi, I was wondering if there's a way to mimic a web pages' form and just > manually send the http request and get the html response without having to > go through a browser. For example, lets say i wanted to make a search on > google of the key w

Re: global name not defined

2006-05-23 Thread bruno at modulix
NetKev wrote: (snip) > def process_log(self, logfile, offset): > if new_denied_hosts: > info("new denied hosts: %s", str(new_denied_hosts)) > [warn_Admin(ip) for ip in new_denied_hosts] This uselessly builds a list. List comprehension is meant to create lists, n

Re: how to change sys.path?

2006-05-23 Thread bruno at modulix
Ju Hui wrote: > is python search module by paths in sys.path? sys.path is the list of path where the Python interpreter will search modules, yes. > how to change it manuallly? "manually" ?-) You mean "dynamically, by code" ? If yes, it's just a list. You can modify it like you'd do for any othe

Re: Name conflict in class hierarchy

2006-05-23 Thread Ralf Muschall
bruno at modulix wrote: >> In Python, a function not intended to be overriden should be either >> have a name starting with an underscore > actually with *two* underscores. The single-leading-underscore naming > scheme is the convention for 'protected' (read: 'implementation, not > API') attribut

Re: problem with reload(sys) (doing reload on the sys module)

2006-05-23 Thread gen_tricomi
hi nick, have you found any solutions to this problem. maybe sys module does not need to be reloaded. may Tim peters and the rest can help us on this -- http://mail.python.org/mailman/listinfo/python-list

Re: A python problem about int to long promotion just see the idle session

2006-05-23 Thread gen_tricomi
wow i think i was just been too paranoid. i thought it would affect some precision arithmetic in science. thanks for the reply -- http://mail.python.org/mailman/listinfo/python-list

Re: Name conflict in class hierarchy

2006-05-23 Thread Michele Simionato
Jeffrey Barish wrote: > I believe that the answer to my question is no, but I want to be sure that I > understand this issue correctly: Suppose that there are two classes > defined as follows: > > class A(object): > def f1(self): > print 'In A.f1, calling func' > self.func() >

Re: freeze tool like perl2exe?

2006-05-23 Thread Jarek Zgoda
Jerry napisal: > I am looking for a freeze tool for Python that is similar to perl2exe > in that I can "compile" a script on one platform that is built for > another. Basically, I would like to be able to build a Python script > for Solaris using my Windows workstation. Is there any tool that fi

Re: Name conflict in class hierarchy

2006-05-23 Thread bruno at modulix
Scott David Daniels wrote: > bruno at modulix wrote: > >> Ralf Muschall wrote: >> >>> Jeffrey Barish wrote: >>> >>> [overriding of base class member functions by subclass] >>> In Python, a function not intended to be overriden should be either >>> have a name starting with an underscore >> >>

Re: Tabs versus Spaces in Source Code

2006-05-23 Thread Xah Lee
the following are 2 FAQ following this thread. Thanks. Addendum: 2006-05-15 Q: What you mean by embeding tab position info into the source code? How's that gonna be done? A: Tech geekers may not realize, but such embedding of meta info do exist in many technologies by various means because of a

Re: Win32: Detecting when system is locked or sleeping

2006-05-23 Thread rodmc
Further to my last post, I will try some of the tips presented above. Also the app writes to the screen display (or Active Desktop). As someone suggested, that could be where the problem is. Best. rod -- http://mail.python.org/mailman/listinfo/python-list

RE: COM Server crashing when returning large arrays

2006-05-23 Thread Stefan Schukat
Hello Alistair, which version of pythoncom you are using? In the newer versions there is an support for a "native" safearray (the data type Excel is providing). In older versions the complete array was converted to a tuple which is very time and memory consuming. during this conversion you could

Re: Don't wish to give up on a Tkinter GUI Builder :(

2006-05-23 Thread vbgunz
Thank you very much for the link and info. It looks promising but I am still on the lookout for a drag-n-drop Gui builder like vltc so if anyone has more links to new projects I am definitely interested! PS. I do love the code generated from rapyd! -- http://mail.python.org/mailman/listinfo/pyth

Valid SQL?

2006-05-23 Thread Harlin Seritt
I have this string that I am sending via a Cursor.execute() using MySQLdb: insert into table Ping82_eb13__elearn__ihost__com (`dateTime`, `values`) values( "Fri May 12 11:39:02 2006", "1") Does anyone see anything wrong with this SQL syntax? Thanks, Harlin Seritt -- http://mail.python.org/mai

How to open https Site and pass request?

2006-05-23 Thread Nico Grubert
Hi there, I am trying to open an https site and pass a request to it in order to simulate the submit of an HTML form on a https site that sets an authentication cookie for a tomcat application, so the the URL I am trying to open points to a web form provided by the tomcat webserver. I tried (P

Re: Valid SQL?

2006-05-23 Thread Diez B. Roggisch
Harlin Seritt wrote: > I have this string that I am sending via a Cursor.execute() using > MySQLdb: > > insert into table Ping82_eb13__elearn__ihost__com (`dateTime`, > `values`) values( > "Fri May 12 11:39:02 2006", "1") > > Does anyone see anything wrong with this SQL syntax? How about a stac

Re: Valid SQL?

2006-05-23 Thread Tim Chase
> I have this string that I am sending via a Cursor.execute() using > MySQLdb: > > insert into table Ping82_eb13__elearn__ihost__com (`dateTime`, > `values`) values( > "Fri May 12 11:39:02 2006", "1") > > Does anyone see anything wrong with this SQL syntax? While this is the *python* list, rathe

Re: XML/HTML Encoding problem

2006-05-23 Thread Dale Strickland-Clark
Thanks, Duncan. That did the trick. If you're EuroPythoning, I'll buy you a drink. Cheers. Duncan Booth wrote: > First up, when I repeat what you did I don't get the same output. toxml() > without an encoding argument produces a unicode string, and no encoding > attribute in the > > toxml()

Accessing object parent properties

2006-05-23 Thread Cloudthunder
I have two classes. I later create instances. One class creates an instance of the other class within itself. My question, is how does the child access the parent's properties, since it doesn't know ahead of time that it's going to be "adopted"? Example: class Boo:    passclass Foo:    X = 1    __i

Re: Includeing Python in text files

2006-05-23 Thread Chris Smith
Diez B. Roggisch wrote: > Paolo Pantaleo wrote: > > >>I am working on this: >> >>I have a text file, containig certain section in the form >>> python code here >>py?> >> >>I parse the text file and substitute the python code with its result >>[redirecting sys.stdin to a StringIO]. It something

Seeking Contract Python Developer

2006-05-23 Thread ruv
Enomaly, a dynamic open source development firm located in Toronto, Ontario is looking for a TurboGears / Python Developer for a 2 month (offsite or on) contract-to-hire opportunity. Responsibilities include reporting on test progress, status, and coverage, as well as meeting test completion and de

Re: freeze tool like perl2exe?

2006-05-23 Thread utabintarbo
CX_Freeze? http://starship.python.net/crew/atuining/cx_Freeze/ -- http://mail.python.org/mailman/listinfo/python-list

Re: New beginner to python for advice

2006-05-23 Thread BartlebyScrivener
If you are new to programming: http://wiki.python.org/moin/BeginnersGuide/NonProgrammers If you already know at least one programming language: http://wiki.python.org/moin/BeginnersGuide/Programmers Your goal is to read, work the examples, and understand the Python Tutorial by Guido von Rossum:

Re: How to open https Site and pass request?

2006-05-23 Thread Nico Grubert
> >>> import urllib > >>> import urllib2 > >>> the_url = "https://myserver/application/login.do"; > >>> user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)' > >>> headers = { 'User-Agent' : user_agent } > >>> values = { 'username' : 'myuser', 'password' : 'mypasswd' } > >>> data = u

Re: Tabs versus Spaces in Source Code

2006-05-23 Thread Mumia W.
Xah Lee wrote: > the following are 2 FAQ following this thread. Thanks. > > Addendum: 2006-05-15 > > Q: What you mean by embeding tab position info into the source code? > How's that gonna be done? > > A: Tech geekers may not realize, but such embedding of meta info do > exist in many technologi

Re: Accessing object parent properties

2006-05-23 Thread Max Erickson
One way: class Boo: def __init__(self, parent): self.parent=parent class Foo: X=1 def __init__(self): self.test=boo(self) -- http://mail.python.org/mailman/listinfo/python-list

Re: Valid SQL?

2006-05-23 Thread Harlin Seritt
Thanks for the help. I set up the SQL statement to be like: INSERT INTO tblFoo (field1, field2) VALUES ('value1', 'value2') I get this error: insert into Web1_DLTDS10_RootSite (dateTime, values) values('Sat Apr 15 08:58:13 2006', '0') Traceback (most recent call last): File "librarian.py", lin

Re: problem with writing a simple module

2006-05-23 Thread nephish
ok, thanks everyone. The funny thing about the name conventions is, i was just two days ago looking around on the web for the best way to go about consistancy in variable names, class names, etc.. i have the module working now. thanks to you guys. And i think i understand the container name | obje

Re: Valid SQL?

2006-05-23 Thread Harlin Seritt
I am using the exact same query string generated and it works when i type it in the MySQL client but doesn't work when using the MySQLdb module. :( -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python for a CAD program

2006-05-23 Thread Redefined Horizons
This is a very interesting discussion. :]   I regularly use CAD and GIS programs at work, and have dabbled in traditional RDBMS design. I ran into a problem with an open source GIS program I work with, that reads all features in a shapefile into memory. This limits the use of the program, given the

Re: freeze tool like perl2exe?

2006-05-23 Thread John Bokma
Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Jerry napisal: > >> I am looking for a freeze tool for Python that is similar to perl2exe >> in that I can "compile" a script on one platform that is built for >> another. Basically, I would like to be able to build a Python script >> for Solaris using my

can't figure out error: module has no attribute...

2006-05-23 Thread Chris_147
but it seems to depend on from where I start the Python shell. so I've got a module selfservicelabels.py with some variables defined, like this: BtnSave = "link=label.save" DeliveryAutomaat= "//[EMAIL PROTECTED]'deliveryMethod' and @value='AU']" This module is in the Lib directory.

Use of lambda functions in OOP, any alternative?

2006-05-23 Thread Pablo
Hello all, sorry if this is a faq... Problem: The intended effect is to override the method 'getattr' in a way that i dont need to override the property explicitly too. class Base(object): def __init__(self, attr): self._attr = attr def getattr(self): return self._attr

Re: Software Needs Philosophers

2006-05-23 Thread John D Salt
<[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: [Snips] > Wrong. We live in a paradise of ideas and possibilities well beyond the > wildest dreams of only 20 years ago. What exciting new ideas exist in software that are both important and cannot be traced back to 1986 or earlier? I'd like

Re: Use of lambda functions in OOP, any alternative?

2006-05-23 Thread Pablo
Pablo ha escrito: > Hello all, sorry if this is a faq... > > Problem: The intended effect is to override the method 'getattr' in a > way that i dont need to override the property explicitly too. > > class Base(object): > def __init__(self, attr): > self._attr = attr > def getattr(s

Method Delegation To Subinstances

2006-05-23 Thread Cloudthunder
In the example:class Boo:    def __init__(self, parent):    self.parent = parent    print self.parent.testme    def run():    print "Yaho!"class Foo:    testme = "I love you!"     def __init__(self):    test = Boo(self)A = Foo()How can I set up method delegation so that I can do

Re: Software Needs Philosophers

2006-05-23 Thread Eli Gottlieb
John D Salt wrote: > <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > [Snips] > >>Wrong. We live in a paradise of ideas and possibilities well beyond the >>wildest dreams of only 20 years ago. > > > What exciting new ideas exist in software that are both important and > cannot be trace

GUI viewer for profiler output?

2006-05-23 Thread Kent Johnson
Can anyone point me to a GUI program that allows viewing and browsing the output of the profiler? I know I have used one in the past but I can't seem to find it... Thanks, Kent -- http://mail.python.org/mailman/listinfo/python-list

Re: Includeing Python in text files

2006-05-23 Thread Paolo Pantaleo
2006/5/23, Chris Smith <[EMAIL PROTECTED]>: > Diez B. Roggisch wrote: > > Paolo Pantaleo wrote: > > > > > >>I am working on this: > >> > >>I have a text file, containig certain section in the form > >> >> python code here > >>py?> > >> > >>I parse the text file and substitute the python code with

Canvas items into widgets?

2006-05-23 Thread Bob Greschke
I have a "tooltip" class that is used like Lab = Label(Sub, text = "Temp:") Lab.pack() Tooltip(Lab, "The temperature of the reactor core") When the mouse pointer is placed over the "Temp:" label the associated message pops up in a small window near the pointer. I want to use the same t

Re: Tabs versus Spaces in Source Code

2006-05-23 Thread Oliver Wong
"Jonathon McKitrick" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Pascal Bourguignon wrote: >> (defun ιοτα (&key (номер 10) (단계 1) (בכוכ 0)) >> (loop :for i :from בכוכ :to номер :by 단계 :collect i)) > > How do you even *enter* these characters? My browser seems to trap all > th

Re: New beginner to python for advice

2006-05-23 Thread John Salerno
Minlar Ginger wrote: > HIi all: > I am a new beginner to python, would you like give me some advice on > studying it? > Welcome to list some book on python for me. > Thanks a lot. > I'd say read "Learning Python" (2nd ed.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python - Web Display Technology

2006-05-23 Thread bruno at modulix
Ben Finney wrote: > "SamFeltus" <[EMAIL PROTECTED]> writes: > > >>I keep trying to understand why people like HTML/JS, I don't think I >>am gonna understand. > > > It's fairly simple: HTML, CSS and JavaScript have all been > standardised independent of any single corporation, and are freely > i

dict literals vs dict(**kwds)

2006-05-23 Thread George Sakkis
Although I consider dict(**kwds) as one of the few unfortunate design choices in python since it prevents the future addition of useful keyword arguments (e.g a default value or an orderby function), I've been finding myself lately using it sometimes instead of dict literals, for no particular reas

Re: Valid SQL?

2006-05-23 Thread John Salerno
Harlin Seritt wrote: > I am using the exact same query string generated and it works when i > type it in the MySQL client but doesn't work when using the MySQLdb > module. I've been messing around with mysqldb lately, and one reason I get your error message is if I'm not closing parentheses prop

question about shadowing built-in names

2006-05-23 Thread John Salerno
I understand that if you reassign a built-in name to your own variable, such as: str = 'hello' then you lose the use of the built-in (in this case str()), but is this also the case in terms of imported names? For example: import MySQLdb db = connect(blah blooh blee) cursor = db.cursor() Now,

Re: how to change sys.path?

2006-05-23 Thread Ju Hui
yes, I mean I want change the sys.path value and save it for next using. I can change the value of sys.path, but I can't "save" it permanently. There is no python_path environment on my pc, what the relationship between it and the sys.path? -- http://mail.python.org/mailman/listinfo/python-list

Re: how to change sys.path?

2006-05-23 Thread John Salerno
Ju Hui wrote: > yes, I mean I want change the sys.path value and save it for next > using. > I can change the value of sys.path, but I can't "save" it permanently. > There is no python_path environment on my pc, what the relationship > between it and the sys.path? > In Windows, at least, you can

Re: can't figure out error: module has no attribute...

2006-05-23 Thread Kent Johnson
Chris_147 wrote: > but it seems to depend on from where I start the Python shell. > > so I've got a module selfservicelabels.py with some variables defined, > like this: > BtnSave = "link=label.save" > DeliveryAutomaat= "//[EMAIL PROTECTED]'deliveryMethod' and @value='AU']" > This

Re: freeze tool like perl2exe?

2006-05-23 Thread Jerry
I did look at cx_Freeze at one point in time, but the documentation on their site is pretty sparse and doesn't actually mention being able to build for a different platform. I'll take another look. Thanks. -- Jerry -- http://mail.python.org/mailman/listinfo/python-list

Re: How to open https Site and pass request?

2006-05-23 Thread Jerry
That depends on your OS. In Windows, I believe you would have to recompile Python from source. On Linux, you could probably just get a package. From Debian, I know that it's python-ssl. I'm sure most the others would have one as well. -- Jerry -- http://mail.python.org/mailman/listinfo/pytho

Re: Python - Web Display Technology

2006-05-23 Thread SamFeltus
I would. Most people would, once they realize that shiny/flashy is information too. High "production values" affect value-determining centers of the brain, bypassing the linguistic and logical centers. They make you understand that the thing you're being presented is "worth something". Mo

Re: Use of lambda functions in OOP, any alternative?

2006-05-23 Thread Maric Michaud
Le Mardi 23 Mai 2006 15:55, Pablo a écrit : > Question: Isn't there an *alternative* way to do it without the lambda > function? No, it's good, why shouldn't you use a lambda function ? Note you can do something like this : class _virtualgetter : def __init__(self, name) : self._n =name

Re: Software Needs Philosophers

2006-05-23 Thread John Thingstad
On Tue, 23 May 2006 15:58:12 +0200, John D Salt wrote: > <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > [Snips] >> Wrong. We live in a paradise of ideas and possibilities well beyond the >> wildest dreams of only 20 years ago. > > What exciting new ideas exist in software that are bot

Re: problem with writing a simple module

2006-05-23 Thread nephish
ok, what i posted above had the getOne method, the whole class has a function for getMany, update, and Insert. none of this will be used by an end user, it kinda runs in the background. But, if you have a good link to the docs on the API, i would like to see it. Still kinda new at this. thanks -

Virtual Collaboratory Announcement

2006-05-23 Thread Cameron Brown
This post if for informational purposes only. The Virtual Collaboratory is a GNU GPL open source project written almost entirely in python, using Py-MyCMS, Zope, Plone and Mailman as components. You may go to http://sourceforge.net/projects/vic to download the latest distribution and you may go

Re: New beginner to python for advice

2006-05-23 Thread Dirk Beste
Minlar Ginger wrote: > HIi all: > I am a new beginner to python, would you like give me some advice on > studying it? > Welcome to list some book on python for me. > Thanks a lot. > If you like a practical approach you can try Langtangen's Python Scripting for Computational Science. -- http://m

Re: question about shadowing built-in names

2006-05-23 Thread John Salerno
Dennis Lee Bieber wrote: >> import MySQLdb >> >> db = connect(blah blooh blee) > > Actually, the above has already failed Should be > MySQLdb.connect... Heh heh, yeah, I totally meant to do that on purpose. ;) > Well, if you have a habit of doing > from module import

"Thinking like CS" problem I can't solve

2006-05-23 Thread Alex Pavluck
Hello. On page 124 of "Thinking like a Computer Scientist". There is an exercise to take the following code and with the use of TRY: / EXCEPT: handle the error. Can somone help me out? Here is the code: def inputNumber(n): if n == 17: raise 'BadNumberError: ', '17 is off limits.'

Re: Software Needs Philosophers

2006-05-23 Thread John A. Bailo
John D Salt wrote: > <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > [Snips] > >>Wrong. We live in a paradise of ideas and possibilities well beyond the >>wildest dreams of only 20 years ago. > > > What exciting new ideas exist in software that are both important and > cannot be trace

Re: Software Needs Philosophers

2006-05-23 Thread SamFeltus
Good question on new ideas vs old ideas. Seems to me the computer industry needs some young brains, raised around the internet, to generate some major new theoretical ideas for computers. Seems to me it must already be occuring below the radar. When it happens, it shouldn't be too hard to spot.

Re: Python - Web Display Technology

2006-05-23 Thread Paul Rubin
"SamFeltus" <[EMAIL PROTECTED]> writes: > > But your brain doesn't care. It's got a shortcut to your wallet, and > > the information on the screen is accessing that. > This was the most useful comment for me. I never fully considered that > Flash was aiming at a different part of the brain. HT

Re: Using python for a CAD program

2006-05-23 Thread Paddy
baalbek wrote: > David Cuthbert wrote: > > > This does not mean the design itself should be stored as an RDBMS. As > > I've stated previously, CAD data (both electrical and, it appears, > > mechanical) does not lend itself to RDBMS relationship modeling. > > I simply do not agree with this. > > A

What's with the @ sign

2006-05-23 Thread [EMAIL PROTECTED]
What's with code that has the @ symbol in front of classes or functions? This has probably already been asked but I can't find any info on it. Here is a slice of code I found that uses this, can someone please explain what the @'s for?? :: def option_error_decorator(func): def wrapper(*a, **

Re: Use of lambda functions in OOP, any alternative?

2006-05-23 Thread Pablo
The reason i would like a different approach to the lambda function is just a question of personal taste... i dont really like it. thanx! -- http://mail.python.org/mailman/listinfo/python-list

graphs and charts

2006-05-23 Thread Yaron Butterfield
Hi, What's the best way to on-the-fly graphs and charts using Python? Or is Python not really the best way to do this? Thanks you! Yaron -- http://mail.python.org/mailman/listinfo/python-list

Re: "Thinking like CS" problem I can't solve

2006-05-23 Thread Mel Wilson
Alex Pavluck wrote: > Hello. On page 124 of "Thinking like a Computer Scientist". There is > an exercise to take the following code and with the use of TRY: / > EXCEPT: handle the error. Can somone help me out? Here is the code: > [ ... ] What error? Python 2.4.2 (#1, Jan 23 2006, 21:24:54) [

Re: graphs and charts

2006-05-23 Thread Grant Edwards
On 2006-05-23, Yaron Butterfield <[EMAIL PROTECTED]> wrote: > What's the best way to on-the-fly graphs and charts using Python? Or is > Python not really the best way to do this? I like Gnuplot-py, but I've been a Gnuplot for 15+ years, so I'm biased. http://gnuplot-py.sourceforge.net/ -- Gr

Re: What's with the @ sign

2006-05-23 Thread Paddy
Oh please, please, can I answer! They are decorators. Check-out http://zephyrfalcon.org/weblog2/arch_e10_00610.html#e610 (decorate this), or http://paddy3118.blogspot.com/ " Python function attributes" and then " Function Attributes assigned by decorator". Of course there is also: http://wiki.pyt

Re: What's with the @ sign

2006-05-23 Thread Paddy
Oh please, please, can I answer! They are decorators. Check-out http://zephyrfalcon.org/weblog2/arch_e10_00610.html#e610 (decorate this), or http://paddy3118.blogspot.com/ " Python function attributes" and then " Function Attributes assigned by decorator". Of course there is also: http://wiki.pyt

Guide to using python for bash-style scripting

2006-05-23 Thread 4zumanga
I have a bunch of really horrible hacked-up bash scripts which I would really like to convert to python, so I can extend and neaten them. However, I'm having some trouble mapping some constructs easily, and was wondering if anyone know of a guide to mapping simple uses of command line programs to p

Re: What's with the @ sign

2006-05-23 Thread soundinmotiondj
[EMAIL PROTECTED] wrote: > What's with code that has the @ symbol in front of classes or > functions? This has probably already been asked but I can't find any > info on it. http://www.python.org/doc/2.4.2/whatsnew/node6.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Guide to using python for bash-style scripting

2006-05-23 Thread 4zumanga
Yes, there is a stupid mistake in that script, last line should be: diff new_out1 new_out2 However, this is hopefully not important, what is important is the general kind of (very simple) things I'm trying to do. -- http://mail.python.org/mailman/listinfo/python-list

documentation for win32com?

2006-05-23 Thread John Salerno
Is there anything better to read on how to use this module for working with Office programs? This is not very heartening to read in the official docs: --- How do I know which objects are available? Good question. This is hard! You need to use the documentation with the pro

how to work with tab-delimited files?

2006-05-23 Thread John Salerno
When you're using tabs to separate values in a text file, what do you do in the case where pressing the tab key doesn't really advance the cursor a full tab space (but instead just one or two spaces) because that's where the next tab stop is? Example: Joe Smith JohnSalerno So the second e

Re: PHP's openssl_sign() using M2Crypto?

2006-05-23 Thread heikki
That is really strange, because PKey has had sign_init method since 2004. That code works for me (just tested). What version of M2Crypto are you using? I'd advice you upgrade to 0.15 if possible. See http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto -- Heikki Toivonen -- http://mai

Re: how to work with tab-delimited files?

2006-05-23 Thread Paddy
Hmm, check your editor to see if it has an option to display non-printable characters, or see if you can search for tabs in its find utility. If you find that your editor has the ability to insert spaces instead of tabs then turn it off. Thats all that comes to mind... - Pad. -- http://mail.p

Re: Don't wish to give up on a Tkinter GUI Builder :(

2006-05-23 Thread Bob Greschke
"vbgunz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thank you very much for the link and info. It looks promising but I am > still on the lookout for a drag-n-drop Gui builder like vltc so if > anyone has more links to new projects I am definitely interested! > > PS. I do love th

Re: "Thinking like CS" problem I can't solve

2006-05-23 Thread gry
Alex Pavluck wrote: > Hello. On page 124 of "Thinking like a Computer Scientist". There is > an exercise to take the following code and with the use of TRY: / > EXCEPT: handle the error. Can somone help me out? Here is the code: > > def inputNumber(n): > if n == 17: > raise 'BadNumb

Re: "Thinking like CS" problem I can't solve

2006-05-23 Thread gry
Alex Pavluck wrote: > Hello. On page 124 of "Thinking like a Computer Scientist". There is > an exercise to take the following code and with the use of TRY: / > EXCEPT: handle the error. Can somone help me out? Here is the code: > > def inputNumber(n): > if n == 17: > raise 'BadNumb

Re: Method Delegation To Subinstances

2006-05-23 Thread Cloudthunder
In the example:class Boo:    def __init__(self, parent):    self.parent = parent    print self.parent.testme    def run():    print "Yaho!" class Foo:    testme = "I love you!"     def __init__(self):    test = Boo(self)A = Foo()How can I set up method delegation so that I can d

Re: how to work with tab-delimited files?

2006-05-23 Thread Tim Chase
> So in this situation, when the file is being read, is that > single space still determined to be a tab, or do you have to > press tab twice to put a full tab between the names? If there is a literal tab in the file, it will come in (to your code) as a real tab. Your editor may have settings yo

Re: Accessing object parent properties

2006-05-23 Thread Cloudthunder
In the example:class Boo:    def __init__(self, parent):    self.parent = parent    print self.parent.testme    def run():    print "Yaho!" class Foo:    testme = "I love you!"     def __init__(self):    test = Boo(self)A = Foo()How can I set up method delegation so that I can d

real time info to web browser from apache side ?

2006-05-23 Thread Joseph
I know about writing CGI application using Perl and Apache to refresh a static webpage that displays on the browser. But now i have an application requirement that I hope someone can help me. The server side sits in another room down the factory plant, its monitoring some hardware environment, na

Re: Guide to using python for bash-style scripting

2006-05-23 Thread Bill Pursell
4zumanga wrote: > Yes, there is a stupid mistake in that script, last line should be: > > diff new_out1 new_out2 > > However, this is hopefully not important, what is important is the > general kind of (very simple) things I'm trying to do. I have been hoping for a good solution to this. An easy

Re: real time info to web browser from apache side ?

2006-05-23 Thread Paul Rubin
"Joseph" <[EMAIL PROTECTED]> writes: > What are the current technology that allows for this. I know its > possible because I can use my browser sometimes to chat with people > online, and I swear that I don't have to do a Control-R everytime to > see that the other person's typing is updating cons

Re: Software Needs Philosophers

2006-05-23 Thread Pascal Bourguignon
John D Salt writes: > <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > [Snips] >> Wrong. We live in a paradise of ideas and possibilities well beyond the >> wildest dreams of only 20 years ago. > > What exciting new ideas exist in software that are both important and > cannot be traced b

Re: Python - Web Display Technology

2006-05-23 Thread Blair P. Houghton
[EMAIL PROTECTED] wrote: > SamFeltus wrote: > > Here is a visual argument, > > http://samfeltus.com/swf/contact_globes.swf > > Here's a text-based argument. > > If I search Golge for "gardener, Athens, GA" then Google's spiders > won't have recorded your contact page. So I don't find you as a loca

Re: Software Needs Philosophers

2006-05-23 Thread Paul Rubin
John D Salt writes: > What exciting new ideas exist in software that are both important and > cannot be traced back to 1986 or earlier? Automated spamming tools? ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't wish to give up on a Tkinter GUI Builder :(

2006-05-23 Thread Cam
> > What are you building? I routinely do things like these by hand > > www.greschke.com/unlinked/images/changeo.jpg > www.greschke.com/unlinked/images/pocus.jpg > www.greschke.com/unlinked/images/pis.jpg > www.greschke.com/unlinked/images/petm.jpg > > and I can't imagine using a builder for anyth

Re: A critic of Guido's blog on Python's lambda

2006-05-23 Thread Kay Schluehr
Ken Tilton wrote: > Is there any experiemntal macro package out there for Python? Maybe a > preprocessor, at least? Or are there ways to actually hack Python to > extend the syntax? Yes. I've just released EasyExtend that does this kind of job: http://www.fiber-space.de/EasyExtend/doc/EE.html I

  1   2   >