Re: Python to use a non open source bug tracker?

2006-10-04 Thread Valentino Volonghi aka Dialtone
Steve Holden <[EMAIL PROTECTED]> wrote: > > So clearly the 'get a daily backup of the data' is not the reason. > > Backing up a sqlite database is pretty easy. > > > Do you have any idea fo the scale of the Python issue (bug) database? Do > you really think SQLite would be a suitable platform for

Re: A Universe Set

2006-10-04 Thread Jorgen Grahn
On Tue, 03 Oct 2006 23:13:08 -0500, Robert Kern <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: >> Has the addition of a Universe Set object ever been suggested. Like U >> = set(0), so that any object was a member of U? > > In [61]: class UniverseSet(object): > : def __contai

Re: How to ask sax for the file encoding

2006-10-04 Thread Edward K. Ream
>> Can anyone tell me how the content handler can determine the encoding of >> the file? Can sax provide this info? > there is no encoding on the "inside" of an XML document; it's all Unicode. True, but sax is reading the file, so sax is producing the unicode, so it should (must) be able to de

Re: Python to use a non open source bug tracker?

2006-10-04 Thread Fredrik Lundh
Valentino Volonghi wrote: > Considering that trac can also run on postgres or mysql and also > considering that both of these databases have enough tools to deal with > backups I think it's a non issue. 10k entries shouldn't be much of an issue for sqlite3 either. (I don't think any of the propo

Re: can't open chm files all of a sudden

2006-10-04 Thread utabintarbo
John Salerno wrote: > Hi all. I apologize since this is only remotely Python related, but I > hope someone might now the solution. > > I tried opening my Python chm docs just now, as well as the one for > wxPython, and both are giving me an error dialog when I double-click > them and I can't open

Re: PEP 358 and operations on bytes

2006-10-04 Thread Gerrit Holl
On 2006-10-04 05:10:32 +0200, John Machin wrote: > > - str methods endswith, find, partition, replace, split(lines), > > startswith, > > - Regular expressions > > > > I think those can be useful on a bytes type. Perhaps bytes and str could > > share a common parent class? They certain

Re: How to ask sax for the file encoding

2006-10-04 Thread Fredrik Lundh
Edward K. Ream wrote: > > > so it would seem reasonable for sax to be able to return 'utf-8' somehow. why? that's an encoding detail, and should be completely irrelevant for your application. > Am I missing something? you're confusing artifacts of an external serialization format with the act

Re: py2app semi-standalone semi-works

2006-10-04 Thread Dave Opstad
In article <[EMAIL PROTECTED]>, James Stroud <[EMAIL PROTECTED]> wrote: > I am trying to create a semi-standalone with the vendor python on OS X > 10.4 (python 2.3.5). I tried to include some packages with both > --packages from the command and the 'packages' option in setup.py. While > the pa

Re: How to ask sax for the file encoding

2006-10-04 Thread Diez B. Roggisch
Edward K. Ream wrote: >>> Can anyone tell me how the content handler can determine the encoding of >>> the file? Can sax provide this info? > >> there is no encoding on the "inside" of an XML document; it's all >> Unicode. > > True, but sax is reading the file, so sax is producing the unicode,

Re: sax barfs on unicode filenames

2006-10-04 Thread Fredrik Lundh
Diez B. Roggisch wrote: > Filenames are expected to be bytestrings. So what happens is that the > unicode string you pass as filename gets implicitly converted using the > default encoding. it is ? >>> f = open(u"\u8116", "w") >>> f.write("hello") >>> f.close() >>> f = open(u"\u8116", "r") >>>

Re: A Universe Set

2006-10-04 Thread Leif K-Brooks
Jorgen Grahn wrote: > - infinite xrange()s itertools.count()? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to ask sax for the file encoding

2006-10-04 Thread Edward K. Ream
> [The value of the encoding field] _could_ be retained, but for what > purpose? I'm asking this question because my app needs it :-) Imo, there is *no* information in any xml file that can be considered irrelvant. My app will want to know the original encoding when writing the file. Edward

Re: Need help with syntax on inheritance.

2006-10-04 Thread SpreadTooThin
Peter Otten wrote: > SpreadTooThin wrote: > > > If you are deriving a new class from another class, > > that you must (I assume) know the initializer of the other class. > > > > So in myClass > > > > import array > > class myClass(arrary.array): > >def __init__(self, now here I need to put arr

Re: string: __iter__()?

2006-10-04 Thread John Roth
mrquantum wrote: > Hello! > > Just for curiosity i'd like to know why strings don't support the > iteration protocoll!? Is there some deeper reason for this? > > >>> hasattr('SomeString', '__iter__') > False > > In Python 2.5 it's actually simple to obtain one: > > >>> myIter = (c for c in 'SomeSt

Re: PEP 358 and operations on bytes

2006-10-04 Thread John Machin
Gerrit Holl wrote: > On 2006-10-04 05:10:32 +0200, John Machin wrote: > > > - str methods endswith, find, partition, replace, split(lines), > > > startswith, > > > - Regular expressions > > > > > > I think those can be useful on a bytes type. Perhaps bytes and str could > > > share a

Re: Improving telnetlib

2006-10-04 Thread Jean-Paul Calderone
On Wed, 4 Oct 2006 11:19:35 +0100, Matthew Warren <[EMAIL PROTECTED]> wrote: > >Hi, > >I use telnetlib in an app I am writing, and would like to add >functionality to it to support interactive terminal sessions , IE: be >able to 'vi' a file. > >Currently it seems telnetlib isnt quite sophisticated

Re: A Universe Set

2006-10-04 Thread Jean-Paul Calderone
On Wed, 04 Oct 2006 11:00:28 -0400, Leif K-Brooks <[EMAIL PROTECTED]> wrote: >Jorgen Grahn wrote: >> - infinite xrange()s > >itertools.count()? Not quite: >>> import sys, itertools >>> c = itertools.count(sys.maxint) >>> c.next() 2147483647 >>> c.next() -2147483648 >>>

Re: sax barfs on unicode filenames

2006-10-04 Thread Edward K. Ream
> Filenames are expected to be bytestrings. The exception happens in a method to which no fileName is passed as an argument. parse_leo_file: 'C:\\prog\\tigris-cvs\\leo\\test\\unittest\\chinese?folder\\chinese?test.leo' (trace of converted fileName) Unexpected exception parsing C:\prog\tigris

Re: Python to use a non open source bug tracker?

2006-10-04 Thread Paul Boddie
Fredrik Lundh wrote: > Valentino Volonghi wrote: > > > Considering that trac can also run on postgres or mysql and also > > considering that both of these databases have enough tools to deal with > > backups I think it's a non issue. > > 10k entries shouldn't be much of an issue for sqlite3 either.

Re: Python/Tkinter crash.

2006-10-04 Thread Hendrik van Rooyen
"James Stroud" <[EMAIL PROTECTED]> wrote: > Hendrik van Rooyen wrote: > > Hi, > > > > I get the following: > > > > [EMAIL PROTECTED]:~/Controller/lib> python display.py > > UpdateStringProc should not be invoked for type font > > Aborted > > > > and I am back at the bash prompt - this is most frus

Re: PEP 358 and operations on bytes

2006-10-04 Thread Paul Rubin
"John Machin" <[EMAIL PROTECTED]> writes: > So why haven't you been campaigning for regular expression support for > sequences of int, and for various array.array subtypes? regexps work on byte arrays. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to use a non open source bug tracker?

2006-10-04 Thread Istvan Albert
Giovanni Bajo wrote: > I understand your point. OTOH, exactly because the tracker system is a far > lesser importance, it's amazing there is *ever* a need to evaluate non-FLOSS > solutions, when there are so many good free solutions around. Instead of I think you are missing the point. Switching

Re: Making posts to an ASP.NET webform.

2006-10-04 Thread Bernard
Gabriel Genellina wrote: > At Monday 2/10/2006 13:05, Bernard wrote: > > > > > Has anyone tried what I'm doing? and if you tried how have you > > > > succeeded getting the data back after the post action? > > Use a packet sniffer or something to look at an actual POST that > works, this way you cou

<    1   2   3   4