Re: (in memory) database

2008-08-31 Thread Paul Boddie
On 31 Aug, 20:05, [EMAIL PROTECTED] (Cameron Laird) wrote: > > Let's take a definite example: I have a convenient > Ubuntu 8.04.1 > The content of /etc/apt/sources.list is > debhttp://us.archive.ubuntu.com/ubuntuhardy main restricted > debhttp://us.archive.ubuntu.com/ubuntuhardy-update

Re: (in memory) database

2008-08-31 Thread Paul Boddie
On 31 Aug, 21:29, [EMAIL PROTECTED] (Cameron Laird) wrote: > [Lots of output suggesting correct package configuration] > I'm certainly perplexed, and welcome suggestions. Maybe... which python I think Jean-Paul might be on to something with his response. Are we referring to the system-packag

Re: (in memory) database

2008-09-02 Thread Paul Boddie
On 2 Sep, 04:46, Zentrader <[EMAIL PROTECTED]> wrote: > On Ubuntu you want to install something like python-sqlite (a search > for "python" should turn up everything).  There are 2 parts to this, > SQLite and the python bindings to SQLite.  So you seem to have SQLite > installed but not the Python

Re: python mechanize/libxml2dom question

2008-09-02 Thread Paul Boddie
On 2 Sep, 05:35, "bruce" <[EMAIL PROTECTED]> wrote: > > i've got the following situation, with the following test url: > "http://schedule.psu.edu/soc/fall/Alloz/a-c/acctg.html#";. > > i can generate a list of the tables i want for the courses on the page. > however, when i try to create the xpath q

Re: (in memory) database

2008-09-02 Thread Paul Boddie
On 2 Sep, 17:38, Zentrader <[EMAIL PROTECTED]> wrote: > > I don't understand why Cameron has a different version of Python which > > doesn't seem to have sqlite support enabled. > > Agreed, but won't the package manager tell him if python-sqlite is > installed? It shouldn't need to be installed: t

Re: How to bring subprocess to the foreground?

2008-09-06 Thread Paul Boddie
On 6 Sep, 17:58, [EMAIL PROTECTED] wrote: > > I though of displayin an information message on the screen through > tkMessageBox while the subprocess is running, I did it using: > > try: > testing = subprocess.Popen([batchFilePath], \ >shell = True) >

Re: Multicore-programming?

2008-09-06 Thread Paul Boddie
On 7 Sep, 00:06, cnb <[EMAIL PROTECTED]> wrote: > If I buy a multicore computer and I have really intensive program. How > would that be distributed across the cores? It typically depends on how the work done by the program is performed. > Will algorithms always have to be programmed and told spe

Re: Use BeautifulSoup to delete certain tag while keeping its content

2008-09-06 Thread Paul Boddie
On 6 Sep, 17:11, "Jackie Wang" <[EMAIL PROTECTED]> wrote: > > I have the following html code: > > > > Center Bank > > Los Angeles, CA > > > > > > Salisbury > Bank and Trust Company > > >Lakeville, CT > > > > > How should I delete the 'font' tags while keeping the

Re: lacking follow-through

2008-09-07 Thread Paul Boddie
On 7 Sep, 23:00, castironpi <[EMAIL PROTECTED]> wrote: > I am concerned by the lack of follow-through on some responses to > recent ideas I have described. Do I merely have a wrong understanding > of group policy? I think some people have taken exception to your contributions previously, which I

Re: tracking collection modification

2008-09-08 Thread Paul Boddie
On 7 Sep, 12:54, [EMAIL PROTECTED] wrote: > I'm working on a remote object system, something kinda like Pyro. > For the purposes of caching I need to be able to tell if a given > dict / list / set has been modified. > Ideally what I'd like is for them to have a modification count > variable that in

Re: dynamic allocation file buffer

2008-09-10 Thread Paul Boddie
On Sep 10, 5:03 am, George Sakkis <[EMAIL PROTECTED]> wrote: > > So at best (i.e. if it actually makes any sense; I didn't read it), > this is an ANNouncement of a pre-alpha piece of code. ANN posts rarely > attract replies, even when they are about production/stable software. To be fair, at least

Re: dynamic allocation file buffer

2008-09-11 Thread Paul Boddie
On 11 Sep, 10:34, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > And as I said before, the only use case for *huge* XML files I've ever > seen used in practice is to store large streams of record-style data; I can imagine that the manipulation of the persistent form of large graph structures might b

Re: dynamic allocation file buffer

2008-09-11 Thread Paul Boddie
On 11 Sep, 19:31, "Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]> wrote: > > An acquaintance suggests that defragmentation would be a useful > service to provide along with memory management too, which also > requires an index. I presume that you mean efficient access to large amounts of data in

Re: dynamic allocation file buffer

2008-09-12 Thread Paul Boddie
On 12 Sep, 08:30, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > > Which is why I previously said that XML was not well suited for random > access. Maybe not. A consideration of other storage formats such as HDF5 might be appropriate: http://hdf.ncsa.uiuc.edu/HDF5/whatishdf5.html There are, of cou

Re: lacking follow-through

2008-09-13 Thread Paul Boddie
On 13 Sep, 08:38, Terry Reedy <[EMAIL PROTECTED]> wrote: > > His recent posts have generally been quite different from those of some > months ago. Even he recognizes that they were somewhat weird and has > tried to do better. And I think we should at least go along with people if they're willing

Re: minimum install & pickling

2008-09-17 Thread Paul Boddie
On 17 Sep, 07:26, "Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]> wrote: > Sometimes questions come up on here about unpickling safely and > executing foreign code.  I was thinking a minimum install that didn't > even have access to modules like 'os' could be safe.   (Potentially.) > I have time t

Re: minimum install & pickling

2008-09-18 Thread Paul Boddie
On 17 Sep, 22:18, "Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]> wrote: > On Sep 17, 4:43 am, Paul Boddie <[EMAIL PROTECTED]> wrote: > > >http://wiki.python.org/moin/How_can_I_run_an_untrusted_Python_script_...) > > These solutions have at lea

Re: Python for the iPhone?

2008-09-18 Thread Paul Boddie
On 17 Sep, 11:54, [EMAIL PROTECTED] wrote: > Anybody tried this port of Python to the iPhone? > >    http://www.modmyi.com/nativeapps/python-v251/ >    http://iphone.natetrue.com/ > > Hasn't been updated since July 2007.  Maybe just a proof-of-concept?  I'm > guessing it involves jailbreaking the p

Re: Not fully OO ?

2008-09-20 Thread Paul Boddie
On 20 Sep, 19:42, "Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]> wrote: > > Wikipedia puts it decently: "mainly for OO programming, but with some > procedural elements." > > When it comes to Python and object-oriented programming, you can't leave out the ducks. ;-) Paul -- http://mail.python.o

Re: New Web2Py framework SLASHES development time...

2008-09-22 Thread Paul Boddie
On 22 Sep, 04:49, Steve Shephed <[EMAIL PROTECTED]> wrote: > http://www.web2py.comWeb2Py - Python Framework is the newest > kid on the block for Python frameworks. I'm not going to dwell on the merits of web2py, I'm afraid... > It has a lot of features that simply are not there in other > framewo

Re: how to replace and string in a "SELECT ... IN ()"

2008-09-26 Thread Paul Boddie
On 26 Sep, 12:15, Wojtek Walczak <[EMAIL PROTECTED]> wrote: > On Fri, 26 Sep 2008 02:32:50 -0700 (PDT), bcurtu wrote: > > I have a BIG problem with the next query: > > > cursor.execute(""" > > SELECT titem.object_id, titem.tag_id > > FROM tagging_

Re: Web programming in Python.

2008-09-29 Thread Paul Boddie
On 29 Sep, 01:51, Kurda Yon <[EMAIL PROTECTED]> wrote: > 1. On my server (in my directory) I found "cgi-bin" subdirectory. > > 2. In the "cgi-bin" I have created a file "test.py". > > 3. In that file I put: > #!/usr/bin/python2.4 python > print "Hello, World!" > (I have checked, I have "/usr/bin/py

Re: closures and dynamic binding

2008-09-29 Thread Paul Boddie
On 29 Sep, 05:56, Terry Reedy <[EMAIL PROTECTED]> wrote: > > As I understand it, partly from postings here years ago... > > Lexical: The namespace scope of 'n' in inner is determined by where > inner is located in the code -- where is is compiled.  This is Python > (and nearly all modern languages)

Re: closures and dynamic binding

2008-09-29 Thread Paul Boddie
On 29 Sep, 19:26, Terry Reedy <[EMAIL PROTECTED]> wrote: > > Please: Python does not have 'lambda functions'. Def statements and > lambda expressions both define instances of the function class. So this > amounts to saying "functions are subject to the same caveats as functions." I myself am awa

Re: Python is slow?

2008-09-30 Thread Paul Boddie
On 30 Sep, 14:19, Ben Finney <[EMAIL PROTECTED]> wrote: > > This is where the useful "your freedom to swing your fist ends at the > tip of the other man's nose" applies: As soon as the act you wish to > perform is restricting the freedom of another, you're not > contemplating an act of freedom, but

Re: closures and dynamic binding

2008-10-01 Thread Paul Boddie
On 1 Okt, 12:43, jhermann <[EMAIL PROTECTED]> wrote: > > f = [lambda n=n: n for n in range(10)] > print f[0]() > print f[1]() > > Note the "n=n", this prints 0 and 1 instead of 9/9. Yes, Terry mentioned this in his response to my first message. Not with lambdas, however, but he did state that he d

Re: Type Hinting vs Type Checking and Preconditions

2006-03-07 Thread Paul Boddie
Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > "Tom Bradford" <[EMAIL PROTECTED]> wrote: > > > > def multiplyByTwo(value): > > return value * 2 [...] > The question is, what is the function *supposed to do*? Without knowing > what it is *supposed to do*, it is impossible to say for su

Re: Type Hinting vs Type Checking and Preconditions

2006-03-08 Thread Paul Boddie
Tom Bradford skrev: > Really what we're talking about here is weak typing in the form of Careful with the terminology! Weak typing is something else entirely. > optional type hinting performed on a function by function basis. As an > option, what it would do is allow an author to semantically 'h

Re: Python Evangelism

2006-03-09 Thread Paul Boddie
rtilley wrote: > Steve Holden wrote: > > Doug Bromley wrote: > >> I can see Ruby overtaking Python if we don't ALL do something about it. > > I think it's the name. Python. Let's change it to something nicer. Think > about it... if you found a Ruby, you'd pick it up and put it in your > pocket. If

Re: Python Evangelism

2006-03-10 Thread Paul Boddie
John Pote wrote: > > Over this side of the pond the good old British Post Office changed its name > to 'Consignia' in 2001. I thought it was actually the Royal Mail, but the brand history can be found here: http://www.royalmailgroup.com/aboutus/aboutus8.asp The fact that people confuse "Royal Ma

Re: Cheese Shop -> BSOL?

2006-03-11 Thread Paul Boddie
Tim Churches wrote: > Would it be possible to rename "Cheese Shop" as "Bright Side of Life"? Well, you could replay the conversation I gave as an example elsewhere to see if it sounds ridiculous or not, but what we've encountered here is the problem of whether something should be given a distincti

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Paul Boddie
Fredrik Lundh wrote: > Peter Decker wrote: > > > I consider myself a Python developer, and if I saw a 'Developers' link > > on a Python site, it would seem obvious that it would be something > > that might interest me. Re-adding the missing disambiguating text: "It would not occur to me that this

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Paul Boddie
Fredrik Lundh wrote: > [Developer links and developer/development resources] > this assumes that the "developers" link lead to a page that's entirely > useless for people developing with Python. that's not even true for > today's "developer" page... True. As you say, there are links to bug repo

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Paul Boddie
Tim Parkin wrote: > > Still some work left cleaning up after the move to the new site but this > is going to be a priority very soon. Do you want me to include you on > any emails regarding this? I'll have a look into the site developer tools for python.org and see what I can contribute. Paul --

Re: Which GUI toolkit is THE best?

2006-03-13 Thread Paul Boddie
Thomas Guettler wrote: > > Have you read all the text? > > """ > Two qualities of the Qt Commercial License should be emphasized: > > You need it before you start development of proprietary software. > > You must purchase a Qt Commercial License from Trolltech or from any of > its authorized resell

Re: Which GUI toolkit is THE best?

2006-03-13 Thread Paul Boddie
Paul Rubin wrote: > "Paul Boddie" <[EMAIL PROTECTED]> writes: > > What people don't usually understand (or rather complain about loudly) > > is that Trolltech can refuse to license Qt to you under the commercial > > licence, as is their right as the owne

Re: Which GUI toolkit is THE best?

2006-03-14 Thread Paul Boddie
Alan Franzoni wrote: > > Just one thing I don't understand: if you're developing all your software > inside your company, how would they know if you already coded it or you > still have to? I have no idea. But as I said elsewhere, I'm not in any sense a party to the process that would attempt to d

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Paul Boddie
[EMAIL PROTECTED] wrote: [Quoting Aaron Watters - *the* Aaron Watters?!] > > And the patch procedure you described requires > > a higher degree of motivation (and free time) than > > most potential contributors might have on offer, imo. The patch procedure described seemed to involve mailing pyt

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-15 Thread Paul Boddie
msoulier wrote: > > But, if Python would match Perl for docs available on the command-line, > then I'd have it all at my fingertips. I simply don't understand why > this is not being done. When I'm coding in C, I use the manpages on the > remote host so that I know the docs are correct for my targe

Re: Cheese Shop: some history for the new-comers

2006-03-16 Thread Paul Boddie
Harald Armin Massa wrote: > > one of the richest people on earth did define what developers are: > > http://www.ntk.net/ballmer/mirrors.html I was wondering when someone would mention the "developers, developers, developers" Ballmer song-and-dance incident: clearly, he isn't chanting about intern

Re: Cheese Shop: some history for the new-comers

2006-03-16 Thread Paul Boddie
Fredrik Lundh wrote: > > since when is Microsoft a programming language ? Well, to many a recruiter or middle-manager it almost is a kind of programming language, given their often vague usage of that and other product and technology names. But anyway, people who call themselves "Java developers",

Re: How to run SimpleHTTPServer on IronPython on Mono

2006-03-18 Thread Paul Boddie
Sanghyeon Seo wrote: > I took some time to write this HOWTO: > http://sparcs.kaist.ac.kr/~tinuviel/fepy/howto/simplehttpserver-ironpython-mono-howto.html Thanks for spending the time writing this. Whilst I don't run Mono or anything similar, new Python documentation is surely a welcome thing. > I

Re: How to run SimpleHTTPServer on IronPython on Mono

2006-03-19 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > Paul Boddie wrote: > > [1] http://lists.debian.org/debian-legal/2005/08/msg00089.html > > Do you realize *I* was the person asking for clarification of the license > on debian-legal mailing list? Yes. And I thereby deduce that you also believe

Re: Objective Cairo

2006-03-22 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > As pycairo is one of the less pythonish things I ever saw, it went into > my mind to create some sort of objective wrapper over its python api > making graphic manipulation much more coherent to the python way. [...] > Before going on with more complex forms and objects

Re: Caching in memory for Apache

2006-03-24 Thread Paul Boddie
Simon Johnson wrote: > > I have decided to take the big plunge and drop the Microsoft platform > and use Mod_Python and Apache in it's place. Congratulations! ;-) [...] > One of the questions I have is: How do you cache stuff in memory? Say > I've got a bunch of stuff I need to create from a se

Re: Module documentation

2006-03-26 Thread Paul Boddie
Tony Burrows wrote: > Just getting to grips with Python, a great language BUT > With something like Java I can find the syntax of a method call with no > problems, how do I do the same with Python? > > For example, using MySQLdb or SGMLParser I can see what the available > methods are with dir, but

Re: LDTP 0.4.0 released !!!

2006-03-30 Thread Paul Boddie
Ben Finney wrote: > "A Nagappan" <[EMAIL PROTECTED]> writes: > > > Welcome to the seventh issue of LDTP Newsletter! > > Nowhere in this newsletter do I see anything germane to a forum about > Python. Why post it here, rather than somewhere more related to Linux > or Desktops or Testing? > > And no,

Re: Apache and Python and Ubuntu

2006-03-30 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > Thanx a lot for your input and advice. I went through the > documentation on httpd.apache.org/docs/2.2/howto/cgi.html and added the > following: > AddModule cgi-script .cgi .py > > Options +ExecCGI > Does Apache actually support "DIRECTORY" as opposed to "Directory"?

Re: LDTP 0.4.0 released !!!

2006-03-30 Thread Paul Boddie
Ben Finney wrote: > > Most projects have a consistent "what is this thing and why should you > care" paragraph in every release announcement; this would be the place > to make clear the association with the forum where it's posted. Indeed. There have been a few announcements in comp.lang.python.an

Re: How to search HUGE XML with DOM?

2006-03-31 Thread Paul Boddie
Diez B. Roggisch wrote: > > the xml.dom.minidom object is too slow when parsing such a big XML file > > to a DOM object. while pulldom should spend quite a long time going > > through the whole database file. How to enhance the searching speed? > > Are there existing solution or algorithm? Thank y

Re: Doc suggestions (was: Why "class exceptions" are not deprecated?)

2006-03-31 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > Ed Singleton wrote: > > > > Ideas can come from anyone and they do come from anyone all the time, > > and as such they are fairly worthless unless acted upon. > > That is pretty obvious. The question is about who does > the acting. Your position seems to be that > only

Re: New Python Logo Revealed

2006-04-01 Thread Paul Boddie
Giovanni Bajo wrote: > robin wrote: > > > http://diagrammes-modernes.blogspot.com > > Tell me tell me it's an april's joke, please? :) Well, I thought that the Python mimetype icon from the Crystal SVG icon set always looked pretty good - it employs a recognisable snake image, although no batterie

Re: Assignment in a while?

2006-04-02 Thread Paul Boddie
none/Ben wrote: > > Assignment within a while loop seems like a pretty standard thing, so I'm just > curious what I'm missing. The FAQ on this subject? ;-) http://www.python.org/doc/faq/general/#why-can-t-i-use-an-assignment-in-an-expression It's "standard" in C-flavoured languages, certainly, b

Re: DOM and HTML

2006-04-02 Thread Paul Boddie
Larry Bates wrote: > [EMAIL PROTECTED] wrote: > > > > I am looking for any Python library which can help to get DOM > > tree from HTML. Is there any way to access HTML DOM, just like > > accessing it using javascript. [...] > Since the browser can't execute anything except Javascript,

Re: Obtaining the Python Control Flow Graph

2006-04-03 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > > I was wondering if anyone had any advice on the best way to obtain a > control flow graph. I need the control flow graph because I am trying > figure out if there is a way to bound the integer ranges and list > lengths at compile time. Although I haven't actually been

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-03 Thread Paul Boddie
ChaosKCW wrote: > Hi > > I am reading from an oracle database using cx_Oracle. I am writing to a > SQLite database using apsw. > > The oracle database is returning utf-8 characters for euopean item > names, ie special charcaters from an ASCII perspective. And does cx_Oracle return those as Unicode

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-03 Thread Paul Boddie
Oh, and it occurs to me, as I seem to have mentioned a document about PgSQL rather than pysqlite (although they both have the same principal developer), that you might need to investigate the client_encoding parameter when setting up your connection. The following message gives some information (bu

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-04 Thread Paul Boddie
Robert Kern wrote: > Roger Binns wrote: > > "Paul Boddie" <[EMAIL PROTECTED]> wrote > >>It looks like you may have Unicode objects that you're presenting to > >>sqlite. In any case, with earlier versions of pysqlite that I've used, > >&g

Re: Python Decompilers?

2006-04-05 Thread Paul Boddie
flamesrock wrote: > > Are there any good decompilers for python? I've had some success with decompyle, which seems to be principally available as a Debian package, for which the sources can be obtained here: http://packages.debian.org/stable/source/decompyle Paul -- http://mail.python.org/mail

Re: HTMLParser fragility

2006-04-06 Thread Paul Boddie
Richie Hindle wrote: > > But Tidy fails on huge numbers of real-world HTML pages. Simple things like > misspelled tags make it fail: > > >>> from mx.Tidy import tidy > >>> results = tidy("Hello world!") [Various error messages] > Is there a Python HTML tidier which will do as good a job as a bro

Re: UnicodeDecodeError help please?

2006-04-07 Thread Paul Boddie
Robin Haswell wrote: > Okay I'm getting really frustrated with Python's Unicode handling, I'm > trying everything I can think of an I can't escape Unicode(En|De)codeError > no matter what I try. If you follow a few relatively simple rules, the days of Unicode errors will be over. Let's take a look

Re: best way to install python modules on linux

2006-04-07 Thread Paul Boddie
Fabian Braennstroem wrote: > > I am pretty new to python and will use it mainly in > combination with scientific packages. I am running ubuntu > breezy right now and see that some packages are out of date. You can quite often backport some of the newer packages from packages.ubuntu.com, although t

Re: minidom + wxPython woes

2006-04-08 Thread Paul Boddie
Frank Millman wrote: > Fredrik Lundh wrote: > > > > no, it's not a bug in the pyexpat module -- the problem is that > > wxPython uses it's own incompatible version of the expat library, > > and loads it in a way that causes problems for any library that's > > tries to use its own statically linked

Re: Do I Need This?

2006-04-08 Thread Paul Boddie
sdavies6 wrote: > I have no idea how this got onto my month old HP computer; I must have > downloaded something which uses it. It seems I have a folder and subfolders > equaling about 29 MB, called PYTHON 22. The subfolders are "DLLs," "Lib," > "libs," "Scripts," and, "td." I am not a programmer,

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-10 Thread Paul Boddie
ChaosKCW wrote: > > > > There's an Oracle environment variable that appears to make a > > difference: NLS_CHARSET, perhaps - it's been a while since I've had to > > deal with Oracle, and I'm not looking for another adventure into > > Oracle's hideous documentation to find out. > > That is an EVIL s

Re: minidom + wxPython woes

2006-04-11 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > > FYI, the incompatibility issues that arise with pyexpat in mod_python > are well documented at: > > http://www.dscpl.com.au/articles/modpython-006.html Nice document! Is there some possibly-similar explanation of character encoding issues with mod_python and Expat so

Re: Imitating "tail -f"

2009-11-30 Thread Paul Boddie
On 22 Nov, 05:10, exar...@twistedmatrix.com wrote: > > "tail -f" is implemented by sleeping a little bit and then reading to > see if there's anything new. This was the apparent assertion behind the "99 Bottles" concurrency example: http://wiki.python.org/moin/Concurrency/99Bottles However, as I

Re: New to python

2009-11-30 Thread Paul Boddie
On 30 Nov, 18:14, inhahe wrote: > i don't think structs technically exist in Python (though they exist > in C/C++), but you could always use a plain class like a struct, like > this, for a simple example: > > class Blah: >   pass > > b = blah() > b.eyecolor = "brown" [...] Yes, a "bare" class ca

Re: I have a cross platform os.startfile but I need to asociate files with xdg-open in linux how do I do that??

2009-12-16 Thread Paul Boddie
On 16 Des, 17:03, "eric_dex...@msn.com" wrote: > #this should be a cross platform example of os.startfile ( startfile ) > #for windows and linux.  this is the first version and > #linux, mac, other os's commands for exceptions to the > #rule would be appreciated.  at some point this will be > #in

Re: Author of a Python Success Story Needs a Job!

2010-01-14 Thread Paul Boddie
On 28 Des 2009, 08:32, Andrew Jonathan Fine wrote: > >   As a hobby to keep me sane, I am attempting to retrain > part time at home as a jeweler and silversmith, and I sometimes used > Python for generating and manipulating code for CNC machines. It occurs to me that in some domains,

Re: I really need webbrowser.open('file://') to open a web browser

2010-01-16 Thread Paul Boddie
On 15 Jan, 21:14, Timur Tabi wrote: > After reading several web pages and mailing list threads, I've learned > that the webbrowser module does not really support opening local > files, even if I use a file:// URL designator.  In most cases, > webbrowser.open() will indeed open the default web brow

Re: I really need webbrowser.open('file://') to open a web browser

2010-01-27 Thread Paul Boddie
On 27 Jan, 23:00, Mitchell L Model wrote: > > I suppose that since a file: URL is not, strictly speaking, on the   > web, that it shouldn't be opened with a "web" browser. But anything with a URL is (or should be regarded as being) on the Web. It may not be anything more than a local resource and

Re: python 3's adoption

2010-01-28 Thread Paul Boddie
On 27 Jan, 13:26, Xah Lee wrote: > > So, for practical reasons, i think a “key” parameter is fine. But > chopping off “cmp” is damaging. When your data structure is complex, > its order is not embedded in some “key”. Taking out “cmp” makes it > impossible to sort your data structure. What would a

Re: python 3's adoption

2010-01-29 Thread Paul Boddie
On 29 Jan, 06:56, Terry Reedy wrote: > On 1/28/2010 6:47 PM, Paul Boddie wrote: > > > What would annoy me if I used Python 3.x would be the apparent lack of > > the __cmp__ method for conveniently defining comparisons between > > instances of my own classes. Havin

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Paul Boddie
On 25 Sep, 13:21, Olof Bjarnason wrote: > > I am thinking of two target audiences: > > 1. Early adopters/beta-testers. This would include: >   - my non-computer-geek brother on a windows-machine. I'll go for py2exe. >   - any non-geek visiting my blog using windows (py2exe) I'd really like to hea

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Paul Boddie
On 25 Sep, 23:14, Olof Bjarnason wrote: > > So what approach do you suggest? I've gotten as far as understanding > how to add menu-items to the Ubuntu menus, simple .desktop file format > to do that. Yes, xdg-desktop-menu will probably do the trick. > One could "cheat" and write an install.sh sc

Re: cx_freeze problem on Ubuntu

2009-10-02 Thread Paul Boddie
On 1 Okt, 16:08, John wrote: > > I downloaded the cx_freeze source code > fromhttp://cx-freeze.sourceforge.net/into a directory. [...] >  From > here:http://linux.softpedia.com/get/Programming/Assembler-Tools/cx-Freeze-... > the directions state: What about the documentation available from th

Re: how to write a unicode string to a file ?

2009-10-16 Thread Paul Boddie
On 16 Okt, 01:49, Benjamin Kaplan wrote: > > Unicode is an abstract concept, and as such can't actually be written > to a file. To write Unicode to a file, you have to specify an encoding > so Python has actual bytes to write. If Python doesn't know what > encoding it should use, it defaults to pl

Re: ANN: WHIFF += Mako & treeview & url rewrites

2009-10-27 Thread Paul Boddie
On 27 Okt, 03:49, Aaron Watters wrote: > > WHIFF now includes components for > implementing "tree views" for web navigation panes > or other purposes, either using AJAX or frame > reloads.  Try the GenBank demo at > > http://aaron.oirt.rutgers.edu/myapp/GenBankTree/index This looks interesting, b

Re: ANN: WHIFF += Mako & treeview & url rewrites

2009-10-28 Thread Paul Boddie
On 27 Okt, 18:26, Aaron Watters wrote: > > Alex sent me the traceback (thanks!) and after consulting > the logs and the pages I figured out that the version of > Firefox in question was not ignoring my javascript links like > it should.  Instead FF was interpreting them as HTTP links to > pages th

Re: python simply not scaleable enough for google?

2009-11-15 Thread Paul Boddie
On 15 Nov, 09:30, Terry Reedy wrote: > greg wrote: > [Shed Skin] > > These restrictions mean that it isn't really quite > > Python, though. > > Python code that only uses a subset of features very much *is* Python > code. The author of ShedSkin makes no claim that is compiles all Python > code.

Re: python simply not scaleable enough for google?

2009-11-16 Thread Paul Boddie
On 16 Nov, 05:51, sturlamolden wrote: > > NASA can find money to build a space telescope and put it in orbit. > They don't find money to create a faster Python, which they use for > analyzing the data. Is the analysis in Python really what slows it all down? > Google is a multi-billion dollar bu

Re: python simply not scaleable enough for google?

2009-11-17 Thread Paul Boddie
On 17 Nov, 14:48, Aaron Watters wrote: > > ... and I still have an issue with the whole "Python is slow" > meme.  The reason NASA doesn't build a faster Python is because > Python *when augmented with FORTRAN libraries that have been > tested and optimized for decades and are worth billions of dol

Re: pointless musings on performance

2009-11-24 Thread Paul Boddie
On 24 Nov, 16:11, Antoine Pitrou wrote: > [JUMP_IF_FALSE] > It tries to evaluate the op of the stack (here nonevar) in a boolean > context (which theoretically involves calling __nonzero__ on the type) > and then jumps if the result is False (rather than True). [...] > As someone pointed out,

Re: pointless musings on performance

2009-11-24 Thread Paul Boddie
On 24 Nov, 19:25, Antoine Pitrou wrote: > > Sorry, I have trouble parsing your sentence. Do you mean bytecode > interpretation overhead is minimal compared to the cost of actual useful > work, or the contrary? > (IMO both are wrong by the way) I'm referring to what you're talking about at the end

Re: pointless musings on performance

2009-11-26 Thread Paul Boddie
On 25 Nov, 13:11, Antoine Pitrou wrote: > > When you say "executing each kind of bytecode instruction", are you > talking about the overhead of bytecode dispatch and operand gathering, or > the total cost including doing the useful work? Strip away any overhead (dispatch, operand gathering) and j

Re: Python Optimization

2010-02-16 Thread Paul Boddie
On 14 Feb, 19:41, Steve Howell wrote: > > I ditto the profiling recommendation. > > http://docs.python.org/library/profile.html (To the original inquirer...) Try this, too: http://wiki.python.org/moin/PythonSpeed/Profiling If you have the tools, it's a lot easier than scanning through tables of

Re: DreamPie - The Python shell you've always dreamed about!

2010-02-21 Thread Paul Boddie
On 21 Feb, 17:32, Mensanator wrote: > On Feb 21, 10:30 am, Mensanator wrote: > > > What versions of Python does it suuport? > > What OS are supported? >From the Web site referenced in the announcement (http:// dreampie.sourceforge.net/): """ # Supports Python 2.5, Python 2.6, Jython 2.5, IronPy

Re: The future of "frozen" types as the number of CPU cores increases

2010-02-21 Thread Paul Boddie
On 21 Feb, 03:00, "sjdevn...@yahoo.com" wrote: > On Feb 18, 2:58 pm, John Nagle wrote: > > >     Multiple processes are not the answer.  That means loading multiple > > copies of the same code into different areas of memory.  The cache > > miss rate goes up accordingly. > > A decent OS will use c

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 9 Mai, 09:05, Carl Banks wrote: > > Bottom line is, GPL hurts everyone: the companies and open source > community.  Unless you're one of a handful of projects with sufficient > leverage, or are indeed a petty jealous person fighting a holy war, > the GPL is a bad idea and everyone benefits from

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 9 Mai, 07:09, Patrick Maupin wrote: > > See, for example, Apple's > support of BSD, Webkit, and LLVM.  Apple is not a "do no evil" > corporation, and their contributions back to these packages are driven > far more by hard-nosed business decisions th

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 8 Mai, 22:05, Patrick Maupin wrote: > On May 8, 2:38 pm, Steven D'Aprano > > > No, you don't *owe* them anything, but this brings us back to Ben's > > original post. If you care about the freedoms of Cisco's customers as > > much as you care about the freedoms of Cisco, then that's a good reas

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 9 Mai, 19:55, Steven D'Aprano wrote: > > Patrick said that Apple is NOT a "do no evil" company. Yes, apologies to Patrick for reading something other than what he wrote. I suppose I've been reading too many Apple apologist commentaries of late and probably started to skim the text after I hit

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 9 Mai, 21:07, Patrick Maupin wrote: > On May 9, 1:02 pm, Paul Boddie wrote: > > > > People often argue > > that the GPL only cares about the software's freedom, not the > > recipient's freedom, which I find to be a laughable claim because if > > one

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 9 Mai, 21:55, Patrick Maupin wrote: > On May 9, 12:08 pm, Paul Boddie wrote: > > > Oh sure: the GPL hurts everyone, like all the companies who have made > > quite a lot of money out of effectively making Linux the new > > enterprise successor to Unix, plus all the c

Re: Picking a license

2010-05-09 Thread Paul Boddie
On 10 Mai, 00:02, Patrick Maupin wrote: > > You just answered your own question.  It's pathetic to try to change > people's behavior by offering them something worthless if they change > their license to match yours.  (I'm not at all saying that all GPL > code is worthless, but I have seen things

Re: Picking a license

2010-05-10 Thread Paul Boddie
On 10 Mai, 03:09, Patrick Maupin wrote: > On May 9, 6:39 pm, Paul Boddie wrote: > > but if they aren't pitching it directly at you, why would you believe > > that they are trying to change your behaviour? > > Because I've seen people specifically state that

Re: Picking a license

2010-05-10 Thread Paul Boddie
On 10 Mai, 08:31, Carl Banks wrote: > On May 9, 10:08 am, Paul Boddie wrote: > > Oh sure: the GPL hurts everyone, like all the companies who have made > > quite a lot of money out of effectively making Linux the new > > enterprise successor to Unix, plus all the companies an

Re: Picking a license

2010-05-10 Thread Paul Boddie
On 10 Mai, 17:06, a...@pythoncraft.com (Aahz) wrote: > In article > <074b412a-c2f4-4090-a52c-4d69edb29...@d39g2000yqa.googlegroups.com>, > Paul Boddie   wrote: > >Actually, the copyleft licences don't "force" anyone to "give back > >changes": th

Re: Picking a license

2010-05-11 Thread Paul Boddie
On 10 Mai, 17:01, Patrick Maupin wrote: > > I'll be charitable and assume the fact that you can make that > statement without apparent guile merely means that you haven't read > the post I was referring to: > > http://www.gnu.org/philosophy/why-not-lgpl.html Of course I have read it, and not just

<    5   6   7   8   9   10   11   >