us.
In any case, I saved your code and ran it, and did not get an error.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
https://mail.python.org/mailman/listinfo/python-list
ey do not begin with a hash sign.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
https://mail.python.org/mailman/listinfo/python-list
(). But the SQL statement only asks for one parameter, so sqlite
is wondering where it should put the other 39 items.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey
initialisation i.e. nothing, as the __init__ function is not part of the
class.
Ooh, I like your guess better. :-)
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward
of the LineLogic
class, one of them lacking the probe attribute.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, The Gashlycrumb Tinies
--
https
- Mark.
Then use the mouse to select a rectangular area of text.
Then right-click the title bar again and select Edit - Copy.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
of flatten_dict().)
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, The Gashlycrumb Tinies
--
https://mail.python.org/mailman/listinfo/python-list
of that function.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, The Gashlycrumb Tinies
--
https://mail.python.org/mailman/listinfo/python-list
?
Python functions can return lists, tuples, dictionaries, or any other
container-like object.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, The Gashlycrumb
, and compare the two objects.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
return any data; it just relocates the file
pointer. You still have to do a read operation to get data from the
new location.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https
'print bar.var'.
Your program has those statements in that order, so they are printed
in that order. Why did you expect a different order?
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter
to update. Should
I be able to uninstall the old version each time?
Yes, assuming you have no other software that depends on the older
Python version.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch
appreciated
big_string = ', '.join(my_list[1:])
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
SIMPLEPACKAGE;
/
Any ideas what I'm doing wrong?
Is RETURN INTEGER; allowed?
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
it
to do. As far as I can see, every possible logic branch ends up with a
call to cameraman().
The kid function doesn't call instructions, but the last line of your
script does call it, unconditionally.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor
of _builtins_.
-3 .abs()
AttributeError: 'int' object has no attribute 'abs'
Integer objects don't have a built-in function named abs(). If you
want the absolute value of an integer, call abs directly, like so:
abs(-3)
--
John Gordon Imagine what it must be like for a real medical doctor
access to your main program's process ID.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
in the first place...)
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
modifications, but I thought it
was allowed for things like logging out of your session.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python
print(%s--%s % (serving_cell.attrib['id'], neighbor.attrib['id']))
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
items, not sequences, and you
can't do that.
Glancing over the code it appears that you're saving the cell contents
in two lists, x and y. Perhaps you meant to call zip on those lists
instead of on keys and values?
--
John Gordon Imagine what it must be like for a real medical doctor
with SOAP requests. It may be that
simple.
The API does provide some SOAP calls, but the specific call I'm using is
REST. Is there a corresponding header I should use?
Thanks.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House
typing the same command,
'pip install HTML5', three times, with exactly the same result each time.
Did you mean to execute the same command three times over? If so, did
you expect to get different results the second or third time?
--
John Gordon Imagine what it must be like for a real
response.content
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
. Seriously. Every line or two.
Some blank lines wouldn't hurt either.
Also it would be nice to define some of the terms you're using. What is
a blind? What does in front mean? What is a muck hand?
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.com
:
# start with an empty list
shopping_list = []
# make a 'cheese' item
cheese = ('Cheese', { 'Walmart' : 5.00,
'Publix': 5.50,
'Costco': 4.99 } )
# add cheese to the shopping list
shopping_list.append(cheese)
--
John
the loop over and read another line.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
In mailman.14733.1412914913.18130.python-l...@python.org Igor Korot
ikoro...@gmail.com writes:
sys.path.append('~/MyLib')
I.e., will '~' sign be expanded correctly?
Not as written.
Use os.path.expanduser() to get user's home directories.
--
John Gordon Imagine what it must be like
.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
is certainly a typo.
I typed everything correct,acessing http://localhost:8000 works, but
http://localhost:8000/blog/post/ gives me ' 500 Internal Server Error '.
Why?
Have you looked in the http server error log for an explanatory error
message?
--
John Gordon Imagine what it must be like
, but that doesn't seem
to be the case:
Perhaps hashlib imports some other module which has a local module of the
same name?
SHA1 has been deprecated for some time. Maybe a recent OS update finally
got rid of it altogether?
--
John Gordon Imagine what it must be like for a real medical doctor
('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1
Could there be two different versions of hashlib.py on your system?
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter
that function within your while loop.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
out of range
There are fewer than 13 items in steve, so when x reaches 13 this error
pops up.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman
was unaware of that meaning.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
display exactly where the error occurs within
the script. Which line is it?
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
anybody have
any solution? I use command prompt and gedit to learn python.
What is the script supposed to *do* with the image file?
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https
In mailman.12821.1407690877.18130.python-l...@python.org luofeiyu
elearn2...@gmail.com writes:
self.con.select(inbox)
self.con.copy(b1,[Gmail]/kc2JgQ-])
why i can not copy the first email into my important mailbox?
What happens when you run the above code? Do you get an error?
--
John
find, only tells you very basic examples,
I'm confused -- don't you *want* very basic examples?
they don't really teach you assuming you know nothing.
Try http://www.w3schools.com/xpath/xpath_intro.asp
--
John Gordon Imagine what it must be like for a real medical doctor to
gor
/19508393/python-email-parsing-issue
for a question very similar to yours. Perhaps something in the code
will help.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org
nothing
happened.
# disconnect from server
db.close()
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
could try looking at the size of the directory entry
itself. On the system I'm writing from, a freshly-created directory is
4K in size, and will grow in 4K chunks as more and more files are created
within the directory. However, the directory entry does not shrink when
files are removed.
--
John
it execute, but give unexpected results?
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
is the lowest-level class. All other classes inherit from Object.
Within a class, self is a reference to the current class instance.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https
()
Subtract the two datetime objects to obtain a timedelta object:
mydelta = now_date - user_date
Look at the days attribute to get the difference in days:
mydelta.days
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House
without the
need to escape them with a backslash, and vice-versa.
For example:
string2 = It's a beautiful day in the neighboorhood.
string1 = 'He said to me, Hello Thomas.'
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House
print gives me return values. I want to access return data
(array)and variable. How can I correctly handle it?
You can use help() and dir() to display more information about an object.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch
it actually crash?
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
get some
answers.
His post title began with Re: , so I assume it was a followup to an
(possibly expired) original post that did have context.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch
In 8bc01036-ee9e-4de9-b569-7039dcc05...@googlegroups.com funky
benjaminherna...@gmail.com writes:
What do you want the program to do?
What is it doing instead?
Do you get any error messages?
Don't just throw code at us and ask us to fix it...
--
John Gordon Imagine what it must
=devnull, stderr=subprocess.STDOUT)
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
by saying webbrowser's won't allow client to open
hyperlinks with file protocol? Of course they do.
My web browser works just fine with links such as this:
a href=file:///C:/Users/gordonj/Documents/foo.htmlfoo.html/a
--
John Gordon Imagine what it must be like for a real medical doctor to
gor
=process_local_bookmark.cgi?filename=/dir/foo.html
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
?
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
in fin:' tells it to read line-by-line.
If you want to read the entire contents, use the read() method:
file_content = fin.read()
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter
In e452de11-1615-4869-8c2a-c2e78a963...@googlegroups.com Nick Mellor
thebalance...@gmail.com writes:
No random module method is used anywhere else while this code is
executing.
Are you sure? How did you verify this?
--
John Gordon Imagine what it must be like for a real medical
% [(rnd.choice(PRODUCTS),
rnd.choice(range(10))) for r in range(rnd.randrange(7))])
Run that code sample and see if the results differ when qty is 4 vs 0.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch
;
char **envp_write;
if (envp_write envp_read)
{
memset(envp_write, 0, ((unsigned int) envp_read -
(unsigned int) envp_write));
}
I think it's complaining about casting the char ** objects to unsigned int.
--
John Gordon
lines?
subtree = tree
for key in keys:
subtree = subtree.get(key)
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python
accumulate any items,
matching your observed output.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
execution;
b. A 'shebang' entry as the first line in the file which specifies the
program that shall be executed;
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https
options that do ... something.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
of simply printing it out (which calls repr()),
explicitly iterate over it, like this:
def display(d):
return '{'+','.join('%r: %r'%(key,d[key]) for key in sorted(d))+'}'
You could also use the OrderedDict type, which is subclass of dict that
preserves insertion order.
--
John Gordon
, but the OP wanted
to know how to fetch it from python code.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
object, which is a silly thing to sort
on. Surely you want to sort on the *result* of that function, which is
what your second print does.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter
, assertTrue, etc.) instead of raising exceptions.
Perhaps that's the issue?
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
In e73d29eb-17bb-472e-bdc4-c38ca904c...@googlegroups.com teddyb...@gmail.com
writes:
span class=dateOctober 22, 2011/span
date1 = soup.span.text
data=soup.find_all(date=value)
Try this:
soup.find_all(name=span, class=date)
--
John Gordon Imagine what it must be like for a real
occurrences of 'span class=dateMarch 5, 2014/span'
in the HTML? If so, then beautifulsoup is doing its job correctly.
It might help if you posted the sample HTML data you're working with.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch
to grab only the element you want,
like this:
t1 = test1.split(',')[0]
t2 = test2.split(',')[0]
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman
In G57Pu.24239$th2.4...@tornado.fastwebnet.it mauro ma...@gmail.com writes:
- Dictionaries and sets are both accessed by key
As far as I have used sets, they are not accessed by key.
x = set([1, 2, 'buckle my shoe'])
x
set([1, 2, 'buckle my shoe'])
1 in x
True
5 in x
False
--
John Gordon
value is doubled is
beyond my understanding. Is this a bug in the os package that comes
with Python 3.3? Anybody got a fix for it?
If there is a bug, it's much more likely to be in the webserver code that
sets the REMOTE_USER value.
--
John Gordon Imagine what it must be like
(fields[8])
# compute the averages
average1 = sum1 / 3.0
average2 = sum2 / 2.0
# display output
print '%s %f %f' % (name, average1, average2)
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House
bug reports and bugfixes.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
the
output to a file instead of the default destination?
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
doesn't the python interpreter just return
['HI, 'BOSS'] ?
This isn't a big deal, but I am just curious as to why it does this.
Because you typed 'str.upper' instead of 'str.upper()'.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House
to sell a generic hammer. Sure,
it's a little more work for the user, but it will pound any type of nail
though a variety of surfaces. I.e., it's reusable.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer
? Does anyone know what Windows setting would prevent Py=
thon IDLE from opening?=20
Try opening a command window and run Python from there; that way you'll
be able to see any error mesages that crop up.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.com
here and maybe we can help.
Or, if your program is short enough, you can just post the whole thing
here. Be sure to give an example of the unwanted output, and tell us
exactly how the program is being executed. If the program uses input
files, be sure to give us those too.
--
John Gordon
method to achieve this result.
for line in input_lines:
fields = line.split()
farm_id = fields[0]
address_num = fields[1]
address_name = ' '.join(fields[2:])
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House
.
For example;
input : 3443331123377
operation- (3)(44)()(333)(11)(2)(33)(77)
output: 34131237
input = 3443331123377
output = []
previous_ch = None
for ch in input:
if ch != previous_ch:
output.append(ch)
previous_ch = ch
print ''.join(output)
--
John
)
previous_ch = ch
sys.stdout.write('\n')
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
)
The python csv module might have a better way to do this; have a look.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
to exclude. Can be None.
args.input_file - the input file name.
args.output_file - the output file name.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org
guide me with best solution without loops ?
output_list = []
t = ['Start','End']
a = [[1,2,3,4],
[5,6,7,8]]
output_list.append('%s - %s, %s - %s' % (t[0], a[0][2], t[1], a[0][3]))
output_list.append('%s - %s, %s - %s' % (t[0], a[1][2], t[1], a[1][3]))
print output_list
--
John Gordon
the print str(e) ?
except Exception, e:
print site + is down
print str(e)
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo
mean %s instead?)
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
if you post the real code and real error message.
Don't type them from memory.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
sss.py
It is having __init__.py as blank in ccc and ddd directories. But it
still doesnot work.
What directory are you in when you run your python command? As written,
your import will only work if you're in the parent directory of ccc (or
that directory is in your PYTHONPATH.)
--
John Gordon
importable unless the directory also contains a file
named __init__.py .
Try making __init__.py files in the ccc and ddd directories. If you
don't know what to put in them, just leave them blank.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.com
In mailman.3618.1386290317.18130.python-l...@python.org tastyminerals
tastyminer...@gmail.com writes:
d= Image._getdecoder(self.mode, d, a, self.decoderconfig)
AttributeError: 'module' object has no attribute'_getdecoder'|||
Do you have your own module named Image.py?
--
John
help.
You'll have to explain more about your problem. What, exactly, is wrong?
If, as you say, the input and output is correct, then why do you say there
is a problem?
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real
TO THOSE LISTS
4. CONVERT FROM LISTS TO LONG STRINGS SO I CAN STORE SUCCESSFULLY LIST
PYTHON DATATYPE TO MYSQL SCALAR STRING.
EVERYHTIGN I TRIED FAILED.
How did it fail?
Error message?
No results at all?
Different results than you wanted? If so, how did they differ?
--
John Gordon Imagine
176.92.96.218] visit =
visit.split()
[Tue Nov 05 23:21:52 2013] [error] [client 176.92.96.218]
AttributeError: 'NoneType' object has no attribute 'split'
It appears that in the row you're fetching from the visitors table, the
'visits' column is NULL.
Your next step is track down why.
--
John
is null? According to the sample values you gave, refs
is 'Europe/Athens'.
--
John Gordon Imagine what it must be like for a real medical doctor to
gor...@panix.comwatch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list
argument for value
I dont follow why I get it when the number of arguments I am calling with the
function call match the parameters in the definition.
What type is value expected to be? A single item, a list, a dict, etc?
--
John Gordon Imagine what it must be like for a real medical
screen and saves
it to the clipboard.
For other options (such as taking a screenshot of a window or a specific
region on the screen), see
http://guides.macrumors.com/Taking_Screenshots_in_Mac_OS_X
I wonder what this has to do with Python though.
--
John Gordon Imagine what it must be like
create an object with that name,
so I'm not surprised that you get that error.
This entire block of code is conditionally executed upon __name__ being
equal to main; perhaps that condition is false when the code is run and
thus the error is never triggered.
--
John Gordon Imagine what
statements:
print The result is : ;x/y
It prints the message and then, as a separate action, it calculates the
value of x/y (and then throws that value away, because it isn't assigned
anywhere.)
Use a comma instead of a semicolon, like this:
print The result is : , x/y
--
John Gordon
101 - 200 of 490 matches
Mail list logo