PyAr - Python Argentina 8th Meeting, today

2005-04-15 Thread Batista, Facundo
Title: PyAr - Python Argentina 8th Meeting, today The Argentine Python User Group, PyAr, will have its eighth meeting today at 7:00pm. Agenda -- Despite our agenda tends to be rather open, this time we would like to cover these topics: - Conclusions of PyAr in PyCon 2005. - See

ZODB 3.3.1 (final) released

2005-04-15 Thread Tim Peters
I'm pleased to announce the release of ZODB 3.3.1 (final). You can download a source tarball or Windows installer from: http://zope.org/Products/ZODB3.3 Note that there are two Windows installers this time, for Python 2.3 and Python 2.4. Choose the one appropriate for your version of

Re: Compute pi to base 12 using Python?

2005-04-15 Thread M.E.Farmer
Dick Moores wrote: Paul Rubin wrote at 18:20 4/13/2005: Dick Moores [EMAIL PROTECTED] writes: I need to figure out how to compute pi to base 12, to as many digits as possible. I found this reference, http://mathworld.wolfram.com/Base.html, but I really don't understand it well

Re: pythonic use of properties?

2005-04-15 Thread Gerald Klix
The python rationale is We are all consenting adults.. You shoukd change tens to _tens and ones to _ones, in order to syntacticly mark these attributes as internal. If someone not consenting, wants to mess with your internal representation, it's his fault. HTH, Gerald Marcus Goldfish schrieb: I'd

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Apr 11)

2005-04-15 Thread Paul Boddie
Simon Brunning [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On 4/14/05, Peter Hansen [EMAIL PROTECTED] wrote: Greg Ewing wrote: (Darn. I finally say something that gets into Quote of the Week, and it's attributed to someone else! :-) :-) :-) +1 on this for meta-QOTW,

A testcase for a Queue like class.

2005-04-15 Thread Antoon Pardon
I'm writing some sort of replacement for the Queue module. I'm calling the class I'm writing a tube. However I'm stuck in how I should write some testcases. The tube will have an open method, with as argument an access parameter that will determine if the thread wants to put things (write) on the

Re: Tk Listbox - Selected Item ?

2005-04-15 Thread Peter Moscatt
Martin Franklin wrote: Peter Moscatt wrote: I am having trouble understanding the methods for the Listbox from Tk. If I was to select at item in the list using a mouse click (have already created the bind event) - what method returns the text of the selected item ? Pete Pete,

Re: Web Application Client Module

2005-04-15 Thread Rogan Dawes
Raffi wrote: Hi All, I hope I'm posting this question to the correct newsgroups. We have a web based database application that's accessed using IE. The application opens a popup window to run in. With all the popup blockers and compromised browsers out there, I'm looking into developing a web

Re: A testcase for a Queue like class.

2005-04-15 Thread Paul Rubin
Antoon Pardon [EMAIL PROTECTED] writes: The tube will have an open method, with as argument an access parameter that will determine if the thread wants to put things (write) on the queue or will get (read) things from the queue (or both). Now what I want is that a thread that opens the tube

Re: RE Engine error with sub()

2005-04-15 Thread André Søreng
Instead of using regular expressions, you could perhaps use a multiple keyword matcher, and then for each match, replace it with the correct string. http://hkn.eecs.berkeley.edu/~dyoo/python/ahocorasick/ contains the Aho-Corasick algorithm written in C with a Python extension. Maurice LING wrote:

Re: How to name Exceptions that aren't Errors

2005-04-15 Thread TZOTZIOY
On 7 Apr 2005 21:20:19 GMT, rumours say that Leo Breebaart [EMAIL PROTECTED] might have written: [Max about Leo] This guys famous in the alternative universe of alt.fan.pratchett. The little imp stopped moving the memory blocks around as soon as it heard the distinct click of the name

Re: Tk Listbox - Selected Item ?

2005-04-15 Thread Martin Franklin
Peter Moscatt wrote: Martin Franklin wrote: Peter Moscatt wrote: I am having trouble understanding the methods for the Listbox from Tk. If I was to select at item in the list using a mouse click (have already created the bind event) - what method returns the text of the selected item ? Pete

Re: Is Python appropriate for web applications?

2005-04-15 Thread Peter Maas
Unknown User schrieb: I am a Python programmer and I'm thinking about learning PHP, which is similar to C++ wrong (quite different from Python). true I want to start writing web applications. Do you think if I learn PHP I'll develop faster? Nobody but you can anawer this question. You'll have

Re: RE Engine error with sub()

2005-04-15 Thread Dennis Benzinger
Maurice LING schrieb: Hi, I have the following codes: from __future__ import nested_scopes [...] Are you still using Python 2.1? In every later version you don't need the from __future__ import nested_scopes line. So, if you are using Python 2.1 I strongly recommend upgrading to Python 2.4.1.

Re: new to mac OS10

2005-04-15 Thread François Granger
Le 15/04/05 1:54, « Thomas Nelson » [EMAIL PROTECTED] a écrit : I'm on a mac OS X (10.3.8), and I seem to have accidentally destroyed the default python installation. How should I put it on? Do I need to use the unix version? any help would be greatly appreciated. There is also a list

Re: Is Python appropriate for web applications?

2005-04-15 Thread Lorenzo Bolognini
Unknown User wrote: I have the choice. Thanks for your opinion, If you have a look at CherryPy (www.cherrypy.org) you will not want to go back to PHP again! ;-) Lorenzo -- http://mail.python.org/mailman/listinfo/python-list

Re: curses for different terminals

2005-04-15 Thread TZOTZIOY
On Thu, 14 Apr 2005 19:38:26 +0200, rumours say that harold fellermann [EMAIL PROTECTED] might have written: 1. Are you doing an single process application that produces output on many terminals? ie the program is kind of like a service? gotcha. I want to write a TCP server that handles

Re: Tk Listbox - Selected Item ?

2005-04-15 Thread Peter Moscatt
Martin Franklin wrote: Peter Moscatt wrote: Martin Franklin wrote: Peter Moscatt wrote: I am having trouble understanding the methods for the Listbox from Tk. If I was to select at item in the list using a mouse click (have already created the bind event) - what method returns the text of

Re: PIL pilfont.py

2005-04-15 Thread Daewon YOON
Daewon YOON wrote: Hi. I tried to convert a bdf file using pilfont.py script. Instead producing pretty font images, it complained like following. ** daewian:~/fonting$ ./pilfont.py gulim24.bdf gulim24.bdf... Traceback (most recent call last): File ./pilfont.py, line 47, in ?

Re: RE Engine error with sub()

2005-04-15 Thread André Søreng
The Internal error in regular expression engine occurs also in Python 2.4.0 when creating a regular expression containing more than or's (|). Dennis Benzinger wrote: Maurice LING schrieb: Hi, I have the following codes: from __future__ import nested_scopes [...] Are you still using Python

Re: Using python from a browser/security hole

2005-04-15 Thread Neil Hodgson
Philippe: Since I need to access a local/client device from the page and that I wish to be cross-platform; does that mean Java is my only way out ? Java is designed to be safe and not allow access to client devices. There is a mechanism where you can attempt to ask for permission from

Re: whitespace , comment stripper, and EOL converter

2005-04-15 Thread qwweeeit
Hi, I have no more need to corret my code's bugs and send to clp group a working application (I don't think that there was an eager expectation...). Your code is perfectly working (as you can expect from a guru...). Thank you and bye. -- http://mail.python.org/mailman/listinfo/python-list

Python - interpreted vs compiled

2005-04-15 Thread codecraig
Hi, I have a question about Python. I know that it is an interpreted language, meaning a python program is converted to binary on the fly each time it is run, or compiled. What would be the purpose of compiling? I guess the compiled python code (question, is compiled python code called byte

MS SQL Server/ODBC package for Python

2005-04-15 Thread Graham
I need a SQL Server or ODBC package for Python. Can anyone help please? Have search the Python packages under Database and there is no reference to either SQL Server or ODBC. Thanks Graham -- http://mail.python.org/mailman/listinfo/python-list

Re: Python - interpreted vs compiled

2005-04-15 Thread Fredrik Lundh
codecraig wrote: I have a question about Python. I know that it is an interpreted language, meaning a python program is converted to binary on the fly each time it is run, or compiled. What would be the purpose of compiling? I guess the compiled python code (question, is compiled python

Re: Supercomputer and encryption and compression @ rate of 96%

2005-04-15 Thread R. C. James Harlow
On Thursday 14 April 2005 10:27, [EMAIL PROTECTED] wrote: Supercomputer and encryption and compression @ rate of 96% snip Dear Sir or Madam, I have received notification that you posted a compression algorithm on the newsgroup comp.lang.python on or about 10:27:26 on the 04/14/2005. I am

Re: Using python from a browser

2005-04-15 Thread bruno modulix
Philippe C. Martin wrote: Hi, What do you mean ? Is that a client-side or server-side script ? Client side So I can't help you... Where ? Programming Python - O'Reilly - 2nd edition - by Mark Lutz - Paragraph Teaching IE about Python - Pages 922-925 Thanks, I'll have a look one day. -- bruno

Re: Python - interpreted vs compiled

2005-04-15 Thread codecraig
thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Supercomputer and encryption and compression @ rate of 96%

2005-04-15 Thread Robin Becker
R. C. James Harlow wrote: On Thursday 14 April 2005 10:27, [EMAIL PROTECTED] wrote: Supercomputer and encryption and compression @ rate of 96% snip Dear Sir or Madam, I have received notification that you posted a compression algorithm on the newsgroup comp.lang.python on or about 10:27:26

key-logging capability using python ?

2005-04-15 Thread [EMAIL PROTECTED]
Hi, I am commanding a robot through a laptop keyboard and I would like to be able to record the different keys I hit in order to achieve a certain goal. I looked at PyHook, http://sourceforge.net/project/showfiles.php?group_id=65529package_id=92632release_id=307838 but it seems to only be

Re: MS SQL Server/ODBC package for Python

2005-04-15 Thread Graham
Thanks Simon I have just installed mxODBC and tried one of their samples. Am getting an error on trying to import mx.ODBC ImportError: No module named mx.ODBC After the install the mx folder has been place in my C:\Program Files\Plone 2\Python\lib\site-packages folder however when I browse

Re: Is Python appropriate for web applications?

2005-04-15 Thread bruno modulix
Unknown User wrote: I am a Python programmer and I'm thinking about learning PHP, which is similar to C++ (quite different from Python). I want to start writing web applications. Do you think if I learn PHP I'll develop faster? Does PHP have more features? How about the speed of execution?

Re: Using python from a browser/security hole

2005-04-15 Thread Roel Schroeven
Philippe C. Martin wrote: Since I need to access a local/client device from the page and that I wish to be cross-platform; does that mean Java is my only way out ? Or you could try Jython (http://www.jython.org/). -- If I have been able to see further, it was only because I stood on the

problem with py2exe !

2005-04-15 Thread Glauco Silva
Hi, I´m with problem to create a executable program in python. I´m using py2exe but i don´t know if it´s right. My setup.py: from distutils.core import setupimport py2exefrom glob import glob setup( # The first three parameters are not required, if at least a # 'version' is given, then

Re: MS SQL Server/ODBC package for Python

2005-04-15 Thread Simon Brunning
On 4/15/05, Graham [EMAIL PROTECTED] wrote: Thanks Simon I have just installed mxODBC and tried one of their samples. Am getting an error on trying to import mx.ODBC ImportError: No module named mx.ODBC After the install the mx folder has been place in my C:\Program Files\Plone

Re: new to mac OS10

2005-04-15 Thread Jorl Shefner
If you simply want the latest python to run from the command line, then compiling the source code works fine on the mac. I just installed 2.4.1 on Os 10.3.8 last week without any problems. http://www.python.org/ftp/python/2.4.1/Python-2.4.1.tgz ./configure make make install J.S. --

Re: Using python from a browser/security hole

2005-04-15 Thread Philippe C. Martin
Neil, Would Jpython let me do that ? Would java let me call an external Python script - which in turn would access my device ? Thanks Philippe Neil Hodgson wrote: Philippe: Since I need to access a local/client device from the page and that I wish to be cross-platform; does that mean

Re: Determine ip address

2005-04-15 Thread rbt
codecraig wrote: hi, how can i use python to figure the ip address of the machine which the python script is running on? I dont mean like 127.0.0.1but i want the external IP address (such as ipconfig on windows displays). any ideas?? THanks To get the public IP (like when you're behind a

Re: Python - interpreted vs compiled

2005-04-15 Thread bruno modulix
codecraig wrote: Hi, I have a question about Python. I know that it is an interpreted language, Nope. A *language* is neither compiled nor interpreted. An *implementation* of a language can use strict interpretation, byte-code compilation + VM, or native code compilation (it could as well use

Re: MS SQL Server/ODBC package for Python

2005-04-15 Thread gsmith
I do have a standard install of Python as well as Plone. Can you have two? I have run the mxInstaller for both instances however, whether I run the ide from my standard install or my plone install the pythonpath is the same (ie c:\...\plone 2\python). My machine registry now has the python

Re: Using python from a browser/security hole

2005-04-15 Thread Philippe C. Martin
I'll take a lok, thanks Roel Schroeven wrote: Philippe C. Martin wrote: Since I need to access a local/client device from the page and that I wish to be cross-platform; does that mean Java is my only way out ? Or you could try Jython (http://www.jython.org/). --

Re: Is Python appropriate for web applications?

2005-04-15 Thread codecraig
for more information on web application frameworks check out http://pyre.third-bit.com/pyweb/ It is a project aimed at helping web app developers to figure out which frameworks to use, etc. good luck! -- http://mail.python.org/mailman/listinfo/python-list

Re: Get OS name

2005-04-15 Thread rbt
codecraig wrote: How can I get the OS Name, such as Windows XP Pro. I know I can do sys.getwindowsversion but that doesnt return a nice Windows XP Pro string. and os.name gives nt thanks. Read the docs... sys.getwindowsversion() should do the trick. AFAIK, there is no way to differentiate

Re: Get OS name

2005-04-15 Thread codecraig
i guess i wanted the result in a nice string like Windows XP instead of 5.1 i guess i'll have to convert it myself, thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python from a browser/security hole

2005-04-15 Thread Philippe C. Martin
Thanks Jim, From all I hear, it looks like the client authentication will have tobe made on the side of the browser, between the server and a specific program running on the client. Not as nice but Regards, Philippe On Friday 15 April 2005 08:52 am, James Carroll wrote: I don't

IOError 11 CGI module

2005-04-15 Thread Anton Jansen
Hi list, I have troubles with some python scripts I use as cgi scripts with thttpd. At irregular intervals when a post is made an IOError is raised by the CGI module. My question is how and why does this happen? The exception looks like this: --- Traceback (most recent call last): File

Re: Get OS name

2005-04-15 Thread codecraig
where can I get wmi module, it doesnt come with Python right? thanks. -- http://mail.python.org/mailman/listinfo/python-list

http status response

2005-04-15 Thread Richard Eibrand
Hi guys, How do I go about getting the http response status as with the httplib method connection_handle.getresponse() using urllib2? Thing is I need to authenticate with a server, which I can do with urllib2 (by passing credentials), but I also need to get the status response codes and not

RE: Get OS name

2005-04-15 Thread Tim Golden
[codecraig] | where can I get wmi module, it doesnt come with Python right? | Sorry, should have said. http://timgolden.me.uk/python/wmi.html TJG This e-mail has been scanned for all viruses by Star. The service is

Re: sort of a beginner question about globals

2005-04-15 Thread Thomas Heller
fred.dixon [EMAIL PROTECTED] writes: :) unit test is something on my to-learn list. seems involved and i haven't seen any straight forward tutorials yet. as yet i still consider myself a hobbyist at best. I would recommend Test Driven Development by Kent Beck (Addison-Wesley). Thomas --

Re: RE Engine error with sub()

2005-04-15 Thread Maurice LING
Hi Dennis, Dennis Benzinger wrote: Maurice LING schrieb: Hi, I have the following codes: from __future__ import nested_scopes [...] Are you still using Python 2.1? In every later version you don't need the from __future__ import nested_scopes line. So, if you are using Python 2.1 I strongly

Re: pythonic use of properties?

2005-04-15 Thread Marcus Goldfish
On 4/15/05, Michael Spencer [EMAIL PROTECTED] wrote: class SillyDecimal(object): A silly class to represent an integer from 0 - 99. def __init__(self, arg=17): if isinstance(arg, tuple): self.tens = arg[0] self.ones = arg[1] It is conventional to

Re: new to mac OS10

2005-04-15 Thread Thomas Nelson
The main thing I would like is to be able to use tkinter with python on my mac. will the command-line-style source allow this? Does it come with IDLE? How is the fink version different from the source i can download at python.org? Here's the result of the requested commands on my Terminal.

Python's use in RAD

2005-04-15 Thread Ross Cowie
Hi, I am currenly a second year university student and was wondering if you could help me ut. As part of a project i have decided to write about python, i am not having very much luck with regards to finding infrmation on pythons use in Rapid Application Development, and was wondering of you

Re: Using python from a browser

2005-04-15 Thread Marcus Goldfish
I read that IE had the capability to embedd Python scripts, but what about the others ? While Python can be set up as a scripting language for IE, this is normally disabled as it could be a security hole. The open call is available from Python scripts so a web site could read or destroy

Re: A little request about spam

2005-04-15 Thread Bill Mill
On 4/14/05, mark hellewell [EMAIL PROTECTED] wrote: On 4/14/05, Steven Cummings [EMAIL PROTECTED] wrote: For what it's worth I filed a gmail issue over it a few days after I noticed it. I guess more of you could do so indicating the severity of the issue to the gmail developers. And I

Re: sort of a beginner question about globals

2005-04-15 Thread Duncan Booth
fred.dixon wrote: :) unit test is something on my to-learn list. seems involved and i haven't seen any straight forward tutorials yet. as yet i still consider myself a hobbyist at best. Hmm, I believe you are right. I can't see any straight-forward tutorials which use Python. I found a

Re: eval function not working how i want it dag namn

2005-04-15 Thread Michael Hoffman
robcarlton wrote: I've written this function to make a list of all of an objects attributes and methods (not for any reason, I'm just learning) def list_members(obj) l = dir(obj) return map(lambda x : eval('obj.'+x), l) That works fine for me with Python 2.4. This is the best way to do it:

mySQL values not updating after query

2005-04-15 Thread [EMAIL PROTECTED]
I have an application that I am trying to add mySQL to. I can connect to the server with no problems and get a couple values from a table the first time the page loads, ( a wxPython GUI app ), after changing the table values from a mySQL shell I refresh the page and the values don't update unless

Re: eval function not working how i want it dag namn

2005-04-15 Thread Gerald Klix
How about using the vars builtin? Michael Hoffman schrieb: robcarlton wrote: I've written this function to make a list of all of an objects attributes and methods (not for any reason, I'm just learning) def list_members(obj) l = dir(obj) return map(lambda x : eval('obj.'+x), l) That works

Re: Get OS name

2005-04-15 Thread Fredrik Lundh
codecraig wrote: How can I get the OS Name, such as Windows XP Pro i guess i wanted the result in a nice string like Windows XP instead of 5.1 i guess i'll have to convert it myself, thanks your requirements keep changing. to get the OS name in a platform- independent way, use the platform

py2exe - create one EXE

2005-04-15 Thread codecraig
Hi, Is there a way to create one .exe using py2exe (or some other extension/utility that can do it)? Basically i want to generate one .exe that contains everything my python app needs to run instead of having a .exe, some .zips, etc. thanks --

Re: eval function not working how i want it dag namn

2005-04-15 Thread Peter Otten
robcarlton wrote: hi everybody I've written this function to make a list of all of an objects attributes and methods (not for any reason, I'm just learning) def list_members(obj) l = dir(obj) return map(lambda x : eval('obj.'+x), l) but I get an error saying that obj isn't

Re: Determine ip address

2005-04-15 Thread Andy Jeffries
codecraig wrote: hi, how can i use python to figure the ip address of the machine which the python script is running on? I dont mean like 127.0.0.1but i want the external IP address (such as ipconfig on windows displays). I use the following (all on one line): external_ip =

Re: eval function not working how i want it dag namn

2005-04-15 Thread Peter Otten
Michael Hoffman wrote: def list_members(obj) l = dir(obj) return map(lambda x : eval('obj.'+x), l) That works fine for me with Python 2.4. Python 2.4 (#6, Jan 30 2005, 11:14:08) [GCC 3.3.3 (SuSE Linux)] on linux2 Type help, copyright, credits or license for more information. def lm(obj):

Re: Get OS name

2005-04-15 Thread codecraig
my requirements for getting the OS info havent changed. My first message says How can I get the OS Name, such as Windows XP Pro. that's what I wanted all along. thanks for the information anyway, i believe platform is better than my previous approach. thanks --

(no subject)

2005-04-15 Thread python-list-bounces+archive=mail-archive . com
#! rnews 2153 Newsgroups: comp.lang.python Path:

Re: py2exe - create one EXE

2005-04-15 Thread codecraig
must have missed it on py2exe front pageand for google i didnt try that search exactly. Thanks though. I was trying like one executable py2exe, etc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does StringIO discard its initial value?

2005-04-15 Thread David Fraser
Raymond Hettinger wrote: [David Fraser] Others may find this helpful ; it's a pure Python wrapper for cStringIO that makes it behave like StringIO in not having initialized objects readonly. Would it be an idea to extend cStringIO like this in the standard library? It shouldn't lose performance if

Re: new to mac OS10

2005-04-15 Thread Robert Kern
Thomas Nelson wrote: The main thing I would like is to be able to use tkinter with python on my mac. will the command-line-style source allow this? Does it come with IDLE? No. You need a framework version, which can be built from source, but it's best to leave that to people who know what

Re: Python's use in RAD

2005-04-15 Thread djw
Ross Cowie wrote: Hi, I am currenly a second year university student and was wondering if you could help me ut. As part of a project i have decided to write about python, i am not having very much luck with regards to finding infrmation on pythons use in Rapid Application Development, and was

Re: Is Python appropriate for web applications?

2005-04-15 Thread peufeu
The first one was a typo in the name of a variable ($actegories instead of $categories). Instead of raising an exception, this b**d programming language (err...) just created a new variable with a NULL value. Doh :-( Set error reporting to all. Marvel at how it reports this simple typo in a

Re: py2exe - create one EXE

2005-04-15 Thread Simon John
yeah, the question does come up once a month at least, but you could try mcmillan installer with it's --onefile option. i have mirrors at http://www.the-jedi.co.uk/downloads/installer -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python appropriate for web applications?

2005-04-15 Thread igouy
How about the speed of execution? There is no simple answer. Both languages use C functions which are executed at CPU speed. But with interpreted code Python seems to be approximately 3-4 times faster than PHP (http://dada.perl.it/shootout/). The Win32 Computer Language Shootout hasn't

How to fix this error in the example in 6.1.4 Files and Directories

2005-04-15 Thread fuzzylollipop
the following code is from the Python 2.3.5 docs ( http://www.python.org/doc/2.3.5/lib/os-file-dir.html ) import os from os.path import join, getsize for root, dirs, files in os.walk('python/Lib/email'): print root, consumes, print sum([getsize(join(root, name)) for name in files]),

Re: py2exe - create one EXE

2005-04-15 Thread codecraig
I tried the installer v6...and i generated a spec, and i built the exe...when i run the exe i get a error popup window from Windows asking me to send an Error report. The warnings that were generated during the build all appear to be ignorable as the documentation mentions. any ideas? --

Re: py2exe - create one EXE

2005-04-15 Thread codecraig
oh and Fredrik, i tried the SingleInstaller linkwhich points to a script using NSIS. I followed those instructions which generated an .exe. HOwever, when i run the .exe nothing happens (meaning no process starts, no output, no errors, nothing). any ideas on that? have ever used it? --

Re: How to fix this error in the example in 6.1.4 Files and Directories

2005-04-15 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: the following code is from the Python 2.3.5 docs ( http://www.python.org/doc/2.3.5/lib/os-file-dir.html ) import os from os.path import join, getsize for root, dirs, files in os.walk('python/Lib/email'): print root, consumes, print sum([getsize(join(root,

Re: Python's use in RAD

2005-04-15 Thread brian . peyton
Active State's Komodo IDE is very nice for python development. It includes integration with pdb (python's debugger). The pro edition also has a GUI designer, however I've never used it. The personal version for non commercial use can be had for $30 (and there's also a 30 day trial). They have

Re: Compute pi to base 12 using Python?

2005-04-15 Thread Dick Moores
M.E.Farmer wrote at 23:18 4/14/2005: Nice collection of unix tools, Cygwin not needed. http://unxutils.sourceforge.net/ Thank you! But a question. I've download both UnxUtils.zip and UnxUpdates.zip. I'm planning to put the contents of UnxUtils.zip in a directory and then move the contents of

Re: py2exe - create one EXE

2005-04-15 Thread James Carroll
I like that you can automatically invoke NSIS and create an installer, but I thought the question was how can all of the libraries be in a single runnable program executable (not a program that installs, but the program that you wrote.) I don't think you can do this, because (unless you have your

Re: How to fix this error in the example in 6.1.4 Files and Directories

2005-04-15 Thread Peter Otten
fuzzylollipop wrote: print sum([getsize(join(root, name)) for name in files]), print sum([getsize(join(root,name)) from name in files]), Do you see the difference? ... for ... is the correct syntax, ... from ... is what Python seems to complain about. Peter --

Re: mySQL values not updating after query

2005-04-15 Thread [EMAIL PROTECTED]
Don't forget to call: db.commit() Hope that's help. Pujo -- http://mail.python.org/mailman/listinfo/python-list

distutils question: different projects under same namespace

2005-04-15 Thread Qiangning Hong
To avoid namespace confliction with other Python packages, I want all my projects to be put into a specific namespace, e.g. 'hongqn' package, so that I can use from hongqn.proj1 import module1, from hongqn.proj2.subpack1 import module2, etc. These projects are developed and maintained and

Re: eval function not working how i want it dag namn

2005-04-15 Thread Michael Hoffman
Peter Otten wrote: Michael Hoffman wrote: def list_members(obj) l = dir(obj) return map(lambda x : eval('obj.'+x), l) That works fine for me with Python 2.4. x.question = Are you sure? I should clarify. It works fine for me when I've already globally assigned obj to something else. D'oh! --

Re: sort of a beginner question about globals

2005-04-15 Thread Scott David Daniels
Duncan Booth wrote: fred.dixon wrote: :) unit test is something on my to-learn list. seems involved and i haven't seen any straight forward tutorials yet. as yet i still consider myself a hobbyist at best. Hmm, I believe you are right. I can't see any straight-forward tutorials which use Python.

module placeholder

2005-04-15 Thread John Lenton
Once again I'm working on code that has several 'providers' of different features, and I thought I'd ask the list what better solutions it has to this other than what I've come up with. Currently, the cleanest way I can find is to say import foo foo.config(bar='baz') # from this point on,

Re: Python 2.4.1 hang

2005-04-15 Thread Fredrik Lundh
Mahesh wrote: I needed to get to the POST body and while I was trying out various regular expressions, one of them caused Python to hang. The Python process was taking up 100% of the CPU. I couldn't even see the Max recursion depth exceeded message. Is this a bug? no, it's just a very stupid way

Re: mySQL values not updating after query

2005-04-15 Thread Greg Miller
I just discovered that a few minutes ago, thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to fix this error in the example in 6.1.4 Files and Directories

2005-04-15 Thread fuzzylollipop
I am running 2.3.5 -- http://mail.python.org/mailman/listinfo/python-list

Re: How to fix this error in the example in 6.1.4 Files and Directories

2005-04-15 Thread fuzzylollipop
can't see the forest for the trees, that seems to be the problem, thanks for pointing out the obvious ( that I couldn't see ) :-( -- http://mail.python.org/mailman/listinfo/python-list

ANN: Python Computer Graphics Kit v2.0.0alpha3

2005-04-15 Thread Matthias Baas
The third alpha release of version 2 of the Python Computer Graphics Kit is available at http://cgkit.sourceforge.net What is it? --- The Python Computer Graphics Kit is a generic 3D package written in C++ and Python that can be used for a variety of domains such as scientific

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Apr 11)

2005-04-15 Thread Scott David Daniels
Simon Brunning wrote: On 4/14/05, Peter Hansen [EMAIL PROTECTED] wrote: Greg Ewing wrote: (Darn. I finally say something that gets into Quote of the Week, and it's attributed to someone else! :-) :-) :-) +1 on this for meta-QOTW, solving both problems... Yeah, but to whom do I attribute it? ;-)

Re: Determine ip address

2005-04-15 Thread Lee Harr
On 2005-04-15, codecraig [EMAIL PROTECTED] wrote: hi, how can i use python to figure the ip address of the machine which the python script is running on? I dont mean like 127.0.0.1but i want the external IP address (such as ipconfig on windows displays). any ideas?? I use this:

Re: Using python from a browser/security hole

2005-04-15 Thread Bengt Richter
On Fri, 15 Apr 2005 09:52:41 -0400, James Carroll [EMAIL PROTECTED] wrote: I don't think Jython will help much here... you would have to embed jython in your applet which makes it big, which makes it take longer to download... (or you could install it ahead of time on each client.) I asked my

Re: Python 2.4.1 hang

2005-04-15 Thread Mahesh
Yes, it is stupid but I am debugging some poorly written C++ code so I cannot change it. It was easier for me to use python to try various combinations (since the C++ code uses a non-standard re engine). I just chanced upon the problem and was curious as to what Python was up to. Thanks for

Re: changing colors in python

2005-04-15 Thread Cappy2112
if you are talking about writing text console program only , for Windows, then just use the color command- but you will need a handle to that console window- C:\help color Sets the default console foreground and background colors. COLOR [attr] attrSpecifies color attribute of console

Re: MS SQL Server/ODBC package for Python

2005-04-15 Thread M.-A. Lemburg
Peter Herndon wrote: Another option is adodbapi, which in my experience is much faster than mx.ODBC. Much faster ? See http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/iis/reskit/iischp7.mspx and scroll down to Table 7.1: Table 7.1 TPS (transactions per

Re: MS SQL Server/ODBC package for Python

2005-04-15 Thread M.-A. Lemburg
[EMAIL PROTECTED] wrote: I do have a standard install of Python as well as Plone. Can you have two? I have run the mxInstaller for both instances however, whether I run the ide from my standard install or my plone install the pythonpath is the same (ie c:\...\plone 2\python). My machine

Re: HTTPSConnection script fails, but only on some servers (long)

2005-04-15 Thread Paul Winkler
[EMAIL PROTECTED] wrote: In the meantime you should take a look a cURL and pycurl, which do support all kind of more extreme HTTP (FTP, etc.) handling, like using https over an proxy. Well, I got a pycurl solution working very nicely in twenty minutes, including the time it took to read the

  1   2   >