Re: Why os.path.isabs("/") on Windows returns True?

2008-02-01 Thread Giampaolo Rodola'
On Feb 1, 10:34 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-02-01, Giampaolo Rodola' <[EMAIL PROTECTED]> wrote: > > > > > > > On Feb 1, 9:55 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > >> On 2008-02-01, Giampaolo Rodola' <[EMAIL PROTECTED]> wrote: > > >> > I'm trying to solve a jython

Re: Why os.path.isabs("/") on Windows returns True?

2008-02-01 Thread Grant Edwards
On 2008-02-01, Giampaolo Rodola' <[EMAIL PROTECTED]> wrote: >> >> Sure seems like a bug to me.  On Unix, "/" is an absolute path. >> >> On windows, "/" is relative to the current device. >> >> > If you mean "the current drive letter" it's not actually true >> > since "\ \" is used for that: >> >>

help with apache + mod_python on mac os x

2008-02-01 Thread pnrdnz
Hi, I am new on everything about web development. I did many things to get the error at the end. My system has Apache 1.3 by default. I could install Apache 2.2 with no problem. I had to change all binaries in /usr/bin and /usr/sbin to new apache binaries. All ok. System came with python 2.3.1. I r

Win32 python: odd behavior when run via ssh

2008-02-01 Thread Grant Edwards
When I ssh into a windows machine (running Cygwin sshd), I can invoke python at the shell prompt (you have to use -i option and I don't really understand why). Once it's started there are couple rather odd behaviors: 1) readline support doesn't work. 2) you have call sys.exit() to exit (neithe

Re: Why os.path.isabs("/") on Windows returns True?

2008-02-01 Thread Grant Edwards
On 2008-02-01, Giampaolo Rodola' <[EMAIL PROTECTED]> wrote: > On Feb 1, 9:55 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: >> On 2008-02-01, Giampaolo Rodola' <[EMAIL PROTECTED]> wrote: >> >> > I'm trying to solve a jython-related issue and I discovered a >> > different behavior affecting os.path.is

Re: bags? 2.5.x?

2008-02-01 Thread Paul Rubin
Dan Stromberg <[EMAIL PROTECTED]> writes: > > * Is the feature useful for the broad mass? > > Yes, probably, at least if this kind of feature's inclusion in other > languages and my two recent needs for it are any indication. In other > languages, they are sometimes called bags or multisets. I

Re: bags? 2.5.x?

2008-02-01 Thread Dan Stromberg
On Wed, 23 Jan 2008 08:51:13 +0100, Christian Heimes wrote: > Dan Stromberg wrote: >> Is there a particular reason why bags didn't go into 2.5.x or 3000? >> >> I keep wanting something like them - especially bags with something >> akin to set union, intersection and difference. > > Ask yourself

Re: Meta Class

2008-02-01 Thread Gabriel Genellina
En Fri, 01 Feb 2008 15:46:05 -0200, Trevor Johnson <[EMAIL PROTECTED]> escribió: > I think I have a good candidate for a meta class here. Never done this > before and would like someone to help. In the code that follows, there is > one variable that needs to be changed: the letter 'a' as inserte

What should I use under *nix instead of freeze?

2008-02-01 Thread Mike Kent
In a comment Guido made on a recent bug report for the 'freeze' utility, he stated: "I think nobody really cares about freeze any more -- it isn't maintained." That being the case, what is the preferred/best replacement for freeze on a *nix platform? I'm looking for something that, like freeze,

Re: very simple Genetic Algorithm completed

2008-02-01 Thread Steven D'Aprano
On Fri, 01 Feb 2008 06:09:49 -0800, Paul McGuire wrote: > IIRC, the optimization of successive string concatentions is only > available when running Python on Windows. If you are running on Linux, > this should have more benefit.) There's no reason to believe it is platform-dependent, although it

Re: help with apache + mod_python on mac os x

2008-02-01 Thread pnrdnz
I could correct version mismatch by handling files under: $ ls -l /usr/lib |grep python lrwxr-xr-x1 root wheel16 Feb 2 01:17 libpython.dy -> libpython2.dylib lrwxr-xr-x1 root wheel16 Feb 2 01:11 libpython2.5.dylib -> libpython2.dylib lrwxr-xr-x1 root wheel7

Re: Why os.path.isabs("/") on Windows returns True?

2008-02-01 Thread Ross Ridge
Grant Edwards <[EMAIL PROTECTED]> wrote: >I guess it depends on your definition of "absolute". In my >mind, it means that it always refers to the same location >regardless of the CWD. Strictly speaking "/" refers to same location regardless of the current working directory (CWD) on Windows. It'

Re: read_nonblocking error in pxssh

2008-02-01 Thread Jinno
On Feb 1, 10:49 am, [EMAIL PROTECTED] wrote: > On Jan 16, 9:24 am, jrpfinch <[EMAIL PROTECTED]> wrote: > > > > > I'm attempting to use thepxsshto execute commands on a remote > > machine and do stuff with the output. Both machines are running SSH > > Version Sun_SSH_1.0, protocol versions 1.5/2.0

Re: What should I use under *nix instead of freeze?

2008-02-01 Thread Wildemar Wildenburger
Mike Kent wrote: > That being the case, what is the preferred/best replacement for freeze > on a *nix platform? Don't know about best or preferred, but pyinstaller seems to do that. http://pyinstaller.python-hosting.com> good luck /W -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32 python: odd behavior when run via ssh

2008-02-01 Thread Ross Ridge
Grant Edwards <[EMAIL PROTECTED]> wrote: >When I ssh into a windows machine (running Cygwin sshd), I can >invoke python at the shell prompt (you have to use -i option >and I don't really understand why). > >Once it's started there are couple rather odd behaviors: > > 1) readline support doesn't wo

Multiple interpreters retaining huge amounts of memory

2008-02-01 Thread Bronner, Gregory
I have an application that simultaneously extends and embeds the python interpreter. It is threaded, but all python calls are performed in one thread. Several interpreters are running simultaneously -- the application receives an event, activates a particular interpreter, and calls some python c

Re: Win32 python: odd behavior when run via ssh

2008-02-01 Thread Grant Edwards
On 2008-02-02, Ross Ridge <[EMAIL PROTECTED]> wrote: >>When I ssh into a windows machine (running Cygwin sshd), I can >>invoke python at the shell prompt (you have to use -i option >>and I don't really understand why). >> >>Once it's started there are couple rather odd behaviors: >> >> 1) readline

Re: What should I use under *nix instead of freeze?

2008-02-01 Thread Noah
On Feb 1, 3:08 pm, Mike Kent <[EMAIL PROTECTED]> wrote: > In a comment Guido made on a recent bug report for the 'freeze' > utility, he stated: > > "I think nobody really cares about freeze any more -- it isn't > maintained." > > That being the case, what is the preferred/best replacement for freez

Re: Win32 python: odd behavior when run via ssh

2008-02-01 Thread Gabriel Genellina
En Fri, 01 Feb 2008 22:31:06 -0200, Ross Ridge <[EMAIL PROTECTED]> escribió: > If you're using the offficial Win32 port of Python than you probably > want to use the Cygwin version because Win32 version doesn't support > readline anyways. I don't understand the comment. Most of the readline fun

Re: Win32 python: odd behavior when run via ssh

2008-02-01 Thread Martin v. Löwis
> That's odd, because readline seems to work fine in a Windows > console (recalling previous lines and line editing). That's an illusion. The Windows version of Python does not support or use GNU readline at all. What you see is a feature of the console window. Regards, Martin -- http://mail.pyt

Re: What should I use under *nix instead of freeze?

2008-02-01 Thread Martin v. Löwis
> "I think nobody really cares about freeze any more -- it isn't > maintained." > > That being the case, what is the preferred/best replacement for freeze > on a *nix platform? I don't think that there is one, or that there should be one. If you care about the feature (i.e. provide a single exec

Re: Why os.path.isabs("/") on Windows returns True?

2008-02-01 Thread Martin v. Löwis
> Is there a reason why "/" is considered an absolute pathname by > CPython? Yes: it tests whether a path is absolute on the current volume. Use the source, Luke. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiple interpreters retaining huge amounts of memory

2008-02-01 Thread Martin v. Löwis
> Is there some way to track references per interpreter, or to get the > memory allocator to set up seperate arenas per interpreter so that it > can remove all allocated memory when the interpreter exits? No. The multi-interpreter feature doesn't really work, so you are basically on your own. If y

Re: Win32 python: odd behavior when run via ssh

2008-02-01 Thread Grant Edwards
On 2008-02-02, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Fri, 01 Feb 2008 22:31:06 -0200, Ross Ridge ><[EMAIL PROTECTED]> escribió: > >> If you're using the offficial Win32 port of Python than you >> probably want to use the Cygwin version because Win32 version >> doesn't support readline

Re: REALLY simple xml reader

2008-02-01 Thread Steven D'Aprano
On Thu, 31 Jan 2008 18:35:17 +0100, Stefan Behnel wrote: > Hi, > > Steven D'Aprano wrote: >> On Fri, 01 Feb 2008 00:40:01 +1100, Ben Finney wrote: >> >>> Quite apart from a human thinking it's pretty or not pretty, it's *not >>> valid XML* if the XML declaration isn't immediately at the start of

Re: finding memory leak in edgewall trac 0.11

2008-02-01 Thread rupert.thurner
On Jan 20, 2:59 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > rupert.thurner wrote: > > i forgot to mention that i cannot see any explicit sys._getframe(), or > > __del__ in the genshi code, while the ones intrac-core seemed to be > > there in 0.10.4. > > Does the code keep a reference to a tra

urllib supports javascript

2008-02-01 Thread J. Peng
hello, Which useragent lib supports javascript? I know something about these libs: urllib,urllib2,cookielib,httplib But I'm not sure which one of them can support javascript scripts. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Mysterious xml.sax Encoding Exception

2008-02-01 Thread Martin v. Löwis
> The basic fact, though, remains, the same code works for me with the > same input but not for two particular users (out of hundreds). I see. That's mysterious. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32 python: odd behavior when run via ssh

2008-02-01 Thread Steve Holden
Gabriel Genellina wrote: > En Fri, 01 Feb 2008 22:31:06 -0200, Ross Ridge > <[EMAIL PROTECTED]> escribió: > >> If you're using the offficial Win32 port of Python than you probably >> want to use the Cygwin version because Win32 version doesn't support >> readline anyways. > > I don't understand

Re: urllib supports javascript

2008-02-01 Thread Steve Holden
J. Peng wrote: > hello, > > Which useragent lib supports javascript? > I know something about these libs: urllib,urllib2,cookielib,httplib > But I'm not sure which one of them can support javascript scripts. > Thanks! None of them do. Javascript support is a very complex task! I believe there ha

functools possibilities

2008-02-01 Thread castironpi
1. functools.partialpre: partialpre( f, x, y )( z )-> f( z, x, y ) 2. functools.pare: pare( f, 1 )( x, y )-> f( y ) 3. functools.parepre: parepre( f, 1 )( x, y )-> f( x ) 4. functools.calling_default: calling_default( f, a, DefaultA, b )-> f( a, , b ) -- http://mail.python.org/mailman/listinfo/pyt

Re: urllib supports javascript

2008-02-01 Thread js
AFAIK, nothing. How abount letting a browser do it? By using pamie [1] or selenium, you can drive a browser from python. [1] http://pamie.sourceforge.net/ On Feb 2, 2008 11:07 AM, J. Peng <[EMAIL PROTECTED]> wrote: > hello, > > Which useragent lib supports javascript? > I know something about the

Re: Why the HELL has nobody answered my question !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2008-02-01 Thread gene tani
On Jan 30, 4:40 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote: > I do not understand why no one has answered the following question: > > Has anybody worked with Gene Expression Programming > > David Blubaugh > David (may i call you David?) May i suggest you lock your workstation when you

Re: urllib supports javascript

2008-02-01 Thread J. Peng
js 写道: > AFAIK, nothing. > How abount letting a browser do it? > By using pamie [1] or selenium, you can drive a browser from python. > > [1] http://pamie.sourceforge.net/ > > On Feb 2, 2008 11:07 AM, J. Peng <[EMAIL PROTECTED]> wrote: >> hello, >> >> Which useragent lib supports javascript?

Re: Win32 python: odd behavior when run via ssh

2008-02-01 Thread Gabriel Genellina
En Sat, 02 Feb 2008 01:40:50 -0200, Steve Holden <[EMAIL PROTECTED]> escribi�: > Gabriel Genellina wrote: >> I don't understand the comment. Most of the readline functionality is >> already present on Windows XP (command history, up/down arrows, edit >> [...] > Until you try to do something li

Re: REALLY simple xml reader

2008-02-01 Thread Stefan Behnel
Steven D'Aprano wrote: > The same way it knows that " encoding. If the parser knows that the hex bytes > > 3c 3f 78 6d 6c > > (or 3c 00 3f 00 78 00 6d 00 6c 00 if you prefer UTF-16, and feel free to > swap the byte order) > > mean " > then it can equally know that bytes > > 20 09 0a > > a

LuaJIT improves

2008-02-01 Thread bearophileHUGS
There are news: http://article.gmane.org/gmane.comp.lang.lua.general/44781 I think Psyco may deserve some updates, because it can be useful on Python 3.0 too, on 64bit, and on iterators (with itertools) too. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: read_nonblocking error in pxssh

2008-02-01 Thread kayvansylvan
On Feb 1, 4:31 pm, Jinno <[EMAIL PROTECTED]> wrote: > I don't know if anyone ever got back to you with a fix, but for me the > fix was really simple. > > I just added a self.sendline() and a time.sleep(0.5) right before the > first read_nonblocking() call within synch_original_prompt Thank you!!!

Share the experience of Mobile with Quran features

2008-02-01 Thread Farooq
www.enmac.com.hk GSM Mobile Phones, Digital iPods, Digital Clocks, Digital Pens, Digital Quran. Enjoy these products with Islamic Features (Complete Holy Quran with Text and Audio, Tafaseer books, Ahadees Books, Daily Supplications, Universal Qibla Direction, Prayer Timing and much more) visit our

Re: Mysterious xml.sax Encoding Exception

2008-02-01 Thread Jeroen Ruigrok van der Werven
-On [20080201 19:06], JKPeck ([EMAIL PROTECTED]) wrote: >In both of these cases, there are only plain, 7-bit ascii characters >in the xml, and it really is valid utf-16 as far as I can tell. Did you mean to say that the only characters they used in the UTF-16 encoded file are characters fr

<    1   2