quot;credits" or "license" for more information.
>>> import itertools
>>> a = list(itertools.chain((1,2,3),(4,5)))
>>> a
[1, 2, 3, 4, 5]
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
this selective copying?
You could test f as you loop over the files to ensure it ends '.txt'.
Emile
Thanks in advance for the hints.
Best,
Kumar.
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 01 17:05:07 2016
@author: anatta
"""
import os
imp
inner tuples to lists --
tuples = [(1,2,3),('a','b','c'),('12/12/2009','2/4/2014','3/4/200')]
lists =map(list,tuples)
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
is not properly configured to allow mongod traffic into it.
Talk to the machines firewall administrator.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 11/27/2015 12:50 PM, marcus lütolf wrote:
dear pythonistas,
thanks for your very valuable help.
I am struggling with a simple piece of code:
x = Marcus
print '{0} {1} x'.format('a', '=')
You're almost there -
print '{0} {1} {2}'.format
On 10/19/2015 3:04 PM, Alex Kleider wrote:
On 2015-10-19 13:08, Emile van Sebille wrote:
This looks like the list of identified issues:
https://bitbucket.org/pypa/pypi/issues
Browse through and see if anything looks interesting/doable.
On 2015-10-19 13:34, Mark Lawrence wrote:
How
entified issues:
https://bitbucket.org/pypa/pypi/issues
Browse through and see if anything looks interesting/doable.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
)
Also, the line below continues from the last insertion -- you'll also
need to reposition the file pointer or re-open the file.
Emile
for line in file:
print line
print file.close()
##
Regards,
RD.
___
script, it is always empty - it does not display the user
input provided.
May I know why?
##
input1 = raw_input("Input1:")
file = open("check.txt", "r+")
file.write(input1 + "\n")
t
ou're looking for.
See http://www.rafekettler.com/magicmethods.html#comparisons for more info.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 10/11/2015 9:15 PM, Fast Primes wrote:
If so, could someone present an example?
target = open(target,'wb')
for source in mediafilelist:
target.write(open(source,'rb').read())
But you probably want something diff
; 1', ' 95'],
['5', ' jorgen', ' 1', ' 99’]] (it continues) from a text file.
However, what I am trying to do take the indexes of
thelist[0][1]
which has a value of 'james' (being index 1 of list 0)
and theist[0][3]
which has
, get that
data and write all 12 fields to a new dictionary. When done, write the
results to the output file.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
ectly. How do I fix this problem so the programs are able to
run on my Mac.
Start by providing a complete copy-n-paste of the screen when the error
occurs. That normally provides enough detail to diagnose the issue.
Emile
___
Tutor maillist - Tuto
quot;that seems reasonable")) if time<=2
else print ("get a life")
Check your parens -- they're mismatched.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
internal server where we
have only approved compatible sources/packages.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
the global.
Not any more -- it's a local variable because the assignment, while not
executed, exists.
If that is changed inside the function, doesn't it change
the global?
Only if you include the globals statement before the variable is referenced.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
#x27;...
As Peter noted, somewhere within override_defaults there's an assignment
to it. Changing to
def override_defaults(top_directory=top_directory):
should initialize it in case the assignment path isn't processed.
Emile
___
Tut
ldn’t assemble your query using Python’s string
operations because doing so is insecure; it makes your program
vulnerable to an SQL injection attack ..."
See http://bobby-tables.com/ for more info.
Emile
___
Tutor maillist - Tutor@python.org
To unsu
valuation as a number.
Consider this:
def sq1(x):
sgn = int(x<0)
return sgn*abs(x)**2
That's effectively what the parser does.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 8/10/2015 10:07 AM, Alan Gauld wrote:
PS.
What is SDSU?
San Diego State University I'd guess.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
which
includes all the updates that have taken place on the website in the last
24 hours.
I'd normally use wget to retrieve tgz files and not a browser.
Emile
So, when I use urlopen on the same url, & I try to read it, all I get is
gibberish.
Any help, please ?
If I am unable to solv
tals of
python in a time tested way.
See https://docs.python.org/2/tutorial/ for python2 or
https://docs.python.org/3/tutorial/ for python3.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.pyt
: how would you write the following as a python function
using valid python mathematical expressions:
Your post ends prematurely without the example to be coded, but a google
search for "Schecter function in python" yields a variety of hits. Have
you checked
e "give a man a fish" approach to help; a magic
black box to do the job for him.
Sometimes a fish of three or four lines that replaces a 20 line effort
might be better considered as a solution to be teased apart and
understood.
Emile
___
On 8/1/2015 4:21 PM, Ltc Hotspot wrote:
Hi Emile,
Question: What is the source of the line 7 syntax: mbox.split?
I read mbox from the file. eg,
mbox = open("mbox-short.txt",'r').read()
and it looks to me that if you insert the above in front of the for loop
belo
utput?
Because there are 54 lines that start with 'From'.
As I noted in looking at your source data, for each email there's a
'From ' and a 'From:' -- you'd get the right answer checking only for
startswith('From ')
Emile
Here is the latest
I am guessing it has to do with my
syntax? any suggestions, please?
Python executes as it processes the file, so that open_existing_file
must have been previously defined before you can refer to it. Try
moving that def block in front of main and you'll likely be OK (assuming
no other issues)
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
du
gsil...@umich.edu
wagne...@iupui.edu
zq...@umich.edu
antra...@caret.cam.ac.uk
gopal.ramasammyc...@gmail.com
david.horw...@uct.ac.za
david.horw...@uct.ac.za
stephen.marqu...@uct.ac.za
lo...@media.berkeley.edu
lo...@media.berkeley.edu
r...@media.berkeley.edu
c...@iupui.edu
c...@iupui.edu
c...@iu
umans reading the code that need to change it.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
27;re
parsing it'll help us identify what the program will need to be prepared
to handle.
Emile
On 7/31/2015 5:26 PM, Ltc Hotspot wrote:
Hi Mark,
Desired output on execution of the script:
stephen.marqu...@uct.ac.za
lo...@media.berkeley.edu
zq...@umich.edu
rjl...@iupui.edu
zq...@umi
.split()
> 9 line4 = line3[1]
10 addresses.add(line4)
11 count = count + 1
IndexError: list index out of range
Because line3 is not sub-scriptable.
Have you examined what line3 holds when the error occurs?
Em
27;
>>> count = 0
>>> for line in fh:
Please paste in the contents from your screen where the error appears.
Note that in my example the open line complains about fname not existing
so I'm getting and IOError, and if the issue were with open, as per the
example with xxope
of showing those docstrings at the Python prompt?
Are you asking about help? as in:
>>> help(get_value)
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
ut and paste
into the interpreter.
eg
---8<---8<---8<---8<---8<---8<---
import sys
for ii in sys.path:
print ii
---8<---8<---8<---8<---8<---8<---
YMMV,
Emile
___
Tutor maillist - Tutor@python.or
number=int(input("Enter the number which u want to check for odd and even
:"))
You're probably seeing the error here, which is outside your try/except
block, hence the except not working as you expect.
try :
Emile
___
Tut
You're more likely to get an appropriate response if you review
http://catb.org/~esr/faqs/smart-questions.html and then ask.
Emile
On 6/23/2015 10:13 AM, Gupta, Manaswini Kat wrote:
From: Gupta, Manaswini Kat
Sent: Tuesday, June 23, 2015 10:42 PM
To: 'tutor-ow...@python.org
On 5/21/2015 9:28 AM, Albert-Jan Roskam via Tutor wrote:
I just created an alias for this:
alias hidepycs="ls *.py[co] > .hidden"
Close -- try
alias ls='ls --hide=*.py[co]'
and when you want to see them use ls -a.
Emile
___
gt;>> id(20)
7515584L
>>> id(10+10)
7515584L
>>> id(19+1)
7515584L
Compare to:
def testid(K=100):
K += 10
return 'the ID is', id(K), K
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 4/6/2015 12:42 PM, Dave Angel wrote:
On 04/06/2015 03:20 PM, Emile van Sebille wrote:
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> d = {
pass a particular dictionary value in a
function? Or does it require a different form to do so?
Maybe this form helps:
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>> a[1][1]=1
>>> a
[[0, 0, 0], [0, 1, 0], [0, 0, 0]]
>>>
hth,
Emile
a
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
a[0][0]=1
a
[[1, 0, 0], [1, 0, 0], [1, 0, 0]]
The code assigned to "1" a(0,0), a(1,0) and a(2,0).
It was expected: [[1, 0, 0], [0, 0, 0], [0, 0,
On 4/2/2015 4:22 AM, Dave Angel wrote:
There was somewhere in one of the books a list of 'good practice,'
including an item something like:
Solve the right problem.
There's a world of wisdom in that one alone.
+1
Emile
___
On 2/19/2015 3:10 PM, Alan Gauld wrote:
On 19/02/15 22:50, Emile van Sebille wrote:
if cell.endswith(suffix, 14, 16) is False:
... so they'll never end with numeric values. Further, "".endswith()
accepts only one argument so you ought to get an error on this line.
Sorr
dict['Cell'] = site
dict[band] = dl_prb_utl
inFileOne.close();
Perhaps if you provide a sample of what the contents of inFileOne look
like and what you want dict to look like after each iteration we'd get a
better idea of what you're trying to accomplish. As it is, it'd likely
take someone who recognizes the problem domain to shed light on this.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 2/19/2015 9:23 AM, rakesh sharma wrote:
Greetings !!
Hi all,
what the meaning of the line at the start of the python file
__author__ = "user"
Googling __author__ provides lots of relevant info.
Emile
___
Tutor maillist - Tutor@pyt
On 2/19/2015 1:51 AM, James Chapman wrote:
No one should *_EVER_ *be discouraged to ask a question they
do not know
have not found
the answer to.
Learning where to look and how to ask are likely more important skills
for a programmer than learning any one specific language.
Emile
On 2/3/2015 1:12 PM, Jugurtha Hadjar wrote:
Hello,
I was writing something and thought: Since the class had some
'constants', and multiple instances would be created, I assume that each
instance would have its own data. So this would mean duplication of the
same constants? If so, I thought why n
ython scripts that incorporate "LAME" for modifying audio files.
Anything of that nature.
As I learn Python, I would like to create Python utilities.
I'm hoping there is some learning material that might lead me in that
direction.
Sincere thanks
d
Check out http://it-ebooks.i
ameter for the sum builtin -- this sum
function comes from numpy. See
http://docs.scipy.org/doc/numpy/reference/generated/numpy.sum.html for
details.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https
On 9/2/2014 7:01 AM, Whees Northbee wrote:
If all of these confusing, I'll simplify the problem, I need to know if a point
(x,y) exactly at a line where line is (ax1,ay) to (ax2,ay)..
Can someone tell me how??
if ax1https://mail.python.org/mailman/listinfo/tutor
On 8/23/2014 7:16 AM, Mimi Ou Yang wrote:
age = input("K")
age = int(age)
if (age == 1) or (age == 2) or (age == 3) or (age == 4):
print ("LOL")
else:
print ("K")
Is there a shorter way to do this program???
print ('LOL','K')[int(input("k"))>4]
___
I think would be to call these things:
> id, x, y
>
Minor nit: better still would be:
code, x, y
so as not to shadow the builtin id
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
I think would be to call these things:
> id, x, y
>
Minor nit: better still would be:
code, x, y
so as not to shadow the builtin id
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 08/08/2014 10:58 AM, emile wrote:
On 08/08/2014 01:50 AM, Greg Markham wrote:
die_1 = """
.-.
| |
| o |
| |
`-'"""
die_2 = """
.-.
|o|
| |
|o|
`-'"""
Not quite sure how this
On 08/08/2014 01:50 AM, Greg Markham wrote:
die_1 = """
.-.
| |
| o |
| |
`-'"""
die_2 = """
.-.
|o|
| |
|o|
`-'"""
I'll leave the cleanup as an exercise for you.
HTH,
Emile
You might try using '"%s"' % filename so that the name is within quotes
for the shell environment.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Comma Separated Value (CSV) files...
and then load it into a dictionary.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
#x27;s as secure and reliable as we need
it to be.
:)
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
e must be an integer")
TypeError: bufsize must be an integer
Any suggestions, please?
Pass in the formatted string using the python datetime module.
datetime.datetime.today().strftime("%y-%m-%d_%H-%M")
see https://docs.python.org/2/library/datetime.html for more details.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
he options tab of the
cmd.exe properties.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 7/5/2014 11:40 AM, Deb Wyatt wrote:
I'd be using a news reader if accessing
news was still free.
Try news.gmane.org.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/ma
obably of similar quality.
Well, in that case I'd put forward effbot's guide to the python standard
library, particularly for python 2.x, but most of the examples are still
valid. I paid for it back in the day, but now it's available on-line at
http://effbot.org/librarybook/
Emile
ff finally. >sigh<
Hi Emile,
I do not know what you are referring to. Can you be more specific?
Are you referring to comp.lang.python, or a different newsgroup, or
something else entirely? Are you talking about a particular mailing
list?
See http://en.wikipedia.org/wiki/Google_Groups fo
ff finally. >sigh<
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
e. so you've likely done something like:
import xyz
xyz(a,b,c,d,e...,rationvtorc)
when you should be doing something like:
import xyz
xyz.callable(a,b,c,d,e...,rationvtorc)
HTH,
Emile
528
529 plotDataV2(cycles, AdvancedCapital, lnAdvancedCapital,
RealisedCapital,
grade = "C"
elif curraverage >= 60: grade = "D"
else: grade = "F"
lettergrades.append(grade)
HTH,
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
How far have you gotten? Post your code to show us where you're at and
we can point you in the right direction.
Emile
On 5/12/2014 2:44 PM, KIRAN D.S. wrote:
Hi,
I have a UNIX shell script that:
a. lists out the Hostname-IP DNS mappings
b. checks whether the machine is pingable
n reverse:
reverse(...)
L.reverse() -- reverse *IN PLACE*
>>>
The *IN PLACE* tells me.
HTH,
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 3/21/2014 3:40 PM, Steven D'Aprano wrote:
a = b
This assigns the value to b. So if b was 4, now a is also 4.
Steven means 'assigns the value to a' here. For anyone looking down the
line...
___
Tutor maillist - Tutor@python.org
To uns
We can't take you off the list -- see the line below that says:
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Emile
On 3/20/2014 3:43 PM, Art Caton wrote:
artca...@gmail.com no longer requests your "Tutor Request&q
While there are ways of getting at the caller using introspection, there
are no reliable ways of doing so and you would do well to rethink the
need and take an alternate course such as passing a parameter in.
Suppose the following:
funcC=funcB
what would you want to see?
Emile
On 3/6/2014
Hi Shweta,
You'll likely get a better response posting this question on the main
python list -- the Tutor list is primarily for teaching python
Emile
On 3/5/2014 4:49 AM, Shweta Kaushik wrote:
Hi,
Please find code used to create dll:
*_add_1.cpp_*
#include "add_1.h"
usin
On 2/18/2014 11:42 AM, Mark Lawrence wrote:
On 18/02/2014 18:03, Steve Willoughby wrote:
Because the regular expression means “match an angle-bracket
Please do not top post on this list.
Appropriate trimming is also appreciated.
Emile
13:47:21)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a100 = list(range(100))
>>> a100[::10]
[0, 10, 20, 30, 40, 50, 60, 70, 80, 90]
>>>
HTH,
, 09:35:42)
[GCC 2.96 2731 (Red Hat Linux 7.1 2.96-85)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys as s
>>> m = s
>>> id(m)
1075446500
>>>
than running the program
I presume there is no way around this.
Autocompletion is provided by the editor you're using. You'll need to
place some more context around this question to get appropriate responses.
Emile
___
Tutor maillist - T
e's python
distribution which includes Mark Hammond's windows extensions. Then
read through the docs on com servers. It's been a while since I've done
so, but I expect that should get you going.
Emile
___
Tutor maillist - Tutor@pytho
posts won't be quite so diluted...
Emile
In which case, I can only suggest: please read and respond to what
other people are asking you. Otherwise, it defeats the purpose of
asking a question: that is, to communicate.
___
Tutor maillist -
expressions, but always include the full traceback as that tells us
where to start looking for the issue.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
b: a=a.replace(ii,"")
while ii+ii in a: a=a.replace(ii+ii,ii)
return b in a
Show me another. :)
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
ii not in b: a=a.replace(ii,"")
return b in a
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
party module
that the django users are having problems with.
YMMV,
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
the adding part, and the
palindrome checking part), but apparently I can't help but blow up my
machine...
Without seeing your code it's hard to be specific, but it's obvious
you'll need to rethink your approach. :)
Emile
___
Tutor
be aware that it could impact other parts
of your porgram as well, particularly if this is a read in data set from
a non-local region. Also, in places where commas are used as decimal
points, it's also common to use periods as commas:
>>> print
On 12/23/2013 07:11 AM, Steven D'Aprano wrote:
Are you now even a
*tiny* bit moved to use a single space after full stops?)
No. See http://www.heracliteanriver.com/?p=324
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or c
#x27;payrate'
so the proper way to call the function would be:
calcandprint (86, 11.50) which would (presumably) calculate and print
the result of having worked 86 hours at a payrate of 11.50/hr
But-I-didn't-read-all-your-code-ly y'rs,
Emile
On 11/1/2013 11:43 AM, Jenny Allar wr
k to fully integrate and test each additional
data source.
Hope this helps,
Emile
On 10/24/2013 1:44 PM, Ismar Sehic wrote:> hello, me again - the guy
with a (mis)fortune of having to deal with a
> lot of company's in and outgoing xml.I guess they just like xml as a
> data
Hi Boris,
Read up on the trig functions in the math module.
http://docs.python.org/2/library/math.html#trigonometric-functions
Emile
On 10/11/2013 6:18 PM, Boris Vladimir Comi wrote:
Boris Vladimir Comi escrito:
I found a way to create daily averages of many variables, for example of
a
On 9/6/2013 3:47 AM, Alan Gauld wrote:
This is somewhat off topic so replies offlist may be appropriate.
I can fix that. :)
Are you familiar with pyjs, which provides python to javascript
capabilities? (see http://pyjs.org/)
Is there any reason to prefer one over the other?
Emile
I
perhaps pointing to
http://www.catb.org/esr/faqs/smart-questions.html#intro is a better answer?
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
dn't write esr and Rick Moen to request changes -- I
expect you'd be pointed to
http://www.catb.org/esr/faqs/smart-questions.html#disclaimer if you got
a reply at all.
Emile
On 8/26/2013 12:41 PM, bob gailer wrote:
Hi fellow tutors and helpers. I have a reaction to
http://www.cat
I recently automated a scheduled task to retrieve content from an https
site that uses javascript for site interaction using iMacros, ahk and
the related firefox extension. Not a python solution, but it got the
job done.
Emile
On 4/26/2013 8:28 AM, Frank Schiro wrote:
Pywinauto is not
se of self paired words
that aren't pairs. (pop,wow,mom,etc)
I got 94 distinct pairs. Which is a better result than the 124.5 pairs
I got the first pass through.
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscriptio
On 10/29/2012 3:33 AM, Ganesh Manal wrote:
Please give me sample python program that works with python31
Start with the tutorial at http://docs.python.org/3/tutorial/index.html
It'll step you through lots of sample python scripts.
Emile
___
to me that the v3.x compatible wxpython is being
rebranded as Project Phoenix
-- see http://wiki.wxpython.org/ProjectPhoenix
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/lis
und returns an empty string."
HTH,
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
the second for loop not execute at all?
The first one prints the rows of the file just fine.
The first pass also exhausts the input feed -- you'll need to rewind or
reposition the next line pointer to the start of the file and I suspect
the easiest way is to
official word is pep 8 -- http://www.python.org/dev/peps/pep-0008/
Emile
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
I try, but they just tell
> me that there is something that I'm missing here.
>
> Thanks
>
> #Code below
> a = set([1,2,3,4])
> b = set([2,3,4,5])
> c = set([3,4,5,6])
> d = set([4,5,6,7])
>
> not_a = [b,c,d]
> a.difference(not_a)
Try this as
a.difference(*no
1 - 100 of 527 matches
Mail list logo