Tkinter on mac - Binding command-q to quit application

2005-11-26 Thread Brandon
2.4.1 (#2, Mar 31 2005, 00:05:10) [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] ------ $Revision: 1.181.2.1 $ Thanks in advance, Brandon -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie namespace question

2004-12-22 Thread Brandon
And I just realized that Jython doesn't support the __builtins__ variable... :( -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie namespace question

2004-12-22 Thread Brandon
Thanks, that worked to get me past the "problem". Did you see my post regarding my issue? I just know that there's a "Python way" to resolve my issue, so if anyone has a better way, I'm really interested. Not only does it feel like a hack, it looks like one too! Even worse! -- http://mail.pyth

Re: Newbie namespace question

2004-12-22 Thread Brandon
Peter, You're correct about the bug. I did need a 'self' parm... I was just winging the example because the actual code is pretty large. I'm using google groups for my posting and it didn't carry spaces through (I did use spaces and not tabs). The "fix" or workaround was to import __builtin__

Re: Newbie namespace question

2004-12-23 Thread Brandon
I did the constructor thing and just didn't like it, it didn't feel clean (I know, I know and monkeying with __builtin__ is?) As for global, that will just make it modlue-level global (I think?) and I have this reference in multiple modules. I think I tried it already, but I can't remember for su

Awesome Python Information

2006-11-05 Thread Brandon
Check out: www.ChezBrandon.com -- http://mail.python.org/mailman/listinfo/python-list

Exposing Excel as a Webservice

2006-09-14 Thread Brandon
eme (I don't mind the performance hit). Has anyone ever done anything like this? How did you get around these problems? Thanks, Brandon -- http://mail.python.org/mailman/listinfo/python-list

Re: Exposing Excel as a Webservice

2006-09-15 Thread Brandon
call into the system guarantees that it will leave everything how it found it. That's sort of why I thought up option 3). Let the OS help me somewhat to clean up. I strongly suspect that my option 2) is to some extent at the mercy of the python garbage collector. I'm not po

Python Info.

2007-06-25 Thread Brandon
Check it out: www.BrandonsMansion.com -- http://mail.python.org/mailman/listinfo/python-list

adding values to keys

2008-02-15 Thread Brandon
0,1,2,3]) ('y', [0,1,2,3]) ('z', [0,1,2,3]) And now I want a master dictionary like: [{'w': [0],[1],[2],[3]}, {'x': [0]...] So I try: MT = {} MT.fromkeys(NT[0], range(alpha,omega)) print MT but this only returns: {} {} {}... Anybody see what I'

dictionary idiom needed

2008-12-11 Thread Brandon
do this with lists? All of the nested for loops I have tried return replicated results, so I can't trust those values. Thanks for any pointers, Brandon -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary idiom needed

2008-12-11 Thread Brandon
es back from my initial attempts to build a nested dictionary. I am stumbling at constructing a "for" loop that automatically creates such nested dictionaries. I hope that clears things up. If you still have any advice, it's much appreciated. Thanks, Brandon -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary idiom needed

2008-12-11 Thread Brandon
> Smells like homework without a particular application. @Scott: Even if that were the case :) I'd still like to figure out how to create nested dictionaries! Brandon -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary idiom needed

2008-12-11 Thread Brandon
> >>> d = defaultdict(lambda: defaultdict(int)) > > Arnaud Ah... so that's what lambdas are for. Many thanks! Brandon -- http://mail.python.org/mailman/listinfo/python-list

Convert string to char array

2008-07-01 Thread Brandon
How do I convert a string to a char array? I am doing this so I can edit the string received from an sql query so I can remove unnecessary characters. -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert string to char array

2008-07-01 Thread Brandon
Thank you both for your help. "Mike Kent" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Jul 1, 2:49 pm, "Brandon" <[EMAIL PROTECTED]> wrote: > How do I convert a string to a char array? I am doing this so I can edit > the string rece

Required items in a form

2008-07-01 Thread Brandon
What I'm trying to do is essentially force a user to fill in required items in a form, which will be saved to a database. How can I get it so that once the user clicks "OK" on the dialog box, it transfers control back to the form, and not save the empty fields into the database? -- http://ma

Inserting into a combo box

2008-08-03 Thread Brandon
I'm attempting to insert items into a combo box, but when it goes to run it, throws up the error: TypeError: argument 1 of QComboBox.insertItem() has an invalid type and here is what I'm trying to do: self.editUsername.insertItem(uname) editUsername is the combo box, and uname is a string I'm a

updating dictionaries from/to dictionaries

2008-08-11 Thread Brandon
't see a way yet to match the tuple key as x[0][0] in one list for all y in the other list. There's just got to be a better way! Thanks for any help, Brandon (trying hard to be Pythonic but isn't there yet) -- http://mail.python.org/mailman/listinfo/python-list

Re: updating dictionaries from/to dictionaries

2008-08-11 Thread Brandon
"Harder to say what you want to do than to just do it." The truly terrible thing is when you know that's the case even as you're saying it. Thanks for the help, all! -- http://mail.python.org/mailman/listinfo/python-list

Re: updating dictionaries from/to dictionaries

2008-08-11 Thread Brandon
I wasn't sure about the update method either, since AFAICT (not far) the values would in fact update, not append as I needed them to. But the iteritems and get combo definitely worked for me. Thank you for the suggested link. I'm familiar with that page, but my skill level isn't so far along yet

Re: updating dictionaries from/to dictionaries

2008-08-11 Thread Brandon
on of the power of lists, nested lists, and dictionaries (with glorious examples) - something that might appeal to a lot of non-full time programmers who need to script a lot but want to be efficient about it, yet don't want to deal with a tutorial that unnecessarily covers all the aspects of Python. My $0.027 (having gone up due to the commodities markets). Thanks again for the input, I do appreciate it! Brandon -- http://mail.python.org/mailman/listinfo/python-list

Re: updating dictionaries from/to dictionaries

2008-08-12 Thread Brandon
On Aug 12, 7:26 am, John Machin <[EMAIL PROTECTED]> wrote: > On Aug 12, 12:26 pm, Brandon <[EMAIL PROTECTED]> wrote: > > > > > You are very correct about the Laplace adjustment. However, a more > > precise statement of my overall problem would involve tra

Re: updating dictionaries from/to dictionaries

2008-08-14 Thread Brandon
> (1) iterating over foo: > for key in foo: >foo[key] += bar.get(key, 0) > > (2) iterating over bar: > for key in bar: >foo[key] += bar[key] > > I (again) challenge you to say *why* you feel that the "iterating over > bar" solution will not work. Well if you're going to be clever enough

File copying from a menu

2008-08-25 Thread Brandon
I'm attempting to have a file copied from a menu selection. The menu already exists, but it won't even create the menu item. If anyone has any ideas, please let me know. -- http://mail.python.org/mailman/listinfo/python-list

Re: File copying from a menu

2008-08-26 Thread Brandon
self.tr("E&xit"), self) self.exitAct.setShortcut(self.tr("Ctrl+Q")) self.exitAct.setStatusTip(self.tr("Exit the application")) self.connect(self.exitAct, QtCore.SIGNAL("triggered()"), self, QtCore.SLOT("close()")) "Fredrik Lundh" <[

Re: File copying from a menu

2008-08-26 Thread Brandon
Turns out I was missing a few lines of code here-and-there, but now it's visible and working. Thanks to anyone who was looking into this for me. "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Brandon wrote: > >> I'm attemp

Question about getmtime

2010-02-19 Thread Brandon
Hi everyone, Does copying or moving a file affect the return value of os.path.getmtime(path)? Thank you, Brandon -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about getmtime

2010-02-19 Thread Brandon
On Feb 19, 10:26 am, Krister Svanlund wrote: > On Fri, Feb 19, 2010 at 5:05 PM, Brandon wrote: > > Hi everyone, > > > Does copying or moving a file affect the return value of > > os.path.getmtime(path)? > > > Thank you, > > Brandon > > Wouldn't

tkFileDialogs

2012-07-05 Thread brandon harris
dows the %APPDAT% folder is hidden by default) Windows Example Code. import tkFileDialog # Won't start in or allow navigation to APPDATA test = tkFileDialog.askdirectory(initialdir='%APPDATA%') # Will start in and navigate to APPDATA test = tkFileDialog.askopenfile(initialdir=&

RE: tkFileDialogs

2012-07-06 Thread brandon harris
It doesn't matter whether I pass the actual path in or the global variable name. The result is the same. Brandon L. Harris From: Karim [kliat...@gmail.com] Sent: Friday, July 06, 2012 12:42 AM To: brandon harris Subject: Re: tkFileDialogs Le

Re: Is Python a commercial proposition ?

2012-07-29 Thread Brandon Schaffer
Another common use is to create automated regression testing frameworks, and other automation tools. I see posting for python developers for this type of thing all the time on stack overflow careers. On Sun, Jul 29, 2012 at 11:43 AM, Mark Lawrence wrote: > On 29/07/2012 17:01, lipska the kat wrot

Python threading/multiprocessing issue.

2011-07-14 Thread Brandon Harris
The odd thing is that I can modify the multiprocessing.Event and it holds, but modifying any attribute on the class goes away. If I am super ignorant of something, please cure me of it. Thanks in advance! Brandon L. Harris -- http://mail.python.org/mailman/listinfo/python-list

Python threading/multiprocessing issue.

2011-07-15 Thread Brandon Harris
The odd thing is that I can modify the multiprocessing.Event and it holds, but modifying any attribute on the class goes away. If I am super ignorant of something, please cure me of it. Thanks in advance! Brandon L. Harris -- http://mail.python.org/mailman/listinfo/python-list

Re: Python threading/multiprocessing issue.

2011-07-15 Thread Brandon Harris
f use? Brandon L. Harris On 07/15/2011 03:55 PM, Lee Harr wrote: I'm working on a tool that runs a number of process is separate thread. I've, up to this point, been using threading.Thread, but from what I read multiprocess will allow multiple processors to be used From the python docs on

Re: PEP 8 and extraneous whitespace

2011-07-21 Thread Brandon Harris
a new longer variable and you can never be consistent in how much whitespace is there. Brandon L. Harris On 07/21/2011 01:46 PM, Andrew Berg wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.21 01:32 PM, Thomas Jollans wrote: So, the PEP says: do not align operators. E

Re: PEP 8 and extraneous whitespace

2011-07-22 Thread Brandon Harris
Poor sod? Makes it sound bad when you say it like that. I am not forced to work at that fixed width, but when I work with code, I often have my vim session split vertically and it's super important to keep things at 80 character to quickly read/edit code. Brandon L. Harris On 07/22/20

Re: new to python, trying to choose a book.

2011-03-06 Thread Brandon LaRocque
I'd suggest Zed Shaw's amazing Learn Python The Hard Way [1] (which isn't as hard as it sounds) - and it's free over the web (but, I believe - you can buy a copy). I dislike Pilgrim's Dive Into Python, but that's just me (though I thoroughly recommend Dive Into HTML5 to anyone interested in HTML5)

Reading Huge UnixMailbox Files

2011-04-26 Thread Brandon McGinty
them using the re.split function with a compiled regexp, and imports each chunk as a message. The regular expression work is where the bottle-neck appears to be, based on timings. I'm wondering if there is a faster way to do this, or some other method that you all would recommend. Brandon McGint

Key Press Not Working

2017-11-02 Thread brandon wallace
  I am trying to catch a key press but it is not working. How can I fix this code? There is no error message so there is no error message to do a search on. I am using Python3.5 64-bit inside the terminal. while True: key = input("Enter a letter: ") if key == ord('q'): break    

Try: Except: evaluates to True every time

2017-11-04 Thread brandon wallace
I have this code that tests a server to see if it is listening on port 123 runs and evaluates to True every time. Even if the server does not exist but it is not supposed to do that. I am getting no error message at all. What is going on with this code?     #!/usr/bin/env python import socket

Re: Python Data base help

2016-10-17 Thread Brandon McCaig
nd you want to query it regularly, consider learning a bit about SQL and sqlite3 and import the data into a "real" database first. Then you'll get the full expressive power of a query language and the performance improvements of binary data and indexing (if you tune it

Re: Quick way to calculate lines of code/comments in a collection of Python scripts?

2016-10-20 Thread Brandon McCaig
trawberry Perl distribution. It comes with batteries included. If you're lucky cpanm will just work(tm) to install it from there. Hope that helps... Regards, -- Brandon McCaig Castopulence Software <https://www.castopulence.org/> Blog <http://www.bambams.ca/> perl -E '$_=q{

Re: How coding in Python is bad for you

2017-01-26 Thread Brandon McCaig
ting the entire block could be useful. Though I suppose it might be too noisy and distract from what matters? Alternatively, you'd need different levels of indentation to capture nested indentation. That shouldn't be a problem if people are limiting their indentation levels though... Regar

Re: How coding in Python is bad for you

2017-01-26 Thread Brandon McCaig
l if my analysis is correct it shouldn't so one of us is obviously wrong. Unfortunately, in my experience, they usually expect the conversation to be over after "but it works"... Regards, -- Brandon McCaig Castopulence Software <https://www.castopulence.org/> Blog <http://www.

Re: How coding in Python is bad for you

2017-01-26 Thread Brandon McCaig
your paste ended. (O_O) You learn something every day. Thank you. I have been using Vim and vi for probably close to a decade by now, but I still have a lot to learn... But nevertheless hate to go without for even a few seconds. Regards, -- Brandon McCaig Castopulence Software <https://www

Gzip module does not support Unix compressed .Z files [SEC=UNOFFICIAL]

2016-07-03 Thread Owen Brandon
ctionality being included in a core module at some point? Sorry if this is not the correct forum for questions like this - any help would be appreciated. Kind Regards Brandon Owen GNSS Network Operator | Geodesy and Seismic Monitoring Group Community Safety and Earth Monitoring Div

RE: Gzip module does not support Unix compressed .Z files [SEC=UNOFFICIAL]

2016-07-04 Thread Owen Brandon
That's actually the module that I wrote for this purpose (adapted Mark Adler's C code) - I haven't optimised it very much. Brandon Owen GNSS Network Operator  |  Geodesy and Seismic Monitoring Group Community Safety and Earth Monitoring Division  |  GEOSC

Re: Were is a great place to Share your finished projects?

2016-07-15 Thread Brandon McCaig
y pulling your name out of nowhere when it looks up the author of commits that are responsible for lines of code... Maybe you should report that to the mailing list and get to the bottom of it... I suspect that the explanation has nothing to do with any bugs in Git. Regards, -- Brandon McCaig

Help with chaos math extensions.

2005-10-04 Thread Brandon Keown
ction it crashes. I have implemented it in C and C++, although I prefer the latter. In C I got errors only with certain ranges in my function. I have attached my source to this email and hope someone can help me. Thanks, Brandon c_lib(cpp).tar.gz Description: application/gzip --

Re: Help with chaos math extensions.

2005-10-05 Thread Brandon K
my programming environment. Thanks > > > On Oct 4, 2005, at 10:25 PM, Brandon Keown wrote: >> >>I have programmed a fractal generator (Julia Set/Mandelbrot Set) >> in python in the past, and have had good success, but it would run so >> slowly because o

Re: Help with chaos math extensions.

2005-10-05 Thread Brandon K
root,50)     c.pack()     root.mainloop() The error occurs in the instantiation of the Mandelbrot_Set object. Additionally in little mini timing scripts such as import time import ctest t = time.time() c = ctest.escapeMap(-1j,100,(500,500)) print time.time()-t this will crash it too however I fo

Re: Extending Python

2005-10-05 Thread Brandon K
I own Python in a Nutshell, as one person pointed out. Alex Martelli does a great job of introducing the concepts, as long as your'e familiar with C. Additionally he covers wrapping (which is sounds like you're trying to do) with SWIG, Pyrex, and a few other options. It's a great book, I hav

Re: Help with chaos math extensions.

2005-10-06 Thread Brandon K
Well, I didn't buy it JUST to compile python extensions, I'm looking to write C++ apps as well, I just use python for a lot of math and science simulations, and I got VS .NET at heavy discount since I'm a student. > Brandon K wrote: >> In case you missed it, I said I have

Re: Absolultely confused...

2005-10-06 Thread Brandon K
> If I take out the "!" in the format string and just use "O", I can at > least get past PyArg_ParseTuple. Is this a compile-time error? Or a runtime error? == Posted via Newsgroups.com - Usenet Access to over 100,000 Newsgroups == Get Anonymous, Uncensored, Access to West and East C

Re: recursive function

2005-10-07 Thread Brandon K
Is there no way to implement your idea in a classical loop? Usually the syntax is cleaner, and there is no limit (except the limit of the range function in certain cases). For example what would be wrong with. def foo(j): while j < n: j+=1 return j I don't know much about th

Re: recursive function

2005-10-07 Thread Brandon K
> def foo(j): > while j < n: > j+=1 > return j > of course I mean: def foo(j): while j < n: j+=1 return j sorry == Posted via Newsgroups.com - Usenet Access to over 100,000 Newsgroups == Get Anonymous, Uncensored, Access to West and East Coast Server Fa

Re: new forum -- homework help/chit chat/easy communication

2005-10-08 Thread Brandon K
Hrm...i find it demeaning to relegate Python to a scripting language while Visual Basic is in the "software development" section. Python so outdoes VB in every way shape and form. > I've launched a new forum not too long ago, and I invite you all to go > there: www.wizardsolutionsusa.com (clic

Re: new forum -- homework help/chit chat/easy communication

2005-10-08 Thread Brandon K
[EMAIL PROTECTED] wrote: > I've launched a new forum not too long ago, and I invite you all to go > there: www.wizardsolutionsusa.com (click on the forum link). We offer > all kinds of help, and for those of you who just like to talk, there's > a chit chat section just for you...Just remember that

Re: new forum -- homework help/chit chat/easy communication

2005-10-08 Thread Brandon K
> In other words, what is the difference between a "scripting language" > and a "programming language". > Good point. == Posted via Newsgroups.com - Usenet Access to over 100,000 Newsgroups == Get Anonymous, Uncensored, Access to West and East Coast Server Farms! == Highest Rete

Re: Windows installer, different versions of Python on Windows

2005-10-10 Thread Brandon K
When you install Python it plug entries into the registry, so that when you go to install add-ons that are pre-compiled binaries, they look into the registry for the python directory. If you can find out how to manipulate the registry so that the binaries would recognize different installation

Confused on Kid

2005-10-10 Thread Brandon K
Hey, so I heard about the TurboGears posting and decided to investigate. I watched some of their video on building a wiki in 20 minutes and was totally blown away because I'm used to python...straight python, not melding together 4 different APIs into one to blah blah. ANYWAY. I was inve

Re: C Extension - return an array of longs or pointer?

2005-10-12 Thread Brandon K
All the veteran programmers out there can correct me, but the way I did it in my extension was this: static PyObject *wrap_doNumberStuff(PyObject* self, PyObject* args) { char* in = 0; char* x = 0; long* result = 0; int i = 0; PyObject* py = PyTuple_New()

Re: C Extension - return an array of longs or pointer?

2005-10-12 Thread Brandon K
I'm sorry...I just woke up and forgot my C...must have left it in the Coffee...Anyway, i made a few mistakes (can't initialize blank tuple...function should return a value, lol). static PyObject* wrap_doNumberStuff(PyObject* self, PyObject* args) { char* in = 0; char* x = 0;

Re: coloring a complex number

2005-10-21 Thread Brandon K
pe(complex()) yields 'complex'), so you use the new operator to generator a class on the fly which is why it works in method B. I hope that's right. -Brandon > Spending the morning avoiding responsibilities, and seeing what it would > take to color some complex number

Re: Xah's edu corner: the Journey of Foreign Characters thru Internet

2005-11-02 Thread Brandon K
So just stop talking. It's funny that you guys are having a conversations about not responding to a guys post. First of all, freedom of speech, blah blah, who cares, just let him alone. But certainly don't go on his post, reply, telling people not to reply. That's like saying EVEN THOUGH I'M

Re: Most efficient way of storing 1024*1024 bits

2005-11-02 Thread Brandon K
BTW, it'd be 6 megabits or 750kb ;) > Six megabytes is pretty much nothing on a modern computer. == Posted via Newsgroups.com - Usenet Access to over 100,000 Newsgroups == Get Anonymous, Uncensored, Access to West and East Coast Server Farms! == Highest Retention and Completion Rat

Re: computer programming

2005-11-02 Thread Brandon K
what is .tk? Turkmenistan? or is it just some arbitrary suffix. > www.javaholics.tk == Posted via Newsgroups.com - Usenet Access to over 100,000 Newsgroups == Get Anonymous, Uncensored, Access to West and East Coast Server Farms! == Highest Retention and Completion Rates! HTTP:/

trouble importing modules

2005-07-14 Thread Brandon Metcalf
ImportError: No module named datetime So, my question is how can I ensure that all modules that _strptime.py, calendar.py, etc. rely are built in the resulting binaries without having to import everything explicitly in my code? I'm using Python 2.3.4. Thanks. -- Brandon -- http://mail

ERROR: IDLEs subprocesses did not make a connection...

2016-01-15 Thread Lee, Brandon
Hello! I am running into the following error and need some guidance. Please see the screenshots of the error, the files I currently have in the /python directory. As well as a link to a troubleshooting post on 'stackoverflow'. Thank you! -Brandon http://stackoverflow.com/question

Try Except Specific Error Messages

2015-05-02 Thread brandon wallace
Hi,   I am try to get more specific error messages using try/except. I ran this code with the cable unplugged to see the error message. I got #!/usr/bin/env python3 import urllib.request webpage = urllib.request.urlopen("http://fakewebsite.com/";) text = webpage.read().decode("utf8") I got t

Python Pickling Issue

2011-11-03 Thread Brandon Harris
n it can't pickle is, so if there's any possible way to at least get the name of what's failing to be pickled, that would be a win. Thanks in advance for all replies. Brandon L. Harris -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Pickling Issue

2011-11-03 Thread Brandon Harris
After digging around a while I discovered I was attempting to pickle a third party class that can't be pickled. Initially I was removing it before pickling and everything was kosher, but at some point it got back onto the class. Apologies. Brandon L. Harris On 11/03/2011 09:42 AM, Br

ideas for programs?

2006-05-30 Thread Brandon McGinty
o, I'm thinking of hiring myself out as a free-lance programmer. Are there many individuals/companies which would aprove programs written in python? Most adds I've seen require the programmer have a strong grasp of c++ or java. Thanks much for all of your help. THX, Brandon McGinty

PythonCard Auto Placement

2006-12-21 Thread Brandon McGinty
p, and the controls for moving don't show up as usable controls in my screen reader. Any help is appreciated. Thanks Much, Brandon McGinty -- http://mail.python.org/mailman/listinfo/python-list

RDFXML Parser For "qualified Dublin Core" Database File

2007-05-29 Thread Brandon McGinty
alf an hour to load with 2 gb of ram. So you all know what I'm talking about, the file is located at: http://www.gutenberg.org/feeds/catalog.rdf.bz2 Does anyone have suggestions for a parser or converter, so I'd be able to view this file, and extract data? Any help is appreciated.

Parsing Rdf (Rewrite)

2007-05-30 Thread Brandon McGinty
m I doing wrong, or am I even in the realm of possibility, trying to get thee elements by name? Thanks, Brandon -- Brandon McGinty McGinty Soft Ltd. Website design, configuration, and maintenance Python and PHP coder Email:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> MSN:[EMAIL PROTECTED]

Re: How to Start

2007-09-13 Thread Brandon Barry
;Idiomatic Python" tutorial. http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html I've benefited greatly from HOWTOs available at A.M. Kuchling's website. http://www.amk.ca/python/howto/ Be sure to consider the optparse and cmd modules if you decide to develop the simple shell you've described. I hope this helps, Brandon -- http://mail.python.org/mailman/listinfo/python-list

Algebraic Modules For Python

2007-10-01 Thread Brandon McGinty
icies, graphing or listing points for function, etc? If not, I may be developing some; I am a blind highschool student and as of now there are no accessible graphing calculators for me to use in my algebra 2 class. Thanks for your help. Thanks, Brandon McGinty -- Brandon McGinty McGinty Sof

paths in modules

2007-02-22 Thread Brandon Mintern
g that there is some simple solution to this problem that I simply haven't found in my searches so far. If so, I will humbly accept any ridicule that comes along with said simple solution :-). Thanks in advance, Brandon -- http://mail.python.org/mailman/listinfo/python-list

Re: paths in modules

2007-02-22 Thread Brandon Mintern
On Thu, 22 Feb 2007 11:13:46 -0500, Brandon Mintern wrote: > Of course, the problem with that approach is that it fails because there > is no utility_dir in the CWD... ...and of course by CWD, I actually mean "current working directory", which should have actually been PWD or

Re: paths in modules (solved)

2007-02-22 Thread Brandon Mintern
On Thu, 22 Feb 2007 08:28:50 -0800, Paul Boddie wrote: > And you really want to refer to utility_dir relative to some_wrapper. > What you can try is to split the __file__ attribute of some_wrapper - > it's a standard attribute on imported modules - in order to refer to > the module's parent directo

Re: paths in modules

2007-02-22 Thread Brandon Mintern
On Thu, 22 Feb 2007 10:30:59 -0600, Larry Bates wrote: > Normally this would be: > > f = os.popen('./wrapper_dir/utility_dir/some_external_utility') > > -Larry Yes, but the problem with that solution is, let's say that I further abstract the whole thing and I add a directory outside of my toplev

Re: Python beginner!

2007-11-18 Thread Brandon Sandrowicz
On 11/16/07, Shawn Milochik <[EMAIL PROTECTED]> wrote: > I completely support Wildemar. Lazy questions like that deserve absolutely > nothing. > > I agree that cushioning the reply with a brief explanation of why that > question sucks would have helped the original poster, but he doesn't deserve >

Compile with GLib-1.2 instead of 2.4

2008-01-15 Thread Brandon Perry
ad of/and GLib2.4? Thanks, Brandon -- http://mail.python.org/mailman/listinfo/python-list

Re: Compile with GLib-1.2 instead of 2.4

2008-01-15 Thread Brandon Perry
Sorry, I know what arg to use with ./configure. With --with-libc=STRING, do I put the version I want, or the path to my GLib 1.2 files? On Tue, 2008-01-15 at 14:53 -0600, Brandon Perry wrote: > Hi, I am having to compile a standalone python because the webserver I > use doesn't allo

Unknown cause to error (new to python)

2008-01-16 Thread Brandon Perry
minds/public_html/torrents/TF_BitTornado/BitTornado/download_bt1.py", line 4, in ? File "/home/vminds/public_html/torrents/TF_BitTornado/btphptornado.py", line 15, in ? I am using 2.2 for compatibility purposes. Thanks, Brandon -- http://mail.python.org/mailman/listinfo/python-list

Re: Unknown cause to error (new to python)

2008-01-16 Thread Brandon Perry
Sorry, this is all I can get. :-( This isn't my webserver, so the only error logs I get are what they give me. I guess I will just have to keep working at it. Thanks for looking at it though, Brandon On Wed, 2008-01-16 at 15:12 +0100, Bruno Desthuilliers wrote: > Brandon Perry a écrit

Extracting file from zip archive in Python 2.6.1

2009-02-02 Thread Brandon Taylor
name' and extracting the files to it. Example: if 'thumbnail_path' is 'images/inventory/thumbnails/' extract is creating: 'images/inventory/thumbnails/test1/' and saving the files out. How can I set the path to be exactly: 'images/inventory/thumbnails&

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread Brandon Taylor
On Feb 3, 9:45 am, "Gabriel Genellina" wrote: > En Tue, 03 Feb 2009 05:31:24 -0200, Brandon Taylor   > escribió: > > > I'm having an issue specifying the path for extracting files from > > a .zip archive. In my method, I have: > > > zip_

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread Brandon Taylor
On Feb 3, 1:16 pm, Brandon Taylor wrote: > On Feb 3, 9:45 am, "Gabriel Genellina" wrote: > > > > > En Tue, 03 Feb 2009 05:31:24 -0200, Brandon Taylor   > > escribió: > > > > I'm having an issue specifying the path for extracting fi

Re: Extracting file from zip archive in Python 2.6.1

2009-02-03 Thread Brandon Taylor
On Feb 3, 9:15 pm, rdmur...@bitdance.com wrote: > Quoth Brandon Taylor : > > > > > Ok, the first thing I needed to do was add: > > > from __future__ import with_statement at the beginning of my file > > > but: > > > with zip_file.ope

Re: Extracting file from zip archive in Python 2.6.1

2009-02-05 Thread Brandon Taylor
On Feb 4, 12:16 am, "Gabriel Genellina" wrote: > En Wed, 04 Feb 2009 00:36:40 -0200, Brandon Taylor   > escribió: > > > > > On Feb 3, 1:16 pm, Brandon Taylor wrote: > >> On Feb 3, 9:45 am, "Gabriel Genellina" wrote: > >> > En Tue,

cx_Oracle-5.0 Problem

2009-02-12 Thread Brandon Taylor
Hello everyone, I'm Brandon Taylor, senior web developer with the University of Texas at Austin. We're using Python 2.6.1 and having a lot of difficulty getting the cx_Oracle-5.0 library to install on one of our MacBooks running OS X 10.5.6. We can get cx_Oracle to compile, but aft

Re: cx_Oracle-5.0 Problem

2009-02-12 Thread Brandon Taylor
On Feb 12, 9:31 am, redbaron wrote: > > ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/ > > lib/python2.6/site-packages/cx_Oracle.so, 2): Symbol not found: > > ___divdi3 > > You didn't link cx_Oracle.so all libs which it use. run "ldd -r > cx_Oracle.so" and you'll have an id

Problem with environment variables and cx_Oracle

2009-02-24 Thread Brandon Taylor
e environment handle I've been wrestling with this for quite some time. My Oracle person assures me that my user has appropriate permissions for the schema. My Oracle experience is pretty limited, but this seems like it's an issue with the environment on my Mac. Does anyone have any ide

dictionary with tuple keys

2009-12-14 Thread Brandon Devine
values once I've collected these keys. I am staring at my screen, pondering ugly things, and I just know I must be missing a Pythonic solution. Any suggestions? Thanks for any help, Brandon -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary with tuple keys

2009-12-15 Thread Brandon Devine
So grateful! Thanks to all. The breadth of Python continues to amaze me, as does your generosity. ("Relative clarity like relative beauty is in the eye of the beholder, and few parents have ugly children"... fantastic!) Brandon -- http://mail.python.org/mailman/listinfo/python-list

Problem embedding Python.

2009-10-26 Thread Brandon Keown
I am going to try to embed python in an application, but in simple testing, I could not get it to work. The following code seems like it should work, but it crashes, and I have tried several things. What could I be doing wrong? #include int main(int argc, char* argv[]) { FILE* fp = fop

Re: Problem embedding Python.

2009-10-27 Thread Brandon Keown
On Oct 27, 2:47 am, "Gabriel Genellina" wrote: > > Crashes, how? Try running inside a debugger to see where it crashes, or at   > least put a few printf. > You didn't test for the fopen result; are you sure "test.py" exists in the   > current directory at the time you run it? > > -- > Gabriel Gene

  1   2   >