user modules

2006-10-04 Thread Cameron Walsh
Hi, I'm writing a python program to analyse and export volumetric data. To make development and extension easier, and to make it more useful to the public when it is released (LGPL), I would like to enable users to place their own python files in a "user_extensions" directory. These files wo

Re: CGI Tutorial

2006-10-04 Thread Gerold Penz
Clodoaldo Pinto Neto schrieb: > > http://webpython.codepoint.net > Great tutorial -- Thanks a lot!!! :D -- Gerold Penz - bcom - Programmierung [EMAIL PROTECTED] | http://gerold.bcom.at | http://sw3.at Ehrliche, herz

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

2006-10-04 Thread Tim Peters
[Ben Finney] >> I don't see why you're being so obtuse [Terry Reedy] > I think name calling is out of line here. Name calling is always out of line on comp.lang.python. Unless it's done by Guido. Then it's OK. Anyone else, just remind them that even Hitler had better manners. That always calm

Re: Hands on Documentation for Python methods and Library

2006-10-04 Thread Gabriel Genellina
At Thursday 5/10/2006 01:54, Wijaya Edward wrote: One can do the following with Perl $ perldoc -f chomp $ perldoc -f function_name or $ perldoc List::MoreUtils $ perldoc Some::Module Can we do the same thing in Python? s/perl/py/g See the pydoc module. Gabriel Genellina Softlab SRL

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

2006-10-04 Thread Ben Finney
Steve Holden <[EMAIL PROTECTED]> writes: > And I'd prefer it if you'd drop this subject. So, if you have > nothing new to say, kindly leave it. I'm happy to, but: > You appear to be prepared to go to any length short of providing > effort to support the open source tracker. This was addressed i

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

2006-10-04 Thread Fredrik Lundh
Steve Holden wrote: > Excellent. I've just complained elsewhere in this thread that those > dissenting didn't appear to want to rectify the situation by offering > their time. It would be nice to be wrong about that. the dissenting won't contribute a thing, of course. they never ever do. bu

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

2006-10-04 Thread Steve Holden
Ilias Lazaridis wrote: > Giovanni Bajo wrote: > >>Hello, >> >>I just read this mail by Brett Cannon: >>http://mail.python.org/pipermail/python-dev/2006-October/069139.html >>where the "PSF infrastracture committee", after weeks of evaluation, >>recommends >>using a non open source tracker (called

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

2006-10-04 Thread Steve Holden
Fredrik Lundh wrote: > Steve Holden wrote: > > >>>you're not on the infrastructure list, I hear. python.org could still need a >>>few more roundup volunteers, but it's not like nobody's prepared to con- >>>tribute manhours. don't underestimate the community. >>> >> >>No, I'm not on the infrastr

Re: Definition of '1j'?

2006-10-04 Thread Gabriel Genellina
At Wednesday 4/10/2006 21:43, [EMAIL PROTECTED] wrote: I'm wondering how/where the syntax for, e.g., 1j is defined. Is it something I can define myself? In particular, I make very heavy use of Nope - it's hardcoded inside the parser (see tokenizer.c) a complex unit other than j (I'll call

Re: Urlnames in urllib2

2006-10-04 Thread Gabriel Genellina
At Wednesday 4/10/2006 21:03, goyatlah wrote: I'm trying to figure out how to get the exact opened url after a urlopen in urllib2. Say you have a link : http://myhost/mypath : what do I get back, - the file mypath on myhost - the file index.html on myhost/mypath, - or maybe something else. You

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

2006-10-04 Thread Steve Holden
Terry Reedy wrote: > "Ben Finney" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>The whole point of moving *from* SF *to* another bug tracker is to >>improve the situation, surely. > > > The current situation is that the limitations and intermittant failures of > the SF trac

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

2006-10-04 Thread Fredrik Lundh
Steve Holden wrote: > You appear to be prepared to go to any length short of providing effort > to support the open source tracker. http://www.userland.com/whatIsStopEnergy -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary of list from a file

2006-10-04 Thread Peter Otten
[EMAIL PROTECTED] wrote: > d = {} > for line in [l[:-1] for l in file('test.txt', 'rU') if len(l)>1]: > k,v = line.split() > d.setdefault(k,[]).append(v) Try that with a test.txt where the last line has no newline. Peter -- http://mail.python.org/mailman/listinfo/python-list

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

2006-10-04 Thread Steve Holden
Ben Finney wrote: > "David Goodger" <[EMAIL PROTECTED]> writes: > > >>Look at the results again. Jira and RoundUp tied for functionality, >>but Jira has a hosting/admin offer behind it. That's huge. But >>rather than declaring Jira the outright winner, which they could >>have done, the committee

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

2006-10-04 Thread Martin v. Löwis
Ben Finney schrieb: >> Giovanni Bajo schrieb: >>> It is an extremely bad picture for an open source flag like Python >>> to go to a vendor for such an easy requirement as a bug database. >> You fail to recognize that Python is *already* using a non-free software >> for bug tracking, as do thousands

Re: How to ask sax for the file encoding

2006-10-04 Thread Fredrik Lundh
Martin v. Löwis wrote: > A common problem is to save the data in the same encoding that they > original had; this is what an editor typically does (you may know > Edward Ream for writing editors). XML parsers are notoriously bad > in supporting editors. There are too many lexical details that may

Re: Hands on Documentation for Python methods and Library

2006-10-04 Thread Dan Bishop
On Oct 4, 11:54 pm, Wijaya Edward <[EMAIL PROTECTED]> wrote: > Hi, > > One can do the following with Perl > > $ perldoc -f chomp > $ perldoc -f function_name > > or > > $ perldoc List::MoreUtils > $ perldoc Some::Module > > Can we do the same thing in Python? You can use the help() function at the

Hands on Documentation for Python methods and Library

2006-10-04 Thread Wijaya Edward
Hi, One can do the following with Perl $ perldoc -f chomp $ perldoc -f function_name or $ perldoc List::MoreUtils $ perldoc Some::Module Can we do the same thing in Python? -- Edward SINGAPORE Institute For Infocomm Research - Disclaimer - This email is conf

Re: Definition of '1j'?

2006-10-04 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I'm wondering how/where the syntax for, e.g., 1j is defined. http://docs.python.org/ref/imaginary.html -- http://mail.python.org/mailman/listinfo/python-list

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

2006-10-04 Thread John Salerno
John Machin wrote: > And you *still* haven't answered the basic question: > > ** > *** What is the error message that you get ??? *** > ** > I'm not sure what you're asking for here.

Boa Constructor error: "No section:editor"

2006-10-04 Thread Archana Kumar
Hi, I try to open a Boa Constructor's instance when an error message : "No section:editor" (in a pop up window) is being thrown. I can see on the console that the last message shown is "running main" I also tried reinstalling Boa (0.4.4 Release)as well as Python (ver 2.4.3), but the problem still

Re: socket client server... simple example... not working...

2006-10-04 Thread Jean-Paul Calderone
On 4 Oct 2006 19:31:38 -0700, SpreadTooThin <[EMAIL PROTECTED]> wrote: >client: > >import socket >s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >s.connect(("192.168.1.101", 8080)) >print 'Connected' >s.send('ABCD') Here you didn't check the return value of send to determine if all of the

Re: PATCH: Speed up direct string concatenation by 20+%!

2006-10-04 Thread Nicko
Larry Hastings wrote: > It's *slightly* slower for two: > > def addTwoThings(a, b): > return a + b > for i in range(1000): > x = addTwoThings("aaa", "bbb") ... > But starts paying off already, even with three: > > def addThreeThings(a, b, c): > return a + b + c > for i in range(1000

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

2006-10-04 Thread John Machin
John Salerno wrote: > John Machin wrote: > > > 6. Fire up a Comamnd Prompt window, and type this in: > > > > \windows\hh \python25\doc\python25.chm > > \windows\hh \windows\help\whatever.chm > > I tried this and got the same error. This is really upsetting. So that indicates that the problem is c

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

2006-10-04 Thread John Salerno
John Machin wrote: > 4. Have you done a full virus and spy-ware scan? Do you regularly > install Windows updates from Microsoft? Well, this is certainly the last thing I expected to work, but it did! There was something called an IECache cookie (which I've actually had before) and after removin

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

2006-10-04 Thread Ilias Lazaridis
Robert Kern wrote: > Giovanni Bajo wrote: > > Hello, > > > > I just read this mail by Brett Cannon: > > http://mail.python.org/pipermail/python-dev/2006-October/069139.html > > where the "PSF infrastracture committee", after weeks of evaluation, > > recommends > > using a non open source tracker (

Block Structure Parsing

2006-10-04 Thread Blacktiger
Hi all, I'm new to this list because I had a question about parsing python block structure. I am taking a programming languages course this semester and for our final project we are writing an interperator in scheme(awful language) for whatever language that we want. The language that I want to do

socket client server... simple example... not working...

2006-10-04 Thread SpreadTooThin
client: import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(("192.168.1.101", 8080)) print 'Connected' s.send('ABCD') buffer = s.recv(4) print buffer s.send('exit') server: serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serversocket.bind(("192.168.1.1

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

2006-10-04 Thread Aahz
In article <[EMAIL PROTECTED]>, Giovanni Bajo <[EMAIL PROTECTED]> wrote: > >I wonder why the PSF infrastructure committee believes that a group of 6-10 >people is needed to "install and maintain" Roundup. Because Roundup has been "the answer" for at least two or three years, but somehow it never

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

2006-10-04 Thread John Salerno
John Machin wrote: > 6. Fire up a Comamnd Prompt window, and type this in: > > \windows\hh \python25\doc\python25.chm > \windows\hh \windows\help\whatever.chm I tried this and got the same error. This is really upsetting. -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary of list from a file

2006-10-04 Thread limodou
On 4 Oct 2006 13:11:15 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > limodou wrote: > > here is my program > > > > d = {} > > for line in file('test.txt'): > > line = line.strip() > > if line: > > k, v = line.strip().split() > > d.setdefault(k, []).append(v) > > prin

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

2006-10-04 Thread Ben Finney
"Terry Reedy" <[EMAIL PROTECTED]> writes: > "Ben Finney" <[EMAIL PROTECTED]> wrote: > > I don't see why you're being so obtuse > I think name calling is out of line here. So do I, which is why I addressed observed actions instead. -- \ "I got a postcard from my best friend, it was a

Re: Where is Python in the scheme of things?

2006-10-04 Thread [EMAIL PROTECTED]
Carl Trachte wrote: > I came from a VB/VBA environment before using Python. My experience has > been that Python has a lot more free, pre-coded tools within its community > to do the sort of things I do in my job (geometric algorithms, date-time > functions, processing and accessing lists of item

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

2006-10-04 Thread Robert Hicks
Giovanni Bajo wrote: > Hello, > > I just read this mail by Brett Cannon: > http://mail.python.org/pipermail/python-dev/2006-October/069139.html > where the "PSF infrastracture committee", after weeks of evaluation, > recommends > using a non open source tracker (called JIRA - never heard before o

yet another "groupsofn" function (newbie entertainment)

2006-10-04 Thread David Isaac
I have not seen this posted and I kind of like it. Shared for entertainment value only. Alan Isaac PS Easily adapted if the residual group is not desired. def groupsofsize(iterable,size): itr = iter(iterable) c=count() for k,it in groupby(itr,lambda x:c.next()//size): yield tup

Re: CGI Tutorial

2006-10-04 Thread [EMAIL PROTECTED]
Several times you improperly spell "syntax" "sintax". Other than that it appears to be an excellent tutorial. Clodoaldo Pinto Neto wrote: > I'm just building a Python CGI Tutorial and would appreciate any > feedback from the many experts in this list. > > Regards, Clodoaldo Pinto Neto -- http:/

ANN: Tftpy 0.1 - Pure Python TFTP Library

2006-10-04 Thread msoulier
Announcing new project, Tftpy, a Pure Python TFTP implementation. About Release 0.1: == This is an initial release in the spirit of "release early, release often". Currently the sample client works, supporting RFC 1350. The server is not yet implemented, and RFC 2347 and 2348 supp

Re: filling a frame with a widget

2006-10-04 Thread jmdeschamps
Fredrik Lundh wrote: > Paolo Pantaleo wrote: > > >I have this code > > > > from Tkinter import * > > > > root=Tk() > > Button(root).pack(fill=BOTH) > > root.mainloop() > > > > I would expect the button filling all the client draw area of the > > Frame, but when I resize the root window the button

Re: Where is Python in the scheme of things?

2006-10-04 Thread Carl Trachte
I came from a VB/VBA environment before using Python. My experience has been that Python has a lot more free, pre-coded tools within its community to do the sort of things I do in my job (geometric algorithms, date-time functions, processing and accessing lists of items, scientific programming, et

Re: Where is Python in the scheme of things?

2006-10-04 Thread gord
A very lively feedback indeed. I appreciate most of the points discussed and will persevere with the language until I understand the more powerful aspects of it. Then I will try the GUIs that were mentioned. Many thanks, Gord. -- http://mail.python.org/mailman/listinfo/python-list

Definition of '1j'?

2006-10-04 Thread stephenhicks
Hi, I'm wondering how/where the syntax for, e.g., 1j is defined. Is it something I can define myself? In particular, I make very heavy use of a complex unit other than j (I'll call it 1k=exp(pi*1j/3)), and it would be terribly convenient to make my own complex class based on this unit, which wou

Long Tkinter Menu

2006-10-04 Thread Dustan
I don't know if this is because of Tkinter (ie Tk) itself or the Windows default way of handling things, but when I create a very long menu (my test is shown below), the way it displays is rather sucky; the menu stretches from the top of the moniter's window to the bottom (no matter the size of the

Re: Where is Python in the scheme of things?

2006-10-04 Thread Peter Decker
On 10/4/06, gord <[EMAIL PROTECTED]> wrote: > As a complete novice in the study of Python, I am asking myself where this > language is superior or better suited than others. For example, all I see in > the tutorials are lots of examples of list processing, arithmetic > calculations - all in a DOS-l

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

2006-10-04 Thread Terry Reedy
"Ben Finney" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The whole point of moving *from* SF *to* another bug tracker is to > improve the situation, surely. The current situation is that the limitations and intermittant failures of the SF tracker sufficiently impede the Python

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

2006-10-04 Thread John Machin
John Salerno wrote: > Keith Perkins wrote: > > > I used HTMLKit when I still used Windows, and liked it a lot. It's really > > a great HTML/PHP, etc. editor, if you can get past the front page. > > That being said (if I remember correctly) hh.exe is a part of htmlkit, and > > may have been the th

Re: Python crash when trying to generate an Excel worksheet with VBA macros

2006-10-04 Thread John Machin
Apologies in advance to anyone who gets this twice, but I posted this using Thunderbird over 11 hours ago and it's not showing up ... = On 4/10/2006 8:53 PM, dan_roman wrote: > Hi, > I developed a script with a nice interface in Tkinter that allows me to > edit some

Urlnames in urllib2

2006-10-04 Thread goyatlah
I'm trying to figure out how to get the exact opened url after a urlopen in urllib2. Say you have a link : http://myhost/mypath : what do I get back, - the file mypath on myhost - the file index.html on myhost/mypath, - or maybe something else. Snd what about the following: http;//myhost/index.htm

Re: Python crash when trying to generate an Excel worksheet with VBA macros

2006-10-04 Thread Brian
dan_roman wrote: > Hi, > I developed a script with a nice interface in Tkinter that allows me to > edit some formulas and to generate an Excel worksheet with VBA macros > within it. The script runs perfectlly in Office 2000, but in Office > 2003 crash at line: "wbc = workbook.VBProject.VBComponents

Re: string: __iter__()?

2006-10-04 Thread Terry Reedy
"mrquantum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sorry, was to hasty by saying "... don't support the iteration > protocol'! Sure they do, as the iter('SomeString') function or the > construction for c in 'SomeString' show. > > It's just not implemented by a __iter__ meth

Curses and menus...

2006-10-04 Thread Roberto Bechtlufft
I'm trying hard to create my first useful python program: an rss reader in curses. I wrote some really ugly code to create a highlighting menu: the opprions are laid on the screen, and then pressing up and down i move a white bar to mark the item. Kind of like dialog menus. But the code is REALLY

Re: Where is Python in the scheme of things?

2006-10-04 Thread Rob Knapp
On Wed, 2006-10-04 at 16:21 -0400, gord wrote: > What is particularly disappointing is the absence of a Windows IDE, > components and an event driven paradigm. How does Python stand relative to > the big 3, namely Visual C++, Visual Basic and Delphi? I realize that these > programming packages

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

2006-10-04 Thread Ilias Lazaridis
Giovanni Bajo wrote: > Hello, > > I just read this mail by Brett Cannon: > http://mail.python.org/pipermail/python-dev/2006-October/069139.html > where the "PSF infrastracture committee", after weeks of evaluation, > recommends > using a non open source tracker (called JIRA - never heard before o

Re: Where is Python in the scheme of things?

2006-10-04 Thread Larry Bates
gord wrote: > As a complete novice in the study of Python, I am asking myself where this > language is superior or better suited than others. For example, all I see in > the tutorials are lots of examples of list processing, arithmetic > calculations - all in a DOS-like environment. > > What is

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

2006-10-04 Thread John Salerno
Keith Perkins wrote: > I used HTMLKit when I still used Windows, and liked it a lot. It's really > a great HTML/PHP, etc. editor, if you can get past the front page. > That being said (if I remember correctly) hh.exe is a part of htmlkit, and > may have been the the cause of your problem by makin

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

2006-10-04 Thread Ben Finney
"David Goodger" <[EMAIL PROTECTED]> writes: > Look at the results again. Jira and RoundUp tied for functionality, > but Jira has a hosting/admin offer behind it. That's huge. But > rather than declaring Jira the outright winner, which they could > have done, the committee has allowed the community

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

2006-10-04 Thread Ben Finney
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > Giovanni Bajo schrieb: > > It is an extremely bad picture for an open source flag like Python > > to go to a vendor for such an easy requirement as a bug database. > > You fail to recognize that Python is *already* using a non-free software > for bug

Re: Where is Python in the scheme of things?

2006-10-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, hg <[EMAIL PROTECTED]> wrote: . . . >Code in Python and decide for yourself ... but again, nowadays, you're >to compare with C#, VB ... if you want to be in; that is. > >hg > One of the points

Re: Where is Python in the scheme of things?

2006-10-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, James Stroud <[EMAIL PROTECTED]> wrote: . . . >I'm a complete windows novice (as in I've forced myself to forget my >experiences with it), but does windows not run vim?

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

2006-10-04 Thread Ben Finney
"fuzzylollipop" <[EMAIL PROTECTED]> writes: > Giovanni Bajo wrote: > > the "PSF infrastracture committee", after weeks of evaluation, > > recommends using a non open source tracker (called JIRA - never > > heard before of course) for Python itself. > > > > Does this smell "Bitkeeper fiasco" to any

Re: PEP 358 and operations on bytes

2006-10-04 Thread John Machin
Fredrik Lundh wrote: > John Machin wrote: > > > But not on other integer subtypes. If regexps should not be restricted > > to text, they should work on domains whose number of symbols is greater > > than 256, shouldn't they? > > they do: > > import re, array > > data = [0, 1, 1, 2] > > array_type

Re: How to ask sax for the file encoding

2006-10-04 Thread Martin v. Löwis
Irmen de Jong schrieb: > As others have tried to explain, the encoding in the xml header is > not part of the document data itself, it says something about the data. > It would be a bad design decision imo to rely on this meta information > if you really meant that information to be part of the dat

RE: Where is Python in the scheme of things?

2006-10-04 Thread Demel, Jeff
Tim Chase wrote: > >Visual Basic compared to Python >--- >VB shares some interesting aspects with Python...namely it's much >more readable than the other two. It's syntax is clunky at best, >with goto's, and cobbled-on exception handling (at least in >VB-Classic, as oppo

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

2006-10-04 Thread Martin v. Löwis
Fredrik Lundh schrieb: > what I was trying to say (between the lines) was that not only have > the people on that list worked hard to do the evaluation (not to mention > all the developers around the world that has worked even harder to set > up test trackers) That cannot be praised enough. Specia

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

2006-10-04 Thread Keith Perkins
On Wed, 04 Oct 2006 16:34:43 +, Dennis Lee Bieber wrote: > On Wed, 04 Oct 2006 15:55:11 GMT, John Salerno > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >> the files in a day or two). All I've installed/uninstalled since then >> was HTML Kit. I'm not on a network, it's

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

2006-10-04 Thread Martin v. Löwis
Giovanni Bajo schrieb: >> * A data export is available if we decide to switch. [...] > > Out of curiosity, how is this obtained? Is this any plan to take a daily > export > or so? Exactly so. Atlassian would generate a daily dump, and we would copy it to a machine on python.org with a cron job.

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

2006-10-04 Thread Martin v. Löwis
Paul Rubin schrieb: > True, though GPL 3 tries to address that. Most important is to figure > out the underlying attitude of the host. I realize it's the same > crufty software (or worse) as SF and therefore maybe not so attractive > on those grounds already, but did you think about migrating to

Re: A Universe Set

2006-10-04 Thread Wildemar Wildenburger
Jorgen Grahn wrote: > - the wildcard object, which compares equal to everything else > - infinite xrange()s > - the black hole function 'def f(*args): pass' > - the identity function 'def f(x): return x' Any use cases for these? -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary of list from a file

2006-10-04 Thread Mirco Wahab
Thus spoke Paul McGuire (on 2006-10-04 17:34): > <[EMAIL PROTECTED]> wrote in message >> this is my first post. my "programming" background is perlish > I'll see your perlish line noise, and raise you this obfuscapython: :) > > data = """\ > 2 1 2 3 4 > 7 7 8 9 10 > 5 1 3 5 7 9 > 2 6 8 10""".s

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

2006-10-04 Thread David Goodger
Giovanni Bajo wrote: > You're cherry picking your quotes: > > """ > In order for Roundup to be considered equivalent in terms of an overall > tracker package there needs to be a sufficient number of volunteer admins > (roughly 6 - 10 people) who can help set up and maintain the Roundup > installati

Re: sax barfs on unicode filenames

2006-10-04 Thread Martin v. Löwis
Fredrik Lundh schrieb: > Martin v. Löwis wrote: > >> Yes. While you can pass Unicode strings as file names to many Python >> functions, you can't pass them to Expat, as Expat requires the file name >> as a byte string. Hence the error. > > sounds like a bug in the xml.sax layer, really (ET also u

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

2006-10-04 Thread David Goodger
Giovanni Bajo wrote: > So we have a problem between the PSF and the "PSF infrastructure committee", > since the latter did not put "being written in Python" has a requirement for > the tracker. There was no problem. The committee had their mandate, to find the best candidate for a tracker for Pyth

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

2006-10-04 Thread Paul Rubin
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > That, in principle, could happen to any other free software as well. > What is critical here is that SF *hosted* the installation. If we would > use a tracker that is free software, yet hosted it elsewhere, the same > thing could happen: the hoster co

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

2006-10-04 Thread Fredrik Lundh
Steve Holden wrote: >> you're not on the infrastructure list, I hear. python.org could still need a >> few more roundup volunteers, but it's not like nobody's prepared to con- >> tribute manhours. don't underestimate the community. >> > No, I'm not on the infrastructure list, but I know that cap

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

2006-10-04 Thread Giovanni Bajo
David Goodger wrote: > Go back to the original announcement: > > """ > After evaluating the trackers on several points (issue creation, > querying, etc.), we reached a tie between JIRA and Roundup in terms of > pure tracker features. > """ > > JIRA gets a leg up because of the hosting and administ

Re: Where is Python in the scheme of things?

2006-10-04 Thread Thomas Jollans
On Wed, 4 Oct 2006 16:21:21 -0400 "gord" <[EMAIL PROTECTED]> wrote: > [...] all in a DOS-like environment. Python is an extremely multi-purpose language that is not dependant on GUIs or similiar riff-raff. It can be run in DOS or DOS-like systems, but that is your choice, not python's. Python ha

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

2006-10-04 Thread Giovanni Bajo
A.M. Kuchling wrote: >> The surprise people are expressing is because they thought one of the >> goals of a big open source project would be to avoid reliance on >> closed tools. > > I don't think Python has ever had this as a goal. Python's license > lets it be embedded in closed-source products

Re: Where is Python in the scheme of things?

2006-10-04 Thread Virgil Dupras
On Oct 4, 4:21 pm, "gord" <[EMAIL PROTECTED]> wrote: > As a complete novice in the study of Python, I am asking myself where this > language is superior or better suited than others. For example, all I see in > the tutorials are lots of examples of list processing, arithmetic > calculations - all

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

2006-10-04 Thread Martin v. Löwis
Paul Rubin schrieb: > "Martin v. Löwis" <[EMAIL PROTECTED]> writes: >> You fail to recognize that Python is *already* using a non-free software >> for bug tracking, as do thousands of other projects. > > I don't think that reflects an explicit decision. SF started out as > free software and the

Re: Where is Python in the scheme of things?

2006-10-04 Thread Tim Chase
Not sure if this is a troll...I've seen several of these sorts of posts on the list. But it seems innocent enough, so I'll bite. :) I'm not sure Delphi is really one of the "big 3"...surprisingly Java and C# don't make your list. > What is particularly disappointing is the absence of a Windows >

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

2006-10-04 Thread Giovanni Bajo
Paul Rubin wrote: >> You fail to recognize that Python is *already* using a non-free >> software for bug tracking, as do thousands of other projects. > > I don't think that reflects an explicit decision. SF started out as > free software and the software became nonfree after people were > already

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

2006-10-04 Thread Giovanni Bajo
Martin v. Löwis wrote: >> Frankly, I don't give a damn about the language the application is >> coded in > > That's probably one of the reasons why you aren't a member of the > Python Software Foundation. Its mission includes to publicize, > promote the > adoption of, and facilitate the ongoing de

Re: How to ask sax for the file encoding

2006-10-04 Thread Irmen de Jong
Edward K. Ream wrote: >> Please consider adding some elements to the document itself that > describe the desired output format, > > Well, that's what the encoding field in the xml line was supposed to do. As others have tried to explain, the encoding in the xml header is not part of the document

Re: What value should be passed to make a function use the default argument value?

2006-10-04 Thread Fredrik Lundh
Georg Brandl wrote: > This is an issue in most Python documentation: you're not told > if the described function is implemented in C, and if it is > keyword arg-enabled. The arguments must be given names though, > to be able to document them. the general rule is that if the documentation doesn't

Re: Find out the name of a variable passed as an argument

2006-10-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >Andreas Huesgen wrote: > >> is there a way to receive the name of an object passed to a function >> from within the function. > >objects don't have names, so in general, you cannot do that. see: > >http://pyfaq.infogami.co

Re: What value should be passed to make a function use the default argument value?

2006-10-04 Thread Georg Brandl
Paul Rubin wrote: > Antoon Pardon <[EMAIL PROTECTED]> writes: >> repeat(object[, times]) >> Make an iterator that returns object over and over again. Runs >> indefinitely unless the times argument is specified. ... >> >> My first impression from this, is that it is possible to call >> this

Re: How to ask sax for the file encoding

2006-10-04 Thread Martin v. Löwis
Edward K. Ream schrieb: > Can anyone tell me how the content handler can determine the encoding of the > file? Can sax provide this info? That's not supported in SAX. If you use Expat directly (module pyexpat), you can set the XmlDeclHandler, which is called when the XML declaration is received

Re: CGI Tutorial

2006-10-04 Thread Clodoaldo Pinto Neto
2006/10/4, Tim Chase <[EMAIL PROTECTED]>: > >> I'm just building a Python CGI Tutorial and would appreciate any > >> feedback from the many experts in this list. > > > > http://webpython.codepoint.net > > > Thanks! :) > > My first note would be regarding > > http://webpython.codepoint.net/shell_com

Re: Where is Python in the scheme of things?

2006-10-04 Thread hg
hg wrote: > gord wrote: >> As a complete novice in the study of Python, I am asking myself where this >> language is superior or better suited than others. For example, all I see in >> the tutorials are lots of examples of list processing, arithmetic >> calculations - all in a DOS-like environme

Re: sax barfs on unicode filenames

2006-10-04 Thread Fredrik Lundh
Martin v. Löwis wrote: > Yes. While you can pass Unicode strings as file names to many Python > functions, you can't pass them to Expat, as Expat requires the file name > as a byte string. Hence the error. sounds like a bug in the xml.sax layer, really (ET also uses Expat, and doesn't seem to ha

Re: Where is Python in the scheme of things?

2006-10-04 Thread hg
gord wrote: > As a complete novice in the study of Python, I am asking myself where this > language is superior or better suited than others. For example, all I see in > the tutorials are lots of examples of list processing, arithmetic > calculations - all in a DOS-like environment. > > What is

Re: Where is Python in the scheme of things?

2006-10-04 Thread Paddy
gord wrote: > As a complete novice in the study of Python, I am asking myself where this > language is superior or better suited than others. For example, all I see in > the tutorials are lots of examples of list processing, arithmetic > calculations - all in a DOS-like environment. > > What is pa

Re: switching to numpy and failing, a user story

2006-10-04 Thread Travis Oliphant
[EMAIL PROTECTED] wrote: > Travis E. Oliphant wrote: > > > Given the quality of python's (free) documentation and how good it's > been for a very long time, it's bit ironic to be using the phrase > "normal open-source documentation" on this mailing list. Numeric > python, which numpy aspires to b

Re: sax barfs on unicode filenames: workaround

2006-10-04 Thread Martin v. Löwis
Edward K. Ream schrieb: > Happily, the workaround is easy. Replace theFile with: > > # Use cStringIo to avoid a crash in sax when inputFileName has unicode > characters. > s = theFile.read() > theFile = cStringIO.StringIO(s) > > My first attempt at a workaround was to use: > > s = theFile.read

Re: Where is Python in the scheme of things?

2006-10-04 Thread James Stroud
gord wrote: > As a complete novice in the study of Python, I am asking myself where this > language is superior or better suited than others. For example, all I see in > the tutorials are lots of examples of list processing, arithmetic > calculations - all in a DOS-like environment. > > What is

Re: sax barfs on unicode filenames

2006-10-04 Thread Martin v. Löwis
Fredrik Lundh schrieb: > 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 ? Yes. While you can pass Unicode strings as file names to many Py

Re: py2app semi-standalone semi-works

2006-10-04 Thread James Stroud
Dave Opstad wrote: > 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 set

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

2006-10-04 Thread Martin v. Löwis
Paul Boddie schrieb: > Out of interest, here are some figures: > > KDE: 12983 bugs and 11656 wishes > GNOME: 23624 reports > Python: 7159 bugs, 3843 patches, 477 feature requests > > The Python figures are totals, whereas I can't be sure whether the KDE > and GNOME figures merely refer to t

Re: Where is Python in the scheme of things?

2006-10-04 Thread Fredrik Lundh
gord wrote: > What is particularly disappointing is the absence of a Windows IDE, > components and an event driven paradigm. How does Python stand relative to > the big 3, namely Visual C++, Visual Basic and Delphi? if you think those are the "big 3", you should perhaps start by asking yoursel

Re: How to ask sax for the file encoding

2006-10-04 Thread Edward K. Ream
> Try this: [snip] Parser.XmlDeclHandler = self.XmlDecl [snip] Excellent! Thanks so much. Edward Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -

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

2006-10-04 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: > No, actually switching trackers can be one big pain in the ass. You > probably aren't aware of how hard it's been for the Python development team > (I think Martin v. Loewis, mostly) to get tracker data out of SF. An > explicit requirement was that any tool chosen as

  1   2   3   4   >