hello Tutor,
I need help on something very small...
i am using urllib to write a query and what i want returned is
'FHI=128%2C128&FLO=1%2C1'
i have tried the statement below and i have failed to get the above..
x1,y1,x2,y2 = 1,1,128,128
query = urllib.urlencode({'FHI':'x2,y2,', 'FLO':'x1,y1'})
Khalid Al-Ghamdi wrote:
Hi everyone!
I'm using python 3.1 and I want to to know why is it when I enter the
following in a dictionary comprehension:
>>> dc={y:x for y in list("khalid") for x in range(6)}
I get the following:
{'a': 5, 'd': 5, 'i': 5, 'h': 5, 'k': 5, 'l': 5}
instead of the exp
how to check whether a user is authenticated with mod_python
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
"Wayne Werner" wrote
One of Perl's philosophies is that there are more than one way to do one
thing. Python's philosophy is that there really should be one obvious way
of
doing something. And from my minimal experience with reading Perl code
(and
a few modifications) and decent experience rea
On Fri, Dec 4, 2009 at 9:22 AM, wrote:
> Is Python easier to learn that Perl? When we get new developers into
> our group, the new developer will need to get up to speed on the tools
> in our arsenal.
>
I haven't had any experience with teaching myself Perl, but I would say yes
based on what I d
On Fri, Dec 4, 2009 at 6:17 AM, Mkhanyisi Madlavana wrote:
> How can I do this using matplotlib? The snippet of my code looks like:
>
> Am I doing this all the wrong way?
>
>
This way is easier:
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.axhline
http://matplotlib.sou
spir wrote:
class Out(file):
def __init__(self, filename, toconsole=True, numberlines=True):
file.__init__(self, filename, 'r')
print self
# debug output to console
self.toconsole = toconsole
# line numberi