Re: Python obfuscation

2005-11-12 Thread Paul Rubin
The Eternal Squire [EMAIL PROTECTED] writes: Without copyright, how could one possibly earn a living writing a novel? This guy seems to be doing ok: http://craphound.com His publishers are the only ones allowed to sell his novels commercially, but you can download them all and print them out

Re: Addressing the last element of a list

2005-11-14 Thread Paul Rubin
Antoon Pardon [EMAIL PROTECTED] writes: We could then have something like the following. a = 5 b = a a @= 7 b == would result in 7. Ouch! :-((( Can't you live with a = [5] b = a a[0] = 7 so b[0] is now 7. -- http://mail.python.org/mailman/listinfo/python-list

Re: matching a string to extract substrings for which some function returns true

2005-11-22 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: put in a html page as the value of a hidden variable. And when i get the string again, i want to cast it back as list of tuples:... This is a serious security risk, as you can't trust the data not to do arbitrary things to your system when eval'ed. I'd

Re: the PHP ternary operator equivalent on Python

2005-11-23 Thread Paul Rubin
Steven D'Aprano [EMAIL PROTECTED] writes: dNewDataFields['CODE'] = dOldDataFields['CODEDATA'] dNewDataFields['DATE'] = dOldDataFields['DATE'] if dOldDataFields['CONTACTTYPE'] == 2: dNewDataFields['CONTACT'] = dOldDataFields['FIRSTCONTACT'] else: dNewDataFields['CONTACT'] =

Re: FTP over TLS

2005-11-23 Thread Paul Rubin
Carl Waldbieser [EMAIL PROTECTED] writes: Does anyone know of any good examples for writing client side code to upload files over a secure FTP connection? I am referring to FTPS, *not* SFTP, which I found out the hard way are two different things. I am not really all that familiar with FTPS,

Re: Why is dictionary.keys() a list and not a set?

2005-11-24 Thread Paul Rubin
[EMAIL PROTECTED] (Alex Martelli) writes: Peano's axioms are perfectly abstract, as far as I recall. Russell and Whitehead did try to construct naturals from sets (defining, e.g., '5' as the set of all sets with five items), but that was before the inherent contradictions of set theory were

Re: wxPython Licence vs GPL

2005-11-24 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: On the other hand, so long as the price is lower than the cost of recreating the software for someone, then it's better for society as a whole if it exists at all. I don't think that's correct. Having nothing can be better than having something, because

Re: Making immutable instances

2005-11-24 Thread Paul Rubin
[EMAIL PROTECTED] (Björn Lindström) writes: As I said before, I think you're confusing the (in Python pretty non-existent) concept of encapsulation with Python's immutable types, which are immutable because the implementation demands it. (A fact I hope will disappear at some point.) What

Re: Making immutable instances

2005-11-24 Thread Paul Rubin
Giovanni Bajo [EMAIL PROTECTED] writes: However, when you prevent a client from adding an attribute, you're not merely making your objects immutable, you're making them static. No I don't believe that. If an object is immutable, then obj.serialize() should return the same string every

Re: Making immutable instances

2005-11-25 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: There isn't a standard serialize method in Python, so I don't know how you want to define it. Well, consider pickle, for example. I can think of perfectly reasonable definitions of serialize where obj.serialize() won't always return the same string on an

Re: wxPython Licence vs GPL

2005-11-25 Thread Paul Rubin
Ed Jensen [EMAIL PROTECTED] writes: I think free software/open source has existed long enough and with enough varied licenses (GPL, LGPL, modified LGPL (see wxWidgets), BSD, X11, MIT, Apache, etc.) that we'd basically know without question if less restritive licenses (like BSD) were causing

Re: Python as Guido Intended

2005-11-26 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: Those two statements say the same thing. Part of the Python philosphy, from import this, is that there should only be one obvious way to do it. By enabling that part of Python's philosphy, you're automatically limiting python to not allow other -

Re: General question about Python design goals

2005-11-27 Thread Paul Rubin
Robert Kern [EMAIL PROTECTED] writes: Yes. If it's not going to be used, then there's not much point. Practicality beats purity, and all that. Geez man, practicality beats purity only means that if maintaining purity of something is impractical, you can judiciously let purity slide. It doesn't

Re: General question about Python design goals

2005-11-27 Thread Paul Rubin
Robert Kern [EMAIL PROTECTED] writes: Fine. Allow me to rephrase. Development is primarily motivated by practical needs and guided by notions of purity. That's bogus; if there was a discrepancy someone noticed and had to work around, there's already been a practical failure, just not a severe

Re: General question about Python design goals

2005-11-27 Thread Paul Rubin
Jean-Paul Calderone [EMAIL PROTECTED] writes: I can't think of a single use case for the addition (+) operator working where either of the operands happens to be the number 0x15f1ef02d9f0c2297e37d44236d8e8ddde4a34c96a8200561de00492cb94b82 (a random number I just got out of /dev/urandom). If

Re: Death to tuples!

2005-11-27 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: The new intended use is as an immutable sequence type, not a lightweight C struct. The new name to denote this new use - following in the footsteps of the set type - is frozenlist. The changes to the implementation would be adding any non-mutating methods

Re: wxPython Licence vs GPL

2005-11-28 Thread Paul Rubin
Steven D'Aprano [EMAIL PROTECTED] writes: If you want me to agree that the GPL puts more conditions on distribution than the MIT/BSD licence, then I'll happily agree. If you want me to describe that as a restrictive licence, then I refuse. With the GPL, you get a slight restriction from the

Re: wxPython Licence vs GPL

2005-11-28 Thread Paul Rubin
Paul Rubin http://[EMAIL PROTECTED] writes: With the GPL, you get a slight restriction from the GPL author (you're not allowed to redistribute the binary unless you offer source). Forgot to add: and under the GPL, you must not threaten to have the goverment clobber people for redistributing

Re: Death to tuples!

2005-11-28 Thread Paul Rubin
[EMAIL PROTECTED] writes: For those of us not following this thread closely, can you identify cases where tuples are mutable, not hashable or can't be used as dictionary keys? I've never encountered any such cases. t = ([1,2], [3,4]) -- http://mail.python.org/mailman/listinfo/python-list

Re: FTP over TLS

2005-11-28 Thread Paul Rubin
adam [EMAIL PROTECTED] writes: I'm not 100% sure whether this answers your problem, but I would ignore getting a special TLS module and just concentrate on the ftp side of the protocol. If your connection to your ftp server must be in TLS, you could modify you socket module similar to how I

Re: Death to tuples!

2005-11-28 Thread Paul Rubin
Paddy [EMAIL PROTECTED] writes: I would consider t = ([1,2], [3,4]) to be assigning a tuple with two list elements to t. The inner lists will be mutable but I did not know you could change the outer tuple and still have the same tuple object. Whether t is mutable is a question of

Re: return in loop for ?

2005-11-28 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: Which means you can't create a verifier which will verify all programs. Is there a reason to believe that you can't have a verifier with three possible outcomes: Correct, Incorrect, and I don't know, and it is always correct in doing so? Note that I don't

Re: return in loop for ?

2005-11-28 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: Which means you can't create a verifier which will verify all programs. Is there a reason to believe that you can't have a verifier with three possible outcomes: Correct, Incorrect, and I don't know, and it is always correct in doing so? Note that I

Re: return in loop for ?

2005-11-28 Thread Paul Rubin
Steven D'Aprano [EMAIL PROTECTED] writes: I don't know what the state of the art is, but I suspect it will be a long, long time before it is as easy as running import mymodule; verify(mymodule). Some pretty significant pieces of software have been formally verified to meet their formal

Re: General question about Python design goals

2005-11-28 Thread Paul Rubin
Peter Hansen [EMAIL PROTECTED] writes: Christoph Zwerschke wrote: Ok, these are nice aphorisms with some truth. But I had to think of the German excuse Wer Ordnung hält ist nur zu Faul zum Suchen - ein Genie überblickt das Chaos. (Those who try to keep things tidy are just too lazy to

Re: Instantiating classes which are derived from built-in types.

2005-11-28 Thread Paul Rubin
[EMAIL PROTECTED] (Alex Martelli) writes: A is oldstyle -- a wart existing for backwards compatibility. I think it's time for from __future__ import newclasses since I hate having to type class A(object): instead of class A: all over the place. --

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
Robert Kern [EMAIL PROTECTED] writes: It's a draft, but it contains useful information. Also, Larry Rosen's book _Open Source Licensing_ is quite helpful (and free!). http://rosenlaw.com/oslbook.htm That is the guy who claims it is impossible to release anything into the public domain,

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
mojosam [EMAIL PROTECTED] writes: I will be doing the bulk of the coding on my own time, because I need to be able to take these tools with me when I change employers. However, I'm sure that in the course of using these tools, I will need to spend time on the job debugging or tweaking them. I

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
Andrew Koenig [EMAIL PROTECTED] writes: Definitely not. The most recent change to the copyright laws made works of music recorded to fullfill a contract work for hire by default. If there's a contract -- i.e., a written agreement, then why does it matter? Music recordings of that type

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
Robert Kern [EMAIL PROTECTED] writes: Is that why the CC Public Domain Dedication has the subtitle Copyright-Only Dedication (based on United States law) or Public Domain Certification? Lessig isn't sure. E.g. http://www.lessig.org/blog/archives/001066.shtml Hmm, interesting, thanks.

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
Paul Rubin http://[EMAIL PROTECTED] writes: Lessig isn't sure. E.g. http://www.lessig.org/blog/archives/001066.shtml Hmm, interesting, thanks. Bah, the CC link from there leads to a Zope crash (at least right now): http://creativecommons.org/license/publicdomain-direct KeyError Sorry

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
Robert Kern [EMAIL PROTECTED] writes: This is the current URL: http://creativecommons.org/licenses/publicdomain/ Thanks, yeah, I remember seeing that, which is what made me say that CC recognized PD dedications (at least in the US--it's unreasonable to expect to account for every weird law

Re: wxPython Licence vs GPL

2005-11-29 Thread Paul Rubin
Steven D'Aprano [EMAIL PROTECTED] writes: if I owned a company making profit on software sales (sale =! support) you sign a death wish for using GPL Apart from Microsoft, and possibly Quark (makers of Quark Express desktop packaging software), and perhaps a few console game developers, is

Re: python number handling - tiny encryption algorithm

2005-11-29 Thread Paul Rubin
Kinsley Turner [EMAIL PROTECTED] writes: In my version, I end up with hugely long integers, which have obviously not be constrained into the 4-byte unsigned longs that TEA is expecting. Yeah, Python promotes to long int now. The simplest way to do the 32-bit arithmetic you need is probably

Re: Dive into Python PDF

2005-11-29 Thread Paul Rubin
Franz Mueller [EMAIL PROTECTED] writes: is there a nicer looking version of the Dive into Python PDF? The one from diveintopython.org looks horrible, much worse than the web-version; also the images aren't where they should be. The one there looks ok to me, though I'm not sure what it's

Re: Making immutable instances

2005-11-29 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: When it was suggested that a facility for doing this be added to the language, I asked for a use case for it. Nobodies come up with a reason for placing such restriction on the client yet. If you've got a use case, I'd be interested in hearing it. I see it

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
Steven D'Aprano [EMAIL PROTECTED] writes: Then probably the best licence to use is just to follow the lead of Python. For that sort of small program of limited value, I put something like this in the code: Copyright (c) 2005 Steven D'Aprano. Released under the same license as used by Python

Re: General question about Python design goals

2005-11-29 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: But a programming language (or UI) is not just a collection of syntax and and interfaces - it's an implementation. You need to keep in mind that practicality beats purity. An awful lot of the time in this newsgroup, practicality beats purity translates as

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: Definitely not. The most recent change to the copyright laws made works of music recorded to fullfill a contract work for hire by default The default applies if the contract doesn't say who owns the work. This was a move by the recording companies

Re: Making immutable instances

2005-11-29 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: Letting the class author declare whether or not the client can add attributes is wrong for the same reasons - and in the same places - that letting the class author declare that the client shouldn't be allowed to access specific attributes, and so on, is

Re: General question about Python design goals

2005-11-29 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: An awful lot of the time in this newsgroup, practicality beats purity translates as the programmer can just be a lazy slob. You post that as if it were a bad thing. Yes. The idea of using a program that someone else wrote, is that they do the work so I

Re: sha1,256,512 on files

2005-11-30 Thread Paul Rubin
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: I see that Python supports the sha-1. But I need to make sha value in big files to (swap file, iso-s, etc.). Possible that file size more than 2 GB, so I cannot read as string... How to get the sha value of a file ? Use the sha.update method.

Re: Help With Hiring Python Developers

2004-12-05 Thread Paul Rubin
[EMAIL PROTECTED] (Michael Fuhr) writes: Indeed. An acquaintance of mine advocates writing code that only skilled programmers can maintain (he favors a language that shall remain nameless but that has been known to resemble modem noise or cartoon swearing). TECO? Some of the best

Re: Mean, median, and mode

2004-12-06 Thread Paul Rubin
Josiah Carlson [EMAIL PROTECTED] writes: median = lambda x: x.sort() or x[len(x)//2] That...is a really sneaky use of null return values. I like. :) Thank you, I'm just using a paradigm (exploiting lambdas) that I picked up while going through various functional programming modules.

Re: Sorting in huge files

2004-12-09 Thread Paul Rubin
Paul [EMAIL PROTECTED] writes: If you really want to know, my entries are elliptic curves and my hashing function is an attempt at mapping them to their Serre resdual representation modulo a given prime p. Now, for you to tell me something relevant about the data that I don't already know

Re: GUIs: wxPython vs. Tkinter (and others)

2004-12-10 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: I've never tried doing animation in TkInter. Qt provides timer devices that you can use to drive animations. I suspect that doing the same in TkInter would be noticably more difficult. Tkinter supports some kind of event that runs n millisecond (n is a

Re: Persistent objects

2004-12-12 Thread Paul Rubin
Max M [EMAIL PROTECTED] writes: Basically I wish there was a way to have persistent in-memory objects in a Python app, maybe a multi-process one. So you could have a persistent dictionary d, and if you sayd[x] = Frob(foo=9, bar=23) that creates a Frob instance and stores it in d[x].

Re: Persistent objects

2004-12-12 Thread Paul Rubin
Duncan Booth [EMAIL PROTECTED] writes: Have you looked at ZODB and ZEO? It does most of what you ask for, although not necessarily in the way you suggest. You're the second person to mention these, so maybe I should check into them more. But I thought they were garden-variety persistent object

Re: Persistent objects

2004-12-12 Thread Paul Rubin
Alan Kennedy [EMAIL PROTECTED] writes: Have you looked at Ian Bicking's SQLObject? http://sqlobject.org/ That sounds like Python object wrappers around SQL transactions. That's the opposite of what I want. I'm imagining a future version of Python with native compilation. A snippet like

Re: Persistent objects

2004-12-12 Thread Paul Rubin
Nigel Rowe [EMAIL PROTECTED] writes: Maybe POSH (http://poshmodule.sourceforge.net/) is what you want. Thanks, that is great. The motivation was somewhat different but it's clear that the authors faced and dealt with most of the same issues that were bugging me. I had hoped to avoid the use of

Re: Persistent objects

2004-12-13 Thread Paul Rubin
deelan [EMAIL PROTECTED] writes: this sounds like the orthogonal persistence of unununium python project: Thanks, I had something a little more conventional in mind, but I really enjoyed reading the unununium page. It's not often that I see someone doing something that interesting and far-out,

Re: while 1 vs while True

2004-12-13 Thread Paul Rubin
Raymond Hettinger [EMAIL PROTECTED] writes: It is unlike to before Py3.0. Making them constants would break the reams of compatability code: True, False = (1==1), (1!=1). I don't see why that particular statement needs to fail. The interpreter could permit assigning True=True or False=False

Re: How do I convert characters into integers?

2004-12-14 Thread Paul Rubin
Markus Zeindl [EMAIL PROTECTED] writes: Now I get every character with a loop: code buffer = for i in range(len(message)): ch = message[i-1:i] You mean ch = message[i] what you have does the wrong thing when i = 0. Here is the problem. I got a string with one character and I want

Persistent objects

2004-12-12 Thread Paul Rubin
I've had this recurring half-baked desire for long enough that I thought I'd post about it, even though I don't have any concrete proposals and the whole idea is fraught with hazards. Basically I wish there was a way to have persistent in-memory objects in a Python app, maybe a multi-process one.

Re: while 1 vs while True

2004-12-14 Thread Paul Rubin
Nick Coghlan [EMAIL PROTECTED] writes: Until this code: . import pdb . pdb.True = 0 . pdb.x = Darn writeable module dictionaries . from pdb import True . True 0 . from pdb import x . x 'Darn writeable module dictionaries' If Python really does behave that way, that bug should be fixed

Re: A rational proposal

2004-12-18 Thread Paul Rubin
[EMAIL PROTECTED] (Alex Martelli) writes: gmpy wraps GMP, which is covered by LGPL; therefore, gmpy itself is LGPL, and thus, sadly, cannot be included with python (otherwise, speaking as gmpy's author, I'd be glad to fix its design to meet your objections). There's no obstacle to including

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Paul Rubin
Steve Holden [EMAIL PROTECTED] writes: What does the app need to do? I'd try to make it web based unless there's a good reason not to. That's even if it just runs on the user's desktop; run the http listener on the localhost and let the user connect to it with a browser. I'm not sure

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Paul Rubin
Bulba! [EMAIL PROTECTED] writes: Reason 1: It would be somewhat complex to develop it using PHP (I have done some recon in that area) and using GUI on Windows is actually faster way of entering and editing data than via the Web browser I think. Well, I was concentrating more on

Re: Best GUI for small-scale accounting app?

2004-12-20 Thread Paul Rubin
Bulba! [EMAIL PROTECTED] writes: Your CherryPy powered web applications are in fact stand-alone Python applications embedding their own web server. You can deploy them anywhere you can run Python applications. - cool!! You might not really want a separate socket listener for each application.

Re: Best GUI for small-scale accounting app?

2004-12-21 Thread Paul Rubin
Dave Cook [EMAIL PROTECTED] writes: Web browser widgets seem pretty limited to me, though. You might not care. You don't even have something as simple as a combo box (i.e. an editable entry with a drop down), Just put an input field and a dropdown on the page. let alone the rich set of

Re: PHP vs. Python

2004-12-22 Thread Paul Rubin
JZ [EMAIL PROTECTED] writes: But pure speed is not the all. Python can scale better, If a system is fast enough on a single processor, it doesn't need to scale. -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda going out of fashion

2004-12-23 Thread Paul Rubin
Alan Gauld [EMAIL PROTECTED] writes: readability. Pythonic lambdas are just syntactic sugar in practice, Actually it's the other way around: it's named functions that are the syntactic sugar. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best GUI for small-scale accounting app?

2004-12-25 Thread Paul Rubin
McBooCzech [EMAIL PROTECTED] writes: I am the newbie in Python, so I am trying to find some usable GUI as well. But it looks to me there is a lot developers, beta-versions, tools etc. I have spent a lot of time trying to find which is the best one tool. But now it looks more confusing to me

Re: Complementary language?

2004-12-26 Thread Paul Rubin
HackingYodel [EMAIL PROTECTED] writes: Hello all! I'm learning to program at home. I can't imagine a better language than Python for this. The ideal situation, for me, would be to study two languages at the same time. It's less a matter of languages, than ways of approaching problems.

Re: Python on Linux

2004-12-26 Thread Paul Rubin
Austin [EMAIL PROTECTED] writes: On Red Hat 9, Python is installed by default and it's version is 2.2.2 If I want to upgrade Python to 2.3.4(newer version), how could I do? If I compile source code of Python, how do I uninstall the old version? I tried rpm packages but failed with dependence.

Re: Is it possible to open a dbf

2004-12-27 Thread Paul Rubin
John Fabiani [EMAIL PROTECTED] writes: I'm wondering if there is a module available that will open a dbf (actually sco foxpro 2.6) file under linux. Hopefully it will be DAPI 2.0 but I'll accept anything at this point. Yes, there is, I found such a thing with a minute or so of Google

Re: popen2, 3, 4 -- will closing all returned streams result in process termination?

2004-12-28 Thread Paul Rubin
[EMAIL PROTECTED] (Evgeni Sergeev) writes: Is there assurance that the process will terminate and not sit in memory orphaned, waiting on its stdin, for example? The process should receive an EOF. It will typically handle EOF by terminating, but that is not guaranteed. --

Re: Best GUI for small-scale accounting app?

2004-12-28 Thread Paul Rubin
Ed Leafe [EMAIL PROTECTED] writes: Here's the equivalent in Dabo: menu = dabo.ui.dMenu() itm = menu.append(Close Window, self, self.onCloseWindow) This still seems way too complicated. Why execute a bunch of separate statements when what you're trying to set up is a single structure? E.g.:

Re: Best GUI for small-scale accounting app?

2004-12-28 Thread Paul Rubin
Ed Leafe [EMAIL PROTECTED] writes: Oh, geez. After months of us getting skewered for releasing Dabo under GPL, with everyone saying that they wouldn't even *look* at it for fear of 'infecting' all of their code, we change the license to the MIT license, and now the complaint is that

Re: Other notes

2004-12-28 Thread Paul Rubin
Andrew Dalke [EMAIL PROTECTED] writes: What does a = MyClass() b = AnotherClass() for x in a .. b: print x do? That is, what's the generic protocol? .. just becomes an operator like + or whatever, which you can define in your class definition: class MyClass: def

Re: Securing a future for anonymous functions in Python

2004-12-30 Thread Paul Rubin
[EMAIL PROTECTED] (Bengt Richter) writes: print either(A == B, (def A equals B), (def A does not equal B)) either(thefile, (def thefile.close()), (def 0)) I'd really rather have some reasonable macro facility, than to resort to using anonymous functions and deferred evaluation for common things

Re: The Industry choice

2004-12-31 Thread Paul Rubin
Sridhar R [EMAIL PROTECTED] writes: What makes such companies to choose Java over dynamic, productive languages like Python? Are there any viable, technical reasons for that? I think you have to be more careful when you program in Python. Java is statically typed and can do all kinds of

Re: The Industry choice

2004-12-31 Thread Paul Rubin
Christopher Koppler [EMAIL PROTECTED] writes: The moral is, of course, that either the Python community's alpha geeks need to get access to controlling interest in a *major* company (or to become successful enough with their own companies to register on the current *major* companies radar as

Re: The Industry choice

2004-12-31 Thread Paul Rubin
Christopher Koppler [EMAIL PROTECTED] writes: IMO (and - indubitably limited - experience) in the many cases where it *would* be an excellent choice, it *is* most often a matter of politics, to have a project use, say C# or Java instead of Python (or Lisp for that matter) as the main

Re: The Industry choice

2004-12-31 Thread Paul Rubin
Bulba! [EMAIL PROTECTED] writes: OK, so what projects and why would you consider Python: 1. clearly unsuitable An OS kernel, a high-performance signal processing application like a video encoder, or maybe a compact embedded application for an 8-bit microcontroller. Note that you could do

Re: The Industry choice

2004-12-31 Thread Paul Rubin
Peter Dembinski [EMAIL PROTECTED] writes: If it has to be both reliable and secure, I suggest you used more redundant language such as Ada 95. That's something to think about and it's come up in discussions, but probably complicates stuff since it's not currently available on the target

Re: Speed ain't bad

2004-12-31 Thread Paul Rubin
Bulba! [EMAIL PROTECTED] writes: The only thing I'm missing in this picture is knowledge if my script could be further optimised (not that I actually need better performance, I'm just curious what possible solutions could be). Any takers among the experienced guys? There's another

Re: The Industry choice

2004-12-31 Thread Paul Rubin
[EMAIL PROTECTED] (Alex Martelli) writes: Well, Google's market capitalization must be around 50 billion dollars or more, in the range of the top-100 companies, I believe, and they've never kept their Python use a secret. They use Python for a lot of internal tools but their high-volume

Re: Securing a future for anonymous functions in Python

2004-12-31 Thread Paul Rubin
[EMAIL PROTECTED] (Alex Martelli) writes: We should have an Evilly Cool Hack of the Year, and I nominate Paul du Bois's one as the winner for 2004. Do I hear any second...? The year's not over yet :). -- http://mail.python.org/mailman/listinfo/python-list

Re: The Industry choice

2004-12-31 Thread Paul Rubin
Christopher Koppler [EMAIL PROTECTED] writes: 2. plausible but there are sound technical reasons to be wary A security-critical financial application. Why, specifically? Would you need to eval user input? Static typing, checked exceptions, etc. I haven't used those either (well, I

Re: The Industry choice

2005-01-01 Thread Paul Rubin
Steve Holden [EMAIL PROTECTED] writes: It seems to me that IDLE and a lot of the rest of Python are examples of someone having a cool idea and writing a demo, then releasing it with a lot of missing components and rough edges, without realizing that it can't reasonably be called complete

Re: The Industry choice

2005-01-01 Thread Paul Rubin
[EMAIL PROTECTED] (Cameron Laird) writes: That is, while I have a LOT of respect for Paul's programming and judgment, and question myself when I'm on the side opposite him, I ultimately value type declarations in languages such as Java as more cost than benefit. I don't find static type

Re: The Industry choice

2005-01-01 Thread Paul Rubin
[EMAIL PROTECTED] writes: Overall I agree with you and would like to have OPTIONAL static type declarations in Python, as has often been discussed. But without facilities for generic programming, such as templates in C++, static type declarations can force one to duplicate a LOT of code, with

Re: Frameworks for Non-Content Oriented Web Apps

2005-01-01 Thread Paul Rubin
Tim Churches [EMAIL PROTECTED] writes: Can you give some URL for publicly accessible examples of what you mean by a NON CONTENT-ORIENTED WEB APPLICATIONS, so we can get a better idea of what you mean? I don't think there was anything unclear about it. A spreadsheet might be a good example. --

Re: The Industry choice

2005-01-01 Thread Paul Rubin
Donn Cave [EMAIL PROTECTED] writes: Yes, it would be really weird if Python went that way, and the sort of idle speculations we were reading recently from Guido sure sounded like he knows better. But it's not like there aren't some interesting issues farther on downstream there, in the

Re: The Industry choice

2005-01-02 Thread Paul Rubin
Mark Carter [EMAIL PROTECTED] writes: We might be doing a project which involves web-type stuff. I pointed out that if they did, they wouldn't be able to use VB/VBA, and may need to use something like Python. They'll probably use vb.net. -- http://mail.python.org/mailman/listinfo/python-list

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread Paul Rubin
Kendall Clark [EMAIL PROTECTED] writes: That was me, actually. I remain surprised that there isn't a move afoot either to implement something like Seaside or Borges in Python or to adapt one of the existing web frameworks to be modal/continuation style. Since Python doesn't have

Re: The Industry choice

2005-01-02 Thread Paul Rubin
Roy Smith [EMAIL PROTECTED] writes: Around here, AOL/Moviephone has been trolling for years for Tcl people; I guess that counts as a big company. The AOL web server also uses tcl as a built-in dynamic content generation language (i.e. sort of like mod_python), or at least it used to. --

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread Paul Rubin
[EMAIL PROTECTED] (Valentino Volonghi aka Dialtone) writes: Since I've already said Nevow with wolf works the same as borges. The only thing that wouldn't work without continuations is the back button. With greenlet module (from Armin Rigo) also the back button will work. Thanks, I'm not

Re: Python evolution: Unease

2005-01-04 Thread Paul Rubin
flamesrock [EMAIL PROTECTED] writes: Maybe you are right. If so, couldn't Python be forked into something like you describe, while still remaining compatible at the core? (if anyones willing) It's not an issue with the Python core (language); I read that post as mostly bemoaning the poor state

Re: Python evolution: Unease

2005-01-04 Thread Paul Rubin
Ville Vainio [EMAIL PROTECTED] writes: Also, Python is not a monolithic entity. Guido certainly isn't going to write a better IDE for Python, so the time used on language features isn't removed from improving the infrastructure around the language. There aren't THAT many people working on

Re: Python evolution: Unease

2005-01-04 Thread Paul Rubin
Ville Vainio [EMAIL PROTECTED] writes: But the people working on wxPython, pygtk, pyqt, pydev, whatever, are largely not the same guys that commit stuff to CPython CVS. Right, but for that reason, they don't count as being working on Python. Type declarations are a feature that might benefit

Re: Python evolution: Unease

2005-01-04 Thread Paul Rubin
Roman Suzi [EMAIL PROTECTED] writes: As for his claims, I am quite surprised that Python lacks something in the docs. Python is lacking plenty in the docs. Care to figure out from the docs how tkinter works? That's not explained anywhere at all, except in some off-site resources and in some

Re: Python evolution: Unease

2005-01-04 Thread Paul Rubin
Skip Montanaro [EMAIL PROTECTED] writes: Start writing (or reorganizing). Folks, this is open source. I'm sure by the traffic on the list most people here know how to write. Irrelevant, the issue isn't what docs can be written if someone wants to do it, it's what docs are actually already

Re: Python evolution: Unease

2005-01-04 Thread Paul Rubin
Jeremy Bowers [EMAIL PROTECTED] writes: So, nobody should have to write the docs because they should already be there, but somebody should have to write the docs? You need to think more clearly about the pronouns you are slinging around. Who is this they that should write the docs? The

Re: The Industry choice

2005-01-04 Thread Paul Rubin
Rob Emmons [EMAIL PROTECTED] writes: Me personally, I believe in free software, but always talk about open source. My answer regarding forcing people to share -- I like the GPL -- and I am perfectly happy to have anyone who does not like the GPL not to use any GPLed software. I don't feel

Re: Python evolution: Unease

2005-01-04 Thread Paul Rubin
Peter Hansen [EMAIL PROTECTED] writes: The key distinction is that well-documented is clearly a judgment call, a personal opinion, No it's not. If a program has significant modules with complicated public API's and no documentation, it's poorly documented in an absolute sense. A

Re: Python evolution: Unease

2005-01-04 Thread Paul Rubin
alex23 [EMAIL PROTECTED] writes: It's called having an opinion. Good documentation does its job, if noone else thought it was poorly documented then to them it wasn't. Obviously other people thought Tkinter is poorly documented in the Python distro, since the Python library manual says so

Re: Embedding a restricted python interpreter

2005-01-04 Thread Paul Rubin
Maurice LING [EMAIL PROTECTED] writes: I won't really count on that. In my opinions, which may be wrong, Python is not constructed to work in a sandbox like Java. Java does it by subjecting all classes that it loads through a security manager. What you seems to want is a Python to have Java

Re: Python evolution: Unease

2005-01-05 Thread Paul Rubin
Ville Vainio [EMAIL PROTECTED] writes: To me, this seems to be the job for the Fedora maintainers, not Python maintainers. If something essential is not in the distro the distro maintainers have screwed up. I can't parse that. It says two contradictory things. Sentence 2 says that if

<    1   2   3   4   5   6   7   8   9   10   >