Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-24 Thread Brian
d GUIs for production and ATE drivers. You want to argue with me? First come visit my employer's TJ factory and watch the boys test 600kVA transformers or 250kVA inverters. 150,000 A of fault current. Brian -- http://mail.python.org/mailman/listinfo/python-list

import fails in non-interactive interpreter

2012-01-25 Thread Brian
es are identical in both contexts. Under what situations would a module be available to through the interactive interpreter but not the non-interactive? I greatly appreciate any thoughts, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: Disable use of pyc file with no matching py file

2012-02-12 Thread Brian
On 2/2/2012 1:21 AM, Terry Reedy wrote: On 2/2/2012 1:42 AM, Devin Jeanpierre wrote: On Wed, Feb 1, 2012 at 2:53 PM, Terry Reedy wrote: And it bothers me that you imput such ignorance to me. You made what I think was a bad analogy and I made a better one of the same type, though still imperfe

Re: Yappi error "context not found"

2011-02-25 Thread Brian
Thanks - I've opened a ticket at http://code.google.com/p/yappi/issues/detail?id=21 -- http://mail.python.org/mailman/listinfo/python-list

Re: I'm happy with Python 2.5

2011-03-07 Thread Brian
While some may see this thread as troll candy, others may not. We want cake. And we need to eat it. Doing a lot of instrument control and data acquisition stuff. And a short dev period has same importance as short run time. As for the safety of those that dwell under and walk over bridges, y

Re: looking for a good python module for MS SQL server

2005-10-31 Thread Brian
I've had good results with adodbapi as well. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQT installation

2004-12-31 Thread Brian
For those curious about Trolltech's stance on Windows, here's what Trolltech's "License FAQ - Open Source Edition" ( http://www.trolltech.com/developer/faqs/license_gpl.html ) has to say: " Why is there no Open Source (GNU GPL) version of Qt on Windows ? We have regrettably not found a way of mak

Re: extreme newbie

2005-06-18 Thread Brian
language. Brian --- cpunerd4 wrote: > Hello programmers, > I stumbled onto the python language by chance and it looks like a > great language. Although from what I've read so far (which isn't much) > I've guessed that python is purely an interpreted language unless its >

Re: Python choice of database

2005-06-20 Thread Brian
I am really surprised that someone hasn't mentioned Gadfly yet. It is a quick, free, relational database written directly for Python itself. http://gadfly.sourceforge.net/ Brian --- Philippe C. Martin wrote: > Hi, > > I am looking for a stand-alone (not client/server) databas

Re: Excellent Site for Developers

2005-06-25 Thread Brian
Do Re Mi chel La Si Do wrote: > rather... super troll 100% Agreed. Can anyone say, "This looks like spam... Feels like spam... and is about as useful here in the Python forums as spam -- therfore my conclusion is that his VB message probably IS SPAM." :-D Brian

Re: Boss wants me to program

2005-06-27 Thread Brian
: 1) Python shines the best on the server realm. 2) VB.net shines the best on the client-computer realm. Brian --- [EMAIL PROTECTED] wrote: > I'm a manager where I work(one of the cogs in a food service company). > The boss needed one of us to become the "tec

Re: Boss wants me to program

2005-06-27 Thread Brian
n them. You have to write software for the platform that one will be working with -- in most cases, that's Microsoft Windows. :-) Brian --- -- http://mail.python.org/mailman/listinfo/python-list

Re: Better console for Windows?

2005-06-28 Thread Brian
The alt-enter tip is handy, although I must say on multiple monitors it's not so helpful. It full screens all of them (cloned across screens), at least on my nVidia card. I'm sure you're all sympathizing with my multiple monitor problem ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: I need help figuring out how to fix this code.

2005-06-29 Thread Brian
quot;, "elif", and "else" statements. This will cause an error in your program. The only time that you need to indent is the code following the if statements. if name == "Steven": print "Then I indent this code here." else: print "This is another coded statement here." > Thanks, > Nathan Pinno You're welcome, Nathan! Hope this helps (HTH), Brian --- -- http://mail.python.org/mailman/listinfo/python-list

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-06-29 Thread Brian
Steven, Very well written... I enjoyed reading your post! Brian --- Steven D'Aprano wrote: > On Tue, 28 Jun 2005 11:27:40 -0700, muldoon wrote: > > >>Americans consider having a "British accent" a sign of sophistication >>and high intelligence. Many comp

Re: Defending Python

2005-07-09 Thread Brian
ojects that need to perform tasks on non-Microsoft operating systems. :-) Brian --- -- http://mail.python.org/mailman/listinfo/python-list

Hello

2005-07-28 Thread brian
The message cannot be represented in 7-bit ASCII encoding and has been sent as a binary attachment. -- Virus Warning Message (on cse.iitkgp.ernet.in) body.scr is removed from here because it contains a virus. --- http://

Re: Success using Python .NET with py2exe?

2005-02-09 Thread Brian
I haven't spent any time recently with it, but I seem to recall having more success using cx_Freeze for packaging than with py2exe (when using Python.NET). In the time since I then, I suspect all of the packagers have gotten more sophisticated, and you might have more options. A good place for qu

Re: wxpython tutorials

2005-02-25 Thread Brian
Raghul, The second link Harlin gave is to the wxPython wiki - it has a variety of pages with information about the toolkit including a number of tutorial pages. The "Getting Started" document linked on the main page is pretty thorough. Once you comfortable with some of the basic concepts, I'd su

Need help

2005-03-01 Thread brian
I am working with a 3rd party credit card company that is using Python version 2.2.2. They are using the httplib module to post data to my server which is a dedicated server with no firewall or any rate-limiting or DDoS prevention. Every time they try, the first 2 posts are successful and it alway

Re: Need help

2005-03-01 Thread brian
They tell me the error is Recv Timed Out. -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help

2005-03-01 Thread brian
I totally agreebut that being said...I want to make sure its not something on my server causing the problem. Im on a windows 2003 server. Let me also throw this into the mixbefore we went down the HTTP post route we first tried to post data directly into MSSQL, but we were getting connecti

Re: Need help

2005-03-01 Thread brian
When you say tools, can you give me one in particular that I can install on my server to do what you were mentioning? -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help

2005-03-03 Thread brian
Got code from the 3rd party, maybe someone can see something wrong with it: def sendDataHTTP( url, postData ): # url format: http://www.blah.com/notrealurl # postData is either a dictionary or list of dictionaries # that contain the data that you want to post. responseList =

Ack! Zombie processes won't die!

2004-12-22 Thread Brian
>From one script, I'm spawnv'ing another that will launch mpg123 to play a specified mp3. Problem is that After the second script has launched mpg123, it'll turn into a zombie process. It doesn't happen when I launch it from the command line, so there's something wrong with the way I'm callin

Detecting if a program is currently running.

2004-12-26 Thread Brian
On a Slackware 9.1 box, I'm trying to detect if mpg123 is currently running/playing a song so that when the song is done, it'll play the next in the list. The problem is that popen'ing ps doesn't always give a correct return. My function is below and I added a second check that runs 1 second

Re: Detecting if a program is currently running.

2004-12-27 Thread Brian
Thanks, that does the trick. Mike Meyer <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Yeah, but it takes work on both ends. You could wrap your mpg123 in a > shell script like so: > > #!/bin/sh > mpg123 "$@" & > echo $! >/tmp/mpg123.pid > > > Or in python 2.4: > > #!/usr/bin/env pyt

Re: Best editor?

2005-04-07 Thread Brian
Yes, we vi/vim users are apparently extraordinary. Is that such a sad thing? ;-) -- http://mail.python.org/mailman/listinfo/python-list

what is Jython?

2015-01-08 Thread Brian
there pros and cons then switching from Python to Jython? -- Regards Brian -- https://mail.python.org/mailman/listinfo/python-list

Python 3 and the requests library

2015-02-09 Thread Brian
(the list in python2 is huge and not posted here): $ pip3 list httplib2 (0.9) pip (1.5.6) requests (2.5.1) setuptools (2.1) urllib3 (1.10) Notre that if I change python3 to python in my script, it works fine using the default Python 2.7.5 version. And as a Plan B I can stay with Python 2.7.5. But I'd really like to move to Python 3 on the Mac. Thanks in advance for any thoughts or help! Brian -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3 and the requests library

2015-02-09 Thread Brian
4/lib/python3.4/tokenize.py", line 40, in __all__ = token.__all__ + ["COMMENT", "tokenize", "detect_encoding", AttributeError: 'module' object has no attribute '__all__' Googling hasn't helped track this one down. In lieu of an

Re: Python 3 and the requests library

2015-02-09 Thread Brian
eworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.pyc But nothing is pointing to anything except what appears to be the formally installed versions of these library modules. Brian -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3 and the requests library

2015-02-09 Thread Brian
Thank you, Ian and Zack! That was exactly the issue. Apparently, having a token.py script (one of my first Python 2 scripts to get an authorization token from a billing server) is OK for Python 2 but breaks Python 3. *face palm* Thank you again so very much! Brian On Monday, February 9, 2015

Python client support for NATS.io

2015-08-26 Thread brian
Hello all...we're updating our Python client support at NATS.io cloud messaging project, and as part of that would like to get your input on which version of Python: https://groups.google.com/forum/#!topic/natsio/e6aoJ6GYqTw Thanks in advance to anyone who has a moment to let us know. Best,

Python and Outlook-style rules

2011-09-09 Thread Brian
I'm about to create a system which will need to allow hundreds of users to create and maintain their own rules in a similar fashion to MS Outlook rules. ie. Each rule consists of one or more user configurable conditions and if/ when the conditions are met then one or more user configurable actions

Re: Python and Outlook-style rules

2011-09-10 Thread Brian
On Sep 9, 5:19 pm, Alec Taylor wrote: > Something like this? > > http://stackoverflow.com/questions/387606/using-user-input-to-find-in... > Actually, I'm looking for a framework or something similar - something more like this, only for python: http://www.codeproject.com/KB/macros/RulesWizard.aspx

Re: Python crash when trying to generate an Excel worksheet with VBA macros

2006-10-04 Thread Brian
dan_roman wrote: > Hi, > I developed a script with a nice interface in Tkinter that allows me to > edit some formulas and to generate an Excel worksheet with VBA macros > within it. The script runs perfectlly in Office 2000, but in Office > 2003 crash at line: "wbc = workbook.VBProject.VBComponents

Strange re problem on OSX but Not Linux

2006-11-08 Thread Brian
- This is running 2.5 on my OSX box. If I run it (again with 2.5) on my SUSE machine, I get no errors. I am sure that I have overlooked something trivial here - so please be gentle if it is on the stupid side of things. Thanks, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange re problem on OSX but Not Linux

2006-11-08 Thread Brian
a local re.py is masking the lib module. (It's a shame this > error is so easy to trip over.) > > -- Paul I figured that one out so I renamed the file. Unfortunately it took me a while to realize that I needed to delete re.pyc as well. Brian -- http://mail.python.org/mailman/listinfo/python-list

TSV to HTML

2006-05-31 Thread Brian
the values in the appropriate tags and insert into table. 4) write the .html file Thanks again for your patience, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: TSV to HTML

2006-05-31 Thread Brian
First let me say that I appreciate the responses that everyone has given. A friend of mine is a ruby programmer but knows nothing about python. He gave me the script below and it does exactly what I want, only it is in Ruby. Not knowing ruby this is greek to me, and I would like to re-write it i

Re: TSV to HTML

2006-06-01 Thread Brian
the text in STYLEBLOCK tripple quoted? Thanks again, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: TSV to HTML

2006-06-01 Thread Brian
Dennis Lee Bieber wrote: > On 1 Jun 2006 03:29:35 -0700, "Brian" <[EMAIL PROTECTED]> declaimed the > following in comp.lang.python: > > > Thank you for that response. Your code was very helpful to me. I > > think that actually seeing how it should

Re: Replace one element of a tuple (LONG)

2006-06-01 Thread Brian
Captain Dondo wrote: > What I'd like to do is build the correct selectlist in the first place, > rather than build the wrong one and then rebuild a correct one. This is sounding more like a SQL/DB problem and less like a Python one. If you have a field that is being pulled from the database that

Re: Are there something like "Effective Python"?

2006-06-02 Thread Brian
You might want to give this site a look: http://www.livewires.org.uk/python/ -- http://mail.python.org/mailman/listinfo/python-list

calling functions style question

2006-06-06 Thread Brian
ain__": ? Both will execute when the script is called directly, I was just wondering if there is a preference, and what the pros and cons to each method were. Thanks, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: Django Quick Start with Schema Evolution Support

2006-06-07 Thread Brian
eave the rest alone since we want to hear about the former and not the later. Brian -- http://mail.python.org/mailman/listinfo/python-list

creating and naming objects

2006-06-07 Thread Brian
, Student2 etc. I hope that I am clear about what I am asking. Thanks, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: creating and naming objects

2006-06-07 Thread Brian
? Thanks for your help and patience. After reading my original post and then this one, I could see that it may look suspiciously like a home work assignment. Trust me it's not. The student example just seemed like a good fit to discuss this. Thanks again, Brian -- http://mail.python.org/ma

Re: creating and naming objects

2006-06-07 Thread Brian
Maarten van Veen wrote: Hi Brian, > > If you would do it like this: > Class Student: > def setName(self, name) > self.name = name > def setId(self, id) > self.id = id > > > def createStudent(): > foo = Student() > foo.

upgrading python on virtual hosting server

2006-06-22 Thread Brian
me: 1) Where should I do the install? 2) How do I make sure that the new version is available to all users? 3) What do I need to do to make sure that current services can use the new version? Thank you, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: XBox 360 free SDK (XNA) and IronPython

2006-09-02 Thread Brian
> IronPython won't work on the XBox 360. Yup. Perhaps sometime in the future. A few weeks ago Albert Ho, MS XNA program manager wrote the following on the MSDN XNA Game Studio Express forum: "Because the Xbox 360 uses a special port of the .NET CF, the LCG method-generation functionality isn't

Working with unsigned/signed types

2006-12-19 Thread brian
ture... Is there a good way to go about this? Thanks! -Brian Shirk Avalanche Photography LLC www.AvalanchePhoto.com McCall, Idaho -- http://mail.python.org/mailman/listinfo/python-list

Re: Working with unsigned/signed types

2006-12-19 Thread brian
since it would confuse the heck out of a bride trying to find her pictures if she stumbled on it... Is there a repository of some sort available for this sort of thing anywhere? Thanks! -Brian On Tue Dec 19 22:07 , Ben Finney <[EMAIL PROTECTED]> sent: >[EMAIL PROTECTED]> writes:

Re: Getting started with Crystal Reports...little help in the far court.

2007-01-08 Thread Brian
Mudcat wrote: > I am not that familiar with Crystal Reports, but having read some other > posts I know that the way to integrate the API with Python is through > the COM interface provide by win32all. > Any pointers in the right direction would be helpful. Like Armury, I worked on Crystal stu

float formatting

2006-01-25 Thread Brian
cimal places However, if I do that I get errors saying that all args were not converted during string formatting. An escaped 'i' does not work either. Any thoughts would be appreciated. Thanks, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: float formatting

2006-01-25 Thread Brian
Thanks guys, that really helped. Am I to assume that the * references the args in the parens? Thanks, Brian -- http://mail.python.org/mailman/listinfo/python-list

Strange behavior of int()

2006-01-26 Thread Brian
s. I think I am doing something wrong in this line: r = r - (k*int(r/k)) Thanks for any help. Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe and library.zip

2005-05-08 Thread brian
to rebuild the entire app. Could you do the same type of thing? Brian. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread brian
f you have good group of people that already know Java, and don't know Python, then use Java for this huge project. Do a smaller project in Python first for the learning curve, to build expertise and confidence, etc. People are more important than programming language. Brian. -- http://mai

Re: Best Web dev language

2005-06-11 Thread Brian
://www.greenteapress.com/thinkpython/ 2) http://www.devshed.com/c/a/Python/ Hope this helps, Brian :-) --- Jon Slaughter wrote: > I'm trying to get into web development for creating a professional web site > and I'm confused on which language I should use. I've read some c

Re: cgi script runs under Opera, but not firefox

2005-06-11 Thread Brian
in the page itself. Brian --- [EMAIL PROTECTED] wrote: > Hey there, > i have a python cgi script that prints out html just fine in the Opera > browser > but doesnt print at all under FireFox. > weird, eh? > i am getting nothing in the apache logs about any error. > perhap

Re: cgi script runs under Opera, but not firefox

2005-06-11 Thread Brian
Bingo, found it! Notice that you accidentally close the document before displaying any information... [EMAIL PROTECTED] wrote: > > Customer Data > > > Watkins Crop Consulting > > Notice the tag above. There's the problem! Brian -- http://mail.python.o

Re: What language to manipulate text files

2005-06-12 Thread Brian
be able to see potential benefits to Python that he or she may not of been aware of. If we don't let others know about the benefits of Python, who will? Brian --- Roose wrote: > Why do people keep asking what language to use for certain things in the > Python newsgroup? Obviously the

Re: checking for when a file or folder exists, typing problems?

2005-06-12 Thread Brian
ssage. Hope this helps, Brian :-) --- Bryan Rasmussen wrote: > Hi > I have a little program that is importing from os.path import exists, join, > isdir, normpath, isfile > at one point in my program I check if a file exists using > if exists("c:\projects"): > > and tha

Re: Is Python Suitable for Large Find & Replace Operations?

2005-06-13 Thread Brian
Hi Rbt, To give an example of processing a lot of data, I used Python to read and process every word in a single text file that contained the entire King James Bible version. It processed it within about one second -- split the words, etc. Worked quite well. Hope this helps, Brian

Re: How should threads be terminated? (related to 'Help with thread related tracebacks')

2005-06-16 Thread Brian
Hi Maxwell, Yes, to terminate a thread in Python early, use the following: import sys; sys.exit(0) This kills the particular thread without wiping out the entire Python application. Hope this helps, Brian :-) --- Maxwell Hammer wrote: > Hi all, > > This is related to a

Re: How should threads be terminated? (related to 'Help with thread related tracebacks')

2005-06-16 Thread Brian
Here's a site that provides an easy, *beginners* example of how to do threading. You might find this useful too... :-) http://www.codesampler.com/python.htm (Look for the "Spawning Threads" section.) Brian --- [EMAIL PROTECTED] wrote: > see http://aspn.activestate.com/AS

Re: thread.start_new_thread question

2005-06-16 Thread Brian
Hi KV, Here's a site that provides an easy, beginners example of how to do threading. You might find this useful too... :-) http://www.codesampler.com/python.htm (Look for the "Spawning Threads" section.) Brian --- Konstantin Veretennicov wrote: > Hi, > > Jus

Text-To-Speech for the Mac (OS X)

2007-06-20 Thread Brian
Hello, Does anyone know how to get Python to be able to perform text-to-speech abilities for the Mac (OS X)? I have been searching Google, but have not found any helpful solutions or resources yet. Brian --- -- http://mail.python.org/mailman/listinfo/python-list

Re: Text-To-Speech for the Mac (OS X)

2007-06-20 Thread Brian
Hi Graham, Ahh, that works! Thank you... :-) Brian --- Graham Dumpleton wrote: > On Jun 21, 9:41 am, Brian <[EMAIL PROTECTED]> wrote: >> Hello, >> >> Does anyone know how to get Python to be able to perform text-to-speech >> abilities for the Mac (OS X)?

Re: Python Newbie Suggestions

2007-05-15 Thread Brian
What about "Learning With Python"? It was written by a high school teacher for teaching python in the classroom for absolute beginners. Best of all, it's FREE: http://www.greenteapress.com/ Byron --- [EMAIL PROTECTED] wrote: > I'm a mechanical engineer with little experience programming. I've

Newbie Question: Getting a list of files

2007-05-15 Thread Brian
Hello, I am currently working on putting together a free, open source, anti-spyware program for the Mac (and eventually for other OS's too.) However, there's one thing that I am currently trying to figure out: How do I, in Python, obtain a recursive list of files in a specified directory, incl

Re: transparent images

2007-05-15 Thread Brian
[EMAIL PROTECTED] wrote: > Does any one know how to make a transparent image with specifically > PIL, but any standard python library will do. I need a spacer, and it > has to be transparent. > > Thanks > Does this have to be done through Python? If not, you might enjoy GIMP (http://www.gimp.o

Re: Newbie Question: Getting a list of files

2007-05-16 Thread Brian
Hi Steven, Thanks for all of the good advice! Much appreciated. Dusty --- Steven D'Aprano wrote: > On Tue, 15 May 2007 17:12:01 -0700, Brian wrote: > >> How do I, in Python, obtain a recursive list of files in a specified >> directory, including the subdirectories, et

Re: Newbie Question: Getting a list of files

2007-05-16 Thread Brian
Thank you very much for your examples! Much appreciated. Dusty --- Ant wrote: > On May 16, 3:07 pm, Gerard Flanagan <[EMAIL PROTECTED]> wrote: > ... >> import os >> >> def iter_dirs(root, dirs=False): > ... > > Rather than rolling your own directory walker: > > The same iterator using os.walk

python 2.5 problems

2007-09-09 Thread Brian
Finally deleted 2.2 and loaded 2.5 (see below), using the msi, on my XP partition. Having intermittent system crashes. Assumed a corrupt download, so deleted and did another download/install. Same problems. The associated DLLs when XP says that it must shut down the idle shell are not consiste

Re: python 2.5 problems

2007-09-11 Thread Brian
Was not specific about my process. Yes, I did use the 'formal' windoze uninstall using Add/Remove Programs. I ran the same code and idle at work (XP Pro/SP2/Python 2.4) with no problems. My next step is to install python 2.5 at work. My Linux partition has Python 2.4, and I do not use idle on

Python too complex ?!?!?!

2007-11-17 Thread Brian
Had a unsettling conversation with a CS instructor that teaches at local high schools and the community college. This person is a long-term Linux/C/Python programmer, but he claims that the install, config, and library models for C# have proved to be less problematic than Python. So both his c

Re: Python too complex ?!?!?!

2007-11-22 Thread Brian
rn skills that are on the IT buzz-word list. - my friend is no longer allowed to use me as an 'unofficial' assistant in these classes (not considered qualified because I only have a B.S. degree), so he only uses stuff that existing staff are (supposedly) familiar with... / Chime Mode I told my friend, the wannabe Python instructor, to walk away from any more volunteer work, and stick to the paid stuff. American education, what a mess... luck, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: A critic of Guido's blog on Python's lambda

2006-05-07 Thread brian
the issue at all. I will say that I am not sure that I know what your LISP code does. However, even if you didn't understand the Python code in my named-function version, the name "contains_no_dash" might provide you with a small clue. Cheers, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: A critic of Guido's blog on Python's lambda

2006-05-07 Thread brian
language that makes it so scalable? See above point - you can more easily bring programmers online in your organization because most programmers find Python easily learnable. And, as a bonus, it is actually a pretty flexible, powerful language. Cheers, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: A critic of Guido's blog on Python's lambda

2006-05-07 Thread brian
en Python also has an advantage. Eric Raymond claims that Python has very high initial productivity and that becoming an expert is fairly easy. BTW, I'm not saying that Common Lisp fits X in this example. Cheers, Brian [1] I'm considering introducing bugs or misdesigns that have to be fixed as part of training for the purposes of this discussion. Also the time needed to learn to coordinate with the rest of the team. -- http://mail.python.org/mailman/listinfo/python-list

Re: A critic of Guido's blog on Python's lambda

2006-05-07 Thread brian
acts as documentation (and a named function is more likely to be explicitly documented than an unnamed one). This argument is pragmatic rather than theoretical. 3. It adds another construction to the language. Cheers, Brian -- http://mail.python.org/mailman/listinfo/python-list

performance difference between OSx and Windows

2006-05-21 Thread Brian
d in 51.05 sec. fast concatenation finished in 0.63 sec. 15 function calls in 51.036 CPU seconds Ordered by: internal time ncalls tottime percall cumtime percall filename:lineno(function) 1 51.033 51.033 51.033 51.033 /Users/brian/Desktop/strTest.py:7(slowS)

Re: performance difference between OSx and Windows

2006-05-21 Thread Brian
Thanks for the response. I was unaware that the G5 was only using one core. Can I ask why that is, and if there is a way to take advantage of all 4 within python? Thanks, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: performance difference between OSx and Windows

2006-05-21 Thread Brian
Thank you for your answer. I had a feeling that it would be a threading issue, but I wasn't sure. Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: performance difference between OSx and Windows

2006-05-22 Thread Brian
As one additional question, can someone point me in the direction of a resource that would explain how I could use Python to tell me what core is actually handling the process? I am not even sure if something like this exists, but it would be an interesting feature to explore. Thanks, Brian

problem with my regex?

2006-05-22 Thread Brian
am unfamiliar with, and I am a bit new with python. Any help is greatly appreciated, as is your patience. Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with my regex?

2006-05-22 Thread Brian
I sincerely appreciate your reply and the time you took to explain it. Thank you, Brian -- http://mail.python.org/mailman/listinfo/python-list

Too big of a list? and other problems

2006-05-22 Thread Brian
ndPics) print "found", len(foundPics), "pictures" print foundPics Again, I sincerely appreciate the answers, time and patience this group is giving me. Thank you for any help you can provide in showing me where I am going wrong. Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: Too big of a list? and other problems

2006-05-22 Thread Brian
Thank you for your insight. It appears that using .extend rather than .append solved the problem. Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: Too big of a list? and other problems

2006-05-22 Thread Brian
quot;jpg", in which case you might want to use > > r"images/.*?\.jpe?g" > Thanks Tim! That modification to the regex helped a lot, and believe it or not, my pic count went up! Thank you, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: performance difference between OSx and Windows

2006-05-23 Thread Brian
[EMAIL PROTECTED] wrote: > Hi Brian, > > You may have already considered this, but since I didn't see it > mentioned in your post, I'll reply anyway. > > I believe the Python binaries that Apple includes with OS X are always > slightly behind the latest that you ca

Re: Python Programming Books?

2006-05-24 Thread Brian
but you get a 2 week free trial to decide if you want it. You can even download whole chapters as pdf's. In my mind it is a great place to test drive a book, or to have one that you only need to see one or two things in. HTH, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: Encrypting a short string?

2008-02-19 Thread Brian
Hi Erik, I really don't recommend the ROT13 cipher, as this is extremely easy to crack. Most grade school kids could break this one in seconds. ;-) If the project that you are working upon has low security needs, (in other words, it's not a financial institution), than you might try somethin

UnknownTimeZoneError

2009-03-31 Thread Brian
I'm running App Engine with Django. I'm having troubles executing timezone conversion via pytz. I have looked at the Google example implementation. The following works in IDLE: >>> import pytz >>> from pytz import common_timezones >>> from pytz import timezone >>> import datetime >>> timestamp = d

Listing all python modules robustly

2009-03-31 Thread Brian
trying to rewrite walk_packages to be robust to failure, but so far without luck. Any advice is appreciated. /Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: Listing all python modules robustly

2009-03-31 Thread Brian
Turns out that the Twisted framework provides better introspective support than standard python, so problem solved! http://twistedmatrix.com/documents/8.2.0/api/twisted.python.modules.html#walkModules On Tue, Mar 31, 2009 at 8:12 AM, Brian wrote: > I've used the C api to write a met

exporting symbols with ctypes?

2009-04-05 Thread Brian
I'd like to load a library that expects executables which link against it to provide a particular symbol. Is there a way to do the inverse of the in_dll() operation? I'd prefer to avoid creating a brand new library on the fly just to satisfy this one dependency. -- http://mail.python.org/mailman/

  1   2   3   4   5   6   7   8   9   10   >