On Mon, 27 Dec 2004, Terry Carroll wrote:
> The program logic works, but I'm totally lost on the pakcer layout
> manager.
Never mind; I'm an idiot.
> self.F=tk.Frame(top)
>
> fBaseURL=tk.Frame(self.F)
> lBaseURL=tk.Label(self.F, text="URL:")
> eBaseURL=tk.Entr
First, thanks for the responses on my questions on using Tkinter for data
entry from last week. Alan's and Harm's responses were very helpful.
I'm now playing with a tiny application that does nothing except allow the
user to enter a variable for processing. It provides a default value, and
th
hi,
ok i don't think i've ever written to this list before (although i've
been a subscriber for quite some time) so here's a chance to introduce
myself properly (and not sounding a complete idiot ;))
Tanya, 30, Slovenia (europe), single, student again (computer
science, software engeneering) afte
Hello Marco,
Here are a few good places to start when going into networking with Python:
Socket Programming in Python HOWTO:
http://www.amk.ca/python/howto/sockets/
Documentation for the Python socket module:
http://docs.python.org/lib/module-socket.html
O'Reilly Network articles about Python netwo
> From: Jacob S.
> Sent: Monday, December 27, 2004 13:31
> To: tutor@python.org
> Subject: [Tutor] O.T.
>
> I hate to sound weird...
> I'm a student. 14 years. Play the piano better than I write scripts. Single.
Season's Greetings Jacob and all the circus.
Not to be nosy, Jacob, but is that 14
Hello kilovh.
> 1. Is there any easy way to compeltely reverse a list so that the last index
> becomes the first, etc.?
Why, yes. It's the 'reverse' method of lists. ie:
>>> li = [1,2,3,4]
>>> li.reverse()
>>> li
[4, 3, 2, 1]
>>>
> 2. Is there any way to take seperate integers in a list a
hi!
> 1. Is there any easy way to compeltely reverse a list so that the last index
> becomes the first, etc.?
The doc is your friend :-)
http://www.python.org/dev/doc/maint24/lib/typesseq-mutable.html
"""s.reverse() reverses the items of s in place"""
>>> a=[1,2,3,4]
>>> a.reverse()
>>>
On Monday 27 December 2004 18:49, Roel Schroeven wrote:
> > I would be grateful for a less restrictive link.
>
> http://pythonology.org/success&story=esr
Thanks for the link.
--
Bud Rogers <[EMAIL PROTECTED]> KD5SZ
___
Tutor maillist - Tutor@python
I have two questions,
both relating to lists.
1. Is there any easy
way to compeltely reverse a list so that the last index becomes the first,
etc.?
2. Is there any way to
take seperate integers in a list and combine them into digits of one number?
(e.g. changing [1,2,3,4] into 1234)
T
:) Hello
I'm a postgradute student, 24 years old. May you can guess, I'm from
Shanghai, China, PR., pacing on my single life studing and researching
on wireless telecommunication (military products, if specified). I took
up Python just one month and a half earlier, for leisure fun.
I studied i
Hi,
I think you can try the mailing-list WEB-SIG
http://mail.python.org/mailman/listinfo/web-sig
Juan
Marco wrote:
Hi python tutors,
Im interested on learning python but i would like to focus in a specific topic,
networking, where can i find documention networking in python? sockets and all
Wow - List comprehensions does make the problem one heck of a lot
easier on the eye and doesn't really remove much of it's comprhension.
Thanks for the tips Jacob and Alan - It's always fascinating to see
what seems like complicated problems set out so neatly and clearly on
the list :)
Hi python tutors,
Im interested on learning python but i would like to focus in a specific topic,
networking, where can i find documention networking in python? sockets and all
that stuff? i looked for some information but all of them were just vague.
thanks in advance,
Marco
--
"If knowledge
> Btw I'm single as well so if your sister looks like Salma Hayek please
> send her my gorgeous picture.
giggle,giggle,giggle...
I don't know who Salma Hayek is or what she looks like, but I can almost
assure you that my sister doesn't look like her.
My sister is 29 as well, but I think she's had
29 years, in Montreal (Canada), friggin' geek, 3D artist and techical
director. Been in 3D animation for 4 years. Use Python because it's one
of the implemented langages in Softimage|XSI (a 3D software), but now
use it for other stuff, generally related to 3D production.
I like beer (favoring G
Hi,
Indeed it works. It's that kind of little details that get me crazy. I
am still not used to read the tcl Tix documentation, and sometimes I
step over otherwise evident things.
Thanks a lot,
Guille
On Wed, 22 Dec 2004 11:33:41 +0100, Michael Lange <[EMAIL PROTECTED]> wrote:
> On Wed, 22 Dec
Bud Rogers wrote:
Just beginning serious study of python, partly because of ESR's article
"Why Python?", which I thought was on his website but apparently is
only available at the Linux Journal website:
http://www.linuxjournal.com/article.php?sid=3882
I would be grateful for a less restrictive
Jacob:
Age: 50 (ooh, I don't feel "that" old :-)
Status: Married for 25 years (last Sept).
Kids: 5 (all adopted) - ages: 20, 18, 6.5, 6.5, 6.5
Languages: "American" English only
Programming
Languages: (note, some are "forgotten" - i.e., haven't used in > 10 years)
--
I'm 53, married, father of two. I work for a power company. My title
is systems analyst, but the work I do is mostly system administration.
I've gotten a lot of mileage out of perl, mostly small ad hoc scripts
for one thing or another.
Just beginning serious study of python, partly because o
Hello,
15, taught myself Python last year, attend high school in Maryland
(USA), born in Israel, moved to Texas at 3, and to MD in 3rd grade . .
. Currently learning Java in school, so those are the only languages
I'm (semi)comfortable with.
Orri
--
Email: singingxduck AT gmail DOT com
AIM: sin
Roel Schroeven wrote:
A similar thread ran a while ago on comp.lang.python (search for "age of
python programmers" on Google groups). The main focus there was on the
age; I summarized the age distribution on
http://www.roelschroeven.net/pythonages/.
For those interested, you can find the code I
Pawel Kraszewski wrote:
Dnia piątek, 17 grudnia 2004 20:59, Alan Gauld napisał:
|Are there any Polish speakers on the tutor list who would like
|to check a new version of my tutorial? There are no formal links
|to it yet as there are only a few pages but it can be found at:
Wish I spoke Polish.
Hi,
26 years, single, spanish but having lived around Europe,
communication systems engineer, working in Japan now for a year, going
back to europe in April and looking for a job.
I've done mainly network stuff, from system conception to network
programming in C. I've worked in VoIP (SIP, Megaco,
> file. This allows me to pass a single object that contains loads of
conf
> data to the important init functions (which my, indeed, change the
data
> depending on various factors). Now, memory wise this may not be the
best
> thing to do.
As a matter of interest why do you think its a problem memo
From: "Jacob S." <[EMAIL PROTECTED]>
> > searchPat=re.compile("%s") % key # Doesn't work
> Now, what you seem to be using here is % formatting.
> The first thing I see wrong -- you should put the % key inside the
> parenthesis
Doh! I missed that one completely! Well done Jacob.
Alan G.
Too much e
Hi Mark,
> for key in polishKeys:
> searchPat=re.compile("%s") % key # Doesn't work
> for rKey in roughKeys:
> if searchPat.match(rKey): print key+""+rKey
It should work, but it may be a bad string - ie not a
valid regular expression? What errors do you get?
What does the key string lo
Jacob S. wrote:
I hate to sound weird...
But who are you all, what are you're ages, what do you do, marriage status,
etc?
You obviously don't have to answer, I'm just curious who I'm boldly sending
emails to.
A similar thread ran a while ago on comp.lang.python (search for "age of
python programme
As the sig says, I'm David Broadwell.
I'm 29, 30 this July. Married in hurricane alley (Florida), with a 18 month
old daughter. I'm a student as well, finishing my AA.ENGR and heading to USF
for a Dual Bachelors of CS and EE. I'm instrumentally challenged as far as
making music, but as far as carv
Wow. An actual ASL post. I haven't seen one of these since I left AOL.
I'm a 44 year old IT jack of all trades with a background in accounting.
Right now I work for a company creating and automating management reports.
I've programmed in a half dozen languages, done networking, have some
certifi
Jacob S. wrote:
I hate to sound weird...
But who are you all, what are you're ages, what do you do, marriage status,
etc?
You obviously don't have to answer, I'm just curious who I'm boldly sending
emails to.
Jacob Schmidt
P.S.
I'm a student. 14 years. Play the piano better than I write scripts. Si
I hate to sound weird...
But who are you all, what are you're ages, what do you do, marriage status,
etc?
You obviously don't have to answer, I'm just curious who I'm boldly sending
emails to.
Jacob Schmidt
P.S.
I'm a student. 14 years. Play the piano better than I write scripts. Single.
etc.
_
Hi,
[Blah,blah,blah,text cut]
>
> #! /usr/bin/python
> import string, re
First, I like to use string methods instead of importing the string module,
so let's get rid of that.
> dict1={}
> dict2={}
> inputFile1 = open("rough.txt", "rb")
> inputFile2 = open("polished.txt", "rb")
> for row in input
Been a long time since I last posted to the list so this is only my
third program in as many years :(
Anyway the basic idea is to look through two csv files (seperated by
tabs) enter both of them into dictionaries and compare the keys of the
"polished" version with the "rough" one. If I've already
[edited for sanity]
> An advantage here is that this guess() function is less tied to outside
> global resources, and is, in theory, more easily reused. If we wanted to
> rewrite the program so that we take three different passwords, the version
> without global variables is easy to write:
>
>
> print "Hi there, ",os.environ["USERNAME"]
Oops, sorry, I said os.getenv(), looks like
my C background showing through :-)
Alan g.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
> I tried to do this:
>
> import os
> import cgitb; cgitb.enable()
> print "Content-type: text/html\n\n"
> print "Hi there, ",os.system("echo %USERNAME%")
If you ignore the environment variable bit, does
it work with a hard coded name?
If so then try using the function os.getenv() to
fetch the va
Marilyn,
I seemed to have missed the start of this one, but which debugger
are you trying to use? There is plain ole Python pdb, the IDLE
debugger and the Pythonwin debugger (and probably more!)
The pdb debugger is fashioned on the gdb debugger and works
very like that if you've ever sen it befor
> example. The only thing I'm not clear about is how 'trashcan' can be
a
> local variable inside main() when it's required by both trash() and
> can()
It's not local. It is a global variable. It is defined outside
of any of the functions.
> The only thing that's missing is that this script can't
> Anyway, I got to the Using Environment Variables chapter that is in
> this page: http://www.oreilly.com/openbook/cgi/ch02_02.html.
> This is UNIX environment variables (as I understand), and I guess
they
> will not work on Windows...
They should work on both.
THere are some variables that are di
[Jacob]
> > BTW, trashcan IS a module level variable because it's defined at the
> > module level. Why it says it's local is beyond me.
[Danny]
> Ah, you must be running into the global/local gotcha.
[long rambling text cut]
Wait, wait. Forget everything I said. *grin* I should have read the
On Sun, 26 Dec 2004, Jacob S. wrote:
> > The only thing that's missing is that this script can't handle paths
> > like ~/dir/junkthis
>
> I believe you're looking for os.path.expanduser("~/dir/junkthis")
>
> BTW, trashcan IS a module level variable because it's defined at the module
> level. Why
41 matches
Mail list logo