On Tuesday, 20 December 2016 22:54:03 UTC+11, Sayth Renshaw wrote:
> Hi
>
> I have been trying to get a script to work on windows that works on mint. The
> key blocker has been utf8 errors, most of which I have solved.
>
> Now however the last error I am trying to overcome, the solution appear
Sayth Renshaw wrote:
> On Tuesday, 20 December 2016 22:54:03 UTC+11, Sayth Renshaw wrote:
>> Hi
>>
>> I have been trying to get a script to work on windows that works on mint.
>> The key blocker has been utf8 errors, most of which I have solved.
>>
>> Now however the last error I am trying to o
Hi
I am looping a list of files and want to skip any empty files.
I get an error that str is not an iterator which I sought of understand but
can't see a workaround for.
How do I make this an iterator so I can use next on the file if my test returns
true.
Currently my code is.
for dir_path, s
On Wed, Dec 21, 2016 at 8:47 PM, Sayth Renshaw wrote:
> def return_files(file_list):
> """
> Take a list of files and return file when called.
>
> Calling function to supply attributes
> """
> for file in file_list:
> with open(os.path.join(dir_path, file), 'rb') as fd:
Ah yes. Thanks ChrisA
http://www.tutorialspoint.com/python/python_loop_control.htm
The continue Statement:
The continue statement in Python returns the control to the beginning of the
while loop. The continue statement rejects all the remaining statements in the
current iteration of the loop an
>def return_files(file_list):
>"""
>Take a list of files and return file when called.
>
>Calling function to supply attributes
>"""
>for file in file_list:
>with open(os.path.join(dir_path, file), 'rb') as fd:
>if os.stat(fd.name).st_size == 0:
>
There's a question over on SO [1] asking about an interaction between
SQLAlchemy and postgres which may be related to an SQLA upgrade from
1.0 to 1.1 and the generation of a check clause
Sadly, I don't have any experience with SQLAlchemy -- anybody here
want to take a crack at it?
--
~Ethan~
[1
On Thursday, December 15, 2016 at 1:17:10 PM UTC+1, Peter Otten wrote:
> skybuck2...@hotmail.com wrote:
>
> > I received a reply from somebody on my ISP newsserver. Apperently his
> > reply is not visible on google groups. I wonder why, maybe it's a banned
> > troll or something, but perhaps not.
On 12/21/2016 07:11 AM, Bernd Nawothnig wrote:
On 2016-12-20, Xristos Xristoou wrote:
I have a PostGIS database with shapefiles lines, polygons and points
and I want to create a topology rules with python. Any idea how to do
that ?some packages ?
http://www.gdal.org/
or:
pip install gdal
al
I'm not a beginning python coder, but I'm not an advanced one either. I
can't see why I have this problem, though at this point I've probably
been looking at it too hard and for too long (several days), so maybe
I'm just too close to it.
Can one of you guys see the problem (besides my childish codi
On Thu, Dec 22, 2016 at 11:55 AM, Deborah Swanson
wrote:
> The problem is that while mergeSort puts the list ls in perfect order,
> which I can see by looking at result on merge's final return to
> mergeSort, and at the left and the right once back in mergeSort. Both
> the left half and the right
> On Thu, Dec 22, 2016 at 11:55 AM, Deborah Swanson
> wrote:
> > The problem is that while mergeSort puts the list ls in
> perfect order,
> > which I can see by looking at result on merge's final return to
> > mergeSort, and at the left and the right once back in
> mergeSort. Both
> > the le
12 matches
Mail list logo