> def ...(...):
> ...
>
> class ...(...):
> ...
>
> etc
>
> ;-)
>
> Chris
>
> Maybe we should change it to
def ...(...(:
...
class ...(...(:
...
--
Matias,
--
http://mail.python.org/mailman/listinfo/python-list
Matias wrote:
Hi!
I'm using python-ldap to create some entries on my openldap server.
The problem is that some of those entries have accented characters and
unicode text in general.
I'm wondering if there is any example or documentation on how to add
or modify ldap objects wh
non-ascii characters,
such as accents, and so on. As far as I understand, those values
should be encoded using base64, but if I do that, I don't know how to
indicate in the modlist that this is the encoded value and not the
value itself.
Any help will be bery appreciated.
Matias.
--
http://
can i refresh the text in the label to show the change of the value
every time... instantaniely?
I think in a threads, but i can't get it...
Thanks a lot
--
Matias Hernández (Msdark)
www.msdark.archlinux.cl
ArchLinux-CL - WikiAdmin
MSN: matia...@gmail.com
Twitter : www.twitter.com/m
live" from 192.168.0.1 to 192.168.1.254
From python, you can use it by saving it's output to a file and then
reading or with the help of os.popen.
In this case, "alive" means that the hosts with the ip being analyzed
responds to ARPs. see the manpage for nmap.
Matias.
--
Mohan Parthasarathy escribió:
Hi,
I am new to Python. I tried searching this but could not find an answer.
In the interactive shell, I write a new function and I want to be able
to see all the code that I wrote at a later time. Just typing the
function name only shows
>>> allmethods
How
You should give a look to Selenium. It's great.
http://www.openqa.org
News123 wrote:
Hi,
I'd like to do some web automation with python 2.5
- https:
- a cookiejar
- some forms to be filled in
what is the best set of modules.
As far as I understood, there is httplib, but it seems (if I un
Diez B. Roggisch escribió:
notbob schrieb:
Grrr
I'm following A Byte of Python and into the while loops chap. I cp/paste
while.py to a file and give 777 perms. I mv while.py to while and run
it (./while)
as a standalone script. I get errors.
Here is the script:
while.py
http://www.i
It's april 1st again???
sturlamolden escribió:
> Hello Guys...
>
> I just had one moment of exceptional clarity, during which realized
> how I could get the GIL out of my way... It's so simple, I cannot help
> wondering why nobody has thought of it before. Duh! Now I am going to
> sit and and ma
Anyone knows how having the IP address of a host on the lan could I get
the mac address of that hosr?
p/d: Parsing the output of arp -a is not an option.
Thanks a lot!
--
http://mail.python.org/mailman/listinfo/python-list
Matias Surdi escribió:
> Do yo know any good OpenDocumentFormat library for python?
>
> I'm starting a project on wich I'll have to programatically modify ODF
> text documments, so, after reinventing the wheel, I'd like to know if
> already something exists.
&g
Do yo know any good OpenDocumentFormat library for python?
I'm starting a project on wich I'll have to programatically modify ODF
text documments, so, after reinventing the wheel, I'd like to know if
already something exists.
Thanks a lot.
--
http://mail.python.org/mailman/listinfo/python-lis
test
--
http://mail.python.org/mailman/listinfo/python-list
test
--
http://mail.python.org/mailman/listinfo/python-list
Suppose I've a process P1, which generates itself a lot of data , for
example 2Mb.
Then, I've a process P2 which must access P1 shared memory and,
probably, modify this data.
To accomplish this, I've been digging around python's mmap module, but I
can't figure how to use it without files.
Could
Ben Finney escribió:
> Matias Surdi <[EMAIL PROTECTED]> writes:
>
>> Suppose I've a module named "urllib" and from it I need to import
>> the urllib module from the python standart library.
>
> What you want is the "absolute import" behav
Hi,
Suppose I've a module named "urllib" and from it I need to import the
urllib module from the python standart library.
¿how can I do this?
The problem I found is that when I do:
import urrlib
The imported module is itself, and not the one from the stdlib.
Any idea?
Thanks a lot.
--
ht
Hi,
Could anybody tell me which is the easier way to do a SOAP call to a web
service wich requires an http header to be present?
I can't figure it out.
Thanks a lot
Some code I'm using:
import SOAPpy
s =
SOAPpy.SOAPProxy("http://10.3.5.128:10560/SERVICES",namespace="http://ws.mysite.com";)
I have the following code:
--
import new
class A:
def a(self):
print "Original"
def other(cad):
return cad + " modified"
def replace_method(method):
def b(self,*args,**kwargs):
result = method(*args,**kwargs)
return other(result)
dxm escribió:
> I am a new comer to python.
> I am wondering how setup.py works.
> For example, I have a directory like this:
> /
>setup.py
>mymodule.c
>
> where setup.py is:
>
> from distutils.core import setup, Extension
>
> mod = Extension('mymodule', sources = ['mymodule.c'])
>
> se
How can I get all the clasess inside a package (including it subpackages) ?
for example, I have a package with classes A and B and with a subpackage
wichs has class C.
How can I get a list (and a path) of the classes that exists under the
root package ?
Thanks a lot!
--
http://mail.python.o
Steve Holden escribió:
> Matias Surdi wrote:
>> Thanks for your reply.
>>
>> This is the code that creates the file:
>> lock_file = open(".lock","w")
>> lock_file.write("test")
>> lock_file.close()
>> #Change p
r
os.remove(".lock")
I've seen that the script is running as "nobody", but, the file is rwx by
everybody. I've also tryed changing the owner of the file to "nobody" also,
but no luck anyway.
Thanks a lot.
Steve Holden wrote:
> Matias Surdi wrote:
&g
HI!
I want to delete a file from a CGI, but I always get a Permission denied
error.
I've tryed this after creating the file (from a normal script):
os.chmod(".lock",stat.S_IMODE(stat.S_IRWXU | stat.S_IRWXO | stat.S_IRWXG))
os.chown(".lock",pwd.getpwnam("nobody")[2],pwd.getpwnam("nobody")[3])
bu
I come from a background of Java and C# where it is common practise to have
one class per file in the file/project structure. As I have understood it,
it is more common practice to have many classes in a Python module/file.
What is the motivation behind it, would it be a bad idea to have a guide
25 matches
Mail list logo