Hi Michael Torrie,
Thanks to reply
Why we need Twisted here, i did not get it.
My understanding is that
if
ldap_proxy_user = ldap_proxy
ldap_proxy_pwd = secret
( set more privileges to this user at ldap server side, for get other
users infos)
are configured at server side, then allow clients to l
On 2/12/2012 12:10 AM, Steven D'Aprano wrote:
> It's not just UTF8 either, but nearly all encodings. You can't even
> expect to avoid problems if you stick to nothing but Windows, because
> Windows' default encoding is localised: a file generated in (say) Israel
> or Japan or Germany will use a
This is only peripherally a Python problem, but in case anyone has any
good ideas I'm going to ask it.
I have a routine to calculate an approximation of Lambert's W function,
and then apply a root-finding technique to improve the approximation.
This mostly works well, but sometimes the root-fin
On Sat, 11 Feb 2012 18:36:52 -0800, Rick Johnson wrote:
>> "I have a file containing text. I can open it in an editor and see it's
>> nearly all ASCII text, except for a few weird and bizarre characters
>> like £ © ± or ö. In Python 2, I can read that file fine. In Python 3 I
>> get an error. What
On Sun, Feb 12, 2012 at 4:51 PM, Steven D'Aprano
wrote:
> You can't say that it cost you £10 to courier your résumé to the head
> office of Encyclopædia Britanica to apply for the position of Staff
> Coördinator.
True, but if it cost you $10 (or 10 GBP) to courier your curriculum
vitae to the hea
On Sun, 12 Feb 2012 15:38:37 +1100, Chris Angelico wrote:
> Everything that displays text to a human needs to translate bytes into
> glyphs, and the usual way to do this conceptually is to go via
> characters. Pretending that it's all the same thing really means
> pretending that one byte represen
In article ,
Franck Ditter wrote:
> How do you stop a looping computation with IDLE 3.2.x on MacOS-X Lion ?
> It hangs with the colored wheel...
> Ctl-C does not work.
Ctrl-C in the IDLE shell window works for me on OS X 10.7 Lion. Did you
use the python.org 3.2.2 64-bit-/32-bit installer for
On Sun, Feb 12, 2012 at 1:36 PM, Rick Johnson
wrote:
> On Feb 11, 8:23 pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
>> "I have a file containing text. I can open it in an editor and see it's
>> nearly all ASCII text, except for a few weird and bizarre characters like
>> £ © ± or ö.
On 02/11/2012 08:35 PM, Michael Torrie wrote:
> On 02/11/2012 02:19 PM, sajuptpm wrote:
>> Hi Michael Ströder,
>> Thanks for replay
>>
>> Yea i am not totally clear about that
>>
>> Client's Requirement is
>> option to have a ldap proxy user bind to the ldap server if it needs
>> more directory rig
On 02/11/2012 02:19 PM, sajuptpm wrote:
> Hi Michael Ströder,
> Thanks for replay
>
> Yea i am not totally clear about that
>
> Client's Requirement is
> option to have a ldap proxy user bind to the ldap server if it needs
> more directory rights than an anonymous bind.
> option to use a ldap pro
On Feb 11, 8:23 pm, Steven D'Aprano wrote:
> On Sun, 12 Feb 2012 12:28:30 +1100, Chris Angelico wrote:
> > On Sun, Feb 12, 2012 at 12:21 PM, Eric Snow
> > wrote:
> >> However, in at
> >> least one current thread (on python-ideas) and at a variety of times in
> >> the past, _some_ people have foun
On Sun, 12 Feb 2012 12:28:30 +1100, Chris Angelico wrote:
> On Sun, Feb 12, 2012 at 12:21 PM, Eric Snow
> wrote:
>> However, in at
>> least one current thread (on python-ideas) and at a variety of times in
>> the past, _some_ people have found Unicode in Python 3 to make more
>> work.
>
> If Uni
On Sat, Feb 11, 2012 at 6:28 PM, Chris Angelico wrote:
> On Sun, Feb 12, 2012 at 12:21 PM, Eric Snow
> wrote:
>> However, in at
>> least one current thread (on python-ideas) and at a variety of times
>> in the past, _some_ people have found Unicode in Python 3 to make more
>> work.
>
> If Unicod
On Sun, Feb 12, 2012 at 12:21 PM, Eric Snow wrote:
> However, in at
> least one current thread (on python-ideas) and at a variety of times
> in the past, _some_ people have found Unicode in Python 3 to make more
> work.
If Unicode in Python is causing you more work, isn't it most likely
that the
On Sat, Feb 11, 2012 at 2:51 PM, Andrew Berg wrote:
> On 2/11/2012 3:02 PM, Eric Snow wrote:
>> I'm thinking about this partly because of the discussion on
>> python-ideas about the perceived challenges of Unicode in Python 3.
>
>> For instance, if frameworks (like django and numpy) could complete
On 11/02/2012 21:02, Eric Snow wrote:
Does anyone have (or know of) accurate totals and percentages on how
Python is used? I'm particularly interested in the following
groupings:
- new development vs. stable code-bases
- categories (web, scripts, "big data", computation, etc.)
- "bare metal" vs
On 2/11/2012 3:02 PM, Eric Snow wrote:
> I'm thinking about this partly because of the discussion on
> python-ideas about the perceived challenges of Unicode in Python 3.
> For instance, if frameworks (like django and numpy) could completely
> hide the arguable challenges of Unicode in Python 3--a
Eric Snow, 11.02.2012 22:02:
> - categories (web, scripts, "big data", computation, etc.)
No numbers, but from my stance, the four largest areas where Python is used
appear to be (in increasing line length order):
a) web applications
b) scripting and tooling
c) high-performance computation
d) tes
On 2/11/2012 3:01 PM, Terry Reedy wrote:
> The readme file in PCBuild supposedly has all the info needed, though I
> know one thing out of date. Trying to follow the instructions is on my
> todo list ;-).
>
I didn't notice the readme in there. I was following instructions from
here: http://docs.
I have a minor trouble here with my Internet connection. Can anyone send
me the last version of psycopg2 to this email?
Thanks a lot for the help.
Regards and best wishes
--
Marcos Luis Ortíz Valmaseda
Sr. Software Engineer (UCI)
http://marcosluis2186.posterous.com
http://www.linkedin.com/in/
Does anyone have (or know of) accurate totals and percentages on how
Python is used? I'm particularly interested in the following
groupings:
- new development vs. stable code-bases
- categories (web, scripts, "big data", computation, etc.)
- "bare metal" vs. on top of some framework
- regional us
On 2/11/2012 3:02 PM, Andrew Berg wrote:
I tried to build Python 3.2.2 with VS 2008, but it seems I'm missing
some header files (e.g. sqlite3, openssl). Is there a nice little
package with all the dependencies, or do I need to grab source code
packages for each program from their respective websi
Hi,
I have uploaded greenlet 0.3.4 to PyPI:
http://pypi.python.org/pypi/greenlet
What is it?
---
The greenlet module provides coroutines for python. coroutines allow
suspending and resuming execution at certain locations.
concurrence[1], eventlet[2] and gevent[3] use the greenlet module
sajuptpm wrote:
I have developed a LDAP auth system using python-ldap module.
Using that i can validate username and password, fetch user and
groups info from LDAP directory.
Now i want to implement ldap proxy user bind to the ldap server.
What do you mean exactly?
Are you talking about LDAPv
I tried to build Python 3.2.2 with VS 2008, but it seems I'm missing
some header files (e.g. sqlite3, openssl). Is there a nice little
package with all the dependencies, or do I need to grab source code
packages for each program from their respective websites, or something
else entirely?
--
CPyth
On Feb 11, 10:56 am, Ian Kelly wrote:
> On Sat, Feb 11, 2012 at 10:54 AM, Ian Kelly wrote:
> > class Dog(dict):
>
> > def __missing__(self):
> > return 0
>
> Sorry, that should have been:
>
> class Dog(dict):
>
> def __missing__(self, key):
> return 0
>
> Cheers,
> Ian
Than
How do you stop a looping computation with IDLE 3.2.x on MacOS-X Lion ?
It hangs with the colored wheel...
Ctl-C does not work.
Thanks,
franck
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 2012-02-11 at 09:40 -0800, Kevin Murphy wrote:
> Hi All,
> I'm using Python 2.7 and having a problem creating the cursor below.
> Any suggestions would be appreciated!
>
> import sys
> import _mysql
>
> print "cursor test"
>
> db =
> _mysql.connect(host="localhost",user="root",passwd="my
On Sat, Feb 11, 2012 at 10:54 AM, Ian Kelly wrote:
> class Dog(dict):
>
> def __missing__(self):
> return 0
Sorry, that should have been:
class Dog(dict):
def __missing__(self, key):
return 0
Cheers,
Ian
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Feb 11, 2012 at 10:46 AM, Ian Kelly wrote:
> The problem is that defaultdict defines a custom __reduce__ method
> which is used by the pickle protocol to determine how the object
> should be reconstructed. It uses this to reconstruct the defaultdict
> with the same default factory, by cal
On Fri, Feb 10, 2012 at 7:48 PM, 7stud <7s...@excite.com> wrote:
> But I cannot get a class that inherits from collections.defaultdict to
> shelve itself:
>
>
> import collections as c
> import shelve
>
> class Dog(c.defaultdict):
> def __init__(self):
> super().__init__(int, Joe=0)
>
Hi All,
I'm using Python 2.7 and having a problem creating the cursor below.
Any suggestions would be appreciated!
import sys
import _mysql
print "cursor test"
db =
_mysql.connect(host="localhost",user="root",passwd="mypw",db="python-
test")
cursor = db.cursor()
>>>
cursor test
Traceback (mos
On Fri, Feb 10, 2012 at 2:28 PM, Vinay Sajip wrote:
> Sarge, a cross-platform library which wraps the subprocess module in
> the standard library, has been released.
>
> What does it do?
>
>
> Sarge tries to make interfacing with external programs from your
> Python applications e
Sarge, a cross-platform library which wraps the subprocess module in
the standard library, has been released.
What does it do?
Sarge tries to make interfacing with external programs from your
Python applications easier than just using subprocess alone.
Sarge offers the following
On behalf of Twisted Matrix Laboratories, I am honored to announce the
release of Twisted 12.0.
47 tickets are closed by this release, among them:
* A fix to the GTK2 reactor preventing unnecessary wake-ups
* Preliminary support of IPV6 on the server side
* Several fixes to the new protocol
在 2012年2月11日星期六UTC+8上午7时57分56秒,Paul Rubin写道:
> Righard van Roy
> writes:
> > I want to add an item to a list, except if the evaluation of that item
> > results in an exception.
>
> This may be overkill and probably slow, but perhaps most in the spirit
> that you're asking.
>
> from itertool
Terry Reedy writes:
> On 2/9/2012 8:23 PM, noydb wrote:
>> So how would you round UP always? Say the number is 3219, so you want
(//100+1)*100
> 3400
Note that that doesn't work for numbers that are already round:
>>> (3300//100+1)*100
3400# 3300 would be correct
I'd go with Chri
Hi,
I am Mithra. Me and my friends joined together ti help the
orphanage people after visiting their home once. There are nearly 100
students interested in studies but they dont have enough fund to be
provided for their studies. Please help them by donating as much as
you can. Thanks for your
Righard van Roy writes:
> Hello,
>
> I want to add an item to a list, except if the evaluation of that item
> results in an exception.
> I could do that like this:
>
> def r(x):
> if x > 3:
> raise(ValueError)
>
> try:
> list.append(r(1))
> except:
> pass
> try:
> list.a
Le 10/02/12 21:48, Thomas Philips a écrit :
Thanks for the insight. I saw the behavious as soon as I extended x
with a bunch of 0's
x = list(range(10))
x.extend([0]*10)
x
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
40 matches
Mail list logo