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
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
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
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
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
I've had good results with adodbapi as well.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
>
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
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
:
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
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
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
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
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
ojects that need to perform tasks on
non-Microsoft operating systems. :-)
Brian
---
--
http://mail.python.org/mailman/listinfo/python-list
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://
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
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
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
They tell me the error is Recv Timed Out.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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 =
>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
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
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
Yes, we vi/vim users are apparently extraordinary. Is that such a sad
thing? ;-)
--
http://mail.python.org/mailman/listinfo/python-list
there pros and cons then switching from Python to Jython?
--
Regards Brian
--
https://mail.python.org/mailman/listinfo/python-list
(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
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
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
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
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,
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
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
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
-
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
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
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
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
the text in STYLEBLOCK tripple quoted?
Thanks again,
Brian
--
http://mail.python.org/mailman/listinfo/python-list
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
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
You might want to give this site a look:
http://www.livewires.org.uk/python/
--
http://mail.python.org/mailman/listinfo/python-list
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
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
, Student2 etc.
I hope that I am clear about what I am asking.
Thanks,
Brian
--
http://mail.python.org/mailman/listinfo/python-list
?
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
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.
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
> 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
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
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:
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
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
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
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
to rebuild the entire app. Could you do the same type of thing?
Brian.
--
http://mail.python.org/mailman/listinfo/python-list
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
://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
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
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
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
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
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
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
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
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
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
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)?
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
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
[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
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
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
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
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
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
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
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
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
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
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
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)
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
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
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
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
I sincerely appreciate your reply and the time you took to explain it.
Thank you,
Brian
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
[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
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
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
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
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
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
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 - 100 of 1138 matches
Mail list logo