Hi!
>
> So if I understand correctly, the script works well on
> smaller files but not on the large one?
Yes. 500-800 MB is ok. > 1 GB is not ok.
>
> > It down all of the file (100%) but the next line never reached.
>
> _Which_ line is never reached? The `print` statement after
> the `retrbinar
In message
<45faa241-620e-42c7-b524-949936f63...@f6g2000yqa.googlegroups.com>, Alex
Willmer wrote:
> Dateutil has it's own timezone database ...
I hate code which doesn’t just use /usr/share/zoneinfo. How many places do
you need to patch every time somebody changes their daylight-saving rules?
"vsoler" wrote in message
news:3d85d8f5-8ce0-470f-b6ec-c86c452a3...@a36g2000yqc.googlegroups.com...
On Aug 24, 1:33 am, "Martin v. Loewis" wrote:
> > When I am logged-in in a session as an administrator, the BAT file on
> > the Desktop, and I double-click on it, it does not work.
>
> This is no
"Steven D'Aprano" wrote in message
news:4c6f8edd$0$28653$c3e8...@news.astraweb.com...
On Fri, 20 Aug 2010 17:23:23 +0200, Bruno Desthuilliers wrote:
I onced worked in a shop (Win32 desktop / accouting applications mainly)
where I was the only guy that could actually understand recursion. FWIW
Hi!
On aug. 25, 08:07, Stefan Schwarzer wrote:
>
> The file is 2 GB in size and is fully transferred, without
> blocking or an error message. The status message from the
> server is '226-File successfully transferred\n226 31.760
> seconds (measured here), 64.48 Mbytes per second', so this
> looks
Hi durumdara,
On 2010-08-25 09:43, durumdara wrote:
>> I can imagine the error message (a full traceback if
>> possible) would help to say a bit more about the cause of
>> the problem and maybe what to do about it.
>
> This was:
>
> Filename: "Repositories 20100824_101805 (Teljes).zip" Size: 153
> Just curious if anyone had the chance to build pypy on a 64bit
> environment and to see if it really makes a huge difference in
> performance. Would like to hear some thoughts (or alternatives).
I'd recommend asking about this on the pypy mailing list or looking at
their documentation first; see
Hugh Aguilar writes:
> On Aug 24, 5:16 pm, Paul Rubin wrote:
>> Anyway, as someone else once said, studying a subject like CS isn't done
>> by reading. It's done by writing out answers to problem after problem.
>> Unless you've been doing that, you haven't been studying.
>
> What about using wh
Tim Daneliuk a écrit :
On 8/19/2010 7:23 PM, Steven D'Aprano wrote:
On Thu, 19 Aug 2010 18:27:11 -0500, Tim Daneliuk wrote:
Problem:
Given tuples in the form (key, string), use 'key' to determine what
string method to apply to the string:
table = {'l': str.lower, 'u': str.upper}
table['u
On Aug 25, 8:48 am, Lawrence D'Oliveiro wrote:
> In message
> <45faa241-620e-42c7-b524-949936f63...@f6g2000yqa.googlegroups.com>, Alex
>
> Willmer wrote:
> > Dateutil has it's own timezone database ...
>
> I hate code which doesn’t just use /usr/share/zoneinfo. How many places do
> you need to pat
On Tue, 24 Aug 2010, Jean-Michel Pichavant wrote:
> John O'Hagan wrote:
> > I want to know the best way to organise a bunch of functions designed to
> > operate on instances of a given class without cluttering the class itself
> > with a bunch of unrelated methods.
> >
> > What I've done is make w
On 25 Aug, 01:00, Hugh Aguilar wrote:
> On Aug 24, 4:17 pm, Richard Owlett wrote:
>
> > Hugh Aguilar wrote:
> > > [SNIP ;]
>
> > > The real problem here is that C, Forth and C++ lack automatic garbage
> > > collection. If I have a program in which I have to worry about memory
> > > leaks (as desc
Hi durumdara,
On 2010-08-25 11:18, durumdara wrote:
> On aug. 25, 08:07, Stefan Schwarzer wrote:
>>
>> The file is 2 GB in size and is fully transferred, without
>> blocking or an error message. The status message from the
>> server is '226-File successfully transferred\n226 31.760
>> seconds (me
Simple hack to get* $5000 * to your Paypal account At
http://moneyforwarding.co.cc
i have hidden the Paypal Form link in an image. in that website on
Right Side below search box, click on image and enter your name and
Paypal ID.
--
http://mail.python.org/mailman/listinfo/python-list
Simple class to wrap the xlwt module for COM access
pyXLS.py:
from xlwt import Workbook
class WrapXLS:
_reg_clsid_ = "{c94df6f0-b001-11df-8d63-00e09103a9a0}"
_reg_desc_ = "XLwt wrapper"
_reg_progid_ = "PyXLS.Write"
_public_methods_ =
['createBook','createSheet','writeSheetCell',
Alex McDonald writes:
> Your example of writing code with
>memory leaks *and not caring because it's a waste of your time* makes
>me think that you've never been a programmer of any sort. Ever.
Well, I find his approach towards memory leaks as described in
<779b992b-7199-4126-bf3a-7ec40ea80...@j1
Hi,
I run today into some problems with my code and I realized that there
is something in the behaviours of the @staticmethod that I don't
really understand. I don't know if it is an error or not, actually,
only that it was, definitely, unexpected.
I wrote a small demo of what happens.
The code:
On Aug 25, 3:03 pm, Samu wrote:
> Hi,
>
> I run today into some problems with my code and I realized that there
> is something in the behaviours of the @staticmethod that I don't
> really understand. I don't know if it is an error or not, actually,
> only that it was, definitely, unexpected.
>
> I
Samu wrote:
> Hi,
>
> I run today into some problems with my code and I realized that there
> is something in the behaviours of the @staticmethod that I don't
> really understand. I don't know if it is an error or not, actually,
> only that it was, definitely, unexpected.
>
> I wrote a small dem
On Aug 24, 5:29 pm, Benjamin Kaplan wrote:
> On Tue, Aug 24, 2010 at 3:31 PM, Darren Dale wrote:
> > On Aug 23, 9:58 am, Darren Dale wrote:
> >> The following script runs without problems on Ubuntu and Windows 7.
> >> h5py is a package wrapping the hdf5 library (http://code.google.com/p/
> >> h5
Thanks mucho! That was it!
-- Steve Ferg
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 24, 4:32 pm, Thomas Jollans wrote:
> On Tuesday 24 August 2010, it occurred to Darren Dale to exclaim:
>
>
>
>
>
> > On Aug 23, 9:58 am, Darren Dale wrote:
> > > The following script runs without problems on Ubuntu and Windows 7.
> > > h5py is a package wrapping the hdf5 library (http://co
On Aug 25, 3:26 pm, Peter Otten <__pete...@web.de> wrote:
> Samu wrote:
> > Hi,
>
> > I run today into some problems with my code and I realized that there
> > is something in the behaviours of the @staticmethod that I don't
> > really understand. I don't know if it is an error or not, actually,
>
Hi all,
I'd like to hear from you on the benefits of using numpy.power(x,y)
over (x*x*x*x..)
I looks to me that numpy.power takes more time to run.
cheers
Carlos
--
http://mail.python.org/mailman/listinfo/python-list
On 25/08/2010 14:59, Carlos Grohmann wrote:
Hi all,
I'd like to hear from you on the benefits of using numpy.power(x,y)
over (x*x*x*x..)
I looks to me that numpy.power takes more time to run.
cheers
Carlos
Measure it yourself using the timeit module.
Cheers.
Mark Lawrence.
--
http://mai
Hi,
I cross-compiled Python2.4 for ARM (Linux 2.6.30) in order to run
autotest-client-xxx on my ARM target.
When I run autotest on ARM target I get "ImportError: No module named time"
Which package I need to install to add support for time module.
# bin/autotest samples/filesystem
Traceback (mos
On Aug 25, 7:12 am, nanothermite911fbibustards
wrote:
> CRIMINAL YanQui MARINES Cesar Laurean Regularly RAPE GIRLS Maria
> Lauterbach and KILL THEM
>
> Is he a Jew or a white Anglo Saxon race ? or a Southern Baptist
> Bustard who
>
> The girl was a German like the one Roman Polansky raped, Semanth
Samu wrote:
> the concept sticks. But why does it have a different behaviour the
> staticmethod with the "rights3" case then?
Moving from staticmethod to standalone function doesn't affect the output.
You have inadvertently changed something else.
Peter
--
http://mail.python.org/mailman/listin
On 19 Aug, 16:25, c...@tiac.net (Richard Harter) wrote:
> On Wed, 18 Aug 2010 01:39:09 -0700 (PDT), Nick Keighley
> wrote:
> >On 17 Aug, 18:34, Standish P wrote:
> >> How are these heaps being implemented ? Is there some illustrative
> >> code or a book showing how to implement these heaps in C
Carlos Grohmann writes:
> I'd like to hear from you on the benefits of using numpy.power(x,y)
> over (x*x*x*x..)
>
> I looks to me that numpy.power takes more time to run.
You can use math.pow, which is no slower than repeated multiplication,
even for small exponents.
Obviously, after the expon
On Aug 25, 4:32 pm, Peter Otten <__pete...@web.de> wrote:
> Samu wrote:
> > the concept sticks. But why does it have a different behaviour the
> > staticmethod with the "rights3" case then?
>
> Moving from staticmethod to standalone function doesn't affect the output.
> You have inadvertently chang
On Aug 18, 9:20 pm, Margie Roginski wrote:
> Hi,
>
> I am using unittest in a fairly basic way, where I have a single file
> that simply defines a class that inherits from unittest.TestCase and
> then within that class I have a bunch of methods that start with
> "test". Within that file, at the b
On Wed, Aug 25, 2010 at 10:59 PM, Carlos Grohmann
wrote:
> Hi all,
>
> I'd like to hear from you on the benefits of using numpy.power(x,y)
> over (x*x*x*x..)
Without more context, I would say None if x*x*x*x*... works and you
are not already using numpy. The point of numpy is mostly to work on
On 25 ago, 12:40, David Cournapeau wrote:
> On Wed, Aug 25, 2010 at 10:59 PM, Carlos Grohmann
>
Thanks David and Hrvoje. That was the feedback I was looking for.
I am using numpy in my app but in some cases I will use math.pow(),
as some tests with timeit showed that numpy.power was slower for
(x
On Aug 24, 4:32 pm, Thomas Jollans wrote:
> On Tuesday 24 August 2010, it occurred to Darren Dale to exclaim:
>
>
>
>
>
> > On Aug 23, 9:58 am, Darren Dale wrote:
> > > The following script runs without problems on Ubuntu and Windows 7.
> > > h5py is a package wrapping the hdf5 library (http://co
On 8/25/10 8:59 AM, Carlos Grohmann wrote:
Hi all,
I'd like to hear from you on the benefits of using numpy.power(x,y)
over (x*x*x*x..)
I looks to me that numpy.power takes more time to run.
You will want to ask numpy questions on the numpy mailing list:
http://www.scipy.org/Mailing_Lists
On Wed, 25 Aug 2010 06:59:36 -0700 (PDT), Carlos Grohmann wrote:
>
> I'd like to hear from you on the benefits of using numpy.power(x,y)
> over (x*x*x*x..)
>
Using the "dis" package under Python 2.5, I see that
computing x_to_the_16 = x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x uses
15 multiplies. I
I have a multi-threaded application where several of the threads need to write
to a serial port that's being handled by pySerial. If pySerial thread-safe in
the sense that pySerial.write behaves atomically? I.e., if thread 1 executes,
serport.write("Hello, world!") and thread 2 executes serpor
On Wednesday 25 August 2010, it occurred to Joel Koltner to exclaim:
> I have a multi-threaded application where several of the threads need to
> write to a serial port that's being handled by pySerial. If pySerial
> thread-safe in the sense that pySerial.write behaves atomically? I.e., if
> thre
On 25/08/2010 19:36, Joel Koltner wrote:
I have a multi-threaded application where several of the threads need to
write to a serial port that's being handled by pySerial. If pySerial
thread-safe in the sense that pySerial.write behaves atomically? I.e.,
if thread 1 executes, serport.write("Hello,
"Thomas Jollans" wrote in message
news:mailman.36.1282762569.29448.python-l...@python.org...
I expect that it gives away the GIL to call the resident write() function,
to
allow other threads to run while it's sitting there, blocking. I haven't
looked at the code, so maybe it doesn't hand over t
Hi, I'm seeking help with a fairly simple string processing task.
I've simplified what I'm actually doing into a hypothetical
equivalent.
Suppose I want to take a word in Spanish, and divide it into
individual letters. The problem is that there are a few 2-character
combinations that are considere
On 8/24/2010 10:15 AM, Dani Valverde wrote:
Hello!
I am working on a GUI to connect to a MySQL database using MySQLdb (code
in attached file). I define the cursor in lines 55-66 in the OnLogin
function within the LoginDlg class.
/db= MySQLdb.connect(host='localhost', user=Username , passwd=pwd,
On Aug 24, 8:00 pm, Hugh Aguilar wrote:
> The C programmers reading this are likely wondering why I'm being
> attacked. The reason is that Elizabeth Rather has made it clear to
> everybody that this is what she wants: [http://tinyurl.com/2bjwp7q]
Hello to those outside of comp.lang.forth, where H
On 8/25/2010 11:36 AM, Joel Koltner wrote:
I have a multi-threaded application where several of the threads need to
write to a serial port that's being handled by pySerial. If pySerial
thread-safe in the sense that pySerial.write behaves atomically? I.e.,
if thread 1 executes, serport.write("Hell
2010/8/25 Jed :
> Hi, I'm seeking help with a fairly simple string processing task.
> I've simplified what I'm actually doing into a hypothetical
> equivalent.
> Suppose I want to take a word in Spanish, and divide it into
> individual letters. The problem is that there are a few 2-character
> com
Jed writes:
> alphabet = ['a','b','c','ch','d','u','r','rr','o'] #this would
> include the whole alphabet but I shortened it here
> theword = 'churro'
>
> I would like to split the string 'churro' into a list containing:
>
> 'ch','u','rr','o'
All non-overlapping matches, each as long as can be,
On 25/08/2010 20:46, Jed wrote:
Hi, I'm seeking help with a fairly simple string processing task.
I've simplified what I'm actually doing into a hypothetical
equivalent.
Suppose I want to take a word in Spanish, and divide it into
individual letters. The problem is that there are a few 2-charact
On 08/25/10 14:46, Jed wrote:
Hi, I'm seeking help with a fairly simple string processing task.
I've simplified what I'm actually doing into a hypothetical
equivalent.
Suppose I want to take a word in Spanish, and divide it into
individual letters. The problem is that there are a few 2-character
On Wednesday 25 August 2010, it occurred to Jed to exclaim:
> Hi, I'm seeking help with a fairly simple string processing task.
> I've simplified what I'm actually doing into a hypothetical
> equivalent.
> Suppose I want to take a word in Spanish, and divide it into
> individual letters. The probl
Hi John,
"John Nagle" wrote in message
news:4c75768a$0$1608$742ec...@news.sonic.net...
You don't need a queue, though; just use your own "write" function
with a lock.
Hmm... that would certainly work. I suppose it's even more efficient than a
queue in that the first thing the queue is
On Aug 24, 9:05 pm, Hugh Aguilar wrote:
> What about using what I learned to write programs that work?
> Does that count for anything?
It obviously counts, but it's not the only thing that matters. Where
I'm employed, I am currently managing a set of code that "works" but
the quality of that cod
Jed wrote:
Hi, I'm seeking help with a fairly simple string processing task.
I've simplified what I'm actually doing into a hypothetical
equivalent.
Suppose I want to take a word in Spanish, and divide it into
individual letters. The problem is that there are a few 2-character
combinations that
On Aug 25, 1:44 pm, John Passaniti wrote:
> On Aug 24, 9:05 pm, Hugh Aguilar wrote:
>
> > What about using what I learned to write programs that work?
> > Does that count for anything?
>
> It obviously counts, but it's not the only thing that matters. Where
> I'm employed, I am currently managin
Peter Pearson wrote:
On Wed, 25 Aug 2010 06:59:36 -0700 (PDT), Carlos Grohmann wrote:
>
I'd like to hear from you on the benefits of using numpy.power(x,y)
over (x*x*x*x..)
Using the "dis" package under Python 2.5, I see that
computing x_to_the_16 = x*x*x*x*x*x*x*x*x*x*x*x*x*x
Hi All
Is there anyway in a class to overload the print function?
>> class foo_class():
>> pass
>> cc = foo_class()
>> print cc
Gives:
<__main__.foo_class instance at >
Can I do something like:
>> class foo_class():
>> def __print__(self):
>> print "hello"
>> cc = foo
John Passaniti writes:
> On Aug 24, 8:00 pm, Hugh Aguilar wrote:
>> The C programmers reading this are likely wondering why I'm being
>> attacked. The reason is that Elizabeth Rather has made it clear to
>> everybody that this is what she wants: [http://tinyurl.com/2bjwp7q]
>
> Hello to those ou
On 25 Aug, 22:18, Ross Williamson
wrote:
> Is there anyway in a class to overload the print function?
>
> >> class foo_class():
> >> pass
> >> cc = foo_class()
> >> print cc
>
> Gives:
>
> <__main__.foo_class instance at >
>
> Can I do something like:
>
> >> class foo_class():
> >> de
On Wed, Aug 25, 2010 at 2:18 PM, Ross Williamson
wrote:
> Hi All
>
> Is there anyway in a class to overload the print function?
>
>>> class foo_class():
>>> pass
>
>>> cc = foo_class()
>>> print cc
>
> Gives:
>
> <__main__.foo_class instance at >
>
> Can I do something like:
>
>>> class f
On Wed, 25 Aug 2010 16:18:15 -0500
Ross Williamson wrote:
> Hi All
>
> Is there anyway in a class to overload the print function?
Your terminology threw me off for a moment. You don't want to override
print. You want to override the default representation of an object.
>
> >> class foo_class
Ross Williamson wrote:
Hi All
Is there anyway in a class to overload the print function?
In Python <= 2.x "print" is a statement and thus can't be
"overloaded". That's exactly the reason, why Python 3 has turned
"print" into a function.
class foo_class():
def __print__(self):
On Wed, Aug 25, 2010 at 2:23 PM, Glenn Hutchings wrote:
> On 25 Aug, 22:18, Ross Williamson
> wrote:
> > Is there anyway in a class to overload the print function?
> >
> > >> class foo_class():
> > >> pass
> > >> cc = foo_class()
> > >> print cc
> >
> > Gives:
> >
> > <__main__.foo_class in
All,
I’m having a problem with the matplotlib.pyplot.contourf function. I
have a 1-D array of latitudes (mesolat), a 1-D array of longitudes
(mesolon), and a 1-D array of rainfall values (rain) at those
corresponding lat, lon points. After importing the necessary
libraries, and reading in these
On Aug 25, 4:57 pm, becky_s wrote:
> All,
>
> I’m having a problem with the matplotlib.pyplot.contourf function. I
> have a 1-D array of latitudes (mesolat), a 1-D array of longitudes
> (mesolon), and a 1-D array of rainfall values (rain) at those
> corresponding lat, lon points. After importing
On Aug 25, 5:01 pm, Joshua Maurice wrote:
> I agree. Sadly, with managers, especially non-technical
> managers, it's hard to make this case when the weasel
> guy says "See! It's working.".
Actually, it's not that hard. The key to communicating the true cost
of software development to non-technic
On Aug 25, 4:01 pm, John Passaniti wrote:
> On Aug 25, 5:01 pm, Joshua Maurice wrote:
>
> > I agree. Sadly, with managers, especially non-technical
> > managers, it's hard to make this case when the weasel
> > guy says "See! It's working.".
>
> Actually, it's not that hard. The key to communicat
On 08/25/10 14:46, Jed wrote:
I would like to split the string 'churro' into a list containing:
'ch','u','rr','o'
Dirt simple, straightforward, easily generalized solution:
def sp_split(s):
n,i,ret = len(s), 0, []
while i < n:
s2 = s[i:i+2]
if s2 in ('ch', 'll', 'r
On 25/08/2010 10:33 PM, Paul Hemans wrote:
File "C:\development\PyXLS\pyXLS.py", line 13, in createSheet
def createBook(self):
AttributeError: WrapXLS instance has no attribute '_book'
pythoncom error: Python error invoking COM method.
Can anyone help?
That line seems an unlikely sourc
Yes, that was it. I just needed to restart the host process.
Thanks
"Mark Hammond" wrote in message
news:mailman.51.1282784920.29448.python-l...@python.org...
> On 25/08/2010 10:33 PM, Paul Hemans wrote:
>>File "C:\development\PyXLS\pyXLS.py", line 13, in createSheet
>> def createBook(s
OBAMA created by the CIA - Proofs by Wayne Madsen, the Investigative
Journalist - Obama's StepMother Ruth Niedesand and two StepBrothers
are JEW
OBAMA family are CIA agents or employees
http://www.presstv.ir/detail/140093.html
http://www.voltairenet.org/article166741.html
Special Report
The Stor
Hi
So here is my problem:
I have my render files that are into a directory like this:
c:\log\renderfiles\HPO7_SEQ004_031_VDM_DIF_V001.0001.exr
c:\log\renderfiles\HPO7_SEQ004_031_VDM_DIF_V001.0002.exr
c:\log\renderfiles\HPO7_SEQ004_031_VDM_DIF_V001.0003.exr
c:\log\renderfiles\HPO7_SEQ004_031
71 matches
Mail list logo