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 j
--
Benedict Verheyen
perl so I can't compare.
And why would I use any custom version of Python, when I don't
have to do that with Perl?
If you're able to do that with Perl, and Perl is faster that Python,
why would you want to bother with Python?
Seems like you already have a fast alternative you like.
--
Benedict
/issue17948
Otherwise, dumping network traffic with Wireshark could give you some
hints at to what is different between the SSL handshakes in the two
setups.
Regards
Antoine.
Hi Antoine,
thanks, it seems to be the problem metioned in the links.
Aaarggh. IIS...
Cheers,
Benedict
--
Benedict
,
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
I'm pretty
On 20/01/2012 12:42, Anssi Saari wrote:
Benedict Verheyen benedict.verhe...@gmail.com 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 these common
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
On 19/01/2012 5:36, Steven D'Aprano wrote:
On Wed, 18 Jan 2012 19:10:43 -0800, alex23 wrote:
snip
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'd
On 22/12/2010 18:47, Stefan Sonnenberg-Carstens wrote:
Am 22.12.2010 09:33, schrieb Benedict Verheyen:
snip
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 of special interest.
Btw, which Debian
On 23/12/2010 11:00, Stefan Sonnenberg-Carstens wrote:
snip
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 23/12/2010 14:09, Benedict Verheyen wrote:
snip
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't work, but
apt-get build
On 23/12/2010 20:55, Stefan Sonnenberg-Carstens wrote:
snip
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_PATH
On 24/12/2010 2:16, Benedict Verheyen wrote:
On 23/12/2010 20:55, Stefan Sonnenberg-Carstens wrote:
snip
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 built readline
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.
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/local.
I've downloaded readline, compiled
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
--
On 15/12/2010 16:54, Stefan Sonnenberg-Carstens wrote:
snip
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
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
On 15/12/2010 12:34, Romaric DEFAUX wrote:
snip
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 the
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 15:17, Steve Holden wrote:
snip
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 virtual Windows
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 class 'management.views.Stats': attribute
On 3/08/2010 17:01, Peter Otten wrote:
snip
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
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 subdirectory? This fails:
from tools.logutils
sstein...@gmail.com wrote:
On Feb 16, 2010, at 3:28 AM, Benedict Verheyen wrote:
snip
python_scripts
|
|--trunk
..|- my big script 1
|- setup.py
..|- my big script 2
|- setup.py
..|- database
|- database
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
Jean-Michel Pichavant wrote:
snip
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 you
Francesco Bochicchio wrote:
snip
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 for
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,
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 quite good :)
Thanks
--
http
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],
Tim Golden schreef:
snip
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
Benedict Verheyen schreef:
snip
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-name of exchange server-protocols-SMTP
Tim Williams schreef:
snip
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
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
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 should
Waldemar Osuch schreef:
snip
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:
Waldemar Osuch schreef:
snip
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
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 if it will work for you
thanks for the installation file
Thorsten Kampe schreef:
snip
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
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
[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 software
that
kaens schreef:
snip
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 keypress ==
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
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
http://www.heimdallit.bePublic Key 0x712CBB8D
--
http://mail.python.org/mailman
45 matches
Mail list logo