Re: No typical loops, and other crazy ideas

2005-01-06 Thread Peter Otten
Bulba! wrote: > motivation). I've tried to manipulate the data just in Python > and not in typical loops. One thing that may not be entirely A list comprehension is just a fancy way to write a loop. Resisting the temptation to use it can sometimes improve your code. > [Also, for some reason the

Re: The Industry choice

2005-01-06 Thread Roel Schroeven
Bulba! wrote: If GPL folks had their way, it would not be possible not to "share" _anything_ you create. That's generally the goal of the Free Software Foundation: they think all users should have the freedom to modify and/or distribute your code. Most people who use the GPL don't feel that way;

Re: OT: spacing of code in Google Groups

2005-01-06 Thread Jacek Generowicz
Peter Hansen <[EMAIL PROTECTED]> writes: > Why the heck would I ever have to do "rectangle operations" on a > regular basis? ;-) Well, given that all editors are cat equivalent[*], you don't _have_ to use any of their features :-) But just like Python (particularly in the hands of a skilled Pyt

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-06 Thread Binu K S
On Thu, 6 Jan 2005 13:17:11 +0530, Gurpreet Sachdeva <[EMAIL PROTECTED]> wrote: > On Thu, 6 Jan 2005 12:55:22 +0530, Binu K S <[EMAIL PROTECTED]> wrote: > >>>The file's current position moves as you write into it. > I concure and have figured out the solution BUT while reading from the > file from

Re: python-dev Summary for 2004-11-16 through 2004-11-30

2005-01-06 Thread michele . simionato
> Would you like the source with your function? Yes, since I asked for this feature something like two years ago ;-) Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-06 Thread Gurpreet Sachdeva
On Thu, 6 Jan 2005 14:27:40 +0530, Binu K S <[EMAIL PROTECTED]> wrote: > I'm sorry, I didn't get what you trying to say here. Where do you see > a read altering the file? An example might help. Please try: logfile=file(r'test.txt','w+') logfile.write('datetime') Check the contents of test.txt, y

navigating/changing directories

2005-01-06 Thread skip
A simple script like the one below lets me jump through a directory structure. However, if I run it from /this/directory and within it to go to /a/totally/different/directory... I'm still actually going to be in /this/directory when I exit the script. Is it possible to have a script that can

Re: Building unique comma-delimited list?

2005-01-06 Thread Duncan Booth
Roy Smith wrote: > The best I've come up with is the following. Can anybody think of a > simplier way? > > > words = ["foo", "bar", "baz", "foo", "bar", "foo", "baz"] > > # Eliminate the duplicates; probably use set() in Python 2.4 > d = dict() > for w in words: > d

Re: Cookbook 2nd ed Credits

2005-01-06 Thread Anand
Yes, such a list is available. I have uploaded a tentative list of contributors at http://harvestman.freezope.org . The original list is courtesy Alex. For the impatient, here are the direct links... List of first authors: http://harvestman.freezope.org/cookbook/credau.html List of all authors:

Contributor's List

2005-01-06 Thread Anand
A list of contributors to Python Cookbook (Second Edition) is available at the following links. Original list courtesy Alex Martelli. Since the book is not yet in print, the lists are still tentative because of potential last minute editing changes. List of first authors o http://harvestman.freez

Re: Python evolution: Unease

2005-01-06 Thread Carlos Ribeiro
On 5 Jan 2005 19:31:53 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > John Roth: > > The bottom line is that I'm not going to be writing any > > extensive pieces of Python documentation. My time > > is better spent elsewhere. > > Well, a couple of years ago I realized that some documentatio

Re: Other notes

2005-01-06 Thread Timo Virkkala
[EMAIL PROTECTED] wrote: Andrew Dalke: (BTW, it needs to be 1 .. 12 not 1..12 because 1. will be interpreted as the floating point value "1.0".)< Uhm, I have to fix my ignorance about parsers. Cannot a second "." after the first tell that the first "." isn't in the middle of a floating point number

Re: Contributor's List

2005-01-06 Thread grahamd
Anand wrote: > A list of contributors to Python Cookbook (Second Edition) is available > at the following links. Original list courtesy Alex Martelli. > > Since the book is not yet in print, the lists are still tentative > because of potential last minute editing changes. > > List of first authors

Re: Contributor's List

2005-01-06 Thread grahamd
Anand wrote: > A list of contributors to Python Cookbook (Second Edition) is available > at the following links. Original list courtesy Alex Martelli. > > Since the book is not yet in print, the lists are still tentative > because of potential last minute editing changes. > > List of first authors

Re: Why tuples use parentheses ()'s instead of something else like <>'s?

2005-01-06 Thread Timo Virkkala
[EMAIL PROTECTED] wrote: I can't thank you enough for your reply and for everyones' great info on this thread. The end of your email gave a rock solid reason why it is impossible to improve upon ()'s for tuples Actually, you missed the point. The parentheses don't have anything to do with the

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-06 Thread Binu K S
http://mail.python.org/pipermail/python-bugs-list/2001-October/007650.html Rest assured you're not on drugs :) On Thu, 6 Jan 2005 14:45:24 +0530, Gurpreet Sachdeva <[EMAIL PROTECTED]> wrote: > On Thu, 6 Jan 2005 14:27:40 +0530, Binu K S <[EMAIL PROTECTED]> wrote: > > I'm sorry, I didn't get what y

Re: Contributor's List

2005-01-06 Thread Anand
Please direct all queries to the Cookbook editors...! Thanks -Anand -- http://mail.python.org/mailman/listinfo/python-list

Re: Contributor's List

2005-01-06 Thread Anand
Please direct all queries to the Cookbook editors! Thanks -Anand -- http://mail.python.org/mailman/listinfo/python-list

Re: Contributor's List

2005-01-06 Thread Anand
Please direct any query to the Cookbook editors. Thanks -Anand -- http://mail.python.org/mailman/listinfo/python-list

Re: Contributor's List

2005-01-06 Thread Anand
I have no idea. I am just another contributor like you. Just doing a service to the Python community by providing the list at my site. However, I am not responsible for its content. Please direct your queries to the editors, if any. Thanks -Anand -- http://mail.python.org/mailman/listinfo/python

Python C Object Comparison

2005-01-06 Thread Anand K Rayudu
Dear All, I have some question regarding embedding and exposing of C pointers. We have embedded python and extended to expose our APIs and c objects to python. Every thing is working fine as far as customizing our application through python. How ever i am expecting following behavior but it fail

Re: [Python-Dev] Let's get rid of unbound methods

2005-01-06 Thread Nick Coghlan
Andrew Koenig wrote: duck typing? That's the Australian pronunciation of "duct taping". More Kiwi, I'm thinking ;) Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --- http://boredomandlaziness.s

Re: Securing a future for anonymous functions in Python

2005-01-06 Thread Nick Coghlan
Paul Rubin wrote: Nick Coghlan <[EMAIL PROTECTED]> writes: Do you consider generator expressions or list comprehensions deficient because they don't allow several statements in the body of the for loop? I don't see what it would mean to do otherwise. Exactly the same as a suite would in the innerm

Re: The Industry choice

2005-01-06 Thread Stefan Axelsson
Bulba! wrote: Nope. IMHO, GPL attempts to achieve the vendor lock-in. For different purposes than another well-known vendor, but it still does. It's actually even worse: the only thing you can't share on a well-known vendor's platform is the software written by that well-known vendor -- you can ch

wxPython clipboard

2005-01-06 Thread lbolognini
Hi all, I'm thinking about coding a free version of this software: http://www.pitrinec.com/pkindex.htm I would use wxPython and wx.Clipboard class (hoping to be able to make it cross-platform) The software above detects macros you code in any Windows active window and replaces them with a text:

wxPython clipboard

2005-01-06 Thread lbolognini
Hi all, I'm thinking about coding a free version of this software: http://www.pitrinec.com/pkindex.htm I would use wxPython and wx.Clipboard class (hoping to be able to make it cross-platform) The software above detects macros you code in any Windows active window and replaces them with a text:

Re: Deferred expressions (was Re: Lambda as declarative idiom)

2005-01-06 Thread Nick Coghlan
Bengt Richter wrote: I like the fact that 'def' can serve as a mnemonic for 'defer' or 'deferred' ;-) Yeah, me too. I didn't actually notice that until after I'd thought of the phrase. OTOH, I like concise notation for expressions, and the def and from aren't really necessary if you can tag the fi

Re: OT: spacing of code in Google Groups

2005-01-06 Thread Simon Brunning
On Wed, 05 Jan 2005 22:57:33 GMT, JanC <[EMAIL PROTECTED]> wrote: > Rectangular selection only works with the mouse in SciTE/Scintilla: > alt-click-drag. Nope - hold down alt-shift, and select with the cursor keys. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/

Re: Python evolution: Unease

2005-01-06 Thread Andrew MacIntyre
On Wed, 5 Jan 2005, John Roth wrote: > I would like to contribute some documentation to Python. > I've got the time, I write quite a bit, etc. I've got fairly > strong opinions about some things that need to be documented, > (such as all the new style class descriptor stuff from 2.2) > and I have

Re: Python evolution: Unease

2005-01-06 Thread Nick Coghlan
Carlos Ribeiro wrote: Couldn't a better document-writing interface be implemented? Such as: http://www.python.org/moin/Documentation Or AMK's annotatable docs: http://pydoc.amk.ca/frame.html Something like that? The docs are great, but it took me some time to find them out after searching inside Py

Re: navigating/changing directories

2005-01-06 Thread Kartic
> /this/directory when I exit the script. Is it possible to have a script > that can drop me off into a different directory than where I initiated it > from? Use os.chdir(newpath) So, you can code os.chdir(r'/a/totally/different/directory') and find yourself in /a/totally/different/directory aft

Re: navigating/changing directories

2005-01-06 Thread Kartic
Hmmm... I take it back... that is not working! I think it changes the path only during execution time. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python evolution: Unease

2005-01-06 Thread Nick Coghlan
[Daniel Bowett] #- Contribute to where on Sourceforge??? Which domentation are #- we talking #- about in general? Speaking of docs. . . I think it would help a great deal if the python.org version-specific documentation pages used the standard documentation front page that actually includes the "

Re: Python evolution: Unease

2005-01-06 Thread Alex Martelli
Robert Kern <[EMAIL PROTECTED]> wrote: ... > >> I love eric3, but if you're an eclipse fan, look at enthought's > >> "envisage" IDE -- it seems to me that it has superb promise. ... > > Is it available for download somewhere? > > Alex is, I think, jumping the gun a bit. Envisage isn't quite

Re: Is there any way/where to subscribe for automated PEP status emails?

2005-01-06 Thread Nick Coghlan
Thomas Heller wrote: You could probably subscribe to python-checkins, and filter it. Or read it via gmane. Hmm - can SF be used to setup a mailing list just for checkins to a single directory in the source tree? If so, that would seem to be an easy way to provide a python-pep-updates mailing lis

Re: navigating/changing directories

2005-01-06 Thread Nick Coghlan
The script is executed in a process separate from your command shell, and hence has no effect on your shell's current directory. There are some things that batch files and shell scripts are still good for - manipulating the shell :) Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Br

Re: Is there any way/where to subscribe for automated PEP status emails?

2005-01-06 Thread Thomas Heller
Nick Coghlan <[EMAIL PROTECTED]> writes: > Thomas Heller wrote: >> You could probably subscribe to python-checkins, and filter it. >> Or read it via gmane. > > Hmm - can SF be used to setup a mailing list just for checkins to a > single directory in the source tree? Yes. You should suggest this

Re: Cookbook 2nd ed Credits

2005-01-06 Thread Alex Martelli
Steve Holden <[EMAIL PROTECTED]> wrote: ... > > 1: 25 u'Luther Blissett' > > 2: 21 u'Alex Martelli' ... > And I *still* think we deserve to be told the Luther Blissett story ... > > conspiratorial-ly y'rs - steve Martin Elster's post back in Aug '02 already had just about all of the nece

Re: Python evolution: Unease

2005-01-06 Thread gabriele renzi
Alex Martelli ha scritto: But Alex is right; Envisage does hold a lot of promise. The very concept of an architecture based on a spare skeleton and copious plugins is intrinsically excellent, and I think that by now eclipse has proven it's also practically viable for real-world powerful IDEs/plat

Re: Python evolution: Unease

2005-01-06 Thread Carlos Ribeiro
On Thu, 06 Jan 2005 22:11:22 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Carlos Ribeiro wrote: > > Couldn't a better document-writing interface be implemented? > > Such as: > http://www.python.org/moin/Documentation > > Or AMK's annotatable docs: > http://pydoc.amk.ca/frame.html Sorry, I wa

Nevow Tutorial and sample app

2005-01-06 Thread mirnazim
Hi, Can any one redirect me to a good nevow tutorial and/or a an appliction that is niether too big nor too small and can be help in learning nevow. Nevow tutorial with the distrubution is too simple and it doesnot even skim the surface. Another one http://www.nevow.com/Nevow2004Tutorial.html is g

parameterized metaclass (or metametaclass)

2005-01-06 Thread Antoine Pitrou
Hi, I've been looking at writing parameterized metaclasses and here are the two solutions I've come to: (my goal was to build a way to automatically add a hash function that would take into account a selected list of object attributes) 1. all-in-one metametaclass: class Autohash2(type): """

Re: get the IP address of a host

2005-01-06 Thread J Berends
Lee Harr wrote: I found that the socket solutions only work if your DNS entries are correct ... which in my case was not true. So I came up with this: That is indeed correct, and even if the DNS entries are correct at times it does not give the full list of IPs by gethostbyname or gethostbyaddr.

Re: Python evolution: Unease

2005-01-06 Thread Robert Kern
Alex Martelli wrote: Robert Kern <[EMAIL PROTECTED]> wrote: ... I love eric3, but if you're an eclipse fan, look at enthought's "envisage" IDE -- it seems to me that it has superb promise. ... Is it available for download somewhere? Alex is, I think, jumping the gun a bit. Envisage isn't quit

Re: Other notes

2005-01-06 Thread Steve Holden
Timo Virkkala wrote: [EMAIL PROTECTED] wrote: Andrew Dalke: (BTW, it needs to be 1 .. 12 not 1..12 because 1. will be interpreted as the floating point value "1.0".)< Uhm, I have to fix my ignorance about parsers. Cannot a second "." after the first tell that the first "." isn't in the middle of a

Re: get the IP address of a host

2005-01-06 Thread Nick Coghlan
J Berends wrote: Lee Harr wrote: Basically, it scrapes the output from ifconfig for the actual address assigned to the interface. Works perfectly on FreeBSD and Linux (given the correct configuration). Nice way, have to device something for windows than. Use the same approach, but scrape the outpu

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-06 Thread Abhijit Soman
[EMAIL PROTECTED] wrote: Hey guys, I can't figure this one out, why is this simple script giving me problems? logfile=file(r'test.txt','w') logfile.write('datetime') test=logfile.readlines() When I run it I get the error message: Traceback (most recent call last): File "C:\Documents and Settings\Gr

Re: Python evolution: Unease

2005-01-06 Thread Steve Holden
Aahz wrote: In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: Maybe a PSF grant would help? I guess this has been considered ... The first three PSF grants were all in some way not directly related to changing the core language. One was for a library, one for improving Jython, and one f

Re: get the IP address of a host

2005-01-06 Thread P
J Berends wrote: def getipaddr(hostname='default'): [snip] It returns the IP address with which it connects to the world (not lo), might be a pvt LAN address or an internet routed IP. Depend on where the host is. I hate the google trick actually, so any suggestions to something better is always

Re: get the IP address of a host

2005-01-06 Thread Jp Calderone
On Thu, 06 Jan 2005 14:35:16 +0100, J Berends <[EMAIL PROTECTED]> wrote: > > From several approached I came up with the following code: > > def getipaddr(hostname='default'): > """Given a hostname, perform a standard (forward) lookup and return > a list of IP addresses for that host."""

Re: navigating/changing directories

2005-01-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Nick Coghlan <[EMAIL PROTECTED]> wrote: >The script is executed in a process separate from your command shell, and >hence >has no effect on your shell's current directory. > >There are some things that batch files and shell scripts are still good for - >manipulat

Re: navigating/changing directories

2005-01-06 Thread Steve Holden
skip wrote: A simple script like the one below lets me jump through a directory structure. However, if I run it from /this/directory and within it to go to /a/totally/different/directory... I'm still actually going to be in /this/directory when I exit the script. Is it possible to have a scri

sorting on keys in a list of dicts

2005-01-06 Thread J Berends
Suppose I have a list of dictionaries and each dict has a common keyname with a (sortable) value in it. How can I shuffle their position in the list in such way that they become sorted. Maybe I am doing it wrongly and you would say: why don't you get yourself a (slimmed-down) implementation of

Re: logging from severl classes

2005-01-06 Thread flupke
Vinay Sajip wrote: It works for me: #file3.py import file1 import file2 a = file1.A() b = file2.B() b.otherfunction() gives 2004-12-28 00:18:34,805 DEBUG file2 6 creating class B 2004-12-28 00:18:34,805 DEBUG file2 9 in otherfunction yeah, the classes where a simplification of the classes i'm using

Re: sorting on keys in a list of dicts

2005-01-06 Thread Jp Calderone
On Thu, 06 Jan 2005 15:31:22 +0100, J Berends <[EMAIL PROTECTED]> wrote: >Suppose I have a list of dictionaries and each dict has a common keyname > with a (sortable) value in it. > > How can I shuffle their position in the list in such way that they > become sorted. > In Python 2.4, im

Re: The Industry choice

2005-01-06 Thread Steve Holden
Bulba! wrote: On 04 Jan 2005 19:25:12 -0800, Paul Rubin wrote: "Rob Emmons" <[EMAIL PROTECTED]> writes: Me personally, I believe in free software, but always talk about open source. My answer regarding forcing people to share -- I like the GPL -- and I am perfectly hap

Re: sorting on keys in a list of dicts

2005-01-06 Thread Paul Rubin
J Berends <[EMAIL PROTECTED]> writes: > Suppose I have a list of dictionaries and each dict has a common > keyname with a (sortable) value in it. > > How can I shuffle their position in the list in such way that they > become sorted. Do I understand the question right? Can't you just say thel

Re: The Industry choice

2005-01-06 Thread Steve Holden
Bulba! wrote: On Wed, 5 Jan 2005 11:19:56 +0100, [EMAIL PROTECTED] (Alex Martelli) wrote: [...] You see, I'm not disagreeing with you that your model applies _where it applies_. I only disagree that it applies in face of stronger forces. Now what kind of forces is dominant in most frequent scenari

Re: The Industry choice

2005-01-06 Thread Alex Martelli
Roel Schroeven <[EMAIL PROTECTED]> wrote: > Can you point to closed-source licenses that allow using the code *at > all*? As I recall, for example, Microsoft Visual C++ came with sources for various libraries; all that the (closed-source) license for those libraries forbade you from doing was to

Re: sorting on keys in a list of dicts

2005-01-06 Thread J Berends
Jp Calderone wrote: On Thu, 06 Jan 2005 15:31:22 +0100, J Berends <[EMAIL PROTECTED]> wrote: Suppose I have a list of dictionaries and each dict has a common keyname with a (sortable) value in it. How can I shuffle their position in the list in such way that they become sorted. In Python 2.4

Re: Embedding a restricted python interpreter

2005-01-06 Thread Peter Maas
Craig Ringer schrieb: That is my understanding. In fact, I'd say with Python it's nearly impossible given how dynamic everything is and the number of tricks that can be used to obfuscate what you're doing. Think of the fun that can be had with str.encode / str.decode and getattr/hasattr . It would

2 versions of python on 1 machine

2005-01-06 Thread flupke
I searched with Google and on this newsgroups and i didn't find any info regarding this. If there is more info, please redirect me to that info. I have version 2.3.4 and 2.4 installed on windows and i thought that by switching the PYTHONPATH parameter to the dir of the 2.4 version that that wou

Re: parameterized metaclass (or metametaclass)

2005-01-06 Thread michele . simionato
> I was wondering if there is some simpler way of building parameterized > metaclasses ? Why not just a function returning metaclasses? def metaFactory(*args): dic = return type("somemetaclass", (type,), dic) Alternatively, a metaclass classmethod returning a metaclass, so that you can use some

Re: Developing Commercial Applications in Python

2005-01-06 Thread Nick Vargish
[EMAIL PROTECTED] writes: > Can somebody there to point me any good commercial applications > developed using python ? Python is used in several games, including Temple of Elemental Evil and the forthcoming Civilization 4. Humungous Games, which makes software for children, is also using Python.

Re: Embedding a restricted python interpreter

2005-01-06 Thread Jp Calderone
On Thu, 06 Jan 2005 16:05:50 +0100, Peter Maas <[EMAIL PROTECTED]> wrote: >Craig Ringer schrieb: > > That is my understanding. In fact, I'd say with Python it's nearly > > impossible given how dynamic everything is and the number of tricks that > > can be used to obfuscate what you're doing. Think

Re: Nevow Tutorial and sample app

2005-01-06 Thread Valentino Volonghi aka Dialtone
<[EMAIL PROTECTED]> wrote: > Can any one redirect me to a good nevow tutorial and/or a an appliction > that is niether too big nor too small and can be help in learning > nevow. Nevow tutorial with the distrubution is too simple and it You should probably look at all the examples in the latest sv

Re: get the IP address of a host

2005-01-06 Thread J Berends
Jp Calderone wrote: On Thu, 06 Jan 2005 14:35:16 +0100, J Berends <[EMAIL PROTECTED]> wrote: From several approached I came up with the following code: def getipaddr(hostname='default'): """Given a hostname, perform a standard (forward) lookup and return a list of IP addresses for that host

File Handling Problems Python I/O

2005-01-06 Thread Josh
Hi, I am having a problem with Python. I am new to Python as a programming language, but I do have experience in other languages. I am experiencing strange problems with File handling and wonder if anyone else has seen this or knows what I am doing wrong. I am simply trying to open a file for read

Re: Embedding a restricted python interpreter

2005-01-06 Thread Paul Rubin
Jp Calderone <[EMAIL PROTECTED]> writes: > A Python sandbox would be useful, but the hosting provider's excuse > for not allowing you to use mod_python is completely bogus. All the > necessary security tools for that situation are provided by the > platform in the form of process and user sepa

RE: File Handling Problems Python I/O

2005-01-06 Thread Batista, Facundo
Title: RE: File Handling Problems Python I/O [Josh] #- able to do so without a problem, but here's the catch: The open #- statement is only working on certain files. I open a simple text file #- say file1.txt without any issues, but I change the open statement to #- another text file and it

Re: Developing Commercial Applications in Python

2005-01-06 Thread Stephen Waterbury
Nick Vargish wrote: [EMAIL PROTECTED] writes: Can somebody there to point me any good commercial applications developed using python ? Python is used in several games ... Also see Python Success Stories: http://pythonology.org/success A notable example is Verity's search engine -- see http://pyth

Re: OT: spacing of code in Google Groups

2005-01-06 Thread Peter Hansen
Jacek Generowicz wrote: Peter Hansen <[EMAIL PROTECTED]> writes: Why the heck would I ever have to do "rectangle operations" on a regular basis? ;-) Well, given that all editors are cat equivalent[*], you don't _have_ to use any of their features :-) This "cat equivalent" thing is a red-herring.

Re: Embedding a restricted python interpreter

2005-01-06 Thread Steve Holden
Jp Calderone wrote: [...] A Python sandbox would be useful, but the hosting provider's excuse for not allowing you to use mod_python is completely bogus. All the necessary security tools for that situation are provided by the platform in the form of process and user separation. Not sure this

PyAr - Python Argentina 5th Meeting, Thursday, January 13th

2005-01-06 Thread Batista, Facundo
Title: PyAr - Python Argentina 5th Meeting, Thursday, January 13th The Argentinian Python User Group, PyAr, will have its fifth meeting this Thursday, January 13th at 7:00pm. Please see http://pyar.decode.com.ar/Wiki/ProximaReunion for details (in Spanish.) Agenda -- Despite our agen

Re: OT: spacing of code in Google Groups

2005-01-06 Thread Steve Holden
Peter Hansen wrote: [...] But the whole argument is fairly moot... I've needed a rectangle operation only once in the last ten years, and if I hadn't known at the time that my editor could do it (and spent about half an hour figuring out how it worked), I could have written a utility to do the job

Re: Embedding a restricted python interpreter

2005-01-06 Thread Jp Calderone
On 06 Jan 2005 07:32:25 -0800, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: >Jp Calderone <[EMAIL PROTECTED]> writes: > > A Python sandbox would be useful, but the hosting provider's excuse > > for not allowing you to use mod_python is completely bogus. All the > > necessary security too

Re: 2 versions of python on 1 machine

2005-01-06 Thread Aaron Bingham
flupke wrote: I have version 2.3.4 and 2.4 installed on windows and i thought that by switching the PYTHONPATH parameter to the dir of the 2.4 version that that would make python 2.4 active. However when i envoke python from the commandline, it still runs 2.3.4 Is it possible to have 2 versions

Re: Embedding a restricted python interpreter

2005-01-06 Thread Gerhard Haering
On Thu, Jan 06, 2005 at 07:32:25AM -0800, Paul Rubin wrote: > Jp Calderone <[EMAIL PROTECTED]> writes: > > A Python sandbox would be useful, but the hosting provider's excuse > > for not allowing you to use mod_python is completely bogus. All the > > necessary security tools for that situation

Re: File Handling Problems Python I/O

2005-01-06 Thread Arjen Dijkstra
I don't think we can help if you don't post some of your code. Regards, Arjen Josh wrote: Hi, I am having a problem with Python. I am new to Python as a programming language, but I do have experience in other languages. I am experiencing strange problems with File handling and wonder if anyone else

Re: 2 versions of python on 1 machine

2005-01-06 Thread Peter Hansen
flupke wrote: I have version 2.3.4 and 2.4 installed on windows and i thought that by switching the PYTHONPATH parameter to the dir of the 2.4 version that that would make python 2.4 active. That is not the purpose of PYTHONPATH. I'd suggest removing any definition of this environment variable t

Re: OT: spacing of code in Google Groups

2005-01-06 Thread Grant Edwards
On 2005-01-06, Steve Holden <[EMAIL PROTECTED]> wrote: > Peter Hansen wrote: > > [...] >> >> But the whole argument is fairly moot... I've needed a rectangle >> operation only once in the last ten years, and if I hadn't known at >> the time that my editor could do it (and spent about half an hour

Re: File Handling Problems Python I/O

2005-01-06 Thread Peter Hansen
Josh wrote: I am having a problem with Python. I am new to Python as a programming language, but I do have experience in other languages. I am experiencing strange problems with File handling and wonder if anyone else has seen this or knows what I am doing wrong. I am simply trying to open a file f

Re: OT: spacing of code in Google Groups

2005-01-06 Thread Peter Hansen
Steve Holden wrote: Peter Hansen wrote: But the whole argument is fairly moot... I've needed a rectangle operation only once in the last ten years, and if I hadn't known at the time that my editor could do it (and spent about half an hour figuring out how it worked), I could have written a utility

Re: OT: spacing of code in Google Groups

2005-01-06 Thread Grant Edwards
On 2005-01-06, Peter Hansen <[EMAIL PROTECTED]> wrote: > Steve Holden wrote: >> Peter Hansen wrote: >>> But the whole argument is fairly moot... I've needed a rectangle >>> operation only once in the last ten years, and if I hadn't known at >>> the time that my editor could do it (and spent about

Re: Developing Commercial Applications in Python

2005-01-06 Thread Duncan Booth
Nick Vargish wrote: > [EMAIL PROTECTED] writes: > >> Can somebody there to point me any good commercial applications >> developed using python ? > > Python is used in several games, including Temple of Elemental Evil > and the forthcoming Civilization 4. Humungous Games, which makes > software f

Re: The Industry choice

2005-01-06 Thread Roel Schroeven
Alex Martelli wrote: Roel Schroeven <[EMAIL PROTECTED]> wrote: Can you point to closed-source licenses that allow using the code *at all*? As I recall, for example, Microsoft Visual C++ came with sources for various libraries; all that the (closed-source) license for those libraries forbade you f

RE: OT: spacing of code in Google Groups

2005-01-06 Thread Tim Golden
[Peter Hansen] | [Steve Holden] | > Peter Hansen wrote: | >> But the whole argument is fairly moot... I've needed a rectangle | >> operation only once in the last ten years, and if I hadn't known at | >> the time that my editor could do it (and spent about half an hour | >> figuring out how it wor

Re: Developing Commercial Applications in Python

2005-01-06 Thread Steve Hughes
Can somebody there to point me any good commercial applications developed using python ? Yet another game but it's a huge one with a massive DB behind it. http://www.eve-online.com -- Steve Hughes -- http://mail.python.org/mailman/listinfo/python-list

Re: Another PythonWin Excel question

2005-01-06 Thread It's me
"Marten Bauer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I did it yesterday like this way and it works well (part of my code): > > wb.Worksheets.Add(Count=nrMonths,After=wb.Worksheets(1)) > > As I read in MSDN you could not write After="sheet1" instead you must > use th

curses is not imported under Linux (and Python 2.4)

2005-01-06 Thread Konrad Koller
import curses produces the ImportError: No module named _curses ("from _curses import *" in line 15 in __init__.py) Of course imp.find_module ("_curses") reports the same error. How can I make use of the curses package for writing a Python script with curses? -- http://mail.python.org/mailman/lis

Re: curses is not imported under Linux (and Python 2.4)

2005-01-06 Thread Steve Holden
Konrad Koller wrote: import curses produces the ImportError: No module named _curses ("from _curses import *" in line 15 in __init__.py) Of course imp.find_module ("_curses") reports the same error. How can I make use of the curses package for writing a Python script with curses? I get the same th

Re: The Industry choice

2005-01-06 Thread Alex Martelli
Roel Schroeven <[EMAIL PROTECTED]> wrote: ... > >>Can you point to closed-source licenses that allow using the code *at > >>all*? ... > > Is this what you mean by "allow using the code *at all*"? I think it's > > a pretty common arrangement when the code being sold under closed-source > > te

wsse:Security header

2005-01-06 Thread Angie
Hi, all, I would like to use Python to generate SOAP message with wsse:Security, UsernameToken header, does anyone has some example how to using ZSI? Thanks Angie -- http://mail.python.org/mailman/listinfo/python-list

Re: How about "pure virtual methods"?

2005-01-06 Thread George Sakkis
"Noam Raphael" <[EMAIL PROTECTED]> wrote: > Thanks for your suggestion, but it has several problems which the added > class solves: > > * This is a very long code just to write "you must implement this > method". Having a standard way to say that is better. > * You can instantiate the base class,

Re: File Handling Problems Python I/O

2005-01-06 Thread Josh
He is the function where I am making the call. If I change the open statment to another file, say "c:\test.txt", a file I know exists, it will error out stating the file does not exist. Thanks Josh def GetStartVars(self): try: DOWNFILE = open("c:\fixes.txt","r") except IOError: print "Failed to o

Re: File Handling Problems Python I/O

2005-01-06 Thread Josh
Peter, Thank you for the rookie correction. That was my exact problem. I changed the address to use forward slashes and it works perfect. I did not know that a backslash had special meaning within a string, but now I do! Thanks again Josh -- http://mail.python.org/mailman/listinfo/python-list

Re: Another PythonWin Excel question

2005-01-06 Thread David Bolen
"It's me" <[EMAIL PROTECTED]> writes: > Yes, I read about that but unfortunately I have no experience with VBA *at > all*. :=( You don't really have to know VBA, but if you're going to try to interact with COM objects from Python, you'll find it much smoother if you at least use any available re

Re: File Handling Problems Python I/O

2005-01-06 Thread deelan
Josh wrote: Peter, Thank you for the rookie correction. That was my exact problem. I changed the address to use forward slashes and it works perfect. I did not know that a backslash had special meaning within a string, but now I do! Thanks again you may want to check "python gotchas" to avoid other

Re: Another PythonWin Excel question

2005-01-06 Thread It's me
Thanks, "David Bolen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "It's me" <[EMAIL PROTECTED]> writes: > > > Yes, I read about that but unfortunately I have no experience with VBA *at > > all*. :=( > > You don't really have to know VBA, but if you're going to try to > interact

Re: The Industry choice

2005-01-06 Thread Jeff Shannon
Steve Holden wrote: Bulba! wrote: I was utterly shocked. Having grown up in Soviet times I have been used to seeing precious resources wasted by organizations as if resources were growing on trees, but smth like this?! In a shining ideal country of Germany?! Unthinkable. Indeed not. Quite often th

  1   2   3   >