On Aug 19, 2005, at 1:20 PM, Robert Kern wrote:
Read up on XML canonicalization (abrreviated as c14n). lxml implements
this, also xml.dom.ext.c14n in PyXML. You'll need to canonicalize on
both ends before hashing.
To paraphrase an Old Master, if you are running a cryptographic hash
over a
Yeha, sure. The Royal Institute of Technology in Stockholm, Sweden
teaches Python for some of its introductory programming and algorithm
courses.
--
http://mail.python.org/mailman/listinfo/python-list
it looks like your problem is in this line:
reviews = [Review(*[field.strip() for field in row]) for row in reader]
ouch! split that up a bit so we can understand what the heck you are
trying to do here. Also, it appears the whole thing is in these [ ] ?
why?
--
Would a cheap solution just be to run two python interpreters and have
the scripts communicating over COM or some other such thing? I'd
imagine that would give you true parallelism.
-GregOn 8/19/05, Donn Cave [EMAIL PROTECTED] wrote:
In article [EMAIL PROTECTED] , Bryan Olson [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
for file in glob(projHome + /tests/*.py):
start = file.rfind(/) + 1
end = file.rfind(.)
moduleName = file[start:end]
module = __import__(moduleName)
klass = module.__dict__[module.__name__]
tests.append(unittest.makeSuite(klass, test))
Read up on XML canonicalization (abrreviated as c14n). lxml implements
this, also xml.dom.ext.c14n in PyXML. You'll need to canonicalize on
both ends before hashing.
I said normalization but I think canonicalization is the word I was
looking for. I wasn't aware that lxml implented it (or that
Alright, everyone seems to have gone off on a tangent here, so I'll try
to stick to your code...
This is what I would ideally like:
f = open(blah.txt, r)
while c = f.read(1):
# ... work on c
But I get a syntax error.
while c = f.read(1):
^
SyntaxError: invalid
d'oh I'm an idiot... you are making a 'list' object.
--
http://mail.python.org/mailman/listinfo/python-list
my husband is installing an extra bathroom poolside. there is a perfect size
hole (unless you have a huge cock) to stick your dick through into the adjoing
room. come around the side of my house(perfect if you look like a repair man)
enter into the unfisnished bathroom and I'll service you
Russell E. Owen wrote:
The id of two different methods of the same object seems to be the
same, and it may not be stable either.
Two facts you're (apparently) unaware of are conspiring against you:
1) the id of an object is consistent for the lifetime of the object,
but may be reused after
On Fri, 19 Aug 2005 13:29:19 -0700, Russell E. Owen [EMAIL PROTECTED] wrote:
I have several situations in my code where I want a unique identifier
for a method of some object (I think this is called a bound method). I
want this id to be both unique to that method and also stable (so I can
In article [EMAIL PROTECTED],
Erik Max Francis [EMAIL PROTECTED] wrote:
Peter Decker wrote:
Then start looking for telecommuting people. There are lots of us who
can use work and have excellent telecommuting references, but who
don't happen to live in a major metro area!
And then there's
People,
I am trying to determine the creation date of files in a folder.
I am using the following code to find the folder and confirm that files
exist in the folder. If someone could give me an idea how to check a
creation date it would be appreciated.
Thanks
dave
def delete_old_files
im new to this, i guess you can say im still curious about having extra marital
lovers. i've only had 1 encounter with a married man and I loved it so much.
its such a strong burning desire now. when I look at men, i'm always wondering
how they look nude, or their cock size. basically, i
use os.stat docs are here:
http://docs.python.org/lib/module-stat.html
Larry Bates
David Fickbohm wrote:
People,
I am trying to determine the creation date of files in a folder.
I am using the following code to find the folder and confirm that files
exist in the folder. If someone could
I am writing a Hashcash program in python. Rather than create an email
client plugin, I have done this thru a proxy server which adds the
Hashcash before forwarding.
What I want to know is whether this is safe. I currently use this code:
class HashcashServer (smtpd.PureProxy):
def
Steve Holden wrote:
Robert Kern wrote:
Jon Hewer wrote:
Is there an online database of non standard library modules for Python?
http://cheeseshop.python.org/pypi
While cheeseshop might resonate with the Monty Python fans I have to say
I think the name sucks in terms of explaining
On Fri, 19 Aug 2005 16:31:47 +1000, John Machin [EMAIL PROTECTED] wrote:
Bengt Richter wrote:
On 18 Aug 2005 22:21:53 -0700, Greg McIntyre [EMAIL PROTECTED] wrote:
I have a Python snippet:
f = open(blah.txt, r)
while True:
c = f.read(1)
if c == '': break # EOF
# ... work on
[EMAIL PROTECTED] wrote:
Alright, everyone seems to have gone off on a tangent here, so I'll try
to stick to your code...
This is what I would ideally like:
f = open(blah.txt, r)
while c = f.read(1):
# ... work on c
But I get a syntax error.
while c = f.read(1):
wanna stop by my homemade glory hole?
I don't think anyone on this group will be interested in trying their
Python with that. Take it somewhere else.
--
Stephen Kellett
Object Media Limitedhttp://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++,
Gregory Piñero [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'd love Python work, just like everyone else here. On a related topic,
what's the policy/etiquette of posting a resume on here, or mentioning
what kind of work you're looking for?
I would take absence of such postings,
Russell E. Owen wrote:
The hash function looks promising -- it prints out consistent values
if I use it instead of id in the code above. Is it stable and unique?
The documentation talks about objects again, which given the behavior
of id makes me pretty nervous.
I dont know how the hash
Tom Strickland wrote:
I have a file that contains many lines, each of which consists of a string
of comma-separated variables, mostly floats but some strings. Each line
looks like an obvious tuple to me. How do I save each line of this file as a
tuple rather than a string? Or, is that the
limodou wrote:
2005/8/19, max(01)* [EMAIL PROTECTED]:
hi.
i was wondering, what's the simplest way to echo the standard input to
the standard output, with no modification.
i came up with:
...
while True:
try:
raw_input()
except EOFError:
break
...
but i guess there must be a
Donn Cave wrote:
Bryan Olson wrote:
On a uniprocessor system, the GIL is no problem. On multi-
processor/core systems, it's a big loser.
I rather suspect it's a bigger winner there.
Someone who needs to execute Python instructions in parallel
is out of luck, of course, but that
Karrigell has new tutorial here:
http://karrigell.sourceforge.net/en/tutorial.html
For those who don't know what Karrigell is, I'd just say that it is the
most pythonic, simple, fun, straightforward and full-featured web
framework available today.
Check it out! http://karrigell.sourceforge.net/
In article [EMAIL PROTECTED],
Benji York [EMAIL PROTECTED] wrote:
Russell E. Owen wrote:
The id of two different methods of the same object seems to be the
same, and it may not be stable either.
Two facts you're (apparently) unaware of are conspiring against you:
1) the id of an object is
In [EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
oh, well how do I make derek be an instance of 'chatuser' ?
Spot the difference::
In [228]: class A: pass
.228.:
In [229]: a = A
In [230]: repr(a)
Out[230]: 'class __main__.A at 0x4078883c'
In [231]: b = A()
In [232]: repr(b)
David Fickbohm wrote:
People,
I am trying to determine the creation date of files in a folder.
I am using the following code to find the folder and confirm that files
exist in the folder.
Presumably you meant intend to use the following pseudocode (not am
using the following code) --
my husband is installing an extra bathroom poolside. there is a perfect size
hole (unless you have a huge cock) to stick your dick through into the adjoing
room. come around the side of my house(perfect if you look like a repair man)
enter into the unfisnished bathroom and I'll service you
On Fri, 19 Aug 2005 16:33:22 -0700, Russell E. Owen [EMAIL PROTECTED] wrote:
[...]
The current issue is associated with Tkinter. I'm trying to create a tk
callback function that calls a python function (any python callable
entity).
To do that, I have to create a name for tk that is unique to
I need to unpack on a Windows 2000 machine
some Wikipedia media .tar archives which are
compressed with TAR 1.14 (support for long file
names and maybe some other features) .
It seems, that Pythons tarfile module is able to list far
more files inside the archives than WinRAR or 7zip or
The missing link under /var/www/html was exactly the problem. Somehow
missed this in the labyrinth of setup instructions.
I have another question, and as of yet, have not found another
discussion group for moinmoin, so sorry, but here goes:
I have a table and would like the table borders to go
Terry Reedy [EMAIL PROTECTED] writes:
generally counter-indicated unless the name (.marketplace) or charter say
otherwise. Exceptions would be a low volume of things of direct and narrow
interest. So I consider the rare job announcements posted here ok. The
same for book announcements.
Bryan Olson [EMAIL PROTECTED] writes:
I don't see much point in trying to convince programmers that
they don't really want concurrent threads. They really do. Some
don't know how to use them, but that's largely because they
haven't had them. I doubt a language for thread-phobes has much
of a
Larry Bates [EMAIL PROTECTED] writes:
Directories with large numbers of files was a problem in FAT16 and
FAT32 filesystems but not really a problem in NTFS or Linux (at
least that I've found).
Depends on how you define large and what Linux file system you're
using. Of course, if you open the
In article [EMAIL PROTECTED], Mike Meyer [EMAIL PROTECTED] wrote:
Maybe the Python jobs lists needs a available developers
counterpart? Or would it be to big/dynamic to maintain using whatever
is behind the jobs list?
Part of the reason the Jobs page hasn't moved to a wiki is that often
people
Paul McGuire [EMAIL PROTECTED] writes:
Here's a pyparsing program that reads my personal web page, and spits
out HTML with all of the HREF's reversed.
Parsing HTML isn't easy, which makes me wonder how good this solution
really is. Not meant as a comment on the quality of this code or
Mark wrote:
The missing link under /var/www/html was exactly the problem. Somehow
missed this in the labyrinth of setup instructions.
I have another question, and as of yet, have not found another
discussion group for moinmoin, so sorry, but here goes:
I have a table and would like the
This is to inform those interested in Python and MinGW that a binary
distribution of pyMinGW-241 is now available. This is mainly a
packaging of the March release in binary form for those who are finding
it difficult to build Python or its standard extensions in MinGW.
WHAT'S INSIDE
On 18 Aug 2005 22:21:53 -0700
Greg McIntyre wrote:
f = open(blah.txt, r)
while True:
c = f.read(1)
if c == '': break # EOF
# ... work on c
Is some way to make this code more compact and simple? It's a bit
spaghetti.
This is what I would ideally like:
f =
Bugs item #1264168, was opened at 2005-08-19 19:31
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1264168group_id=5470
Please note that this message will contain a full copy of the comment
101 - 142 of 142 matches
Mail list logo