e --
From: Steven D'Aprano <[EMAIL PROTECTED]>
To: python-list@python.org
Date: Sun, 03 Jul 2005 18:51:07 +1000
Subject: Re: a question
On Sun, 03 Jul 2005 03:19:45 -0400, Xinyue Ye wrote:
> when I type sys.ps2 after import sys,
> I got the message like:
> Tra
I've never programmed before, so I thought I'd try and learn a bit by
using some Python tutorials. I started using the tutorial at
http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html. It
mentioned different forms of Python, specifically Command Line and
IDLE. Being inexperienced, I'm n
Do I need this on my computer---Python---can I remove it without hurting
anything?
Thanks Tommy
--
Please visit my web page @tomleggio.com
Tom Leggio
194 NE 6th. CT.
Dania Beach, Fl 33004-3633
954-205-5307
--
http://mail.python.org/mailman/listinfo/python-list
Dear All
I'm a Researcher from Cairo, Egypt.
I installed the language programmer
Python Enthought Edition--Python 2.4.3 for Windows
Enhanced Python Distribution.I have certain data in the defau
Dear Dr.
I'm a Researcher from Cairo, Egypt.
I installed the language programmer (Python) on my PC. I executed the
following statements to read unformatted fortran data. I have the original
program which I translate it to the Python language :
Group:
I'm new to python and new to mysql.
I have a csv file that is about 200,000 rows that I want to add to a
mysql database. Yes, I know that I can do this directly from the
mysql command line, but I am doing it through a python script so that
I can munge the data before adding it.
I have th
On May 20, 5:55 pm, cjl <[EMAIL PROTECTED]> wrote:
...snip...
> conn = MySQLdb.connect(db="database", host="localhost", user="root",
> passwd="password")
> c = conn.cursor()
>
> reader = csv.reader(open(sys.argv[1]))
> for row in reader:
> data1, data2, data3, data4 = row
> data = (data1,da
cjl wrote:
> Group:
>
> I'm new to python and new to mysql.
>
> I have a csv file that is about 200,000 rows that I want to add to a
> mysql database. Yes, I know that I can do this directly from the
> mysql command line, but I am doing it through a python script so that
> I can munge the data b
Laszlo Nagy írta:
> Laszlo Nagy írta:
>
>> Hello,
>>
>> I'm trying to write a very simple program that moves all messages from
>> INBOX into another folder.
>> I'm not sure what am I doing wrong. This is a very simple task. I
>> believe I need to call these methods:
>>
>> - search -> get all
Hello,
This is from the docs, from section 11.6.1 (HTTPConnection Objects)
HTTPConnection instances have the following methods:
request( method, url[, body[, headers]])
[.]
The headers argument should be a mapping of extra HTTP headers to send with the
request.
AFAIK the only standard map
I realize this is more a regexp question than a python question, but maybe one
of the re object could help me:
I have wish to know how to _no_ match:
This is but an example of the data I handle:
xx xx xx xx xx xx xx [yy yy yy yy yy yy yy] (zz zz zz zz)
I currently can retrieve the three group
Why do I get an "AttributeError: read" message when I do:
import sys
r=sys.stdin.read()
??
I've tried:
r=sys.stdin.read(80)
r=sys.stdin.read(1)
same error message.
I couldn't find any reference to this function in my Python book (they have
the stdout but not in).
Some sample
Does python have a module similiar to the perl Spreadsheet::WriteExcel
Thanks,
Bill
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am trying to fix the following problem:
1) I have a gui thread + a background thread that intantiates a bdb child.
2) When I wish to quit in the middle of a debugged program, I roughly do the
following:
2.a) set_quit()
2.b) kill my bdb child
2.c) stop my background thread
I notice that m
[If there is a separate list for elementtree, please someone
clue me ... I didn't see one.]
Fredrik or other xml / elementtree gurus:
I see from the source that ElementTree.write() writes
at the beginning of the xml output if an encoding
other than utf-8 or us-ascii is selected. Shouldn't
it also
How the heck do you set the icon on a frame using a .ico file, or a .bmp
file, or whatever? How do you find out how to do something like that?
Apparently there is no documentation to speak of. I tried looking the in
the demo program, but I didn't find the secret..
--
http://mail.python.org/ma
I am new to python; any insight on the following would be appreciated, even
if it is the admonition to RTFM (as long as you can direct me to a relevant
FM)
Is there a standard approach to enumerated types? I could create a
dictionary with a linear set of keys, but isn't this overkill? There is
Hi,
I tried the xmlrpclib examples from the Python Cookbook and had a
problem. The example works fine so long as the server and client are on
the same machine. But as soon as I try to run the client from another
machine (all linux machines on the same network) I get a socket.error
111, connection r
Hello,
Why is this?
>>> class MyTuple(tuple):
... def __getitem__(self, name):
... return tuple.__getitem__(self, name)
...
>>> data = (1,2,3,4,5)
>>> t = MyTuple(data)
>>> t[0]
Traceback (most recent call last):
File "", line 1, in ?
File "", line 3, in __getitem__
TypeError: descr
Hi,
I would like to use IDLE as interactively as I can with Emacs. In Emacs
I can send a marked region to the Python interpreter. Is there any way
to do the same thing with IDLE?
Thank you in advance
Regards
Rolf Wester
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am testing the smtp module and have the following question:
in the code below (taken from net sample) prior to adding the "Subject:"
field, the email client found the "From" and the "To". Without the
"Subject:" field on I get this:
Email client = Ev
L.S.,
I have a long command in Unix and I have to use os.system(cmd)
statement. I do the following:
cmd = '%s/mos user wmarch, cd /fa/wm/%s/%s, mkdir %s, put %s, chmod 644
%s' % (mosbin, jaar, filetype, filetype)
status = os.system(cmd)
This is not very clear, and I have to break this long
Hi Everybody,
I'm pretty new to Python and would like to ask a few questions. I have this
setup on a Fedora Core 3 box.
Python 2.3.4
wxPython-common-gtk-ansi-2.5.3.1-fc2_py2.3
mod_python-3.1.3-5
Apache/2.0.52
I have a test.py which looks like this:
from mod_python import apache
def handler(req)
Hi,
I am following a few tutorial and this howto:
*
...
What happens in the web server is a bit more complex. First, the web
server creates a "server socket".
#create an INET, STREAMing socket
serversocket = socket.sock
Hello All,
What is the python equivalent of the following statement?
while (n--)
Thank you.
-d4
--
http://mail.python.org/mailman/listinfo/python-list
hi;
i have the following piece of code:
=
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
s.bind(("",port))
s.sendto(data,(MY_GW,port))
data = s.recvfrom(1024)
data contains some instructions which i am sending to MY_GW. If the
reply arrives from the MY_GW quickl
Hi all
I'm wanting to use python to display some jpeg images, maybe present them at
a percentage of their actual size etc.
How do I display an image in Python? - I've run over Tkinter, but obviously
in all the wrong places.
Any help or sample code would be much appreciated.
Ryan
--
http://ma
does python support a C-like enum statement where one can define a
variable with prespesified range of values?
thanks
m.smadi
--
http://mail.python.org/mailman/listinfo/python-list
I have a string variable say “8023 “ and
I want to get rid of the beginning
And ending quotes.
I’ve tried different things
But haven’t had any success.
I’m definitely a python hacker and
Not an expert. Thanks.
Mark
--
http://mail.
I have a dictionary grp that has lists
for each element ( excuse my terminology if it’s
incorrect).
So gname might be automobiles, finance, construction etc
and grp[gname] is a list and this list
has elements that are strings
such as [“AAA”,”BBB”,”AAA”,”CCC”]
Is there a quick w
Hello.
It's not quite clear from the chart; I'd like to know if it's kosher to
announce the creation of a Python-oriented blog on
comp.lang.python.announce ?
TIA
--
There's no trick to being a humorist when you have the whole government
working for you.
-- Will Rodgers
--
http
AMK, thanks for your work on PyZeroConf!
Using PyZeroConf 0.12.
I'm seeing an issue with the Browser.py code. I am scanning for printers
using:
type = "_pdl-datastream._tcp.local."
The list of printers is returned, but every call to getServiceInfo() in
the Listener objectresults in a timeout and
#!/usr/local/bin/python
import sys
print "1.\tDo Something"
print "2.\tDo Something"
print "3.\tDo Something"
print "4.\tDo Something"
print "5.\tDo Something"
print "6.\tExit"
choice=raw_input("Please Enter Choice: ")
if int(choice)==1:
print "Here"
else:
pass
if int(choice)==2:
else:
Hello,
How do i create two memory mapped buffers(mmap) and pass an index to
select which one needs to be populated?
Is it possible to define the size of the buffer?
-SB
--
http://mail.python.org/mailman/listinfo/python-list
I heard that python or other script languages can be used as game scripting..
Actually It's so hard to understand what that means for newbies like me?
What's mean being used as game script?
Could show me simple example like 'hello world'?
I'll be appreciated..
--
http://mail.python.org/mailman/l
I have the code that import the xml dom module:
import xml.dom.minido
that works OK. But the freeze version keeps getting me this error:
ImportError: No module named dom
I run freeze this way:
freeze -q -E my.py
any idea and suggestion ?
thanks
tan
--
http://mail.python.org/mailman/lis
Hi,
I am semi new to Python. Here is my problem : I have a list of 100
random integers. I want to be able to construct a histogram out of the
data. So I want to know how many 70's, 71's, etc. I can't figure out
how to do this. A dictionary is supposedly can do key value pairs
right? I want to be
I've a simple question. Why the following:
words = "[EMAIL PROTECTED]@^%[wordA] [EMAIL PROTECTED]".split('[EMAIL
PROTECTED]&*()_+-=[]{},./')
doesn't work? The length of the result vector is 1.
I'm using ActivePython 2.4
Alex
--
http://mail.python.org/mailman/listinfo/python-list
>>> import sys
>>> class stuff:
... things = []
... def write(self, string):
... self.things.append(string)
...
>>> def_stdout = sys.stdout
>>> sys.stdout = stuff()
>>> print 'this is a string.'
>>> print 'This is another string.'
>>> sys.stdout = def_stdout
>>> print stuf
I am creating a very simple GUI with one Entry widget and
one Button. The purpose of the Button widget is to Browse for
a file using tkFileDialog.askopenfilename().
I bind the button to a handler which spawns a tkFileDialog. This
works but the button __stays depressed__ after the handler returns!
If I try
>>> 2 < array([1,2,3])
I get:
array([0, 0, 1], type=Bool)
which is pretty slick, However if I set
>>> q = 2 < array([1,2,3])
>>> q and q
I get a runtime error: "An array doesn't make sense as a truth value."
So.. why not? It seems to me that if I could vectorize logical
expressions
I'm trying to understand exception handling better and have a question I
haven't been able to find an answer too. Which probably means It won't
work, but...
Do exceptions that take place get stored in a stack or list someplace?
For example in:
try:
tr
Hello,
is this call assumed to be True in any case?
result = type(SomeClass) is SomeClass
I've written a proxy class which shadows a real object. If you call
type(proxyobj) it returns the type of the proxyobject and not the type
of the shadowed object. Example:
p = proxy(shadowobj())
result1 =
Hi,
I need some help on using ClientForm to post to cgi and getting
response. I have done this many times and it worked very well until
now. I have contacted the webmaster of the page I'm interested in an
this is the response I got:
> Indeed, a simple wget does _not_ do the trick for
> our servers
Hello All!
I'am using eric3 IDE under win32 (snapshot 2005-04-10), and have a trouble. I
use this code:
print "enter q to quit, or smthing else to continue"
while not sys.stdin.readline()=="q":
smthing(else)
I can't run this code to debug in eric3. The questions are - how to fix i
Привет Magnus!
31 мая 2005 в 13:46, Magnus Lycka в своем письме к All писал:
ML> The readline method includes the whole line, including the
ML> linefeed character if you press q followed by ENTER. If you
ML> change it to...
ML> while not sys.stdin.readline()=="q\n":
ps. I'am usually u
Привет F.!
31 мая 2005 в 06:08, F. Petitjean в своем письме к All писал:
>> I'am using eric3 IDE under win32 (snapshot 2005-04-10), and have a
>> trouble. I use this code:print "enter q to quit, or smthing else
>> to continue"while not sys.stdin.readline()=="q":
>> smthing(else)
FP>
Hi there,
I have an XML document which contains a mixture of structural nodes
(called 'section' and with unique 'id' attributes) and non-structural
nodes (called anything else). The structural elements ('section's) can
contain, as well as non-structural elements, other structural elements.
I'm doi
Hi, this email address does not exist. Please go to the site and use the
correct form to send your message.
No one has seen this message.
Thanks
Matchfinder
--
http://mail.python.org/mailman/listinfo/python-list
Can anyone show me an example of of using dis() with a traceback?
Examples of using disassemble_string() and distb() separately if
possible would be nice also.
I'm experimenting with modifying the dis module so that it returns it's
results instead of using 'print' it as it goes. I want to ma
Hi
Does anyone have some example code to create a wx dialog that apears
off screen on the bottom right hand corner and slides up into the
screen ?
Thanx
/vpr
--
http://mail.python.org/mailman/listinfo/python-list
-
A two parter newbie question I am afraid.
Am I right in thinking that using something like ...
item = a_queue.get()
print item
will not print 'item' unless or until there is an item in the queue to
retrieve. Effectively stalling the thr
Hello *,
I have one format with this structure
A {
x=1
y=3
B {
z = "something here"
}
}
C {
}
A {
x=0
y=0
B {
z = "other"
}
}
are there parsers for this kind of structure?
specially I am inter
I have a class that is a windows in a GUI
the following is the code:
class optWin:
def __init__(self):
return None
def __call__(self):
self.root = tk()
self.root.title("My title")
self.root.mainloop()
return None
1)Why doesn't this work when I go
Hi, ive just started playing around with python and wondered if someone
could poing me in the right way here.
I have a xmlrpc server simple script:
Server script:
import SimpleXMLRPCServer
class tpo:
def retTPOXML():
theFile=open('tpo.xml')
try:
Is there any way to either restrict the number of variables displayed in the
Globals or Locals section. It is a pain having to search through this list
all of the time just to look at the values of variables in my program.
Bryan
--
http://mail.python.org/mailman/listinfo/python-list
IDLE doesn't seem to honor PYTHONSTARTUP environment variable nor
sitecustomize.py
How do you then customize in IDLE?
(basically I want to execute the statement
from btools import *
each time I restart IDLEs Python Shell)
--
http://mail.python.org/mailman/listinfo/python-list
I have an application that needs to create and delete
records in a Berkeley DB version 1.85 database.
If I use the bsdddb185 module I dont see any
of the record manipulation methods in there that
are available in the newer bsddb module.
(put(), get(), pop() etc)
I know the docs say that one should
What's the best way of converting this:
'hide\\?http://www.dedasys.com/articles/programming_language_economics.html\x012005-07-20
14:48'
...to something easily usable in a python CGI script?
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Has anyone looked at or used vb2py lately?
I'm looking at doing some conversion work and it's awfully out of date.
Any other information on the subject would be welcome.
--
Steve
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to learn Python and I have a few questions.
I have created a Class that is essentially a canvas with a red
background. After creation I want to change the background to green.
However I am having problems doing this.
Here is my code:
from Tkinter import *
class MyApp:
def __init
Target audience is little or no programming experience.
I have a win32 only library I need to write an installer for. As part of the
installation it must:
1.. find where a program is installed
2.. copy a file to the directory
3.. add the directory to the pythonpath and change a ini file.
4.. add
i have this program
===
from sys import *
import math
import math, Numeric
from code import *
from string import *
from math import *
from dataSet import *
from string import *
def drawAsciiFile():
_fileName=str(argv[1])
__localdataSet=DataSet(_fileName)
#_PlotCols=str
I was wondering if there was a way to extract everyting in the url
after the "?" question mark in one go.
I have a search page and a results page, and I want the results page to
be able to keep a history of what searches have been performed, but
there is always a different number of se
Title: Tkinter question
I'm sure there must be a way to do this, but I can't figure it out for the life of me… I'm writing a program where I would like to use a button's text field as part of an if statement. I set up my button like this:
i = [ "7", "
Hopefully someone can help me out here. It's probably super simple but
how do you select multiple items in a treeview? I have
gtk.SELECTION_MULTIPLE set but of course that was enough. I have tried
catching the ctrl button press but still nothing. Perhaps there is a
better place to ask but I tho
Title: Tkinter Question
Thanks for all the help guys… I'm a bit confused as to the inner workings of the Tkinter system (I'm both a Python and a GUI n00b). I was hoping that by slapping the x on button python was doing some cool dynamic variable creation (i.e. creating 9 variab
Hi,
Just curious:
>>> import thread
>>> help(thread.start_new_thread)
. . .
start_new_thread(function, args[, kwargs])
. . .
Second argument is mandatory. Is it incidental or for a reason?
- kv
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I'm experiencing problems with a regular expression and I can't figure
out which words I use when googling. I read the python documentation for
the re module multiple times now but still no idea what I'm doing wrong.
What I want to do:
- Extract all digits (\d) in a string.
- Digits are
Hello,
Very new to python, so a noob question. When I've written stuff in
JavaScript or MEL in the past, I've always adopted the variable naming
convention of using a $ as the first character (no, I don't use perl,
never have). Not possible in python. What are some good optio
I've used python for a while now, and am startting to dig into threads
and sockets (using asyncore/asynchat). Through all this, I've been
using the -v option on python to generate verbose output and try to
pinpoint any potential problems...however, one warning is eluding me as
to it's cause/resolut
Hi,
I am using pexpect to spawn an interactive program and wait for
particular string in its output. It works fine but once I get this
required information, I really don't care about the child process
anymore. I would effectively want to "detach" from it. Is there any way
to do such thing in pexpe
when I type sys.ps2 after import sys,
I got the message like:
Traceback (most recent call last):
File "", line 1, in -toplevel-
sys.ps2
AttributeError: 'module' object has no attribute 'ps2'
why does it happen?
--
http://mail.python.org/mailman/listinfo/python-list
see the answer on your previous post (
http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/8e132d9c734907b/87fd1f579a362e71?q=&rnum=2&hl=en#87fd1f579a362e71),
to get an interactive session open a command window and type ' python'
--
http://mail.python.org/mailman/listinfo/pytho
Hi,
Are there any benefits in using a frozenset over a set, other than it
being immutable?
Will McGugan
--
http://www.willmcgugan.com
"".join({'*':'@','^':'.'}.get(c,0) or chr(97+(ord(c)-84)%26) for c in
"jvyy*jvyyzpthtna^pbz")
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm trying to write a small installer for a server. But this program
should be able to run in the future under heterogenous environments and
os (at least linux/windows). I mean, the install will be done either in
text mode or curses or gtk or tk, either in debian or windows 2000 and
so on...
Does a call to file.readlines() reads all lines at once in the memory?
Are the any reasons, from the performance point of view, to prefer
*while* loop with readline() to *for* loop with readlines()?
--
http://mail.python.org/mailman/listinfo/python-list
hello NG,
consider this code
>>> def timelogger(f):
... def wrapper(*a,**kw):
... print "started at %s" % time.ctime()
... t0 = time.time()
... f(*a, **kw)
... t1 = time.time()
... print "ended at %s" % time.ctime()
...
Hi. I am working through some tutorials on unicode and am hoping that
someone can help explain this for me. I am on mac platform using python
2.4.1 at the moment. I am experimenting with unicode with the 3/4 symbol.
I want to prepare strings for db storage that come from normal Windows
machin
Hello
python 2.4
I want connect to another linux machine via ssl ,
after password entry execute :
cat /home/myfile.txt
and return the result into a list for further processing
then close the connection
What is the safest and best way to do this ?
Db
--
http://mail.python.org/mailman/listinf
I have a list of IP addresses I am testing with socket.gethostbyaddr().
For the most part, I am able to get a hostname returned to me when I
run gethostbyaddr(). I am also hoping this will allow me to tell if a
computer is up or down. However, in my environment, I am finding that I
am able to get a
Hi,
I just installed py2exe to create a binary of my Python script.
However, py2exe does not seem to create a binary from my .py script.
This is what I have done:
I create a setup.py script:
"
# setup.py
from distutils.core import setup
import py2exe
setup(name="APP1", scripts=["C:\\Python24\\_AP
I know this is probably a very simple question, but I am building a
program that is now at about 2400 lines of code in the main module. I
need to break it up, however, there are certain variables that I would
like to use among all of them, namely the TKinter background. It's
build using tk
In file A, I have an instance of a class and then I import file B
(import fileB as fb). In file B, I need to access file A's class
instance. Is there anyway I can do this? (I hope that was descriptive
enough :\)
-Wes
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have a list that contains nodes from a tree. Each node is a class
instance, but I'll use dictionary here to simplify the example.
So the list looks like this:
[
{'id': 1,
'name': 'Parent node',
'ord_number': 1,
'parent_id': 0,
'url': '/parentnode/'},
{'id': 2,
'name': 'My node',
'ord_number'
When I add an object created locally to a mapping or sequence (that will
be returned from a function into an running instance of the Python
interpreter), I need to call Py_DECREF on the object, right?
Unfortunately, I really feel like the following code leaks memory...
--- for example ---
PyObjec
I don't understand why the two REs produce a different result. I read
the RE guide but still I can't seem to figure it out.
>>> t
'echo user=name password=pass path="/ret files"\r\n'
>>> re.findall(r'(?<=\s)[^=]+=((?:".*")|(?:\S*))(?=\s)', t)
['name', 'pass', '"/ret files"']
>>> re.findall(r'(
I have a file that contains many lines, each of which consists of a string
of comma-separated variables, mostly floats but some strings. Each line
looks like an obvious tuple to me. How do I save each line of this file as a
tuple rather than a string? Or, is that the right way to go?
Thank you.
How do you execute a .py in Linux with KDE? If I double click on my
program it opens Kwrite, for editing.
--
http://mail.python.org/mailman/listinfo/python-list
Double clicking python.exe will give you the command line version. To
run IDLE, click Start -> Programs -> Python 2.x -> IDLE.
pythonw.exe is useful for running GUI scripts. In Windows there are two
types of programs: command line and gui programs. python.exe is the
command line version. Su
Much more useful stuff for beginners is here:
http://wiki.python.org/moin/BeginnersGuide
--
http://mail.python.org/mailman/listinfo/python-list
I would like to know how to install
Qt3 for following setup
Already Installed :
Suse 9.2 64 version
Python 2.3 (for 64) lives in /usr/bin/python2.3
Qt3 (for Python 2.3)
Python 2.4 (for 32) lives in /usr/local/bin/python2.4
Want to install
Qt3 (for Python 2.4)
without messing up my existing ins
I am trying to make a customized install script for an extension module
using the distutils.ccompiler class.
I want to embed an existing makefile for the C libraries into the Python
setup script, but I am not sure what's the right way to do it...
E.g., say I want to compile a project as:
gcc -
How how can I install my .mo files from a distutil script into its
default location?
sys.prefix + os.sep + 'share' + os.sep + 'locale'
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I need to get the date and time under Windows and Linux but need the
information visible to the user (cannot find my words) not the sytem
information (ex: a PC setup on greenwich but the date/time displayed are
relative to some other place.
Regards,
Philippe
--
http://mail.python.org/mailm
Title: namespace question
Hi all,
I'm confused by namespaces in python, specifically using the global keyword. I'm able to access and modify a global variable from a function if the function is defined in the same module but not if the function is defined in a different module:
I am trying to port a Delphi database application
to python on linux with a firebird database backend
and I am using pythoncard to recreate the gui.
I will have about 25 delphi forms to
be recreated and I would like to know
what is the best way to call them up
from within each other .
There is a m
Hi, I'm doing a sort of symbolic linking app in Windows for my own
enjoyment, and figured I would do it in python for the same reason +
learning the language.
The following functions could obviously do with some refactoring. One
obvious thing would be to make wordsetter and wordsforfolder more
gen
L.S.,
I have read all replays about web development with python. I would agree
with somebody who have said that web design is depends on specific
requirements. I would like to develop some in which the animation is
well important. It will be an animation of a radar file. I have looked
for a lot
Hello!
I have a question for the developer[s] of enumerate(). Consider the
following code:
for x,y in coords(dots):
print x, y
When I want to iterate over enumerated sequence I expect this to work:
for i,x,y in enumerate(coords(dots)):
print i, x, y
Unfortunately, it doesn't =(
1 - 100 of 2013 matches
Mail list logo