Yep - oracle for example has hundreds of tables which hold metadata.
for example (this will look terrible due to the length of it but if you assume
it's 3 lines; a title line, some underlining for each column and the data
itself):
SQL> select * from all_tables where owner = 'FLYNNS' and table
Afternoon,
Python 3.
I'm iterating through a list and I'd like to know when I'm at
the end of the said list, so I can do something different. For example
list_of_things = ['some', 'special', 'things']
for each_entry in list_of_things:
print(each_entry)
if each_ent
> Python version 2.7.10.
> I have problem in installing .whl format packages.
> what version of setuptools is required for .whl format packages.
> I have installed Setuptools version 0.6.0 and upgraded pip to 7.0.3.
> wndows 7 powershell 1.
> I tried installing setuptools 18.0 but it is also in .wh
> Sorry to bother you all with what you might consider trivia, but
someone
> in my course forum posted this statement:
>
> "I have never seen or heard of real uses of recursion except for
proving
> cleverness,"
>
> so I thought I would ask you all if that is true. Is it really not
used
> in real
The documentation (https://docs.python.org/3/library/sys.html) for
Python 3.4.1 says that "This module provides access to some variables
used or maintained by the interpreter and to functions that interact
strongly with the interpreter. It is always available."
I interpreted that last sentence as
> The script studied was :
>
> for n in range(2, 10):
> for x in range(2, n):
> if n % x == 0:
> print(n, 'equals', x, '*', n//x)
> break
> else:
> print(n, 'is a prime number')
The code above is not what you ran below, in idle. Look at the
in
> I want to write a twitter bot which runs on a specific time. For an
> idea, I'd like to have this twitter bot tweet every sunrise and
> sunset, everyday. Since everyday the sunrise and the sunset time are
> vary, what are the best way to do it?
Have the bot calculate sunrise and sunset for the f
Aha - another EdX 6.00 Python course student.
> Traceback (most recent call last):
>File "/Users/Sydney/Documents/6.00x Files/Problem
> Sets/ProblemSet7/ps7 copy.py", line 303, in
> testRobotMovement(StandardRobot, RectangularRoom)
>File "ps7_verify_movement.py", line 12, in testRobo
Python 3.2, as in the subject, although I also have 2.7 on this machine
too.
I have some data which contains text separated with field delimiters
(|~) and a record terminator (||)
12345600990|~5229|~990|~0|~4|~1|~2006-09-08|~13:29:39|~some
text.|~xxx, x|~||
12345600991|~
> -Original Message-
> From: tutor-bounces+steve.flynn=capita.co...@python.org [mailto:tutor-
> bounces+steve.flynn=capita.co...@python.org] On Behalf Of Steven
D'Aprano
> Sent: Saturday, July 14, 2012 2:42 AM
> To: tutor@python.org
> Subject: Re: [Tutor] converting EBCIDIC to ASCII
>
> Pr
I am trying to convert an EBCIDIC file to ASCII, when the records are
fixed length I can convert it fine, I have some files that are coming in
as variable length records, is there a way to convert the file in
Python? I tried using no length but then it just reads in to a fixed
buffer size and I can
Hi Peter,
> As you already learned the csv module is the best tool to address your
> problem.
Yup - it's almost going to make my little coding exercise trivial. :)
> However, I'd like to show a generic way to get an extra item in a for-
> loop.
[snip]
> Here's a self-contained example:
>
> >>
> On 02/07/12 18:39, David Rock wrote:
>
> > Essentially, your problem isn't with using fileinput, it's with how
you
> > handle each line that comes in.
>
> The immediate problem is with mis-using fileinput.
> But once you solve that you then have to deal with the
> other issues David raises.
>
Tutors,
Whilst having a play around with reading in textfiles and reformatting them I
tried to write a python 3.2 script to read a CSV file, looking for any records
which were short (indicating that the data may well contain an embedded CR/LF.
I've attached a small sample file with a "split rec
> I have seen Python manual, it says <#! /usr/bin/env python>
> But snippet manager of many text editing programs have <#!/usr/bin/env
> python>. Python is a strongly typed language, which one is correct?
That's not python code - it's interpreted by the shell (on Linux/Unix)
to determine what to
Pythonistas,
Tinkering around this morning and noticed the following
when I created a tuple and asked for a dir() on it and some help() on
it.
>>> x=('rod','jane','freddy')
>>> dir(x)
['__add__', '__class__', '__contains__', '__delattr__', '__doc__',
'__eq__', '__format
ple as and when I get stuck or want some
advice on the best way to proceed, so I guess by the end of it, you'll
all be as sick of this as I will be. Share the misery...
S
From: ALAN GAULD [mailto:alan.ga...@btinternet.com]
Sent: Friday, August 05, 201
> > However, I've not done much OOP at all
>
> I'm not sure you need OOP for this. As you say a "routine" ie a
function
> might be all you need along with some data structures - probably
> dictionaries to define the translations needed.
I suspect you're correct Alan, but as I'm using this an a le
his, but if I'm going to be learning python via a project,
I might as well do it properly).
S.
From: Christian Witts [mailto:cwi...@compuscan.co.za]
Sent: Friday, August 05, 2011 1:10 PM
To: Flynn, Stephen (L & P - IT)
Cc: Tutor List
Subject: Re:
I'm about to embark on a project in Python (primarily in order to learn the
language and equally importantly, to make my life easier at work).
I'm an IBM MVS Operations Analyst by trade by recently I've been spending more
and more time working on Data Migrations; legacy systems in VSAM files, AD
Python manuals from http://www.python.org/doc/
From: tutor-bounces+steve.flynn=capita.co...@python.org
[mailto:tutor-bounces+steve.flynn=capita.co...@python.org] On Behalf Of
Kaustubh Pratap chand
Sent: Friday, June 10, 2011 1:41 PM
To: tutor@python.org
Subject
From: Hank Wilkinson [mailto:hwilkin...@triad.rr.com]
Sent: Tuesday, May 24, 2011 2:25 PM
To: Flynn, Stephen (L & P - IT)
Cc: tutor@python.org
Subject: Re: [Tutor] python scripting using "./"
John-Wilkinsons-iMac:p31summerfield wilkinson$ ls -al
/usr/local/bin/python
ls: /usr
What is your Python executable called? You refer to it as "python" on
the command line but your "#!" line in your script refers to the
executable as "python3.1". tried it with just "python" in the #! Line?
Check the output of 'ls -al /usr/local/bin/pytho*'...
S.
-Original Message-
From:
Pardon the crappy quoting - forced to use Exchange. Top posted too...
the shame.
What about curl and libcurl? http://curl.haxx.se/
S.
-Original Message-
From: tutor-bounces+steve.flynn=capita.co...@python.org
[mailto:tutor-bounces+steve.flynn=capita.co...@python.org] On Behalf Of
Alan Ga
.. you're on Windows where an end of line
is marked via a CR + LF.
S.
From: Susana Iraiis Delgado Rodriguez [mailto:susana.delgad...@utzmg.edu.mx]
Sent: Monday, March 28, 2011 4:28 PM
To: Flynn, Stephen (L & P - IT)
Cc: tutor@python.org
Subjec
25 matches
Mail list logo