RE: What is the Difference Between quit() and exit() commands in Python?

2019-09-16 Thread wesley
Hi exit (http://docs.python.org/2/library/constants.html#exit"; rel="noreferrer) is an alias for quit (or vice-versa). They exist together simply to make Python more user-friendly. please refer: https://stackoverflow.com/questions/19747371/python-exit-commands-why-so-ma

Sort one sequence by O(n) in time and O(1) in space

2014-02-09 Thread Wesley
appreciated. Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list

Re: Sort one sequence by O(n) in time and O(1) in space

2014-02-09 Thread Wesley
在 2014年2月9日星期日UTC+8下午11时48分17秒,Oscar Benjamin写道: > Please don't top-post. > > On Feb 9, 2014 2:40 PM, "Ni Wesley" wrote: > > > > > > Yes, with no new list, otherwise, space won't to be O(1) > > Did you read the link I posted: > > &g

Re: Sort one sequence by O(n) in time and O(1) in space

2014-02-09 Thread Wesley
> > here is input sequence like a1,a2,...,an,b1,b2,...,bn ,the ax and bx always > > exist in pair. So, now, how to change the sequence to a1,b1,...,an,bn, with > > time complexity as O(n) and space as O(1). > > > > The two halves of the list are already sorted,

Re: Sort one sequence by O(n) in time and O(1) in space

2014-02-09 Thread Wesley
[Wesley] This is not homework:-) And actually I am new to algorithm, so you guys can feel free to say anything you want -- https://mail.python.org/mailman/listinfo/python-list

gdb unable to read python frame information

2014-03-06 Thread Wesley
frame information) #64 (unable to read python frame information) #76 (unable to read python frame information) #88 (unable to read python frame information) #100 (unable to read python frame information) (gdb) py-locals Unable to read information on python frame (gdb) Is there anything wrong? Thanks.

Re: gdb unable to read python frame information

2014-03-07 Thread Wesley
Then, how to make python get debug symbols? Install python from source with some special configure options? -- https://mail.python.org/mailman/listinfo/python-list

Re: gdb unable to read python frame information

2014-03-08 Thread Wesley
python debuginfo is installed... Still,py-bt, py-locals.etc cannot read python frame -- https://mail.python.org/mailman/listinfo/python-list

Re: gdb unable to read python frame information

2014-03-08 Thread Wesley
1. install gdb from source with configure option --with-python 2. install python from source with configure option --with-pydebug 3. Got error in gdb here: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] (gdb) py-bt Undefined command: "py-bt". Try "help". (gdb)

Re: gdb unable to read python frame information

2014-03-08 Thread Wesley
Now I use gdb python -p then, import libpython py-bt is null, py-locals raise here: Unable to locate python frame What's going on... -- https://mail.python.org/mailman/listinfo/python-list

Re: gdb unable to read python frame information

2014-03-08 Thread Wesley
So, let me clarify here, in order to try, I get a clean machine. Centos 6.5 64bit. Now , I try this: 1. install gdb 7.7 from source , with configure option --with-python 2. install python 2.6.6 from source, with configure option --with-pydebug 3. run a python script 4. from command line, gdb py

Re: gdb unable to read python frame information

2014-03-08 Thread Wesley
Anybody has suggestions? This really makes me crazy... -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem using py-bt, py-locals, etc. during GDB debugging [solved]

2014-03-09 Thread Wesley
gdb) py-list Unable to locate python frame (gdb) py-locals Unable to locate python frame (gdb) I use gdb 7.7, python 2.6.6 , centos 6.5 64bit Any suggestion? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list

Re: gdb unable to read python frame information

2014-03-09 Thread Wesley
What's information do you want? I told the OS, gdb and python version. And my operation steps. What do you want more, then, I can type here. Wesley -- https://mail.python.org/mailman/listinfo/python-list

Re: gdb unable to read python frame information

2014-03-09 Thread Wesley
If you don't read the loop from the top, and don't tell me exactly what you want by just keep saying context, please ingore this post. Thanks. Wesley 在 2014年3月10日星期一UTC+8上午9时48分41秒,Mark Lawrence写道: > On 10/03/2014 01:06, Wesley wrote: > > > What's information do you

Re: gdb unable to read python frame information

2014-03-10 Thread Wesley
_64 already installed. Checking for update. Package glibc-debuginfo-2.12-1.132.el6.x86_64 already installed and latest version No debuginfo packages available to install 在 2014年3月10日星期一UTC+8下午3时28分30秒,dieter写道: > Wesley writes: > > > > > If you don't read the loop from the to

Re: gdb unable to read python frame information

2014-03-10 Thread Wesley
Now, I fixed the problem... Instead of python2.6.6, for python 2.7 it's OK.. Why? gdb does not support python 2.6.6? Is it related to python-gdb.py? I googled a lot, seems only has python2.7-gdb.py, no python2.6-gdb.py. 在 2014年3月10日星期一UTC+8下午3时28分30秒,dieter写道: > Wesley

gdb python how to output integer for examine memory

2014-03-24 Thread Wesley
b8 0x201e2b8: 31304528 (gdb) p sizeof(f->f_localsplus[0]) $4 = 8 (gdb) x/dg 0x201e2b8 0x201e2b8: 31304528 (gdb) x/dw 0x201e2b8 0x201e2b8: 31304528 (gdb) So, the latter several commands, I wannted to check memory content, but , how to output integer 1? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list

Re: gdb python how to output integer for examine memory

2014-03-24 Thread Wesley
..but seems I cannot post question at another gdb group. So, post here, since it's also related to python,in case anyone knowns this. Sorry for that. Wesley 在 2014年3月24日星期一UTC+8下午8时22分59秒,Dave Angel写道: > Wesley Wrote in message: > > > Hi all, > > > I am trying

Re: Python developer salary survey - results

2014-03-24 Thread Wesley
在 2014年3月25日星期二UTC+8上午4时57分49秒,victo...@vtenterprise.com写道: > PyStreet's February salary survey attracted respondents from 37 countries. > > > > Median annual salary in the U.S.: $95,000 > > Median annual salary worldwide: $50,000 > > > > Complete study: http://bit.ly/1dgCw3p I am below th

Re: gdb python how to output integer for examine memory

2014-03-25 Thread Wesley
在 2014年3月25日星期二UTC+8下午3时49分09秒,dieter写道: > Wesley writes: > > > > > I am trying to use gdb debug python script. > > > I am using gdb7.7 and python2.7.6, here is my simple test script: > > > import time > > > > > > def n

Re: gdb python how to output integer for examine memory

2014-03-26 Thread Wesley
在 2014年3月26日星期三UTC+8下午3时10分23秒,dieter写道: > Wesley writes: > > > ... > > > Actually, I can now see the varialbe names at Python level and C level. > > > I just want to verify x command to monitor the memory content. > > > So, in my origin post, I can get

Python IM server

2014-03-31 Thread Wesley
Hi all, I want to develop a instant message server, simply has user and group entity. Is there any better existing open-source one? Thus I can download and have a look. Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list

Re: Python IM server

2014-03-31 Thread Wesley
在 2014年3月31日星期一UTC+8下午8时37分32秒,Lutz Horn写道: > Hi, > > > > > I want to develop a instant message server, simply has user and > > > group entity. > > > > > > Is there any better existing open-source one? > > > > Take a look at XMPP[0]. There are some Python libraries[1]. > > > > [0] h

Re: Python IM server

2014-04-01 Thread Wesley
e messages not sent to user .etc Seems twisted words is high wrapped, we still need to develop lots of things. Wesley -- https://mail.python.org/mailman/listinfo/python-list

Telepathy is server or client?

2014-04-02 Thread Wesley
Hi, These days I see Telepathy on the net. Not so much examples for this guy. Is it used to write client or server? I mean, for example, I wanna develop a voice chatting system, so, can use this guy to develop a client or server? Thanks. Wesley -- https://mail.python.org/mailman/listinfo

Python streaming media server

2014-04-05 Thread Wesley
Hi, Anyone knows open source streaming media server written by Python? I am trying to setup a streaming media server in python, wanna find an existing one and have a look. Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list

Re: Python streaming media server

2014-04-05 Thread Wesley
在 2014年4月6日星期日UTC+8上午1时38分57秒,Sturla Molden写道: > Wesley wrote: > > > > > Anyone knows open source streaming media server written by Python? > > > > > > I am trying to setup a streaming media server in python, wanna find an > > > existing on

Re: Python streaming media server

2014-04-05 Thread Wesley
在 2014年4月5日星期六UTC+8下午6时11分02秒,Wesley写道: > Hi, > > Anyone knows open source streaming media server written by Python? > > > > I am trying to setup a streaming media server in python, wanna find an > existing one and have a look. > > > > Thanks. >

Re: Python streaming media server

2014-04-06 Thread Wesley
在 2014年4月6日星期日UTC+8下午8时52分37秒,Sturla Molden写道: > Wesley wrote: > > > > >> Not open source, but there is a famous closed-source one called YouTube. > > > > > > Are you kidding? > > > I know youtube, but do you think we can

gdb python print truncated string

2014-04-07 Thread Wesley
370>, queue=, maxsize=0, all_ta...(truncated) self is instance of Connection class. So, actually, I wanna check self.status...but you can see the print is truncated. I tried py-print self.status but failed. After a lot google work, somebody mention gdb 'set print elements 0/-1', but still failed.. So, how to check self.status value? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list

python obfuscate

2014-04-10 Thread Wesley
Hi all, Does python has any good obfuscate? Currently our company wanna release one product developed by python to our customer. But dont's wanna others see the py code. I googled for a while but mostly just say using pyc. Any better one? Our product is deployed on Linux bed. Thanks. W

Re: python obfuscate

2014-04-10 Thread Wesley
pyc has weakness: 1. easy to decompile 2. python version related, e.g. pyc from py2.5 cannot be used to py2.7 bed 在 2014年4月11日星期五UTC+8上午9时48分04秒,Tobiah写道: > On 4/10/2014 6:29 PM, Wesley wrote: > > > Hi all, Does python has any good obfuscate? > > > > > > Curre

Re: python obfuscate

2014-04-10 Thread Wesley
Umm, just wanna make all .py files not human readable. Or, maybe need a tool like zend in php. 在 2014年4月11日星期五UTC+8上午9时41分11秒,Ben Finney写道: > Wesley writes: > > > > > Hi all, > > > Does python has any good obfuscate? > > > > Define “good obfuscat

Re: gdb python print truncated string

2014-04-11 Thread Wesley
在 2014年4月8日星期二UTC+8上午10时21分24秒,Wesley写道: > Hi all, > > I have a question regarding gdb python. > > I use gdb7.7 and python2.7.6. > > > > Here is snippet that py-print one variable: > > (gdb) py-print self > > local 'self' = 0x7f860614b2

gdb python core dump file : not in executable format: File format not

2014-04-14 Thread Wesley
Hi guys, Today I am debugging an issue related to memory leak. I use gdb 7.7 and python 2.7.6 to generate one core dump file from production env. And then, just use gdb to debug the coredump upon the same machine. Got error that seems not support debug core file using pyton? Here is snippet:

Re: gdb python core dump file : not in executable format: File format not

2014-04-15 Thread Wesley
> > http://downloads.conceptive.be/downloads/camelot/doc/sphinx/build/advanced/debug.html > > > > > http://forums.gentoo.org/viewtopic-p-7123814.html > > > > > On Mon, Apr 14, 2014 at 1:19 AM, Wesley wrote: > > Hi guys, > >    Today I am debugg

Google open positions at Shanghai/China ?

2014-04-22 Thread Wesley
Hi guys, Anybody know if there are openning positions at Shanghai, China? Just ask for one of my friend in case someone here woring for Google:-) Although see some opened positions from google career, seems no actaully hire going on. Thanks. Wesley -- https://mail.python.org/mailman/listinfo

Re: App segmentation fault (CentOS 6.5)

2014-04-23 Thread Wesley
在 2014年4月24日星期四UTC+8上午2时08分29秒,Reginaldo写道: > Hi, > > > > I have a GUI app that is written using wx. When I run it on CentOS 6.5, the > following error messages are displayed and the app closes: > > > > (python:10096): Pango-WARNING **: shaping failure, expect ugly output. > shape-engine='B

Pillow installation failed for python with my custom opcode

2015-03-12 Thread Wesley
ython2.7/config/libpython2.7.a The last one is my customized python location. For pillow installation, shall I need to specify libpython2.7.a path? But I don't know why other packages are correct. Anyone knows what's wrong here? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list

Get html DOM tree by only basic builtin moudles

2015-06-04 Thread Wesley
, e.g. file operations, re module .etc Input file is something like this: DOM Tree test Header 1 Hello world! Need the dom tree or just something like: html -- head -- title(DOM Tree test) html -- body -- h1(Header 1) html -- body -- p(Hello world!) Thanks. Wesley

Re: Get html DOM tree by only basic builtin moudles

2015-06-05 Thread Wesley
, maybe read the file line by line, adding to a stack data structure(list for example), and, then, got the parent/child relation .etc I don't know if what I said is easy to achieve, I am just trying. Any better suggestions will be great appreciated. Thanks. Wesley > Elementtree is par

Re: Get html DOM tree by only basic builtin moudles

2015-06-05 Thread Wesley
> On Fri, Jun 5, 2015 at 12:10 PM, Wesley wrote: > > Hi Laura, > > Sure, I got special requirement that just parse html file into DOM tree, > > by only general basic modules, and based on my DOM tree structure, draft an > > bitmap. > > > > So, could

Captcha identify

2014-08-12 Thread Wesley
and alpha 2.letters might be rotated 3.letters might be deformed I don't know why I cannot insert picture attachment here... But I think you guys can think out what the captcha looks like:-) So, any suggestions? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list

Re: Captcha identify

2014-08-12 Thread Wesley
Here is captcha link: https://drive.google.com/folderview?id=0B33_p7UnVqoyd09mT3V0aWFxRmc&usp=sharing 在 2014年8月12日星期二UTC+8下午8时59分11秒,Dennis Lee Bieber写道: > On Tue, 12 Aug 2014 00:04:33 -0700 (PDT), Wesley > > declaimed the following: > > > > >Hi guys, > >

Re: Captcha identify

2014-08-12 Thread Wesley
If my questions make you guys not so happy, I am sorry and please just ignore. I just wanna a general suggestion here in the beginning. Why I need to write such program is just having such requirements, and has nothing to do with the coding work itself. Don't say something to prove you're so nobl

Re: ANN: Intro+Intermediate Python, San Francisco, Aug 1-3

2012-07-10 Thread wesley chun
t. reach out to me directly with any questions and let other folks know who may be interested. best regards, --wesley On Thu, May 10, 2012 at 2:07 PM, wesley chun wrote: > Greetings! > > I'll be doing another hardcore Python course this summer in the San > Francisco area. If

ANN: Intro+Intermediate Python, San Francisco, Aug 1-3

2012-05-10 Thread wesley chun
around OSCON's timeframe. Hope to meet some of you soon! --Wesley Chun - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "A computer never does what you want... only what you tell it."     wesley chun : wescpy at gmail : @wescpy/+wescpy     Python training & consu

ANN: Intro+Intermediate Python course, SF, Oct 18-20

2011-07-25 Thread wesley chun
Need to get up-to-speed with Python as quickly and as in-depth as possible? Already coding Python but still have areas of uncertainty you need to fill? Then come join me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python" for a comprehensive intro/intermediate course

ANN: Intro+Intermediate Python course, SF, May 24-26

2011-02-25 Thread wesley chun
Need to get up-to-speed with Python as quickly and as in-depth as possible? Already coding Python but still have areas of uncertainty you need to fill? Then come join me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python" for a comprehensive intro/intermediate course

How could I implement a virtual method and override it in python?

2016-09-14 Thread wesley . keeling
Hey guys, I will show the code first: Helper.py: def Foo( *args ): print ("This is a callback") def Run: Foo() MyModule.py: import Helper def Foo( *args ): print ("I want to be the new callback") I want to be able to call the Foo method in MyModule.py when it's there f

Re: How could I implement a virtual method and override it in python?

2016-09-14 Thread wesley . keeling
On Wednesday, September 14, 2016 at 3:47:52 PM UTC-7, Lawrence D’Oliveiro wrote: > On Thursday, September 15, 2016 at 10:18:09 AM UTC+12, wesley@iugome.com > wrote: > > Helper.py: > > > > def Foo( *args ): > > print ("This is a callb

Re: Python 3.6 on Windows - does a python3 alias get created by installation?

2019-10-12 Thread Wesley Peng
smart.thanks. On 2019/10/12 12:19 下午, Gisle Vanem wrote: An "alias" could also simply be created using:   doskey python3=f:\ProgramFiles\Python36\python.exe -- https://mail.python.org/mailman/listinfo/python-list

Re: [RELEASE] Python 3.8.0 is now available

2019-10-14 Thread Wesley Peng
awesome news. thanks for all the hard work. on 2019/10/15 4:23, Łukasz Langa wrote: We hope you enjoy Python 3.8! Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organ

Re: A news aggregator for the Python community

2019-10-19 Thread Wesley Peng
Sebastian Steins wrote: Over the last few weeks I've build a hacker news clone for the Python community: https://news.python.sc The source is at github.com/sebst/pythonic-news that looks interesting. thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: I need to study Python

2020-06-26 Thread Wesley Peng
Pick a book like Core Python Programming, read it and do coding follow it. regards. sinanp...@gmail.com wrote: Hey, I'm a completely noob. I want to learn python, how can i or where can i study python? -- https://mail.python.org/mailman/listinfo/python-list

Re: This is a test

2021-01-08 Thread Wesley Peng
Please don't send a test message to the public list which was read by thousands of people. thanks. On Fri, Jan 8, 2021 at 5:26 AM Craig Hatch wrote: > I have added you to the EMAIL list, so when I have questions. > > Just learn for fun. > > > Craig Hatch > -- > https://mail.python.org/mailman/l

python commmand line params from c++

2005-06-30 Thread Wesley Henwood
What is the proper way to pass command line parameters to a python script called from C++? I'm tryng this: path = "c:\\someDir\\someScript.py param1 param2 param3"; PyRun_SimpleFile(PyFile_AsFile( PyFile_FromString( path, "r")), "someScript.py"); I'm getting a "format error someScript.py, line 1"

Re: python commmand line params from c++

2005-06-30 Thread Wesley Henwood
Thanks Denis. PySys_SetArgv should do the trick. The nested function calls are there because the FILE structrure produced by fopen is not always compatible with the FILE structure produced by the Python C++ functions. Something do with the Python C being built with different version ofthe c run-

Re: python commmand line params from c++

2005-06-30 Thread Wesley Henwood
Thanks Denis. PySys_SetArgv should do the trick. The nested function calls are there because the FILE structrure produced by fopen is not always compatible with the FILE structure produced by the Python C++ functions. Something do with the Python C being built with different version ofthe c run-

ANN: Python training, 2005 Aug 29-31, San Francisco

2005-08-17 Thread Wesley Chun
ople!! contact us at cyberweb-at-rocketmail.com with any questions. thanks, -wesley > Newsgroups: comp.lang.python > From: [EMAIL PROTECTED] > Date: 28 Jul 2005 09:49:31 -0700 > Subject: ANN: Python training, 2005 Aug 29-31, San Francisco > > What: Python Programming I: Introdu

Beginner PyGTK and MySQL abuse request

2005-02-27 Thread Tom Wesley
Hey, I've spent far too long being spoilt by a relatively simplistic "just do it" style of database application in use at work and have decided to try my hand at some Python + MySQL + GTK over the next few days. I've managed to steal/write a short script that asks for some input and searches a

Re: uptime for Win XP?

2004-12-11 Thread Tom Wesley
Esmail Bonakdarian wrote: Hi, Is there a way to display how long a Win XP system has been up? Somewhat analogous to the *nix uptime command. Thanks, Esmail I believe that "uptime" works from the console, but don't have a machine to check it with... -- http://mail.python.org/mailman/listinfo/python

Re: Sort one sequence by O(n) in time and O(1) in space

2014-02-09 Thread Ni Wesley
Yes, with no new list, otherwise, space won't to be O(1) Wesley 2014年2月9日 下午10:31于 "Oscar Benjamin" 写道: > Please reply to the list rather than directly to me so that other > people can see the answer to my question and offer you help. > > On 9 February 2014 14:04, Ni W

ANN: Intro+Intermediate Python, San Francisco, Jul 30-31, Aug 1

2014-05-13 Thread wesley chun
his month before going up to the regular rate after that. More details and registration at http://cyberwebconsulting.com as well as in the ad: http://goo.gl/pyJseQ I'm no fan of spam, so I'll only send out one last reminder as the date gets closer

Re: ANN: Intro+Intermediate Python course, SF, Oct 18-20

2011-09-27 Thread wesley chun
** FINAL CALL ** http://sfbay.craigslist.org/sfc/cls/2495963854.html -- Forwarded message -- From: wesley chun Date: Mon, Jul 25, 2011 at 12:32 PM Subject: ANN: Intro+Intermediate Python course, SF, Oct 18-20 Need to get up-to-speed with Python as quickly and as in-depth as

LinuxJournal Readers' Choice Awards 2011 Best {Programming, Scripting} Language

2011-12-04 Thread wesley chun
/content/readers-choice-awards-2010 in fact, Python has nearly won this one 6 straight years, from 2006-2011, except bash won in 2009. is it the same people who are voting (practically) every year? :-) cheers, --wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python&qu

Re: [OT] Book authoring

2012-01-03 Thread wesley chun
ll as some author case studies. slide deck's available there too. cheers, --wesley On Dec 9 2011, 7:43 am, Nick Dokos wrote: > Grant Edwards wrote: > > On 2011-12-09, Miki Tebeka wrote: > > > Greetings, > > > > Any recommendations for abook authoringsystem th

stderr, stdout, and errno 24

2006-07-12 Thread Wesley Henwood
To capture output from python scripts run from a C++ app I've added the following code at the beggening of the C++ app: PyRun_SimpleString("import grabber"); PyRun_SimpleString("import sys"); PyRun_SimpleString("class a:\n\tdef write(self,s):\n\t\tograbber.grab(s)\n"); PyRun_SimpleString("import s

Re: stderr, stdout, and errno 24

2006-07-13 Thread Wesley Henwood
I've checked and double checked my code and I am closing all files explicitly after opening them. The only possibliy I can think of is Python opening files each time I run a script, or each time imput to stderr or stdout is redirected. Here's a link that is perhaps related to my problem:

Re: function v. method

2006-07-25 Thread Wesley Brooks
(Apollogies to fuzzylollipop for replying to them rather than the list!) Python does have ALREADY have an OFFICAL mechanism for private members, prefix your names with _ or __. Both are ommited from autogenerateddocuementation and both are OFFICALLY not supposed to be used.Could you elaborate on th

Re: first book about python

2006-08-01 Thread wesley chun
f you have a question that no book seems to be able to answer or seems to be taking forever to look up, you'll find that you can get just about any answer from the helpful tutors on that list. yiassoo! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Pro

Re: first book about python

2006-08-02 Thread wesley chun
(double feature) > From: "Ray" <[EMAIL PROTECTED]> > Date: Tues, Aug 1 2006 2:10 am > > Hi Wesley, which edition of Python will your latest Core Python cover? > Will it cover 2.5? ray: thanks for asking. one of my goals for the book is to really cover t

Re: How do I put % in a format sting?

2006-10-05 Thread wesley chun
e adapter for the reasons that carsten mentioned, namely the possibility of a SQL injection attack. when dealing with databases, it's always safest to let the adapter code format your string for you. good luck! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Cor

Re: building strings from variables

2006-10-05 Thread wesley chun
ttom line is that it depends on your requirements. i'm constantly thinking performance, so that's why i answered in the manner above. hope this helps! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001

ANN: Advanced Python training course, Nov 8-10, San Francisco

2006-10-11 Thread wesley chun
Come join us in beautiful Northern California for another rigorous Python training event taught by software engineer, "Core Python Programming" author, and technical instructor, Wesley Chun. This course will take place in San Bruno right near the San Francisco International Airport at th

Re: Adding Worksheets to an Excel Workbook

2006-10-11 Thread wesley chun
sleep(5) ss.Close(False) # close the workbook and don't save xl.Application.Quit() # quit Excel if __name__=='__main__': excel() hope this helps! -wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c

Re: Adding Worksheets to an Excel Workbook

2006-10-11 Thread wesley chun
s1b.InsertAfter("Line %d\r\n" % i) sleep(1) s1b.InsertAfter("\r\nTh-th-th-that's all folks!") sleep(5) pres.Close() ppoint.Quit() if __name__=='__main__': ppoint() HTH! -- wesley - - - - - - - - - - - - - - - - - - -

ANN: BayPIGgies, Oct 12, 7:30pm, Google, Mtn View

2006-10-12 Thread wesley chun
e info and directions, see http://baypiggies.net for information on meeting for dinner before the meeting (6pm): http://mail.python.org/pipermail/baypiggies/2006-October/001228.html hope to see you there! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Pyt

Re: Adding Worksheets to an Excel Workbook

2006-10-18 Thread wesley chun
ithout the sleep calls. sorry, i forgot to explain this in my previous post. the sleep()s are not required and are used purely for demonstration purposes, to slow things down so that you can see things happen live in the application. it's no fun if Excel opens and everything

Re: Observation on "Core Python Programming"

2006-10-30 Thread wesley chun
sn't matter if it is the smallest grammatical edit, errors in the code, or just plain wrong or misleading information. don't believe everything you read! (sometimes writing at 2, 3, and 4a in the morning does something to your writing when you're trying to tackle a publisher

Re: opening excel

2006-11-09 Thread wesley chun
Python book, and although it doesn't go extremely in-depth, it's perfectly targeted to "newbs" coming from the Unix world, as was i. hope this helps! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c

ANN: BayPIGgies, Thu Nov 9 @ 7:30p, Air Traffic Control

2006-11-09 Thread wesley chun
the silicon valley-san francisco bay area python users group meets at the Googleplex once a month in mountain view, CA. more info and directions available at http://baypiggies.net -- Forwarded message -- From: Dennis Reinhardt Date: Nov 2, 2006 9:03 PM To: Python <[EMAIL PROTECTED

import chains

2006-06-27 Thread Wesley Henwood
I have a program which uses a combination of MFC multithreading, python multithreading, and extended and embedded python. This works: >From the C++ app, call python script A within a MFC thread. Script A imports module 2 which imports module 3. Module 3 is a c++ extension, the code for which is

Re: Colorado Python seminar in November

2006-09-14 Thread wesley chun
http://cyberwebconsulting.com (click "Python training" link) november sure seems like "back to school" month for those in the Python community, and these are two great ways to develop, polish, and hone your Python skills! cheers, -wesley - - - - - - - - - - - - - - - - - - - -

Re: Timeline for Python?

2006-09-23 Thread wesley chun
"2.0", etc. to indicate when certain features were added, removed, or changed in the language. this will support readers who are users of "any" version of Python. and with a sigh of relief, i can happily tell everyone that Core Python did finally hit the streets this

Re: Help

2006-09-23 Thread wesley chun
gramming altogether, you can try Dawson's "Absolute Beginner" or the "Learn to Program" by Gauld, but since it's dated, it's best to check out Alan's tutorial at:http://www.freenetpages.co.uk/hp/alan.gauld/ cheers! -- wesley - - - - - - - - - - - - - - - -

Re: Timeline for Python?

2006-09-25 Thread wesley chun
ed bonus is for those who *are* locked into specific (pre- sumably older) versions to know about features that were added to, altered in, or removed from Python and for which releases those updates were first introduced to the public. cheers, -wesley - - - - - - - - - - - - - - - - - - - - - -

Re: does anybody earn a living programming in python?

2006-09-26 Thread wesley chun
on a weekly basis. if you're lucky, one or two of the listings in these weekly lists will contain positions that are pretty much Python-only. cheers, -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001

Re: Surprise using the 'is' operator

2006-09-26 Thread wesley chun
your learning of the difference between object *value* comparison vs. object *identity* comparison. what you've discovered, however, is important in learning Python... i have material in my intro course and the book dedicated to this su

Re: Surprise using the 'is' operator

2006-09-26 Thread wesley chun
s to all... it really *is* subject to change. ;-) it's now range(-5, 257). -wesley -- http://mail.python.org/mailman/listinfo/python-list

Re: does anybody earn a living programming in python?

2006-09-27 Thread wesley chun
ten for them. for the past employment i listed, the primary use of C was either an extension or a library adapter. of course, i never claimed above to have written any of that C code. ;-) my final thought is that you cannot truly appreciate a tool like Python until you've b

Re: Python/UNO/OpenOffice?

2006-09-30 Thread wesley chun
as others have said, that project provides a working interface to OOo (OpenOffice 2 on Ubuntu Breezy and Dapper). i've made several posts to this regard over the summer here on CLP. i was mostly using it to "mess around" with documents in StarWriter. ch

Is python memory shared between theads?

2006-12-01 Thread Wesley Henwood
So I declare a variable named A in thread1, in script1.py. I assign the value of 2.5 to A. I then run script2.py in thread2. Script2.py assigns the value of 5.5 to a variable named A. Now, when thread1 resums execution, I see that A = 5.5, rather than 2.5 as I expected. Is this normal behavior

ANN: BayPIGgies, Thu 12/14 7:30-9p, Mtn View

2006-12-12 Thread wesley chun
wiki.python.org/moin/BayPiggiesGoogleMeetings hope to see some of you there! -wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical

FYA: python cell phone is ruby-less

2006-12-21 Thread wesley chun
only 26 will be made. ;-) happy holidays everyone! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cybe

type classobj not defined?

2007-01-03 Thread Wesley Brooks
ed For the time being I'll use b.__name__ == b to ensure I'm getting the right class. Is there a reason why the other types such as bool are defined but classobj isn't? I'm running the following version of python: Python 2.4.3 (#1, Jun 13 2006, 11:46:08) [GCC 4.1.1 20060525

Re: Is there a way to program a robot with python (ex, an electric motor, control it's speed, etc)

2007-07-09 Thread Wesley Brooks
For a robotics project I would highly recommend the use of Phidgets, they can supply sensors and interface kits with APIs. Not sure if Python is fully supported yet but there certinally seems to be a considerable effort ongoing creating an API for python. I've only used them to date for servo contr

[ANN] Python courses this Fall

2007-08-23 Thread wesley chun
Folks, I'd like to announce my final Python courses for 2007: Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's well-received "Core Python Programming," for another set of courses this Fall in beautiful Northern C

Re: [ANN] Python courses this Fall

2007-08-23 Thread wesley chun
$1295/pp for the intro course and $495/ for the 1-day course (but $395 if you take the intro course too). http://cyberwebconsulting.com (click "Python Training") for more details -wesley On 8/23/07, Jeff Pang <[EMAIL PROTECTED]> wrote: > Sounds good.How about the costs for t

  1   2   >