on disks and move
between processes that we have running in browsers in many
places? Yes! Let's call it JSON, JavaScript Object
Notation.
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
return level
except ValueError:
pass
level = getattr(logging, l.upper(), None)
if not level:
level = defaultlevel
return level
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
-23
print('# -- f.x retrieves class value, f.y instance value')
print('f.x = %s, f.y = %s, Foo.x = %s' % (f.x, f.y, Foo.x))
print()
f.removeinstancex()
print('# -- f.x retrieves class value, f.y instance value')
print('f.x = %s, f.y = %s, Foo.x = %s' % (f.x, f.y, Foo.x))
pri
MIBMMCCO False CIMO
YOWHHOY False HO
OFHCMLIP True CFHILMOP
OFHCMLIPZ True CFHILMOP
FHCMLIP False CFHILMP
NEGBQJKR False
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
e.
Once you have the addition of items to the queue and the looping
worked out to your satisfaction, maybe you could share your progress
and there might be somebody to provide a bit more help on the next
step of your learning
>but i a stuck on how to continue
to destination from source?
if reachable:
path = nx.shortest_path(g, source, destination)
print("Path from %s to %s: %r" % (source, destination, path,))
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
653589793, 2.718281828459045
text = '''\n
Output from __str__ of POCWP.
After the first turnover, during the 'Population Of Capitals Init' cycle,
the productivities were raised from 1.0
to a specific Unit Constant Capital (UCC) for each specific c
y/functions.html#isinstance
[1] http://www.voidspace.org.uk/python/articles/duck_typing.shtml
[2]
https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
tDescription
INFO:root:Class AcceptStrings has method skipTest
INFO:root:Class AcceptStrings has method subTest
INFO:root:Class AcceptStrings has method tearDown
INFO:root:Class AcceptStrings has method tearDownClass
INFO:root:Class AcceptStrings has method test_func
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
0] https://docs.python.org/3/library/unittest.html#unittest.TestLoader
[1] https://docs.python.org/3/library/unittest.html#unittest.TestSuite
[2] https://docs.python.org/3/library/unittest.html#unittest.TestCase
[3] https://docs.python.org/3/library/unittest.html#unittest.TextTestRunner
http://www
72.20.2.3/28"'':')
You might try using the ipaddress library in the following way:
>>> i = ipaddress.ip_interface(u'172.20.2.3/28')
>>> i.ip
IPv4Address(u'172.20.2.3')
>>> i.network
IPv4Network(u'172.20.2.0/28')
>>> i.with_prefixlen
ts/pycon/2007/idiomatic/handout.html#eafp-try-except-example
[1] https://pypi.python.org/pypi/ipaddr
[2] https://docs.python.org/3/library/ipaddress.html
[3] https://docs.python.org/2/library/socket.html
https://docs.python.org/3/library/socket.html
--
Martin A. Br
t_input_not_float_raises_ValueError (__main__.BillTest) ... Not a float
>FAIL
Good luck!
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
len(args) == 3:
fname, step, sleeptime = args
step, sleeptime = int(step), int(sleeptime)
sys.exit(cli_loop_ris(fname, step=step, sleeptime=sleeptime))
else:
sys.exit('Usage: %s [ []]' % (proggie))
# -- end of file
--
ngs
on lists: https://docs.python.org/2/tutorial/introduction.html#lists
Reference: https://docs.python.org/2/library/index.html
on datatypes:
https://docs.python.org/2/library/stdtypes.html#numeric-types-int-float-long-complex
on sequences:
https://docs.python.org/2/library
nt
from operator import attrgetter
from collections import namedtuple
Pilot = namedtuple('Pilot', ['surname', 'age', 'biplane'])
aces = list()
aces.append(Pilot('Vernon', 32, 'Pander'))
aces.append(Pilot('Ehringhaus', 41, 'Curtiss'))
aces.append(Pilot('Wilkins', 28, 'Sopwith'))
aces.append(Pilot('T
error.
Given that your question was recursion, I chose to focus on that,
but I would recommend using the simplest tool for the job, and in
this case that would be the builtin function called 'len'.
But, this is a great place to ask the question you asked.
Best of luck and I hope you are en
ents of each tag,
stripped of all surrounding context.
The above snippet is really just an example to show you how easy it
is (from a coding perspective) to use lxml. You still have to make
the investment to understand how lxml processes XML and what your
data processing needs are.
Good luck in yo
ld of Python!
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
, I have seen
people use this sort of technique:
>>> from datetime import datetime as dt
>>> now = dt.now()
>>> now.strftime('%F-%T')
'2016-02-21-18:30:37'
Good luck and enjoy,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
errors.
Good luck,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
fine_in_instance()
c.oh_there_it_is()
# -- newly defined instances will get the default class attribute
d = MyClass()
d.oh_there_it_is()
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or cha
sorting, computation, calculation or
range-finding. Also, if you have a smaller block of code and data,
we may find it easier to make specific suggestions.
And, one last general comment Unless you have a specific reason
why not to do so, it's best to convert and decode inputs into a
canon
ractions and really
just want an individual thingy that that behaves like a file, but
can be constructed in memory, use StringIO (or cStringIO).
Good luck!
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
nt an individual thingy that that behaves like a file, but
>> can be constructed in memory, use StringIO (or cStringIO).
>
>Isn't option D what Danny was using to make option B? Or are you
>saying keep things even simpler?
Oh dear--yes. Apologies, Danny and boB.
To the
path(sys.argv[1])
>y = map(str.lower, path.split())
Next question: What exactly are you trying to do with that third
line? It looks confused.
Good luck,
-Martin
[0] https://docs.python.org/3/library/os.path.html#os.path.abspath
--
Martin A. Brown
h
it an experienced Windows/POSIX user trying to understand
open() in Python if it were available in the standard documentation.
Thanks for mapping this to common operating systems. I had inferred
this already, but this is a great summary.
-Martin
--
Martin A. Brown
http://linux-ip.net/
kernel).
So, take control of the data back into your own hands by taking
adavantage of the beauty of the filesystem.
Filesystem atomicity!
Good luck,
-Martin
[0] Or just about as close as conceivably possible to atomic as you
can be guaranteed in userspace applications.
--
Mart
I would like to have some Onion soup, the Crab cake, Rum and a
Caesar, please.
Good luck,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
ing a text apart by paragraph. Think about how this applies to
your problem:
http://code.activestate.com/recipes/66063-read-a-text-file-by-paragraph/#c1
N.B. The code example may not be utterly perfect, but it is
precisely the same problem that you are having.
Good luck and enjoy,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
contain anywhere from zero
keys (the value is not present in any list in the dictionary values)
OR all keys (the value is present in every list in the dictionary
values). {Whew.}
Good luck and have fun,
-Martin
--
Martin A. Brown
http://linux-ip.net/
_
orkan
faktor_1, faktor_2 = faktorisasi(n)
print faktor_1
print faktor_2
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
gies depending on what you are doing with
the software and the environment in which you are working.
Good luck and have fun with Python in 2016, since you have arrived
there before the rest of us,
-Martin
P.S. Two questions: should I buy some some YHOO stock and should I
sell my Euros?
-
ange you want to display, you don't need to mess with the axes.
See their tutorial:
http://matplotlib.org/users/pyplot_tutorial.html
Good luck and enjoy!
-Martin
[0] http://ipython.org/
[1] http://ipython.org/notebook.html
--
Martin A. Brown
http://linux-ip.net/
__
https://docs.python.org/3/tutorial/controlflow.html
If you have more specific details on what you are trying to
accomplish and/or learn, then send along those questions!
Good luck as you get started,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor ma
rovement would be to only prepend the PYTHONPATH and
required colon if there's a value to PYTHONPATH already. So, this
little beautifully obnoxious bash parameter expansion gem will
accomplish that for you:
PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}/home/alex/Py&
;)
I would, therefore write your program like this:
input1 = raw_input("Input1:")
f = open("check.txt", "w")
f.write(input1 + "\n")
f.close()
f = open("check.txt", "r")
for line in f:
he benefit, then, of your code being agnostic (or
extensible) to the serialization tool.
By the way, did you know that pandas.to_csv() [0] also exists?
-Martin
[0]
http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_csv.html
--
Martin A. Brown
http://li
. You'll see that I didn't have a mess of unsigned integers
hanging around in a file, so you can see how I generated and
stored them in write_data and gen_data).
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscr
experience in combinatorics to guide you in thinking
properly (and clearly) about this problem and that is where you are
stuck at the moment. Sorry I can't help you much further.
Good luck, Marcus,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor
-statistics
Thggere are other, richer tools in third-party libraries if you are
looking for more advanced tools. But, perhaps you only need to
start with the above.
Good luck,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor
bout my code. Note that it solves Problem B,
providing one possible example. This appears not to be what you
want. It will not enumerate all possible examples.
Good luck and enjoy the remainder of your weekend, Marcus,
-Martin
-Ursprüngliche Nachricht-
Von: Martin A. Brown [mailto:mar...@lin
IJ')
pcount = 2 # players per game
gcount = 3 # games per match
rcount = 7 # rounds (of matches)
matches = generate_rounds(players, pcount, gcount, rcount)
lo
ast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
--
Martin A. Brown
http://linux-ip.net/
___
/sftp.
Good luck,
-Martin
[0] http://www.networksorcery.com/enp/protocol/icmp/msg3.htm
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listi
d access, use ssh/scp/sftp.
Good luck,
-Martin
[0] http://www.networksorcery.com/enp/protocol/icmp/msg3.htm
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
out at the intercative prompt. Perhaps this is what
you are looking for?
>>> import random
>>> import string
>>> l = list(string.lowercase)
>>> random.sample(l, 7)
['z', 'h', 'e', 'n', 'c', 'f', 'r']
Best of luck,
-Martin
--
Martin A. Brown
http://l
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
. You will be able to figure out exactly which xpath gets
you the data you would like, and then you can drop it into your
script.
Good luck,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe
12.8 seconds to count through the loop. So,
before accounting for any work that you plan to undertake inside the
loop, you have a runtime of ~115 seconds.
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe
the variable and throwing away
anything that was there before..
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
fair sun and kill the envious moon
Who is already sick and pale with grief
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Hi there,
In [1]: help list
File ipython-input-1-823a3ff84bc4, line 1
help list
^
SyntaxError: invalid syntax.'
Question: What is the correct help command?
Try:
help(list)
Snipped from my ipython session:
In [1]: help(list)
Good luck,
-Martin
--
Martin A. Brown
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
] https://docs.python.org/2/library/difflib.html
[1] https://docs.python.org/3/library/exceptions.html#Exception
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https
!
Good luck,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
, and threatening
(which is cognate to the contemporary German word 'lauern')
And, I dairy not chase this pun any further
-Martin
[0] http://www.merriam-webster.com/dictionary/lower
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor
[0]
https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo
slapdash
answers, that this one comes as a huge surprise.)
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
?
For understanding and using a DataFrame, you'd probably be better
off asking on the pandas mailing list.
... or maybe the Pandas mailing list:
https://groups.google.com/forum/#!forum/pydata
May the Python never release you from its grip!
-Martin
--
Martin A. Brown
http://linux-ip.net
...
https://mailman-mail5.webfaction.com/listinfo/lxml
... or maybe the Pandas mailing list:
https://groups.google.com/forum/#!forum/pydata
Best of luck,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
':
import sys
validate_files(sys.argv[1:])
# -- end of file
[0] http://en.wikipedia.org/wiki/Functional_programming
[1] https://docs.python.org/2/library/tempfile.html#module-tempfile
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist
a certain
routine activity'. So, it may surprise some folk if a process died
after receiving a HUP. This may be desirable--it depends entirely
on what your software does.
Stopping and starting are hard!
-Martin
--
Martin A. Brown
http://linux-ip.net
://groups.google.com/forum/#!forum/sqlalchemy
[2] 'The IRC channel is on the Freenode network as #sqlalchemy.'
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman
on to json.dump() and json.load() to put your
data into files.
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
)) for x in values if key ==
x[0]]
[('a', 1, 2656), ('a', 5, 4510)]
Good luck,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman
that this was fixed.
Apologies!
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
clear question and letting us know your OS and
Python version, as well.
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
-are-the-differences-between-json-and-simplejson-python-modules
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
, then maybe that's a better
option for you.
If you can not do so, then take this older version of simplejson.
You are at that place of last resort to which the simplejson authors
allude.
How do you like it at that resort? Would I want to go on vacation
there?
-Martin
--
Martin A. Brown
http
= pattern.search(s,0)
while matched:
endpos = matched.end()
print(matched.group(0), matched.start(), matched.end())
matched = pattern.search(s, endpos)
--
Martin A. Brown
http://linux-ip.net/
___
Tutor
documentation:
https://docs.python.org/2/ # -- Python-2.7.x
https://docs.python.org/3/ # -- Python-3.4.x
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https
.
Happy trails and good luck,
-Martin
[0]
https://apps.db.ripe.net/search/query.html?searchtext=25.0.0.0/8source=RIPE#resultsAnchor
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription
Greetings Alessandro,
: We are currently investigating different languages and technologies to
: develop an command line administration utility.
: Python is one of the options we are looking at for the job but currently we
: have no relevant skill set so I thought I'd post some question to
/multiprocessing.html
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
for them. Keep reading. Hire them.
Keep writing. Keep reading.
[3] Oops. I learned on BASIC. I hope I do not get banned from
the list.
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change
tools (urllib, and
urllib2) unless you need that finer control.
This has a nice abstraction and, from your description, I think this
would be a good fit:
http://docs.python-requests.org/en/latest/
-Martin
--
Martin A. Brown
http://linux-ip.net
/
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
not a performance bottleneck. If you can find the parts of
your skymaps5.py code that are the bottleneck, then you could post
it here.
I hadn't thought of using interpolate, myself, as I didn't even know
it existed.
Thanks and good luck,
-Martin
--
Martin A. Brown
http://linux-ip.net
://docs.python.org/3/library/logging.html
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
? Let os.access() [1] do the bitmath for you:
os.access('/usr/bin/python', os.X_OK)
Good luck,
-Martin
[0] http://docs.python.org/2/library/stat.html
[1] http://docs.python.org/2/library/os.html#os.access
--
Martin A. Brown
http://linux-ip.net
of the oldest
scientific computational libraries available for Python.
Good luck,
-Martin
--
Martin A. Brown
http://linux-ip.net/___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo
Lutz has been
writing books on Python for almost as long as Python has been
around. So, good luck and ask questions here. There's quite a
group here willing to help.
-Martin
--
Martin A. Brown
http://linux-ip.net/___
Tutor maillist - Tutor@python.org
-list-tuple-bytearray-buffer-xrange
#
print 'slice out from your original data: ', data[1::2]
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
if there were not more efficient ways of
accomplishing this.
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
= collections.defaultdict(int)
for line in lines:
words = line.strip().split()
for word in words:
summary[word] += 1
Lots of interesting features in the collections module...
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor
techniques here (and the one Joel just posted):
http://mail.python.org/pipermail/tutor/2012-June/090025.html
-Martin
(You asked your question much more clearly this time and with a code
sample--so, keep it up and enjoy the Python.)
--
Martin A. Brown
http://linux-ip.net
looking at the other sorts of things that you can
do with dictionaries.
Good luck,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman
a concrete task to approach is a good
way to learn.
Enjoy,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
/
Good luck and enjoy Python,
-Martin
[0] http://shop.oreilly.com/product/9780596007973.do
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman
:
csv.reader(f,delimiter='\t')
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
process python /path/to/your/python/script.py
Enjoy,
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
= collections.defaultdict(collections.defaultdict)
a,b,c = range(3)
d[a][b] = c
d
defaultdict(type 'collections.defaultdict', {0: defaultdict(None, {1: 2})})
Have a look at the collections module. See if that scratches your
itch.
Good luck,
-Martin
--
Martin A. Brown
http://linux-ip.net
the date and time handling tools available in libraries,
rather than try to build your own.
Good luck,
-Martin
--
Martin A. Brown
http://linux-ip.net/___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http
Greetings Elaina,
I will echo Alan's remarks--it sounds like you are using a quite
specialized (specialised?) module. It is certainly not a module
with which I am familiar, not in the standard library, and not a
commonly encountered problem. I would classify this module as
domain-specific.
is a good place to be for such initial
explorations. There are a number of libraries that can help with
the mathematical operations and you will probably get many good
suggestions.
Welcome to the list,
-Martin
[0] http://wiki.python.org/moin/Python2orPython3
--
Martin A. Brown
http://linux
of %s is %s' % (row[0], row[1],)
The above is trivial, but if you would like some more substantive
assistance, you should describe your problem in a bit more detail.
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
for
homework, but, as tutors, we are very happy to help you understand
Python and how to make it do what you want.
-Martin
--
Martin A. Brown
http://linux-ip.net/
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http
1 - 100 of 122 matches
Mail list logo