p.
Python 2.2.3
FreeBSD
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
there are a lot of packeges under suspicion:
cPickle, select, threading, logging, socket, struct
Michael Ekstrand wrote:
> On Tuesday 04 October 2005 11:13, Maksim Kasimov wrote:
>
>>my programm sometime gives "Segmentation fault" message (no matter
>>how long the
m crashed using gbd :
>
> $ gdb --core=core.
>
> Then, depending on the debug information you have in your executables
> you may (or may not) be able to know what happened :)
>
> Pierre
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ogger "comtypes.client"' when the
> script runs?
>
> I would like to setup the logging so that there is no logging when
> nothing is configured, and no warning messages are printed.
>
> Thomas
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
any output
>>> dir(code)
['__class__', '__cmp__', '__delattr__', '__doc__', '__getattribute__',
'__hash__', '__init__', '__new__', '__reduce__', '__repr__', '__setattr__',
'__str__'
\Python24/python.exe foo.py
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x1e027b23 in ?? ()
> (gdb) bt
> #0 0x1e027b23 in ?? ()
> #1 0x00977240 in ?? ()
> #2 0x1e1a82b8 in ?? ()
> Cannot access memory at address 0x7
> (gdb)
>
> How ca
rection ?
>
> one million tks~
>
script.py >> script.log 2>&1
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
waiting for more
> bytes. So what I would like is to timeout...and select.selec() seems
> to be what I need. Except I don't have a socket, i have stdout.
>
> Any suggestions on how to do a timeout like select.select with stdout?
>
> Thanks
>
--
Best regards,
Ma
heel, I wonder if anyone knows of a
> library which could do what I want?
>
> Thanks,
> Gabriel Genellina
> Softlab SRL
>
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
yes, i missed, sorry
Dennis Lee Bieber wrote:
> On Wed, 26 Oct 2005 11:29:17 +0300, Maksim Kasimov
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>
>>you have to use non-block readining.
>>
>>http://docs.python.org/lib/module-sel
ello World",3)
>
> Returns:
>
> ['Hell','o W','orl','d']
>
>
> Any reply would be truly appreciated.
>
> Thank You,
>
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[2005, 8, 9, 16, 25, 18, 1, 221, 1]
>>>
>>>
>>> m2 = my.my()
__data1: []
__data2: [2005, 8, 9, 16, 25, 18, 1, 221, 1]
__data1: [2005, 8, 9, 16, 25, 18, 1, 221, 1, 2005, 8, 9, 16, 25, 25, 1, 221, 1]
__data2: [2005, 8, 9, 16, 25, 18, 1, 221, 1, 2005, 8, 9, 16, 25, 25, 1,
i see, thaks you very match!
Dan Sommers wrote:
> On Tue, 09 Aug 2005 16:39:51 +0300,
> Maksim Kasimov <[EMAIL PROTECTED]> wrote:
>
>
>>Hello,
>
>
>>i have a class, such as below.
>>when i try to make instances of the class,
>>fields __data1 an
very inconvenient, because in main script, i'm not
importing all the modules (some modules imported by other modules).
thanks for help.
Python 2.2.3
FreeBSD
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ted system call":
# all i need to do it is reopen log-file.
# It was opened at the time of pragramm start
def myHandler(signum, frame):
sys.stdout = sys.stderr = open("mylog.log", "a+")
signal.signal(signal.SIGHUP, myHandler)
--
Best regards,
Maksim Kasimov
mailto: [EMA
uot;.implode(", ", array_keys($query_param)).") VALUES
('".implode("','", $query_param)."')";
how it can be done, using python (elegantly, without cycles)?
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
... but not in the case when integers are in a dictionary (please, try to
execute your example by yourself first)
"Ola Natvig" <[EMAIL PROTECTED]> wrote:
news:[EMAIL PROTECTED]
> Maksim Kasimov wrote:
> >
> > in php-scripts, to insert data t
done. thanks
Try another paramstyle (see http://python.org/peps/pep-0249.html), e. g.
",".join(["%s"] * len(keys)) ...
instead of
",".join(["?"] * len(keys)) ...
Peter
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ble), the jar-files are
also necessary for processing by obfuscators
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
is a
> wide-spread browser plugin with interactive and multimedia capabilities.
> But how to do it in flash I've no idea - after all I'm a pythoneer.
>
> Alternatively, SVG might be an option - but I'm not sure if its mature and
> powerful enough.
>
> --
&g
o.
as far i know, it is depends on implementation of method "__iter__" of the object that
"open()" returns, so another question: where i can find such an information (about how
does such a functions works)?
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
sorry for my question, but i've read the documentation, and can't find
where is the explanation of how it is exactly works (but of course i do believe
you). If it is buit in function, can i see the source code of the method to
find it out?
Kent Johnson wrote:
Maksim Kasimov wrote:
Ke
conn, addr = socket.accept()
>
> return ( conn, addr )
>
> Does anyone have any suggestions on how to do the above?
>
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
rfile.read( contentLength )
...
self.wfile.write( respContent )
many thanks for help.
--
Maksim Kasimov
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
how to set source ip-address when do __socket.connect((host, port))
on a machine that have a several ip-adresses?
many thanks for advice.
__socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
__socket.connect((host, port))
--
Maksim Kasimov
--
http://mail.python.org/mailman
s:
>
> for x1 in l1, x2 in l2, x3 in l3:
> print "do something with", x1, x2, x3
>
> However, this code obviously doesn't work...
>
>
> I'd be very happy to receive ideas about how to do this in one loop and
> with minimal initialization (if at all required).
>
> Thanks in advance,
> Gal
>
--
Maksim Kasimov
--
http://mail.python.org/mailman/listinfo/python-list
yncore/asynchat
> modules.
> FTP tipically got two different channels: command and data.
> I'm succesfully managing command channel through asynchat framework,
> but I'm not sure about how to manage data channel without using a
> thread/subprocess.
> Is there an optimal
27; )
[EMAIL PROTECTED] wrote:
> Can someone please explain why these expressions both produce the same
> result? Surely this means that non-greedy regex does not work?
>
> print re.sub( 'a.*b', '', 'ababc' )
>
> gives: 'c'
>
def __getattr__(self, x):
if x == '__members__':
return ('method1', 'field1', )
--
Maksim Kasimov
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Maksim Kasimov:
>> how to improve the situation depends on what do you expect to get by calling
>> "T().method()"
>
> You are right, sorry for being cryptic. I think that's a kind of bug of
> Python (produced maybe by an inf
f __getattr__(self, attr):
>raise SystemExit, "Don't call me, again, ever"
>
> f = Foo()
> f.method() #dies correctly
> dir(f) #continues happily
can't understand - what kind of problem you tried to fix in that way?
if __getattr__ just raise some exception, it
o clumsy. Is there a way to delete/add messages to
> mailboxes of different users, directly?
>
> Thanks,
>
> Laci 2.0
>
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Andy Leszczynski wrote:
> I have a program which is going to dynamicly load components from some
> arbitrary defined paths. How to do that?
>
> A.
import sys
sys.path.append('/yourpath/libs')
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.pytho
n periods
range?
something like xrange:
>>> a = xrange(1,5)
>>> b = 3
>>> if b in a:
... print "OK"
thanks
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
right", "credits" or "license" for more information.
>>> import time
>>> time.strptime("2005-06-07 21:00:00", "%Y-%m-%d %H:%M:%S")
(2005, 6, 7, 21, 0, 0, 6, 1, 0)
>>> time.localtime()
(2005, 6, 7, 21, 2, 39, 1, 158, 1)
>>
;%Y-%m-%d %H:%M:%S %Z")
> (2005, 6, 7, 15, 7, 12, 1, 158, 1)
does not work at all: "ValueError: format mismatch"
i've check the value of time.tzname:
('EET', 'EEST')
and get the following (again):
>>> time.strptime("2005-06-07 15:07:12 EE
TECTED]:~ $ python
> ** Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
> ** [GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
> ** Type "help", "copyright", "credits" or "license" for more
> information.
> ** >>> import time
> ** >>> print time.tzname
> ** ('CET', 'CEST')
> ** >>> time.strptime("2005-06-07 15:07:12 CET", "%Y-%m-%d %H:%M:%S %Z")
> ** (2005, 6, 7, 15, 7, 12, 1, 158, 0)
> ** >>> time.strptime("2005-06-07 15:07:12 CEST", "%Y-%m-%d %H:%M:%S
> %Z")
> ** (2005, 6, 7, 15, 7, 12, 1, 158, 1)
> ** >>>
>
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
information.
> *** >>> import time
> *** >>> print time.tzname
> *** ('W. Europe Standard Time', 'W. Europe Daylight Time')
> *** >>>
>
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
:%M:%S"))
>
> print time.ctime(t)
>
> offset = time.timezone
> if time.daylight:
> offset = time.altzone
> t += offset
> print time.ctime(t)
>
--
Best regards,
Maksim Kasimov
mailto: [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
r than encoding and then splitting,
> it needs to split first and then encode, or take some other measures to
> make sure that it doesn't leave incomplete multibyte sequences at the
> end.
>
> HTH,
>
--
Maksim Kasimov
--
http://mail.python.org/mailman/listinfo/python-list
ent can not be converted to unicode until reciever
program will get all parts of the utf-string from sender.
the xml in iMessage is absolutely correct. Please read my previous posts.
thanks.
--
Maksim Kasimov
--
http://mail.python.org/mailman/listinfo/python-list
me on a contradiction in my message. Isn't it.
Try to browse any file with garbage with "xml" extension.
If you do, then you will see error message of XML-parser.
I insist - my message is correct and not contradicts no any point of w3.org
xml-specification.
--
Maksim Kasimov
--
http://mail.python.org/mailman/listinfo/python-list
i know it :))
can you propose something to solve it? ;)
--
Maksim Kasimov
--
http://mail.python.org/mailman/listinfo/python-list
uot;ISO-8859-1"
(but using the lib it is another problem: to recode/retest/redoc/re* a lot of
things)
the project homepage: http://www.garshol.priv.no/download/software/xmlproc/
and another thing: I've open my xml-message in Mozilla again,
in pop-up menu select "Pag
properly way, but IMHO it looks
like a bug.
My question is how to avoid the "iSourseTag" changes while iterate its nodes?
And, of course, how to append all child nodes to "iTargetTag"?
Thank for any help.
--
Maksim Kasimov
--
http://mail.python.org/mailman/listinfo/python-list
;anyattribute" is not actually defined in the module, but gives some attribute
of the module
so my question is: how to tune up a module get default attribute if we try to
get access to not actually exists attribute of a module?
(python 2.4 or 2.2)
many thanks for help.
--
Maksim Kasimov
Hi Leif, many thanks - it works
Leif K-Brooks wrote:
> Maksim Kasimov wrote:
>> so my question is: how to tune up a module get default attribute if we
>> try to get access to not actually exists attribute of a module?
>
> You could wrap it in an object, but that's a
47 matches
Mail list logo