make any suggestions?
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
--
Best Regards,
Leo Jay
--
https://mail.python.org/mailman/listinfo/python-list
I encountered several years ago.
https://mail.python.org/pipermail/python-dev/2011-December/115071.html
--
Best Regards,
Leo Jay
--
https://mail.python.org/mailman/listinfo/python-list
, line 454, in prepare
assert main_name not in sys.modules, main_name
AssertionError: __main__
It seems that the situation described here is similar:
http://bugs.python.org/issue10128
But the patch doesn't work for me.
Anybody knows how to fix this?
Thanks.
--
Best Regards,
Leo Jay
--
http
Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I'd like to know how do you guys find out what's happening in your
code if the process seems not work.
In java, I will use jstack pid to check stacks of threads and lock status.
But I don't know how to do it in python.
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo
?
Thanks.
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
and subfolders of Python are all installed into a single
folder, for example C:\Python26, and none into the system folder or
other places, if you are worried about that.
I don't think so. At least, the pythonXX.dll will be put in C:\windows\system32.
--
Best Regards,
Leo Jay
--
http
Any special reasons?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
cross-platform. However, it would seem
that not all platforms support %e
-tkc
[1]
http://docs.python.org/library/datetime.html#module-datetime
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
passes = 6.00515
This machine benchmarks at 83261.8 pystones/second
I tried many times, and get the same result.
Why optimization mode is slower than normal mode?
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
a library for this. Note that I'll be using Python 3.0.
You can get Wget for Windows here:
http://gnuwin32.sourceforge.net/packages/wget.htm
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
': 'a', '2': 'b'}
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
,r,s,t,u,v,w,x,y,z'
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
in advance.
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Aug 23, 2008 at 1:58 AM, Jean-Paul Calderone [EMAIL PROTECTED] wrote:
On Sat, 23 Aug 2008 01:47:23 +0800, Leo Jay [EMAIL PROTECTED] wrote:
I'd like to read and write the same socket in different threads.
one thread is only used to read from the socket, and the other is only
used
to stop iterating right?
you can use for loop:
for line in movie_iter:
...
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
object cache mechanism.
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
, this is not the same with len(f.read()) in windows.
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
, mailing lists, or web
boards you can recommend.
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
On 4/30/07, Leo Jay [EMAIL PROTECTED] wrote:
i have a development board based on s3c2410 arm cpu. and i want to
port python on it.
after googling some threads, i successfully cross compiled python.
but i still encountered a weird issue that when i ran
/lib/python2.5/test/testall.py
i want to compile a python by myself, but after configure and make, it
seems that md5 is not built by default.
what should i do to compile md5 as an module?
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
)
asyncore.loop()
s.join()
but the weirdest thing is, if i run python test_asynchat.py directly,
everything is ok.
anybody could help me?
thanks in advance.
ps, my linux box is an ubuntu 6.10.
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
= datetime.now()
print server.test()
print server.test()
print server.test()
print server.test()
print 'total: ', datetime.now() - start
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
)
print foo2(3)
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
.
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
I want to split a string like this:
'abc def this is a test ok'
into:
['abc', 'def', 'this is a test', 'ok']
is there any lib meet my need?
thanks
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
now?
i tried to import wx in python, but python just returned an error:
Traceback (most recent call last):
File stdin, line 1, in ?
ImportError: No module named wx
Anyone can help me, please?
Thanks
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
wxpython.
i'm just a rookie that i have no idea about how to handle these errors.
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
Dear All,
I lost my source code because of my incaution.
so anyone can tell me how to decompile the exe file compiled by py2exe?
Thanks.
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
be decompilable to something resembling
original python code by a python decompiler (quick Googling finds
decompyle: http://www.crazy-compilers.com/).
--
http://mail.python.org/mailman/listinfo/python-list
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
/python-list
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
you may use the decimal module which was introduced in Python2.4
from decimal import *
li = [Decimal(.25), Decimal(.10), Decimal(.05), Decimal(.01)]
print li
[Decimal(0.25), Decimal(0.10), Decimal(0.05), Decimal(0.01)]
--
http://mail.python.org/mailman/listinfo/python-list
IMO, python should use the decimal for default.
.25 is right for Decimal(.25).
isn't that better?
--
http://mail.python.org/mailman/listinfo/python-list
when i use POP3.retr() in poplib module, the retr() function will not
return until the receiving progress is finished
so, is there any way to get the rate of receiving progress?
Thanks
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
35 matches
Mail list logo