Fredericksburg, VA ZPUG June 8

2005-06-01 Thread Gary Poster
Fredericksburg, VA ZPUG June 8 Please join us June 8, 7:30-9:00 PM, for the inaugural meeting of the Fredericksburg, VA Zope and Python User Group (ZPUG). Tres Seaver, architect of the Zope Content Management Framework, will present. Further meetings are planned for the second Wednesday of

Re: something like CPAN, PPMs?

2005-06-01 Thread Maurice LING
Hi Alex, I am actually working on something like that as an academic project. At this stage, at least for the purpose of my scope, it will not be as extensive as CPAN but a set of mechanisms for the same effect for Python. maurice Alex Gittens wrote: I'm new to Python from Perl, and loving

Re: pickle alternative

2005-06-01 Thread simonwittber
I can't reproduce your large times for marshal.dumps. Could you post your test code? Certainly: import sencode import marshal import time value = [r for r in xrange(100)] + [{1:2,3:4,5:6},{simon:wittber}] t = time.clock() x = marshal.dumps(value) print marshal enc T:, time.clock() - t

Re: What's wrong with Zope 3 ?

2005-06-01 Thread Wolfram Kraus
Kay Schluehr wrote: The last downloadable release is from november 2004. The Windows installer is configured for Python 2.3(!). The Zope.org main page announces Zope 2.8 beta 2. Is it stillborn? Kay What you see is not Zope 3, it is Zope X 3. To quote from the X3 information page: Zope

Newbee question : List of packages

2005-06-01 Thread Sébastien V.
Hello, I'm quite new in Python and I discover every day very interesting new packages in this newsgroup : Is there somewhere on the web a list (as complete as possible) in which main features of external packages are listed ? Sebastien -- http://mail.python.org/mailman/listinfo/python-list

Re: running tkinter

2005-06-01 Thread Martin Franklin
Jim Anderson wrote: I have just installed Fedora Core 3 on my pc. Python runs fine, but when I try to run tkinter the tkinter library is not found. I tried installing python 2.4.1 and could not get tkinter to run there either. When I look through the build directories for 2.4.1, I find a

Re: pickle alternative

2005-06-01 Thread Andrew Dalke
simonwittber posted his test code. I tooks the code from the cookbook, called it sencode and added these two lines dumps = encode loads = decode I then ran your test code (unchanged except that my newsreader folded the value = ... line) and got marshal enc T: 0.21 marshal dec T: 0.4 sencode

Re: something like CPAN, PPMs?

2005-06-01 Thread deelan
Maurice LING wrote: Hi Alex, I am actually working on something like that as an academic project. At this stage, at least for the purpose of my scope, it will not be as extensive as CPAN but a set of mechanisms for the same effect for Python. don't foget to keep an eye on python's eggs:

Re: Software licenses and releasing Python programs for review

2005-06-01 Thread Robert Kern
poisondart wrote: [John J. Lee:] Secondly, do you think it's a bad thing for anybody to sell software that makes use of the *concepts* in your code (provided that the use of those concepts is not restricted by financial or other legal means)? If so, why? John To be honest. I'm not sure. The

Re: how to convert string to list or tuple

2005-06-01 Thread Duncan Booth
Steven Bethard wrote: Interestingly, I don't seem to be able to create a file object as a class attribute in restricted mode: py class C(object): ... def __init__(self): ... self.f = file('temp.txt', 'w') ... py eval('''[ cls for cls in

Re: pickle alternative

2005-06-01 Thread simonwittber
Andrew Dalke wrote: This is with Python 2.3; the stock one provided by Apple for my Mac. Ahh that is the difference. I'm running Python 2.4. I've checked my benchmarks on a friends machine, also in Python 2.4, and received the same results as my machine. I expected the numbers to be like

Re: avl tree

2005-06-01 Thread Zunbeltz Izaola
On Tue, 31 May 2005 22:40:19 +0200, Berthold Höllmann wrote: You can grab it from http://starship.python.net/~bhoel/avl-2.1.0.tar.gz Thanks i will play with it. But i have realize that what i need was exactly a binary tree. I haven't used tree yet and i don't know if i can use the avl

Re: scripting browsers from Python

2005-06-01 Thread Michele Simionato
This looks interesting, but I need an example here. What would be the command to open Konqueror to a given page and to post a form with given parameters? kde.org has tons a material, but I am getting lost and I don't find anything relevant to my simple problem. Michele

Re: Newbee question : List of packages

2005-06-01 Thread Simon Brunning
On 6/1/05, Sébastien V. [EMAIL PROTECTED] wrote: I'm quite new in Python and I discover every day very interesting new packages in this newsgroup : Is there somewhere on the web a list (as complete as possible) in which main features of external packages are listed Try

Re: scripting browsers from Python

2005-06-01 Thread has
Simon Brunning wrote: On 31 May 2005 00:52:33 -0700, Michele Simionato [EMAIL PROTECTED] wrote: I would like to know what is available for scripting browsers from Python. I don't know of anything cross platform, or even cross browser, but on Windows, IE can be automated via COM On OS X

Help with Queues and Threading

2005-06-01 Thread Ognjen Bezanov
Hi, all Thanks all of you who helped me with the threading and queues issue. I am trying to get it working but I am having problems. When I try to run the following: cmddata = mediaplay.initcommandqueue() #initiates the Queue to send commands down mediathread = threading.Thread(

Re: Help with Queues and Threading

2005-06-01 Thread Paul Rubin
Ognjen Bezanov [EMAIL PROTECTED] writes: But if I run the loop directly (i.e. not using threads, just calling the function) it works just fine. What could the problem be? You have to say args=(cmddata,) with the comma inside the parens, to make a seqence instead of a parenthesized expression.

Re: DLL load failed: The specified procedure could not be found

2005-06-01 Thread Bill Davy
John Machin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] a) What specified procedure b) SHIP was made by SWIG and so presumably was _SHIP ... therefore it appears that you might be better off asking for help on the SWIG mailing list. I will too. c) Is there some way to

Re: decimal numarray

2005-06-01 Thread chris
km [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, is there any support for decimal type in numarray module ? regards, KM Still a noob but perhaps you can use gmpy, a wrapper for GMP arbitrary precision library. I found it here http://gmpy.sourceforge.net/ I just tried

Re: Seti-like program

2005-06-01 Thread Magnus Lycka
GMane Python wrote: I'd like to consider making a program which is 'seti-like' where I could run a command-line Python script to just 'do something', and then be able to launch a viewer program (maybe linux x11 or Windows, possibly over a network socket) using wxPython to be able to inter-act

Re: working with pointers

2005-06-01 Thread [EMAIL PROTECTED]
this might help.. http://effbot.org/zone/python-objects.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption with Python?

2005-06-01 Thread Anthra Norell
Thank you all, James, Dennis, Christos, Paul, Isn't it remarkable that it takes foolishness to earn a little respect. Anyway, even as I write this, my account balance stands unchanged at ... no, come to think of it, the account balance is definitely not a part of the problem. I will

Re: working with pointers

2005-06-01 Thread Duncan Booth
Shane Hathaway wrote: Michael wrote: sorry, I'm used to working in c++ :-p if i do a=2 b=a b=0 then a is still 2!? so when do = mean a reference to the same object and when does it mean make a copy of the object?? To understand this in C++ terms, you have to treat everything,

Re: What are OOP's Jargons and Complexities?

2005-06-01 Thread Anno Siegel
Tassilo v. Parseval [EMAIL PROTECTED] wrote in comp.lang.perl.misc: Also sprach Dale King: David Formosa (aka ? the Platypus) wrote: On Tue, 24 May 2005 09:16:02 +0200, Tassilo v. Parseval [EMAIL PROTECTED] wrote: [...] I haven't yet come across a language that is both statically

Dr. Dobb's Python-URL! - weekly Python news and links (May 31)

2005-06-01 Thread Simon Brunning
QOTW: Not tested but confident should be an oxymoron for a programmer. - Peter Otten (Asked Is this unsurprising if I look at it right?) - Yes; in general this is true across many domains for a very large number of referents of it :-) - John Machin Strong typing means there [are] a lot of

Re: Python as client-side browser script language

2005-06-01 Thread Magnus Lycka
Rune Strand wrote: What would it take to create a Firefox extension that enables Python as a script language in the browser - just like Javascript? Is it at all possible? Are the hundred good reasons not to bother? There are certainly security issues. A simple implementation that started a

Function Serialization

2005-06-01 Thread Mike Tammerman
I want to serialize a function using its pointer. For example s = ... def square(number): ... return number**2 ... functions = {} exec s in functions f = functions['square'] f function square at 0xb7b5d10c Then, 1. Serialize f, 2. Store it into a file a db. One day later, 3. Retrieve

Re: Newbie Here

2005-06-01 Thread Kent Johnson
Mark Sargent wrote: Hi All, I'm taking the plunge into Python. I'm currently following this tutorial, http://docs.python.org/tut/ I am not a programmer in general, although I've learnt a bit of bash scripting and some php/asp. I want to get into python to use it for Linux/Unix related

Another source of time for the logging package?

2005-06-01 Thread Skip Montanaro
I have code I run in both live and historical modes. When running in historical mode the input stream is a set of stored event sequences that have their own timestamps. When picking through the logfiles for a particular run, I'd much prefer it if the timestamps in the logfile generated with the

AM_PATH_PYTHON - version problem

2005-06-01 Thread Uwe Mayer
Hi, I use the GNU autotools for packaging my python applications. My problem is that as I have both python2.3 and python2.4 installed the automake macros always detects the newest version and sets it path variables accordingly. How can I package the program for different versions of Python?

Re: What are OOP's Jargons and Complexities?

2005-06-01 Thread David Formosa (aka ? the Platypus)
On Wed, 1 Jun 2005 06:09:43 +0200, Tassilo v. Parseval [EMAIL PROTECTED] wrote: [...] I am only familiar with its successor Modula-3 which, as far as I understand, is Modula-2 with uppercased keywords and some OO-notion bolted onto it (I still recall 'BRANDED' references). Modula-2 also

Re: Function Serialization

2005-06-01 Thread Michele Simionato
The simple way is to use shelve: $ ipython Python 2.4.1c2 (#2, Mar 19 2005, 01:04:19) Type copyright, credits or license for more information. IPython 0.6.5 -- An enhanced Interactive Python. ? - Introduction to IPython's features. %magic - Information about IPython's 'magic' % functions.

Re: Stupid Newbie Question Concerning CGI and Reading Forward Slashes

2005-06-01 Thread Steve Holden
Joey C. wrote: Steve Holden wrote: It's not a common question, but it's relatively easily answered. You are splitting everything but the filename off with os.path.split and then complaining about the result! Once you stop doing that your problem is solved. Thus, it's a stupid newbie

Re: cgi help

2005-06-01 Thread Bruno Desthuilliers
nephish a écrit : Hey there, i am trying to write an online application using the cgi module. what i want to do is have an html form display a drop-down list and have the values of that list be the lines of text written in a file. Simplest, QD solution : 1/ open the file for reading 2/ print

NSLU2 and python - a love story ?

2005-06-01 Thread Thomas W
Has anybody done any work using Python on the Linksys NSLU2[1][2]? I'm especially interested in stuff related to compiling additional modules, like PIL. There are allready a bunch of stuff available in the current replacement-firmware, but PIL seems to be missing. If you haven't heard about the

ConfigParser, mapping one key to multiple values

2005-06-01 Thread Thomas Guettler
Hi, I need a config like this: [sync files] ignore=.*/foodir/.*\.pyc ignore=.*/foodir/.*~ ... The ConfigParser of the standard library can't handle this, because one key maps to multiple values. Is there a simple and lightweight config parser which can handle this? Thomas PS: Needs to be

Re: Another source of time for the logging package?

2005-06-01 Thread Ames Andreas
Skip Montanaro wrote: Before I get out my scalpel, has anyone found a non-invasive way to do this (or already done the surgery and would be willing to share it)? While I'm not sure you would call the following 'non-invasive' I've used it in a similar situation: class

xml processing

2005-06-01 Thread Jeff Elkins
I've like to use python to maintain a small addressbook which lives on a Sharp Zaurus. This list will never grow beyond 200 or so entries. I've installed pyxml. Speaking generally, given a wxpython app to do data entry, I'm planning to: 1. parse the addressbook file, loading its data into an

python 2.4: tarfile tell() and seek() seem to be broeken

2005-06-01 Thread N. Volbers
Hello everyone, I noticed that when you open a zipped tarball using 'tarfile' and if you then get the pseudo-file descriptor fd for a file via 'extractfile', then fd.tell() is broken in the following way: - before reading anything from fd, fd.tell() will return 0 (that's still ok) - after

Elementtree and CDATA handling

2005-06-01 Thread alainpoint
I am experimenting with ElementTree and i came accross some (apparently) weird behaviour. I would expect a piece of XML to be read, parsed and written back without corruption (except for the comments and PI which have purposely been left out). It isn't however the case when it comes to CDATA

Monitoring a USB-drive / Card-reader using python?

2005-06-01 Thread Thomas W
I want to monitor a given USB-device, like a Memory Card-reader, and when a memory card is inserted I want to move the data on the card to a different location on the filesystem ( or do something else with the files). Does anybody know how to do this ( on Linux and/or windows ) or if it's even

Re: Elementtree and CDATA handling

2005-06-01 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: There are two problems: the //![CDATA[ has disappeared and the , and have been replaced by their equivalent entities (CDATA should have prevented that). I am no XML/HMTL expert, so i might be doing something wrong... you're confusing the external representation of

RE: Monitoring a USB-drive / Card-reader using python?

2005-06-01 Thread Tim Golden
[Thomas W] | I want to monitor a given USB-device, like a Memory Card-reader, and | when a memory card is inserted I want to move the data on the | card to a | different location on the filesystem ( or do something else with the | files). | | Does anybody know how to do this ( on Linux and/or

Re: Generalized Linear Least Squares Problems

2005-06-01 Thread Colin J. Williams
Tim Leslie wrote: On 31 May 2005 03:12:49 -0700, venkat [EMAIL PROTECTED] wrote: Hi, I want to solve linear least sqaure problem( min||c-Ax||2 subject to Bx=d ). How do I do it in python. lapack has a routine for doing this (DGGLSE). Can I access this from python? Check out scipy, in

Re: working with pointers

2005-06-01 Thread Leif K-Brooks
Duncan Booth wrote: The constant integers are created in advance, not when you do the assignment. But that's just an optimization, not Python's defined behavior. It seems more useful to me to think of all integers as being created at assignment time, even if CPython doesn't actually do that.

Re: how to convert string to list or tuple

2005-06-01 Thread Fuzzyman
flyaflya wrote: a = (1,2,3) I want convert a to tuple:(1,2,3),but tuple(a) return ('(', '1', ',', '2', ',', '3', ')') not (1,2,3) Probably a bit late... but there's always listquote - It's part of the pythonutils module. http://www.voidspace.org.uk/python/pythonutils.html It will turn

Re: Another source of time for the logging package?

2005-06-01 Thread Skip Montanaro
Before I get out my scalpel, has anyone found a non-invasive way to do this (or already done the surgery and would be willing to share it)? Ames While I'm not sure you would call the following 'non-invasive' Ames I've used it in a similar situation: Ames class

Unhappy with numarray docs

2005-06-01 Thread Matt Feinstein
I spent all day yesterday trying to figure out how to do file IO in the numarray module-- I -did- (I think) figure it all out, eventually, but it's left me in a rather sour mood. 1. The basic functions and methods: fromfile, fromstring, tofile, and tostring, are buried, in non-alphabetical order,

Re: AM_PATH_PYTHON - version problem

2005-06-01 Thread Colin J. Williams
Uwe Mayer wrote: Hi, I use the GNU autotools for packaging my python applications. My problem is that as I have both python2.3 and python2.4 installed the automake macros always detects the newest version and sets it path variables accordingly. How can I package the program for different

Fredericksburg, VA ZPUG June 8

2005-06-01 Thread Gary Poster
Please join us June 8, 7:30-9:00 PM, for the inaugural meeting of the Fredericksburg, VA Zope and Python User Group (ZPUG). Tres Seaver, architect of the Zope Content Management Framework, will present. Further meetings are planned for the second Wednesday of every month. Location will be

Re: xml processing

2005-06-01 Thread Magnus Lycka
Jeff Elkins wrote: I've like to use python to maintain a small addressbook which lives on a Sharp Zaurus. This list will never grow beyond 200 or so entries. I've installed pyxml. Speaking generally, given a wxpython app to do data entry, I'm planning to: 1. parse the addressbook

Re: working with pointers

2005-06-01 Thread Duncan Booth
Leif K-Brooks wrote: Duncan Booth wrote: The constant integers are created in advance, not when you do the assignment. But that's just an optimization, not Python's defined behavior. It seems more useful to me to think of all integers as being created at assignment time, even if CPython

Re: What are OOP's Jargons and Complexities?

2005-06-01 Thread Matthias Buelow
Anno Siegel wrote: I've been through Pascal, Modula2 and Oberon, and I agree. In the short run they succeeded. For a number of years, languages of that family were widely used, primarily in educational programming but also in implementing large real-life systems. With a few relaxations and

Re: scripting browsers from Python

2005-06-01 Thread Jeff Epler
I wanted to have a Python program make my browser do a POST. I am using Firefox on Linux. Here's what I did: * Prepare a HTML page on the local disk that looks like this: htmlbody onload=document.forms[0].submit() div style=display: none form method=post accept-charset=utf-8

Re: xml processing

2005-06-01 Thread Jeff Elkins
On Wednesday 01 June 2005 09:51 am, Magnus Lycka wrote: Jeff Elkins wrote: I've like to use python to maintain a small addressbook which lives on a Sharp Zaurus. This list will never grow beyond 200 or so entries. I've installed pyxml. Speaking generally, given a wxpython app to do data

PySol not working on WinXP, SP2

2005-06-01 Thread Ivan Van Laningham
Hi All-- I've been using PySol-4.40 for years, because that was the last Windows installer version I could find. My wife's been using it for almost the same length of time. That version's worked just fine on W98, W98SE, W2K (server included), and WinXP SP1. I upgraded to SP2 and pysol fails

Re: how to convert string to list or tuple

2005-06-01 Thread Steven Bethard
Duncan Booth wrote: Steven Bethard wrote: Interestingly, I don't seem to be able to create a file object as a class attribute in restricted mode: py class C(object): ... def __init__(self): ... self.f = file('temp.txt', 'w') ... py eval('''[ cls for cls in

Re: xml processing

2005-06-01 Thread Steven Bethard
Jeff Elkins wrote: I've like to use python to maintain a small addressbook which lives on a Sharp Zaurus. This list will never grow beyond 200 or so entries. I've installed pyxml. If you're not committed to pyxml, you might consider using ElementTree:

Re: Unhappy with numarray docs

2005-06-01 Thread Scott David Daniels
Matt Feinstein wrote: I spent all day yesterday trying to figure out how to do file IO in the numarray module-- I -did- (I think) figure it all out, eventually, but it's left me in a rather sour mood. Grr. Propose some fixes to the documents that will make this easier for the next one

Re: Unhappy with numarray docs

2005-06-01 Thread Matt Feinstein
On Wed, 01 Jun 2005 08:11:36 -0700, Scott David Daniels [EMAIL PROTECTED] wrote: Propose some fixes to the documents that will make this easier for the next one in line. You don't even need to get it exactly right; the person after you can fix the mistakes you make. This is the process we use

Re: Intellisense and the psychology of typing

2005-06-01 Thread Robert C.Martin
On 26 May 2005 09:31:12 -0700, [EMAIL PROTECTED] wrote: Yesterday I typed in some C++ code that called a function with two ints. Intellisense (auto-complete) helpfully told me that the first formal parameter was called frontLight and the second ringLight. It occurred to me that I'm getting some

Re: anygui,anydb, any opinions?

2005-06-01 Thread Thomas Bartkus
rzed [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] snip So what do you think? What's wrong with the picture? Why isn't there a greater priority to work in this direction? What's wrong with the picture? Just one teeny little item. The Python world lacks the phenomenally

using builtin array

2005-06-01 Thread shama . bell
Is it possible to join/append 2 arrays defined with different typecodes? What typecode should i use to generate the following output. data1 = array('h', '\0', 6) data2 = array('L', '\0', 25) for i in range( 6): data1[0] = 0xFF data2[1] = 0x00 data1[2] = 0x00 data1[3] = 0x00

Re: Unhappy with numarray docs

2005-06-01 Thread Fernando Perez
Matt Feinstein wrote: On Wed, 01 Jun 2005 08:11:36 -0700, Scott David Daniels [EMAIL PROTECTED] wrote: Propose some fixes to the documents that will make this easier for the next one in line. You don't even need to get it exactly right; the person after you can fix the mistakes you make.

Question about mutexes

2005-06-01 Thread Jan Danielsson
In OS/2 C, I would do this: main() { ... DosCreateMutexSem(NULL, hmtx, 0UL, FALSE); ... } thread() { ... DosRequestMutexSem(hmtx); Locked! DosReleaseMutexSem(hmtx); ... } How would I go about doing that in Python? I figured this part out: lockobj = mutex() lockobj.lock(foo, bar) Locked!

Re: Question about mutexes

2005-06-01 Thread Reinhold Birkenfeld
Jan Danielsson wrote: In OS/2 C, I would do this: main() { ... DosCreateMutexSem(NULL, hmtx, 0UL, FALSE); ... } thread() { ... DosRequestMutexSem(hmtx); Locked! DosReleaseMutexSem(hmtx); ... } How would I go about doing that in Python? I think you will want to create a

Re: ignoring SIGPIPE in a python script?

2005-06-01 Thread Donn Cave
In article [EMAIL PROTECTED], Dan Stromberg [EMAIL PROTECTED] wrote: I have a python script that sometimes gets a SIGPIPE signal, and errors out. And I want it to just terminate as though it had hit EOF. I'm running: signal.signal(signal.SIGPIPE,signal.SIG_IGN) ...in the main

metaclass that inherits a class of that metaclass?

2005-06-01 Thread ironfroggy
Hoping this isn't seeming too confusing, but I need to create a metaclass and a class using that metaclass, such that one of the bases of the metaclass is the class created with that metaclass. I can't figure out a way to do this, even after trying to add the class as a base after the classes have

Re: Unhappy with numarray docs

2005-06-01 Thread Matt Feinstein
On Wed, 01 Jun 2005 09:55:14 -0600, Fernando Perez [EMAIL PROTECTED] wrote: Just a suggestion: post your message on the numeric discussion list (where numarray is also discussed). Most of the num* developers only check c.l.py on occasion, so it's very easy that your message will be simply missed

Re: metaclass that inherits a class of that metaclass?

2005-06-01 Thread infidel
Why in the name of all that is holy and just would you need to do such a thing? -- http://mail.python.org/mailman/listinfo/python-list

How can i craft my own ip packets in python

2005-06-01 Thread ionel
er pointers please? :) -- ionel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about mutexes

2005-06-01 Thread Jan Danielsson
Reinhold Birkenfeld wrote: [---] How would I go about doing that in Python? I think you will want to create a threading.Lock object. It would seem so. Thanks for the tip! -- http://mail.python.org/mailman/listinfo/python-list

Re: metaclass that inherits a class of that metaclass?

2005-06-01 Thread ironfroggy
because they are representing a seperate typing system outside of python, to which I am creating a bridge. The metaclass represents the types of this other system and the class represents the most basic object type, but since the types the metaclass represent are also objects, this is the only way

Re: cgi help

2005-06-01 Thread nephish
whoa, thanks been trying to figgure this out for a week. cant wait to try it this weekend. thanks again. -- http://mail.python.org/mailman/listinfo/python-list

Re: Elementtree and CDATA handling

2005-06-01 Thread Terry Reedy
Fredrik Lundh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] you're confusing the external representation of something with the internal data model. consider this: hello 'hello' hell\x6f hell\157 hell + o 'h' 'e' 'l' 'l' 'o' the above are six

Information about Python Codyng Projects Ideas

2005-06-01 Thread M1st0
Hi to All! I would like to join the Google summer code program (http://code.google.com/summerofcode.html). From the sponsored links I have choose to help The Python Software Foundation, because I like a lot the language. I have read the proposed Ideas from

Pressing A Webpage Button

2005-06-01 Thread Elliot Temple
How do I make Python press a button on a webpage? I looked at urllib, but I only see how to open a URL with that. I searched google but no luck. For example, google has a button input type=submit value=Google Search name=btnG how would i make a script to press that button? Just for

Re: Pressing A Webpage Button

2005-06-01 Thread Brian Beck
Elliot Temple wrote: How do I make Python press a button on a webpage? I looked at urllib, but I only see how to open a URL with that. I searched google but no luck. Check out mechanize: http://wwwsearch.sourceforge.net/mechanize/ -- Brian Beck Adventurer of the First Order --

Re: metaclass that inherits a class of that metaclass?

2005-06-01 Thread infidel
I don't think that makes any sense. How could you possibly create such a circular relationship between things in any language? Besides, if I understand metaclasses at all, only other metaclasses can be bases of a metaclass. Why not use python classes to represent the other system's types with a

Re: What's wrong with Zope 3 ?

2005-06-01 Thread Kay Schluehr
Wolfram Kraus wrote: Kay Schluehr wrote: The last downloadable release is from november 2004. The Windows installer is configured for Python 2.3(!). The Zope.org main page announces Zope 2.8 beta 2. Is it stillborn? Kay What you see is not Zope 3, it is Zope X 3. To quote from the

Re: metaclass that inherits a class of that metaclass?

2005-06-01 Thread Kristian Zoerhoff
On 1 Jun 2005 09:41:53 -0700, infidel [EMAIL PROTECTED] wrote: Why in the name of all that is holy and just would you need to do such a thing? Is anyone else amused that this came from the mouth of someone named Infidel? -- Kristian kristian.zoerhoff(AT)gmail.com zoerhoff(AT)freeshell.org --

PyTables Error: ...import *

2005-06-01 Thread benjamin . scott
Hello, I am using an XP box and Python 2.3 (Enthought Edition). I am getting the same error with both of the .exe's listed on sourceforge: tables-1.0.win32-py2.3.exe tables-1.0.LB.win32-py2.3.exe Note that the installation seems to go fine. Although, when I run the test_all.py file it seems

Re: Newbie learning OOP

2005-06-01 Thread Terry Hancock
On Sunday 29 May 2005 03:18 pm, John Machin wrote: LenS wrote: Trying to learn OOP concepts and decided to use Python for this purpose. I have coded the following CLASS and it seems to work fine. Any comments on the code or suggestions would be appreciated. A practical problem: not

unsigned long to unsigned char

2005-06-01 Thread [EMAIL PROTECTED]
Hello, Is it possible to convert unsigned long( 4 bytes) to unsigned char(1 byte), so that i could define a common array for both. import array temp = array('B', '\0' * 512) for i in range( 2): temp[0] = 0xFF temp[1] = 0x Thanks, -Ashton --

Re: NSLU2 and python - a love story ?

2005-06-01 Thread Terry Reedy
Thomas W [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If you haven't heard about the NSLU2-box yet start with the references below and then google for it. It's very small, quiet, cheap and runs a complete linux system, with python available ( and MySQL, PostgreSQL, Apache etc

Re: metaclass that inherits a class of that metaclass?

2005-06-01 Thread ironfroggy
because i need the representations of the other systems types to themselves be python classes, and so i need a metaclass to make sure they follow certain rules. This metaclass is for that system what type is for python, and type is an object, which is a type. same thing, no? --

Re: metaclass that inherits a class of that metaclass?

2005-06-01 Thread infidel
God made me an atheist, who are you to question His wisdom? -- Saint Infidel the Skeptic -- http://mail.python.org/mailman/listinfo/python-list

idiom for constructor?

2005-06-01 Thread Mac
Is there a nice Python idiom for constructors which would expedite the following? class Foo: def __init__(self, a,b,c,d,...): self.a = a self.b = b self.c = c self.d = d ... I would like to keep the __init__ parameter list explicit, as is, rather than passing in a

Re: Seti-like program

2005-06-01 Thread Irmen de Jong
Magnus Lycka wrote: Both CORBA implementations and simpler things like PYRO could help, but these systems are more aimed at enabling communication between programs running in a distributed fashion, and I don't think they target tasks such as job queues, starting and stopping jobs, or load

Re: metaclass that inherits a class of that metaclass?

2005-06-01 Thread infidel
because i need the representations of the other systems types to themselves be python classes, and so i need a metaclass to make sure they follow certain rules. This metaclass is for that system what type is for python I think that's exactly the same thing I just said. More or less. Although

Re: Python analog of Ruby on Rails?

2005-06-01 Thread Nick Vargish
bruno modulix [EMAIL PROTECTED] writes: Err... Looks like I've seen this before, but where ??? Don't know, but it looks sort of familiar... Nick -- # sigmask (lambda deprecation version) 20041028 || feed this to a python print ''.join([chr(ord(x)-1) for x in

Re: metaclass that inherits a class of that metaclass?

2005-06-01 Thread Kay Schluehr
ironfroggy wrote: because they are representing a seperate typing system outside of python, to which I am creating a bridge. Since a type-hierarchy is a tree also a subtree of it is a type-hierarchy. You only have to map the root of a sub-hierarchy of Python classes to the root of the hierarchy

Re: metaclass that inherits a class of that metaclass?

2005-06-01 Thread Just
In article [EMAIL PROTECTED], infidel [EMAIL PROTECTED] wrote: [ ... ] type is, from my trivial understanding, the base type and base metaclass for everything else in python. Saying type is an object is only confusing you into thinking it is a subclass of object, which is not the case.

Re: Information about Python Codyng Projects Ideas

2005-06-01 Thread Rob Cowie
Ha, I've just headed over here to ask the same thing! Any good ideas not listed on the wiki? I too am taking a Masters in Computer Science, however my first degree was not purely CS - mostly microbiology, so I'm not yet what one would call an expert Cheers --

Re: metaclass that inherits a class of that metaclass?

2005-06-01 Thread infidel
Oh great, just when I thought I was starting to grok this mess. -- http://mail.python.org/mailman/listinfo/python-list

BUG pythonw vs subprocess

2005-06-01 Thread Robin Becker
There seems to be a problem with calling subprocesses from a script run with pythonw rather than python. The error doesn't seem to be a function of using pythonw.exe rather than python.exe in the Popen call, but we seem to get an error when pythonw is used to execute the script proc0.py

Re: idiom for constructor?

2005-06-01 Thread Chris Green
Mac [EMAIL PROTECTED] writes: Is there a nice Python idiom for constructors which would expedite the following? class Foo: def __init__(self, a,b,c,d,...): self.a = a ... You could try: class Foo: def __init__(self,a,b,c,d): args = locals() for arg in

Re: metaclass that inherits a class of that metaclass?

2005-06-01 Thread infidel
Ok, forget everything I've said. The more I think about this the less I understand it. I'm way out of my league here. sitting-down-and-shutting-up-ly y'rs, infi -- http://mail.python.org/mailman/listinfo/python-list

Re: Pressing A Webpage Button

2005-06-01 Thread Steve M
Do you actually need to 'press' the button? Or do you just need the effect that pressing the button would bring about (e.g., submitting a Google search query and receiving the results page)? If the latter, then you might want to search for, e.g., html form get post and check out some results.

Re: using builtin array

2005-06-01 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: Is it possible to join/append 2 arrays defined with different typecodes? What typecode should i use to generate the following output. data1 = array('h', '\0', 6) data2 = array('L', '\0', 25) for i in range( 6): data1[0] = 0xFF data2[1] = 0x00

  1   2   3   >