Ahmed, Shakir wrote:
Here is the final code that worked to unzip a large file in the network
drive.
CHUNK_SIZE = 10 * 1024 * 1024
fh = open('T:\\applications\\tst\\py\\Zip_Process\\Zip\\myzip.zip',
'rb')
z = zipfile.ZipFile(fh)
for name in z.namelist():
fn = open(name, 'wb')
ptr = 0
-Original Message-
From: Ethan Furman [mailto:et...@stoneleaf.us]
Sent: Friday, June 24, 2011 3:47 PM
To: Ahmed, Shakir
Cc: Python
Subject: Re: unzip problem
Ahmed, Shakir wrote:
> Thanks once again and you are right I am trying to unzip in the
network
> share drive. here is the script no
#1. By using isolation_level = None, connection objects (used as a
context manager) WON'T automatically commit or rollback transactions.
#2. Using any isolation level, connection objects WON'T automatically
begin a transaction.
#3. Possibly, include your connection manager class code, to show h
On Fri, 2010-03-12 at 09:35 +0100, Laszlo Nagy wrote:
> > No it doesn't. The problem is that using a connection as a context
> > manager doesn't do what you think.
> >
> > It does *not* start a new transaction on __enter__ and commit it on
> > __exit__. As far as I can tell it does nothing on __
Annotating your example:
# entering this context actually does nothing
with conn:
# a transaction is magically created before this statement
conn.execute("insert into a values (1)")
# and is implicitly committed before this statement
conn.execute("SAVEPOINT sp1")
No it doesn't. The problem is that using a connection as a context
manager doesn't do what you think.
It does *not* start a new transaction on __enter__ and commit it on
__exit__. As far as I can tell it does nothing on __enter__ and calls
con.commit() or con.rollback() on exit. With isola
-- Forwarded message --
From: Dave Angel
To: Threader Slash
Date: Wed, 14 Oct 2009 07:04:21 -0400
Subject: Re: win32com.client import problem
Threader Slash wrote:
> Hi Everybody,
>
> I have 2 imports:
>
> import pythoncom
> from win32com.client import Dispatch
>
> if I run it on
I don't understand my earlier problem but the following code works no
matter what the ylim is set to:
I reworked the example major_minor_demo1.py to find the answer.
thanks
Dick C
ps: I still can't post a reply since I read the list with my mozilla or
konqueror browser and email separately wit
Problem solved.
Turns out it was a problem of mistranslating VBS code to Python.
The PYTHON line "print str(tet)" casts tet to a string and prints. This
is what I thought the VBS line "Str = Tet.ConvertToString()" was doing.
But of course "ConvertToString()" is a m
[EMAIL PROTECTED] wrote:
> It looks like the PyTensor object *should* have .xx, .xy, etc
> properties, but they may be accessible through a matrix, i.e. .t(i,j)
Thanks to all of you for your help!
The solution is easy: The tensor components have labels t11, t12,...
Good guess ruibalp!
--
http:
Kilicaslan Fatih wrote:
[...]
> Dear All,
>
> I changed the mode of the files before copying them.
> So the problem is solved as follows:
>
> SOLUTION:
>
> def run(self, event):
> cmd_out = self.A_com()
> if App.runF != "":
> os.mkdir('C:\copiedFiles')
--- Larry Bates <[EMAIL PROTECTED]> wrote:
> Note the error is permission denied. I would guess
> that
> either the file has read-only flag set or perhaps
> the
> '' program is still running and has the file
> open
> in a separate thread so you can't delete the
> directory
> until it has co
--- Larry Bates <[EMAIL PROTECTED]> wrote:
> Note the error is permission denied. I would guess
> that
> either the file has read-only flag set or perhaps
> the
> '' program is still running and has the file
> open
> in a separate thread so you can't delete the
> directory
> until it has co
--- Larry Bates <[EMAIL PROTECTED]> wrote:
> Note the error is permission denied. I would guess
> that
> either the file has read-only flag set or perhaps
> the
> '' program is still running and has the file
> open
> in a separate thread so you can't delete the
> directory
> until it has co
dylpkls91 wrote:
> Thank you all for your responses.
>
> I have managed to figure out a solution using XML RPC which fits my
> needs perfectly.
Mind posting it for us lesser beings? ;)
--
http://mail.python.org/mailman/listinfo/python-list
On 2006-07-13 20:46:16, dylpkls91 wrote:
> Thank you all for your responses.
>
> I have managed to figure out a solution using XML RPC which fits my
> needs perfectly.
BTW, if you want to test networking between two machines on one single
(Windows) computer, try VirtualPC. (Free from MS.)
Gerha
Thank you all for your responses.
I have managed to figure out a solution using XML RPC which fits my
needs perfectly.
--
http://mail.python.org/mailman/listinfo/python-list
Special Thanks to Diez B. Roggisch and Eric Brunel.
Last week on Friday I solved the problems I
encountered thanks to your helpful indications.
I think I covered all the ambiguity in my code. Here's
the code:
# executing with Python
from Tkinter import *
from tkFileDialog import *
import
Paul Probert wrote:
> Thanks everyone for your help.
> It was the "Abouttime.exe" program, a time synch utility. To get the
> problem, you have to run it as a service, and possibly it has to have
> trouble connecting to its time servers. It would cause time.sleep(1) to
> sometimes block for 20
Thanks everyone for your help.
It was the "Abouttime.exe" program, a time synch utility. To get the
problem, you have to run it as a service, and possibly it has to have
trouble connecting to its time servers. It would cause time.sleep(1) to
sometimes block for 200 seconds. Not "about" 200 se
20 matches
Mail list logo