Hey all,
Earlier today, I tried to add a folder to my PYTHONPATH. When I tried
sys.path.app('location/of/folder'), the command successfully executed it,
but then when I did sys.path to check to see if it was now in my PYTHONPATH,
it was not there. Does anyone know what might be causing this?
Than
"Richard D. Moores" wrote
So if os.urandom() had been written so that it printed only hex,
b'l\xbb\xae\xb7\x0ft' would have been
b'\x6c\xbb\xae\xb7\x0f\x74' , right?
Yes except that its not urandomthat is printing those values.
urandom returns a string of bytes.
Its the Python interpreter c
"Wayne Watson" wrote
I find it interesting that any Python book I've seen doesn't deal
with distributing programs in some form or another.
Yes thats a good point. Most books (including mine) focus on how to
write code. Very few tell you how to distrubute it! And that's not
just
in Python,
On Sun, 8 Aug 2010 03:57:39 pm Richard D. Moores wrote:
> So if os.urandom() had been written so that it printed only hex,
> b'l\xbb\xae\xb7\x0ft' would have been
os.urandom() doesn't *print* anything. It RETURNS a byte string. What
you do with it is your business.
In your case, you fail to sav
On Sun, 8 Aug 2010 09:35:38 am aug dawg wrote:
> Hey all,
>
> Earlier today, I tried to add a folder to my PYTHONPATH. When I tried
> sys.path.app('location/of/folder'), the command successfully executed
> it, but then when I did sys.path to check to see if it was now in my
> PYTHONPATH, it was not
On Sat, 07 Aug 2010 11:43:25 -0400, Chris King
wrote:
How do you convert a string into a sound object.
Do you mean as in text-to-speech or playing byte string that contain
sound data in a certain encoding to the speaker?
___
Tutor maillist -
aug dawg gmail.com> writes:
>
> Earlier today, I tried to add a folder to my PYTHONPATH. When
> I tried sys.path.app('location/of/folder'), the command successfully
> executed it, but then when I did sys.path to check to see if it was
> now in my PYTHONPATH, it was not there. Does anyone know wha
On Sun, Aug 8, 2010 at 01:05, Alan Gauld wrote:
>
> "Richard D. Moores" wrote
>
>> So if os.urandom() had been written so that it printed only hex,
>> b'l\xbb\xae\xb7\x0ft' would have been
>>
>> b'\x6c\xbb\xae\xb7\x0f\x74' , right?
>
> Yes except that its not urandomthat is printing those values.
Hello Everyone,
I am to make a small programme for a friend of mine
where i am to start reading from 14th (string) from a file and then
read every 5th row.
ie.
in 1st read it reads the 14 row in a File, write to an OUTPUT-1 file
Next reads 19th row, write to the OUTPUT-1 file
then 24th row,... s
- Original Message -
From: "nitin chandra"
To:
Sent: Sunday, August 08, 2010 5:04 AM
Subject: [Tutor] Reading every 5th line
Hello Everyone,
I am to make a small programme for a friend of mine
where i am to start reading from 14th (string) from a file and then
read every 5th row.
- Original Message -
From: "nitin chandra"
To:
Sent: Sunday, August 08, 2010 7:29 AM
Subject: Re: [Tutor] Reading every 5th line
Thank you all.
@Dave - Thank you for the tip. No this is not a class exercise, that
is assured.
Will let know how much progress i made.
Truly, I am s
On 8/8/2010 1:57 AM, Richard D. Moores wrote:
On Sat, Aug 7, 2010 at 17:00, Alan Gauld wrote:
"Richard D. Moores" wrote
Yes, the number of bytes seems to<= 6, or is it?:
os.urandom(6)
b'\xf1\x1c\x15\x83\x14\x0e'
ok
os.urandom(6)
On Sun, 8 Aug 2010 10:04:21 pm nitin chandra wrote:
> Hello Everyone,
>
> I am to make a small programme for a friend of mine
> where i am to start reading from 14th (string) from a file and then
> read every 5th row.
There are many variations, here's one:
Write a loop that executes 14 times. Ins
On 8/8/2010 8:04 AM, nitin chandra wrote:
Hello Everyone,
I am to make a small programme for a friend of mine
where i am to start reading from 14th (string) from a file and then
read every 5th row.
ie.
in 1st read it reads the 14 row in a File, write to an OUTPUT-1 file
Next reads 19th row, wr
Hello everyone! I would like to ask you two questions regarding strings
which I do not know. Excuse me in advance if the questions may seem a bit
dumb. I'm a beginner. So let's get back to the point, this is my string:
msg= 'Hello world'
If I do, msg[:3] I get the following output, 'Hel'
If I do,
On Sun, Aug 8, 2010 at 12:04 PM, Daniel wrote:
> Hello everyone! I would like to ask you two questions regarding strings
> which I do not know. Excuse me in advance if the questions may seem a bit
> dumb. I'm a beginner. So let's get back to the point, this is my string:
>
> msg= 'Hello world'
> I
Hello Alan!
On Sunday August 8 2010 10:10:20 Alan Gauld wrote:
> Yes thats a good point. Most books (including mine) focus on how to
> write code. Very few tell you how to distrubute it! And that's not
> just
> in Python, most programming books are the same.
>
> Interesting.
>
> Alan G.
Yes, I
On Sun, Aug 8, 2010 at 2:41 PM, Eike Welk wrote:
> Hello Alan!
>
> On Sunday August 8 2010 10:10:20 Alan Gauld wrote:
>> Yes thats a good point. Most books (including mine) focus on how to
>> write code. Very few tell you how to distrubute it! And that's not
>> just
>> in Python, most programming
Okay. I am using WinXP, Python 3.1 on my workstation.
And this is the Python version information I got from putty.exe:
Python 2.5.4 (r254:67916, Apr 13 2009, 18:09:11)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd7
Thanks!
##
Never had, never will.
> From: hugo
nitin chandra wrote:
Hello Everyone,
I am to make a small programme for a friend of mine
where i am to start reading from 14th (string) from a file and then
read every 5th row.
ie.
in 1st read it reads the 14 row in a File, write to an OUTPUT-1 file
Next reads 19th row, write to the OUTPUT-1 f
Shurui Liu wrote:
Okay. I am using WinXP, Python 3.1 on my workstation.
And this is the Python version information I got from putty.exe:
Python 2.5.4 (r254:67916, Apr 13 2009, 18:09:11)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd7
You cannot use the same python source on 2.5 as you do in 3.1
Hi,
On 08/08/10 20:01, Shurui Liu wrote:
Okay. I am using WinXP, Python 3.1 on my workstation.
And this is the Python version information I got from putty.exe:
Python 2.5.4 (r254:67916, Apr 13 2009, 18:09:11)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd7
To add a small comment to what Dave's alr
On Mon, 9 Aug 2010 04:44:37 am David Hutto wrote:
> Four words... Software is python's propaganda.
Four more words: please trim unnecessary quoting.
--
Steven D'Aprano
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription opti
Hi all,
I`m doing a python based project, I need a mentor who can guide me and
help me to complete the project. the idea is fully based upon application
programming. What I want is just suggest me how to implement so that I write
the code and send it back to you. And there you can check the cod
On Sun, Aug 8, 2010 at 08:11, bob gailer wrote:
> On 8/8/2010 1:57 AM, Richard D. Moores wrote:
>> How were we supposed to know that all the hexes have 2 digits?
>
> In version 2.6.5 Language Reference 2.4.1 - String literals:
> \xhh Character with hex value hh
But
>>> os.urandom(6)
b'\x13\xf1\x
On Fri, Aug 6, 2010 at 10:51, Lie Ryan wrote:
> In the main python list there is Python Weekly URL that summarizes the
> week's most interesting posts in c.l.py
The latest of these I have received is dated June 22. Summer vacation?
Or discontinued?
Dick Moores
__
On Sun, Aug 8, 2010 at 21:25, Richard D. Moores wrote:
> On Fri, Aug 6, 2010 at 10:51, Lie Ryan wrote:
>
>> In the main python list there is Python Weekly URL that summarizes the
>> week's most interesting posts in c.l.py
>
> The latest of these I have received is dated June 22. Summer vacation?
Hello Dave,
Thank you very much. This solution worked out very well.
And I liked your style of coding ' In less DO more '.
Thank You once again.
Nitin
PS :- I tried to use a file pointer with raw_input, but that did not work.
>
> This may help you get started.
>
> FileNames = ["FileName
Hi all,
I have described the theme of my project here,
When the script is runned a configuring window has to be displayed where
the user has to configure for there desired Web Browser, Audio Player, Video
Player, Text Editor (Each Specified in separate SS Tab). Here the script
should retrieve all
On Mon, 9 Aug 2010 12:16:11 pm Ranjith Kumar wrote:
> Hi all,
> I`m doing a python based project, I need a mentor who can guide
> me and help me to complete the project.
Are you offering to pay for professional help for a commercial project,
looking for volunteers to work on an open-source pr
30 matches
Mail list logo