A new version of the Python module which wraps GnuPG has been
released.
What Changed?
=
This is a minor bug-fix release. See the project website (
http://code.google.com/p/python-gnupg/ ) for more information.
The changes were to the name of the distribution archive (now prefixed
I'm happy to announce the release of v1.0 of PDFXMLRPC, a client-
server application that lets users create PDF content from text, over
the Internet or their intranet, using Reportlab, xtopdf, XML-RPC and
Python.
Usage example for PDFXMLRPC:
You can run the server on one computer which is
I'm happy to announce that ActivePython 2.6.3.7 is now available for
download from:
http://www.activestate.com/activepython/
This is a patch-level release that updates ActivePython to core Python
2.6.3 along with the fixes for a couple of critical regressions that
instigated the work on
On Oct 5, 7:25 am, Aaron Watters aaron.watt...@gmail.com wrote:
This is a bit off topic except that many Python
programmers seem to be allergic to typing SQL.
RESOLVED: Using ORMs leads lazy programmers
to make bad database designs. It's better to
carefully design your database with no
On Oct 5, 7:56 pm, menomnon p...@well.com wrote:
Does python have a ‘once’ (per class) feature?
‘Once’, as I’ve know it is in Eiffel. May be in Java don’t.
The first time you instantiate a given class into an object it
constructs, say, a dictionary containing static information. In my
On Oct 5, 11:07 pm, Carl Banks pavlovevide...@gmail.com wrote:
On Oct 5, 7:56 pm, menomnon p...@well.com wrote:
Does python have a ‘once’ (per class) feature?
‘Once’, as I’ve know it is in Eiffel. May be in Java don’t.
The first time you instantiate a given class into an object it
Suppose I've saved the class name and (don't know how) I've also saved
the Class's module (package path or I don't know what's the name for
XYZ from X.Y.Z import ...). How can I construct a new class according
to saved informations? If I don't know what Class it could be, only I
have the saved
menomnon wrote:
Does python have a ‘once’ (per class) feature?
‘Once’, as I’ve know it is in Eiffel. May be in Java don’t.
The first time you instantiate a given class into an object it
constructs, say, a dictionary containing static information. In my
case static is information that may
I am trying to get a login using rsa_key with python.
I have successfully installed paramiko and followed this tutorial:
http://commandline.org.uk/python/sftp-python/
If I use the password
transport.connect(username = username, password = password)
I get a successful login but, I use the SSH
On Mon, 05 Oct 2009 23:32:27 -0700, gentlestone wrote:
Suppose I've saved the class name and (don't know how) I've also saved
the Class's module (package path or I don't know what's the name for XYZ
from X.Y.Z import ...). How can I construct a new class according to
saved informations? If I
On 6. Okt, 08:55 h., Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Mon, 05 Oct 2009 23:32:27 -0700, gentlestone wrote:
Suppose I've saved the class name and (don't know how) I've also saved
the Class's module (package path or I don't know what's the name for XYZ
from X.Y.Z
On Tue, Oct 6, 2009 at 12:09 AM, gentlestone tibor.b...@hotmail.com wrote:
On 6. Okt, 08:55 h., Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Mon, 05 Oct 2009 23:32:27 -0700, gentlestone wrote:
Suppose I've saved the class name and (don't know how) I've also saved
the
Jack Diederich wrote:
It's Xah Lee, he's been trolling this and every other programing
language group for over 10 years (preferably all at once). Let it go.
I don't suppose there's any chance of just blocking the idiot, is there?
Chris
--
Simplistix - Content Management, Batch Processing
On Oct 5, 8:29 pm, Robert Kern robert.k...@gmail.com wrote:
On 2009-10-05 12:42 PM, Buck wrote:
With the package layout, you would just do:
from parrot.sleeping import sleeping_in_a_bed
from parrot.feeding.eating import eat_cracker
This is really much more straightforward
On Tue, 06 Oct 2009 00:09:08 -0700, gentlestone wrote:
one more question - __class__ is the way for getting the classname from
the class instance -
Not quite. __class__ returns the class object, not the name. Given the
class object, you ask for __name__ to get the name it was defined as[1].
On Mon, 05 Oct 2009 22:31:05 -0700, Dan Stromberg wrote:
I'm rewriting 3 programs as one program - from Python with Tkinter to
Python with pygtk, both on Windows XP.
My new version formats an SD card and preallocates some file space in
about 3 minutes with Optimize Performance selected, and
Steven D'Aprano schrieb:
On Mon, 05 Oct 2009 23:32:27 -0700, gentlestone wrote:
Suppose I've saved the class name and (don't know how) I've also saved
the Class's module (package path or I don't know what's the name for XYZ
from X.Y.Z import ...). How can I construct a new class according to
gentlestone a écrit :
(snip)
one more question - __class__ is the way for getting the classname
from the class instance -
obj.__class__ is a reference to the class object itself, not it's name.
how can I get the module name?
module_obj.__name__
And while we're at it:
Hi List,
I want to make some test case classes that can have some data passed in
to modify the way they behave. I can't see a straightforward manner to
pass data to an __init__() method of a class derived from
unittest.TestCase, or to pass data to a test function within that
class. Being a
import win32com.client
computer = server
strUser = server\user_name
strPassword =my_password
objSWbemLocator = win32com.client.Dispatch
(WbemScripting.SWbemLocator)
objSWbemServices = objSWbemLocator.ConnectServer(computer, root
\cimv2,strUser,strPassword)
objCreateProc =
On Oct 5, 12:46 pm, Joseph Reagle rea...@mit.edu wrote:
I would think the commented code would be faster (fewer loops), but it is
not (because of function calls).
#Average user_time = 5.9975 over 4 iterations
inSRC = set([bio.name for bio in bios.values()])
inEB = set([bio.name
50-80%% of users from the 1st page in ranklist are
super-extra-brilliant
#5 there: http://www.spoj.pl/users/tourist/
This 14 y.o. schoolboy won IOI 2009, in this August,
and he's about to get into Guiness' book as the youngest
winner for all the history of international olympiads on
This takes 5 second on my machine using a file with 1,000,000 random...
Surely it will fail to pass time limit too
--
http://mail.python.org/mailman/listinfo/python-list
Here you are:
LogList = [\
inbound tcp office 192.168.0.125 inside 10.1.0.91 88,
inbound tcp office 192.168.0.220 inside 10.1.0.31 2967,
inbound udp lab 172.24.0.110 inside 10.1.0.6 161,
inbound udp office 192.168.0.220 inside 10.1.0.13 53]
LogList.sort(key=lambda x:
What happened to performance of ver.2.6.2 (vs ver.2.5.x)?
https://www.spoj.pl/forum/viewtopic.php?f=20t=5949
--
http://mail.python.org/mailman/listinfo/python-list
I would think the commented code would be faster (fewer loops), but it is
not (because of function calls).
#Average user_time = 5.9975 over 4 iterations
inSRC = set([bio.name for bio in bios.values()])
inEB = set([bio.name for bio in bios.values() if bio.eb_title])
inWP =
Stef Mientki stef.mien...@gmail.com writes:
I'ld expect times before 1-1-1970, simply to become negative numbers
(I'm interested in the age of living people, so that would suffice).
Is there a general solution, (other library) or would it be better to
handle all dates in the Delphi format
Ben Finney ben+pyt...@benfinney.id.au writes:
There are many epochs that have been used in computing
URL:http://en.wikipedia.org/wiki/Epoch_(reference_date)#Notable_epoch_dates_in_computing,
all of which have their problems. Switching from the Unix epoch to some
other involves data
davidj411 wrote:
import win32com.client
computer = server
strUser = server\user_name
strPassword =my_password
objSWbemLocator = win32com.client.Dispatch
(WbemScripting.SWbemLocator)
objSWbemServices = objSWbemLocator.ConnectServer(computer, root
\cimv2,strUser,strPassword)
objCreateProc =
On Mon, 2009-10-05 at 18:36 +0200, Donn wrote:
see: http://www.panda3d.org/wiki/index.php/Attaching_an_Object_to_a_Joint
+1 for Panda 3d.
Their Node graph is very intuitive for animating joints, and Panda's API
is very nice and clean.
TimW
--
En Thu, 01 Oct 2009 12:10:58 -0300, Walter Dörwald wal...@livinglogic.de
escribió:
On 01.10.09 16:09, Hyuga wrote:
On Sep 30, 3:34 am, gentlestone tibor.b...@hotmail.com wrote:
_MAP = {
# LATIN
u'À': 'A', u'Á': 'A', u'Â': 'A', u'Ã': 'A', u'Ä': 'A', u'Å': 'A',
u'Æ': 'AE', u'Ç':'C',
Montaseri wrote:
Thank you
It looks like it is possible to feed multiple dirs,
Also, can you explain the --inheritance=STYLE for me. What does the
author mean by values like grouped, listed, included
I could not find any good document explaining these...
Thanks
Medi
Sorry, I don't remember
Carl Banks a écrit :
On Oct 5, 7:25 am, Aaron Watters aaron.watt...@gmail.com wrote:
This is a bit off topic except that many Python
programmers seem to be allergic to typing SQL.
RESOLVED: Using ORMs leads lazy programmers
to make bad database designs. It's better to
carefully design your
Diez B. Roggisch a écrit :
Aaron Watters schrieb:
(snip)
FOR EXAMPLE: Consider blogging. The most
successful blog software is WORDPRESS. Here
is the WordPress data model:
http://blog.kapish.co.in/wp-content/uploads/2009/03/wp_2.7.png
(snip)
Now let's look at the Sakai Blogger tool data
Chris Colbert schrieb:
SIMULATION = False
class SimController(object):
do sim stuff here
class RealController(object):
do real stuff here
class Controller(SuperKlass):
pass
so if SIMULATION == False I want to be able to instance a Controller
object that inherits
En Mon, 05 Oct 2009 18:15:15 -0300, Rami Chowdhury
rami.chowdh...@gmail.com escribió:
On Mon, 05 Oct 2009 13:46:09 -0700, Buck workithar...@gmail.com wrote:
Thanks. I think we're getting closer to the core of this.
To restate my problem more simply:
My core goal is to have my scripts in
davidj411 wrote:
import win32com.client
computer = server
strUser = server\user_name
strPassword =my_password
objSWbemLocator = win32com.client.Dispatch
(WbemScripting.SWbemLocator)
objSWbemServices = objSWbemLocator.ConnectServer(computer, root
\cimv2,strUser,strPassword)
objCreateProc =
Dan Stromberg wrote:
My new version formats an SD card and preallocates some file space in
about 3 minutes with Optimize Performance selected, and in about 30
minutes with Optimize for Quick Removal selected. Needless to say, I
don't like the 27 minute penalty much.
For performance, the
En Mon, 05 Oct 2009 23:12:02 -0300, Joel Smith js-pythonl...@jk1.net
escribió:
I want to make some test case classes that can have some data passed in
to modify the way they behave. I can't see a straightforward manner to
pass data to an __init__() method of a class derived from
Raymond Hettinger:
Psychologically, the thing that I find to be interesting is
that beginners and intermediate users seem to take to key
functions more readily than old timers. The key function seems
to be an easy thing to teach (perhaps because that's the
way Excel sorts and the way SQL
Scott David Daniels wrote:
...
Look into metaclasses:
...
class Initialized(ClassBase):
@classmethod
def _init_class(class_):
class_.a, class_.b = 1, 2
super(Initialized, class_)._init_class()
Mea culpa: Here super is _not_ a good idea, and I had
Gabriel Genellina wrote:
En Sat, 03 Oct 2009 21:53:12 -0300, Andrew Savige
ajsav...@yahoo.com.au escribió:
When I run this little test program on Linux:
import subprocess
subprocess.call([python,-V], stderr=open(log.tmp,a))
the file log.tmp is appended to each time I run it.
When I run it
On Oct 6, 1:36 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Mon, 05 Oct 2009 11:59:01 -0300, Tomas Zulberti tzulbe...@gmail.com
escribió:
Hi. I have a class that extends collections.MutableMapping. I am
checking if it is abstract, using the moduleinspect. But isabstract
On Tue, Oct 6, 2009 at 2:00 AM, Carl Banks pavlovevide...@gmail.com wrote:
On Oct 5, 7:25 am, Aaron Watters aaron.watt...@gmail.com wrote:
This is a bit off topic except that many Python
programmers seem to be allergic to typing SQL.
RESOLVED: Using ORMs leads lazy programmers
to make bad
Mart. wrote:
On Oct 5, 5:14 pm, Martin mar...@hvidberg.net wrote:
On Oct 4, 10:16 pm, Mart. mdeka...@gmail.com wrote:
On Oct 4, 9:47 am, Martin mar...@hvidberg.net wrote:
On Oct 3, 11:56 pm, Peter Otten __pete...@web.de wrote:
Martin wrote:
Dear group
I'm trying to use PIL to write an
Carl Banks pavlovevide...@gmail.com wrote in message
news:d50bba1e-b272-4e39-8a58-377531278...@z4g2000prh.googlegroups.com...
On Sep 30, 5:24 am, lallous lall...@lgwm.org wrote:
Hello
After using the PyCObject, I cannot pickle the class anymore.
Any simple solution to this problem? (or
Hi All,
I am happy to announce a new release of GUI2Exe (0.4.0).
What is it?
=
GUI2Exe is my first attempt to unify all the available executable
builders for Python in a single and simple to use graphical user
interface. At the moment the supported executable builders are:
-
Greetings!
I'm working on a package with multiple modules (and possibly packages),
and I would like to do it correctly. :)
I have read of references to possible issues regarding a module being
imported (and run) more than once, but I haven't been able to find
actual examples of such
Ethan Furman wrote:
Greetings!
I'm working on a package with multiple modules (and possibly packages),
and I would like to do it correctly. :)
I have read of references to possible issues regarding a module being
imported (and run) more than once, but I haven't been able to find
actual
In article 0d6b75ee-37ab-4106-8dd0-ff7a1a995...@a7g2000yqo.googlegroups.com,
akonsu ako...@gmail.com wrote:
thanks! i did not know about dir() method.
dir() is a function, not a method.
--
Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/
Normal is what cuts off
nn wrote:
Not only are you doing many function calls but you are assigning 12
objects each time. Why not do this?
for bio in bios.values():
inSRC.add(bio)
That obviously makes sense, but I was trying to get away from the verbosity
of:
inSRC = set([])
inSRC = set([])
Good day all!
I've just inherited a large amount of python code. After spending some
time pour through the code, I've noticed that the original developer
(who is no longer w/ the company) constantly deletes the imported
classes at the end of the .py file. Why would one want to do such a
thing?
Dave Angel wrote:
The property is called __file__
So in this case,filename = settings.__file__
Actually it's an attribute set by Python's import machine. Since the
__file__ attribute may contain a relative path it's a good idea to use
os.path.abspath(__file__).
Christian
--
Steven D'Aprano wrote:
On Mon, 05 Oct 2009 22:31:05 -0700, Dan Stromberg wrote:
I'm rewriting 3 programs as one program - from Python with Tkinter to
Python with pygtk, both on Windows XP.
My new version formats an SD card and preallocates some file space in
about 3 minutes with Optimize
Joseph Reagle rea...@mit.edu writes:
inSRC = set([bio.name for bio in bios.values()])
You should use:
inSRC = set(bio.name for bio in bios.values())
without the square brackets. That avoids creating an intermediate list.
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 6, 10:56 am, Ryan heni...@yahoo.com wrote:
Good day all!
I've just inherited a large amount of python code. After spending some
time pour through the code, I've noticed that the original developer
(who is no longer w/ the company) constantly deletes the imported
classes at the end of
Ulrich Eckhardt wrote:
Dan Stromberg wrote:
My new version formats an SD card and preallocates some file space in
about 3 minutes with Optimize Performance selected, and in about 30
minutes with Optimize for Quick Removal selected. Needless to say, I
don't like the 27 minute penalty much.
Hello,
I am currenty using MySQL 5.1 community server and trying to import the data
of the comma delimited text file into the table using python 2.6 scripts. I
have installed Mysqldb 1.2.2.
follwoing is my script:
1. import MySQLdb, csv, sys
2. conn = MySQLdb.connect (host =
Bearophile bearophileh...@lycos.com writes:
The problem is that if you allow to use the cmp, lot of programmers
will use it straight away, not even bothering to know what that
strange 'key' argument may be useful for. And they miss the how much
handy 'key' is.
Given how often we hear
En Tue, 06 Oct 2009 11:24:23 -0300, MRAB pyt...@mrabarnett.plus.com
escribió:
Gabriel Genellina wrote:
En Sat, 03 Oct 2009 21:53:12 -0300, Andrew Savige
ajsav...@yahoo.com.au escribió:
When I run this little test program on Linux:
import subprocess
subprocess.call([python,-V],
Stefan Behnel wrote:
Wolfgang Rohdewald wrote:
I want to match a string only if a word (C1 in this example) appears
at most once in it.
def match(s):
if s.count(C1) 1:
return None
return s
If this doesn't fit your requirements, you may want to provide some
Hi;
I have the following archaic code that worked just fine for another site. It
is called with the following url:
http://13gems.com/stxresort/cart/getpic1.py?id=1x=1
#!/usr/local/bin/python
import cgitb; cgitb.enable()
import MySQLdb
import cgi
import sys,os
sys.path.append(os.getcwd())
from
On Tue, 06 Oct 2009 12:19:56 -0700, Victor Subervi
victorsube...@gmail.com wrote:
Hi;
I have the following archaic code that worked just fine for another
site. It
is called with the following url:
http://13gems.com/stxresort/cart/getpic1.py?id=1x=1
#!/usr/local/bin/python
import cgitb;
[bearophile]
I love the 'key', it makes my code simpler and it's simpler to
understand. I am not opposed to the idea of keeping cmp, that in some
rare cases may be useful or more natural.
The problem is that if you allow to use the cmp, lot of programmers
will use it straight away, not even
Schedule wrote:
Hello,
I am currenty using MySQL 5.1 community server and trying to import the
data of the comma delimited text file into the table using python 2.6
scripts. I have installed Mysqldb 1.2.2.
follwoing is my script:
[...]
7.
c.execute(INSERT INTO a (first, last)
Raymond Hettinger pyt...@rcn.com writes:
Once Kernighan and Ritchie put C's qsort() into the food supply,
we were doomed.
It was already too late. Knuth vol 3 came out in 1973(?) and its
sorting half is mostly about comparison sorting.
FWIW, I think the standard library's unittest module is
I remember going round and round on this issue before until I finally got it
right. I haven't changed the code. It worked before. I just tried your
update and it gave me the same result :( Any other ideas?
TIA,
V
On Tue, Oct 6, 2009 at 2:24 PM, Rami Chowdhury rami.chowdh...@gmail.comwrote:
On
On Tue, 06 Oct 2009 12:37:17 -0700, Victor Subervi
victorsube...@gmail.com wrote:
I remember going round and round on this issue before until I finally
got it
right. I haven't changed the code. It worked before. I just tried your
update and it gave me the same result :( Any other ideas?
Paul Rubin:
bearophile:
I am having a very hard type (despite my implementation, explanations,
etc) explaining to D programmers why for a flexible general-purpose
function a key function argument is often better. They in the end have
added something like that in the std lib, but with a weird
Stephen Hansen wrote:
On Mon, Oct 5, 2009 at 4:54 PM, Stef Mientki stef.mien...@gmail.com
mailto:stef.mien...@gmail.com wrote:
hello,
I want to handle datetime vars in a general way, so I use the
default time-format,
so I can use the standard cinversion procedures.
The code in question is generated automatically from another script. I took
your idea of the \r\n\r\n and added triple quoting and now it prints out
this:
#!/usr/local/bin/python
import cgitb; cgitb.enable()
import MySQLdb
import cgi
import sys,os
sys.path.append(os.getcwd())
from login import
David wrote:
transport.connect(username = username, pkey = mykey)
I get a AuthenticationException: Authentication failed. exception.
My ~/.ssh/id_rsa is correct because if, at console, I type
bags...@bagvapp:~$ sftp bags...@192.168.92.129
Connecting to 192.168.92.129...
sftp
I get
Gabriel Genellina wrote:
Note that you don't *have* to use partial in this case, as you're
building the suite yourself. Just create the TestCase instances manually:
suite = unittest.TestSuite([
TestGenericWindow('testit', 'brown'),
TestGenericWindow('testit', 'blue'),
Ben Finney wrote:
If you're committed to changing the epoch anyway, I would recommend
using URL:http://en.wikipedia.org/wiki/Astronomical_year_numbering
(epoch at 4004 BCE) since it is widely used to unify dates referring to
human history.
I prefer JDN or MJD
I really can't quite fathom why you'd want to use something so low-level as
time.mktime... or just about anything in the time module :)
I didn't know anything better,
but (forgive me if I'm wrong) I find mx almost as low-level :
mx.DateTime.strptime('01-01-53',%d-%m-%y)
Carl Banks wrote:
On Oct 6, 10:56 am, Ryan heni...@yahoo.com wrote:
Good day all!
I've just inherited a large amount of python code. After spending some
time pour through the code, I've noticed that the original developer
(who is no longer w/ the company) constantly deletes the imported
Any body got any ideas how to do the following...
I would like to be able to write an app in python that keeps it's persistent
data in a sqlite database file.
So far so good. The problem, is that I need the python app and the sqlite db
file to exist in the same disk file. This way the app to
On 2009-10-06 16:16 PM, tcumming...@gmail.com wrote:
Any body got any ideas how to do the following...
I would like to be able to write an app in python that keeps it's
persistent data in a sqlite database file.
So far so good. The problem, is that I need the python app and the
sqlite db file
On Oct 6, 5:31 pm, Robert Kern robert.k...@gmail.com wrote:
On 2009-10-06 16:16 PM, tcumming...@gmail.com wrote:
Any body got any ideas how to do the following...
I would like to be able to write an app in python that keeps it's
persistent data in a sqlite database file.
So far so
On Tue, 06 Oct 2009 10:56:26 -0700, Ryan wrote:
Good day all!
I've just inherited a large amount of python code. After spending some
time pour through the code, I've noticed that the original developer
(who is no longer w/ the company) constantly deletes the imported
classes at the end of
On Tue, 06 Oct 2009 18:42:16 +0200, Diez B. Roggisch wrote:
The most common problem is that a file is used as module and as
executable at the same time.
Like this:
--- test.py ---
class Foo(object):
pass
if __name__ == __main__:
import test
assert Foo is test.Foo
Hi there,
the code below on Python 2.5.2:
from itertools import groupby
info_list = [
{'profile': 'http://somesite.com/profile1', 'account': 61L},
{'profile': 'http://somesite.com/profile2', 'account': 64L},
{'profile': 'http://somesite.com/profile3', 'account': 61L},
]
Kitlbast schrieb:
Hi there,
the code below on Python 2.5.2:
from itertools import groupby
info_list = [
{'profile': 'http://somesite.com/profile1', 'account': 61L},
{'profile': 'http://somesite.com/profile2', 'account': 64L},
{'profile': 'http://somesite.com/profile3', 'account':
On Wed, 07 Oct 2009 00:06:43 +0100, Kitlbast vlad.shevche...@gmail.com
wrote:
Hi there,
the code below on Python 2.5.2:
from itertools import groupby
info_list = [
{'profile': 'http://somesite.com/profile1', 'account': 61L},
{'profile': 'http://somesite.com/profile2', 'account':
On Sun, 04 Oct 2009 19:44:48 +0100, horos11 horo...@gmail.com wrote:
[somehow managing to trim all other attributions: he's the innermost,
then me next]
Thanks for the info, but a couple of points:
1. it wasn't meant to be production code, simply a way to teach
python.
Speaking as
On Tue, 06 Oct 2009 12:28:00 -0700, Raymond Hettinger wrote:
[bearophile]
I love the 'key', it makes my code simpler and it's simpler to
understand. I am not opposed to the idea of keeping cmp, that in some
rare cases may be useful or more natural.
The problem is that if you allow to use
Thanks guys!
Miss sorting when reading docs.. (
However, I just create simple groupby:
def groupby(_list, key_func):
res = {}
for i in _list:
k = key_func(i)
if k not in res:
res[k] = [i]
else:
res[k].append(i)
return res
and it works
On Oct 6, 3:56 pm, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Tue, 06 Oct 2009 18:42:16 +0200, Diez B. Roggisch wrote:
The most common problem is that a file is used as module and as
executable at the same time.
Like this:
--- test.py ---
class Foo(object):
On Oct 6, 4:06 pm, Kitlbast vlad.shevche...@gmail.com wrote:
Hi there,
the code below on Python 2.5.2:
from itertools import groupby
info_list = [
{'profile': 'http://somesite.com/profile1', 'account': 61L},
{'profile': 'http://somesite.com/profile2', 'account': 64L},
On Mon, 05 Oct 2009 15:25:17 -0700, Carl Banks wrote:
There are two ways to do what you want. The first way is to represent
bones as OpenGL transformations. Basically a joint deformation you'd
represent as a translation + rotation. To rotate a bone you'd simply
update the rotation of that
M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA,
DSA, DH, HMACs, message digests, symmetric ciphers (including AES); SSL
functionality to implement clients and servers; HTTPS extensions to
Python's httplib, urllib, and xmlrpclib; unforgeable HMAC'ing
AuthCookies for web
On Tue, 06 Oct 2009 06:33:37 -0700, Maxim Kuleshov wrote:
How should I correctly construct internationalized base64'ed MIME
header?
The problem is that 'real name' _should_ be encoded, but the email
address - should not.
For example, ?utf-8?bla-bla=?= em...@domain should be the correct
A new version of the Python module which wraps GnuPG has been
released.
What Changed?
=
This is a minor bug-fix release. See the project website (
http://code.google.com/p/python-gnupg/ ) for more information.
The changes were to the name of the distribution archive (now prefixed
Jan Hosang jan.hos...@gmail.com added the comment:
Maybe you could create a file without read permission (000) and try
to read from it.
I just checked. If I don't have read permissions, I am not able to open
the file. When I open a file and change permissions afterwards, I can read
the
Jan Hosang jan.hos...@gmail.com added the comment:
The patch works, as this is what is implicitly happening anyway if you use
the function. There seem to be no tests for this function, so there is
nothing to break. I guess this is the right time to get some tests.
Gabriel, would you like to
Marc-Andre Lemburg m...@egenix.com added the comment:
Thanks for reporting this.
It appears that Benjamin tried to undo the .compiler attribute renaming
Tarek had applied and r72586, but forgot to change back line 303 to the
original version:
{{{
# Setup the CCompiler object that we'll
New submission from Mark Dickinson dicki...@gmail.com:
The single-argument form of the builtin round function can give
incorrect results for large integers.
x = 5e15+1
x == int(x)
True
x == round(x) # expect True here
False
x
5001.0
round(x)
5002.0
int(x)
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
So the discussion is now on 2 points:
1. Is the change backwards compatible? (at the code level, after
recompilation). My answer is yes, because all known case
transformations stay in the same plane: if you pass a char in the BMP,
they
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Thanks for noticing, I'll rename it in the maintenance branch, but I
need to wait for Barry to give me the green light since the 2.6 branch
is frozen right now.
--
nosy: +barry
___
Python tracker
Bheemesh bheem...@gmail.com added the comment:
Hello Tarek,
done in r75192 and r75194. Thanks Till !
Can you please tell me how to get this correction into use?
--
nosy: +bheemesh
___
Python tracker rep...@bugs.python.org
1 - 100 of 149 matches
Mail list logo