with Python?
Seems like you already have a fast alternative you like.
--
Benedict Verheyen Debian, Python and Django user
GnuPG Public Key 0x712CBB8D
--
http://mail.python.org/mailman/listinfo/python-list
through all the effort to talk
about it, why don't you show us that Python is slower in regexs than perl.
That's at least relevant bandwdith.
Next, if Python is slower, there might be ways to improve the performance.
Last, if there is a SPU (Secret Python Underground), I want to
inks.
Aaarggh. IIS...
Cheers,
Benedict
--
Benedict Verheyen Debian, Python and Django user
GnuPG Public Key 0x712CBB8D
--
http://mail.python.org/mailman/listinfo/python-list
url.aspx";, data=data, headers=headers,
timeout=8)
Any ideas would be welcome,
Cheers,
Benedict
--
Benedict Verheyen Debian, Python and Django user
GnuPG Public Key 0x712CBB8D
--
http://mail.python.org/mailman/listinfo/python-list
On 24/01/2012 7:06, Steven D'Aprano wrote:
> On Mon, 23 Jan 2012 21:57:16 -0800, Rick Johnson wrote:
>
>> Here is a grep from the month of September 2011 showing the rampantly
>> egregious misuse of the following words and phrases:
>>
>> * pretty
>> * hard
>> * right
>> * used to
>> * supposed to
On 20/01/2012 12:42, Anssi Saari wrote:
> Benedict Verheyen writes:
>
>> If i need to install a new version of Python, as I happen to have done today,
>> I only need to do step 4. Which is maybe 5 minutes of work.
>
> I don't really understand why you compile
On 19/01/2012 5:36, Steven D'Aprano wrote:
> On Wed, 18 Jan 2012 19:10:43 -0800, alex23 wrote:
>
>
> download the tar ball
> extract the contents of the file
> cd into the source directory
> run ./configure
> run make
> optionally run make test
> run sudo make altinstall
>
> As a total n00b who
Hi,
I have a suite of scripts that I develop on Debian Linux, python version 2.7.1
but the resulting server
where the scripts are deployed to is Windows based.
I struggled making my setup.py file include data I need for my testing suite,
but in the
end i succeeded by making a MANIFEST.in file c
On 24/12/2010 2:16, Benedict Verheyen wrote:
> On 23/12/2010 20:55, Stefan Sonnenberg-Carstens wrote:
>>>
I finally succeeded.
I built ncurses and installed it to $HOME/usr/local
./configure --with-shared --enable-termcap --prefix=$HOME/usr/local
make
make install
Then i bu
On 23/12/2010 20:55, Stefan Sonnenberg-Carstens wrote:
>>
>>
> OK, I compiled it successfully under Debian 5.07 i386.
> ncurses and libreadline are compiled from hand, both --prefix=$HOME/usr/local.
> For python the only extra needed was export
> LD_LIBRARY_PATH=$HOME/usr/local/lib:$LD_LIBRARY_PA
On 23/12/2010 14:09, Benedict Verheyen wrote:
>
> I started from scratch.
> I tried to build readline 6 and 5, and installing the packages system wide
> as opposed to $HOME/local, but everytime Python fails to find it.
>
> On stable, apt-get build-dep python 2.6 doesn
On 23/12/2010 11:00, Stefan Sonnenberg-Carstens wrote:
> apt-get build-dep python 2.6
> should do, the dependencies haven't changed (IMHO).
> Then wipe away $HOME/usr/local (if you can, btw),
> reset all env vars to default (perhaps reboot).
> Then untar python from scratch, cd into that dir, and
On 22/12/2010 18:47, Stefan Sonnenberg-Carstens wrote:
> Am 22.12.2010 09:33, schrieb Benedict Verheyen:
>>
> Did you try
>
> apt-get install build-essential
> apt-get build-dep python2.7
>
> before trying to compile ?
>
> Anyway, the config.log file is always
On 22/12/2010 18:57, Jim Pharis wrote:
> are you running make clean for good measure?
Yes, i am.
I am gong to try and uninstall Python2.7 from $HOME/local and see
if that makes a difference. Maybe it interferes with the build process?
Regards,
Benedict
--
http://mail.python.org/mailman/listinf
On 22/12/2010 9:33, Benedict Verheyen wrote:
> Hi,
>
>
> i'm trying to compile Python 2.7.1 on Debian (Virtual Box).
> Compiling end successfully but readline and curses fail to build.
>
> I'm working with virtualenv and I install all my packages in $HOME/lo
Hi,
i'm trying to compile Python 2.7.1 on Debian (Virtual Box).
Compiling end successfully but readline and curses fail to build.
I'm working with virtualenv and I install all my packages in $HOME/local.
I've downloaded readline, compiled and installed it in $HOME/local, same with
ncurses.
Both
On 15/12/2010 16:54, Stefan Sonnenberg-Carstens wrote:
> Just change to LDAP as authentication method.
> Even Active Directory offers LDAP (w/o SSL), and there
> are modules to interact with LDAP using python.
> And, it is platform indipendent.
>
> See here: http://www.python-ldap.org/
>
> I've
On 15/12/2010 15:17, Steve Holden wrote:
>>
>> Hi,
>>
>> thanks for your answer.
>> For the moment, i only need to connect to AD to authenticate.
>> But you raise a good point that if I need more functionality, I will
>> encounter problems.
>>
> Benedict:
>
> Have you considered running a virtua
On 15/12/2010 14:37, Tim Golden wrote:
> Well I'm not sure how far something like WINE would take you,
> but I suggest that trying to develop Windows-specific code in
> a Linux Dev environment is creating a rod for your own back.
>
> For the specific case you mention, you should be able to switch
On 15/12/2010 12:34, Romaric DEFAUX wrote:
> To create these query, I do this :
> query = "UPDATE website SET client_name='%s' WHERE ip='%s'" %
> (self.client_name, self.ip)
> then self.cursor.execute(query)
>
Unicode can be tricky.
Don't you have to encode the string again?
I tested this in th
Hi,
I'm moving my development environment (python, Django, virtualenv) from Windows
to Linux (Debian more specific). However, on one app (uses Django), i have a
log on
module that uses AD to authenticate users.
It's based on the active_directory wrapper of Tim Golden.
That needs the win32 module
On 3/08/2010 17:01, Peter Otten wrote:
> You can only pickle instances of classes that are reachable by the import
> system as only the qualified name of the class is stored, not the bytecode
> to generate it. Move your class out of the function into the global module
> scope and you should be
Hi
i get the following error when trying to set data in the cache of a django
application. The error is however a python error as it involves pickling and i
can
reproduce it in a shell.
The error i get is this:
cPickle.PicklingError: Can't pickle : attribute
lookup management.views.Stats failed
Jean-Michel Pichavant wrote:
> Benedict Verheyen wrote:
>> Hhhm, i can see how it makes the maintenance cleaner.
>> However, in the case of a single setup.py, i will end up installing
>> scripts on servers
>> that will never use them, only some.
>>
> You
sstein...@gmail.com wrote:
> On Feb 16, 2010, at 3:28 AM, Benedict Verheyen wrote:
>> python_scripts
>> |
>> |-->trunk
>> ..|-> my big script 1
>> |-> setup.py
>> ..|-> my big script 2
>> .
Steven D'Aprano wrote:
> On Mon, 15 Feb 2010 16:29:05 +0100, Benedict Verheyen wrote:
>
>> However, when i make a subdirectory, for example database and put a
>> script in there, how would i import logutils or mailtutils from within
>> the database subdirec
Jean-Michel Pichavant wrote:
> Hi,
>
> 1/ Provide the output of the error so we can provide some useful help.
> 2/ Embed your structure into a package. Names like 'tools', 'lib',
> 'mail', 'log' are too generic and will clash with other badly designed
> module/package names. Choose a name for yo
Hi,
i wanted to ask how you guys structure your code.
I mainly have scripts that automate small tasks.
These scripts use a common set of utility code.
My code is structured like this, for example:
script_1.py
script_2.py
script_3.py
tools\
|->__init__.py
|->logutils.py
|->mailutils.py
Francesco Bochicchio wrote:
>
> I would add a server class, maybe subclassing something in standard
> library, and add to it the 'send' method, so that sending a mail would
> be
> something like:
>
> myserver = MyMailServer("mysmtpserver", "localhost", ) # this only
> needs to be done once, not
Marco Mariani wrote:
> Benedict Verheyen wrote:
>
>> Any ideas are welcome.
>
> easy_install turbomail
>
> :)
>
Looks good but i'm still interested in how one would
make a clean class interface for this type of problem.
Having said that, turbomail looks
Hi,
I'm trying to come up with a decent interface for my email class.
Basically, i have one email function but it has many (too many?) variables:
send_mail(self, send_from, send_to, send_cc, subject, text, separate_emails
= False, files=[], inline_files=[], server="localhost",
charset="iso-
Tim Golden schreef:
> OK. You've got a few misunderstandings in there. Nothing too major,
> but it's worth sorting them out.
>
> 1) If you just want to kick off a program and that's it, say as part of
> some kind of startup process, then you can just use the subprocess.call
> convenience functi
Hi,
i want to automate starting programs on my windows machine and i want
to do it with windows.
This is a sample script:
from subprocess import Popen, PIPE
import time
print " Starting app 1"
time.sleep(1)
try:
p1 = Popen(["C:\Program Files\Microsoft
Office\OFFICE11\OUTLOOK.EXE"], stdout
Benedict Verheyen schreef:
>
Thanks for the responses.
I solved it by adjusting the relayers list (i'm a domain admin) in
others words i granted my pc the rights to relay.
I did this by starting the Exchange System Manager and then going to
Servers->->protocols->SMTP
Th
Tim Williams schreef:
>
> Have you asked your Exchange admin if the server is allowed to relay via SMTP?
I'm the system administrator but haven't really checked the config since i
didn't know this type of email sending was considered relaying.
> If your "working mail program" is Outlook then i
Hi,
i get an "Unable to relay for" when trying to send an email from within
my network to an email address not on my domain.
I don't understand why it says "relaying" as i'm sending from an
internal domain user to an external user.
Email server is exchange 2003
See this trace
>>> smtp.sendmai
james_027 schreef:
> hi everyone,
>
> I am very new to python, I am almost done learning the python language
> enough that I can start learning developing web app in python. I have
> gone thru many research and I still say that I will want to develop
> web app in python. Although some says php sho
Waldemar Osuch schreef:
>
> I have also build it on XP SP2.
>
> I have wrapped the files from "setup.py build" and all required .dll
> using Inno Setup.
> Maybe Vista does not like the executable produced by Inno.
>
> If you still want to try then unzip the following:
> http://www.osuch.org/pyt
Thorsten Kampe schreef:
>> I'm on Vista (boohoo :(), what's your platform?
>
> XP SP2
Hmmm it thought so.
So in my case it would be interesting to know how to build it so i can
make a build that works on Vista too.
Regards,
Benedict
--
http://mail.python.org/mailman/listinfo/python-list
Thorsten Kampe schreef:
> * Benedict Verheyen (Mon, 11 Jun 2007 11:23:59 +0200)
>> Waldemar Osuch schreef:
>>> I have managed to build it for myself using MinGW:
>>> http://www.osuch.org-a.googlepages.com/python-ldap-2.3.win32-py2.5.exe
>>>
>>> See
Waldemar Osuch schreef:
>
> I have managed to build it for myself using MinGW:
> http://www.osuch.org-a.googlepages.com/python-ldap-2.3.win32-py2.5.exe
>
> See if it will work for you
>
> Waldemar
Hi Waldemar,
thanks for the installation file.
When i installed it, i got an error stating "The
Hi,
i found python-ldap for version Python 2.4.
Is there i place i can find a version for 2.5?
If not, how can i build it myself for Windows?
Thanks,
Benedict
--
http://mail.python.org/mailman/listinfo/python-list
kaens schreef:
>>
>
> What, he wants to know if there's a way in python to capture
> keystrokes, and do something with them depending on what they are.
>
> I mean, it's very unlikely that you would ask for something called a
> "key listener" if you didn't want to do something like:
>
> if keypr
[EMAIL PROTECTED] schreef:
> On 30 mai, 04:14, Mike <[EMAIL PROTECTED]> wrote:
>> Are there key listeners for Python? Either built in or third party?
>
> What is a "key listener" ?
>
I thought it was a rather straightforward name.
Something that listens for a key. In other words, a piece of soft
flupke wrote:
Thanks Peter & Radovan for the answers
Regards,
Benedict
--
Benedict Verheyen Debian User
http://www.heimdallitservices.bePublic Key 0x712CBB8D
--
http://mail.python.org/mailman/listinfo/python-list
gram is is
> automatically added to sys.path. No other directory is added to the default
> builtin sys.path.
>
> In you case (the second case), you can import package.dir2.file2.
OK, thanks for the info
Regards,
Benedict
--
Benedict Verheyen Debian User
46 matches
Mail list logo