that issue was 3 years old and the reason I used the proprietary broadcom driver. unfortunately, it now crashes the latest kernel, so went back to b43 and just had to fix it (although it took 20 mins too long for SO).
I need to parse a very large (~40GB) XML file, remove certain elements from it, and write the result to a new xml file. I've been trying to use iterparse from python's ElementTree, but I'm confused about how to modify the tree and then write the resulting tree into a new XML file. I've read the d...
mgilson, a C realloc may invalidate the buffer of any view
which means, you cannot safely realloc, unless you first tell everyone holding a reference to yourself to copy the data to be certain it is OK
which basically means, just copy it in the first place... because it is hard to imagine to be worth the trouble to try to delay that with some dark magic
This is something that I thought about in the beginning ...
add __setattr__ to update a _dict and then have my copy operation make sure that everything in _dict gets transfered to the view. I suppose that would work.
And, when using a ufunc, __array_finalize__ gets called on the output array (assuming it wasn't given as input) before or after __array_wrap__ on the highest priority array?
@mgilson: Why should \b be included in the remove string?
\b is a word boundary anchor; the code should just work (provided there are no regex meta characters in his word list), the post is missing detail as to what doesn't work.
i have a the following error message
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\IPython\core\interactiveshell.py", line 2721, in run_code
exec code_obj in self.user_global_ns, self.user_ns
File "<ipython-input-257-84ae6ec7b6f6>", line 1, in <module>...
I feel guilty doing an accept-unaccept. So I usually wait a few hours to do the first accept in the first place. But then I'm exchanging one form of aggravation for another. "Why isn't he accepting my obviously correct answer?"
@Kneel-Before-ZOD Thanks. Really, I'm getting a dual degree because I'm stubborn, much less any other admirable quality. I suppose stubbornness helps out every so often, though. :)
if i use how you suggest: ex: ";" i got: line = sep.join([str(e) for e in line])+ "\n" 'F;I;D; ;c;e;n;t;r;o;i;d;X; ;c;e;n;t;r;o;i;d;Y; ;a;r;e;a; ;p;e;r;i;m;e;t;e;r; ;s;e;g;m;e;n;t;s; ;r;a;_;o;r;..............etc etc