Re: Install from source on a x86_64 machine

2006-10-19 Thread Paul Boddie
Christopher Taylor wrote: > > Being relatively new to linux I'm a little confused about what options > I need to use to build python from source. The README should provide sufficient information, although if you want to install Python into /usr rather than /usr/local (as I believe is the default),

Re: Book about database application development?

2006-10-19 Thread Paul Boddie
Dennis Lee Bieber wrote: > On 18 Oct 2006 02:20:15 -0700, "Paul Boddie" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > Aren't we going round in circles here? There presumably are grid > > Possibly -- it was the fairly r

Re: Install from source on a x86_64 machine

2006-10-19 Thread Paul Boddie
Christopher Taylor wrote: > > ok, so where does that leave me. I'm not even sure which files > *should* be put in /lib64 vs lib. I'd imagine that anything which is a .so file (plus the modules which depend on it, I suppose) should be put in the appropriate library directory. Thus, 32-bit librarie

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Paul Boddie
James Stroud wrote: > > It would provide symmetry for reversing any sequence (without requiring > an iterator). > > (1,2,3).reversed() > > "123".reversed() > > [1,2,3].reversed() That might infuriate those who regard strings as "mischievous" sequences (ie. things which cause errors because you thi

Re: Is x.f() <==>MyClass.f(x) a kind of algebraic structure?

2006-10-23 Thread Paul Boddie
steve wrote: > I thought that when read Guido van Rossum' Python tutorial.What can we > think that? That x.f() is equivalent to MyClass.f(x)? (Consider restating questions in the body of messages to maintain context, by the way.) Why not try it out? >>> class MyClass: ... def f(self): ...

Re: Python 2.5 ; Effbot console ; thank ; pb release.

2006-10-23 Thread Paul Boddie
Steve Holden wrote: > Fredrik Lundh wrote: > > Méta-MCI wrote: > > > >>For the professional developments, it is a major risk. I'll cut in here and mention that it's a risk that can be managed through various well understood methods of deployment. For me, Python 2.4 is going to be good enough until

Re: ANN compiler2 : Produce bytecode from Python 2.5 Abstract Syntax Trees

2006-10-24 Thread Paul Boddie
Martin v. Löwis wrote: > Georg Brandl schrieb: > > Perhaps you can bring up a discussion on python-dev about your improvements > > and how they could be integrated into the standard library... > > Let me second this. The compiler package is largely unmaintained and > was known to be broken (and per

Re: python GUIs comparison (want)

2006-10-24 Thread Paul Boddie
Cameron Walsh wrote: > > I googled "python gui compare" a while back and got > www.awaretek.com/toolkits.html as the first result. See also the python.org Wiki for more information: http://wiki.python.org/moin/UsefulModules http://wiki.python.org/moin/GuiProgramming (big list!) > Every variation

Re: Python 2.5 ; Effbot console ; thank ; pb release.

2006-10-24 Thread Paul Boddie
Thomas Heller wrote: > > I wonder if it would be possible to setup a windows box which provides > a (web-)service that allows to build Python packages. Isn't this the kind of service your distribution vendor should be providing, especially if you've paid them good money? Oh wait! That would be Mic

Re: The status of Python and SOAP?

2006-10-24 Thread Paul Boddie
Thomas W wrote: > I'm going to give a presentation of python to my co-workers at a very > pro-microsoft workplace. Almost everything we need is currently > supported by the standard distro + the win32all package, but we also > need support for SOAP. I've tried SOAPpy ( didn't get it to compile, > n

Re: python GUIs comparison (want)

2006-10-25 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > > Well, I don't know what I was thinking, exactly, when I rated > PythonCard's ease of use...so I went back and changed it to rate it a > lot higher. The ratings in this script were done a long time ago now > and I need to re-do them, and add some new categories to rate a

Re: Make alternative like NAnt, rake, ... written in python?

2006-10-26 Thread Paul Boddie
Achim Domma wrote: > > I'm looking for a tool to automate build tasks like copying files, > zipping them up, change config files NAnt works fine, because it's > quite easy to extend in C#, but it would even easier to write tasks in > Python. > > SCons is the only Python tool of this kind which

Re: Python tools for managing static websites?

2006-10-31 Thread Paul Boddie
Walter Dörwald skrev: > Chris Pearl wrote: > > > Are there Python tools to help webmasters manage static websites? > > You might give XIST a try: http://www.livinglogic.de/Python/xist/ See also the list on the python.org Wiki: http://wiki.python.org/moin/Templating The "Static Website Generators

Re: Python in sci/tech applications

2006-11-02 Thread Paul Boddie
mattf wrote: > I'd like to mention a few things I've run across that have either surprised > me or kept me > from doing things the way I'd like to. > > 1) -There's a large and active sci/tech Python community out there.- > This was something of a surprise. If you look at the python.org site > and

Re: Tools for Java/Python scripting

2006-11-03 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > steve> http://wiki.python.org/moin/Java_Scripting > > Renamed to "JavaScripting". You might want to coordinate this amongst yourselves: the original page is still being edited whilst the new one remains as a snapshot of the original page at the point of renaming. Paul

Re: WSDL?

2006-11-04 Thread Paul Boddie
Jorge Vargas wrote: > [quotefest trimmed] > I have to disagree WSDL is a great standard and SOAP is great for > transfering data from point a to point b. and it's very usefull for > giving an interface for people to use like all those web2.0 api's out > there. Well, unless you're dealing with so

Re: Is there any python lib for calling CVS api?

2006-11-06 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > Hi everyone, this should be a quick question. I'm writing some scripts > to take some file and move them into a CVS repository, but it's pretty > slow, because it uses system calls to execute the CVS commands. [...] > anyway, if anyone knows of a useful module, I'd lov

Re: Pyro stability

2006-11-07 Thread Paul Boddie
Beliavsky wrote: > Carl J. Van Arsdall wrote: [Enthusiasm for Pyro, not for those with sensitivity to rude words] > You should watch your language in a forum with thousands of readers. It was quite an endorsement, though. ;-) Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode/ascii encoding nightmare

2006-11-07 Thread Paul Boddie
Thomas W wrote: > Ok, I've cleaned up my code abit and it seems as if I've > encoded/decoded myself into a corner ;-). Yes, you may encounter situations where you have some string, you "decode" it (ie. convert it to Unicode) using one character encoding, but then you later "encode" it (ie. convert

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-09 Thread Paul Boddie
robert wrote: > Shane Hathaway wrote: > > of multiple cores. I think Python only needs a nice way to share a > > relatively small set of objects using shared memory. POSH goes in that > > direction, but I don't think it's simple enough yet. > > > > http://poshmodule.sourceforge.net/ > > interesti

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-09 Thread Paul Boddie
Cliff Wells wrote: > > But of course "not everyone" is a double-edged sword that can just as > easily be turned against either party. If we limit ourselves to saying > what is going to be the most palatable for the widest audience we will > most likely find ourselves confined to discussing the wea

Re: Py3K idea: why not drop the colon?

2006-11-09 Thread Paul Boddie
Michael Hobbs wrote: > > I think the colon could be omitted from every type of compound > statement: 'if', 'for', 'def', 'class', whatever. Am I missing anything? The FAQ answer. ;-) http://www.python.org/doc/faq/general/#why-are-colons-required-for-the-if-while-def-class-statements Paul -- ht

Re: Py3K idea: why not drop the colon?

2006-11-09 Thread Paul Boddie
Steve Holden wrote: > Paul Boddie wrote: > > http://www.python.org/doc/faq/general/#why-are-colons-required-for-the-if-while-def-class-statements > > > I suppose it would be even better if that hyperlink actually took you to > section 1.4.27 rather than 1.4.14 ... I'd

Re: how is python not the same as java?

2006-11-10 Thread Paul Boddie
Ray wrote: > [EMAIL PROTECTED] wrote: > > > Jython exists. > > And Pava (or Pyava) doesn't, you mean? Proof of concept only: http://www.boddie.org.uk/python/javaclass.html If there were any really compelling libraries for Java that really had to be available for CPython programs, I'd probably hav

Re: Searching for a module to generate GUI events

2006-11-10 Thread Paul Boddie
Stephan Kuhagen wrote: > utabintarbo wrote: > > > http://pywinauto.pbwiki.com/ for Win32 > > Thanks for the hint, looks usable. But it seems, there's nothing for X11 and > MacOSX. I didn't thought, that the problem would be so unusual... Searching for "Python GUI testing" on Google gave this as th

Re: newbie: minidom

2006-11-10 Thread Paul Boddie
Danny Scalenotti wrote: > I'm not able to get out of this ... > > > from xml.dom.minidom import getDOMImplementation > > impl = getDOMImplementation() // default UTF-8 > doc = impl.createDocument(None, "test",None) > root = doc.documentElement Here, you're actually getting a reference to the

Re: Py3K idea: why not drop the colon?

2006-11-10 Thread Paul Boddie
Ron Adam wrote: > > PS. Rather than shav of on character her and ther in pythons programing > languag, Lets remov all the silent leters from the english languag. That will > sav thousands mor kestroks over a few yers. How about changing Python to support keywords and identifiers employing the Ini

Re: Python Parallel Paradigm

2006-11-12 Thread Paul Boddie
Sandy wrote: > > A higher-level system of concurrency, not based on monitors and > locks and great programmer discipline, will ultimately require making > "Python 3000" a reality. It would surprise me if Python 3000 introduced anything substantially more than what Python 2.x provides in the ar

Re: PyFAQ: anyone seen aahz' thread tutorial ?

2006-11-14 Thread Paul Boddie
Fredrik Lundh wrote: > and yes, has anyone seen Aahz or his OSCON2001 thread tutorial slides > lately ? as noticed here: > > http://effbot.org/pyfaq/how-do-i-program-using-threads.htm > > they have disappeared from the starship? any ideas where to look for them ? The Internet Archive (the r

Re: BaseHTTPServer - getting POST parameters

2006-11-14 Thread Paul Boddie
Vlad Dogaru wrote: > > After experimenting for a while, I am still not able to find where the > POST data is in the BaseHTTPRequestHandler class. I am trying to write > a very simple HTTP server for a project of mine and I need to get the > POST data. Certainly I am missing something, as it is a co

Re: Python v PHP: fair comparison?

2006-11-15 Thread Paul Boddie
walterbyrd wrote: > > The problem is that the system requirements for django and turbogears > are sky-high. I think Django requires Apache 2.0 (and maybe mod_python > 3.x), and CherryPy (part of turbogears) requires Python 2.4. If you are > developing for a hosted environment, this can be a big pro

Re: lxml/ElementTree and .tail

2006-11-16 Thread Paul Boddie
Stefan Behnel wrote: > [Remove an element, remove following nodes] > Yes, it is. Just look at the API. It's an attribute of an Element, isn't it? > What other API do you know where removing an element from a data structure > leaves part of the element behind? I guess it depends on what you regar

Re: lxml/ElementTree and .tail

2006-11-16 Thread Paul Boddie
Fredrik Lundh wrote: > > It's not very difficult, really; especially if you, as Stefan said, > think in infoset terms rather "a sequence of little piggies" terms. Are piggies part of the infoset too? Does the Piggie class represent a piggie from the infoset plus a stretch of the road to the market

Re: Python v PHP: fair comparison?

2006-11-16 Thread Paul Boddie
Luis M. González wrote: > > OK. But since when has python been considered a viable alternative for > web development? Since the Bobo era (ca. 1997), but quite possibly before. Sure, you had to build your own mega-framework back then, but that's what a lot of people were doing anyway. > As a gener

Re: Secure Python

2006-11-16 Thread Paul Boddie
Stephan Kuhagen wrote: > > Sounds very likely, but does not solve the problem. With resource management > on the OS level you can indeed set some important limits for untrusted > scripts, but there are at least two drawbacks, which come to my mind (and > maybe more, that I'm not aware of): 1. OS le

Re: Secure Python

2006-11-16 Thread Paul Boddie
Diez B. Roggisch wrote: > [Multiplayer game servers] > Now how exactly does linux (or any other resource limiting technique on any > OS) help here - killing the whole game server surely isn't a desirable > solution when one player goes berserk, might it be intentionally or not. A significant iss

Re: Python v PHP: fair comparison?

2006-11-16 Thread Paul Boddie
John Bokma wrote: > "Luis M. González" <[EMAIL PROTECTED]> wrote: > > > > I know, but would you consider a python cgi application a good > > competence against php? > > php running as cgi you mean. Perhaps not: he's referring to deployment on really cheap hosting solutions which might support mod_

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Paul Boddie
Maurice LING wrote: > > Say given cytoscape.jar, I'll like to be able to do this: > > >>> from cytoscape javaimport cytoscape > >>> c = cytoscape() > > And the tighest way I see that this can be done is for Python VM to > execute Java bytecodes like Python bytecodes. That is, Python VM > executes

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Paul Boddie
Maurice LING wrote: > > I take a simplistic view that Java bytecodes is all that is to be dealt > with. Well, that and things like class loading. You'll need a library implementing the "standard" Java API, although that's never been hard to obtain, and the official implementation will be genuinely

Re: pyj file extension

2006-11-16 Thread Paul Boddie
Diez B. Roggisch wrote: > > http://www.crazy-compilers.com/decompyle/ > > But only up to python 2.3. No idea if that is sufficient & if there is > anything newer out there. Usual service message: sources available from here... http://packages.debian.org/unstable/source/decompyle Paul -- http:/

Re: Secure Python

2006-11-16 Thread Paul Boddie
timmy wrote: > Paul Boddie wrote: > > Diez B. Roggisch wrote: [Re-adding material...] > >>At least to me - and I presume pretty much everybody except you in this > >>thread - this means that he is interested in executing arbitrary pieces of > >>python code

Re: Python v PHP: fair comparison?

2006-11-17 Thread Paul Boddie
Luis M. González skrev: > > > OK. But since when has python been considered a viable alternative for > > > web development? [...] > The problem is (or was) for mere mortals trying to create a web site on > shared hostings. Yes, that was the "barrier to entry" observation, but you have to implici

Re: Python to C converter

2006-06-05 Thread Paul Boddie
gene tani wrote: > http://pyfaq.infogami.com/can-python-be-compiled-to-machine-code-c-or-some-other-language > shd probably mention Shedskin, boost, ctypes, any others? I've added a comment, which is seemingly all that can be done right now on that page. See also this overview I wrote about Python

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-07 Thread Paul Boddie
gregarican wrote: > Am I missing something? I don't read where the poster mentioned the > operation as being CPU intensive. He does mention that the entirety of > a 10 GB file cannot be loaded into memory. If you discount physical > swapfile paging and base this assumption on a "normal" PC that mig

Re: Writing PNG with pure Python

2006-06-12 Thread Paul Boddie
Johann C. Rocholl wrote: > The MIT license is enticingly short and simple, thank you for the tip. > > I have now decided to license my project (including the pure python PNG > library) under the Apache License 2.0 which is less restrictive than > the GPL in terms of sublicensing. But it is also in

Re: Tiddlywiki type project in Python?

2006-06-14 Thread Paul Boddie
Diez B. Roggisch wrote: > [Quoting jkn...] > > Well, that may be an/the answer, since another form of my question > > would be 'how can I write a TiddlyWikiLike using Python instead of JS' > > ;-). I appreciate that it might involve, for instance, a local server. > > Does the idea of embedding py

Re: code is data

2006-06-22 Thread Paul Boddie
Anton Vredegoor wrote: > Bruno Desthuilliers wrote: > > > You mean like 'converting' javascript to python or python to ruby (or > > converting any home-grown DSL to Python, etc) ? > > Yes, but also what some other posters mentioned, making Pythons internal > parsing tree available to other programs

Re: code is data

2006-06-23 Thread Paul Boddie
Anton Vredegoor wrote: > Paul Boddie wrote: > > > > I was going to write a long reply to one of your previous messages, but > > the above link references a project which may intersect with some of > > your expectations. Meanwhile, it should be noted that the availab

Re: Python web server

2006-06-24 Thread Paul Boddie
arvind wrote: > When I run the script on server,only HTML part gets executed. > But the python code appears as it is on the screen in the text format. > How to run the CGI script on web server using Python2.4.3? We don't have much specific information from you here, but taking a few guesses, it so

Re: beautifulsoup .vs tidy

2006-07-01 Thread Paul Boddie
Ravi Teja wrote: > > 1.) XPath is not a good idea at all with "malformed" HTML or perhaps > web pages in general. import libxml2dom import urllib f = urllib.urlopen("http://wiki.python.org/moin/";) s = f.read() f.close() # s contains HTML not XML text d = libxml2dom.parseString(s, html=1) # get th

Re: Python + Java Integration

2006-08-24 Thread Paul Boddie
Fredrik Lundh wrote: > Ben Sizer wrote: > > > Java itself never deserved to be the 'next' anything anyway. > > I've had a lot of developers come up to me and > say, "I haven't had this much fun in a long time. > It sure beats writing Cobol" -- James Gosling Nice quote! It also reinforc

Re: What do you want in a new web framework?

2006-08-24 Thread Paul Boddie
Cliff Wells wrote: > On Thu, 2006-08-24 at 04:04 +, Tim Roberts wrote: > > Cliff Wells <[EMAIL PROTECTED]> wrote: > > > > > >But there are interesting things in Ruby (and Ruby 2 should take care of > > >lots of warts Ruby 1.8 has) that Python could learn from. All-in-all, > > >Ruby is mostly a

Re: Python & chess

2006-08-24 Thread Paul Boddie
Will McGugan wrote: > > I have written a chess module that may be of use to you. > > http://www.willmcgugan.com/2006/06/18/chesspy/ See also ChessBoard - a nice implementation of chess using pygame: http://www.pygame.org/projects/9/282/ Paul -- http://mail.python.org/mailman/listinfo/python-li

Re: Consistency in Python

2006-08-25 Thread Paul Boddie
Hendrik van Rooyen wrote: > > There seems to be no common methods such as- > "prepend" - for adding something to the beginning > "append" - for adding something to the end > "insert[j]" - for adding something somewhere in the middle > > Or have I missed something ? [...] > BTW - I und

Re: Consistency in Python

2006-08-25 Thread Paul Boddie
Paul McGuire wrote: > > There's nothing wrong with returning self from a mutator. This was a common > idiom in Smalltalk (the syntax for this was "^self", which was probably the > most common statement in any Smalltalk program), and permitted the chaining > of property mutators into a single line,

Re: Pros/Cons of Turbogears/Rails?

2006-08-28 Thread Paul Boddie
Ray wrote: > fuzzylollipop wrote: > > uh, no, Python predates Ruby by a good bit > > Rails might be "older" than Turbogears but it still JUST went 1.0 > > officially. > > It can't be called "mature' by any defintition. Version numbers are a fairly useless general metric of project maturity, taken

Re: how to get the os file icon for a given content-type?

2006-08-28 Thread Paul Boddie
neoedmund wrote: [File icons for a given content type] > So what? Java 5.0 has the method, why python has not? I'd be generally surprised if whichever Java API responsible for this managed to work it out correctly for the different free desktop environments (KDE, GNOME, etc.), partly because thi

Re: Pros/Cons of Turbogears/Rails?

2006-08-29 Thread Paul Boddie
[comp.lang.ruby snipped] Ray wrote: > Paul Boddie wrote: > > > > So actual maturity isn't important when using a technology: it's > > "perceived maturity" that counts, right? > > Well depends on "counts" in what sense. Counts as in the

Re: Pros/Cons of Turbogears/Rails?

2006-08-29 Thread Paul Boddie
Ray wrote: > > It can certainly make money--true. "Don't seek any meaning in what they > do"?! You're just accusing a lot of honest hardworking people to be > mindless drones there. We have feelings too, you know :( Well, I'm sorry for the unintentional insult. However, I've come to believe that s

Re: Pros/Cons of Turbogears/Rails?

2006-08-31 Thread Paul Boddie
fuzzylollipop wrote: > Paul Boddie wrote: > > > fuzzylollipop wrote: > > > > uh, no, Python predates Ruby by a good bit > > > > Rails might be "older" than Turbogears but it still JUST went 1.0 > > > > officially. > > > > It ca

Re: Pros/Cons of Turbogears/Rails?

2006-09-01 Thread Paul Boddie
fuzzylollipop wrote: > Paul Boddie wrote: > > > > In various open source circles, the mere usage of 1.0 may indicate some > > kind of stability, but not necessarily maturity, or at least the desire > > of the developers to persuade users that the code is ready for t

Re: Using Beautiful Soup to entangle bookmarks.html

2006-09-08 Thread Paul Boddie
Francach wrote: > > Firefox lets you group the bookmarks along with other information into > directories and sub-directories. Firefox uses header tags for this > purpose. I'd like to get this grouping information out aswell. import libxml2dom # http://www.python.org/pypi/libxml2dom d = libxml2dom.

Re: Javadoc style python manual?

2006-09-08 Thread Paul Boddie
Ben Sizer wrote: > [EMAIL PROTECTED] wrote: > > I'm new to python and I'm from the java world. > > Though I love to learn python, I'm not very comfortable with the python > > documentation. > > Because when i read jdk doc, i can see the class hierachy, class > > member, class methods etc in html do

Re: Javadoc style python manual?

2006-09-08 Thread Paul Boddie
John J. Lee wrote: > [epydoc on the standard library] > Why do you expect to get useful docs that way? The canonical Python > stdlib docs live in LaTeX files, not in the docstrings. You may find > some useful bits and pieces in the docstrings too, or you may not. But wasn't the questioner reco

Re: Is it just me, or is Sqlite3 goofy?

2006-09-09 Thread Paul Boddie
Kay Schluehr wrote: > [Quoting Marc 'BlackJack' Rintsch...] > > If you are so fond of static typing, why are you using Python in the first > > place? Just see it as consistency -- dynamically typed language → > > dynamically typed DB columns. ;-) > > I have to admit I find this bogus too. It ha

Re: Is it just me, or is Sqlite3 goofy?

2006-09-10 Thread Paul Boddie
Dennis Lee Bieber wrote: > > Talking to myself again, I see... Not quite. ;-) [...] > How interesting... With MySQL/MySQLdb I did NOT get exceptions or > error results on inserting bad numeric data supplied as character string > format (ie, as read from the CSV). Instead, MySQL SILENTLY conver

Re: egg and modpython

2006-09-11 Thread Paul Boddie
Bruno Desthuilliers wrote: > Wensheng a écrit : > > I installed pysqlite2 using easy_install. > > and got this when using it from modpython: > > -- > > Mod_python error: "PythonHandler etc.modpython" [.

Re: egg and modpython

2006-09-12 Thread Paul Boddie
Bruno Desthuilliers wrote: > > eggs are the Python's equivalent to Java's JAR, not a RPM-like. I said > it was not an egg-specific issue (which is not totally accurate) because > it mostly have to do with loading dynamic libs (.so, .dll etc) from > zipped files. True. It is notable that various Ja

Re: Is it just me, or is Sqlite3 goofy?

2006-09-12 Thread Paul Boddie
Fredrik Lundh wrote: > Steve Holden wrote: > > > Sure. But if you go back to the start of the thread you'll remember the > > OP was originally complaining that SQLite was being promoted in the > > Python docs as SQL compliant. It clearly isn't if its response to the > > insertion of a data value th

Re: Is it just me, or is Sqlite3 goofy?

2006-09-12 Thread Paul Boddie
Fredrik Lundh wrote: > Paul Boddie wrote: > > > To be fair, that text originates in section 12.3, referring to input > > parameters to procedures. > > which is the section that section 4.1 ("data types") refers to for more > details on mappings between host da

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Paul Boddie
Simon Wittber wrote: > Michael wrote: > > Also, Paul Boddie posted a module for parallel systems a while back as well > > which might be useful (at least for ideas): > >* http://cheeseshop.python.org/pypi/parallel > > > > I've checked this out, it look

Re: egg and modpython

2006-09-13 Thread Paul Boddie
Bruno Desthuilliers wrote: > > AFAIK, jar files don't include native dynamic libs... But I'm not a Java > expert (happily forgot most of what I used to know about this language). I can't be bothered to read the specification to say what is allowed in .jar files, but .war files frequently get unpac

Re: Help me use my Dual Core CPU!

2006-09-13 Thread Paul Boddie
Simon Wittber wrote: > Paul Boddie wrote: > > Rumour has it that recent versions of Windows provide fork-like > > semantics through a system call. Your mission is to integrate this > > transparently into the standard library's os.fork function. ;-) > > I'm not

Re: Is it just me, or is Sqlite3 goofy?

2006-09-13 Thread Paul Boddie
Magnus Lycka wrote: > Paul Boddie wrote: > > To be fair, that text originates in section 12.3, referring to input > > parameters to procedures. Meanwhile, the following text (subclause > > 13.8, "") appears to be more pertinent: > > > > "If the da

Re: high level, fast XML package for Python?

2006-09-19 Thread Paul Boddie
Martin v. Löwis wrote: > > It seems that everybody is proposing libraries that use in-memory > representations. There is a standard xml package for Python, it's > called "xml" (and comes with the standard library). It contains a > SAX interface, xml.sax, which can parse files incrementally. What a

Re: parsing java files

2006-09-21 Thread Paul Boddie
stéphane bard wrote: > hello > i would like to parse java files an detect > class name's, attributes name's type's and visibility (and or list of > methods). > > is there any module who can parse easily a java file without using > (jython)? There are probably a number of standard parser solutions

Re: CONSTRUCT - New/Old Style Classes, build-in/extension types

2006-09-22 Thread Paul Boddie
Ilias Lazaridis wrote: > Fredrik Lundh wrote: > > Ilias Lazaridis wrote: > > > >> note: I am aware about search engines. > > > > but you're incapable of using them, or ? Well, "Python new-style old-style classes" in Google gives a range of discussions, but an old version of the definitive guide [1

Re: does anybody earn a living programming in python?

2006-09-26 Thread Paul Boddie
George Sakkis wrote: > [Oslo, Norway short of 300-500 Java developers] > Um, how many of these "lots of Java developers looking for work" live > in, or are willing to relocate to, Oslo? Well, I really meant to say that the "lots of Java developers" I've seen actually are in Oslo. Certainly, ever

Re: does anybody earn a living programming in python?

2006-09-26 Thread Paul Boddie
Fredrik Lundh wrote: > > well, I think I prefer the "are you sure you exist?" trolls over the "python > sucks > and you are all a bunch of clueless something something" and "this thing is > broken > beyond repair and you are all a bunch of clueless something something" trolls. I can see where th

Re: A critique of cgi.escape

2006-09-26 Thread Paul Boddie
Simon Brunning wrote: > On 26 Sep 2006 15:53:46 GMT, Jon Ribbens <[EMAIL PROTECTED]> wrote: > > To be honest I'm not sure what *sort* of code people test this way. It > > just doesn't seem appropriate at all for web page generating code. Web > > pages need to be manually viewed in web browsers, and

Re: One program in different GUI Toolkits

2006-09-27 Thread Paul Boddie
Franz Steinhaeusler wrote: > > What about a small text editor using the scintilla control? > It should be available for Pythoncard, wxPython, pygtk and pyQt > (qtscintilla). > With a small find dialog, open, save should be enough for the beginning. You might be interested in this page: http://wik

Re: baffling sql string

2006-09-27 Thread Paul Boddie
DarkBlue wrote: > > Example: mysubject="Let's Eat" this fails > mysubject="Lets Eat" this works fine > > What options do I have to avoid this issue but still > can use apostrophes in my input data ? Use proper "bind parameters" or "bind variables" when executing the statement, rather t

Re: Makin search on the other site and getting data and writing in xml

2006-09-27 Thread Paul Boddie
George Sakkis wrote: > [EMAIL PROTECTED] wrote: > > > I dont mean google > > i dont mean onelook.com > > > > these are only examples > > > > i hop eyou understand what i mean > > Apparently, *you* don't understand what they're trying to tell you. It > roughly boils down to the following: If we jus

Re: does anybody earn a living programming in python?

2006-09-27 Thread Paul Boddie
Dan Bishop wrote: > > Are you hiring? :-) No, just complaining. ;-) > It's so frustrating seeing all those job postings that require a > "mimimum 10 years experience". I've seen adverts with phrasing that could have been interpreted as having meant "minimum 10 years .NET experience", and that wa

Re: License / Registration key enabled software

2006-09-29 Thread Paul Boddie
Mike Playle wrote: > Worry instead about the people who DON'T want to use it illegitimately. Can a > license key > scheme help them? That's "help them" as in "we can help you to stay in our good books and avoid us dragging you through the courts, you bad people", I presume? Hardly a vendor-custom

Re: creating a small test server on my local computer

2006-09-29 Thread Paul Boddie
Tim Chase wrote: > > Well, you could investigate WebStack: [...] > The documentation is a bit terse, and lacking in some areas, but > a little debugging output goes a long way toward diagnosing > problems with your code. Suggestions for improvement are very welcome! And I do value the expertise

Re: _gtk

2006-09-30 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > Hello, > Where to I download module: _gtk I would suggest starting here: http://www.pygtk.org/downloads.html It looks like you need the PyGTK package. Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: PyXML not supported, what to use next?

2006-09-30 Thread Paul Boddie
John Salerno wrote: > Paul Watson wrote: > > It would appear that xml.dom.minidom or xml.sax.* might be the best > > thing to use since PyXML is going without support. Best of all it is > > included in the base Python distribution, so no addition hunting required. > > > > Is this right thinking?

Re: PYTHON PHONE MODULE

2006-10-02 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > Can you tell me one simple python phone module and if that module have > some moudules which need download from internet,then give me urls of that > modules I did see that you were trying to get pyphone [1] to work. According to the description in that program, it seems

Re: CGI -> mod_python

2006-10-03 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > > it is a kind of nooby question. Is there a way to transfer a CGI python > script to mod_python without rewriting the code? Had you used WebStack [1] to begin with, this migration would involve changing a few lines of glue code. However, as others have pointed out, WSGI

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

2006-10-03 Thread Paul Boddie
Paul Rubin wrote: > "Giovanni Bajo" <[EMAIL PROTECTED]> writes: > > > > Does this smell "Bitkeeper fiasco" to anyone else than me? I probably said as much before, possibly to the distaste of some individuals. Still, the BitKeeper story should serve as a reminder about relinquishing control of infr

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

2006-10-03 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > Giovanni Bajo wrote: > > > Does this smell "Bitkeeper fiasco" to anyone else than me? > > I can't understand why people waste time arguing this stuff. Because people care about it, I guess. > Use whatever tool is best at it's job... if it's not written in Python > it do

Re: Manipulate PDFs

2006-10-04 Thread Paul Boddie
Cameron Laird wrote: > > http://www.easysw.com/htmldoc/ >. While we STRONGLY emphasize > free software in our installations, HTMLDOC has worked out great > for us. Easy Software has consistently provided good service. Well, HTMLDOC does appear to be available under the GPL, too: http://www.html

Re: python html rendering

2006-10-04 Thread Paul Boddie
Pierre Imbaud wrote: > Hi, Im looking for a way to display some python code > in html: with correct indentation, possibly syntax hiliting, dealing > correctly with multi-line comment, and... generating valid html code if > the python code itself deals with html (hence manipulates tag litterals. > T

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

2006-10-04 Thread Paul Boddie
Richard Jones wrote: > Nick Craig-Wood wrote: > > > > Trac is really good in my experience. > > Trac was considered. > > > A nice extra is that it is written in python. > > So are Roundup and Launchpad, two of the other three trackers considered. It should be noted that most skepticism (that I'm a

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

2006-10-04 Thread Paul Boddie
Giovanni Bajo wrote: > > In fact, are you absolutely positive that you need so much effort to > maintain an existing bugtracker installation? I wonder what kinds of insights were sought from other open source projects. It's not as if there aren't any big open source projects having approachable co

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

2006-10-04 Thread Paul Boddie
Fredrik Lundh wrote: > Valentino Volonghi wrote: > > > Considering that trac can also run on postgres or mysql and also > > considering that both of these databases have enough tools to deal with > > backups I think it's a non issue. > > 10k entries shouldn't be much of an issue for sqlite3 either.

Re: WSGI with mod_python (was: Python, WSGI, legacy web application)

2006-11-23 Thread Paul Boddie
Rob De Almeida wrote: > Ben Finney wrote: > > I was under the impression that WSGI in mod_python was a rather kludgy > > way to do WSGI, but I don't know what the alternatives are. CGI? > > Python http server (e.g. CherryPy)? Something else? > > You can use FastCGI or SCGI too, with Apache, lighttp

Re: The Python Papers Edition One

2006-11-23 Thread Paul Boddie
Klaas wrote: > Tennessee writes: > >* If you say LaTex, I'll eat your brain. Or my hat. Unless I'm > > seriously underrating it, but I don't think so. > > Why? It is a suitable solution to this problem. You can produce > unformatted content, then produce pdf and html pages from it. Sure, LaT

Re: The Python Papers Edition One

2006-11-24 Thread Paul Boddie
Shane Hathaway wrote: > > IMHO your licensing terms are fine; you don't need to switch from the CC > license. Just avoid the term "free as in freedom", since the Free > Software Foundation has assigned that phrase a very specific meaning. Agreed. It should also be noted that Debian - amongst the

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