Changes by Alan Kennedy python-...@xhaus.com:
--
nosy: +amak
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14814
___
___
Python-bugs-list mailing
Changes by Alan Kennedy python-...@xhaus.com:
--
nosy: +amak
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3566
___
___
Python-bugs-list mailing
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
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
Changes by Alan Kennedy [EMAIL PROTECTED]:
--
nosy: +amak
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2550
__
___
Python-bugs-list mailing list
Unsubscribe:
http
Changes by Alan Kennedy [EMAIL PROTECTED]:
--
nosy: +amak
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2452
__
___
Python-bugs-list mailing list
Unsubscribe:
http
-ERROR_-
File tester.py, line 10, in module
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
[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 kennedy
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
--
email alan
[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 applies to all
socket operations?
[Stuart D. Gathman
running across both. And when
jython progresses beyond 2.1, (any day now!), it will still work
seamlessly.
regards,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
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,
--
alan kennedy
--
email alan: http://xhaus.com/contact
[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) )
ix = ix+1
return results
[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) )
ix = ix+1
return results
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
[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 putting at least in CPython, using a user
://cheeseshop.python.org/pypi?%3Aaction=searchdescription=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 across.
http://www.json.org/
regards,
--
alan kennedy
-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
--
email alan: http://xhaus.com/contact/alan
/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 values.
HTH,
--
alan kennedy
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
--
email alan: http
for transmission between those processes.
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
[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 you can pronounce anyway you like ;-)
--
alan kennedy
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
[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 wrong.
, 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
/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: http://xhaus.com/contact/alan
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
-at-you-ly'yrs,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
, On, 100'
Are you executing the contents of form input fields as program code?
That's highly inadvisable from a security point of view.
Happy New Year.
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http
.
Another thing to establish is whether the URL is working correctly, from
a client you know works independently from your script above, e.g. an
ordinary browser. When you submit to your form handling script from an
ordinary browser, does it work?
--
alan kennedy
There are other ways to do it, e.g. using ElementTree, but I'll leave it
to others to suggest the best way to do that.
HTH,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo
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://xhaus.com/contact/alan
--
http
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
--
email alan: http://xhaus.com
.
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
-for-templating-ly'yrs,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
implements none of the DOM specifications.
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
[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
compliance in relation
=1.0 encoding=UTF-8?
href/
As I expected it would.
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
., 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.
Perhaps you should think twice before making such statements in the future.
--
alan kennedy
--
email alan
/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 interpret
the spec.
Don't confuse libxml2dom with libxml2.
As I showed with a code snippet in a previous
, it doesn't need fixing, minidom is not broken.
Although I am sympathetic to your bewilderment: xml namespaces can be
overly complex when it comes to the nitty, gritty details.
--
alan kennedy
--
email alan: http://xhaus.com/contact
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
[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 to the standard. People whose
)
xmlroot.setAttributeNS(xml.dom.XMLNS_NAMESPACE, xmlns:DAV, DAV_NS_U)
xmldoc.appendChild(xmlroot)
print xmldoc.toprettyxml()
#-=-=-=-=-=-=-=-=-=
produces
?xml version=1.0 ?
DAV:xpg xmlns:DAV=http://webdav.org/
Which is well formed wrt namespaces.
regards,
--
alan kennedy
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://mail.python.org/mailman/listinfo
: 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
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
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
--
email alan: http
[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.
Having examined your script
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
indicates you're in Chicago, Illinois?
Although I do have to point out that the map makes it appear as if I've
been busy posting from all over Dublin's Southside, which, as anyone who
has seen The Commitments can attest, is a deep insult a born-and-bred
Northsider such as myself ;-)
--
alan
[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 address to geolocate posters.
Claire
forward to the map with updated precision :-)
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
the method on the individual
instance. Resolving the method is done at invocation time, because
python/jython is a late-binding language.
Any closer?
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http
);
interp.exec(overwrite_meth);
interp.exec(invoke_hello);
}
}
//
end SelfMod.java -
need-to-complete-my-coursework-for-telepathy-101-ly y'rs
--
alan kennedy
untrusted (x)html.
http://groups.google.com/group/comp.lang.python/browse_thread/thread/fbdc7ae20353a36d/91b6510990a25f9a
HTH,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo
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/762c8dad1928ecc2?dmode=source
--
alan kennedy
to progress.
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
://www.python.org/other/spread/
The latter page has links to the original C spread module, which has
documentation, FAQs, etc.
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo
generate per second?
HTH,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
/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
://www.djangoproject.com/screencasts/model_syntax_change/
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
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 have a
first-hand understanding of the issues.
--
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 here at the time
http://groups.google.com/group
[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 the Bouncy Castle, who are a group of Java
cryptography
[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.
Well, I mostly disagree, but you've got your
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'yrs,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
(page_matcher(page_handler))
parser.setFeature(xml.sax.handler.feature_namespaces, 0)
parser.feed(testdoc)
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
HTH,
--
alan kennedy
--
email alan: http://xhaus.com
[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 with local variable
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
--
email alan
-of-the-beholder-ly y'rs
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
://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 nice programming model that fits neatly
with this hardware model. Although not today.
--
alan kennedy
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
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org
/hwbapy01.mspx
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
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 alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
://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
.
grumpily-y'rs,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
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
--
email alan: http://xhaus.com/contact/alan
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
[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 != MySQL.
--
alan kennedy
--
email
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
--
email alan
! :-)
import time
time.sleep(10.0)
HTH,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
[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
[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, pickle or marshal?
A quick glance at some docs
tools.
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
?-) 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
[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 least, that it can be made completely secure very easily
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/pylinda/
HTH,
--
alan kennedy
?
Best of luck,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
[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 to become a lot of hard work or highly-inefficient when 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://www.editlet.com/
But I'd prefer a markup solution.
TIA for any pointers.
regards,
--
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 meaningful object model, etc.
[Fredrik Lundh
[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 happy with it. It's reasonably lightweight
threadfunction x=20
threadfunction x=30
regards,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list
is 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
--
email
/
5: http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html
Did I miss anything?
I am sure there are other approaches as well.
HTH,
--
alan kennedy
--
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman
99 matches
Mail list logo