Does anyone use Python Tools for visual studio?

2011-11-01 Thread Wei
I got several buggy things going on. First, the view of class tree stops expanding after creating more than two classes. Second, after 800 lines of code the classes and methods can't be folded. (meaning the + sign is gone) P.S. there is no warning or errors in my code. -- http://mail.python.org/ma

Re: Does anyone use Python Tools for visual studio?

2011-11-01 Thread Wei
On Nov 1, 12:57 pm, Wei wrote: > I got several buggy things going on. > First, the view of class tree stops expanding after creating more than > two classes. > Second, after 800 lines of code the classes and methods can't be > folded. (meaning the + sign is gone) > P.S.

Re: Is this PEP-able? fwhile

2013-06-24 Thread wu wei
On Tue, Jun 25, 2013 at 10:19 AM, Fábio Santos wrote: > for X in (i for i in open('largefile') if is_part_of_header(i)): > > The above code would be wasting time on IO and processing. It would load > another line and calculate the condition for every line of the large file > and I just wanted to

Re: Re: Objects in Python

2012-08-24 Thread wu wei
On Fri, Aug 24, 2012 at 7:14 PM, Evan Driscoll wrote: > On 8/23/2012 22:17, alex23 wrote: > > But Roy's point was that referring to 'a' as a 'variable' makes no > > sense, as it's not an allocated piece of memory. > > Does the computer just remember what 'a' refers to by keeping notes > about it

Re: Python 2.7 Debian 6.0. Squeeze

2011-05-12 Thread Chen Wei
ting main contrib non-free > $ apt-get update > $ apt-get install python2.7 > $ python --version > Python 2.6.6 > $ python2.7 --version > Python 2.7.1+ > -- Chen Wei -- http://mail.python.org/mailman/listinfo/python-list

how to apply "mvc" pattern to gui-design in python

2005-03-28 Thread Su Wei
i have a project want to develop with python. who can tell me that how to apply "mvc" pattern to gui-design in python. please give me some advices! ths in advanced. -- 蓦然回首曾经岁月, 朦胧中依稀闪烁着清晰。 才发现, 原来在我的记忆深处, 还残留着宁静而又幸福的瞬间。 一世风流已飘过,转眼渐成白头翁。 -- http://mail.python.org/mailman/listinfo/python-list

why and when we should do it?

2005-03-29 Thread Su Wei
hi,everybody,Sorry to bother you. i hvae seen some code like this before: class BusinessBO : dev __init__(slef): #write you own code here dev businessMethod : #write you own code here pass why and when we should add the keyword "pass" ? and some time i have seen class S

Can Python do Perl's print <

2006-08-23 Thread yichun . wei
Perl has the ability to do the following: print

Fwd: Checking a string against multiple matches

2008-12-03 Thread wu wei
Sorry to hassle the list with this but I'm getting irregular spam from this asshole, clearly triggered by comp.lang.python posts being resent to the python-list. I've contacted Yahoo abuse -and- the list administrators but its still occurring. Is anyone able to remove this guy from the list? I've

A question about funcation parameter and self defined object

2008-10-08 Thread Wei Guo
p me how to turn the traV as type of vec3() instead of NoneType object? Thanks a lot, Wei -- http://mail.python.org/mailman/listinfo/python-list

Re: A question about funcation parameter and self defined object

2008-10-08 Thread Wei Guo
Hi Chris, Thanks a lot for reply, you are right. I want to use this method as a static method as: translation = staticmethod( translation ) I think that here the built in function pass None. So we can not pass any self defined object for static method? Best regards, Wei On Wed, Oct 8, 2008

Re: A question about funcation parameter and self defined object

2008-10-09 Thread Wei Guo
Hi Terry, Thanks for your reply. But the reason I want to have that is for not changing the functions which already based on translation functions. If there is any idea how to bring parameter in static method, that will be great. Wei On Wed, Oct 8, 2008 at 8:24 PM, Terry Reedy <[EMAIL PROTEC

Question about optimization

2008-07-24 Thread Wei Hao
is it in the code snippet that slows down as n increases? Is there something about the way low level python functions I don't understand which is slowing me down? Thanks in advance for your time. -Wei -- http://mail.python.org/mailman/listinfo/python-list

A question about string and float number

2008-08-06 Thread Wei Guo
work. float() will throw an exception and I just need true or false as result. Thanks a lot in advance, Wei -- http://mail.python.org/mailman/listinfo/python-list

Re: A question about string and float number

2008-08-07 Thread Wei Guo
Btw, which way is better? type or with exception ValueError? Thanks, Wei On 8/6/08, Tyler Breisacher <[EMAIL PROTECTED]> wrote: > > It's generally a bad idea to use "except" without naming a specific > exception. The exception you might expect in this case is ValueE

Re: A question about string and float number

2008-08-07 Thread Wei Guo
Hi I tried the first type method but it seens that it doesn't work. Could anyone help me about it? >>> s = '3.145' >>> type(s) == type(float()) False >>> type(s) >>> type(float()) >>> Best regards, Wei On 8/7/08, Wei Guo <[EM

Re: A question about string and float number

2008-08-07 Thread Wei Guo
Hi Grant, I am using the try/exception and just curious why function type doesn't work. Best regards, Wei On 8/7/08, Timothy Grant <[EMAIL PROTECTED]> wrote: > > That's because s IS a string. It's not been converted to a float. > > In [1]: s = '3.1415&#x

Re: Jython

2006-03-11 Thread Wei Zhuo
jython2.2 is under developing, you can download the alpha version in sourceforge.2006/3/12, rtilley <[EMAIL PROTECTED]>: Is development still going on with Jython? Version 2.1 came out in 2001and it's still the most current stable release.Thanks!--http://mail.python.org/mailman/listinfo/python-list

Re: print line number and source filename

2010-11-22 Thread Wei Sun
Here is what you want for printing python source filename: print __file__ > On Tuesday, June 22, 2010 12:44 PM Peng Yu wrote: > I want to print filename and line number for debugging purpose. So far > I only find how to print the line number but not how to print > filename. > > import inspect >

GUI(eclipse+pydev/SPE) freeze when doing python auto-completion under Linux

2009-06-17 Thread Wei, James
When I am editing python program with SPE, I found that SPE will freeze when it is doing auto-completion. The behavior is very strange that I can not edit the file again. If I switch to another file and then switch back, I can edit it again. So I switch to eclipse+pydev, but I found the same thing

Re: GUI(eclipse+pydev/SPE) freeze when doing python auto-completion under Linux

2009-06-17 Thread Wei, James
On Jun 18, 10:45 am, "Wei, James" wrote: > When I am editing python program with SPE, I found that SPE will > freeze when it is doing auto-completion. The behavior is very strange > that I can not edit the file again. If I switch to another file and > then switch back, I can

Re: GUI(eclipse+pydev/SPE) freeze when doing python auto-completion under Linux

2009-06-17 Thread Wei, Xiaohai
n be taken for this file unless I switch to other files and then switch back. On Thu, Jun 18, 2009 at 10:57 AM, Tyler Laing wrote: > Do you experience the same problem even on an empty program file or is it > limited to just one file? > > -Tyler > > On Wed, Jun 17, 2009 at 7:47 PM

Re: GUI(eclipse+pydev/SPE) freeze when doing python auto-completion under Linux

2009-06-18 Thread Wei, Xiaohai
gt; >> Do you experience the same problem even on an empty program file or is > it > >> limited to just one file? > >> > >> -Tyler > >> > >> On Wed, Jun 17, 2009 at 7:47 PM, Wei, James wrote: > >>> > >>> On Jun 18, 10:45 a

Strange problem when using re module with threads

2007-11-01 Thread Wei Lee Woon
un it from the python interactive shell using "import test", it freezes up (if i don't issue the join() it is fine, though). Any ideas why this is so? Thanks Wei Lee -- http://mail.python.org/mailman/listinfo/python-list

ModuleNotFoundError: No module named 'Paramiko'

2024-04-08 Thread Wenyong Wei via Python-list
Dear Sir/Madam, Recently I encounter a problem that I can't import paramiko in my computer. My PC running on window 10 64 bits. I have investigate this issue via internet, there are a lot of solutions for this issue, after trying most of the steps, I still can't run this module, the major ste

Re: ModuleNotFoundError: No module named 'Paramiko'

2024-04-09 Thread Wenyong Wei via Python-list
hi Sravan, Thanks for your response, checked and found there is only one python in my PC. From: Sravan Kumar Chitikesi Sent: Tuesday, 9 April 2024 3:42 AM To: Wenyong Wei Cc: python-list@python.org Subject: Re: ModuleNotFoundError: No module named 'Par