Re: Books?

2012-08-21 Thread Anonymous Group
On Aug 21, 7:04 pm, Chris Angelico wrote: > On Wed, Aug 22, 2012 at 11:39 AM, Roy Smith wrote: > > In article > > <5203ee16-5a80-4cd9-9434-ee2efb645...@kg10g2000pbc.googlegroups.com>, > >  Anonymous Group wrote: > > >> What books do you recomend for

RE: print() and unicode strings (python 3.1)

2009-08-26 Thread Anonymous
Have you considered including an encoding line at the top of your file, as described in PEP 0263: http://www.python.org/dev/peps/pep-0263/ I just ran into a similar error, but it went away when I included # coding: utf-8 as the first line in my file. -- http://mail.python.org/mailman/listinfo

Re: Lisp mentality vs. Python mentality

2009-04-25 Thread anonymous . c . lisper
On Apr 25, 2:06 am, Carl Banks wrote: > In answering the recent question by Mark Tarver, I think I finally hit > on why Lisp programmers are the way they are (in particular, why they > are often so hostile to the "There should only be one obvious way to > do it" Zen). > > Say you put this task to

trapping all method calls in a class...

2008-12-20 Thread Piyush Anonymous
hi, i need to trap all method calls in a class in order to update a counter which is increased whenever a method is called and decreased whenever method returns. in order to that i am trying to write a decorator for all the methods. see the code here with error. --- http://codepad.org/2w7JVvDB

a small doubt

2008-12-20 Thread Piyush Anonymous
i wrote this code -- class Person(object): instancesCount = 0 def __init__(self, title=""): Person.instancesCount += 1 self.id = "tempst" def testprint(self): print "blah blah" def __getattribute__(self, name): print "in get attribute" a = Person() a

Re: python book for non technical absolute beginner

2008-12-06 Thread anonymous
Yes, there is an excellent book for absolute beginners call Python Programming, for the absolute beginner (second edition by Michael Dawson. Here are the reasons why it is excellent for a beginner. It doesn't go beyong basic math as do most other computer books when giving examples, exercises or

Re: Mathematica 7 compares to other languages

2008-12-01 Thread anonymous . c . lisper
On Dec 1, 8:29 pm, Lew <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > A rational human would realize that not too many people peruse this > > newsgroup, > > and that most of them have already seen the wall of text post that you > > generate every time. > > Just out of curiosity, what do

Re: Mathematica 7 compares to other languages

2008-12-01 Thread anonymous . c . lisper
On Nov 30, 10:30 pm, Xah Lee <[EMAIL PROTECTED]> wrote: > some stuff You are a bot? I think you failed the Turing test when you posted the same thing 20 times. A rational human would realize that not too many people peruse this newsgroup, and that most of them have already seen the wall of text

Re: Mathematica 7 compares to other languages

2008-12-01 Thread anonymous . c . lisper
On Dec 1, 2:23 am, Xah Lee <[EMAIL PROTECTED]> wrote: > On Nov 30, 7:30 pm, Xah Lee <[EMAIL PROTECTED]> wrote: > >>some stuff Are you a bot? I think you failed the Turing test after the 8th time you posted the exact same thing... I'm completely serious. -- http://mail.python.org/mailman/listinfo

finding the difference between the two version of the python program...

2008-12-01 Thread Piyush Anonymous
is there a tool which, given two version of programs, finds the difference like set of classes added, deleted and modified? assuming the python program is written in oops way. -- http://mail.python.org/mailman/listinfo/python-list

Dynamically adding methods to a class...

2008-07-28 Thread Piyush Anonymous
class MyObject: def __init__(self, name): self.name = name def do_this_default(self): print "default do_this implementation for %s" % self.name def custom_do_this(): #method to be added print "custom do_this implementation for %s" % self.name def funcToMethod(func,clas,metho

Suggestion: Python global scope

2008-07-15 Thread Anonymous Bastard
I've been tossing this idea in my mind for some time now: In Python, declaring a variable using the global statement automatically makes it available in all subsequent scopes. But to me, it makes more sense to use the global statement to 'import' a variable from the global scope into the curr

Python beginner, unicode encode/decode Q

2008-07-14 Thread anonymous
1 Objective to write little programs to help me learn German. See code after numbered comments. //Thanks in advance for any direction or suggestions. tk 2 Want keyboard answer input, for example: answer_str = raw_input(' Enter answer > ') Herr Üü [ I keyboard in the following characters

Re: sending executable data over network..

2008-06-24 Thread Piyush Anonymous
re? should i change the way i am receiving the code? thanks for help -piyush On Wed, Jun 25, 2008 at 12:22 AM, Terry Reedy <[EMAIL PROTECTED]> wrote: > > > Piyush Anonymous wrote: > >> any idea or pointer how i could link it to running code in server? >> for exam

Re: sending executable data over network..

2008-06-24 Thread Piyush Anonymous
objectA.getdata()=getdatanew() here? On Tue, Jun 24, 2008 at 4:15 PM, Cédric Lucantis <[EMAIL PROTECTED]> wrote: > Le Tuesday 24 June 2008 08:59:40 Piyush Anonymous, vous avez écrit : > > hi, > > i wish to change the way the function definition at run time in a running > > server.

sending executable data over network..

2008-06-24 Thread Piyush Anonymous
hi, i wish to change the way the function definition at run time in a running server. new function code which is to be executed is provided by a client at different location. i am getting it by reading a file and sending it using makefile() with server/client connected using sockets. how can make

Re: piping into a python script

2008-02-01 Thread anonymous
I'm not sure I understane the question but my contribution is : import sys names = sys.argv[1:] line = 'x' while line: line = sys.stdin.readline().strip() if line: names.append (line) print "names=", names Called using: ls | stdtest.py arg1 arg2 arg3 Does this help? Andy -- http

Re: interfacing Python interpreter with a VB6 frontend

2007-10-03 Thread Anonymous
Ryan Ginstrom wrote: >>On Behalf Of Anonymous >>This requires several steps, but the one I am having most >>problem finding info on is the ff: >> >>1. using/interacting the Python interpreter from VB6 > > > One way to do this might be by creating a

interfacing Python interpreter with a VB6 frontend

2007-10-03 Thread Anonymous
I am trying something which appears (so far), that many other people have not yet tried before - since I can't find any useful related material despite several days of searching various sites/blogs etc. I want to use VB6 as a front end for building a small GUI console that accepts python comman

Building VTK-5.0.3-1 with Python bindings (VS 8.0)

2007-10-03 Thread Anonymous
I am having problems with CMake. I currently have the ff errors (paths not set - and I am not sure what to set them to): TK_INCLUDE_PATH TK_INTERNAL_PATH TK_XLIB_PATH (I don't know why this is reqd, since I'm running W2k) Has anyone done this before or now how to fix these errors ? -- http://

Python question (PyNoob)

2007-08-19 Thread Anonymous
I have exp with C/C++ (and a few other langs). I want to use Python to start doing the ff: 1). Data Munging (text processing) - instead of Perl 2). Automating my build process 3). (Possibly) some web data retrieval jobs Can anyone point me to resurces/possibly scripts that can get me up to spee

Newbie question

2007-08-19 Thread Anonymous
I have exp with C/C++ (and a few other langs). I want to use Python to start doing the ff: 1). Data Munging (text processing) 2). Automating my build process 3). (Possibly) some web data retrieval jobs Can anyone point me to resurces/possibly scripts that can get me up to speed (to do these 3 t

Re: python coding contest

2005-12-26 Thread anonymous
gmail.com> writes: > > Currently I'm on 149 characters in one line - 128 without > spaces/newlines. (it'd be three characters shorter if it didn't have > to end with a "\n") > > -T. "unclean... unclean..." > are you importing zlib or bz2 ? -- http://mail.python.org/mailman/listinfo/pyth

Re: A Moronicity of Guido van Rossum

2005-09-30 Thread Anonymous Coward
[EMAIL PROTECTED] wrote: > In comp.lang.perl.misc Kalle Anke <[EMAIL PROTECTED]> wrote: > >>On Thu, 29 Sep 2005 19:44:28 +0200, Matt wrote >>(in article <[EMAIL PROTECTED]>): > > > >>>OK... your post seems to indicate a belief that everyone else is >>>somehow incompetent. Sounds a bit like the