Sorry for spamming this is suppose send to tutor-ow...@python.org
On Thu, Aug 1, 2019 at 5:08 PM Sinardy Xing wrote:
> Hi,
>
> I am learning to create python logging.
>
> My goal is to create a logging module where I can use as decorator in my
> main app
>
> follo
Hi,
I am learning to create python logging.
My goal is to create a logging module where I can use as decorator in my
main app
following is the logging code
start here---
import logging
#DEBUG: Detailed information, typically of interest only when
diagnosing problems.
#INFO :
Thanks for the info. I found two copies of pip.exe. One of them was left
from a previous installation.
Removed the extra copy. Now pip is working.
Thank you very much for your help.
On Thu, Jan 11, 2018 at 10:46 AM, Harriett Xing <harriettxing2...@gmail.com>
wrote:
> Thanks for
) using which give the error. Also, please confirm that you
> get the same errors if you're in a different (empty) directory -
> sometimes what's in the current directory can mess things up.
>
> Paul
>
>
> On 11 January 2018 at 14:39, Harriett Xing <harriettxing2...@gmail.c
I am getting the message:
Fatal error in launcher: Unable to create process using '"'
for all pip commands.
I tried uninstalling and installing different versions of python, but the pip
is still not work, getting the same error message.
Has anyone encountered this? Any ideas? Thanks.
--
I am getting the message:
Fatal error in launcher: Unable to create process using '"'
for all pip commands.
I tried uninstalling and installing different versions of python, but the pip
is still not work, getting the same error message.
Has anyone encountered this? Any ideas? Thanks.
--
New submission from sk xing:
The setdefault method of the tuple allows the introduction of custom data
types.At this point, the __repr__ method is implemented so that the returned
data type has an error.The type of str is returned, but the int type is written
to the tuple.Also, write str
Dear list members,
I am a newcomer in the world of Python. But I am attracted by Python's
power in handling text! Now I apply it to handle Chinese but the Chinese
character cann't be displayed on the screen. What displayed on the screen is
the 16bits codes. I am so puzzled! I believe
in
the background
* Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yi Xing wrote:
Hi,
I met the following error when I tried to install MySQLdb. I had no
problem installing numarray, Numeric, Rpy, etc. Does anyone know
what's the problem? Thanks!
running install
running
I used the array module and loaded all the data into an array.
Everything works fine now.
On Aug 14, 2006, at 4:01 PM, John Machin wrote:
Yi Xing wrote:
Thanks! I just found that that I have no problem with
x=[[10.0]*2560*2560]*500, but x=range(1*2560*2560*30) doesn't work.
range(1*2560
Hi,
I met the following error when I tried to install MySQLdb. I had no
problem installing numarray, Numeric, Rpy, etc. Does anyone know
what's the problem? Thanks!
running install
running build
running build_py
creating build
creating build/lib.darwin-7.9.0-Power_Macintosh-2.4
copying
Hi,
I need to read a large amount of data into a list. So I am trying to
see if I'll have any memory problem. When I do
x=range(2700*2700*3) I got the following message:
Traceback (most recent call last):
File stdin, line 1, in ?
MemoryError
Any way to get around this problem? I have a
I tried the following code:
i=0
n=2600*2600*30
a=array.array(f)
while (i=n):
.. i=i+1
.. a.append(float(i))
..
Traceback (most recent call last):
File stdin, line 3, in ?
MemoryError
to see the size of the array at the time of memory error:
len(a)
8539248.
I use Windows XP x64
On a related question: how do I initialize a list or an array with a
pre-specified number of elements, something like
int p[100] in C? I can do append() for 100 times but this looks silly...
Thanks.
Yi Xing
--
http://mail.python.org/mailman/listinfo/python-list
Thanks! I just found that that I have no problem with
x=[[10.0]*2560*2560]*500, but x=range(1*2560*2560*30) doesn't work.
-Yi
On Aug 14, 2006, at 3:08 PM, Larry Bates wrote:
Yi Xing wrote:
On a related question: how do I initialize a list or an array with a
pre-specified number of elements
Is there a way that I can define a two-dimensional array in
array.array()? Thanks.
On Aug 14, 2006, at 2:28 PM, John Machin wrote:
Yi Xing wrote:
I tried the following code:
i=0
n=2600*2600*30
a=array.array(f)
while (i=n):
.. i=i+1
.. a.append(float(i))
Not a good idea
Hi,
I need to read specific lines of huge text files. Each time, I know
exactly which line(s) I want to read. readlines() or readline() in a
loop is just too slow. Since different lines have different size, I
cannot use seek(). So I am thinking of building an index for the file
for fast
Hi All,
I want to read specific lines of a huge txt file (I know the line #).
Each line might have different sizes. Is there a convenient and fast
way of doing this in Python? Thanks.
Yi Xing
--
http://mail.python.org/mailman/listinfo/python-list
18 matches
Mail list logo