Construct 1.25 released

2006-04-19 Thread tomerfiliba
Construct, the parsing made fun library this release focused on minor bugfixes and other small improvements http://pyconstruct.sourceforge.net http://pyconstruct.wikispaces.net -tomer -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software

itools 0.13.2 released

2006-04-19 Thread J. David Ibáñez
itools is a Python library, it groups a number of packages into a single meta-package for easier development and deployment: itools.catalogitools.i18n itools.uri itools.cmsitools.ical itools.web itools.csvitools.resources

ANNOUNCE: Optik 1.5.1

2006-04-19 Thread Greg Ward
Optik 1.5.1 is now available, just 16 months after I first planned to release it (sigh). (Optik is a command-line parsing library for Python, also known as optparse in the standard library; see http://optik.sourceforge.net/ for blurbs, docs, downloads, etc.) Changes since 1.5: * Fix so the

Re: multiline comments

2006-04-19 Thread Ben Finney
Atanas Banov [EMAIL PROTECTED] writes: Edward Elliott wrote: Saying coders shouldn't use multiline comments to disable code misses the point. Coders will comment out code regardless of the existence of multiline comemnts. There has to be a better argument for leaving them out. i beg

win32com Excel bug?

2006-04-19 Thread cfriedalek
I'm driving Excel from python, largely successfully. Now I'm trying to add errorbars to XY scatter plots. Keep getting a com_error. Can't track down the problem. I modified a simple example to duplicate the problem. Thanks to Mathieu Fenniak http://www.stompstompstomp.com/weblog/entries/67/ for

Re: Uniquifying a list?

2006-04-19 Thread Rene Pijlman
Tim Chase: Is there an obvious/pythonic way to remove duplicates from a list (resulting order doesn't matter, Use a set. http://www.python.org/doc/lib/types-set.html -- René Pijlman -- http://mail.python.org/mailman/listinfo/python-list

Re: multiline comments

2006-04-19 Thread Edward Elliott
Atanas Banov wrote: want to comment block of code? use tripple-quotes. does not nest? ahhh, maybe it's time to get rid of that block you commented out a month ago just in case the new code doesnt work. that gives you incentive to tidy up. don't be a code slob... don't leave a mess forever

Re: multiline comments

2006-04-19 Thread Edward Elliott
Ben Finney wrote: And/or switch to an editor that can perform editing operations on a range of lines. I'm not unsympathetic to this point of view, as I would feel hamstrung without my vim. It's more that I object to the paternalism of telling people they have to use such an editor. There

Re: difference between class and static methods?

2006-04-19 Thread Petr Prikryl
John Salerno wrote... [...] So a class method is specifically for using the class name itself as an object in the method? If that's the case, then it makes some sense now. I guess the reason I didn't get it before is that this is a feature of dynamic languages, right? And something that

Re: multiline comments

2006-04-19 Thread Edward Elliott
Ben Finney wrote: Indeed. Using revision control means never needing to comment out blocks of code. Typing (* and *) on a few line will always be quicker, easier, and less confusing than any rcs diffs/restores. Once you delete the code you can no longer see it or add pieces back in without

Re: CGI scripts

2006-04-19 Thread Tim Roberts
Jay [EMAIL PROTECTED] wrote: Can I use Python for CGI scripts. It is telling me to use Perl and I don't know any To be honest I don't really no what CGI scripts are (soz) I have purchased a domain name of my ISP PIPEX and 100MB space According to the Pipex web page, if you got their low-end

Re: removing cgi fieldstorage keys

2006-04-19 Thread Tim Roberts
Kun [EMAIL PROTECTED] wrote: i don't know what happened but all of a sudden, my cgi.fieldstorage has two extra keys, 'x' and 'y', does anyone know how i can remove them in python? If this is coming from a web site that you created, then you darned well better figure out where they're coming

Re: Queue can result in nested monitor deadlock

2006-04-19 Thread Ove Svensson
Jonathan Amsterdam [EMAIL PROTECTED] writes: No redesign necessary. I simply make M be the Queue's mutex, via the LQueue class I posted. I am making the modest suggestion that this feature be documented and exposed in the Queue class. Even though LQueue is the correct sollution to the

Re: Activating Batch Files from Python

2006-04-19 Thread Serge Orlov
Jeff Groves wrote: I'm writing a launcher that should do the following: 1. Activate a .bat file to set environmental variables. 2. Start 3 programs, using said environmental variables as arguments. However, I can't get the environmental variables to stick because all of Pythons' system

Re: Missing interfaces in Python...

2006-04-19 Thread Kay Schluehr
[EMAIL PROTECTED] wrote: I'm coming from a Java background, so please don't stone me... I see that Python is missing interfaces. The concept of an interface is a key to good programming design in Java, but I've read that they aren't really necessary in Python. I am wondering what technique I

Re: local greediness ???

2006-04-19 Thread John Machin
On 19/04/2006 3:09 PM, [EMAIL PROTECTED] wrote: hi, all. I need to process a file with the following format: $ cat sample [(some text)2.3(more text)4.5(more text here)] [(aa bb ccc)-1.2(kdk)12.0(xxxyyy)] [(xxx)11.0(bbb\))8.9(end here)] ... my goal here is for each line, extract every

Re: multiline comments

2006-04-19 Thread Lawrence D'Oliveiro
In article [EMAIL PROTECTED], Edward Elliott [EMAIL PROTECTED] wrote: ML has a very elegant system for nested comments with (* and *). Which, if you mistype an opening or closing comment symbol, can lead to some very mysterious syntax errors. --

Re: Activating Batch Files from Python

2006-04-19 Thread Lawrence D'Oliveiro
In article [EMAIL PROTECTED], Jeff Groves [EMAIL PROTECTED] wrote: How can I use the .bat file to set environmental vars from Python? How about sourcing it from a shell, then using that same shell instance to run the programs? -- http://mail.python.org/mailman/listinfo/python-list

Re: indirect import of standard module

2006-04-19 Thread Fredrik Lundh
BartlebyScrivener wrote: More accurately, it *does* import it twice, into two separate namespaces; If it's in two different namespaces, how can they have the same id number? they're mixing up the terminology. each loaded module has exactly one namespace, no matter how many times you

Re: freakin out over C++ module in python

2006-04-19 Thread Serge Orlov
[EMAIL PROTECTED] wrote: pyconstruct looks cool. i dont know if the classes are using the plain berkely-ish code. i couldn't find anything in it that pointed to send() recv(), such. i found other stuff like SetSocketOpt() and so on like this : long CClientSocket::ConnectToServer(LPCTSTR

Re: multiline comments

2006-04-19 Thread Duncan Booth
Edward Elliott wrote: Ben Finney wrote: Indeed. Using revision control means never needing to comment out blocks of code. Typing (* and *) on a few line will always be quicker, easier, and less confusing than any rcs diffs/restores. Once you delete the code you can no longer see it or

Re: scanning for numerals / letters

2006-04-19 Thread johnzenger
First, note that form[date] is all you need. form[date].value is redundant. I would do this with sets: import string if set(form[date]) set(string.ascii_letters) != set([]): print You have to enter a date with numbers if set(form[purchases]) set(string.digits) != set([]): print Please do not

Re: Missing interfaces in Python...

2006-04-19 Thread Rene Pijlman
Kay Schluehr: You won't find many deep class hierarchies and extensive frameworks. Zope comes to mind. This has the advantage that a classification you have done once at the beginning of your project in the design phase is not considered to be carved in stone. Zope 3 comes to mind. --

Re: local greediness ???

2006-04-19 Thread johnzenger
How about using the numbers as delimiters: pat = re.compile(r[\d\.\-]+) pat.split([(some text)2.3(more text)4.5(more text here)]) ['[(some text)', '(more text)', '(more text here)]'] pat.findall([(some text)2.3(more text)4.5(more text here)]) ['2.3', '4.5'] pat.split([(xxx)11.0(bbb\))8.9(end

Re: Missing interfaces in Python...

2006-04-19 Thread bruno at modulix
[EMAIL PROTECTED] wrote: (snip) Everyone is getting off track here. Not that much... Java has interfaces because it doesn't support multiple inheritance. Java as interfaces because it relies on type declaration for subtyping *and* doesn't support MI. Python supports MI, so you don't need

Re: Missing interfaces in Python...

2006-04-19 Thread bruno at modulix
Rene Pijlman wrote: Kay Schluehr: You won't find many deep class hierarchies and extensive frameworks. Zope comes to mind. This has the advantage that a classification you have done once at the beginning of your project in the design phase is not considered to be carved in stone.

Re: Updated PEP 359: The make statement

2006-04-19 Thread bruno at modulix
Steven Bethard wrote: (snip) Guido has pronounced on this PEP: http://mail.python.org/pipermail/python-3000/2006-April/000936.html Consider it dead. =) :( -- bruno desthuilliers python -c print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])

Re: 2.5 excitement (was Re: Java Developer Exploring Python)

2006-04-19 Thread Jon Ribbens
In article [EMAIL PROTECTED], Chris Lambacher wrote: At least on windows. PySqlite is statically linked with the sqlite library. This can be done because it is quite small. OK, well that makes sense, but why not on any other platform? -- http://mail.python.org/mailman/listinfo/python-list

Re: removing cgi fieldstorage keys

2006-04-19 Thread Diez B. Roggisch
Tim Roberts wrote: Kun [EMAIL PROTECTED] wrote: i don't know what happened but all of a sudden, my cgi.fieldstorage has two extra keys, 'x' and 'y', does anyone know how i can remove them in python? If this is coming from a web site that you created, then you darned well better figure out

Re: Missing interfaces in Python...

2006-04-19 Thread Ben
bruno at modulix wrote: Rene Pijlman wrote: Kay Schluehr: You won't find many deep class hierarchies and extensive frameworks. Zope comes to mind. This has the advantage that a classification you have done once at the beginning of your project in the design phase is not

Re: multiline comments

2006-04-19 Thread Roel Schroeven
Duncan Booth schreef: Would you care to name a few languages which support nested block comments? There really aren't many: ML as you mentioned; Standard Pascal doesn't permit nesting of comments but *some* implementations do allow it. Want to comment out a block of code in C++? The only

namespace question

2006-04-19 Thread Nugent, Pete (P.)
Title: namespace question Hi all, I'm confused by namespaces in python, specifically using the global keyword. I'm able to access and modify a global variable from a function if the function is defined in the same module but not if the function is defined in a different module: //File

Re: 2.5 excitement (was Re: Java Developer Exploring Python)

2006-04-19 Thread Jon Ribbens
In article [EMAIL PROTECTED], Fredrik Lundh wrote: Apologies if I'm being obtuse, but how does including the pysqlite wrapper module change anything? You still need to download and install SQLite I'm pretty sure the distributors will do this for you, just as they've included zlib, dbm,

Re: namespace question

2006-04-19 Thread Fredrik Lundh
Nugent, Pete (P.) wrote: I'm confused by namespaces in python, specifically using the global keyword. I'm able to access and modify a global variable from a function if the function is defined in the same module but not if the function s defined in a different module: global means not

Egg with option to install extra packages

2006-04-19 Thread Sebastjan Trepca
Hi, I'm trying to distribute my application which also support some extra libraries but does not require them to run. I set the extra option but I don't know how could I specify that I want to install my application with any of that extra packages. So now I have in my setup.py like this:

Re: multiline comments

2006-04-19 Thread Edward Elliott
Duncan Booth wrote: Want to comment out a block of code in C++? The only (nearly) reliable way is to insert single-line comments down the block. You can't use a block comment if there are any other block comments inside the code you want to block out. As Roel said, #if 0 is the standard

Re: multiline comments

2006-04-19 Thread Gregor Horvath
Edward Elliott schrieb: On top of that, the expressive power of nested comments seems greater than an endless string of ^#s. Sometimes it's just easier to see what's going on. not if you are using grep -- Gregor http://www.gregor-horvath.com --

Re: multiline comments

2006-04-19 Thread Peter Tillotson
Ben Finney wrote: Atanas Banov [EMAIL PROTECTED] writes: Edward Elliott wrote: Saying coders shouldn't use multiline comments to disable code misses the point. Coders will comment out code regardless of the existence of multiline comemnts. There has to be a better argument for leaving

Re: scanning for numerals / letters

2006-04-19 Thread Gerard Flanagan
Kun wrote: I have the following if statement that checks if a form is empty: if form.has_key(date) and form[date].value != : date=form['date'].value else: print ERROR: No date entered! raise Exception I would also like to add another if statement

Re: multiline comments

2006-04-19 Thread Jorge Godoy
Edward Elliott wrote: Typing (* and *) on a few line will always be quicker, easier, and less confusing than any rcs diffs/restores. Once you delete the code you can no longer see it or add pieces back in without retrieving it from an external store. Try using Subversion. You can work and

Re: multiline comments

2006-04-19 Thread Jorge Godoy
Edward Elliott wrote: Sure they can be abused. So can a thousand other language features. My point is you can't teach good coding through syntax, and trying to causes more problems than it solves. I like the phrase: there are some languages that incentivates bad practices in programming;

Re: win32com Excel bug?

2006-04-19 Thread Roger Upole
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm driving Excel from python, largely successfully. Now I'm trying to add errorbars to XY scatter plots. Keep getting a com_error. Can't track down the problem. I modified a simple example to duplicate the problem. Thanks to Mathieu

Re: multiline comments

2006-04-19 Thread Jorge Godoy
Peter Tillotson wrote: I'm not sure I agree, revision control is great but not the only answer. In multi-developer teams working on the trunk, it its kind of inconvenient if someone checks in broken code. It also blocks critical This is something that should be a policy: no untested and

Re: 2.5 excitement

2006-04-19 Thread Jay Parlar
On Apr 18, 2006, at 9:06 PM, Alex Martelli wrote: Funny timing coincidence: your 1st draft of Python for Dummies going in now, my 2nd edition of Python in a Nutshell just went to production, AND Wesley Chun's 2nd ed is also being finished this week. Three Baypiggies (or whatever we'll

Re: multiline comments

2006-04-19 Thread Jorge Godoy
Edward Elliott wrote: And when the section I want to comment out contains a legit doc string in the middle, triple-quotes won't work. There are valid reasons to nest You can use either or '''. I don't keep changing them in my code, so I can always use the other type (usually I use so for

Re: Writing backwards compatible code - when?

2006-04-19 Thread Kent Johnson
Bob Greschke wrote: Is there a list of all of the Python commands and modules that tell when (what version) they were added to Python? I was hoping the new Essential Reference would have it, but it doesn't. The Library Reference page for a module or built-in often documents the version

Re: Shell like syntax for subprocess.Popen # overloading , , |

2006-04-19 Thread Christos Georgiou
On 18 Apr 2006 05:00:55 -0700, rumours say that jelle [EMAIL PROTECTED] might have written: Hi Christos, Thanks for your pointers there, impressive to see -that a 12 year old thread still can make an interesting read -you being able to remember trace it... impressive... Thanks for your

Re: Missing interfaces in Python...

2006-04-19 Thread Roy Smith
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Alex Martelli) wrote: Roy Smith [EMAIL PROTECTED] wrote: Peter Maas [EMAIL PROTECTED] wrote: He probably means that with interfaces one could test compliance with the interface as a whole instead of testing each member and each

Pyrex installation on windows XP: step-by-step guide

2006-04-19 Thread Julien Fiore
Do you wand to install Pyrex on Windows ? Here is a step-by-step guide explaining: A) how to install Pyrex on Windows XP. B) how to compile a Pyrex module. Julien Fiore, U. of Geneva --- ### A) Pyrex installation on Windows XP ### #

Re: http request with cookie sending

2006-04-19 Thread Kent Johnson
itay_k wrote: Hi, I want to send a cookie on some http request (with urllib2), so I created a Cookie but I cant associate it with CookieJar object. You have to use a cookielib.Cookie, not Cookie.SimpleCookie(): import cookielib, urllib2 cj = cookielib.CookieJar() cookie =

Re: extracting a substring

2006-04-19 Thread Kent Johnson
[EMAIL PROTECTED] wrote: Hi, I have a bunch of strings like a53bc_531.txt a53bc_2285.txt ... a53bc_359.txt and I want to extract the numbers 531, 2285, ...,359. One thing for sure is that these numbers are the ONLY part that is changing; all the other characters are always fixed. In

Re: How protect proprietary Python code? (bytecode obfuscation?, what better?)

2006-04-19 Thread Ben Sizer
bruno at modulix wrote: [EMAIL PROTECTED] wrote: I suppose another idea is to rewrite entire Python app in C if compiled C code is harder to decompile. Do you really think native code is harder to reverse-engineer than Python's byte-code ? Yes, until there's a native code equivalent of

Re: multiline comments

2006-04-19 Thread Peter Tillotson
nice one Jorge :-) Jorge Godoy wrote: Peter Tillotson wrote: I'm not sure I agree, revision control is great but not the only answer. In multi-developer teams working on the trunk, it its kind of inconvenient if someone checks in broken code. It also blocks critical This is something

Re: mod_python web-dav management system

2006-04-19 Thread Kyler Laird
Damjan [EMAIL PROTECTED] writes: Now I've been thinking that it might be pretty easy to implement a authorization layer with mod_python (but living handling of the web-dav protocol to apache)... So, has anyone already done something similar? Yup. I'm in the process. I'm using mod_python to do

Re: mod_python web-dav management system

2006-04-19 Thread Kyler Laird
Damjan [EMAIL PROTECTED] writes: I wouldn't use Zope as file storage. The ZODB is inefficient for storing big files. It sounds like you're describing Zope FileStorage. There are certainly other options for Zope storage. I still use DirectoryStorage sometimes but Zope Local File System

Re: Telnet Server Lib

2006-04-19 Thread [EMAIL PROTECTED]
Does anybody have any ideas? -- http://mail.python.org/mailman/listinfo/python-list

Re: Shell like syntax for subprocess.Popen # overloading , , |

2006-04-19 Thread Serge Orlov
jelle wrote: Hi, I use python quite a bit to couple different programs together. Doing so has been a _lot_ easier since subprocess came around, but would really like to be able to use the succinct shell syntax; , , | That really shouldn't be too hard to wrap in a class, but so far I didn't

Re: Telnet Server Lib

2006-04-19 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: I have been working on a project for some time now, that has various types of admistrating including a CGI web interface, In a previous version I implemented a Psuedo-Telnet Server if you will, bassicly all it did was print text to the client, and expect back data, it

[OT] jEdit [was: Re: Why new Python 2.5 feature class C() return old-style class ?]

2006-04-19 Thread Wildemar Wildenburger
Ant wrote: (OT) I don't have the same issue with Syntax highlighting, and I use jEdit as my main Python editor (Though some of the dedicated Python IDE's have some nice refactoring/code completion stuff, none has the raw editing power of jEdit). Could be I got a customized python.xml file

help wanted regarding displaying Japanese characters in a GUI using QT and python

2006-04-19 Thread prats
I want to write a GUI application in PYTHON using QT. This application is supposed to take in Japanese characters. I am using PyQt as the wrapper for using QT from python. I am able to take input in japanese. But I am unable to display them back to GUI. It displays some junk characters Can anyone

Re: Ironpython book?

2006-04-19 Thread John Salerno
[EMAIL PROTECTED] wrote: Anyone know if there is a book for Ironpython in the works? A good knowledge of .NET and Python is enough to get started but just poking around Ironpython homepage it seems like there are some new language features added to handle some quirks with working within the

Re: local greediness ???

2006-04-19 Thread Paul McGuire
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi, all. I need to process a file with the following format: $ cat sample [(some text)2.3(more text)4.5(more text here)] [(aa bb ccc)-1.2(kdk)12.0(xxxyyy)] [(xxx)11.0(bbb\))8.9(end here)] ... my goal here is for each line,

problems installling scipy.weave on windows

2006-04-19 Thread Julien Fiore
Hi, I have problems trying to install the scipy.weave package. I run Python 2.4 on windows XP and my C compiler is MinGW. Below is the output of scipy.weave.test(). I read that the tests should last several minutes, but in my case it only lasts a few seconds. Thanks in advance for any help.

Re: semi-[OT]: adding a reply-to line to these mails?

2006-04-19 Thread Wildemar Wildenburger
Ben Finney wrote: Wildemar Wildenburger [EMAIL PROTECTED] writes: I've noticed that I replied to individual posters' private addresses several times now ... That's a much preferable, and much more easily corrected, error than the alternative: replying to the entire group what was

items in an array

2006-04-19 Thread [EMAIL PROTECTED]
Hi All - I am working on a project in which I generate an array of values (list_array). I need to use the values in this array to create list similar to the one below: list_array = [] list = item1,item2,itemN... I am having difficulty in getting the values out of the original array. I

Re: Missing interfaces in Python...

2006-04-19 Thread Neal Becker
[EMAIL PROTECTED] wrote: I'm coming from a Java background, so please don't stone me... I see that Python is missing interfaces. The concept of an interface is a key to good programming design in Java, but I've read that they aren't really necessary in Python. I am wondering what technique

Re: items in an array

2006-04-19 Thread Tim Chase
list_array = [] list = item1,item2,itemN... My first recommendation would be that you not use list as an identifier, as it's a builtin function. Odd bugs might start happening if you redefine it. I can get list to be how I want it if I use the index value as follows: list = (%s +

Re: Missing interfaces in Python...

2006-04-19 Thread Alex Martelli
Roy Smith [EMAIL PROTECTED] wrote: ... A class asserting, e.g., implements IPainter, doesn't thereby risk being accidentally misused where an IGunslinger is required (OTOH, implementing 1 of these IS a bother, but that's sort of inevitable). I suppose, but all you've really done is

Re: items in an array

2006-04-19 Thread Ant
If you just want the items concatenated with a comma separator, the following is what you need: list_arr = [one, two, three] list = ,.join(list_arr) print(list) one,two,three -- http://mail.python.org/mailman/listinfo/python-list

Re: items in an array

2006-04-19 Thread Renato
list_array = ['aaa','bbb','ccc'] for item in list_array: ... print item + ',', ... aaa, bbb, ccc, (notice the comma at the end of the print statement: this causes the suppression of the automatic newline) Is this what you need? -- Renato Ramonda --

Re: items in an array

2006-04-19 Thread Daniel Nogradi
I am working on a project in which I generate an array of values (list_array). I need to use the values in this array to create list similar to the one below: list_array = [] list = item1,item2,itemN... I am having difficulty in getting the values out of the original array. I have

Re: Missing interfaces in Python...

2006-04-19 Thread Roy Smith
Alex Martelli [EMAIL PROTECTED] wrote: Roy Smith [EMAIL PROTECTED] wrote: ... A class asserting, e.g., implements IPainter, doesn't thereby risk being accidentally misused where an IGunslinger is required (OTOH, implementing 1 of these IS a bother, but that's sort of inevitable). I

Re: items in an array

2006-04-19 Thread Shawn Kelley
Hi All - Thanks to everyone for their input. The repsonses provided are exactly what I was looking for! Regards - Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: Missing interfaces in Python...

2006-04-19 Thread Alex Martelli
Ben [EMAIL PROTECTED] wrote: ... It seems to me that a lot of python projects reimplement interfaces or adaption of some kind once they reach a certain size (Zope, PEAK, eggs, TurboGears, etc), which implies that they really do have some benefits, particularly in documentation. PEAK is an

Re: datetime question

2006-04-19 Thread Philippe Martin
:-) Thanks. Philippe Scott David Daniels wrote: Jorge Godoy wrote: Philippe Martin wrote: I need to get the date and time under Windows and Linux but need the information visible to the user (cannot find my words) not the sytem information (ex: a PC setup on greenwich but the date/time

Re: Ironpython book?

2006-04-19 Thread Alex Martelli
John Salerno [EMAIL PROTECTED] wrote: ... Just out of curiosity, is Python.NET a dead project? AFAIK, it's a long-completed research project. I do not know of anybody planning to fork it to a new project, though that of course does not rule out that somebody might be planning to do so. Alex

Re: items in an array

2006-04-19 Thread Sion Arrowsmith
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I can get list to be how I want it if I use the index value as follows: list = (%s + , + %s, ...) % (list_array[0], list_array[1], ... However, the list_array will never contain a constant number of items. So my dilema is how to loop/iterate through

Re: multiline comments

2006-04-19 Thread Sion Arrowsmith
Edward Elliott [EMAIL PROTECTED] wrote: On top of that, the expressive power of nested comments seems greater than an endless string of ^#s. Sometimes it's just easier to see what's going on. Really? Under what circumstances is it easier to see what's going on with start/end comments than with

Re: 2.5 excitement (was Re: Java Developer Exploring Python)

2006-04-19 Thread Fredrik Lundh
Jon Ribbens wrote: The distributors? Que? all the downstream people who work their asses off to provide pre- built, pre-tested distributions for various platforms. this includes the PSF volunteers, commercial actors, and a large crowd of linux/bsd volunteers. these days, most end users get

Re: multiline comments

2006-04-19 Thread Sion Arrowsmith
Jorge Godoy [EMAIL PROTECTED] wrote: Is it harder to remove n lines of code commented out with # than n lines of multiline commented code? How? I'd say it's harder to remove the latter, due to having to search for the end of comment sequence, rather than simply looking for where the block

accessing a classes code

2006-04-19 Thread Ryan Krauss
I have a set of Python classes that represent elements in a structural model for vibration modeling (sort of like FEA). Some of the parameters of the model are initially unknown and I do some system identification to determine the parameters. After I determine these unknown parameters, I would

Re: Ironpython book?

2006-04-19 Thread John Salerno
Alex Martelli wrote: John Salerno [EMAIL PROTECTED] wrote: ... Just out of curiosity, is Python.NET a dead project? AFAIK, it's a long-completed research project. I do not know of anybody planning to fork it to a new project, though that of course does not rule out that somebody might

Re: multiline comments

2006-04-19 Thread Jorge Godoy
Sion Arrowsmith wrote: I'd say it's harder to remove the latter, due to having to search for the end of comment sequence, rather than simply looking for where the block comment stops. And you've extra problems if you allow nested comments, because then you'll have to count how deep you've

Re: Ironpython book?

2006-04-19 Thread Fredrik Lundh
Alex Martelli wrote: Just out of curiosity, is Python.NET a dead project? AFAIK, it's a long-completed research project. I do not know of anybody planning to fork it to a new project, though that of course does not rule out that somebody might be planning to do so. brian's latest

Re: Ironpython book?

2006-04-19 Thread Alex Martelli
John Salerno [EMAIL PROTECTED] wrote: Alex Martelli wrote: John Salerno [EMAIL PROTECTED] wrote: ... Just out of curiosity, is Python.NET a dead project? AFAIK, it's a long-completed research project. I do not know of anybody planning to fork it to a new project, though that of

Re: 2.5 excitement (was Re: Java Developer Exploring Python)

2006-04-19 Thread Aahz
In article [EMAIL PROTECTED], Jon Ribbens [EMAIL PROTECTED] wrote: I guess I just don't get why the inclusion of the pysqlite wrapper is so exciting if all it's doing is changing the situation from Python does not come with a DB, but you can install extra software to provide one to Python does

Re: freakin out over C++ module in python

2006-04-19 Thread nephish
wow , thanks for the tips and the link.. i can at least see whats going on here. this project is beginning to look believable to me. i have another question.. later , in this same class, after it goes thru some error handling, it returns like this return COM_SUCCESS; but i cannot find where

Re: help wanted regarding displaying Japanese characters in a GUI using QT and python

2006-04-19 Thread David Boddie
[Posting via Google's web interface again and hoping that double newlines will prevent insane concatenation of lines...] prats wrote: I want to write a GUI application in PYTHON using QT. This application is supposed to take in Japanese characters. I am using PyQt as the wrapper for using

Re: Missing interfaces in Python...

2006-04-19 Thread Rene Pijlman
Alex Martelli: PEAK is an interesting counterexample, particularly since Philip Eby tends to be ahead of the curve: I never noticed PEAK before. Is it well worth studying? -- http://mail.python.org/mailman/listinfo/python-list

SQLite (with APSW) and transaction separate

2006-04-19 Thread Christian Stooker
Part one: == Hi ! I want to use SQLite database like the FireBird database: with big isolation level. What's that meaning ? I have an application that periodically check some input directory, process the elements in it, and copy them into a global database. It is like a daemon, working in

unrecognized command line option -Wno-long-double

2006-04-19 Thread Dean N. Williams
Dear Python and Mac Community, I have just successfully built gcc version 4.1.0 for my Mac OS X 10.4.6. gcc -v Using built-in specs. Target: powerpc-apple-darwin8.6.0 Configured with: /usr/local/src/gcc-4.1.0/configure Thread model: posix gcc version 4.1.0 When I try to build Python

Re: Ironpython book?

2006-04-19 Thread John Salerno
Alex Martelli wrote: Jim Hugunin. But, apparently, we're having communication problems. Since I say that Python.NET is a long-completed research project, what contradition do you find between that and your opinion that it [isn't] being developed/used anymore? Why should a research project,

Re: Ironpython book?

2006-04-19 Thread John Salerno
John Salerno wrote: But it sounds like, from Fred's post Fredrik. Have no idea why Fred slipped out. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Missing interfaces in Python...

2006-04-19 Thread Rene Pijlman
Neal Becker: I see various answers that Python doesn't need interfaces. OTOH, there are responses that some large Python apps have implemented them (e.g., zope). Does anyone have an explanation of why these large systems felt they needed to implement interfaces? A programming language doesn't

Re: accessing a classes code

2006-04-19 Thread Paul McGuire
Ryan Krauss [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] == I have a set of Python classes that represent elements in a structural model for vibration modeling (sort of like FEA). Some of the parameters of the model are initially unknown and I do some system

Re: 2.5 excitement (was Re: Java Developer Exploring Python)

2006-04-19 Thread Jon Ribbens
In article [EMAIL PROTECTED], Fredrik Lundh wrote: these days, most end users get their Python either with their OS, or by downloading a prebuilt installer. Oh, ok. I've just never heard such people referred to as the distributors before. It sounds like some sort of TV series! ;-) I guess I

Re: Java Developer Exploring Python

2006-04-19 Thread SPE - Stani's Python Editor
Can anyone recommend an open source IDE for Python that runs on Linux? A lot of SPE (http://pythonide.stani.be) users are on all kinds of Linux flavours (but also Mac OSX and windows). I've started to use SPE on Ubuntu. There could be some improvements. As soon as I have time I'll implement

Re: accessing a classes code

2006-04-19 Thread Diez B. Roggisch
Ryan Krauss wrote: I have a set of Python classes that represent elements in a structural model for vibration modeling (sort of like FEA). Some of the parameters of the model are initially unknown and I do some system identification to determine the parameters. After I determine these

Re: semi-[OT]: adding a reply-to line to these mails?

2006-04-19 Thread Kelvie Wong
Is there not a Reply to all function in Thunderbird? (and I'd go shopping for plugins for TB, if not) (Sorry, Wildemar, looks like I didn't click Reply to all :d) On 4/19/06, Wildemar Wildenburger [EMAIL PROTECTED] wrote: Ben Finney wrote: Wildemar Wildenburger [EMAIL PROTECTED] writes:

Re: accessing a classes code

2006-04-19 Thread Ryan Krauss
I think this is a lot like I am planning to do, except that the new classes will be dynamically generated and will have new default values that I want to specify before I write them to a file. But how do I do that? Ryan On 4/19/06, Paul McGuire [EMAIL PROTECTED] wrote: Ryan Krauss [EMAIL

  1   2   3   >