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

2014-02-09 Thread Wesley
will be 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 nis...@gmail.com wrote: Yes, with no new list, otherwise, space won't to be O(1) Did you read the link I posted: http://en.wikipedia.org/wiki/In-place_matrix_transposition

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, yes? [Wesley] No, not sorted yet

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
) #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. Wesley

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

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
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 want? I told the OS

Re: gdb unable to read python frame information

2014-03-10 Thread Wesley
to install 在 2014年3月10日星期一UTC+8下午3时28分30秒,dieter写道: Wesley nisp...@gmail.com writes: 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. You are doing things only a few people do: trying to debug

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 nisp...@gmail.com

gdb python how to output integer for examine memory

2014-03-24 Thread Wesley
]) $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 nisp...@gmail.com Wrote in message: Hi all, I am trying to use gdb debug python

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 the

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 nisp...@gmail.com 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 next(i): time.sleep(10) i = 1 - i i = 1

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 nisp...@gmail.com 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 variable i's address, and see

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]

Re: Python IM server

2014-04-01 Thread Wesley
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 nisp...@gmail.com 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 one and have a look. Not open source

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. Wesley After a lot google work, I am looking

Re: Python streaming media server

2014-04-06 Thread Wesley
在 2014年4月6日星期日UTC+8下午8时52分37秒,Sturla Molden写道: Wesley nisp...@gmail.com 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 use it setup our own streaming media server? Obviously

gdb python print truncated string

2014-04-07 Thread Wesley
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

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

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? Currently our company wanna release one

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 nisp...@gmail.com writes: Hi all, Does python has any good obfuscate? Define “good obfuscate”. What is your goal

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' = Connection(timer1220182856=_Timeout at remote 0x7f860614b220, timer513645288

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
/build/advanced/debug.html http://forums.gentoo.org/viewtopic-p-7123814.html On Mon, Apr 14, 2014 at 1:19 AM, Wesley nis...@gmail.com wrote: 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

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.

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_p7UnVqoyd09mT3V0aWFxRmcusp=sharing 在 2014年8月12日星期二UTC+8下午8时59分11秒,Dennis Lee Bieber写道: On Tue, 12 Aug 2014 00:04:33 -0700 (PDT), Wesley nisp...@gmail.com declaimed the following: Hi guys, These days I got a small

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

Pillow installation failed for python with my custom opcode

2015-03-12 Thread Wesley
packages are correct. Anyone knows what's wrong here? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list

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 part

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 nisp...@gmail.com 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 you give me an direction how to get

Get html DOM tree by only basic builtin moudles

2015-06-04 Thread Wesley
) html -- body -- p(Hello world!) Thanks. Wesley -- 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:

Re: Colorado Python seminar in November

2006-09-15 Thread wesley chun
://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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python

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

2006-10-12 Thread wesley chun
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 Python Programming, Prentice

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

2007-01-12 Thread wesley chun
soon! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http

[ANN] Python courses this Spring

2007-03-23 Thread wesley chun
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.com python training

[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 California! I look

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

2009-04-10 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 you think may

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

2009-05-15 Thread wesley chun
! cheers, -wesley On Thu, Apr 9, 2009 at 6:04 PM, wesley chun wes...@gmail.com 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 coming up this June

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

2009-09-15 Thread wesley chun
-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 quickly and as in-depth as possible! WHERE: near

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

2009-10-28 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

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

2010-04-01 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 you think may

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

2011-02-26 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 coming up this May

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 coming up this May

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

2014-06-11 Thread wesley chun
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... say around the end of June. Cheers, -- Wesley

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 when

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

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

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

2005-08-17 Thread Wesley Chun
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: Introduction to Python When: August 29-31, 2005

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: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 idiom

2008-03-18 Thread wesley chun
this. i appreciate all constructive feedback... don't trust everything you read! send any other corrections to me at corepython at yahoo... including suggestions for future editions, ideas for exercises, new material that you think should be covered, etc. best regards, -- wesley

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 Python

[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 well-received Core

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 to meeting you

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,

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 aplications

Re: [Tutor] Accessing callers context from callee method

2009-02-24 Thread wesley chun
('globally, i ==', i) def func(): i = 10 print('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: Python 3D CAD -- need collaborators, or just brave souls :)

2009-03-06 Thread Wesley Brooks
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 jelleferi...@gmail.com Hi Josh, http://www.pythonocc.org/ However, I'm not entirely clear on the license for this so

[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 you think may

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

2008-10-15 Thread wesley chun
-- 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's bestseller Core

FYA: visualizing repository commits

2008-06-16 Thread wesley chun
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,2001 http://corepython.com

Error from zipfile

2008-07-01 Thread Wesley Brooks
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.python.org/mailman/listinfo

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

Re: Core Python Programming . . .

2008-01-22 Thread wesley chun
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. 'fac_list' should really be `fac_list`, or even better, repr(fac_list). see the Errata

[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 California! I look

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

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

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

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

2007-03-20 Thread wesley chun
don't need. cheers, -wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http

[ANN] Python courses this Spring

2007-03-22 Thread wesley chun
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.com python training

Re: Need help to learn Python

2007-03-24 Thread wesley chun
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 Programming, Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com

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

Re: first book about python

2006-08-01 Thread wesley chun
on that list. yiassoo! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http

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 the *core* parts of the language, meaning

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

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 those lessons?thanks

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 =

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

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 funcList: for dev in devs

Re: readline() - problem

2007-10-02 Thread Wesley Brooks
: 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 PROTECTED] wrote: Hi! I'm a new user of python, and have problem. I have a plain ascii

Re: Colorado Python seminar in November

2006-09-14 Thread wesley chun
://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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python

Re: Timeline for Python?

2006-09-23 Thread wesley chun
. 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 week! (more info at the link below) cheers, -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python

Re: Help

2006-09-23 Thread wesley chun
to check out Alan's tutorial at:http://www.freenetpages.co.uk/hp/alan.gauld/ cheers! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training

Re: Timeline for Python?

2006-09-26 Thread wesley chun
that were added to, altered in, or removed from Python and for which releases those updates were first introduced to the public. cheers, -wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun

Re: does anybody earn a living programming in python?

2006-09-26 Thread wesley chun
positions that are pretty much Python-only. cheers, -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting

Re: Surprise using the 'is' operator

2006-09-26 Thread wesley chun
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 subject. cheers, -- wesley

  1   2   >