Re: Article of interest: Python pros/cons for the enterprise

2008-02-22 Thread Paul Boddie
On 22 Feb, 06:37, George Sakkis <[EMAIL PROTECTED]> wrote: > Paul Rubin wrote: > > It just seems to me that there is a killer language just around the > > corner, with Python's ease-of-use but with a serious compile-time type > > system, maybe some kind of cross between ML and Python. > > Could Boo

Re: PHP Developer highly interested in Python (web development) with some open questions...

2008-02-24 Thread Paul Boddie
On 24 Feb, 14:33, Tamer Higazi <[EMAIL PROTECTED]> wrote: > > Not true! you can disassemble the app and then have fun reading, not > that easy. I simply want that nobody reads the "sourcecode" or better > said the content of the python files I would have generated. Some quick answers: http://wiki

Re: Article of interest: Python pros/cons for the enterprise

2008-02-26 Thread Paul Boddie
On 25 Feb, 19:44, Nicola Musatti <[EMAIL PROTECTED]> wrote: > > Witness the kind of > libraries/framework that used to and still come with some commercial C+ > + implementation, and even some free/open source ones; Boost, ACE and > wxWidgets are the first

Re: urllib slow on Leopard

2008-02-26 Thread Paul Boddie
On 24 Feb, 22:14, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > It likely tries to load the DTD in the background, which requires network > access. > > http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic This is principally concerned with the standard library XML modules, not url

Re: Pythons & Ladders

2008-02-28 Thread Paul Boddie
On 28 Feb, 21:08, Benoit <[EMAIL PROTECTED]> wrote: > Forgive my language concerning C++ as its turned the thread into > something I did not intend. I merely wished to point out that Python > was easier for me to learn than C++. To Schwab, its likely that Mark > Lutz is simply a better instructor

Re: tuples, index method, Python's design

2008-03-02 Thread Paul Boddie
On 2 Mar, 19:06, Alan Isaac <[EMAIL PROTECTED]> wrote: > On April 12th, 2007 at 10:05 PM Alan Isaac wrote: > > > The avoidance of tuples, so carefully defended in other > > terms, is often rooted (I claim) in habits formed from > > need for list methods like ``index`` and ``count``. > > Indeed, I p

Re: RELEASED Python 2.6a1 and 3.0a3

2008-03-03 Thread Paul Boddie
On 2 Mar, 10:02, Kay Schluehr <[EMAIL PROTECTED]> wrote: > On 2 Mrz., 06:53, Ben Finney <[EMAIL PROTECTED]> > wrote: > > > One of the stated goals of the migration is that the '2to3' program > > will only migrate Python 2.6 code -> Python 3.0 code. > > Yes, I know. Why? > > "The master said so" isn

Re: Difference between 'function' and 'method'

2008-03-04 Thread Paul Boddie
On 4 Mar, 09:22, "甜瓜" <[EMAIL PROTECTED]> wrote: > > This is a big problem puzzles me for a long time. The core question is: > How to dynamically create methods on a class or an instance? > > Let me state it step by step. > 1. > def gunc(self): > pass > class A(object): > def func(self

EuroPython 2008: A Call for Theme and Talk Suggestions

2008-03-13 Thread Paul Boddie
This year, the EuroPython conference will take up residence for the second time in Vilnius, Lithuania with the main programme of talks and events taking place on Monday 7th, Tuesday 8th and Wednesday 9th July, and with sprints continuing after the main programme until and including Saturday 12th Ju

Re: PyCon Feedback and Volunteers (Re: Pycon disappointment)

2008-03-16 Thread Paul Boddie
On 17 Mar, 01:09, [EMAIL PROTECTED] (Aahz) wrote: > > PyCon is what YOU make of it. If you want to change PyCon, propose a > presentation or join the conference committee (concom) -- the latter only > requires signing up for the pycon-organizers mailing list. > > This doesn't mean that we are unin

Re: PyCon Feedback and Volunteers (Re: Pycon disappointment)

2008-03-17 Thread Paul Boddie
On 17 Mar, 02:39, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote: > > I haven't been to EuroPython even when it has been fairly nearby > because the entrance fee was to high. But how do you help change > something like that? You could join in and make your case. There was a more protracted discussion

Re: How to get an XML DOM while offline?

2008-03-19 Thread Paul Boddie
On 19 Mar, 16:27, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > william tanksley wrote: > > I want to parse my iTunes Library xml. All was well, until I unplugged > > and left for the train (where I get most of my personal projects > > done). All of a sudden, I discovered that apparently the pres

Re: Removal of tkinter from python 3.0? [was: Fate of the repr module in Py3.0]

2008-03-20 Thread Paul Boddie
On 21 Mar, 01:43, Simon Forman <[EMAIL PROTECTED]> wrote: > > I've been thinking of volunteering to "port" Tkinter to Python 3.0, I > hadn't noticed that there was any discussion of removing it. That's because the forum for discussing these things wasn't mentioned on comp.lang.python until two day

Re: Psyco alternative

2008-03-28 Thread Paul Boddie
On 27 Mar, 15:19, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [Psyco maintenance and further development] > Nope, but I heard through the grapevine that while it won't be supported for > all times to come, a new version is in the making. > > But ultimately, the author says that the approach i

Re: "Super()" confusion

2009-02-10 Thread Paul Boddie
On 10 Feb, 20:45, Jean-Paul Calderone wrote: > > It replaces one kind of repetition with another. I think each kind is > about as unpleasant. Has anyone gathered any data on the frequency of > changes of base classes as compared to the frequency of classes being > renamed? I don't think either

Re: Change in cgi module's handling of POST requests

2009-02-13 Thread Paul Boddie
On 13 Feb, 11:58, "Gabriel Genellina" wrote: > > I noticed this change in behaviour too, and indeed, it is due to   > http://bugs.python.org/issue1817 > But I could not find any RFC/standard/reccomendation/whatever that clearly   > states *what* should happen with a POST request directed to an URI

Re: Python / Debian package dependencies

2008-11-22 Thread Paul Boddie
On 21 Nov, 23:09, Steven Samuel Cole <[EMAIL PROTECTED]> wrote: > > 1. I must use a 'higher-level' tool than dpkg to install the package > which automatically resolves and installs dependency packages. There has > got to be a way to use apt-get for .deb files which do not reside > (yet) in a repo

Re: 3.0rc3: 'os.extsep' gone ... ?

2008-11-24 Thread Paul Boddie
On 24 Nov, 08:43, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > That doesn't really explain it. It always was os.path.extsep, > but it *also* was os.extsep. I've always known it as the former; a perusal of the Python repository would probably indicate when it became exposed in the os module its

Re: Can't find Python Library packages in Ubuntu (Debian)

2008-11-24 Thread Paul Boddie
On 24 Nov, 12:42, "Jerzy Jalocha N" <[EMAIL PROTECTED]> wrote: > > I will try to contact whoever is responsible for the packaging of Python > in Ubuntu (or Debian), and ask them if they are willing to support the > _complete_ Python release. They may already do so, but I'd argue that they could do

Re: Python surpasses Perl in popularity?

2008-11-28 Thread Paul Boddie
On 27 Nov, 01:59, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > > Oh please Steve. Did you read Xah's post or stop after the second > paragraph? It was amazingly *non* vituperative, and I don't just mean > "for Xah". Agreed, although I had to look "vituperative" up first. Is the mere presence of Xa

Re: unicode and hashlib

2008-11-28 Thread Paul Boddie
On 28 Nov, 21:03, Terry Reedy <[EMAIL PROTECTED]> wrote: > > It is the (default) ascii encoder that does not like non-ascii chars. > I suspect that is you encode to bytes first with an encoder that does > work (latin-???), md5 will be happy. I know that the "Python roadmap" answer to such question

Re: using distutils to cross-compile extensions?

2008-12-05 Thread Paul Boddie
On 5 Des, 00:58, "David Cournapeau" <[EMAIL PROTECTED]> wrote: > > The first step for cross compilation would be the ability to build > python itself wtih different build/host, and that's already non > trivial. Now that Python 3.0 is out, perhaps there will be a possibility of one of the many cros

Re: ANN: Shed Skin 0.0.30, an experimental (restricted-)Python-to-C++ Compiler

2008-12-05 Thread Paul Boddie
On 5 Des, 12:24, "Mark Dufour" <[EMAIL PROTECTED]> wrote: > Hi all, > > I have just released version 0.0.30 of Shed Skin, an experimental > (restricted) Python-to-C++ compiler. I think Mark forgot to post some links. ;-) http://shed-skin.blogspot.com/ http://code.google.com/p/shedskin/ Paul -- h

Re: "as" keyword woes

2008-12-08 Thread Paul Boddie
On Dec 4, 5:39 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > > Honestly, based on the content and tenor of this post I think this is > Yet Another Python Troll So original: disagreeable criticism is "trolling". A few points... Short keywords are more likely to collide with short variable and at

Re: "as" keyword woes

2008-12-09 Thread Paul Boddie
On 9 Des, 05:52, alex23 <[EMAIL PROTECTED]> wrote: > > From my perspective, it was less the original complaint and more the > sudden jump to "CPython is dead! The GIL sucks! Academic eggheads!" > that prompted the comparisons to trolling. To be fair to the complainant, before mentioning the GIL, h

Re: "as" keyword woes

2008-12-09 Thread Paul Boddie
On 9 Des, 14:24, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > > That is not what Guido said. What he actually said was: > > "That's possible with sufficiently powerful parser technology, but > that's not how the Python parser (and most parsers, in my experience) > treat reserved

Re: "as" keyword woes

2008-12-10 Thread Paul Boddie
On 10 Des, 00:00, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > > Go right ahead. Write your experimental language, and if people like it, > they'll use it. That's what Guido did, all those years ago. But don't > turn Python into a hodgepodge of "features" that most people conside

Re: "as" keyword woes

2008-12-10 Thread Paul Boddie
On 9 Des, 19:23, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > > So hold up a second. I'm out of line for calling someone on making a > trollish post that's not relevant to the topic, and for being pretty > late to the party even with the part that *was* on topic, and for > (even in the original post

Re: Python 3.0 crashes displaying Unicode at interactive prompt

2008-12-14 Thread Paul Boddie
On 14 Des, 05:46, "Martin v. Löwis" wrote: > > Yes. If you want a display that is guaranteed to work on your terminal, > use the ascii() builtin function. But shouldn't the production of an object's representation via repr be a "safe" operation? That is, the operation should always produce a resu

Re: Python 3.0 crashes displaying Unicode at interactive prompt

2008-12-14 Thread Paul Boddie
On 14 Des, 22:13, "Martin v. Löwis" wrote: > > But shouldn't the production of an object's representation via repr be > > a "safe" operation? > > It's a trade-off. It should also be legible. Right. I can understand that unlike Python 2.x, a representation of a string in Python 3.x (whose equivale

Re: %s place holder does not let me insert ' in an sql query with python.

2008-12-15 Thread Paul Boddie
On 15 Des, 14:46, Krishnakant wrote: > hello all, > thanks for all of your very quick responses. > The problem is that I am using python 2.5 so the 2.6 syntax does not > apply in my case. The parameter syntax for database operations is defined by the DB-API, and this is a very different matter to

Re: psycopg2 and large queries

2008-12-18 Thread Paul Boddie
On 18 Des, 16:34, Laszlo Nagy wrote: > psycopg2 is said to be db api 2.0 compilant, but apparent it is buggy. > By default, when I create a cursor with > > cur = conn.cursor() > > then it creates a cursor that will fetch all rows into memory, even if > you call cur.fetchone() on it. (I tested it,

Re: psycopg2 and large queries

2008-12-18 Thread Paul Boddie
On 18 Des, 19:09, Steve Holden wrote: > > Hmm, pypgsql doesn't provide a 2.5 Windows installer. I take it you > aren't a Windows user ... ? Well, there are plenty of PostgreSQL modules around these days, and even if pyPgSQL isn't suitable, I'm sure that there must be one which can be made to work

Re: psycopg2 and large queries

2008-12-18 Thread Paul Boddie
On 18 Des, 22:28, Laszlo Nagy wrote: > > I'm just looking for something that can replace psycopg2, because of the > bug mentioned in my original post. Here are my options: > > - psycopg1: development stalled > - psycopg2: memory bug and/or not db api compilant (see my original post) If you want,

Re: distributing apps without the Python source?

2008-10-08 Thread Paul Boddie
On 8 Okt, 23:50, "James Mills" <[EMAIL PROTECTED]> wrote: > > I must point out though that if your client > is paranoid for intellectual property reasons > (ie: protecting his assets), then you should > be aware that even if you can decompile > a Python compiled module (or a compiled > java class),

Re: Deviation from object-relational mapping (pySQLFace)

2008-10-12 Thread Paul Boddie
On 12 Okt, 17:19, [EMAIL PROTECTED] wrote: > I have made a simple python module to handle SQL databases: > https://fedorahosted.org/pySQLFace/wiki > Its goal to separate relational database stuff (SQL) from algorythmic > code (python). A SQLFace is a facade initialized with a configuration > file (

Re: Can Python fix vcard files?

2008-10-14 Thread Paul Boddie
On 14 Okt, 02:31, "Dotan Cohen" <[EMAIL PROTECTED]> wrote: > KDE's Kontact PIM breaks quoted-printable vcard files because it > linebreaks in the middle of a word. Take this text for example: > NOTE;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=D7=A9=D7=95=D7=A8=D7=94 =D7=A >  8=D7=90=D7=A9=D7=95=D7=A0=

Re: Deviation from object-relational mapping (pySQLFace)

2008-10-14 Thread Paul Boddie
On 14 Okt, 00:43, [EMAIL PROTECTED] wrote: > > It is not convincing to look at an XML file alone. Let me give you an > example. Glade is a GTK+ application for creating GTK+ GUI. It > generates an XML file, that can be loaded in every programming > language that has libglade binding. Similarly, the

Re: PyGUI as a standard GUI API for Python?

2008-10-14 Thread Paul Boddie
On 13 Okt, 23:59, Orestis Markou <[EMAIL PROTECTED]> wrote: > Just want to say, thank you for a very enlightening writeup. You   > should really post this somewhere that we can link to. Is this not good enough for you...? http://mail.python.org/pipermail/python-list/2008-October/511375.html I do

Re: Can Python fix vcard files?

2008-10-14 Thread Paul Boddie
On 14 Okt, 13:06, Paul Boddie <[EMAIL PROTECTED]> wrote: > On 14 Okt, 02:31, "Dotan Cohen" <[EMAIL PROTECTED]> wrote: > > > KDE's Kontact PIM breaks quoted-printable vcard files because it > > linebreaks in the middle of a word. Take this text for ex

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Paul Boddie
On 15 Okt, 12:08, Helmut Jarausch <[EMAIL PROTECTED]> wrote: > > What defines me as latin1-user? What does sys.stdout.encoding say? In Python 2.x, at least, that attribute should reflect the capabilities of your environment (specifically, the character encoding) and help determine whether it makes

Re: Python equivalent to SharePoint?

2008-10-15 Thread Paul Boddie
On 15 Okt, 17:17, Joe Strout <[EMAIL PROTECTED]> wrote: > We've got a client who has been planning to use SharePoint for   > managing their organization documents, but has recently dropped that   > idea and is looking for an alternative.  Is there any Python package   > with similar functionality?

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Paul Boddie
On 15 Okt, 17:59, Helmut Jarausch <[EMAIL PROTECTED]> wrote: > Paul Boddie wrote: > > What does sys.stdout.encoding say? In Python 2.x, at least, that > > It says  ansi_x3.4-1968 That's ASCII, yes. > Where can I change this? What's your locale? I can provoke

Re: Can Python fix vcard files?

2008-10-15 Thread Paul Boddie
On 15 Okt, 06:40, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > In message <[EMAIL PROTECTED]>, Paul Boddie wrote: > > I didn't find anything which forbids splitting quoted-printable > > character values in these specifications. &

Re: Best way to spawn process on back end computer

2008-10-16 Thread Paul Boddie
On 16 Okt, 15:51, Robin Becker <[EMAIL PROTECTED]> wrote: > sophie_newbie wrote: > > I'm running a python cgi script on a frontend web server and I want it > > to spawn another script (that takes a long time to run) on a backend > > number crunching server thats connected to the same network. What

Re: python3 - the hardest hello world ever ?

2008-10-16 Thread Paul Boddie
On 16 Okt, 11:28, Helmut Jarausch <[EMAIL PROTECTED]> wrote: > > I meant setting the default encoding which is used by print (e.g.) when > outputting the internal unicode string to a file. > As far as I understood, currently I am fixed to setting either > the 'locale' or to switch settings for each

Re: Python equivalent to SharePoint?

2008-10-16 Thread Paul Boddie
On 15 Okt, 22:50, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > In message <[EMAIL PROTECTED]>, Paul Boddie wrote: > > ... any absence of steep licensing costs isn't necessarily > > an advantage in the consulting business since such s

Re: Some Problem about Moin

2008-10-18 Thread Paul Boddie
On 18 Okt, 06:18, Kara <[EMAIL PROTECTED]> wrote: > Hi,everyone.I'm a greenhand on Moin.I want to change my left-side of > index like Python.org that if you click one link in left-Side, it will > show sub-dirs under the link.So would you give me some "practise in > action" or ideas? The www.python

Re: a question about Chinese characters in a Python Program

2008-10-20 Thread Paul Boddie
On 20 Okt, 07:32, est <[EMAIL PROTECTED]> wrote: > > Personally I call it a serious bug in python Normally I'd entertain the possibility of bugs in Python, but your reasoning is a bit thin (in http://bugs.python.org/issue3648): "Why cann't Python just define ascii to range(256)" I do accept that

Re: indentation

2008-10-20 Thread Paul Boddie
On 20 Okt, 14:24, Duncan Booth <[EMAIL PROTECTED]> wrote: > > Those were the only two suggestions given for Python projects with tabs as > a coding style. I don't know if the first of these has more than 1 > developer, the second lists 7 people as contributors. > > So it looks like real-life projec

Re: a question about Chinese characters in a Python Program

2008-10-20 Thread Paul Boddie
On 20 Okt, 15:30, est <[EMAIL PROTECTED]> wrote: > > Thanks for the long comment Paul, but it didn't help massive errors in > Python encoding. > > IMHO it's even better to output wrong encodings rather than halt the > WHOLE damn program by an exception I disagree. Maybe I'll now get round to uploa

Re: Unicode (UTF8) in dbhas on 2.5

2008-10-21 Thread Paul Boddie
On 20 Okt, 16:04, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > What is the difference? The dbhash module can only work with *bytestrings*. > Bytestrings are just that - a sequence of 8-bit-values. Sounds like a prime candidate for some improvement work. Patches, anyone? ;-) > u""-literals ar

Re: Commercial Products in Python

2008-10-22 Thread Paul Boddie
On 21 Okt, 19:50, "Paulo J. Matos" <[EMAIL PROTECTED]> wrote: > > I was just wondering, if you wish to commercialize an application > developed in Python, what's the way to go? See here for some answers: http://wiki.python.org/moin/HowDoYouProtectSource As I've already said a few times when answ

Re: Unicode (UTF8) in dbhas on 2.5

2008-10-22 Thread Paul Boddie
On 21 Okt, 22:39, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > It's not possible to "fix" this - it isn't even broken. The *db modules, > by design, support storing of arbitrary bytes, not just character data. > You can put images into them, or sound files, java byte code files, etc. > So if Py

Re: 2.6, 3.0, and truly independent intepreters

2008-10-29 Thread Paul Boddie
On 28 Okt, 21:03, Rhamphoryncus <[EMAIL PROTECTED]> wrote: > * get a short-term bodge that works, like hacking the 3rd party > library to use your shared-memory allocator.  Should be far less work > than hacking all of CPython. Did anyone come up with a reason why shared memory couldn't be used fo

Re: Improving interpreter startup speed

2008-10-29 Thread Paul Boddie
On 29 Okt, 13:55, [EMAIL PROTECTED] wrote: > Terry Reedy: > > > The current developers, most of whom use Python daily, [...] > > Thank you for bringing some light in this thread so filled with worse > than useless comments. Indeed. Observing that CGI is old-fashioned, aside from not really helping

Re: 2.6, 3.0, and truly independent intepreters

2008-10-30 Thread Paul Boddie
On 30 Okt, 14:12, "Andy O'Meara" <[EMAIL PROTECTED]> wrote: > > 3) Start a new python implementation, let's call it "CPythonES" [...] > 4) Drop python, switch to Lua. Have you looked at tinypy? I'm not sure about the concurrency aspects of the implementation, but the developers are not completel

Re: open a new terminal window from another terminal window in linux/unix system

2008-10-31 Thread Paul Boddie
On 31 Okt, 10:50, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > gaurav kashyap wrote: > > I am using Microsoft Windows XP.Using putty.exe,I connected to LINUX > > server  and a terminal window gets opened.Here i logeed in as root. As pointed out already, root privileges should be used with caution,

Re: Is there a time limit for replies?

2008-10-31 Thread Paul Boddie
On 31 Okt, 10:38, Rafe <[EMAIL PROTECTED]> wrote: > I tried to post some follow-ups to some issues I posted in the hopes > of helping others, but I only get "reply to author" and "forward", but > no "reply" option (using GoogleGroups). Is there some kind of time > limit to reply? Probably not for

Re: Some Problem about Moin

2008-11-01 Thread Paul Boddie
On 18 Okt, 16:44, Paul Boddie <[EMAIL PROTECTED]> wrote: > > For a long time I've been tempted to make a category menu macro for > MoinMoin I've now made this available here: http://moinmo.in/MacroMarket/CategoryMenu It probably needs some refinement, however. Paul

Re: push-style templating - an xml-like way to process xhtml

2008-11-02 Thread Paul Boddie
On 2 Nov, 15:25, Terrence Brannon <[EMAIL PROTECTED]> wrote: > > I like the approach of my own HTML::Seamstress --- object-oriented Perl > and knowledge of an object-oriented tree-rewriting library is all you need: > http://search.cpan.org/~tbone/HTML-Seamstress-5.0b/lib/HTML/Seamstres The Pyt

Re: 2.6, 3.0, and truly independent intepreters

2008-11-04 Thread Paul Boddie
On 4 Nov, 16:00, sturlamolden <[EMAIL PROTECTED]> wrote: > If you are serious about multicore programming, take a look at: > > http://www.cilk.com/ > > Now if we could make Python do something like that, people would > perhaps start to think about writing Python programs for more than one > process

Re: 2.6, 3.0, and truly independent intepreters

2008-11-05 Thread Paul Boddie
On 5 Nov, 20:44, "Andy O'Meara" <[EMAIL PROTECTED]> wrote: > On Nov 4, 10:59 am, sturlamolden <[EMAIL PROTECTED]> wrote: > > > For Christ sake, researchers > > write global climate models using MPI. And you think a toy problem > > like 'real-time video processing' is a show stopper for using multip

Re: 2.6, 3.0, and truly independent intepreters

2008-11-07 Thread Paul Boddie
On 7 Nov, 03:02, sturlamolden <[EMAIL PROTECTED]> wrote: > On Nov 7, 12:22 am, Walter Overby <[EMAIL PROTECTED]> wrote: > > > I read Andy to stipulate that the pipe needs to transmit "hundreds of > > megs of data and/or thousands of data structure instances."  I doubt > > he'd be happy with memcpy

Re: using "private" parameters as static storage?

2008-11-13 Thread Paul Boddie
On 13 Nov, 18:16, Joe Strout <[EMAIL PROTECTED]> wrote: > One thing I miss as I move from REALbasic to Python is the ability to > have static storage within a method -- i.e. storage that is persistent > between calls, but not visible outside the method. I frequently use > this for such things as c

Re: Python IF THEN chain equivalence

2008-11-14 Thread Paul Boddie
On 14 Nov, 00:19, jzakiya <[EMAIL PROTECTED]> wrote: > > It's interesting to see people think it's strange to have code that > has multiple nested levels of IF THEN.  Apparently you haven't seen > any Forth, assembly, et al code. [...] > Just as a suggestion :-)  a little humility would go a long

Re: Python / Debian package dependencies

2008-11-20 Thread Paul Boddie
On 20 Nov, 02:14, "Steven Samuel Cole" <[EMAIL PROTECTED]> wrote: > > I am trying to build a debian package for my python modules using > stdeb and dpkg-buildpackage. The package building itself works, I also > managed to have an entry point created and I can use my python modules > on the Ubuntu v

Re: Python AppStore / Marketplace

2009-02-24 Thread Paul Boddie
On 22 Feb, 12:24, Marcel Luethi wrote: > > Using my iPhone I suddenly realize how easy it is to find applications > in Apple's AppStore. How easy and fast it is to install or de-install > an app. My iPhone even checks in the background if there is an upgrade > which could be installed painlessly.

Re: Performance of Python 3

2009-03-02 Thread Paul Boddie
On 1 Mar, 15:20, Steve Holden wrote: > Kless wrote: > > Does anybody has seen the performance of Python 3? > > Respect to speed it's the last language together to Ruby 1.8, but Ruby > > 1.9 has a lot of better performance. :( > > I'm not sure what you think the speed of Ruby has to do with Python.

Re: qt, gtk, wx for py3 ?

2009-03-04 Thread Paul Boddie
On 4 Mar, 00:40, Peter Billam wrote: > > Thanks for that.  I also checked out: >  http://wiki.wxwidgets.org/WxWidgets_Compared_To_Other_Toolkits > which seemed surprisingly even-handed. I don't have a horse in this race, but apart from needing to update that page based on recent developments (at

Re: Invalid syntax with print "Hello World"

2009-03-12 Thread Paul Boddie
On 12 Mar, 12:45, Dotan Cohen wrote: > [starting with 2.6] > I do not think that is the best way to go about learning Python. Why > learn an arguably depreciating version when the new version is > available. I agree that there are not many tutorial written for Python > 3 however there are enough

Re: Python AppStore / Marketplace

2009-03-29 Thread Paul Boddie
On 27 Mar, 06:54, David Lyon wrote: > > Just a GUI for package management that lets you seperate what is available > for the python platform that you are running on. Install, deinstall, and > get package information. > > https://sourceforge.net/projects/pythonpkgmgr/ > > We only have source at the

Re: Python Goes Mercurial

2009-04-01 Thread Paul Boddie
On 1 Apr, 08:18, Paul Rubin wrote: > Terry Reedy writes: > > > So what were these "strong antipathies" towards Git, exactly? > > > The relevant PEP ishttp://www.python.org/dev/peps/pep-0374/ > > Interesting.  I'm on a project that switched from Mercurial to Git > rec

Re: Python Goes Mercurial

2009-04-02 Thread Paul Boddie
On 2 Apr, 04:27, Lawrence D'Oliveiro wrote: > In message <7a1dd0d8-1978-470b- > > a80d-57478d7f7...@q16g2000yqg.googlegroups.com>, Paul Boddie wrote: > > And I've heard stories of "bait and > > switch" with Git: "you can do XYZ with Git but

Re: PyXML and Python-2.6

2009-04-07 Thread Paul Boddie
On 7 Apr, 16:01, Andrew MacKeith wrote: > The Python.org "SIG for XML Processing in Python" page indicates that > "The SIG, through the mailing list and the PyXML project hosted on > SourceForge...". > > The PyXML project on SourceForge " is no longer maintained. ", so > perhaps the SIG page could

Re: Ending data exchange through multiprocessing pipe

2009-04-23 Thread Paul Boddie
On 22 Apr, 17:43, Michal Chruszcz wrote: > > I am adding support for parallel processing to an existing program > which fetches some data and then performs some computation with > results saved to a database. Everything went just fine until I wanted > to gather all of the results from the subproce

Re: Python Packages : A looming problem?

2009-04-23 Thread Paul Boddie
On 23 Apr, 10:59, Lawrence D'Oliveiro wrote: > > The Linux solution is to leave distro packaging to the distro maintainers. > Release the source, and they will make up the necessary packages for their > specific one-click installers. You don't have to worry about it. And the crucial message, that

Re: OT: a metacomment on feedback comments

2009-04-23 Thread Paul Boddie
On 23 Apr, 15:22, Aaron Watters wrote: > > This was posted just after someone on the same > computer (somewhere in Texas) > tried and failed to inject some javascript > into the page using a comment. This just means that you may have reached the Reddit crowd. Don't worry, though: ten seconds afte

Re: Python Packages : A looming problem? packages might no longer work? (well not on your platform or python version anyway)

2009-04-23 Thread Paul Boddie
On 23 Apr, 17:46, Daniel Fetchinson wrote: > > You and I probably have a different approach to posts to c.l.p. I try > to interpret things in the best possible light and get the most out of > a suggestion. There may be merit in the suggestion, but there also has to be skepticism, even if it is re

Re: Is there a maximum size to a Python program?

2009-04-28 Thread Paul Boddie
On 27 Apr, 05:01, "Carbon Man" wrote: > I have a program that is generated from a generic process. It's job is to > check to see whether records (replicated from another system) exist in a > local table, and if it doesn't, to add them. I have 1 of these programs for > every table in the database.

Re: suggestion on a complicated inter-process communication

2009-04-28 Thread Paul Boddie
On 28 Apr, 17:40, Way wrote: > Thanks a lot for reply. I understand it is abnormal to implement such > IPC, while it is worthy for my application. > > Well, my process3 and 4 are from an outside application, which both > need License Check and os.system to involk. Sounds delightful! Anyway, look

Re: suggestion on a complicated inter-process communication

2009-04-28 Thread Paul Boddie
On 28 Apr, 17:44, Way wrote: > Thanks a lot for the reply. I am not familiar with multi-process in > Python. I am now using something like: > A_prog is an os.system to involk Process3 > B_prog is an os.system to involk Process4 > --- > In Main Pr

Re: mod_python and xml.dom.minidom

2009-05-09 Thread Paul Boddie
On 9 Mai, 01:36, dpapathanasiou wrote: > > Apache's configure utility (I'm using httpd version 2.2.11) doesn't > explicitly describe an expat library option. > > Also, if libexpat is version 1.95.2, wouldn't I have to get version > 2.0 to be compatible with pyexpat? The aim would be to persuade A

Re: Nimrod programming language

2009-05-10 Thread Paul Boddie
On 10 Mai, 10:40, Paul Rubin wrote: > > Looks nice in many ways.  You also know about PyPy and Felix > (felix.sf.net)? Try http://felix-lang.org/ for the latter, I believe. Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: DOM implementation

2009-05-13 Thread Paul Boddie
On 13 Mai, 18:08, "Emanuele D'Arrigo" wrote: > > I just spent the past hour or so trying to have a better understanding > of how the various DOM-supporting libraries (xml.dom, xml.dom.minidom) > work. I've used etree and lxml successfully before but I wanted to > understand how close I can get to

Re: DOM implementation

2009-05-15 Thread Paul Boddie
On 15 Mai, 15:23, "Emanuele D'Arrigo" wrote: > Hey Paul, > > would you mind continuing this thread on Python + DOM? I'm trying to > implement a DOM Events-like set of classes and I could use another > brain that has some familiarity with the DOM to bounce ideas with. If > you are too busy never mi

Re: DOM implementation

2009-05-15 Thread Paul Boddie
On 15 Mai, 18:27, "Emanuele D'Arrigo" wrote: > > I just had a look at libxml2dom, in particular its events.py file. > Given that we are working from a standard your implementation is > exceedingly similar to mine and had I know before I started writing my > own classes I would have started from it

Re: Adding a Par construct to Python?

2009-05-17 Thread Paul Boddie
On 17 Mai, 14:05, jer...@martinfamily.freeserve.co.uk wrote: > From a user point of view I think that adding a 'par' construct to > Python for parallel loops would add a lot of power and simplicity, > e.g. > > par i in list: >     updatePartition(i) You can do this right now with a small amount of

Re: Conceptual flaw in pxdom?

2009-05-18 Thread Paul Boddie
On 18 Mai, 08:54, Stefan Behnel wrote: > Emanuele D'Arrigo wrote: > > I'm looking at pxdom and in particular at its foundation class > > DOMObject > > I didn't know pxdom, but looking at it now I can see that it hasn't been > updated since 2006. Not sure if that means that it is complete or that i

Re: Adding a Par construct to Python?

2009-05-18 Thread Paul Boddie
On 18 Mai, 11:27, jer...@martinfamily.freeserve.co.uk wrote: > > Thanks for your responses to my original questions. Thanks for your interesting response! > Paul, thanks for explaining about the pprocess module which appears > very useful. I presume that this is using multiple operating system >

Re: Conceptual flaw in pxdom?

2009-05-19 Thread Paul Boddie
On 19 Mai, 18:16, "Diez B. Roggisch" wrote: > > Sorry to say so, but that's nonsense. DOM is not complicated because it > contains anything superior - the reason (if any) is that it is formulated > as language-agnostic as possible, with the unfortunate result it is rather > clumsy to use in all la

Re: Adding a Par construct to Python?

2009-05-20 Thread Paul Boddie
On 20 Mai, 07:57, Steven D'Aprano wrote: > > Can you explain how you can tell that there are no side-effects from > x*sqrt(x)+3 ? What if I have this? > > class Funny(object): >     def __add__(self, other): >         global parrot >         parrot += 1 >         return 5 + other > > x = Funny()

Re: Conceptual flaw in pxdom?

2009-05-20 Thread Paul Boddie
On 20 Mai, 11:25, "Diez B. Roggisch" wrote: > > Also, not trying to convince people that there are better alternatives to > what and how they do something (admittedly, better is subjective, thus > ensues discussion), or gathering arguments on why they do believe their way > is preferable is the ve

Re: Adding a Par construct to Python?

2009-05-20 Thread Paul Boddie
On 20 Mai, 15:01, Iain King wrote: > > I was going to write something like this, but you've beat me to it :) > Slightly different though; rather than have pmap collate everything > together then return it, have it yield results as and when it gets > them and stop iteration when it's done, and rena

Re: PyXML difficulties

2009-05-21 Thread Paul Boddie
On 21 Mai, 22:58, emperorcezar wrote: > I'm new to using the xml libs. I'm trying to create xml pragmatically, > but I'm finding an issue. I have two elements I'm creating using > createElementNS two elements (soap:Envelope and context). Each having > a different namespace. When I print the create

Re: Python Socket Issues with VirtualBox

2009-05-22 Thread Paul Boddie
On 22 Mai, 17:05, Alan Franzoni wrote: > > My first guess would be that you didn't specify the interface to bind to, > and the interface order changes once you install virtualbox since it > possibly adds a virtual interface of its own, but I can't tell unless you > tell something more. If a reque

Re: Multiprocessing and file I/O

2009-05-24 Thread Paul Boddie
On 24 Mai, 16:13, Infinity77 wrote: > > No, the processing of the data is fast enough, as it is very simple. > What I was asking is if anyone could share an example of using > multiprocessing to read a file, along the lines I described above. Take a look at this section in an article about multi-

Re: unicode confusing

2009-05-25 Thread Paul Boddie
On 25 Mai, 17:39, someone wrote: > Hi, > > reading content of webpage (encoded in utf-8) with urllib2, I can't > get parsed data into DB > > Exception: > >   File "/usr/lib/python2.5/site-packages/pyPgSQL/PgSQL.py", line 3111, > in execute >     raise OperationalError, msg > libpq.OperationalError

Re: unicode confusing

2009-05-26 Thread Paul Boddie
On 26 Mai, 10:09, Pet wrote: > > After some time, I've tried, to convert result with unicode(result, > 'ISO-8859-15') and that was it :) I haven't really investigated having unicode_results set to false (or the default) with a database containing UTF-8 (or any non-ASCII encoded) text, since it's

Re: DB-API execute params, am I missing something?

2009-05-27 Thread Paul Boddie
On 26 Mai, 13:46, Gabriel Rossetti wrote: > > def getParams(curs): >     curs.execute("select * from param where id=%d", 1001) First of all, you should use the database module's parameter style, which is probably "%s" - something I've thought should be deprecated for a long time due to the confus

<    3   4   5   6   7   8   9   10   11   >