On 12/20/2010 11:34 PM, John Nagle wrote:
SOAPpy is way out of date. The last update on SourceForge was in
2001.
2007, actually: http://sourceforge.net/projects/pywebsvcs/files/
And there is repository activity within the past 9 months. Still, point
taken.
--
http://mail.python.org/mailma
On Mon, Dec 20 2010, Jon Harrop wrote:
> Wasn't that the "challenge" where they wouldn't even accept solutions
> written in many other languages (including both OCaml and F#)?
>
> Cheers,
> Jon.
http://ai-contest.com/faq.php
Question: There is no starter package for my favorite language. What
On 12/20/2010 12:14 PM, Hidura wrote:
I recommend you use the urllib.request in the library of python says
everything that you want to know.
2010/12/20, Anurag Chourasia:
Dear Python Mates,
I have a requirement to send a XML Data to a WEB Service whose URL is of the
form http://joule:8041/DteE
Wasn't that the "challenge" where they wouldn't even accept solutions
written in many other languages (including both OCaml and F#)?
Cheers,
Jon.
"Xah Lee" wrote in message
news:44a8f48f-e291-463e-a042-d0cbc31a2...@z17g2000prz.googlegroups.com...
discovered this rather late.
Google has a AI
On 12/20/2010 10:03 PM, C Barrington-Leigh wrote:
I cannot figure out what I'm doing wrong. The following does not
return a fixed point:
What did it do? For nearly all such questions, cut and paste actual
output or traceback.
from scipy import optimize
xxroot= optimize.fixed_point(lambda xx
Am 20.12.2010 22:56, schrieb Ed Keith:
I have a user supplied 'template' Excel spreadsheet. I need to create a new
excel spreadsheet based on the supplied template, with data filled in.
I found the tools here http://www.python-excel.org/, and
http://sourceforge.net/projects/pyexcelerator/. I
I cannot figure out what I'm doing wrong. The following does not
return a fixed point:
from scipy import optimize
xxroot= optimize.fixed_point(lambda xx: exp(-2.0*xx)/2.0, 1.0,
args=(), xtol=1e-12, maxiter=500)
print ' %f solves fixed point, ie f(%f)=%f ?'%
(xxroot,xxroot,exp(-2.0*xxroot)/2.0)
C
On 12/20/2010 8:36 PM, Jshgwave wrote:
> When writing a function that uses a module such as NumPy, it is tempting
> to include the statement "import numpy" or "import numpy as np" in the
> definition of the function, in case the function is used in a script
> that hasn't already imported NumPy.
>
On 12/20/2010 7:10 PM, Chris Rebert wrote:
> On Mon, Dec 20, 2010 at 3:23 PM, wrote:
>> Hi all - it would seem that these days, all the cool kids use the sort
>> function's 'key' kwarg in order to sort a list of custom objects quickly.
>
> Really? They don't bother to define __cmp__ or similar?
When writing a function that uses a module such as NumPy, it is tempting to
include the statement "import numpy" or "import numpy as np" in the definition
of the function, in case the function is used in a script that hasn't already
imported NumPy.
That could lead to the script issuing the "im
On 12/20/2010 12:54 PM, mpnordland wrote:
> I give up, I will never try to use a usenet group again. For the ones
> of you who tried to help thank you. You helped to identify some of my
> troubles, as for you @usernet, you are a troll
Don't give up after one experience. Usenet can be really useful
On Mon, Dec 20, 2010 at 3:23 PM, wrote:
> Hi all - it would seem that these days, all the cool kids use the sort
> function's 'key' kwarg in order to sort a list of custom objects quickly.
Really? They don't bother to define __cmp__ or similar? Sounds lazy
and poorly structured.
> Unfortunately
Hi all - it would seem that these days, all the cool kids use the sort
function's 'key' kwarg in order to sort a list of custom objects quickly.
Unfortunately, as opposed to using 'cmp', where you can implent __cmp__ to
get 'automatic sorting' in a similar fashion, there doesn't seem to be a
direc
On Mon, Dec 20, 2010 at 11:58 AM, Anurag Chourasia
wrote:
> Dear Python Mates,
> I have a requirement to send a XML Data to a WEB Service whose URL is of the
> form http://joule:8041/DteEnLinea/ws/EnvioGuia.jws
> I also have to read back the response returned as a result of sending this
> data to
On 01/-10/-28163 02:59 PM, Martin Hvidberg wrote:
I'm reading a fixed format text file, line by line. I hereunder present
the code. I have out part not related to the file reading.
Only relevant detail left out is the lstCutters. It looks like this:
[[1, 9], [11, 21], [23, 48], [50, 59], [61, 96
I have a user supplied 'template' Excel spreadsheet. I need to create a new
excel spreadsheet based on the supplied template, with data filled in.
I found the tools here http://www.python-excel.org/, and
http://sourceforge.net/projects/pyexcelerator/. I have been trying to use the
former, sin
On Mon, Dec 20, 2010 at 2:08 PM, Martin Hvidberg wrote:
> Question:
> In the last printout, tagged >InReturLst> all entries turn into uni-code.
> What happens here?
Actually, they were all unicode to begin with. You're using
codecs.open to read the file, which transparently decodes the data
usin
> I'm reading a fixed format text file, line by line. I hereunder
present the code. I have out part not related to the file reading.
> Only relevant detail left out is the lstCutters. It looks like this:
> [[1, 9], [11, 21], [23, 48], [50, 59], [61, 96], [98, 123], [125, 150]]
> It specifies the
On 2010-12-20, spaceman-spiff wrote:
> 0. Goal :I am looking for a specific element..there are several 10s/100s
> occurrences of that element in the 1gb xml file. The contents of the xml,
> is just a dump of config parameters from a packet switch( although imho,
> the contents of the xml dont mat
On 12/20/2010 2:49 PM, Adam Tauno Williams wrote:
Yes, this is a terrible technique; most examples are crap.
Yes, this is using DOM. DOM is evil and the enemy, full-stop.
You're still using DOM; DOM is evil.
For serial processing, DOM is superfluous superstructure.
For random access pr
I'm reading a fixed format text file, line by line. I hereunder present
the code. I have out part not related to the file reading.
Only relevant detail left out is the lstCutters. It looks like this:
[[1, 9], [11, 21], [23, 48], [50, 59], [61, 96], [98, 123], [125, 150]]
It specifies the first a
On Mon, 2010-12-20 at 12:29 -0800, spaceman-spiff wrote:
> I need to detect them & then for each 1, i need to copy all the
> content b/w the element's start & end tags & create a smaller xml
> file.
Yep, do that a lot; via iterparse.
> 1. Can you point me to some examples/samples of using SAX,
>
Hi Usernet
First up, thanks for your prompt reply.
I will make sure i read RFC1855, before posting again, but right now chasing a
hard deadline :)
I am sorry i left out what exactly i am trying to do.
0. Goal :I am looking for a specific element..there are several 10s/100s
occurrences of that
On Mon, 2010-12-20 at 11:34 -0800, spaceman-spiff wrote:
> Hi c.l.p folks
> This is a rather long post, but i wanted to include all the details &
> everything i have tried so far myself, so please bear with me & read
> the entire boringly long post.
> I am trying to parse a ginormous ( ~ 1gb) xml f
I recommend you use the urllib.request in the library of python says
everything that you want to know.
2010/12/20, Anurag Chourasia :
> Dear Python Mates,
>
> I have a requirement to send a XML Data to a WEB Service whose URL is of the
> form http://joule:8041/DteEnLinea/ws/EnvioGuia.jws
>
> I als
[Wrapped to meet RFC1855 Netiquette Guidelines]
On 2010-12-20, spaceman-spiff wrote:
> This is a rather long post, but i wanted to include all the details &
> everything i have tried so far myself, so please bear with me & read
> the entire boringly long post.
>
> I am trying to parse a ginormous
On Tue, 21 Dec 2010 01:00:36 +0530, Anurag Chourasia wrote:
Anurag,
HTTPConnection takes a host and a port number as arguments, not just a URL.
So you could construct your connection request like this:
conn = httplib.HTTPConnection('joule', 8041)
then use the request() method on the connection
On Mon, Dec 20, 2010 at 11:14 AM, Littlefield, Tyler
wrote:
> Hello all,
> I have a question. I guess this worked pre 2.6; I don't remember the last
> time I used it, but it was a while ago, and now it's failing. Anyone mind
> looking at it and telling me what's going wrong?
Please describe /exac
> On Tue, Dec 21, 2010 at 12:42 AM, Kev Dwyer wrote:
>> On Tue, 21 Dec 2010 00:01:44 +0530, Anurag Chourasia wrote:
>> >>> import httplib
>> >>> help(httplib.HTTP)
>> Help on class HTTP in module httplib:
>>
>> class HTTP
>> | Compatibility class with httplib.py from 1.5.
>> |
>> | Methods de
On 12/20/2010 12:10 PM, lewi...@verizon.net wrote:
3. I have used Tk in the past with Tcl and IncrTcl. Where can I find a
lot of Python/Tk examples so that I can save some time in developing GUIs?
Do a search, or possibly a google codesearch, on tkinter or Tkinter,
which is Python's tk inter(
Hi c.l.p folks
This is a rather long post, but i wanted to include all the details &
everything i have tried so far myself, so please bear with me & read the entire
boringly long post.
I am trying to parse a ginormous ( ~ 1gb) xml file.
0. I am a python & xml n00b, s& have been relying on the
Hi Kevin,
Thanks for the response.
I tried with HTTPConnection but the same problem.
>>> h1 = httplib.HTTPConnection('
http://joule:8041/DteEnLinea/ws/EnvioGuia.jws')
Traceback (most recent call last):
File "", line 1, in ?
File "/u01/home/apli/wm/python241/lib/python2.4/httplib.py", line 58
Hello all,
I have a question. I guess this worked pre 2.6; I don't remember the
last time I used it, but it was a while ago, and now it's failing.
Anyone mind looking at it and telling me what's going wrong? Also, is
there a quick way to match on a certain site? like links from google.com
and
On Tue, 21 Dec 2010 00:01:44 +0530, Anurag Chourasia wrote:
>>> import httplib
>>> help(httplib.HTTP)
Help on class HTTP in module httplib:
class HTTP
| Compatibility class with httplib.py from 1.5.
|
| Methods defined here:
|
| __init__(self, host='', port=None, strict=None)
The con
Dear Python Mates,
I have a requirement to send a XML Data to a WEB Service whose URL is of the
form http://joule:8041/DteEnLinea/ws/EnvioGuia.jws
I also have to read back the response returned as a result of sending this
data to this WebService.
This web service implements the following operati
All,
When i try to open a URL of the form
http://joule:8041/DteEnLinea/ws/EnvioGuia.jws, I am getting an error as
below complaining for some non-numeric port.
wm (wmosds) [zibal] - /u01/home/apli/wm/app/gdd :>python
Python 2.4.1 (#2, May 30 2005, 09:40:30) [C] on aix5
Type "help", "copyright", "c
Folks,
1. As a free lance developer I need to use Python with Web Content Services using IIS7 (Windows 7). However, I don't have a lot of time to learn IIS7. Can someone tell me how to configure IIS7 to be used by Python CGI scripts?
2. I noticed that the latest distribution from ActiveState h
FWIW, on CentOS 4.7, the ctypes version works fine, but the struct
version fails, because len(tcp_info) is only 100 bytes while
struct.calcsize('B...L') is 104.
However, if the format is changed to '7B23L', i.e. one 'L' shorter,
the struct version works and returns to same result as the ctypes
ver
I give up, I will never try to use a usenet group again. For the ones of you
who tried to help thank you. You helped to identify some of my troubles, as for
you @usernet, you are a troll
--
http://mail.python.org/mailman/listinfo/python-list
as
On Dec 19, 2010 6:05 AM, wrote:
> Send Python-list mailing list submissions to
> python-list@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.python.org/mailman/listinfo/python-list
> or, via email, send a message with subject or body 'help' to
> python-lis
ZS
On Dec 19, 2010 6:05 AM, wrote:
> Send Python-list mailing list submissions to
> python-list@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.python.org/mailman/listinfo/python-list
> or, via email, send a message with subject or body 'help' to
> python-lis
Eric Frederich, 20.12.2010 16:23:
I remember reading about named tuples when they were back-ported to the
2.X series but I never played with them. Is there a way to instantiate a
named tuple from C code?
There isn't a dedicated C-API for named tuples, but you can instantiate any
Python type fr
Thanks for the reply.
I remember reading about named tuples when they were back-ported to
the 2.X series but I never played with them.
Is there a way to instantiate a named tuple from C code?
Maybe I'm over-thinking this whole thing.
Is there a simple way that I can define a class in Python and
i
Am 20.12.2010 09:45, schrieb mechtheist:
> I am no programmer, but know the rudiments [the rudi'est of rudiments]
> of working with Python. I have a simple need, to have a simple
> script/app I can run that will crash my PC. On my desktops, I can
> always hit the reset, but that is not an opt
Thanks, that is exactly what I was looking for. Unfortunately, it is
only for /non/-USB keyboards, I may be able to figure something out from
there with hotkey or something.
On 12/20/2010 3:31 AM, Stefan Sonnenberg-Carstens wrote:
http://pcsupport.about.com/od/tipstricks/ht/makebsodxp.htm
Am
On 20/12/2010 10:45, mechtheist wrote:
> I am no programmer, but know the rudiments [the rudi'est of rudiments]
> of working with Python. I have a simple need, to have a simple
> script/app I can run that will crash my PC. On my desktops, I can
> always hit the reset, but that is not an option
Vito 'ZeD' De Tullio wrote:
> Steven D'Aprano wrote:
>
>> I can't see any way to go from this linked list:
>>
>> node1 -> node2 -> node3 -> node4 -> node5 -> node6 -> node7
>>
>> to this:
>>
>> node1 -> node6 -> node5 -> node4 -> node3 -> node2 -> node7
>>
>> in constant time. You have to to
On 12/20/2010 4:22 AM, Steven D'Aprano wrote:
On Mon, 20 Dec 2010 02:45:18 -0600, mechtheist wrote:
I am no programmer, but know the rudiments [the rudi'est of rudiments]
of working with Python. I have a simple need, to have a simple
script/app I can run that will crash my PC. On my desktops
Ok, thanks Steven and Andre for yours reply.
This is my situation:
I've a list of objects of differents classes, with a common attribute
name
Something like this:
class Object1:
obj1_name
other fields
date
class Object2:
obj2_name
other fields
date
...
class O
Try this code:
# foo.py
import sys, codecs
stream = codecs.getwriter('utf-8')(sys.stdout)
print stream.encoding
$ python foo.py | cat
None
I expected the `encoding' attribute to be "UTF-8", since the stream
otherwise correctly functions as a utf-8 encoding stream.
Is this a bug in the stream fa
Hello,
On 12/20/2010 11:08 AM, MarcoS wrote:
> Hi, I need to create a list with a dynamic name, something like this:
>
> '%s_list' %my_dynamic list = []
>
> It's this possible?
I would suggest you use a dictionary to store your lists like this:
lists = {}
lists[my_dynamic_list] = []
Maybe yo
http://pcsupport.about.com/od/tipstricks/ht/makebsodxp.htm
Am Mo, 20.12.2010, 09:45 schrieb mechtheist:
> I am no programmer, but know the rudiments [the rudi'est of rudiments]
> of working with Python. I have a simple need, to have a simple
> script/app I can run that will crash my PC. On my de
On Mon, 20 Dec 2010 02:08:57 -0800, MarcoS wrote:
> Hi, I need to create a list with a dynamic name, something like this:
>
> '%s_list' %my_dynamic list = []
>
> It's this possible?
I'm pretty sure you don't *need* to, you just think you do. It is highly
unlikely that there is anything you can
On Mon, 20 Dec 2010 02:45:18 -0600, mechtheist wrote:
> I am no programmer, but know the rudiments [the rudi'est of rudiments]
> of working with Python. I have a simple need, to have a simple
> script/app I can run that will crash my PC. On my desktops, I can
> always hit the reset, but that is
Hi, I need to create a list with a dynamic name, something like this:
'%s_list' %my_dynamic list = []
It's this possible?
--
http://mail.python.org/mailman/listinfo/python-list
I am no programmer, but know the rudiments [the rudi'est of rudiments]
of working with Python. I have a simple need, to have a simple
script/app I can run that will crash my PC. On my desktops, I can
always hit the reset, but that is not an option with my laptop. Can
anyone tell me of an ea
56 matches
Mail list logo