I am working with some demo programs in a breezypythongui book. One
program contains these two lines:
filetypes = [ ("Python files", "*.py"), ("Text files", "*.txt")]
fileName = tkinter.filedialog.askopenfilename(parent = self,
filetypes = filetypes)
According to the book th
On 25/06/14 00:23, keith papa wrote:
1. Hi am new to python and I have a few questions:
Why if you want to write multiple comment you use triple quotation marks
and not the #?
These are technically not the same as comments, they are documentation
strings.
The Python help system will find and
> In certain places, string literals are treated as documentation that you
can access with the help() function. Triple quotes are a way of writing a
strong literal.
Sorry! "strong" should be "string".
___
Tutor maillist - Tutor@python.org
To unsubscr
On Jun 24, 2014 4:55 PM, "keith papa" wrote:
>
> 1. Hi am new to python and I have a few questions:
> Why if you want to write multiple comment you use triple quotation marks
and not the #?
>
In certain places, string literals are treated as documentation that you
can access with the help() funct
1. Hi am new to python and I have a few questions: Why if you want to write
multiple comment you use triple quotation marks and not the #?
2. I found this code to be interesting to me because it printed an output of
[1,2,3,4,5,6,7] and not [1,2,3,4:4,5,6,7] why is that?
Insert two or more element
On 2014-06-24 14:01, mark murphy wrote:
Hi Danny, Marc, Peter and Alex,
Thanks for the responses! Very much appreciated.
I will take these pointers and see what I can pull together.
Thanks again to all of you for taking the time to help!
Assuming your files are ordered and therefore one's
On 24/06/2014 22:01, mark murphy wrote:
Hi Danny, Marc, Peter and Alex,
Thanks for the responses! Very much appreciated.
I will take these pointers and see what I can pull together.
Thanks again to all of you for taking the time to help!
Cheers,
Mark
On Tue, Jun 24, 2014 at 4:39 PM, Danny
Hi Danny, Marc, Peter and Alex,
Thanks for the responses! Very much appreciated.
I will take these pointers and see what I can pull together.
Thanks again to all of you for taking the time to help!
Cheers,
Mark
On Tue, Jun 24, 2014 at 4:39 PM, Danny Yoo wrote:
> The sorting approach sounds
The sorting approach sounds reasonable. We might even couple it with
itertools.groupby() to get the consecutive grouping done for us.
https://docs.python.org/2/library/itertools.html#itertools.groupby
For example, the following demonstrates that there's a lot that the
library will do for us
On Tue, Jun 24, 2014 at 1:02 PM, Peter Otten <__pete...@web.de> wrote:
> Sorting is probably the approach that is easiest to understand, but an
> alternative would be to put the files into a dict that maps the 8-char
> prefix to a list of files with that prefix:
>
I was debating the virtues of th
Hi Mark,
Part of the problem statement sounds a little unusual to me, so I need
to push on it to confirm. How do we know that there are only two
files at a time that we need to manage?
The naming convention described in the problem:
---
The naming convention of the files is as follows: TDDD
Peter Otten wrote:
> for fileset in days.values():
> if len(fileset) > 1:
> # process only the list with one or more files
That should have been
# process only the lists with two or more files
> print("merging", fileset)
__
mark murphy wrote:
> Hello Python Tutor Community,
>
> This is my first post and I am just getting started with Python, so I
> apologize in advance for any lack of etiquette.
>
> I have a directory of several thousand daily satellite images that I need
> to process. Approximately 300 of these i
On Tue, Jun 24, 2014 at 8:34 AM, mark murphy
wrote:
> What I hope to be able to do is scan the directory, and for each instance
> where there are two files where the first 8 characters (TDDD) are
> identical, run a process on those two files and place the output (named
> TDDD) in a new
On 2014-06-24 08:34, mark murphy wrote:
Hello Python Tutor Community,
The actual processing part should be easy enough for me to figure out.
The
part about finding the split files (each pair of files with the same
first
8 characters) and setting those up to be processed is way beyond me.
I
Hello Python Tutor Community,
This is my first post and I am just getting started with Python, so I
apologize in advance for any lack of etiquette.
I have a directory of several thousand daily satellite images that I need
to process. Approximately 300 of these images are split in half, so in
jus
16 matches
Mail list logo