comp.lang.python - 23 new messages in 13 topics - digest
comp.lang.python
http://groups.google.com/group/comp.lang.python?hl=en
comp.lang.python@googlegroups.com
Today's topics:
* ANN: obfuscate - 3 messages, 3 authors
http://groups.google.com/group/comp.lang.python/t/6374e775e474ee1a?hl=en
* equivalent of Ruby's Pathname? - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.python/t/f580fb3763208425?hl=en
* errno 107 socket.recv issue - 5 messages, 3 authors
http://groups.google.com/group/comp.lang.python/t/ff1ce95292f1a5ec?hl=en
* Need installer recommendation - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/4dde71656ebe2567?hl=en
* Executing Commands From Windows Service - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/9f541d309af57595?hl=en
* Paypal payment Discount Wholesale/Retail,D&G bags,CHLOE True leather ,Paul
Smith bags,LV Purse True leather,HERMES Purse True leather,GUCCI True leather
AAA ,CHANEL bags etc BRAND handbags - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/39d7c8a208554a57?hl=en
* Python-URL! - weekly Python news and links (Feb 9) - 3 messages, 3 authors
http://groups.google.com/group/comp.lang.python/t/0e861974ce5d2b5f?hl=en
* PostgreSQL driver for Python applications that supports bytea correctly? - 2
messages, 2 authors
http://groups.google.com/group/comp.lang.python/t/70a061b40f4c8cc7?hl=en
* timer for a function - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/a52c427850c5ef89?hl=en
* Modifying Class Object - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/fd36962c4970ac48?hl=en
* Python 3: Plist as OrderedDict - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/07b43686e015995c?hl=en
* How to measure elapsed time under Windows? - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/340c476d0357a7bd?hl=en
* Programing family - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/9c369186368028ed?hl=en
==============================================================================
TOPIC: ANN: obfuscate
http://groups.google.com/group/comp.lang.python/t/6374e775e474ee1a?hl=en
==============================================================================
== 1 of 3 ==
Date: Tues, Feb 9 2010 5:21 am
From: Roy Smith
In article <00fa27a3$0$15628$c3e8da3@news.astraweb.com>,
Steven D'Aprano <steve@REMOVE-THIS-cybersource.com.au> wrote:
> I am pleased to announce the first public release of obfuscate 0.2.2a.
>
> http://pypi.python.org/pypi/obfuscate/0.2.2a
>
> obfuscate is a pure-Python module providing classical encryption
> algorithms suitable for obfuscating and unobfuscating text.
>
> obfuscate includes the following ciphers:
> - Caesar, rot13, rot5, rot18, rot47
> - atbash
> - Playfair, Playfair6 and Playfair16
> - Railfence (encryption only)
> - Keyword
> - Affine
> - Vigenere
> - frob (xor)
No pig latin?
== 2 of 3 ==
Date: Tues, Feb 9 2010 7:37 am
From: Daniel Fetchinson
> I am pleased to announce the first public release of obfuscate 0.2.2a.
>
> http://pypi.python.org/pypi/obfuscate/0.2.2a
>
> obfuscate is a pure-Python module providing classical encryption
> algorithms suitable for obfuscating and unobfuscating text.
>
> obfuscate includes the following ciphers:
> - Caesar, rot13, rot5, rot18, rot47
> - atbash
> - Playfair, Playfair6 and Playfair16
> - Railfence (encryption only)
> - Keyword
> - Affine
> - Vigenere
> - frob (xor)
>
> and others.
>
> DISCLAIMER: obfuscate is not cryptographically strong, and should not be
> used where high security is required. (The ciphers provided in obfuscate
> may have been state of the art centuries ago, but should not be used
> where strong encryption is required.
>
> obfuscate is released under the MIT licence.
>
> Requires Python 2.5 or 2.6.
Great, these packages are badly needed!
If the code base stabilizes in a production version after losing the
alphas and betas they would be a great addition to the stdlib, I
think.
Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
== 3 of 3 ==
Date: Tues, Feb 9 2010 8:29 am
From: Robert Kern
On 2010-02-09 09:37 AM, Daniel Fetchinson wrote:
>> I am pleased to announce the first public release of obfuscate 0.2.2a.
>>
>> http://pypi.python.org/pypi/obfuscate/0.2.2a
>>
>> obfuscate is a pure-Python module providing classical encryption
>> algorithms suitable for obfuscating and unobfuscating text.
>>
>> obfuscate includes the following ciphers:
>> - Caesar, rot13, rot5, rot18, rot47
>> - atbash
>> - Playfair, Playfair6 and Playfair16
>> - Railfence (encryption only)
>> - Keyword
>> - Affine
>> - Vigenere
>> - frob (xor)
>>
>> and others.
>>
>> DISCLAIMER: obfuscate is not cryptographically strong, and should not be
>> used where high security is required. (The ciphers provided in obfuscate
>> may have been state of the art centuries ago, but should not be used
>> where strong encryption is required.
>>
>> obfuscate is released under the MIT licence.
>>
>> Requires Python 2.5 or 2.6.
>
> Great, these packages are badly needed!
>
> If the code base stabilizes in a production version after losing the
> alphas and betas they would be a great addition to the stdlib, I
> think.
Why?
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
==============================================================================
TOPIC: equivalent of Ruby's Pathname?
http://groups.google.com/group/comp.lang.python/t/f580fb3763208425?hl=en
==============================================================================
== 1 of 2 ==
Date: Tues, Feb 9 2010 6:00 am
From: Phlip
Gregory Ewing wrote:
> It wouldn't just be open() that people would want modified --
> it would be every other function that takes a pathname as
> well.
Then refer to the same argument against implicit type conversions in C+
+.
A ::std::string must call .c_str() to turn into a lowly char*, before
passing into a C function. Advocating for 8 characters of convenience
opens the risk of silent bugs at refactor time.
> I seem to recall another point of contention was whether
> path objects should have methods for accessing the file
> system (opening files, renaming them, etc.) or whether it
> should confine itself to representing and manipulating
> pathnames.
In that case, the package I picked seems to have "erred" on the side
of programmer convenience.
Because the basic file operations (exist, stat, move/rename, copy,
open, chmod, unlink) come as a complete and whole kit, a class should
simply present that kit, insulating against filesystem differences.
> In any case, introducing any kind of path object at this
> late stage of the language's development would result in
> More Than One Way to represent pathnames, with neither of
> them being the obvious choice.
Ah, now we get down to the root of the problem. Because Python is so
stuck on the "one best way to do it" mentality, language bigotry
prevented the Committee from picking from among several equally valid
but non-best options. And after 20 years of growth, Python still has
no Pathname class. What a mature community! C-:
--
Phlip
http://c2.com/cgi/wiki?MoreliaViridis
== 2 of 2 ==
Date: Tues, Feb 9 2010 7:23 am
From: Bruno Desthuilliers
Phlip a écrit :
> Gregory Ewing wrote:
>
>> In any case, introducing any kind of path object at this
>> late stage of the language's development would result in
>> More Than One Way to represent pathnames, with neither of
>> them being the obvious choice.
>
> Ah, now we get down to the root of the problem. Because Python is so
> stuck on the "one best way to do it"
> mentality, language bigotry
> prevented the Committee from picking from among several equally valid
> but non-best options.
You failed to actually _read_ what you're answering to. Try again. Using
your brain, this time.
==============================================================================
TOPIC: errno 107 socket.recv issue
http://groups.google.com/group/comp.lang.python/t/ff1ce95292f1a5ec?hl=en
==============================================================================
== 1 of 5 ==
Date: Tues, Feb 9 2010 6:11 am
From: Jordan Apgar
I have a simple tcp server and client where the server sits and waits
for a message and then processes it, my client sends its first message
to the server. On the server I receive:
socket.error: [Errno 107] Transport endpoint is not connected
when calling
msg = self.socket.recv(self.buffer)
My client receives the error:
socket.error: [Errno 104] Connection reset by peer
when calling
msg = self.socket.recv(self.buffer)
I was working on the server and client over the weekend and sending
and receiving worked fine, I wanted to debug a few things and I get
this when I try to run it (no changes made from what I had on the
weekend)
== 2 of 5 ==
Date: Tues, Feb 9 2010 6:30 am
From: Steve Holden
Jordan Apgar wrote:
> I have a simple tcp server and client where the server sits and waits
> for a message and then processes it, my client sends its first message
> to the server. On the server I receive:
>
> socket.error: [Errno 107] Transport endpoint is not connected
> when calling
> msg = self.socket.recv(self.buffer)
>
> My client receives the error:
> socket.error: [Errno 104] Connection reset by peer
> when calling
> msg = self.socket.recv(self.buffer)
>
> I was working on the server and client over the weekend and sending
> and receiving worked fine, I wanted to debug a few things and I get
> this when I try to run it (no changes made from what I had on the
> weekend)
My car has this problem. It makes a noise when it rolls along the road.
I've brought the wheel for you to take a look at, can you fix it,
please? ;-)
A little more context might be helpful - at least the error traceback
and the code that makes the socket calls. I presume you are using TCP
judging by the client error message. This implies the server isn't
listening. Have you correctly bound the socket to an IP address and port
before issuing an accept() call?
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS: http://holdenweb.eventbrite.com/
== 3 of 5 ==
Date: Tues, Feb 9 2010 6:56 am
From: Jean-Michel Pichavant
Jordan Apgar wrote:
> I have a simple tcp server and client where the server sits and waits
> for a message and then processes it, my client sends its first message
> to the server. On the server I receive:
>
> socket.error: [Errno 107] Transport endpoint is not connected
> when calling
> msg = self.socket.recv(self.buffer)
>
> My client receives the error:
> socket.error: [Errno 104] Connection reset by peer
> when calling
> msg = self.socket.recv(self.buffer)
>
> I was working on the server and client over the weekend and sending
> and receiving worked fine, I wanted to debug a few things and I get
> this when I try to run it (no changes made from what I had on the
> weekend)
>
Unless you want to know more about net coding, I would suggest to use
libraries for that.
Pyro or xmlrpclib are among the most used.
Then if you have any connection problem, that's because there is a
connection problem. Not because you mess up with your net code.
JM
== 4 of 5 ==
Date: Tues, Feb 9 2010 7:20 am
From: Jordan Apgar
I found my car ;)
here's the server:
class commServer:
"""Class to hold a tcp server and interact with with it
allows for a wrapper around socket class to keep code clean"""
def __init__ (self, host, hostid, port, buff =1024):
self.host = host
self.hostid = hostid #id of the server
self.port = port
self.buffer = buff
self.socket = socket.socket(socket.AF_INET,
socket.SOCK_STREAM)
self.conn = None
self.addr = None
def bindServ(self):
"""Connect to the server specified by self.host, self.port"""
self.socket.bind((self.host, self.port))
def closeConn(self):
"""Disconnect from the server connected to"""
self.conn.close()
def listen(self):
self.socket.listen(1)
def accept(self):
self.conn, self.addr = self.socket.accept()
#lets you send a string msg to the server
def sendMSG(self, msg):
self.conn.send(msg)
#lets you receive data from the server
def recvMSG(self):
msg = self.socket.recv(self.buffer)
if msg == "": #if the client disconnected let's not throw
return False
else:
return msg
class Negotiator:
"""Negotiator for the server handles all communication with the
client to
verify the server and prepare the file the client wants for
download"""
def __init__(self, host, hostid, port, rsa_key):
self.server = commServer(host,hostid,port)
def Negotiate(self):
self.server.bindServ()
self.server.listen()
self.server.accept()
#Plan on being asked for server confirmation
clmsg = self.server.recvMSG() # it fails right here on the
server
calling the Server Negotiator as:
host = "127.0.0.1"
port = 8005
HOSTID = a string
key = an RSA key
servernegotiator = Negotiator(host,HostID, port, key)
if servernegotiator.Negotiate() == False:
print "something went wrong"
print "Done"
for the client it is:
class commClient:
"""Class to hold a tcp client and interact with with it
allows for a wrapper around socket class to keep code clean"""
def __init__ (self, host, hostid, port, buff =1024):
self.host = host
self.hostid = hostid #id of the server
self.port = port
self.buffer = buff
self.socket = socket.socket(socket.AF_INET,
socket.SOCK_STREAM)
def connectServ(self):
"""Connect to the server specified by self.host, self.port"""
self.socket.connect((self.host, self.port))
def disconnServ(self):
"""Disconnect from the server connected to"""
self.socket.close()
#lets you send a string msg to the server
def sendMSG(self, msg):
self.socket.send(msg)
#lets you receive data from the server
def recvMSG(self):
msg = self.socket.recv(self.buffer)
if msg == "": #if the server disconnected let's not throw
something later
return False
else:
return msg
class Negotiator:
"""The Negotiator handles all communications and message handling
necessary for verifying the server, and that the file is available
to
download"""
def __init__(self, host, hostid, port, rsa_key):
"""client should be a commClient object that has not been
connected
to the server."""
self.client = commClient(host, hostid, port)
self.clientKey = rsa_key
self.serverKey = None
self.CScipher = None #AES cipher for client -> server
self.SCcipher = None #AES cipher for server -> client
self.CShalves = None #tuple for random halves by client
self.SChalves = None #tuple for random halves by server
self.file = None
def Negotiate(self, fname):
"""Contact the server, verify the server,
negotiates for a file to be downloaded by the client. It
returns
the file name to be downloaded, and the cipher to decrypt
it."""
self.client.connectServ()
print "connected"
#tell the server you want to connect
clmsg = message(CONN, (self.client.getHost(),
self.client.getHostID())) #message acts
as a wrapper around a message type and the data for the type
self.client.sendMSG(clmsg.getSendable()) # here is were it
fails
the Negotiator is called as:
host = "127.0.0.1"
port = 8005
HOSTID is the same string as before
key is an RSA key
clientnegotiator = Negotiator(host, HostID, port, key)
filename = clientnegotiator.Negotiate("hostid")
the stack traces are:
Server side:
Traceback (most recent call last):
File "Server.py", line 17, in <module>
if servernegotiator.Negotiate() == False:
File "/home/twistedphrame/Desktop/communication/
ServerNegotiator.py", line 184, in Negotiate
clmsg = self.server.recvMSG()
File "/home/twistedphrame/Desktop/communication/
ServerNegotiator.py", line 67, in recvMSG
msg = self.socket.recv(self.buffer)
socket.error: [Errno 107] Transport endpoint is not connected
Client Side:
File "Client.py", line 17, in <module>
filename = clientnegotiator.Negotiate("hostid")
File "/home/twistedphrame/Desktop/communication/
ClientNegotiator.py", line 209, in Negotiate
srvmsg = self.client.recvMSG()
File "/home/twistedphrame/Desktop/communication/
ClientNegotiator.py", line 55, in recvMSG
msg = self.socket.recv(self.buffer)
socket.error: [Errno 104] Connection reset by peer
== 5 of 5 ==
Date: Tues, Feb 9 2010 7:48 am
From: Jean-Michel Pichavant
Jordan Apgar wrote:
> I found my car ;)
>
> here's the server:
>
> class commServer:
> """Class to hold a tcp server and interact with with it
> allows for a wrapper around socket class to keep code clean"""
>
> def __init__ (self, host, hostid, port, buff =1024):
> self.host = host
> self.hostid = hostid #id of the server
> self.port = port
> self.buffer = buff
> self.socket = socket.socket(socket.AF_INET,
> socket.SOCK_STREAM)
> self.conn = None
> self.addr = None
>
> def bindServ(self):
> """Connect to the server specified by self.host, self.port"""
> self.socket.bind((self.host, self.port))
> def closeConn(self):
> """Disconnect from the server connected to"""
> self.conn.close()
> def listen(self):
> self.socket.listen(1)
> def accept(self):
> self.conn, self.addr = self.socket.accept()
>
> #lets you send a string msg to the server
> def sendMSG(self, msg):
> self.conn.send(msg)
> #lets you receive data from the server
> def recvMSG(self):
> msg = self.socket.recv(self.buffer)
> if msg == "": #if the client disconnected let's not throw
> return False
> else:
> return msg
>
>
> class Negotiator:
> """Negotiator for the server handles all communication with the
> client to
> verify the server and prepare the file the client wants for
> download"""
> def __init__(self, host, hostid, port, rsa_key):
> self.server = commServer(host,hostid,port)
>
> def Negotiate(self):
> self.server.bindServ()
> self.server.listen()
> self.server.accept()
>
> #Plan on being asked for server confirmation
> clmsg = self.server.recvMSG() # it fails right here on the
> server
>
>
> calling the Server Negotiator as:
> host = "127.0.0.1"
> port = 8005
> HOSTID = a string
> key = an RSA key
> servernegotiator = Negotiator(host,HostID, port, key)
> if servernegotiator.Negotiate() == False:
> print "something went wrong"
> print "Done"
>
>
>
> for the client it is:
> class commClient:
> """Class to hold a tcp client and interact with with it
> allows for a wrapper around socket class to keep code clean"""
>
> def __init__ (self, host, hostid, port, buff =1024):
> self.host = host
> self.hostid = hostid #id of the server
> self.port = port
> self.buffer = buff
> self.socket = socket.socket(socket.AF_INET,
> socket.SOCK_STREAM)
>
> def connectServ(self):
> """Connect to the server specified by self.host, self.port"""
> self.socket.connect((self.host, self.port))
> def disconnServ(self):
> """Disconnect from the server connected to"""
> self.socket.close()
>
> #lets you send a string msg to the server
> def sendMSG(self, msg):
> self.socket.send(msg)
> #lets you receive data from the server
> def recvMSG(self):
> msg = self.socket.recv(self.buffer)
> if msg == "": #if the server disconnected let's not throw
> something later
> return False
> else:
> return msg
>
>
>
> class Negotiator:
> """The Negotiator handles all communications and message handling
> necessary for verifying the server, and that the file is available
> to
> download"""
> def __init__(self, host, hostid, port, rsa_key):
> """client should be a commClient object that has not been
> connected
> to the server."""
> self.client = commClient(host, hostid, port)
> self.clientKey = rsa_key
> self.serverKey = None
> self.CScipher = None #AES cipher for client -> server
> self.SCcipher = None #AES cipher for server -> client
> self.CShalves = None #tuple for random halves by client
> self.SChalves = None #tuple for random halves by server
> self.file = None
>
>
> def Negotiate(self, fname):
> """Contact the server, verify the server,
> negotiates for a file to be downloaded by the client. It
> returns
> the file name to be downloaded, and the cipher to decrypt
> it."""
>
> self.client.connectServ()
> print "connected"
>
> #tell the server you want to connect
> clmsg = message(CONN, (self.client.getHost(),
> self.client.getHostID())) #message acts
> as a wrapper around a message type and the data for the type
> self.client.sendMSG(clmsg.getSendable()) # here is were it
> fails
>
> the Negotiator is called as:
> host = "127.0.0.1"
> port = 8005
> HOSTID is the same string as before
> key is an RSA key
> clientnegotiator = Negotiator(host, HostID, port, key)
> filename = clientnegotiator.Negotiate("hostid")
>
> the stack traces are:
> Server side:
> Traceback (most recent call last):
> File "Server.py", line 17, in <module>
> if servernegotiator.Negotiate() == False:
> File "/home/twistedphrame/Desktop/communication/
> ServerNegotiator.py", line 184, in Negotiate
> clmsg = self.server.recvMSG()
> File "/home/twistedphrame/Desktop/communication/
> ServerNegotiator.py", line 67, in recvMSG
> msg = self.socket.recv(self.buffer)
> socket.error: [Errno 107] Transport endpoint is not connected
>
> Client Side:
> File "Client.py", line 17, in <module>
> filename = clientnegotiator.Negotiate("hostid")
> File "/home/twistedphrame/Desktop/communication/
> ClientNegotiator.py", line 209, in Negotiate
> srvmsg = self.client.recvMSG()
> File "/home/twistedphrame/Desktop/communication/
> ClientNegotiator.py", line 55, in recvMSG
> msg = self.socket.recv(self.buffer)
> socket.error: [Errno 104] Connection reset by peer
>
>
>
http://docs.python.org/library/socketserver.html
JM
==============================================================================
TOPIC: Need installer recommendation
http://groups.google.com/group/comp.lang.python/t/4dde71656ebe2567?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Feb 9 2010 6:17 am
From: Alan Biddle
Thanks you very much for the suggestion. I will give it a try.
Since I posted the original question, I have tried PyInstaller. I am
using Python 2.6.4, which is technically not supported, but it worked
fine for the simple programs I tried, and simple enough even for me.
;)
--
Alan
==============================================================================
TOPIC: Executing Commands From Windows Service
http://groups.google.com/group/comp.lang.python/t/9f541d309af57595?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Feb 9 2010 6:52 am
From: T
On Feb 8, 2:25 pm, David Bolen <db3l....@gmail.com> wrote:
> T <misceveryth...@gmail.com> writes:
> > I have a script, which runs as a Windows service under the LocalSystem
> > account, that I wish to have execute some commands. Specifically, the
> > program will call plink.exe to create a reverse SSH tunnel. Right now
> > I'm using subprocess.Popen to do so. When I run it interactively via
> > an admin account, all is well. However, when I'm running it via
> > service, no luck. I'm assuming this is to do with the fact that it's
> > trying to run under the LocalSystem account, which is failing. What
> > would be the best way around this? Thanks!
>
> The LocalSystem account is not, if I recall correctly, permitted to
> access the network.
>
> You'll have to install the service to run under some other account that
> has appropriate access to the network.
>
> -- David
The more testing I do, I think you may be right..I was able to get it
to work under a local admin account, and it worked under debug mode
(which would also have been running as this user). I'm a bit
surprised though - I was under the assumption that LocalSystem had
rights to access the network?
==============================================================================
TOPIC: Paypal payment Discount Wholesale/Retail,D&G bags,CHLOE True leather ,
Paul Smith bags,LV Purse True leather,HERMES Purse True leather,GUCCI True
leather AAA ,CHANEL bags etc BRAND handbags
http://groups.google.com/group/comp.lang.python/t/39d7c8a208554a57?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Feb 9 2010 7:00 am
From: brandtrade
Discount VERSACE True leather AAA Wholesale (www.globlepurchase.com)
Discount VERSACE bags Wholesale (www.globlepurchase.com)
Discount Chanel Purse Wholesale (www.globlepurchase.com)
Discount CHANEL bags Wholesale (www.globlepurchase.com)
Discount CHANEL True leather AAA Wholesale (www.globlepurchase.com)
Discount PRADA Purse Wholesale (www.globlepurchase.com)
Discount PRADA bags Wholesale (www.globlepurchase.com)
Discount PRADA True leather AAA Wholesale (www.globlepurchase.com)
Discount GUCCI Purse Wholesale (www.globlepurchase.com)
Discount GUCCI True leather AAA Wholesale (www.globlepurchase.com)
Discount Gucci bags Wholesale (www.globlepurchase.com)
Discount Gucci Purse True leather AAA Wholesale
(www.globlepurchase.com)
Discount Gucci bag Wholesale (www.globlepurchase.com)
Discount BURBERRY Purse Wholesale (www.globlepurchase.com)
Discount BURBERRY bags Wholesale (www.globlepurchase.com)
Discount pauesmitl bags Wholesale (www.globlepurchase.com)
Discount HERMES True leather AAA Wholesale (www.globlepurchase.com)
Discount HERMES Purse True leather AAA Wholesale
(www.globlepurchase.com)
Discount HERMES bags Wholesale (www.globlepurchase.com)
Discount LV bags Wholesale (www.globlepurchase.com)
Discount LV Purse True leather AAA Wholesale (www.globlepurchase.com)
Discount LV Purse Wholesale (www.globlepurchase.com)
Discount LV True leather AAA Wholesale (www.globlepurchase.com)
Discount D&G bag Wholesale (www.globlepurchase.com)
Discount D&G Purse Wholesale (www.globlepurchase.com)
Discount D&G bags Wholesale (www.globlepurchase.com)
Discount D&G Purse True leather AAA Wholesale
(www.globlepurchase.com)
Discount ED Purse Wholesale (www.globlepurchase.com)
Discount EDHardy bags Wholesale (www.globlepurchase.com)
Discount UGG bag Wholesale (www.globlepurchase.com)
Discount CHLOE True leather AAA Wholesale (www.globlepurchase.com)
Discount CHLOE bags Wholesale (www.globlepurchase.com)
Discount Chloe Purse True leather AAA Wholesale
(www.globlepurchase.com)
Discount JIMMY CHOO Purse True leather AAA Wholesale
(www.globlepurchase.com)
Discount JIMMYTOO bags Wholesale (www.globlepurchase.com)
Discount JIMMY THOO True leather AAA Wholesale
(www.globlepurchase.com)
Discount paul smith bags Wholesale (www.globlepurchase.com)
More detail land, address:www.globlepurchase.com
paypal wholesale d&g shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale gucci shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale lv shoes (paypal payment)( www.globlepurchase.com)
paypal wholesale NBA shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale nike (paypal payment)(www.globlepurchase.com)
paypal wholesale adidas shoes (paypal payment)
(www.globlepurchase.com)
paypal wholesale UGG shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale bape hoody (paypal payment)(www.globlepurchase.com)
paypal wholesale antick jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale diesel jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale artful dudger (paypal payment)
(www.globlepurchase.com)
paypal wholesale bag(lv gucci coach chanel d&g dior ed fendi )
(paypal payment)( www.globlepurchase.com)
paypal wholesale clothing (paypal payment)(www.globlepurchase.com)
paypal wholesale lrg,jeans,hoody, (paypal payment)
(www.globlepurchase.com)
paypal wholesale evisu jeans,hoody,shirt (paypal payment)
(www.globlepurchase.com)
paypal wholesale Prada (paypal payment)(www.globlepurchase.com)
paypal wholesale Puma (paypal payment)(www.globlepurchase.com)
paypal wholesale Sand (paypal payment)(www.globlepurchase.com)
paypal wholesale Shox (paypal payment)(www.globlepurchase.com)
paypal wholesale soccer (paypal payment)(www.globlepurchase.com)
paypal wholesale UGG (paypal payment)(www.globlepurchase.com)
paypal wholesale Versace (paypal payment)(www.globlepurchase.com)
paypal wholesale Women (paypal payment)(www.globlepurchase.com)
paypal wholesale Y-3 (paypal payment)(www.globlepurchase.com)
==============================================================================
TOPIC: Python-URL! - weekly Python news and links (Feb 9)
http://groups.google.com/group/comp.lang.python/t/0e861974ce5d2b5f?hl=en
==============================================================================
== 1 of 3 ==
Date: Tues, Feb 9 2010 7:03 am
From: "Gabriel Genellina"
QOTW: "You see? That's what I like about the Python community: people even
apologise for apologising :)" - Tim Golden
http://groups.google.com/group/comp.lang.python/msg/858d1c31d0c2adff
The third alpha version of Python 2.7 is ready for testing:
http://groups.google.com/group/comp.lang.python/t/6f49dacfe8759508/
How to enumerate all possible strings matching a given regular expression:
http://groups.google.com/group/comp.lang.python/t/1b78346c6661ac4f/
Which language features do you like most?
http://groups.google.com/group/comp.lang.python/t/599b3c9772421ece/
Implementing a two-dimensional array in a simple way seems to actually
be more efficient than other, more sophisticated alternatives:
http://groups.google.com/group/comp.lang.python/t/55e595d6dc4ca3f4/
The new GIL (to be implemented in Python 3.2) will provide less overhead,
especially in multicore CPUs:
http://groups.google.com/group/comp.lang.python/t/586ef2d3685fa7ea/
In Python 3, 'exec' inside a function does not have the same effect
as before:
http://groups.google.com/group/comp.lang.python/t/7a046e4ede9c310a/
Using Queue objects to feed and synchronize several worker threads:
http://groups.google.com/group/comp.lang.python/t/32256dd608c9c02/
New generation IDEs should provide much better and integrated
refactoring tools:
http://groups.google.com/group/comp.lang.python/t/e019614ea149e7bd/
There is no module in the standard library to handle filesystem paths
in an OO way - but why?
http://groups.google.com/group/comp.lang.pythonf580fb3763208425ece/
A "History Channel" special: how the way a TAB key was interpreted
changed over time
http://groups.google.com/group/comp.lang.python82d9181fcd31ffea3f4/
After a false start, finally we get our first "Is it Call-By-Value or
Call-By-Reference?" thread of the year!
http://groups.google.com/group/comp.lang.pythonfd36962c4970ac487ea/
========================================================================
Everything Python-related you want is probably one or two clicks away in
these pages:
Python.org's Python Language Website is the traditional
center of Pythonia
http://www.python.org
Notice especially the master FAQ
http://www.python.org/doc/FAQ.html
PythonWare complements the digest you're reading with the
marvelous daily python url
http://www.pythonware.com/daily
Just beginning with Python? This page is a great place to start:
http://wiki.python.org/moin/BeginnersGuide/Programmers
The Python Papers aims to publish "the efforts of Python enthusiasts":
http://pythonpapers.org/
The Python Magazine is a technical monthly devoted to Python:
http://pythonmagazine.com
Readers have recommended the "Planet" site:
http://planet.python.org
comp.lang.python.announce announces new Python software. Be
sure to scan this newsgroup weekly.
http://groups.google.com/group/comp.lang.python.announce/topics
Python411 indexes "podcasts ... to help people learn Python ..."
Updates appear more-than-weekly:
http://www.awaretek.com/python/index.html
The Python Package Index catalogues packages.
http://www.python.org/pypi/
Much of Python's real work takes place on Special-Interest Group
mailing lists
http://www.python.org/sigs/
Python Success Stories--from air-traffic control to on-line
match-making--can inspire you or decision-makers to whom you're
subject with a vision of what the language makes practical.
http://www.pythonology.com/success
The Python Software Foundation (PSF) has replaced the Python
Consortium as an independent nexus of activity. It has official
responsibility for Python's development and maintenance.
http://www.python.org/psf/
Among the ways you can support PSF is with a donation.
http://www.python.org/psf/donations/
The Summary of Python Tracker Issues is an automatically generated
report summarizing new bugs, closed ones, and patch submissions.
http://search.gmane.org/?author=status%40bugs.python.org&group=gmane.comp.python.devel&sort=date
nullege is an interesting search Web application, with the intelligence
to distinguish between Python code and comments. It provides what
appear to be relevant results, and demands neither Java nor CSS be
enabled:
http://www.nullege.com
Although unmaintained since 2002, the Cetus collection of Python
hyperlinks retains a few gems.
http://www.cetus-links.org/oo_python.html
Python FAQTS
http://python.faqts.com/
The Cookbook is a collaborative effort to capture useful and
interesting recipes.
http://code.activestate.com/recipes/langs/python/
Many Python conferences around the world are in preparation.
Watch this space for links to them.
Among several Python-oriented RSS/RDF feeds available, see:
http://www.python.org/channews.rdf
For more, see:
http://www.syndic8.com/feedlist.php?ShowMatch=python&ShowStatus=all
The old Python "To-Do List" now lives principally in a
SourceForge reincarnation.
http://sourceforge.net/tracker/?atid=355470&group_id=5470&func=browse
http://www.python.org/dev/peps/pep-0042/
del.icio.us presents an intriguing approach to reference commentary.
It already aggregates quite a bit of Python intelligence.
http://del.icio.us/tag/python
Enjoy the *Python Magazine*.
http://pymag.phparch.com/
*Py: the Journal of the Python Language*
http://www.pyzine.com
Dr.Dobb's Portal is another source of Python news and articles:
http://www.ddj.com/TechSearch/searchResults.jhtml?queryText=python
and Python articles regularly appear at IBM DeveloperWorks:
http://www.ibm.com/developerworks/search/searchResults.jsp?searchSite=dW&searchScope=dW&encodedQuery=python&rankprofile=8
Previous - (U)se the (R)esource, (L)uke! - messages are listed here:
http://search.gmane.org/?query=python+URL+weekly+news+links&group=gmane.comp.python.general&sort=date
http://groups.google.com/groups/search?q=Python-URL!+group%3Acomp.lang.python&start=0&scoring=d&
http://lwn.net/Search/DoSearch?words=python-url&ctype3=yes&cat_25=yes
There is *not* an RSS for "Python-URL!"--at least not yet. Arguments
for and against are occasionally entertained.
Suggestions/corrections for next week's posting are always welcome.
E-mail to <Python-URL@phaseit.net> should get through.
To receive a new issue of this posting in e-mail each Monday morning
(approximately), ask <claird@phaseit.net> to subscribe. Mention
"Python-URL!". Write to the same address to unsubscribe.
-- The Python-URL! Team--
Phaseit, Inc. (http://phaseit.net) is pleased to participate in and
sponsor the "Python-URL!" project. Watch this space for upcoming
news about posting archives.
== 2 of 3 ==
Date: Tues, Feb 9 2010 7:32 am
From: Marius Gedminas
The last three URLs are malformed:
On Feb 9, 5:03 pm, "Gabriel Genellina" <python-...@phaseit.net> wrote:
> There is no module in the standard library to handle filesystem paths
> in an OO way - but why?
> http://groups.google.com/group/comp.lang.pythonf580fb3763208425ece/
>
> A "History Channel" special: how the way a TAB key was interpreted
> changed over time
> http://groups.google.com/group/comp.lang.python82d9181fcd31ffea3f4/
>
> After a false start, finally we get our first "Is it Call-By-Value or
> Call-By-Reference?" thread of the year!
> http://groups.google.com/group/comp.lang.pythonfd36962c4970ac487ea/
Any chance of getting them fixed?
Regards,
--
Marius Gedminas
== 3 of 3 ==
Date: Tues, Feb 9 2010 8:21 am
From: Tim Golden
On 09/02/2010 15:37, Stephen Hansen wrote:
> On Tue, Feb 9, 2010 at 7:03 AM, Gabriel Genellina<python-url@phaseit.net>wrote:
>
>> After a false start, finally we get our first "Is it Call-By-Value or
>> Call-By-Reference?" thread of the year!
>> http://groups.google.com/group/comp.lang.pythonfd36962c4970ac487ea/
>
>
> LOL.
>
> Can we set up some sort of "argh" filter on python-list, analogous to a spam
> filter, which detects these threads and shunts them to
> python-list-ohnoyoudidnt@python.org?
>
> Because avoiding them is -hard-.
Oh no it isn't!
(Sorry; couldn't resist)
TJG
==============================================================================
TOPIC: PostgreSQL driver for Python applications that supports bytea correctly?
http://groups.google.com/group/comp.lang.python/t/70a061b40f4c8cc7?hl=en
==============================================================================
== 1 of 2 ==
Date: Tues, Feb 9 2010 7:27 am
From: CyclingGuy
Can anyone recommend a PostgreSQL driver for Python that supports
selecting and inserting bytea types?
I'm not looking to write server functions in Python, just client
applications.
Thank you
Eric.
== 2 of 2 ==
Date: Tues, Feb 9 2010 7:53 am
From: Jean-Michel Pichavant
CyclingGuy wrote:
> Can anyone recommend a PostgreSQL driver for Python that supports
> selecting and inserting bytea types?
> I'm not looking to write server functions in Python, just client
> applications.
>
> Thank you
> Eric.
>
Did you try any ?
I know about pgdb, and since it has a function called escape_bytea it
may support this type...
JM
==============================================================================
TOPIC: timer for a function
http://groups.google.com/group/comp.lang.python/t/a52c427850c5ef89?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Feb 9 2010 7:55 am
From: mk
Stephen Hansen wrote:
> Question: how can I do that? Use another threaded class? Is there
> some other way?
First of all, thanks for answer!
> What OS? Does this have to be OS-independant?
Err, sorry -- this is Linux/UNIX only.
> Are you using more then
> one transport/SSLClient in your process and you want to just kill one
> (and any of its child threads), or are you doing one per process?
I'm using multiple threads myself, one per IP basically, which in turn
call paramiko calls, which itself is threaded.
> If you want to terminate -all- threads your process is running in a
> given timeframe, using a SIGALRM in the signal module will do it, I
> believe-- provided you don't need to support windows.
Thanks, that's still useful! Although...
1. if I don't install signal handler for SIGALRM I get this printed on
the console at the end of execution:
Alarm clock
Although it does seem to close cleanly.
Is there any way to suppress this message?
2. If I do install signal handler for SIGALRM, I'm back at square one:
Exception in thread Thread-25 (most likely raised during interpreter
shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
File "./cssh.py", line 1003, in run
File "./cssh.py", line 739, in ssh_connect_for_scp
File "build/bdist.linux-i686/egg/paramiko/transport.py", line 1006,
in connect
File "build/bdist.linux-i686/egg/paramiko/transport.py", line 1382,
in _log
exceptions.TypeError: 'NoneType' object is not callable
Unhandled exception in thread started by
This happens even though I surround "connect" (line 1006) with catching
all Exceptions:
try:
self.trans.connect(hostkey=None, username=self.username, pkey = pkey)
except Exception, e:
self.conerror = str(e)
>I had a contextlib
> manager do that for awhile. If you only want to terminate one (and its
> child-threads)... you're out of luck, I think. The only way to terminate
> a thread in Python is with conditions/events/whatever and the thread
> cooperating and exiting on its own.
I will probably have to get the library author look at this.
Regards,
mk
==============================================================================
TOPIC: Modifying Class Object
http://groups.google.com/group/comp.lang.python/t/fd36962c4970ac48?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Feb 9 2010 7:53 am
From: Steve Holden
Stephen Hansen wrote:
> On Mon, Feb 8, 2010 at 10:35 PM, Alf P. Steinbach <alfps@start.no
> <mailto:alfps@start.no>> wrote:
>
> Right.
>
> "pass by value" is a lower level notion.
>
> And as you show below, in the paragraph marked [1], it can be used
> to describe call by sharing very succinctly and precisely, just as I
> did... ;-)
>
>
> No. There's nothing at all succinct or precise about either "value" or
> "reference" when speaking of programming languages, and using both
> together just compounds that. They are loaded words. The phrase "call my
> value where value is an object reference" is not clear, not obvious, not
> helpful. It requires far too much explanation of every single word
> there, depending on the background of who you are speaking to, to
> explain how it does not exactly use any of the words in a way which the
> person may be expecting, and making sure they understand that it does
> not imply anything that those words usually imply.
>
> I'm not even going to bother further-- I shouldn't have to begin with--
> your entire post is full of arguments with no more weight then, "I say
> this means that, and its clearer" with absolutely no regard for the fact
> that all of these words have weight and meaning to the world outside of
> your head.
>
[several paragraphs-worth of bothering further]
So you didn't believe me when I said
> Of course this won't make the slightest difference. "'When I use a
> word,' said Humpty ..."
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS: http://holdenweb.eventbrite.com/
==============================================================================
TOPIC: Python 3: Plist as OrderedDict
http://groups.google.com/group/comp.lang.python/t/07b43686e015995c?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Feb 9 2010 8:07 am
From: Gnarlodious
On Feb 9, 12:15 am, Raymond Hettinger wrote:
> You may be able to monkey patch an OrderedDict into the PlistParser.
> Here's an untested stab at it:
> from collections import OrderedDict
> import plistlib
> plistlib._InteralDict = OrderedDict
Genius! After fixing the misspelled InteralDict I got this:
from collections import OrderedDict
import plistlib
plistlib._InternalDict = OrderedDict
plistlib.readPlist('/path/to/some.plist')
--> OrderedDict([('List', 'of'), ('tuples', 'in'), ('plist',
'order')])
So thank you for that [somewhat contorted] solution.
To extract the list I am saying this:
ordered=plistlib.readPlist(path)
print(list(ordered)) # only a list of keys
print(ordered[list(ordered)[0]])
However this seems too laborious. is there an easier way?
-- Gnarlie
==============================================================================
TOPIC: How to measure elapsed time under Windows?
http://groups.google.com/group/comp.lang.python/t/340c476d0357a7bd?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Feb 9 2010 8:10 am
From: Grant Edwards
What's the correct way to measure small periods of elapsed
time. I've always used time.clock() in the past:
start = time.clock()
[stuff being timed]
stop = time.clock()
delta = stop-start
However on multi-processor machines that doesn't work.
Sometimes I get negative values for delta. According to
google, this is due to a bug in Windows that causes the value
of time.clock() to be different depending on which core in a
multi-core CPU you happen to be on. [insert appropriate
MS-bashing here]
Is there another way to measure small periods of elapsed time
(say in the 1-10ms range)?
Is there a way to lock the python process to a single core so
that time.clock() works right?
--
Grant Edwards grante Yow! If I felt any more
at SOPHISTICATED I would DIE
visi.com of EMBARRASSMENT!
==============================================================================
TOPIC: Programing family
http://groups.google.com/group/comp.lang.python/t/9c369186368028ed?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, Feb 9 2010 8:13 am
From: rodrick brown
Don't forget his little brother Go!
Sent from my iPhone 3GS.
On Feb 8, 2010, at 8:39 PM, AON LAZIO <aonlazio@gmail.com> wrote:
> I have thought funny things
> If we think all languages are like a family
> I could draft them like this (Python base)
>
> C is Python's Mom
> C++ : Dad
> Pascal/Assembly : Grandparents
> C# : Uncle
> Java : Ant
> Ruby: Cousin
> Perl : Girlfriend
>
>
> What u guys think? XD
> --
> Passion is my style
> --
> http://mail.python.org/mailman/listinfo/python-list
==============================================================================
You received this message because you are subscribed to the Google Groups "comp.lang.python"
group.
To post to this group, visit http://groups.google.com/group/comp.lang.python?hl=en
To unsubscribe from this group, send email to comp.lang.python+unsubscribe@googlegroups.com
To change the way you get mail from this group, visit:
http://groups.google.com/group/comp.lang.python/subscribe?hl=en
To report abuse, send email explaining the problem to abuse@googlegroups.com
==============================================================================
Google Groups: http://groups.google.com/?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home