Re: Hello

2015-12-11 Thread Seung Kim
See message below. On Fri, Dec 11, 2015 at 1:13 PM, Seung Kim wrote: > I would like to have Python 3.5.1 MSI installer files for both 32-bit and > 64-bit so that I can deploy the software on managed computers on campus. > > When I ran the silent install command line on python-3.

Re: Plotting the integer-and-fraction remainder of a function value modulo 360

2014-04-09 Thread Kim Plofker
eed a Sage-specific problem rather than something I could work around in Python? Many thanks again for any help. Kim From: Ben Finney To: python-list@python.org Sent: Thursday, April 10, 2014 12:54 AM Subject: Re: Plotting the integer-and-fraction remainder of a f

Re: Plotting the integer-and-fraction remainder of a function value modulo 360

2014-04-09 Thread Kim Plofker
sion.Expression' and 'sage.symbolic.expression.Expression' So it looks like I've got a Sage-specific problem.  I still don't know how to fix it, but at least I understand the problem better!   Many thanks, Kim From: Steven D'Aprano To: python-li

Plotting the integer-and-fraction remainder of a function value modulo 360

2014-04-09 Thread Kim Plofker
get a "cannot evaluate symbolic expression numerically" TypeError. How do I do this? There must be a simple way to tell Python that I want it to compute the value of Longitude for a given value of t and then take the integer-and-fraction remainder from dividing by 360. Many thank

Re: A Plausible Promise of Abundant Educational Resources

2012-03-12 Thread Calvin Kim
Google search for slidespeech returns with a warning, "This site may harm your computer." -- http://mail.python.org/mailman/listinfo/python-list

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-06 Thread Calvin Kim
On 03/06/2012 01:34 AM, Xah Lee wrote: while what you said is true, but the problem is that 99.99% of programers do NOT know this. They do not know Mathematica. They've never seen a language with such feature. The concept is alien. This is what i'd like to point out and spread awareness. I can s

LZO decompressing with Python 2.5x on Windows for C dummies

2010-09-07 Thread Kim Hansen
import lzo? and then tab on lzo. and see what is available? Sorry for the long post. Kind regards, Kim -- http://mail.python.org/mailman/listinfo/python-list

how to save a modified .xml back

2009-12-25 Thread Hyunchul Kim
Hi all, I want to load a small .xml file, modifiy some nodes and save the .xml with modifications to another .xml file. I managed to load and modify a small .xml file using xml.dom.minidom and xml.dom.pulldom. However, I don't know how to save it back using any of two modules. Any suggestion?

Re: faster than list.extend()

2009-11-17 Thread Hyunchul Kim
r = range(3) return [x for x in i for _ in r] I didn't know that list(t2(inputlist)) is much faster than t2_1(inputlist), it's gonna be a helpful tip for me. Thank you all. Hyunchul On Tue, Nov 17, 2009 at 7:55 AM, Tim Chase wrote: > Hyunchul Kim wrote: > >> Hi, all. &g

faster than list.extend()

2009-11-16 Thread Hyunchul Kim
Hi, all. I want to improve speed of following simple function. Any suggestion? ** def triple(inputlist): results = [] for x in inputlist: results.extend([x,x,x]) return results ** Thank you in advance, Hyunchul -- http://mail.python.org/mailman/listinfo/python-list

sequential multiple processes

2009-10-24 Thread Hyunchul Kim
Hi, all How to run multiple processes with sequential input of a thousand of data in a script run? I have a python script and 1,000 independent input data for it. Previously, I divided input data into* n* groups and ran a same python script *n* times to use *n* processors. It's inconvenient. Ho

speed of string chunks file parsing

2009-04-06 Thread Hyunchul Kim
Hi, all I have a simple script. Can you improve algorithm of following 10 line script, with a view point of speed ? Following script do exactly what I want but I want to improve the speed. This parse a file and accumulate lines till a line match a given regular expression. Then, when a line m

Re: how to convert from Decimal('1.23456789') to Decimal('1.234')

2009-03-23 Thread Hyunchul Kim
In that case, I usually use # when rounding is proper, s = '1.23456789' print round(float(s)) or # when cut out is proper, from math import floor print floor(float(s)*1000)/1000 Hyunchul valpa wrote: I only need the 3 digits after '.' Is there any way other than converting from/to string? -

Re: unbiased benchmark

2009-03-12 Thread Hyunchul Kim
In the system that I tested, results were different. * System was CPU: AMD Phenom(tm) 9950 Quad-Core Processor, Frequency 2600MHz, L2 cache 512KB Memory 3164MB OS: Ubuntu 8.10 When I tried this benchmark for the first time, i...@pc:~$ time python bench.py real0m0.010s user

Re: how to find all completely connected sub-graphs?

2009-03-02 Thread Hyunchul Kim
Dear Odeits, Yes, I meant directly connected to each other. Thanks. Hyunchul odeits wrote: On Mar 2, 10:35 pm, Hyunchul Kim wrote: Hi, all, How can I find all "completely connected subgraphs" in a graph when node and edge data are available? "completely connected subgr

how to find all completely connected sub-graphs?

2009-03-02 Thread Hyunchul Kim
Hi, all, How can I find all "completely connected subgraphs" in a graph when node and edge data are available? "completely connected subgraph" is a group, all members of which are connected to each other. Thanks, Hyunchul -- http://mail.python.org/mailman/listinfo/python-list

Re: sum up numbers in a list

2008-08-26 Thread sharon kim
brilliant, thank you both of you, i will try that out later. :) On Wed, Aug 27, 2008 at 1:34 AM, c james <[EMAIL PROTECTED]> wrote: > >>> L=['10','15','20'] > >>> sum(int(x) for x in L) > 45 > > or > >>> sum(map(i

sum up numbers in a list

2008-08-26 Thread sharon kim
hi all, i have a list, for example; >>> L=[] >>> L.append('10') >>> L.append('15') >>> L.append('20') >>> len(L) 3 >>> print L ['10', '15', '20'] is there a way to sum up all the numbers in a list? the number of objects in the list is vary, around 50 to 60. all objects are 1 to 3 digit positive

Date type in win32com?

2008-08-26 Thread Haeyoung Kim
Hi. I'm migrating a VBScript into python. How should I convert Date type parameter in VBScript's COM interface with win32com? I couldn't find any answer yet... Thank you in advance. -- http://mail.python.org/mailman/listinfo/python-list

How to import C++ static library?

2008-04-15 Thread Alexander Dong Back Kim
Hi all, I'm very very beginner of python but I'm dare to ask this question straight away. =P Is it possible to import C++ static library compiled by GCC? The target is definitely Linux machine. I found some examples from Google showing the way C++ can import Python so called embedded python. But

Re: Creating a python c-module: passing double arrays to c functions. segmentation fault. swig

2008-03-31 Thread kim
ode, everything works out just fine (x[]={0.1,0.1,... }...) so it may still have something to do with the python-c interface and memory allocation or something like that. below i put my new shorter python script, the c and the rest hasn't changed. what can i try now? thanks again kim i

How to decompress .Z file?

2007-08-20 Thread Hyunchul Kim
Hi, all How can .Z file be decompressed? According to python library reference, .Z file might not be supported by python, yet. Best, Hyunchul Kim -- http://mail.python.org/mailman/listinfo/python-list

[python-list] pdf read & write

2007-07-27 Thread Hyunchul Kim
store tag information to additional file outside pdf file. Any suggestion are welcome. Best, Hyunchul Kim -- http://mail.python.org/mailman/listinfo/python-list

[python-list] pdf read & write

2007-07-27 Thread Hyunchul Kim
store tag information to additional file outside pdf file. Any suggestion are welcome. Best, Hyunchul Kim -- http://mail.python.org/mailman/listinfo/python-list

Re: Try to porting Python2.5 to Zaurus

2007-01-23 Thread Sang Kim
Glad to see another Zaurus lovin' Pythonite. ;-) and also thanks to you -- http://mail.python.org/mailman/listinfo/python-list

Marshaled input / output from Perforce server

2006-09-12 Thread Kim Bendtsen
on the net describing it. I would very much appreciate if anyone could provide a simple example, or a secret link or smth. And if there is any documentation on the specific API that is availble when using the marshaled input, could you please provide give a link. Thx in advance. Kim B.

Random news downloader (first script!)

2006-09-07 Thread Kim
Random image downloader for specified newsgroup. Hi I'm writing a small script that will download random images from a specified newsgroup. I've imported yenc into the script but I can't open the image or save it. This is my first script so be gentle! Heres the script random group downloa

Random image downloader for newsgroups (first script)

2006-09-07 Thread Kim
Random image downloader for specified newsgroup. Hi I'm writing a small script that will download random images from a specified newsgroup. I've imported yenc into the script but I can't open the image or save it. This is my first script so be gentle! Heres the script random group downloa

output question 1

2005-11-10 Thread leewang kim
I wrote the following code and got the output:a 13 0Noneb 81 3Nonec 8 2Noned 9 2Nonee 1 1Nonewhere are those 'none' from? and how can I remove them? class Point:    def __init__(self,x,y,name):    self.x = x    self.y = y    self.name = name    def summary(self):    print self.name

unable to import os

2005-10-10 Thread Kim Nguyen
Fredrik Lundh,I replaced mtime = os.stat(Path + file_name)[os.path.stat.ST_MTIME] with  mtime = nt.stat("q.py") per your suggested, then ran it from IDLE 2.4.2. Here is the message I got, Traceback (most recent call last):   File "C:\Documents and Settings\nguyeki\Desktop\Oct7", line 37, in -topl

Re: Considering moving from PowerBuilder to Python

2005-09-01 Thread James (Sungjin) Kim
malv wrote: > As of late, I installed eric3 on linux Suse 9.3 and was happily > surprised to find out that I didn't have to bother with installing Qt, > PyQt, etc. FYI, I installed eric3 on Windows XP. It is one of the nice IDE environments for Python. If I must say some bad point of it, I want t

Re: Considering moving from PowerBuilder to Python

2005-08-31 Thread James Sungjin Kim
Norm Goertzen wrote: > I'm really only interested in programming for Windows XP. It is warned that the sequal is not directly related to the your question. However, hope that it helps your decision to move from the old stuff to the new stuff. The thing is that as you decideded to change your

Re: Doubt C and Python

2005-08-28 Thread James Kim
Wouter van Ooijen (www.voti.nl) wrote: > I use Python when my time is most valuable (in most cases it is), in > the very few cases the computer's time is more valuable I write in > C/C++. In cases when the computer's time is more valuable, why not use CPython with C/C++ API? Only most time consum

Re: Doubt C and Python

2005-08-28 Thread James Kim
Jeff Schwab wrote: > 5. Scripting is easier in Python than in Java, particularly with > regard to environment variables and process control. > > Of course, these are only my opinions. I am particularly not an expert > on Python or Java. Note that for Java experts, Jython can be used for in

Re: Well, another try Re: while c = f.read(1)

2005-08-20 Thread James Sungjin Kim
Robert Kern 쓴 글: > > Now go read the documentation. > Thanks to your comments, I read the corresponding helps searched by Google. (Sorry to say a specific search engine here, but I must say that it is really convinient.) Now I realized that Command 'lambda' is a similar to Command 'inline' in

Re: Well, another try Re: while c = f.read(1)

2005-08-20 Thread James Kim
Robert Kern wrote: > http://www.catb.org/~esr/faqs/smart-questions.html Is it a *smart* way or *necessary* way? Plus, my question was not for the detail description but for the intuitive guide leading the beginner's further study. I understand that too many repeated talks make cyberian tired. H

Re: how do i add a new path into sys.path?

2005-08-18 Thread James Sungjin Kim
Steve Holden wrote: > sys.path.append(r"C:\Temp") In this case, do I need to save the refined path, i.e, the original paths + the new path (r"C:\Temp"), by using some command in order to use it permanently. if yes, it would be greatly appreciated to noitce the correspoding command and the usage

Re: GUI tookit for science and education

2005-08-17 Thread James Sungjin Kim
Robert Kern wrote: > ... Once you move outside of that box and start doing real > programming, Python (with Numeric, ipython, matplotlib, scipy, et al.) > beats MATLAB handily. As one who is really newbie on Python, In MATLAB we can represent the codes for the matrix manipulation as really like

Re: GUI tookit for science and education

2005-08-17 Thread James Sungjin Kim
Michele Simionato wrote: > My vote is for ipython + matplotlib. Very easy and very powerful. Is it really easier than to use MATLAB(TM)? -James -- http://mail.python.org/mailman/listinfo/python-list

Need some help to understand Python program..

2005-04-29 Thread Jaeho Kim
Hi,,, I am very interested about the following Python program, but I am very beginner on Python.. I do not understand this algorithm,, I would appreciated if you give me this algorithm to some other popular programming language. filename="Karp.py" from __future__ import nested_scopes impor

distance, angle restraint

2005-03-29 Thread HYUN-CHUL KIM
Hi, all I put more than 10,000 points in a box and then want to get one of many solutions that matches all angle restraints among any 3 points and all distance restraints between any 2 points.   How can I achieve this? Please recommend any packages or appropriate methods. Thanks

What are the required modules for ScientificPython?

2005-03-24 Thread HYUN-CHUL KIM
rror for "multiarray"   Sincerely, Hyun-Chul Kim Biomatics Lab. Department of BiosystemsKorea Advanced Institute of Science and TechnologyYusung-Gu, Taejon 305-333Republic of Korea -- http://mail.python.org/mailman/listinfo/python-list

What are the required modules for ScientificPython?

2005-03-24 Thread HYUN-CHUL KIM
rror for "multiarray"   Sincerely, Hyun-Chul Kim   Biomatics Lab. Department of BiosystemsKorea Advanced Institute of Science and TechnologyYusung-Gu, Taejon 305-333Republic of Korea -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE Problem: win98\Python2.4

2005-02-21 Thread kim kubik
> kim kubik wrote: > > I installed Python2.4 in Win98 > > and IDLE doesn't work > Are you also running Ruby? The Ruby bundle for MS Windows has caused > problems with it's TCL package conflicting with Python's. > thanks, one of the first things I n

IDLE Problem: win98\Python2.4

2005-02-20 Thread kim kubik
alid cmd name "tcl_findLibrary" So I'm stuck. I uninstalled Py2.4, installed Py2.3.5, again same thing . . . IDLE just does not come up with the tcl paths of the standard install. www.python.org gives answer to problems w/IDLE on Py1.5 from 1999 and shows adding tcl\bin to %PATH%. OK

Re: bicyclerepairman python24 windows idle :(

2005-02-04 Thread Kim Changjune
EuGeNe wrote: > Hi there, > > I am no expert but wanted to give bicyclerepairman 0.9 a go just to see > what a refactoring browser is and does. Followed every step of the > install, I think, but idle doesn't start with the RepairMan section in > config-extensions.def ... is it incompatible with 2.