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

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: 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: [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: 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: 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

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

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: 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

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

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

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

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: 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, > >

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

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: 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

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: 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

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 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

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: 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

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

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

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

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-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

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

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

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

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

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: 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

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: 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-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

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 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

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-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-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: 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-08 Thread Wesley
Anybody has suggestions? This really makes me crazy... -- 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
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
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
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-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

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: 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

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
在 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 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

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: 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

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

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: 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

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

Re: Python vs. Fedora and CentOS

2010-05-29 Thread Wesley Brooks
I've got Fedora 10 here with 2.5, and 11 at the office with 2.6. On 29 May 2010 19:58, Paul Rubin wrote: > John Nagle writes: >>   The major Red Hat based Linux distros are still shipping with Python 2.4. > > Fedora 12 ships with Python 2.6, I think. > -- > http://mail.python.org/mailman/listinf

ANN: Intro+Intermediate Python course, SF, May 10-12

2010-04-27 Thread wesley chun
*** FINAL REMINDER *** Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python Programming," for a comprehensive Python course coming up this May in beautiful Northern California! I welcome new Python

ANN: Intro+Intermediate Python course, SF, May 10-12

2010-03-31 Thread wesley chun
Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python Programming," for a comprehensive intro course coming up this May in beautiful Northern California! Please pass on this note to whomever y

Re: How to run a repeating timer every n minutes?

2009-10-29 Thread Wesley Brooks
I use the wx.Timer for this: import wx timer = wx.Timer(self, -1) # update gui every 1/4 second (250ms) timer.Start(250) Bind(wx.EVT_TIMER, OnUpdateValues) In the above I'm running the OnUpdateValues function every 250ms. Regards, Wesley Brooks 2009/10/29 VYAS ASHISH M-NTB837 > &g

ANN: Python course, San Francisco, Nov 9-11

2009-10-27 Thread wesley chun
/secondary teachers, students, as well as to those who have been more severely impacted by the economy. here is my original announcement for more info: http://mail.python.org/pipermail/python-list/2009-September/196228.html hope to meet you soon! -- wesley

Re: Python book

2009-09-30 Thread wesley chun
of Core Python :-) ... and speaking of which, i'm actually starting to research what it would take to bring the book to a 3rd edition and soliciting assistance from the community. more info on both the course and the next edition here: http://mail.py

[ANN] Intro+Intermediate Python course, San Francisco, Nov 2009

2009-09-14 Thread wesley chun
ng out of the gate. Daily hands-on labs will help hammer the concepts home. Come join me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python Programming," for a comprehensive course coming up this Fall in beautiful Northern California to get up-to-speed with Python as qui

Re: Python docs disappointing

2009-08-06 Thread Wesley Chun
full reference texts, so you have to just take them for what they are. hope this helps! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 "Python Fundamentals", Prentice Hall, (c)2009 htt

Re: tough-to-explain Python

2009-07-10 Thread Wesley Chun
ogy, i just say that variables are like Post-It® or sticky notes on objects. i can tag objects anytime, tag objects more than once, remove tags, or switch them to another object, etc. just my $0.02, -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Pyth

Re: [ANN] Introduction to Python course, San Francisco, Jun 2009

2009-05-14 Thread wesley chun
class! cheers, -wesley On Thu, Apr 9, 2009 at 3:45 PM, wesley chun wrote: > Need to get up-to-speed with Python as quickly as possible? Come join > me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python > Programming," for a comprehensive intro course comin

[ANN] Introduction to Python course, San Francisco, Jun 2009

2009-04-09 Thread wesley chun
Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python Programming," for a comprehensive intro course coming up this June in beautiful Northern California! Please pass on this note to whomever y

Re: Python 3D CAD -- need collaborators, or just brave souls :)

2009-03-06 Thread Wesley Brooks
ngs At some point perhaps it would be possible for wizzard like features to set up tolerances for shaft holes, press-fits for bearings etc. Cheers, Wesley. 2009/3/5 jelle feringa > > Hi Josh, > > > http://www.pythonocc.org/ However, I'm > > not entirely clear on the l

Re: [Tutor] Accessing callers context from callee method

2009-02-24 Thread wesley chun
in func(), i ==', i) def foo(): nonlocal i i = 20 print('in foo(), i ==', i) foo() print('in func() after calling foo(), i ==', i) func() in this case, foo() modified func()'s 'i'. hope this helps! -- wesley - - - - - -

Re: BadZipfile "file is not a zip file"

2009-01-09 Thread Wesley Brooks
I missed the begining of this thread and so appologise if I'm repeating what someone else has said! I had a very similar problem with this error and it turned out it was due to me moving a file across a socket connection and either not reading it or writing it in the binary mode, ie open(filename,

Re: Mathematica 7 compares to other languages

2008-12-08 Thread Wesley MacIntosh
A flamer wrote: A moron, wrote: [snip] my machine (PPC Mac, OSX 10.4.x). Well, that explains a great deal. Actually, I suspect all these newsgroups are being trolled. -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] final 2008 Python courses, San Francisco

2008-10-15 Thread wesley chun
age -- From: wesley chun <[EMAIL PROTECTED]> Date: Fri, Sep 5, 2008 at 1:21 AM Subject: [ANN] final 2008 Python courses, San Francisco To: python-list@python.org, [EMAIL PROTECTED] Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall

[ANN] final 2008 Python courses, San Francisco

2008-09-05 Thread wesley chun
Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python Programming," for another comprehensive intro course plus a 1-day Internet programming course coming up in November in beautiful Northern Cal

Error from zipfile

2008-07-01 Thread Wesley Brooks
e I have emptied the zip file, created a new one, opend all the files in wordpad and saved them, then put the contents into the new file. Still no joy. Any help would be greatly appreciated. On linux I'm running python 2.5 and on windows it is 2.4. Thanks, Wesley Brooks. -- http://mail.py

FYA: visualizing repository commits

2008-06-16 Thread wesley chun
nd made by whom) over Python's lifetime: http://www.vimeo.com/1093745 the visualization project's home page is at: http://vis.cs.ucdavis.edu/~ogawa/codeswarm/ -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,

Re: Python Success stories

2008-04-22 Thread Wesley Brooks
http://panela.blog-city.com/python_at_google_greg_stein__sdforum.htm Google big enough? ...or look at the companies on the "NASA uses Python... ...so does:" box on the top (nearly top any how!) right of http://www.python.org/ On 22/04/2008, azrael <[EMAIL PROTECTED]> wrote: > Which big aplicatio

Control process execution

2008-04-06 Thread Wesley Mesquita
Hi all, I am trying to create a test environment to a couple C applications (simple UDP and TCP server/clients), so I want to write this in python and I m looking for ways to do it. Basically I need an execution timer and timeout control (to kill the apps in certain situations). Looking at google,

[ANN] Python course, May 2008

2008-04-01 Thread wesley chun
*** my apologies... this training course is next month, not this Fall! *** contact me privately off-list for further details. thanks! > FINAL ANNOUNCEMENT > > Need to get up-to-speed with Python as quickly as possible? Come join > me, Wesley Chun, author of Prentice-Hall's we

Re: [ANN] Python courses this Fall

2008-04-01 Thread wesley chun
FINAL ANNOUNCEMENT 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 comprehensive intro course next month in beautiful Northern California! I look forward

What Programming Languages Should You Learn Next?

2008-03-18 Thread wesley chun
http://it.slashdot.org/it/08/03/18/1633229.shtml it was surprising and disappointing that Python was not mentioned *anywhere* in that article but when someone replied, it sparked a long thread of post-discussion. -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core P

Re: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 idiom

2008-03-18 Thread wesley chun
editions, ideas for exercises, new material that you think should be covered, etc. best regards, -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python trainin

Re: Core Python Programming . . .

2008-01-22 Thread wesley chun
c., that's up to you. don't forget about part (b), which is to take an IP address and turn it into a 32-bit integer. enjoy! -- wesley ps. since you're on p. 248, there is also a typo in the piece of code right above this exercise, Example 6.4, which is tied to exercise 6-7. "

Re: readline() - problem

2007-10-02 Thread Wesley Brooks
ird character in each line: for line in file: if (line != '') and (len(line) > 2): if line[2] == '1': print "Got line:", line Would give: Got line: 1 1 Got line: 3 1 Cheers, Wesley Brooks On 02/10/2007, [EMAIL PROTECTED] <[EMAIL PROTE

Re: concise code (beginner)

2007-09-05 Thread Wesley Brooks
Sorry, just seen a mistake in my code, however Diez beat me to what I was actually thinking! Wes On 05/09/07, Wesley Brooks <[EMAIL PROTECTED]> wrote: > Try adding all the functions into a list such as; > > funcList = [dev.read1, dev.read2, dev.read3] > > for func in func

Re: concise code (beginner)

2007-09-05 Thread Wesley Brooks
Try adding all the functions into a list such as; funcList = [dev.read1, dev.read2, dev.read3] for func in funcList: for dev in devs: try: func() except: print exception remove dev from devs Wes. On 05/09/07, bambam <[EMAIL PROTECTED]> wrote: >

Re: Calling a dos batch file from python

2007-09-05 Thread Wesley Brooks
I looked into this a little while ago so I could get the MAC address of a machine while on linux or windows. Here's a simplified version that just does the windows side; self.macMatch = re.compile(r"((\w\w[:-]){5}\w\w)") data = os.popen("ipconfig /all", 'r') text = data.read() tup = self.macMatch.

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

[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: 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

Re: Need help to learn Python

2007-03-24 Thread wesley chun
hat you will write very effective code, even as a beginner to the language. you can read more of my "manifesto" on Amazon's page for the book as well as at the book's website below. cheers! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Progr

[ANN] Python courses this Spring

2007-03-22 Thread wesley chun
tails, see the corresponding websites below. Contact me privately if you have any more questions. cheers, -wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail

Re: difference between urllib2.urlopen and firefox view 'page source'?

2007-03-20 Thread wesley chun
robably the "cleanest" output, filtering out some of the extra browser-specific JS and stuff that you don't need. cheers, -wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 http://corepython.com

Re: Python books?

2007-03-09 Thread wesley chun
on amazon as well as the book's website (see below). hope this helps! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and tec

Re: Learning Python book, new edition?

2007-01-14 Thread wesley chun
Robert Hicks wrote: > I would get "Core Python Programming" by Wesley Chun. It covers just > about everything under the sun and includes version 2.5. Robert, thanks for the plug. if the OP wants to learn more about my book and its philosophy, feel free to check out my commen

  1   2   >