Re: Issuing a sqilte query, picking a random result, and copying to the system clipboard

2015-06-23 Thread Felix Yan
on MacOS. Or you may want an existing library for all these. For example, pyperclip: >>> import pyperclip >>> pyperclip.copy('The text to be copied to the clipboard.') FYI: https://pypi.python.org/pypi/pyperclip -- Regards, Felix Yan signature.asc Description: Ope

Re: Thread._stop() behavior changed in Python 3.4

2014-03-17 Thread Felix Yan
g, though. In any case, if it's just a tests problem, you should > theoretically be able to ignore it. > > ChrisA I was just trying to comment and see yours... Thanks a lot! :D Regards, Felix Yan signature.asc Description: This is a digitally signed message part. -- https://mail.python.org/mailman/listinfo/python-list

Re: Thread._stop() behavior changed in Python 3.4

2014-03-17 Thread Felix Yan
On Monday, March 17, 2014 17:33:09 Antoine Pitrou wrote: > Hi, > > Felix Yan gmail.com> writes: > > A minimized snippet to reproduce: > > > > #!/usr/bin/python > > import threading > > > > def stale(): > > import time > >

Thread._stop() behavior changed in Python 3.4

2014-03-17 Thread Felix Yan
re's an easy way to get broken programs to work again, just in the way they currently are? Downstream bug reports, for reference: http://youtrack.jetbrains.com/issue/PY-12317 https://github.com/paramiko/paramiko/issues/286 Regards, Felix Yan signature.asc Description: This is a digit

Re: Diagnose a segfault in ipython/readline

2014-03-05 Thread Felix Yan
gh though. Also we reported the problem on readline mailing list first, so if they end up thinking there's something that python need to fix, I'll open a bug on the Python bug tracker. Thanks again! Regards, Felix Yan signature.asc Description: This is a digitally signed mess

Diagnose a segfault in ipython/readline

2014-03-05 Thread Felix Yan
;), don't press Enter - press "Up", followed by any key Backtrace pasted here: https://paste.xinu.at/cg7/ Downstream bug report on Arch Linux: https://bugs.archlinux.org/task/39144 Any help would be really appreciated! Regards, Felix Yan signature.asc Description: This is a digitally

Re: Fetching data from a HTML file

2012-03-23 Thread Simon Yan
uld come up with. Any suggestions are welcome! > Sangeet, I think Python comes with its own HTML parser. Can you have a look at this http://docs.python.org/library/htmlparser.html and see if it helps? > > Thanks, > Sangeet > -- > http://mail.python.org/mailman/listinfo/python-

New learner of Python--any suggestion on studying it?

2012-03-18 Thread yan xianming
Hello all, I'm a new learning of Python. Can someone give me some suggestion about it? thanks xianming -- http://mail.python.org/mailman/listinfo/python-list

root[:]=[root,root]

2011-12-16 Thread YAN HUA
Hi,all. Could anybody tell how this code works? >>> root = [None, None] >>> root[:] = [root, root] >>> root [[...], [...]] >>> root[0] [[...], [...]] >>> root[0][0][1][1][0][0][0][1][1] [[...], [...]] >>> Thanks. -- http://mail.python.org/mailman/listinfo/python-list

import newer

2011-03-19 Thread xinyou yan
I begin to study with <> I met a problem with import. first I creat a file hello.py then in fedora /14 I type python to the interpreter >>> import hello Traceback (most recent call last): File "", line 1, in ImportError: No module named hello What should i do now. The current path is n

Unable to decode file written by C++ wostringstream

2010-12-23 Thread Yan Cheng CHEOK
nloaded from a web browser. (http://i.imgur.com/l39Lc.png) Is there anything I had missed out? Thanks and Regards Yan Cheng CHEOK -- http://mail.python.org/mailman/listinfo/python-list

$Wholesale Sports Shoes Clear Air Force One AAA++quality

2010-05-30 Thread yan
$Wholesale Sports Shoes Clear Air Force One AAA++quality please kindly visite our website: http://www.8000trade.com supply sports shoes. The brand Sports shoes basketball shoes, Boot, walling shoes, Athletic shoes, Jogging shoes, running shoes, leather shoes, football, shoe sports shoe Footwear Sne

Hi everyone, I get a problem when using binhex module

2009-08-20 Thread Yan Jian
Below is what I copy from the Internet: import binhex import sys infile = "in.txt" binhex.binhex(infile, sys.stdout) Every time I try to run this script, I get a message saying Traceback (most recent call last): File "D:\eclipse_workspace\encode\src\binhex.sample.py", line 6, in import

Re: problem with regex, how to conclude more than one character

2008-11-06 Thread Charles Yan
Really thanks for quickly reply Chris! Actually I tried BeautifulSoup and it's great. But I'm not very familiar with it and it need more codes to parse the html and get the right text. I think regexp is more convenient if there is a way to filter out the list just in one line:) I did this all the w

Re: how to change current working directory while using pdb within emacs

2007-11-26 Thread du yan ning
On Nov 21, 1:28 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > duyanningwrote: > > I have written a pyhton script that will process data file in current > > working directory. > > My script is in an different directory to data file. > > When I debug this script using pdb within emacs, emacs wi

any problem with py's RC?

2007-08-24 Thread Yan Zhu
hi all, Here is 3 PYs, we found there is a big memory wasting, specially the program c.py, we found the memory will increase very soon. any body knows why? any RC's problem? thanks -- eSX class a(): def __init__(self): fp = open("a_file_lager_1M","rb") self

Re: how to move cursor in Interactive Interpreter

2007-08-14 Thread yan . python
On 8 14 , 9 20 , Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > what am i supposed to do to install the module GNU readline correctly > > then? > > by the way,my linux is Mandriva 10 > > Use the package manager of your distribution to install the readline > development pac

Re: how to move cursor in Interactive Interpreter

2007-08-14 Thread yan . python
On 8 14 , 2 44 , Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > i have a question. > > when i run Interactive Interpreter in linux command promt,how can i > > move the cursor. > > for example,when i enter a string,i often enter the quotation mark "" > > first,and the move

how to move cursor in Interactive Interpreter

2007-08-13 Thread yan . python
i have a question. when i run Interactive Interpreter in linux command promt,how can i move the cursor. for example,when i enter a string,i often enter the quotation mark "" first,and the move the cursor inside the mark to enter the string,in windows,it is ok.but when i do that in linux,pressing t