I found the problem. Evidently as posted on a few other areas of the
internet, this is a common problem when trying to use compilers that
may have different type definitions for (FILE*). Here is workable
solution:
#include
int main(int argc, char* argv[])
{
PyObject* PyFileObject;
On Oct 27, 7:48 pm, "Gabriel Genellina"
wrote:
> En Tue, 27 Oct 2009 06:36:18 -0300, Brandon Keown
> escribió:
>
> > On Oct 27, 2:47 am, "Gabriel Genellina"
> > wrote:
>
> >> You didn't test for the fopen result; are you sure "test
O...K...
--
http://mail.python.org/mailman/listinfo/python-list
Hey Pythoners,
its my first post here, yay!
I'm trying to develop a script that will return the results of a POST
request that should list all images uploaded by a user. However, when i run
the script, i get returned the HTML of the page with the search form. I am
wondering what am i doing inco
*grumble* *grumble* *grumble*
oops, sorry ... my mistake
it turns out that i misspelled one of the values and left another one out.
here's the working script now for anyone who may care:
import urllib
import urllib2
url = 'http://imagebin.org/index.php?page=search'
values = {'search_for' : 'bla
got another question for yall wonderful minds; how can i upload a file to a
server that uses a POST form?
here's the link to the form that i'd like to be able to upload a file:
http://imagebin.org/index.php?page=add
tks
--
http://mail.python.org/mailman/listinfo/python-list
if not, I shall do my best to elaborate
further.
I appreciate all the help this group has given me in the past, and I
certainly appreciate any help you all can offer now.
Sincerely,
Brandon McGinty
--
http://mail.python.org/mailman/listinfo/python-list
Ah. Thank you all for your quick responses. I shall implement
non-blocking stdin/stdout objects, then.
Thank You,
Brandon McGinty
On 6/16/2010 5:37 PM, Thomas Jollans wrote:
On 06/16/2010 10:29 PM, Brandon McGinty wrote:
All,
I have researched this both in the python documentation, and via
;.kot[0]" 5;
would be what my regex would grab.
I'm currently only able to grab out the first line and part of the
second line, but no more.
regex is as follows
my_regexp = re.compile("createNode\ animCurve.*\n[\t*setAttr.*\n]*")
I've run several variations of this, but
what do you mean by slurp the entire file?
I'm trying to use regular expressions because line by line parsing will
be too slow. And example file would have somewhere in the realm of 6
million lines of code.
Brandon L. Harris
Rodrick Brown wrote:
Slurp the entire file into a string and
At the moment I'm trying to stick with built in python modules to create
tools for a much larger pipeline on multiple OSes.
Brandon L. Harris
Eknath Venkataramani wrote:
On Wed, Jul 21, 2010 at 8:12 PM, Brandon Harris
mailto:[email protected]>> wrote:
I'm t
I could make it that simple, but that is also incredibly slow and on a
file with several million lines, it takes somewhere in the league of
half an hour to grab all the data. I need this to grab data from many
many file and return the data quickly.
Brandon L. Harris
Andreas Tawn wrote:
I
Could it be that there isn't just that type of data in the file? there
are many different types, that is just one that I'm trying to grab.
Brandon L. Harris
Andreas Tawn wrote:
I could make it that simple, but that is also incredibly slow and on a
file with several million lines
Hello,
I'm building an elevator simulator for a class assignment. I recently
ran into a roadblock and don't know how to fix it. For some reason, in
my checkQueue function below, the call to self.goUp() is never executed.
It is on the last line of code I pasted in. I can put print statements
b
Jon Clements wrote:
On 5 Aug, 08:25, Brandon McCombs wrote:
Hello,
I'm building an elevator simulator for a class assignment. I recently
ran into a roadblock and don't know how to fix it. For some reason, in
my checkQueue function below, the call to self.goUp() is never executed.
It
Ulrich Eckhardt wrote:
Brandon McCombs wrote:
I'm building an elevator simulator for a class assignment. I recently
ran into a roadblock and don't know how to fix it. For some reason, in
my checkQueue function below, the call to self.goUp() is never executed.
[...]
sorry about the
27;%'gosh', test)
return is /my/gosh/whats/wrong
Any help would be good. I've tried passing the value as an int, or
recasting that value as something else, passing it as a raw string,
removing the r and just double escaping the groups.
Brandon L. Harris
--
http://mail.python.org/mailman/listinfo/python-list
I did a search within this group, but couldn't find any information on
this.
I am sending base64 encoded data as the content over http using
urllib2 urlopen. When I receive the data and attempt to decode it, I
get an "Incorrect Padding" error. Is there a simple way to fix this? A
better way to sen
import sys;
sys.stderr.write("\n\n\nCompleted!!!\nCompleted!!!\nCompleted!!!\nCompleted!!!\nCompleted!!!\nCompleted!!!\n\n\n");')
Traceback (most recent call last):
File "", line 1, in
File "", line 1
import sys; sys.stderr.write("
^
SyntaxError: invalid syntax
Brandon L. Harris
--
http://mail.python.org/mailman/listinfo/python-list
oraryFile()
my_stdout = tempfile.TemporaryFile()
process = subprocess.Popen(my_cmd, stderr=my_stderr, stdout=my_stdout)
process.wait()
print my_stderr.read()
print my_stdout.read()
print "Finished!!!"
Any help on this issue would be awesome! thanks!
Brandon L.
l.
I did try running communicate before and after the wait() but to no avail.
Brandon L. Harris
On 11/04/2010 05:39 PM, Antoine Pitrou wrote:
Try to rewind the file pointer before reading from it.
--
http://mail.python.org/mailman/listinfo/python-list
ok. Jumping back to the start of the file solved the problem.
(file.seek(0)) Big thanks for that insight!
Brandon L. Harris
On 11/04/2010 05:49 PM, Brandon Harris wrote:
What do you mean by rewind the file pointer before reading from it?
Seek back to the beginning? And It sounded very
I have downloaded python onto a DELL laptop, but it will not run. I have
tried to install it multiple times but each time it does not work so I try
again. This time it has come up with a system error and that "The program
can't start because api-ms-win-crt-runtime-[1-1-0.dlll is missing"
What can I
I have the following code to make a plot of 4 different supply curves
(economics).
from matplotlib import pyplot as plt
price = range(0,51)
q1 = [x/2.0 for x in price]
q2 = [x/4.0 for x in price]
q3 = [x/5.0 for x in price]
q4 = [x/10.0 for x in price]
markers_on = [20, 40]
plt.plot(q1,price,
On Wednesday, 16 October 2013 18:31:09 UTC-4, Mark Lawrence wrote:
> On 16/10/2013 22:34, Brandon La Porte wrote:
>
> > I have the following code to make a plot of 4 different supply curves
> > (economics).
>
> >
>
> >
>
> > from matplotlib imp
On Tue, 17 Apr 2007 15:43:02 -0700, MassiveProng
<[EMAIL PROTECTED]> wrote:
>On 17 Apr 2007 06:56:05 -0700, [EMAIL PROTECTED] Gave us:
>
>>We know that...
>
> You're a fucking retard.
But you are a text book example of a retard shoveling horseshit to
technical groups.This is why you are universa
When I visit ...
http://www.python.org/doc/lib/lib.html
... I get redirected to ...
http://www.python.org/doc/2.5.2/lib/lib.html
... which seems a bit old.
--
Brandon Craig Rhodes [email protected] http://rhodesmill.org/brandon
--
http://mail.python.org/mailman/listinfo
nd the notion of 'BDFL', as
heretical as that may sound.
--
Cheers, www.indiegamedesign.com
Brandon Van Every Seattle, WA
"Troll" - (n.) Anything you don't like.
Usage: "He's just a troll."
--
http://mail.python.org/mailman/listinfo/python-list
ow fragmented the Lisp world is.
--
Cheers, www.indiegamedesign.com
Brandon Van Every Seattle, WA
"witch-hunt" - (noun) (Date: 1885)
1: a searching out for persecution of persons accused
of witchcraft
2: the searching out and deliberate harassmen
s, covering the most popular
> platforms (Windows, Linux, Mac).
Last I looked, 2 years ago?, there were no compiled, open source lisps that
ran on Windows. Has this changed?
--
Cheers, www.indiegamedesign.com
Brandon Van Every Seattle, WA
"The pioneer is th
www.indiegamedesign.com
Brandon Van Every Seattle, WA
20% of the world is real.
80% is gobbledygook we make up inside our own heads.
--
http://mail.python.org/mailman/listinfo/python-list
Carl Shapiro wrote:
> "Brandon J. Van Every" <[EMAIL PROTECTED]>
> writes:
>
>> Last I looked, 2 years ago?, there were no compiled, open source
>> lisps that ran on Windows. Has this changed?
>
> I have a virtually completed port of CMUCL to Win32.
ocal
machine where I do all development is Windows. I'd be interested to
know about Linux solutions too though.
--
Cheers, www.indiegamedesign.com
Brandon Van Every Seattle, WA
"The pioneer is the one with the arrows in his back."
- anonymous entrepreneur
--
http://mail.python.org/mailman/listinfo/python-list
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> Brandon J. Van Every wrote:
>
>> Ideally, I would like an open source website + html design tool
>> implemented in Python
>
> didn't you just say that ideally, you wanted a tool
wn text and graphics of course.
Thanks for that insight. It may not be the answer I exactly wanted to
hear, but it does ring true with regards to my FrontPage 2000 experience.
--
Cheers, www.indiegamedesign.com
Brandon Van Every
anything terribly programmatic. I want to concentrate on
the content, not the mechanism.
--
Cheers, www.indiegamedesign.com
Brandon Van Every Seattle, WA
"The pioneer is the one with the arrows in his back."
- anonymous entrepreneur
--
http://mail.python.org/mailman/listinfo/python-list
Steve Holden <[EMAIL PROTECTED]> wrote in
> Brandon J. Van Every wrote:
>>
>> I believe Dreamweaver-esque. I see myself writing articles and
>> eventually doing snazzy eye candy layouts. I do not see myself
>> engaging in elaborate flow control or anything ter
101 - 137 of 137 matches
Mail list logo