How to run jython WSGI applications on Google AppEngine.

2009-04-13 Thread Alan Kennedy
Hi all, You can find instructions about how to run jython Web applications on Google AppEngine, using WSGI and modjy, here. http://jython.xhaus.com You can see the jython 2.5 Demo WSGI application running, here. http://jywsgi.appspot.com Regards, Alan Kennedy. -- http://mail.python.org

Jython on Google AppEngine.

2009-04-09 Thread Alan Kennedy
Hi all, You may be interested to know that you can now run jython 2.2 out of the box on Google AppEngine, thanks to their new java support. A patch is required for jython 2.5, but we will be folding this in before the jython 2.5 RC release over the next few weeks. More details here http://jytho

Re: JPype - passing to Java main

2007-08-14 Thread Alan Kennedy
> -ERROR_- > File "tester.py", line 10, in > com.JPypeTest.main("arg") > RuntimeError: No matching overloads found. at src/native/common/ > jp_method.cpp:121 > --END ERROR- I haven't used jpype, but the signature for java main functions is public

Re: python and JMS

2006-07-30 Thread Alan Kennedy
[tksri2000] > I am looking to use python to talk to JMS. Can some please point me to > such resources if this is possible. PyHJB is the python-to-JMS gateway. ... via HJB, the HTTP JMS bridge. http://hjb.python-hosting.com/ HJB (HTTP JMS Bridge) http://hjb.berlios.de/ HTH, -- alan k

Re: smtplib timeout

2006-07-25 Thread Alan Kennedy
[Stuart D. Gathman] >>> I need to set a timelimit for the operation of >>> smtplib.sendmail. It has to be thread based, because pymilter uses >>> libmilter which is thread based. [Alan Kennedy] >> Have you tried setting a default socket timeout, which ap

Re: smtplib timeout

2006-07-25 Thread Alan Kennedy
' timeout_value = 1.0 # seconds socket.setdefaulttimeout(timeout_value) print "connecting to server: %s" % dud_server try: connection = smtplib.SMTP(dud_server) except socket.timeout: print "server timed out" == HTH, -- alan kennedy

Re: XML, JSON, or what?

2006-06-08 Thread Alan Kennedy
ed for eval: there are safe JSON codecs for python, http://cheeseshop.python.org/pypi?%3Aaction=search&description=json And one for javascript, http://www.json.org/js.html http://www.json.org/json.js And most other languages you're likely to come acro

Re: language-x-isms

2006-06-08 Thread Alan Kennedy
[Alan Kennedy] >> Your comment makes "using a user-defined enumerate [on cpython] is >> slower than using the built-in version" makes no sense in relation to >> the code I posted Fredrik Lundh wrote: > try combining with the second sentence in my post. OK, so putt

Re: language-x-isms

2006-06-08 Thread Alan Kennedy
. While the comment "using a user-defined enumerate is slower than using the builtin" may be true, it has no bearing on the code I posted, which is all I'm trying to say ... -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: language-x-isms

2006-06-08 Thread Alan Kennedy
[Alan Kennedy] > On jython 2.1, I use something like this > #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > try: > enumerate > except NameError: > def enumerate(iterable): > results = [] ; ix = 0 > for item in iterable: > results.append( (ix, item) ) >

Re: language-x-isms

2006-06-08 Thread Alan Kennedy
[Alan Kennedy] >> On jython 2.1, I use something like this >> >> #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= >> try: >> enumerate >> except NameError: >> def enumerate(iterable): >> results = [] ; ix = 0 >> for item in iterable: &g

Re: XML, JSON, or what?

2006-06-08 Thread Alan Kennedy
and robust as XML, in most languages. > I would rather make a decision now, otherwise I will have a lot of > changes to make later on. Does anyone have any recommendations? I'd go with JSON, for simplicity and portability. If you have any specific questions about it, ask. regards, --

Re: language-x-isms

2006-06-08 Thread Alan Kennedy
;jython fibo.py Position 0: 0 Position 1: 1 Position 2: 1 Position 3: 2 Position 4: 3 Position 5: 5 Position 6: 8 Of course, the efficiency is different across cpython vs. jython, but it's nice to have the same pythonic code running across both. And when jython progresses beyond 2.1, (any day

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread Alan Kennedy
tag." ], tags.div(style="color: blue; width: 200px; background-color: yellow;") [ "And this is a coloured div." ] ] ] That looks nice and simple, and no need to destroy the elegance of python to do it. regards, -- alan kennedy

Re: generators shared among threads

2006-03-05 Thread Alan Kennedy
p://groups.google.com/group/comp.lang.python/browse_frm/thread/76aa2afa913fe4df/a2ede21f7dd78f34#a2ede21f7dd78f34 Also contained in that thread is an implementation of Queue.Queue which supplies values from a generator, and which does not require a separate thread to generate val

Re: Pure python implementation of string-like class

2006-02-25 Thread Alan Kennedy
er represent a character. """ So UTF-16 has no "width" to compare to, no more than utf-8 does. I wonder what character set the OP is dealing with, if it's not representable with Unicode. Presumably it's not a modern character set? -- alan kennedy ---

Re: PyXML SAX Q?

2006-02-16 Thread Alan Kennedy
Maybe I could read the XML from the socket directly into the parser. You can find exactly what you need in this old thread about incremental XML parsing. Parsing XML streams http://groups.google.com/group/comp.lang.python/msg/e97309244914343b? -- alan kennedy -

Re: Clarity: GIL, processes and CPUs etc

2006-02-15 Thread Alan Kennedy
you need to de/serialise objects/parameters for transmission between those processes. -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: how do you pronounce 'tuple'?

2006-02-14 Thread Alan Kennedy
[Terry Hancock] > So what's a 1-element tuple, anyway? A "mople"? "monople"? > It does seem like this lopsided pythonic creature (1,) ought > to have a name to reflect its ugly, newbie-unfriendly > nature. It's a "trip-you-uple", which yo

Re: Jython inherit from Java class

2006-02-08 Thread Alan Kennedy
s be: > fit.FitServer.__init__(self, host, port, verbose) I'm not sure the latter is cause of your problems, but it might be. HTH, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: HTMLDocument and Xpath

2006-02-03 Thread Alan Kennedy
[EMAIL PROTECTED] > Hi, I want to use xpath to scrape info from a website using pyXML but I > keep getting no results. > > For example, in the following, I want to return the text "Element1" I > can't get xpath to return anything at all. What's wrong with this > code? Your xpath expression is wro

Re: Python module for LX200 telescope command set

2006-01-31 Thread Alan Kennedy
Control Language (ACL). Products that support telescope control via ASCOM are Starry Night by SPACE.com, MaxIm DL V3 by Cyanogen Productions, and ACP2 by DC3 Dreams. """ HTH, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: XML vs. cPickle

2006-01-13 Thread Alan Kennedy
and out of the database. > Ideas are appreciated, I'd write a few simple prototypes and take some empirical measurements. HTH, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: jython base64.urlsafe_b64xxx

2006-01-13 Thread Alan Kennedy
domain one for example http://dev.i2p.net/cgi-bin/cvsweb.cgi/i2p/core/java/src/net/i2p/data/Base64.java?f=H With javadoc at http://dev.i2p.net/javadoc/net/i2p/data/Base64.html Seems to do what you want. HTH, -- alan kennedy -- email alan:

Re: Spelling mistakes!

2006-01-07 Thread Alan Kennedy
aahz-didn't-shout-at-you-ly'yrs, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: how-to POST form data to ASP pages?

2006-01-01 Thread Alan Kennedy
that you're using? If I remember rightly, Python for Pocket Windows doesn't support sockets, meaning that urllib wouldn't work on that platform. Another thing to establish is whether the URL is working correctly, from a client you know works independently from your

Re: how-to POST form data to ASP pages?

2006-01-01 Thread Alan Kennedy
be opening up a security hole in your application. The following string looks very like a VB function invocation: 'hs.ExecX10ByName "Kitchen Espresso Machine", "On", 100' Are you executing the contents of form input fields as program code? That's highly inadvisable fr

Re: Newbie needs help extracting data from XML

2005-12-29 Thread Alan Kennedy
'%s'" % return_node.childNodes[0].nodeValue #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= You have to install PyXML to get xpath support: http://pyxml.sf.net There are other ways to do it, e.g. using ElementTree, but I'll leave it to others to suggest the best w

Re: Help designing reading/writing a xml-fileformat

2005-12-13 Thread Alan Kennedy
one have a good idea on how to approach this problem ? > (I do not want to use the pickle module) Why not the pickle module? XML-format pickles are a good solution to your problem, IMHO. -- alan kennedy -- email alan: http://x

Re: Pythonic XML library with XPath support for Jython?

2005-12-12 Thread Alan Kennedy
ny out now? Not yet, although I could be wrong. -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: XML and namespaces

2005-12-12 Thread Alan Kennedy
our helpful commentary on this matter! And thanks to you for actually informing yourself on the issue, and for taking the time to research and understand it. I wish that your refreshing attitude was more widespread! now-i-really-must-get-back-to-work-ly'yrs, -- alan kennedy

Re: Creating referenceable objects from XML

2005-12-11 Thread Alan Kennedy
stly-using-kid-for-templating-ly'yrs, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: XML and namespaces

2005-12-11 Thread Alan Kennedy
eateElementNS(None, "no_ns") elem2.setAttributeNS(xml.dom.XMLNS_NAMESPACE, "xmlns", "") > document.xpath("*")[0].appendChild(elem2) > document.toFile(open("test_ns.xml", "wb")) its-not-about-namespaces-its-about-automagic-ly'yrs, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: XML and namespaces

2005-12-07 Thread Alan Kennedy
[Alan Kennedy] >>Don't confuse libxml2dom with libxml2. [Paul Boddie] > Well, quite, but perhaps you can explain what I'm doing wrong with this > low-level version of the previously specified code: Well, if your purpose is to make a point about minidom and DOM standards

Re: XML and namespaces

2005-12-07 Thread Alan Kennedy
that > different developers have interpreted the specification in different ways ? What specification? Libxml2 implements none of the DOM specifications. -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: XML and namespaces

2005-12-06 Thread Alan Kennedy
toolkits. """ http://cheeseshop.python.org/pypi/libxml2dom [Alan Kennedy] >>Will you accept Apache Xerces 2 for Java as a widely used DOM >>Implementation? [Fredrik Lundh] > sure. > > but libxml2 is also widely used, so we have at least two ways to interpr

Re: XML and namespaces

2005-12-06 Thread Alan Kennedy
ong on this ", "you misunderstand ", "you're guessing .", etc, then you should be prepared to back them up, not state them and then say "but I'm too busy and/or important to discuss it with you&quo

Re: XML and namespaces

2005-12-06 Thread Alan Kennedy
eturn db.newDocument() def serialise(doc): format = OutputFormat( doc ) outbuf = StringWriter() serial = XMLSerializer( outbuf, format ) serial.asDOMSerializer() serial.serialize(doc.getDocumentElement()) return outbuf.toString() doc = create_document() root = doc.createElementNS("DAV:", &qu

Re: XML and namespaces

2005-12-05 Thread Alan Kennedy
[Alan Kennedy] >>On the contrary, once you start second guessing the standards and making >>guesses about what users are really trying to do, and making decisions >>for them, then some people are going to get different behaviour from >>what they rightfully expect according

Re: XML and namespaces

2005-12-05 Thread Alan Kennedy
se expectations match with the guesses made on their behalf will find that their software is not portable between DOM implementations. With something as finicky as XML namespaces, you can't just make ad-hoc decisions as to what the user "really wants". That's why DOM L2 punted on the whole problem, and left it to DOM L3. -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: XML and namespaces

2005-12-05 Thread Alan Kennedy
decl, element_ns_uri) > I'd love to hear how many actual minidom users would agree with you. > > It's currently a bug. It needs to be fixed. However, I have no time > for this bewildering fight. If the consensus is to leave minidom the > way it is, I&#x

Re: XML and namespaces

2005-12-03 Thread Alan Kennedy
silly for DOM to produce malformed >>XML+XMLNS, and of course it is not meant to. The minidom behavior >>needs fixing, badly. [Alan Kennedy] > My interpretation of namespace nodes is that the application is > responsible for creating whatever namespace declaration attribute nodes

Re: XML and namespaces

2005-12-02 Thread Alan Kennedy
uot;http://webdav.org"; xmldoc = xml.dom.minidom.Document() xmlroot = xmldoc.createElementNS(DAV_NS_U, "DAV:xpg") xmlroot.setAttributeNS(xml.dom.XMLNS_NAMESPACE, "xmlns:DAV", DAV_NS_U) xmldoc.appendChild(xmlroot) print xmldoc.toprettyxml()

Re: xpath support in python 2.4

2005-11-29 Thread Alan Kennedy
of the standard library? No, it's not. Not sure if it ever was. > if not, what should I use? Install PyXML http://pyxml.sourceforge.net HTH, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://

Re: Making a persistent HTTP connection

2005-11-14 Thread Alan Kennedy
l However, even httplib is "synchronous", in that it cannot pipeline requests: the response to the first request must be competely read before a second request can be issued. HTH, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Making a persistent HTTP connection

2005-11-14 Thread Alan Kennedy
mples.html However, even httplib is "synchronous", in that it cannot pipeline requests: the response to the first request must be competely read before a second request can be issued. HTH, -- alan kennedy -- email alan: h

Re: Inserting Records into SQL Server - is there a faster interface than ADO

2005-11-11 Thread Alan Kennedy
no", then you can use the "bcp" (Bulk CoPy) utility to transfer data into SQLServer *very* quickly. http://msdn.microsoft.com/library/en-us/coprompt/cp_bcp_61et.asp http://www.sql-server-performance.com/bcp.asp thought-it-was-worth-mentioning-ly y'rs, -- alan kennedy --

Re: Map of email origins to Python list

2005-11-08 Thread Alan Kennedy
[Claire McLister] > I've made the script available on our downloads page at: > > http://www.zeesource.net/downloads/e2i [Alan Kennedy] >> I look forward to the map with updated precision :-) [Claire McLister] > Me too. Please let me know how we should modify the script

Re: Map of email origins to Python list

2005-11-07 Thread Alan Kennedy
be surprised if some of them try to "shoot the messenger". I look forward to the map with updated precision :-) -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Map of email origins to Python list

2005-11-07 Thread Alan Kennedy
[Alan Kennedy] >>So presumably "chcgil" indicates you're in Chicago, Illinois? [EMAIL PROTECTED] > Yes, but why, then, is my name logged into Mountain View, CA? Presumably the creators of the map have chosen to use a mechanism other than NNTP-Posting-Host IP addr

Re: Map of email origins to Python list

2005-11-07 Thread Alan Kennedy
The Commitments" can attest, is a deep insult a born-and-bred Northsider such as myself ;-) -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading-> Stopping

2005-11-07 Thread Alan Kennedy
FAQ. Isn't that what FAQs are for? Maybe the FAQ needs to be turned into a wiki? -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: modifying source at runtime - jython case

2005-11-06 Thread Alan Kennedy
class, e.g. their methods, by modifying the class itself. Any reference to the method on the instance will resolve to the method definition from its class, provided you haven't overwritten the method on the individual instance. Resolving the method is done at invocation time, beca

Re: modifying source at runtime - jython case

2005-11-05 Thread Alan Kennedy
n ( String args[] ) { PythonInterpreter interp = new PythonInterpreter(); interp.exec(my_class_source); interp.exec(create_instance); interp.exec(invoke_hello); interp.exec(overwrite_meth); interp.exec(invoke_hello); } } //

Re: XML DOM: XML/XHTML inside a text node

2005-11-04 Thread Alan Kennedy
need to be aware of. See the following archive post for how to clean up untrusted (x)html. http://groups.google.com/group/comp.lang.python/browse_thread/thread/fbdc7ae20353a36d/91b6510990a25f9a HTH, -- alan kennedy -- email alan: h

Re: Python and MySQL

2005-11-02 Thread Alan Kennedy
fe's too short to spend your time hacking around artificial barriers to progress. -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: WTF?

2005-11-02 Thread Alan Kennedy
troll Xha Lee gets to post > all sorts of profanity and ranting without any problem? Take a look at the source of XL's messages: he posts through Google Groups, thus completely avoiding the SPAM filter on python.org. http://groups.google.com/group/comp.lang.python/msg/762c8dad1928e

Re: help with concurrency control (threads/processes & signals)

2005-10-27 Thread Alan Kennedy
o infrastructure development required. http://www.zope.org/Members/tim_one/spread/ http://www.python.org/other/spread/ The latter page has links to the original C spread module, which has documentation, FAQs, etc. -- alan kennedy -- email

Re: 1 Million users.. I can't Scale!!

2005-09-28 Thread Alan Kennedy
transmitting your SMSs? 2. If you disable the actual transmission, how many SMSs can your application generate per second? HTH, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Django Vs Rails

2005-09-06 Thread Alan Kennedy
still aren't 100% stable. http://www.djangoproject.com/screencasts/model_syntax_change/ -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Python xml.dom, help reading attribute data

2005-09-06 Thread Alan Kennedy
sourceforge.net Xpath tutorials from here http://www.zvon.org/xxl/XPathTutorial/General/examples.html http://www.w3schools.com/xpath/ there-are-other-ways-to-do-it-but-i-like-xpath-ly'yrs, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: dual processor

2005-09-05 Thread Alan Kennedy
llection. Read this thread to see what Matz has to say about threading in Ruby. http://groups.google.com/group/comp.lang.ruby/msg/dcf5ca374e6c5da8 One of these years I'm going to have to set aside a month or two to go through and understand the cpython interpreter code, so that I

Re: SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-09-01 Thread Alan Kennedy
[Alan Kennedy] >>IMHO, there is a great opportunity here for the python community: > > [...] > >>Surely that's worth a simple team name, for mnemonic purposes >>if nothing else. Something different or unusual, like one of my >>favourites, "Legion of

Re: SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-09-01 Thread Alan Kennedy
[Alan Kennedy] >> ... PCW ran a story this time last year >> about Michael Sparks, python and python's use in the BBC's future >> distribution plans for digital TV. [Paul Boddie] > Well, I didn't even notice the story! ;-) Here's the message I posted h

Re: SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-08-31 Thread Alan Kennedy
[Alan Kennedy] >> (PCW, for those who don't know it, is sort of the UK's equivalent >> of Byte Magazine,except that it's still publishing after almost 25 >> years). [Paul Boddie] > Hmmm. Even Byte at its lowest point was far better than PCW ever was. Wel

SpamBayes wins PCW Editors Choice Award for anti-spam software.

2005-08-30 Thread Alan Kennedy
he review, and the "Python Powered" logo is right there for all to see). Congratulations! Unfortunately, PCW don't seem to have made the review available online (yet), so I can't provide a URL. Maybe someone else will have more success finding a URL? thought-ye'd-like-to-know-ly'

Re: python xml DOM? pulldom? SAX?

2005-08-29 Thread Alan Kennedy
[Alan Kennedy] >>SAX is perfect for the job. See code below. [Fredrik Lundh] > depends on your definition of perfect... Obviously, perfect is the eye of the beholder ;-) [Fredrik Lundh] > using a 20 MB version of jog's sample, and having replaced > the print statements

Re: python xml DOM? pulldom? SAX?

2005-08-29 Thread Alan Kennedy
"revision_text\t%s" % new_page.revision_text print if __name__ == "__main__": parser = xml.sax.make_parser() parser.setContentHandler(page_matcher(page_handler)) parser.setFeature(xml.sax.handler.feature_namespaces, 0) parser.feed(testdoc) #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= HTH, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Sanitizing untrusted code for eval()

2005-08-23 Thread Alan Kennedy
p JSON strings, which means that you cannot be strict about things like double (") vs. single (') quotes, etc. JSON is so simple, I think it best to write a tokeniser and parser for it, either using a parsing library, or just coding your own. -- alan kennedy --

Re: global interpreter lock

2005-08-20 Thread Alan Kennedy
grad thesis in 1988, but when I realised the complexity of the problem, I picked a hypertext project instead ;-) http://en.wikipedia.org/wiki/Occam_programming_language IMHO, python generators (which BTW are implemented with a JVM goto instruction in jython 2.2) are a ni

Re: global interpreter lock

2005-08-20 Thread Alan Kennedy
-is-in-the-eye-of-the-beholder-ly y'rs -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: JBUS and Python which way

2005-08-03 Thread Alan Kennedy
How to talk between the PC and the JBus instrument-manager" rather than "How to talk between the PC and JBus instruments". Depending on the protocol used by the "instrument-manager", you may be able to use python to control that. HTH, -- alan kennedy -

Re: Counting processors

2005-07-25 Thread Alan Kennedy
/basic/hwbapy01.mspx -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Java RMI-like services in Python

2005-07-18 Thread Alan Kennedy
ion? B: Use one that's already been written? If the answer is the latter, I recommend you take a look at PyLinda. PyLinda - Distributed Computing Made Easy http://www-users.cs.york.ac.uk/~aw/pylinda/ -- alan kennedy -- email

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-06-29 Thread Alan Kennedy
n cinema. get-orff-moy-lahnd-ly y'rs -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: parsing IMAP responses?

2005-02-15 Thread Alan Kennedy
t . It's no wonder the spammers can ply their trade with such ease. grumpily-y'rs, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: How to implement a file lock ??

2005-02-15 Thread Alan Kennedy
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203 HTH, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Second posting - Howto connect to MsSQL

2005-02-13 Thread Alan Kennedy
[John Fabiani] > Since this is (sort of) my second request it must not be an easy > solution. Are there others using Python to connect MsSQL? [jdonnell] http://sourceforge.net/projects/mysql-python Note that "MsSQL" != "My

Re: connecting to Sybase/MsSQL from python

2005-02-13 Thread Alan Kennedy
questions being asked a *second* time without some form of reasonable answer . As already mentioned by another poster, have you considered using ODBC? There are several python ODBC implementations. HTH, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: For American numbers

2005-02-13 Thread Alan Kennedy
4 and "mega" is 1024*1024 and so forth... Maybe you missed these? http://en.wikipedia.org/wiki/Kibibyte http://en.wikipedia.org/wiki/Mebibyte http://en.wikipedia.org/wiki/Gibibyte kilo-mega-giga-etc-should-be-powers-of-10-ly y'rs, -- alan kennedy --

Re: is there a safe marshaler?

2005-02-12 Thread Alan Kennedy
nds promising! Well, I'm always dubious of OSS projects that don't even have any bugs reported, let alone fixed: no patches submitted, etc, etc. http://sourceforge.net/tracker/?group_id=82591 Though maybe I'm missing something obvious? -- alan kennedy --

Re: is there a safe marshaler?

2005-02-10 Thread Alan Kennedy
[Alan Kennedy] >> Well, the python JSON codec provided appears to use eval, which might >> make it *seem* unsecure. >> >> http://www.json-rpc.org/pyjsonrpc/index.xhtml >> >> But a more detailed examination of the code indicates, to this reader >> at le

Re: Python and version control

2005-02-10 Thread Alan Kennedy
acronym right?-) It seems that VSS provides viRTual source-safety... In my circles, VSS is most often referred to as Visual Source Unsafe. -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and version control

2005-02-10 Thread Alan Kennedy
uperb tools. -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: is there a safe marshaler?

2005-02-10 Thread Alan Kennedy
[Irmen de Jong] >>> I need a fast and safe (secure) marshaler. [Alan Kennedy] >> , would something JSON be suitable for your need? >> >> http://json.org [Irmen de Jong] > Looks very interesting indeed, but in what way would this be > more secure than say, pickl

Re: is there a safe marshaler?

2005-02-10 Thread Alan Kennedy
[Alan Kennedy] What I find particularly intriguing is the JSON-RPC protocol, which looks like a nice lightweight alternative to XML-RPC. http://oss.metaparadigm.com/jsonrpc/ Also interesting is the browser embeddable JSON-RPC client written in javascript, for which you can see a demo here http

Re: is there a safe marshaler?

2005-02-10 Thread Alan Kennedy
gards, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: goto, cls, wait commands

2005-02-10 Thread Alan Kennedy
? If I remeber correctly I used to type "Wait 10" and QBasic waits 10 seconds before proceeding to next command. Ahh, a simple question! :-) import time time.sleep(10.0) HTH, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: multi threading in multi processor (computer)

2005-02-09 Thread Alan Kennedy
"tuple space", where objects live. The objects can be located and sent messages. But (Py)Linda hides most of gory details of how objects actually get distributed, and the mechanics of actually connecting with those remote objects. http://www-users.cs.york.ac.uk/~aw

Re: Suggesion for an undergrad final year project in Python

2005-02-02 Thread Alan Kennedy
a period, do you have available for your project? Best of luck, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Textual markup languages (was Re: What YAML engine do you use?)

2005-01-28 Thread Alan Kennedy
[Alan Kennedy] >>However, I'm torn on whether to use ReST for textual content. On the one >>hand, it's looks pretty comprehensive and solidly implemented. But OTOH, >>I'm concerned about complexity: I don't want to commit to ReST if it's >>going t

Re: Textual markup languages (was Re: What YAML engine do you use?)

2005-01-23 Thread Alan Kennedy
[Alan Kennedy] >>So, I'm hoping that the learned folks here might be able to give me >>some pointers to a markup language that has the following >>characteristics [Paul Rubin] > I'm a bit biased but I've been using Texinfo for a long time and have > been happ

Re: Textual markup languages (was Re: What YAML engine do you use?)

2005-01-23 Thread Alan Kennedy
[Alan Kennedy] >> From what I've seen, pretty much every textual markup targetted >> for web content, e.g. wiki markup, seems to have grown/evolved >> organically, meaning that it is either underpowered or overpowered, >> full of special cases, doesn't have a mean

Textual markup languages (was Re: What YAML engine do you use?)

2005-01-23 Thread Alan Kennedy
page which compares multiple markup languages, in terms of the above requirements. If I can't find such a markup language, then I might instead end up using a WYSIWYG editing component that gives the user a GUI and generates (x)html. htmlArea: http://www.htmlarea.com/ Editlet: http://ww

Re: BASIC vs Python

2004-12-24 Thread Alan Kennedy
16K and 48K (I had the 48K :-). It was a lovely little machine, and included all kinds of goodies, like a 6522 VIA http://www.old-computers.com/museum/computer.asp?st=1&c=180 I think you're mixing up the Oric with the Jupiter Ace http://www.old-computers.com/museum/computer.asp?st

Re: Threading Problem

2004-12-22 Thread Alan Kennedy
completed" # Which should output the expected > start threadfunction: entered start completed threadfunction x=10 threadfunction x=20 threadfunction x=30 regards, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Boo who? (was Re: newbie question)

2004-12-21 Thread Alan Kennedy
s suitably impressed. Well, things are getting better then . It used to be that grandiose manifestos and suitably impressive plans were all you needed to make billions through a stock flotation ;-) <0.5 wink>-ly y'rs, -- alan kennedy

Re: type method-wrapper?

2004-12-20 Thread Alan Kennedy
[-4:] == 'Type' and isinstance(l.__delattr__, getattr(types, t)): ... print "It's a '%s'" % str(t) ... It's a 'ObjectType' >>> I also am interested in what is. regards, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Web forum (made by python)

2004-12-20 Thread Alan Kennedy
hink we've had any trolls in the NG lately, although perhaps one or two people have been *extremely* grumpy ;-) pining-for-the-tropics-ly y'rs, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Persistent objects

2004-12-12 Thread Alan Kennedy
l in all, a great little package. I recommend that you take a close look. Regards, -- alan kennedy -- email alan: http://xhaus.com/contact/alan -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >