Re: Problem embedding Python.

2009-10-27 Thread Brandon Keown
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;

Re: Problem embedding Python.

2009-10-29 Thread Brandon Keown
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

Re: Problem embedding Python.

2009-10-29 Thread Brandon Keown
O...K... -- http://mail.python.org/mailman/listinfo/python-list

Truoble With A Search Script for ImageBin.org

2010-03-18 Thread Brandon Conner
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

Re: Truoble With A Search Script for ImageBin.org

2010-03-19 Thread Brandon C
*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

script to upload file using POST form

2010-03-19 Thread Brandon C
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

Writing to open subprocess pipes.

2010-06-16 Thread Brandon McGinty
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

Re: Writing to open subprocess pipes.

2010-06-16 Thread Brandon McGinty
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

Multiline regex

2010-07-21 Thread Brandon Harris
;.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

Re: Multiline regex

2010-07-21 Thread Brandon Harris
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

Re: Multiline regex

2010-07-21 Thread Brandon Harris
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

Re: RE: Multiline regex

2010-07-21 Thread Brandon Harris
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&#

Re: Multiline regex

2010-07-21 Thread Brandon Harris
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

new to python - trouble calling a function from another function

2010-08-05 Thread Brandon McCombs
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

Re: new to python - trouble calling a function from another function

2010-08-05 Thread Brandon McCombs
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

Re: new to python - trouble calling a function from another function

2010-08-05 Thread Brandon McCombs
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

Using re.sub with %s

2010-08-18 Thread Brandon Harris
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

base64 Incorrect Padding

2009-07-31 Thread Brandon Fredericks
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

eval string

2010-09-30 Thread Brandon Harris
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

Passing File Objects into Subprocess.Popen

2010-11-04 Thread Brandon Harris
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.

Re: Passing File Objects into Subprocess.Popen

2010-11-04 Thread Brandon Harris
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

Re: Passing File Objects into Subprocess.Popen

2010-11-04 Thread Brandon Harris
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

Issues downloading python.

2017-04-07 Thread Brandon Mace
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

Markers on a matplotlib plot

2013-10-16 Thread Brandon La Porte
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,

Re: Markers on a matplotlib plot

2013-10-16 Thread Brandon La Porte
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

Re: retarded twits posting horseshit in technical groups

2007-04-17 Thread Brandon D Cartwright
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

python docs redirect on python.org is old

2009-04-04 Thread Brandon Craig Rhodes
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

Re: Beware complexity

2005-03-13 Thread Brandon J. Van Every
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

Re: Python becoming less Lisp-like

2005-03-15 Thread Brandon J. Van Every
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

compiled open source Windows lisp (was Re: Python becoming less Lisp-like)

2005-03-15 Thread Brandon J. Van Every
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

Re: compiled open source Windows lisp

2005-03-15 Thread Brandon J. Van Every
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

Re: compiled open source Windows lisp (was Re: Python becoming less Lisp-like)

2005-03-16 Thread Brandon J. Van Every
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.

web authoring tools

2005-04-10 Thread Brandon J. Van Every
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

Re: web authoring tools

2005-04-11 Thread Brandon J. Van Every
"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

Re: web authoring tools

2005-04-11 Thread Brandon J. Van Every
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

Re: web authoring tools

2005-04-11 Thread Brandon J. 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

Re: web authoring tools

2005-04-12 Thread Brandon J. Van Every
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

<    1   2