Re: PEP8 revised: max line lengths

2013-08-04 Thread Sergi Pasoev
Let's say computer science isn't science. -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP8 revised: max line lengths

2013-08-04 Thread Sergi Pasoev
What about Earth Science? But in this case, it is indeed science, because in its name the word science is applied to the object of its study. But in the case of computer science, the word science is applied to the word which describes the tool this science uses!! It's like it was Telescope Science

Sudden doubling of nearly all messages

2012-07-21 Thread Sergi Pasoev
I'm using Thunderbird 14.0 on Linux 11.04, with mail configured for non-digest mode. I read the messages in threaded mode. I wonder how many decades should pass for linux to reach its 11.04 version. OK, I know you mean Ubuntu. There is already a lot of wrong use of names connected to Gnu,

Re Re Following syntax error in Mac OX10.7 Terminal

2012-06-29 Thread Sergi Pasoev
Just discovered this in the tutorial further down. I'm currently learning Python 2 because there seems to be a lot of tutorials out there covering Python 2 rather than 3. While deciding which version of Python to learn, a better counsel could be found here:

Learning python by reading

2012-06-28 Thread Sergi Pasoev
Hello Do you know some python programs that make good reading to learn the language by studying and modifying the source code ? I often try to understand things in the standard library, and apart from doing this kind of search myself, I would be glad to hear some ideas from more experienced

how can I implement cd like shell in Python?

2012-06-28 Thread Sergi Pasoev
Do you mean to implement the cd command ? To what extent do you want to implement it ? if what you want is just to have a script to change the current working directory, it is as easy as this: import sys import os os.chdir(sys.argv[1]) plus you could add some error-handling code. --

Re Following syntax error in Mac OX10.7 Terminal

2012-06-28 Thread Sergi Pasoev
You just have to consider that indentation matters in Python, so you have to type the code in Python interpreter as you have written it below, that is, press Tab before each line when you are inside the 'while (or any other like for, if, with, etc.) block. a=0 while a10: a=a+1 print a I

Re: Python-list Digest, Vol 99, Issue 27

2011-12-06 Thread Sergi Pasoev
when      sending   large object (Dennis Lee Bieber)   4. Single key press (Sergi Pasoev)   5. Re: Fwd: class print method... (Suresh Sharma)   6. Re: Single key press (8 Dihedral)   7. Re: Single key press (8 Dihedral)   8. Re: Scope of variable inside list comprehensions? (Rainer

Re: Python-list Digest, Vol 99, Issue 28

2011-12-06 Thread Sergi Pasoev
... Today's Topics:   1. Re: Python-list Digest, Vol 99, Issue 27 (Sergi Pasoev)   2. Re: Single key press (alex23)   3. Re: Single key press (Steven D'Aprano)   4. Re: struct calcsize discrepency? (Nobody)   5. Re: Questions about LISP and Python. (Alex Mizrahi)   6. Re: Backspace does

2 or 3 ?

2011-12-06 Thread Sergi Pasoev
Yes indeed, use the newer version. I thought this problem was already solved, Python 3 has already been there for long enough time. -- http://mail.python.org/mailman/listinfo/python-list

Single key press

2011-12-05 Thread Sergi Pasoev
Hi. I wonder if it is realistic to get a single key press in Python without ncurses or any similar library. In single key press I mean something like j and k in Gnu less program, you press the key and and it is captured by the script without need to press enter afterwards --