vanam wrote:
Hi all,
As it was suggested before in the mailing list about the query
regarding replacing string in the file, i have used the module File
input for replacing the string in the file.
For understanding and execution purpose, i have just included Python
as a string in the file and wa
Yeah, I'm really excited. The graduate school teachers are much more
willing to let me use Python than the undergrads were. I'm also doing my
Internet Information Processing course using Python, as well as my Data
Mining one. :)
On Thu, Jan 28, 2010 at 1:12 PM, Shashwat Anand wrote:
> Whoaa...e
Whoaa...even me too have Compilers as a graduate course this sem, (lex,
flex, yacc stuff) but the labs have not started yet. Will see how much
pythonic I can make this lab :D
On Fri, Jan 29, 2010 at 12:36 AM, Luke Paireepinart
wrote:
> Glad you like it. I do too. I'm taking a graduate course "
Glad you like it. I do too. I'm taking a graduate course "Crafting
Compilers" and my prof. said I could use Python to write my compiler. It'll
be the first one for his class that wasn't written in C/C++.
On Thu, Jan 28, 2010 at 10:53 AM, Samuel de Champlain <
samueldechampl...@gmail.com> wrote:
"vanam" wrote
Suppose if data.txt has string Python written in Font size 72 and when
i display the string on the console ie. by below piece of code
Text files don't have font sizes, just text. To store formatting
information
requires that data to be stored (separate to the text) in the fil
>> set to a "reasonable" size. If you try to read more than that it
>> will be truncated. This is explained in the read() documentation
>> for files.
>
> ?? files have a buffer size that sets how much is read from the disk
> at once; I don't think it affects how much is read by file.read(). The
> d
Hi all,
As it was suggested before in the mailing list about the query
regarding replacing string in the file, i have used the module File
input for replacing the string in the file.
For understanding and execution purpose, i have just included Python
as a string in the file and want it to be rep
I am presently doing the "Dive into Python tutorial", and I wanted to share
these lines with you.
"As a former philosophy major, it disturbs me to think that things disappear
when no one is looking at them, but that's exactly what happens in Python.
In general, you can simply forget about memory m
On Thu, Jan 28, 2010 at 1:22 AM, Muhammad Ali wrote:
>
> Hi,
>
> I am multipliying two lists so that each of list As elements get multiplied
> to the corresponding list Bs. Then I am summing the product.
>
> For example, A= [1, 2, 3] and B=[2, 2, 2] so that I get [2, 4, 6] after
> multiplication a
On Wed, Jan 27, 2010 at 6:57 PM, Alan Gauld wrote:
> read() functions usually have an optional buffersize parameter
> set to a "reasonable" size. If you try to read more than that it
> will be truncated. This is explained in the read() documentation
> for files.
?? files have a buffer size that s
On Thu, 28 Jan 2010 13:37:28 +0100
Alan Plum wrote:
> You mean like this?
>
> >>> m = 20
> >>> n = 30
> >>> a = xrange(m, n)
> >>> a
> xrange(20, 30)
> >>> a[0]
> 20
> >>> a[-1]
> 29
!!! Did not even think at that (looked for attributes of xrange instances).
Thank you.
Denis
On Do, 2010-01-28 at 12:16 +0100, spir wrote:
> Is there a way to retrieve an (x)range's borders?
> (Eg if I want to print out "m..n" instead of "xrange(m, n)".)
You mean like this?
>>> m = 20
>>> n = 30
>>> a = xrange(m, n)
>>> a
xrange(20, 30)
>>> a[0]
20
>>> a[-1]
29
Please note that the bord
Hello,
Is there a way to retrieve an (x)range's borders?
(Eg if I want to print out "m..n" instead of "xrange(m, n)".)
Denis
la vita e estrany
http://spir.wikidot.com/
___
Tutor maillist - Tutor@python.org
To unsubsc
On 01/28/10 17:22, Muhammad Ali wrote:
> Hi,
>
> I am multipliying two lists so that each of list As elements get multiplied
> to the corresponding list Bs. Then I am summing the product.
>
> For example, A= [1, 2, 3] and B=[2, 2, 2] so that I get [2, 4, 6] after
> multiplication and then sum it
On 27 January 2010 13:57, Neven Goršić wrote:
> Since May of 2009 there has not been any update and now web page is not
> available any more ...
>
The website is back up now. I guess there was a server issue of some sort.
___
Tutor maillist - Tutor@py
15 matches
Mail list logo