Re: can't start Apache on Mac OS X--no listening sockets available?

2007-06-25 Thread kaens
On 6/26/07, 7stud <[EMAIL PROTECTED]> wrote: > Ok. If I try to start Personal Web Sharing while Apache is running, > it says "Web Sharing starting up...", but it never does. Then if I > close the window and restart my imac, my imac boots up with Personal > Web Sharing turned on. > > I still can'

Re: can't start Apache on Mac OS X--no listening sockets available?

2007-06-25 Thread 7stud
Ok. If I try to start Personal Web Sharing while Apache is running, it says "Web Sharing starting up...", but it never does. Then if I close the window and restart my imac, my imac boots up with Personal Web Sharing turned on. I still can't figure out where the page that says "It works!" is loc

Re: Python Info.

2007-06-25 Thread kaens
It was like being slapped with the mid-90s On 6/26/07, Stefan Behnel <[EMAIL PROTECTED]> wrote: > Brandon wrote: > > Check it out: www.BrandonsMansion.com > > Why? > > Stefan > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread kaens
. A live CD might make that less > of an issue, though it would still be a pain if you had to keep using > it as a workaround for days while waiting for a mailing list or usenet > response explaining what the f*#! "bad zixflob in fuzzwangle.rc, > aborting" meant and how to fix it, especially as a s

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread Twisted
On Jun 26, 2:01 am, Adriano Varoli Piazza <[EMAIL PROTECTED]> wrote: > Twisted wrote: > > With the latest stuff like Ubuntu, you're pretty much right ... until > > something goes wrong. Windows has . > [...] > > Linux has ... the > > command line, or worse a GRUB or fsck prompt at startup. No acces

Re: can't start Apache on Mac OS X--no listening sockets available?

2007-06-25 Thread 7stud
> On Jun 25, 7:23 pm, 7stud <[EMAIL PROTECTED]> wrote: > > > > > I'm trying to get Apache set up on my system so I can use mod_python. > > I installed Apache 2.2.4 according to the following instructions: > > >http://switch.richard5.net/isp-in-a-box-v2/installing-apache-on-mac-o... > > > and everyt

Mirror Urls

2007-06-25 Thread Squzer
I am involving in the development of a crawler. i need my script to detect the mirror urls of the page. so that i can ignor the urls. Please tell me any idea to detect.. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Info.

2007-06-25 Thread Stefan Behnel
Brandon wrote: > Check it out: www.BrandonsMansion.com Why? Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread Adriano Varoli Piazza
Twisted wrote: > With the latest stuff like Ubuntu, you're pretty much right ... until > something goes wrong. Windows has . [...] > Linux has ... the > command line, or worse a GRUB or fsck prompt at startup. No access to > accessible, easy to browse help right when you need it most. I suppose yo

Python Info.

2007-06-25 Thread Brandon
Check it out: www.BrandonsMansion.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Portable general timestamp format, not 2038-limited

2007-06-25 Thread sla29970
On Jun 25, 6:46 pm, Paul Rubin wrote: > TAI really does seem like the most absolute--if you are a user in > orbit or on Mars, then UTC timestamps will seem pretty meaningless and > artificial. TAI makes sense for clocks on the surface of the earth (at least until ion tra

Re: Python's "only one way to do it" philosophy isn't good?

2007-06-25 Thread Douglas Alan
Paul Rubin writes: > Douglas Alan <[EMAIL PROTECTED]> writes: >> I will certainly admit that Lisp programmers at the time were (and >> likely still are) much more enamored of mapping functions than of >> iterators. Mapping functions certainly get the job done as elegan

Re: Output XML buffer?

2007-06-25 Thread Stefan Behnel
Jan Danielsson wrote: >I'm using ElementTree to create an XHTML page (mod_python, blah, > blah, blah). When I use ElementTree.tostring(root) to create a buffer > which I want to return to the client, it doesn't include the XML prolog As Martin told you, this is spec-compliant behaviour. Still,

Re: Chroot Jail Not Secure for Sandboxing Python?

2007-06-25 Thread [EMAIL PROTECTED]
On Jun 25, 11:58 am, Paul Boddie <[EMAIL PROTECTED]> wrote: > On 25 Jun, 16:48, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > I followed up with my ISP. Here's the answer I got: > > > The os.exec call prepends the chroot directory to the absolute path, > > but does NOT provide chroot fo

Re: regular expressions eliminating filenames of type foo.thumbnail.jpg

2007-06-25 Thread attn . steven . kuo
On Jun 25, 2:41 pm, oscartheduck <[EMAIL PROTECTED]> wrote: > I eventually went with: > > #!/usr/bin/env python > from PIL import Image > import glob, os, re > > size = 128, 128 > > def thumbnailer(dir, filenameRx): > for picture in [ p for p in os.listdir(dir) if > os.path.isfile(os.path.join

Re: Python's "only one way to do it" philosophy isn't good?

2007-06-25 Thread Paul Rubin
Douglas Alan <[EMAIL PROTECTED]> writes: > I will certainly admit that Lisp programmers at the time were (and > likely still are) much more enamored of mapping functions than of > iterators. Mapping functions certainly get the job done as elegantly > as iterators most of the time, although I would

Re: Looking for an interpreter that does not request internet access

2007-06-25 Thread John Roth
On Jun 25, 7:07 pm, James Alan Farrell <[EMAIL PROTECTED]> wrote: > Hello, > I recently installed new anti-virus software and was surprised the > next time I brought up IDLE, that it was accessing the internet. > > I dislike software accessing the internet without telling me about it, > especially

Re: Collections of non-arbitrary objects ?

2007-06-25 Thread Michele Simionato
On Jun 25, 8:21 pm, Marius Gedminas <[EMAIL PROTECTED]> wrote: > On Jun 24, 2:12 pm, Bjoern Schliessmann > [EMAIL PROTECTED]> wrote: > > 7stud wrote: > > > if hasattr(elmt, some_func): > > >elmt.some_func() > > > Personally, I prefer > > > try: > > elmt.some_func() > > except AttributeErro

Re: Chroot Jail Not Secure for Sandboxing Python?

2007-06-25 Thread [EMAIL PROTECTED]
On Jun 25, 4:12 pm, Bjoern Schliessmann wrote: > [EMAIL PROTECTED] wrote: > > I followed up with my ISP. Here's the answer I got: > > > The os.exec call prepends the chroot directory to the absolute > > path, but does NOT provide chroot for the child process. > > That sounds like rubbish to me. I

Re: can't start Apache on Mac OS X--no listening sockets available?

2007-06-25 Thread half . italian
On Jun 25, 7:23 pm, 7stud <[EMAIL PROTECTED]> wrote: > I'm trying to get Apache set up on my system so I can use mod_python. > I installed Apache 2.2.4 according to the following instructions: > > http://switch.richard5.net/isp-in-a-box-v2/installing-apache-on-mac-o... > > and everything seemed to

can't start Apache on Mac OS X--no listening sockets available?

2007-06-25 Thread 7stud
I'm trying to get Apache set up on my system so I can use mod_python. I installed Apache 2.2.4 according to the following instructions: http://switch.richard5.net/isp-in-a-box-v2/installing-apache-on-mac-os-x/#comment-30704 and everything seemed to install correctly, but I can't start Apache. I t

Re: regular expressions eliminating filenames of type foo.thumbnail.jpg

2007-06-25 Thread Gabriel Genellina
En Mon, 25 Jun 2007 19:52:32 -0300, oscartheduck <[EMAIL PROTECTED]> escribió: > Well, darn. > > I just discovered that the computer this is going to run on only has > python version 2.2 installed on it, which apparently doesn't support > checking a whole word, but instead checks a single letter

Re: Looking for an interpreter that does not request internet access

2007-06-25 Thread Robert Kern
James Alan Farrell wrote: > Hello, > I recently installed new anti-virus software and was surprised the > next time I brought up IDLE, that it was accessing the internet. > > I dislike software accessing the internet without telling me about it, > especially because of my slow dial up connection (

Re: Looking for an interpreter that does not request internet access

2007-06-25 Thread Paul Rubin
James Alan Farrell <[EMAIL PROTECTED]> writes: > I recently installed new anti-virus software and was surprised the > next time I brought up IDLE, that it was accessing the internet. See the message it displays when you start it. It's not really accessing the internet, it's opening a socket to an

Re: Collections of non-arbitrary objects ?

2007-06-25 Thread Gabriel Genellina
En Mon, 25 Jun 2007 11:14:23 -0300, walterbyrd <[EMAIL PROTECTED]> escribió: > I have probably expressed this incorrectly. What I meant was: > a = [1,2,3] b = a a[1] = 'spam' > > Here, I have changed b, without an explicit assignment. After I > assigned a to b, I never did another

Re: Collections of non-arbitrary objects ?

2007-06-25 Thread Paul Rubin
Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > You know, Python is now something like 17 years old, and is used by a > *lot* of peoples for a *lot* of programs - some of them far from > trivial. I think you can be confident in this experience. IOW, just > write your code, and you'll find out tha

Re: Portable general timestamp format, not 2038-limited

2007-06-25 Thread Paul Rubin
Martin Gregorie <[EMAIL PROTECTED]> writes: > >> pretend the leap seconds never happened, just as Java does. > > Which leaves you about 30 seconds out by now - smelly. > Easy solution: always read Zulu time directly from a recognized > real-time clock That's no good, it doesn't let you accurat

Re: Looking for an interpreter that does not request internet access

2007-06-25 Thread kaens
On 6/25/07, James Alan Farrell <[EMAIL PROTECTED]> wrote: > Hello, > I recently installed new anti-virus software and was surprised the > next time I brought up IDLE, that it was accessing the internet. > > I dislike software accessing the internet without telling me about it, > especially because

Re: New Thread- Supporting Multiline values in ConfigParser

2007-06-25 Thread Gabriel Genellina
En Mon, 25 Jun 2007 11:06:04 -0300, Phoe6 <[EMAIL PROTECTED]> escribió: > I took the approach of Subclassing ConfigParser to support multiline > values without leading white-spaces, but am struct at which position > in _read I should modify to accomodate the non-leading whitespace > based multilin

Looking for an interpreter that does not request internet access

2007-06-25 Thread James Alan Farrell
Hello, I recently installed new anti-virus software and was surprised the next time I brought up IDLE, that it was accessing the internet. I dislike software accessing the internet without telling me about it, especially because of my slow dial up connection (there is no option where I live), but

Re: distutils/setuptools de-installation?

2007-06-25 Thread Robert Kern
David Abrahams wrote: > I've been googling myself silly trying to find an answer to this; my > system's package manager is broken until I can solve it. > > I installed some packages using > > python setup.py install > > and I need to remove them. For some packages, > > python setup.py deve

Re: server wide variables

2007-06-25 Thread Graham Dumpleton
On Jun 26, 10:29 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Jun 26, 1:29 am, Jay Sonmez <[EMAIL PROTECTED]> wrote: > > > I want to be able to save some server variables as long as Apache runs > > on the server (mod_python). > > > How is that possible in Python? > > It depends on whether y

distutils/setuptools de-installation?

2007-06-25 Thread David Abrahams
I've been googling myself silly trying to find an answer to this; my system's package manager is broken until I can solve it. I installed some packages using python setup.py install and I need to remove them. For some packages, python setup.py develop --uninstall is good enough, because

Re: server wide variables

2007-06-25 Thread Graham Dumpleton
On Jun 26, 1:29 am, Jay Sonmez <[EMAIL PROTECTED]> wrote: > I want to be able to save some server variables as long as Apache runs > on the server (mod_python). > > How is that possible in Python? It depends on whether you expect all Apache child processes for that server to be able to access the

simplifying algebraic expressions

2007-06-25 Thread DavidM
Hi, Are there any libraries for manipulating algebraic expression trees? In particular, take an expression tree and simplify it down. I'm working up the next release of PyGene, the genetic programming and genetic algorithms library. Part of PyGene works with trees holding algebraic expressions.

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread JackT
On Jun 26, 12:23 am, JackT <[EMAIL PROTECTED]> wrote: > the ONE TRUE EMACS has had GUI capability > since early 1980s. Sorry, I meant early 1990s. I believe it was 1993 or so (it is in the web page). - JackT -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread JackT
On Jun 25, 10:01 pm, Twisted <[EMAIL PROTECTED]> wrote: > 2. Regarding these graphical derivatives (apparently plural) of emacs, > has nobody considered that this means that Xah had already won before > he'd even fired his shot? You have no idea what Xah was talking about. Xah knows the ONE TRUE E

Re: server wide variables

2007-06-25 Thread Matimus
On Jun 25, 8:29 am, Jay Sonmez <[EMAIL PROTECTED]> wrote: > I want to be able to save some server variables as long as Apache runs > on the server (mod_python). > > How is that possible in Python? I don't have any experience with mod_python, but I'm assuming all of the standard python modules are

Face Recognition

2007-06-25 Thread Henrik Lied
Hi there! Has anyone made effort to try to create a python binding to a facial recognition software [1]? For those of you with some experience - would this be very hard? [1] An example: http://www.cs.colostate.edu/evalfacerec/ -- http://mail.python.org/mailman/listinfo/python-list

Re: eggs considered harmful

2007-06-25 Thread Paul Boddie
Fuzzyman wrote: > > I understand your situation and I have some misgivings myself. It > reminds me of the time when I worked in a 'corporate environment' and > I was trying to install a Perl application to get round the internet > blocking. > > The application (localproxy - very good) was *intended

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread David Kastrup
Twisted <[EMAIL PROTECTED]> writes: > 2. Regarding these graphical derivatives (apparently plural) of > emacs, Emacs is a graphical derivative of Emacs? What nonsense. The canonical Emacs as distributed and copyrighted by the FSF is a GUI application on a large number of platforms. > has nobod

Re: regular expressions eliminating filenames of type foo.thumbnail.jpg

2007-06-25 Thread oscartheduck
Well, darn. I just discovered that the computer this is going to run on only has python version 2.2 installed on it, which apparently doesn't support checking a whole word, but instead checks a single letter against other single letters. 2.4 and, presumably 2.5 though I've actually not used it muc

Re: Collections of non-arbitrary objects ?

2007-06-25 Thread Ben Finney
walterbyrd <[EMAIL PROTECTED]> writes: > >>> a = [1,2,3] > >>> b = a > >>> a[1] = 'spam' > > Here, I have changed b, without an explicit assignment. No. Both 'a' and 'b' are names bound to a single object; you're changing that object. This is a subtle difference, but it's one that is confusing yo

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread Twisted
On Jun 25, 5:32 pm, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > To me it's similar to "memorizing" a phone number by dialing > it enough times that it makes its way into memory without > conscious effort. I suspect that not everyone's brain works > this way, and some people have to look it up e

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread Twisted
On Jun 25, 5:20 pm, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > > Twisted <[EMAIL PROTECTED]> wrote: > > On Jun 23, 10:36 am, Martin Gregorie <[EMAIL PROTECTED]> > > wrote: > > [ snip ] > > > * The operating system where you can do powerful stuff with a command

Client -> web server communication

2007-06-25 Thread Looney, James B
I'm trying to understand how to write an app that runs on my local machine, and talks to a hosted website to get access to the MySQL database I have stored there. I've read a few articles on Basic Authentication, so at least that part I partially understand (I plan on having username/password pair

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread Joost Kremers
[Followup-To: header set to comp.emacs] blmblm myrealbox.com wrote: > Eclipse has something that generates "import" statements with > a few keystrokes, and for me that's almost in the "killer app > [feature]" class. (Why do I strongly suspect that with the > right plug-ins emacs can do this too?

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread Twisted
On Jun 25, 8:40 am, Martin Gregorie <[EMAIL PROTECTED]> wrote: > Twisted wrote: > > The manuals came with the computers, at no additional charge. It was a > > different time. This isn't going to be true of any separately- > > purchased book or user-made printout concerning emacs. Also, the > > manu

Re: Internals and complexity of types, containers and algorithms

2007-06-25 Thread James Stroud
Harald Luessen wrote: > Hi, I am new to python and I miss some understanding of the internals > of some types and containers. With my C/C++ background I hope to get > some hints to chose the best data structure for my programs. Here are > some questions: This depends on how you define "best". I

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, Bjorn Borud <[EMAIL PROTECTED]> wrote: [ snip ] > a lot of IDE's are getting quite good and you don't have to mouse > around all that much. I think the main reason I stick to Emacs is > because I use it for a wider range of tasks -- not just programming. > > als

Re: regular expressions eliminating filenames of type foo.thumbnail.jpg

2007-06-25 Thread oscartheduck
I eventually went with: #!/usr/bin/env python from PIL import Image import glob, os, re size = 128, 128 def thumbnailer(dir, filenameRx): for picture in [ p for p in os.listdir(dir) if os.path.isfile(os.path.join( dir,p)) and filenameRx.match(p) if 'thumbnail' not in p]: file, ext

Re: Output XML buffer?

2007-06-25 Thread Martin v. Löwis
>I'm using ElementTree to create an XHTML page (mod_python, blah, > blah, blah). When I use ElementTree.tostring(root) to create a buffer > which I want to return to the client, it doesn't include the XML prolog > (obvisouly, since tostring is merely traversing the tree from the node I > supply

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, Twisted <[EMAIL PROTECTED]> wrote: > On Jun 24, 7:19 pm, Robert Uhl <[EMAIL PROTECTED]> wrote: [ snip ] > > emacs has continued doing its own thing, mostly because that thing is > > better. The CUA standards (there exists an emacs package if you really > > want t

Re: What was that web interaction library called again?

2007-06-25 Thread John J. Lee
Harald Korneliussen <[EMAIL PROTECTED]> writes: > Hi, > > I remember I came across a python library that made it radically > simple to interact with web sites, connecting to gmail and logging in > with four or five lines, for example. I thought, "that's interesting, > I must look into it sometime"

Re: Internals and complexity of types, containers and algorithms

2007-06-25 Thread Martin v. Löwis
> - Is there a brief description (not source) how the types tuple, > string, list and dict are represented internally. Is a list behind > the scenes just a double linked list or an array or a mixture of > these things? Sure, see below: - tuples are represented as arrays, with a single block fo

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, Twisted <[EMAIL PROTECTED]> wrote: > On Jun 23, 2:04 am, Robert Uhl <[EMAIL PROTECTED]> wrote: [ snip ] > Apparently because you find the switch second nature, despite its not > being the obvious (which is ctrl-tab, to switch between documents in > an MDI app). Ch

Output XML buffer?

2007-06-25 Thread Jan Danielsson
Hello all, I'm using ElementTree to create an XHTML page (mod_python, blah, blah, blah). When I use ElementTree.tostring(root) to create a buffer which I want to return to the client, it doesn't include the XML prolog (obvisouly, since tostring is merely traversing the tree from the node I supp

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, Twisted <[EMAIL PROTECTED]> wrote: > On Jun 23, 10:36 am, Martin Gregorie <[EMAIL PROTECTED]> > wrote: [ snip ] > * The operating system where you can do powerful stuff with a command > line and a script or two, but can also get by without either. (Windows > fails

Re: finding an element in a string

2007-06-25 Thread Will Maier
On Mon, Jun 25, 2007 at 04:09:50PM -0400, Miguel Oliveira wrote: > I want to make an if statement in which I would like to find a > certain word in a sentence; here is what i have so far: > >x = raw_input("how are you?") > >if x == "fine": > print "Good." > > But that, obvio

Re: Chroot Jail Not Secure for Sandboxing Python?

2007-06-25 Thread Martin v. Löwis
> The os.exec call prepends the chroot directory to the absolute path, > but does NOT provide chroot for the child process. However, as long > as the environment is maintained, which contains an LD_PRELOAD, the > "chroot" will also be maintained. If LD_PRELOAD is removed or > ignored, then the c

Re: finding an element in a string

2007-06-25 Thread Jerry Hill
On 6/25/07, Miguel Oliveira <[EMAIL PROTECTED]> wrote: > I was looking for a way for the program to respond "good" to any sentence > that would contain the word "fine" in it. This will work for any string with the string "fine" in it. if "fine" in x: print "Good." -- Jerry -- http://mail.p

Re: listing all property variables of a class instance

2007-06-25 Thread André
On Jun 25, 2:09 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-06-25, André <[EMAIL PROTECTED]> wrote: > > > > > Suppose I define a class with a number of variables defined as > > properties. Something like: > > > class MyClass(object): > > > def __init__(self): > > self.some_va

Re: Chroot Jail Not Secure for Sandboxing Python?

2007-06-25 Thread Martin v. Löwis
> This was my thought too. I just figured there was something special > about this command that brought one to the "real" Python intrepreter > and then to the real "/bin/sh". That's odd, my ISP seem adament that > this is a way to break out. I'll just have to put in the work to test > to locally

Re: urllib interpretation of URL with ".."

2007-06-25 Thread John J. Lee
John Nagle <[EMAIL PROTECTED]> writes: > Duncan Booth wrote: >> "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> >> Is "urllib" wrong? > >> Section 5.2 is also relevant here. In particular: >> >> >>> g) If the resulting buffer string still begins with one or more >>> complete path

Re: Installing python under the linux

2007-06-25 Thread Danyelle Gragsone
Hi, Yeah .. if its ubuntu then you have python already installed. I would suggest that you start reading the documentation on your distro. How did you get your distro if you don't know what it is? That concerns me a bit. Ubuntu has alot of documentation as well as a help channel on irc. irc.f

Re: Python SVN down?

2007-06-25 Thread Martin v. Löwis
> It _is_ down. Probably server maintenance. No, it's a bug. For some reason, the server restart after log rotation failed. I'm uncertain why - the manual restart right now worked without problems. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Portable general timestamp format, not 2038-limited

2007-06-25 Thread James Harris
On 25 Jun, 02:14, [EMAIL PROTECTED] (Robert Maas, see http://tinyurl.com/uh3t) wrote: > > From: James Harris <[EMAIL PROTECTED]> > > I have a requirement to store timestamps in a database. ... > > 1) subsecond resolution - milliseconds or, preferably, more detailed > > How do you plan to deal with

Re: eggs considered harmful

2007-06-25 Thread John J. Lee
Harry George <[EMAIL PROTECTED]> writes: > Robert Kern <[EMAIL PROTECTED]> writes: [...] > This is a possibility. The tarballs can be seen in a directory > listing. They are in different subdirs (for different "bundles" of > functionality), so I'll need -f to look several places. One possibilit

Re: Installing python under the linux

2007-06-25 Thread Grant Edwards
On 2007-06-25, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-06-25, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have problem with installing Python on the Linux platform.Can you tell me step by step how can I install python on linux ( please detailed ) , because I don't kno

Internals and complexity of types, containers and algorithms

2007-06-25 Thread Harald Luessen
Hi, I am new to python and I miss some understanding of the internals of some types and containers. With my C/C++ background I hope to get some hints to chose the best data structure for my programs. Here are some questions: - Is there a brief description (not source) how the types tuple, stri

Re: eggs considered harmful

2007-06-25 Thread Fuzzyman
On Jun 21, 1:10 pm, Harry George <[EMAIL PROTECTED]> wrote: > ...at least around here. > > I run a corporate Open Source Software Toolkit, which makes hundreds > of libraries and apps available to thousands of technical employees. > The rules are that a) a very few authorized downloaders obtain > t

Re: Installing python under the linux

2007-06-25 Thread Grant Edwards
On 2007-06-25, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> I have problem with installing Python on the Linux >>> platform.Can you tell me step by step how can I install python >>> on linux ( please detailed ) , because I don't know anything >>> about linux and I really don't understand pytho

Re: Python's "only one way to do it" philosophy isn't good?

2007-06-25 Thread Douglas Alan
Alexander Schmolck <[EMAIL PROTECTED]> writes: > Douglas Alan <[EMAIL PROTECTED]> writes: >>> Python has built-in abstractions for a few container types like >>> lists and dicts, and now a new and more general one (iterators), so >>> it's the next level up. >> Common Lisp has had all these thing

Re: Using a switch-like if/else construct versus a dictionary?

2007-06-25 Thread Klaas
On Jun 19, 12:40 pm, asincero <[EMAIL PROTECTED]> wrote: > Which is better: using an if/else construct to simulate a C switch or > use a dictionary? Example: Whichever results in the clearest code that meets the performance requirements. FWIW, if you define the dictionary beforehand, the dict so

Re: contextlib.closing annoyance

2007-06-25 Thread Klaas
On Jun 22, 4:54 pm, Paul Rubin wrote: > it looks like contextlib.closing fails to be idempotent, > i.e. wrapping closing() around another closing() doesn't work. > This is annoying because the idea of closing() is to let you > use legacy file-like objects as targets of t

Re: Which XML?

2007-06-25 Thread Stefan Behnel
Paul Boddie wrote: > On 25 Jun, 02:04, Bruno Barberi Gnecco > <[EMAIL PROTECTED]> wrote: >> I've found a lot of XML libraries for Python. Any advices on which >> one to use (or *not* to use)? My requirements are: support for XPath, >> stability (a must, segfaults are not an option), with DO

Re: finding an element in a string

2007-06-25 Thread Stephen R Laniel
On Mon, Jun 25, 2007 at 04:09:50PM -0400, Miguel Oliveira wrote: > But that, obviously, will only respond "good" when one writes "fine". I was > looking for a way for the program to respond "good" to any sentence that would > contain the word "fine" in it. What you want is a regular-expression mat

Re: Chroot Jail Not Secure for Sandboxing Python?

2007-06-25 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > I followed up with my ISP. Here's the answer I got: > > The os.exec call prepends the chroot directory to the absolute > path, but does NOT provide chroot for the child process. That sounds like rubbish to me. If it worked like that, chrooting servers would be virtu

Re: Installing python under the linux

2007-06-25 Thread vedrandekovic
Danyelle Gragsone je napisao/la: > Greetings, > > Python is usally already installed on most distros. In a terminal > window type "python" to see if something happens. Also please provide > what distro you are running. > > Danyelle > > On 6/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >

finding an element in a string

2007-06-25 Thread Miguel Oliveira
Hi,   I was wondering if you could help me with this:   I want to make an if statement in which I would like to find a certain word in a sentence; here is what i have so far:   x = raw_input("how are you?")   if x == "fine":   print "Good."   But that, obviously, will only respo

Re: Setuptools, build and install dependencies

2007-06-25 Thread John J. Lee
Harry George <[EMAIL PROTECTED]> writes: > Robert Kern <[EMAIL PROTECTED]> writes: > >> Harry George wrote: >> >>> We need to know the dependencies, install them in dependency order, >>> and expect the next package to find them. "configure" does this for >>> hundreds of packages. cmake, scons, a

Re: Collections of non-arbitrary objects ?

2007-06-25 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Bruno Desthuilliers wrote: > walterbyrd a écrit : >> For example, I don't think you can divide a string by another string. > > No, because this operation is not implemented for strings - IOW, strings > doesn't understand this message. What would be the meaning of dividing

Re: Python SVN down?

2007-06-25 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > Going to this URL: > http://svn.python.org/view/ > > It gives me an error: > Unable to connect > Firefox can't establish a connection to the server at > svn.python.org. > [...] > Any ideas? Clear case. $ nc -v svn.python.org 80 svn.python.org [82.94.237.220] 80 (www)

Re: Python SVN down?

2007-06-25 Thread Pulu
Can confirm the same behavior from locations in California and Arizona. The machine responds to pings but sends resets on any connection to tcp port 80... Asked in IRC, no response. On Jun 25, 12:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Going to this URL:http://svn.python.org/view

Re: Installing python under the linux

2007-06-25 Thread Danyelle Gragsone
Greetings, Python is usally already installed on most distros. In a terminal window type "python" to see if something happens. Also please provide what distro you are running. Danyelle On 6/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, > > I have problem with installing Python o

Re: Installing python under the linux

2007-06-25 Thread Grant Edwards
On 2007-06-25, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have problem with installing Python on the Linux platform.Can you > tell me step by step how can I install > python on linux ( please detailed ) , because I don't know anything > about linux and I really don't understand > python doc

Re: eggs considered harmful

2007-06-25 Thread John J. Lee
Harry George <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (John J. Lee) writes: [...] >> 2. You can run your own private egg repository. IIRC, it's as simple >> as a directory of eggs and a plain old web server with directory >> listings turned on. You then run easy_install -f URL package_name

Installing python under the linux

2007-06-25 Thread vedrandekovic
Hello, I have problem with installing Python on the Linux platform.Can you tell me step by step how can I install python on linux ( please detailed ) , because I don't know anything about linux and I really don't understand python documentation about installing python on linux. Thanks!!! --

Re: eggs considered harmful

2007-06-25 Thread Benji York
On Jun 21, 8:10 am, Harry George <[EMAIL PROTECTED]> wrote: [snip description of unacceptable behaviors] > These are unacceptable behaviors. I am therefore dropping ZODB3 If you have bugs to report against ZODB, I sugest posting to zodb-dev (http://mail.zope.org/mailman/listinfo/zodb-dev). -- Ben

Re: Indenting in Emacs

2007-06-25 Thread John J. Lee
Michael Hoffman <[EMAIL PROTECTED]> writes: > John J. Lee wrote: >> Eugene Morozov <[EMAIL PROTECTED]> writes: >> >>> Steven W. Orr пишет: >>> > Ok. I'm not stupid but I do not see a 4.78 anywhere even though I >>> see refs from google. I have 4.75 The SVN tree doesn't seem to even have

Re: Collections of non-arbitrary objects ?

2007-06-25 Thread Bruno Desthuilliers
walterbyrd a écrit : > On Jun 24, 10:31 pm, Bruno Desthuilliers > <[EMAIL PROTECTED]> wrote: > > >>>Especially since variables in python do not have to be explicitly >>>assigned >> >>??? > > > I have probably expressed this incorrectly. What I meant was: > > a = [1,2,3] b = a a[1]

Re: getting the size of an object

2007-06-25 Thread Simon Brunning
On 6/18/07, filox <[EMAIL PROTECTED]> wrote: > is there a way to find out the size of an object in Python? e.g., how could > i get the size of a list or a tuple? mxTools includes a sizeof() function. Never used it myself, but MAL isn't notorious for getting things wrong, so I'm sure it does what i

Python SVN down?

2007-06-25 Thread [EMAIL PROTECTED]
Going to this URL: http://svn.python.org/view/ It gives me an error: Unable to connect Firefox can't establish a connection to the server at svn.python.org. And using SVN as so: $ svn checkout http://svn.python.org/projects/python/trunk/ ~/ python_work/ svn: PROPFIND request failed on '/projects

Re: Why isn't this query working in python?

2007-06-25 Thread erikcw
On May 27, 11:06 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > On May 27, 2007, at 4:01 PM, Steve Holden wrote: > > >>erikcwwrote: > >>> On May 26, 8:21 pm, John Machin <[EMAIL PROTECTED]> wrote: > On May 27, 5:25 am,erikcw<[EMAIL PROTECTED]> wrote: > > > On

Re: How to save initial configuration? (program installation)

2007-06-25 Thread Jason Zapman II
On Jun 25, 12:14 pm, [EMAIL PROTECTED] wrote: > > usersChosenPath = /usr/Path/to/Config > > > Kind of redundant, but I would think it would still work. Ok... How do I tell the program where the INI file lives? (What I want is to be able to ask the user Where do you want the datafile to live?

Re: pydoc with METH_VARGS

2007-06-25 Thread Farshid Lashkari
Stuart wrote: > I'm asking if there's some sort of commenting or input file or > something to customize the output pydoc generates. Thanks. AFAIK, there is no way to do this. However, you can edit the doc string for your function, which can include the argument list. I believe this is what most

Re: listing all property variables of a class instance

2007-06-25 Thread Gabriel Genellina
En Mon, 25 Jun 2007 15:10:25 -0300, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> escribió: > In <[EMAIL PROTECTED]>, Jay Loden wrote: >> Neil Cerutti wrote: Is there a way to write a method that would list automatically all the variables defined as a property (say by printing their >>>

Re: Collections of non-arbitrary objects ?

2007-06-25 Thread Marius Gedminas
On Jun 24, 2:12 pm, Bjoern Schliessmann wrote: > 7stud wrote: > > if hasattr(elmt, some_func): > >elmt.some_func() > > Personally, I prefer > > try: > elmt.some_func() > except AttributeError: > # do stuff That also hides attribute errors that occur within some_func. I think I'd rath

Re: Changing sound volume

2007-06-25 Thread Lenard Lindstrom
simon kagwe wrote: >> And finally a way that might work using ctypes: >> >> http://mail.python.org/pipermail/python-win32/2006-March/004436.html >> >> Mike > > Hi, > > Thanks for your reply. > > I had already read about the Snack, but I can't use it since my program uses > wxPython for the GUI

Re: eggs considered harmful

2007-06-25 Thread Christopher Arndt
On 21 Jun., 14:10, Harry George <[EMAIL PROTECTED]> wrote: > I've asked before, and I'll ask again: If you are doing a Python > project, please make a self-sufficient tarball available as well. Alomost all projects I know of that provide eggs, also have a CVS or SVN repository. Just download a tag

  1   2   >