On May 25, 11:45 am, Ed Keith e_...@yahoo.com wrote:
I do not have my library with me, but I remember a book that fits the bill
exactly, is was from Microsoft Press, I think it was called Writing Solid
Code
Hope this helps,
-EdK
Ed Keith
e_...@yahoo.com
Blog: edkeith.blogspot.com
On Aug 11, 2:14 pm, squishywaf...@gmail.com
squishywaf...@gmail.com wrote:
I'm not exactly sure what the term for this would be, but I was
wondering if there were any Python packages that supported some kind
of ad-hoc message broadcasting. What I'd like to do is something like
this:
* On a
On Aug 3, 10:58 am, king kikapu [EMAIL PROTECTED] wrote:
Hi,
this is actually a question to those of us who use Eclipse and Pydev
as their main Python developing environment. As i use Eclipse (3.3
Europa) only for Python and i have nothing to do with Java, is there a
way to disable/uninstall
On Aug 2, 8:51 am, Steven D'Aprano
[EMAIL PROTECTED] wrote:
On Thu, 02 Aug 2007 09:31:43 +, cool.vimalsmail wrote:
[snip]
You would be better off actually writing a sensible subject line instead
of grovelling.
Subject: How to use gzip in Python? [beginner]
Then, having written a good
On Aug 2, 12:58 pm, Terry Reedy [EMAIL PROTECTED] wrote:
gregarican [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
| friendly than Python's. Your points are well-taken in how to properly
| post and how to do your own homework. Message correct. Delivery
| lacking...
Sorry, I saw
On Aug 2, 11:03 am, Bruno Desthuilliers
[EMAIL PROTECTED] wrote:
gregarican a écrit :
(snip)
This link answers my question
--http://www.google.com/search?hl=enq=Python+list+rudeness.
I seriously don't think that this newsgroup can be qualified as rude
(and I'm possibly one of the rudest
On Jul 24, 6:57 am, NicolasG [EMAIL PROTECTED] wrote:
Why would you want to become a programmer? Programmers smell bad,
they have no social life, they get treated like crap by everyone.
They can get paid pretty well but then they spend all the money on
useless electronic junk so they
On Feb 10, 6:26 pm, Geoff Hill [EMAIL PROTECTED] wrote:
What's the way to go about learning Python's regular expressions? I feel
like such an idiot - being so strong in a programming language but knowing
nothing about RE.
I highly recommend reading the book Mastering Regular Expressions,
which
I would recommend learning one language out of each of three potential
groups. Just my $0.02 USD:
1) Larger commercial languages - Java, C++, C#.
2) Fun, productive scripting languages - Python, Ruby
3) Academic languages - C, Lisp, Haskell, Smalltalk
This doesn't mean that Python can't be a
of questioning...
Adam Jones wrote:
gregarican wrote:
gavino wrote:
wtf
You have to be trolling I would think.
Yeah, gavino has been trolling comp.lang.lisp for quite some time. For
the life of me I can't understand why he would troll comp.lang.python
when comp.lang.lisp is there.
-Adam
gavino wrote:
wtf
You have to be trolling I would think. For most people I think they
would like to code in Python if they had a personal choice. But for
professional reasons they are likely forced to code in Java because of
the sheep mentality of the large corporate drone-dom that's out there.
For my tastes I like ActiveState's Komodo for a Python IDE. Eclipse is
too bloated, slow, and is like a Tower of Babel. From what I've seen of
SPE it seems good, although the download website seems to throw a lot
of pop-up adware/spyware installs at you...
giuseppe wrote:
What is the better IDE
That's what I would imagine. Kind of like calling some Microsoft Office
COM/OLE methods in a wrapper. As long as the wrapper has most of the
methods you need and the core COM/OLE calls don't change then that's a
great start.
Gary Herron wrote:
[EMAIL PROTECTED] wrote:
Are then any currently
Lots of folks have pointed out large scale Python success stories
ranging from NASA to Google to Amazon. Such companies should make for
good PHB fodder in your argument. Most likely if the product manager is
just a drone you can throw in some other acceptable norm. Since
IronPython and Microsoft's
Just because the last code update was a little over a year ago doesn't
mean the UNO project is dead. If the OpenOffice API has remained
basically the same since UNO was last updated and the Python wrappers
are relatively comprehensive then it should fit the bill. Googling
around the UNO project
As I read in another post on this thread, do some initial scoping out
of either framework and pick the one that seems to suit your way of
thinking/coding the best. If you scan over some sample code on the
projects' websites you should get a basic idea of what they will be
like.
Although a bit
SPE looks good. I've used Komodo for about a year or so but am
considering giving SPE a try. All of the malware/spyware/adware that
was attempting to load on my system when I visited the SPE website
wasn't so good, however :-/
crystalattice wrote:
Bart Ogryczak wrote:
Hi,
Rigth now I'm using
Bruno Desthuilliers wrote:
Please define security. I fail to see how language-inforced access
restriction (and mandatory declarative static typing etc) relates to
'security'. As far as I'm concerned, security is about protecting a
system from piracy, not about inflicting useless pain to
I would suggest trying to pick up Ruby. Knowing both Python and Ruby
has helped me in that I can choose whichever tool is the best fit.
There are certain cases where I have to abandon Ruby for a certain
project because the library isn't mature enough or cross platform
enough for my requirements.
Ray wrote:
The lack of support for Oracle and SQL Server by Django is also a
killer that'll prevent Django from being picked up by a LOT of
companies (sadly, including mine :( ).
Uh, yeah. I was aware of Django but haven't had the time to delve into
it. If it doesn't support these larger
I apologize in advance for not googling in depth enough :-) I am
looking for use Python's SOAP implementation to pull some retail
pricing data for a work project. Our Internet access goes through an
authenticating proxy server. Can I access information in this scenario
using SOAPy? I have seen
Please disregard, as I googled my way to the answer. I used SOAPProxy
to specify the information I needed to get out to the external SOAP
service. All is well and away we go :-)
gregarican wrote:
I apologize in advance for not googling in depth enough :-) I am
looking for use Python's SOAP
Just curious if anyone out there uses Python programming in the
Widestudio (http://www.widestudio.org) GUI IDE toolkit. I have looked
into it when running into some portability limitations trying certain
GUI tookits for Ruby, but couldn't get immersed into Widestudio. Since
I use Python as well I
Here's an URL to a project that appears to be dated from 2004 --
http://skreak.com/wrt54g/python.php.
Jack wrote:
Is there a Python packaging that is specifically for
embedded systems? ie, very small and configurable so the
user gets to select what modules to install?
For Linux-based
Or Python on the Zaurus, which I used to develop a wifi CRM app on a
group of refurb Sharp Zaurus SL-5500 units. Here's a link to the Python
implementation on the Z -- http://starship.python.net/~hinsen/Zaurus/.
Grzegorz Makarewicz wrote:
Jack wrote:
Is there a Python packaging that is
Once you are ready to take the plunge another good document is the
Python tutorial written by Guido Von Rossum himself
(http://docs.python.org/tut/). It's not a full fledged 300 page
manifesto but it's covers the basic of the language.
IOANNIS MANOLOUDIS wrote:
I guess it's better to wait for
Learning Python, Perl, or Ruby would help you create admin scripts that
would save you lots of manual work. For me automated log file alerting,
SQL query parsing, SQL table updates, Internet file
uploading/downloading, etc. has been a huge plus. Perl is likely the
most widely used in terms of
Try Learning Python which is part of the O'Reilly series of books
they publish on computer programming. It's a good start. Most public
library systems have copies you can check out, and most larger
bookstores have it. Otherwise there's always Amazon.Com. Welcome to
Python and enjoy!
IOANNIS
Using Pythonwin's COM Makepy utility I created a COM wrapper around an
OCX file that's used to communicate with a magstripe card reader. The
wrapper was created without incident and I can invoke any get type of
method without a problem. But whenever I attempt to invoke any of the
set type of
the
dialog is then
a control container
see Python24\Lib\site-packages\pythonwin\pywin\Demos\ocx\ocxtest.py
Stefan
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of gregarican
Sent: Friday, July 07, 2006 1:37 PM
To: python-list@python.org
Ever read Flowers for Algernon? Just curious...
donxfabio wrote:
Help me
Syntax error on line 189 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/mod_unique_id.so into server:
/etc/httpd/modules/mod_unique_id.so: ELF file's phentsize not the
expected size
Whats this?
--
Wow that's serious Old School. Reminds me of way-back-when in Data
Processing class we used VisiCalc on the old Trash-80's for spreadsheet
work. Cut a notch in those 5 1/4 floppies and voila, you doubled your
storage capacity :-)
Dennis Lee Bieber wrote:
On Thu, 08 Jun 2006 13:52:38 GMT, John
Am I missing something? I don't read where the poster mentioned the
operation as being CPU intensive. He does mention that the entirety of
a 10 GB file cannot be loaded into memory. If you discount physical
swapfile paging and base this assumption on a normal PC that might
have maybe 1 or 2 GB of
Point for Fredrik. If someone doesn't recognize the inherent
performance differences between different XML parsers they haven't
experienced the pain (and eventual victory) of trying to optimize their
techniques for working with the albatross that XML can be :-)
Fredrik Lundh wrote:
fuzzylollipop
10 gigs? Wow, even using SAX I would imagine that you would be pushing
the limits of reasonable performance. Any way you can depart from the
XML requirement? That's not really what XML was intended for in terms
of passing along information IMHO...
[EMAIL PROTECTED] wrote:
I wrote a program that
That a good sized Goldmine database. In past lives I have supported
that app and recall that you could match the Goldmine front end against
an SQL backend. If you can get to the underlying data utilizing SQL you
can selectively port over sections of the database and might be able to
attack things
Currently I am using Python for a CRM client application that runs on
Win32, ARM Linux, and WinCE platforms. It pushes and pulls contact data
using XMLRPC calls so that it doesn't lock the client into having to
use CDO for communicating with the Exchange Server and ADO for
communicating with the
.
As for my preferred language I use Smalltalk, Ruby, and Python each
about a third of the time depending on what I'm looking to accomplish.
For quick admin scripts Ruby is my choice, but perhaps that's just
because I learned it first :-)
Sion Arrowsmith wrote:
gregarican [EMAIL PROTECTED] wrote:
I
Lemme see, starting *and* finishing a project in a language you've
never practically used before within a day's time? Sounds like a clip
from next season's opener of the TV show '24' to me.
I came from using Ruby about a year or so and even then it took a
couple of days of browsing through the
We have sort of a problem here uh yeah
(http://www.luminomagazine.com/2004.03/spotlight/officespace/images/lumbergh/lumbergh1.jpg)...
Fredrik Lundh wrote:
A.M wrote:
This is my 1st day that I am seriously diving into Python and I have to
finish this application by the
Dear A.M.,
The day is complete. My TPS reports still aren't on my desk. Either
with or without cover sheets. Not a good time to try to teach yourself
a new language. Please gather your belongings and move down to basement
storage C.
That'd be great,
Bill Lumberg
John Machin wrote:
A.M wrote:
I third this opinion. This book gave me a lot of insight and helped me
get comfortable using Python. I also recall looking at a document Guido
published on how to get started with Python as well as reading the
reference docs that come bundled with the language install. Of course I
came from a
Peter Decker wrote:
Funny, I was going to say that the problem is when the author prefers
a font with a differntly-sized space. Some of us got rid of editing in
fixed-width fonts when we left Fortran.
Don't know what all of the hub-bub here is regarding tab/space
indentation. My punched cards
Ravi Teja wrote:
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
Actual the parent post on the thread wasn't asking a question. They
were making a somewhat puzzling dangling statement.
here we discuss the most basic concepts about python
Where is
JyotiC wrote:
Thanx for the help.
Does all gui's take time to load.
is there a way to dec this time.
Have you tried loading a Java GUI app through launching the Java
Virtual Machine? That's pretty slow too. And that's a bytecode compiled
medium. Unfortunately most interpreted programming
bruno wrote:
Err...
And ?
It's the snide, curt replies such as your recent ones in this thread
that reinforce the generalization that the Python community can be
rude.
--
http://mail.python.org/mailman/listinfo/python-list
bruno wrote:
Err... Even if Lisp is the father of functional programming, it is
definitively not a 'pure' FPL.
True. I couldn't referred to something like Haskell as being pure FP.
My bad :-)
--
http://mail.python.org/mailman/listinfo/python-list
Rune wrote:
No. Simula is the original object oriented programming language.
Thanks for pointing this out. I had read about references to Simula but
never looked beyond the term itself. Interesting stuff. Especially
since it was developed so long ago. Very interesting...
--
Here are a few languages I recommend most programmers should at least
have a peek at:
1) Smalltalk - The original object oriented programming language.
Influenced anything from Mac/Windows GUI to Java language. Terse, clean
syntax. IDE rolled into an operating system rolled into a set of core
Paul Watson wrote:
Does pwm run well on Python 2.4? The last release appears to be in
2003. The Manning discussion forum is dead.
Is there a better path to learning and producing tkInter apps?
Has there been any discussion of wxPython becoming part of the base
Python distro? A
Paul Watson wrote:
Many thanks for your reply. I was setting out to make use of the
Manning book by Grayson. Perhaps I should just use online tutorial and
such for learning plain-old tk first. However, I have heard good things
about the book. Just trying to use what was already at hand.
Sion Arrowsmith wrote:
shovel huge amounts of data
That right there basically takes XML-RPC off the table as a viable
solution. No matter how much fine tuning you try large amounts of data
don't bode well using XML-RPC. The other posted alternatives are
certainly worth a shot. From CORBA to
Skip wrote:
I don't know about the OP, but in my case it was a drop-dead simple
cross-language RPC protocol.
Exactly. RPC implementations. Typically these are a quick do this with
this sent from the client, with a brief okay, I did that, here's the
result back from the server. Shovelling huge
I have Python 2.3 with Tkinter working on a Dell Axim x50 (ARM Windows
Mobile 5.0) and Python 2.3 with PyQt working on a Sharp Zaurus SL-5500
(ARM Linux Embedded). Now I purchased an NEC MobilePro 780 (MIPS
Windows CE 2.11 Handheld PC 3.01). Any suggestions on the most recent
Python and Tkinter
Dave wrote:
yea i have .net 1.1, but not the sdk. do i need the 1.1 SDK too?
I think so. The .Net 1.1 runtime (i.e. - not the SDK) is missing the
support files necessary for compiling programs. Gotta love those huge
downloads. I thought the Java SDK's were big :-)~
--
JuHui wrote:
I wrote a script to get 100 pages from a server.
like below:
1:import httplib
2:conns = httplib.HTTPConnection(www.mytest.com)
3:conn.request(GET, /)
sometimes a socket error was raised.
File D:\usr\bin\lib\httplib.py, line 627, in connect
raise socket.error, msg
Paul Rubin wrote:
reversed(a_string) (python)
Which version of Python offers this function? It doesn't seem to be
available in the 2.3 version I have installed...
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
Darn, yes, that's the second time in the past couple weeks I've made
that exact same error in a clpy post. So what's the most concise way
of turning it back into a string? ''.join(list(reversed(a_string))) ?
Bleccch.
Use Ruby:
print A String.reverse
Just kidding :-)~
Sullivan wrote:
IDLE is no longer satisfactory for me. Other IDEs make me very
confused. Really do not know which one to use.
I use WinXP sp2 for current development.
Personally I have gotten used to coding using ActiveState's Komodo. It
doesn't get in my way and offers the basic features I
rtilley wrote:
It would be a smashing success.
And I have an idea for a party game. It's called Jump to Conclusions.
There would be a mat with all of these conclusions written down and...
--
http://mail.python.org/mailman/listinfo/python-list
Looking at the docs for xmlrpclib I didn't see a way to pass a client
call with an expressed timeout value. What is the easiest way to
accomplish this? Do I have to tap into the underlying HTTP requests
being sent? I want to build more try:except: error checking into my
application and the app
I have an PyQt app were I need one of the windows to be able to be
opened more than one at a time. When I try to open it I only get one
instance at the same time. The main class is the QWidget() class with a
QGridLayout() displaying the various window components.
Is there a certain flag I need to
The window isn't being created as a new class instance or anything. The
main class is the application main window as a whole and this
particular window is just part of that class. I have typed data into
the window, then tried to open up a new window. But when I do the
window where I have typed
Diez B. Roggisch wrote:
The window isn't being created as a new class instance or anything.
Yes it is. QWidget() creates a new instance of QWidget.
The
main class is the application main window as a whole and this
particular window is just part of that class. I have typed data
Khalid Zuberi wrote:
While someone has recently done some work to get Jython working with J2ME
(reference below), I think its targetted at Pocket PC class devices (CDC spec)
as opposed to palm (CLDC as far as i know).
http://thread.gmane.org/gmane.comp.lang.jython.devel/1826
Thanks for
I have completed recoding my CRM app into Python so that it will run on
Win32, ARM Linux, and ARM Windows Mobile platforms. Now I am looking to
try to roll it into the Palm OS platform. Since Pippy is based on an
older version of Python than I am using for my other implementations I
was thinking
Eric Brunel wrote:
There's in fact no need to check regularly if there's something in the
Queue: the secondary thread can post a tk custom event to trigger the
treatment automatically from within the main GUI loop. See here:
http://minilien.fr/a0k273
Appreciate the suggestion. This further
I have a Python UDP listener socket that waits for incoming data. The
socket runs as an endless loop. I would like to pop the incoming data
into an existing Tkinter app that I have created. What's the
easiest/most efficient way of handling this? Would I create a separate
thread that has the
Grant Edwards wrote:
Unless tk.createfilehandler isn't supported no Wni32
platforms??
Unfortunately that's the case. As of Python 2.3.4 under Windows XP the
createfilehandler method isn't available. It's only for UNIX as Mac
platforms AFAIK. Shame, as it would be relatively easy to implement.
Steve Holden wrote:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82965
Thanks. I tried a variation of this Queue posting/Flag checking method
and it worked to a tee. The problem was that my UDP socket query was
blocking things so that thread was hanging everything up. So I used a
As part of a project I'm trying to port to Python I am planning on
moving a CTI library it relies on into Python code. Previously the
overall project as well as the associated library were written in Ruby.
Specifically the CTI library utilizes TSAPI/CSTA for linking telephone
equipment with IP
Checking a couple of examples I tried changing the Tkinter mouse cursor
to indicate a busy state while my app is pushing/pulling xmlrpc data.
It doesn't seem to make a difference as I don't notice the cursor
actually change in the span of the 3-5 second transaction. I tried
changing the cursor of
Please disregard. I just issued an update() method call to refresh the
GUI. This in turn displayed the proper mouse cursor that was being set
with the config(cursor=xxx) method.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks. Please keep us posted. For some of my potentially exposed areas
I was just doing regex lookups against the input parameter to filter
out possible SQL injection keywords. Obviously not as elegant and
efficient as using ADO parameters to strictly define the data that
should be coming into
The IN statement logic is a good mind exercise if there are multiple
parameters that needed to be brought in. Below is the code that fixed
the LIKE statement logic where you needed an ADO parameterized query
used. Apparently the percent signs don't have to be referenced anywhere
in the code, as my
Raja Raman wrote:
Hi Gregarican,
Thanks for sharing your code. One needs to add the % signs if one
wants to do wildcard searches using LIKE in the SQL server.
Do as Roger and Steve suggested '%raj%', now you can find the names
containing the word raj anywhere in the column.
just value
Can't you get rid of the Create Parameter part and directly pass along
the value you are looking for? Something like...
name = 'raj'
cmd.CommandText= \
SELECT * FROM tb_name WHERE firstname LIKE %%%s % name
This way the value of the name variable gets passed along when the
CommandText
Sorry forgot to explain that with the string substitution stuff you can
escape the percent sign by doubling it up. In my example I wanted to
retain the leading percent sign before the value, in this case I wanted
LIKE %raj to appear. So I doubled it up. That's why there are three
percent signs in
Steve Holden wrote:
Now Google for sql injection vulnerability and tell us why this is a
bad idea.
The original poster didn't specify if they were writing
production-level code on in Internet-facing server so I didn't exactly
infer a context. You are correct in your statement. I was just
Mike Meyer wrote:
On an unrelated topic, you might take a look at Symbian
devices. They've released a version of Python 2.3 for it.
mike
Thanks for the information. That might be worth checking out for sure.
My project might be slightly delayed. I'm 37 yo and am recovering from
I am in the process of creating an app that runs on various PDA
platforms. Currently I have it running on ARM Linux (Sharp Zaurus) and
am starting to port it over to ARM Windows Mobile (Dell Axim). Using
Python has made the task particularly easier and (dare I say it?) kind
of fun. What about
Giovanni Bajo wrote:
You can also go the Qt way and use QProcess. This also gives you
cross-platform
communication and process killing capabilities which are pretty hard to obtain
(see the mess in Python with popen[1234]/subprocess). You also get nice
signals
from the process which
Robert wrote:
(windows or linux console)
print u'\u034a'
Traceback (most recent call last):
File stdin, line 1, in ?
File C:\PYTHON23\lib\encodings\cp850.py, line 18, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't
Phil Thompson wrote:
What version of Qt?
Phil
It's version 2.3.0 non-commerical for Windows. My OS is Windows 2000
Professional SP4. Using this same version of Qt for a Ruby-based
implementation of a similar app I didn't experience the access
violation crashes when invoking the
Phil Thompson wrote:
What version of Qt?
Phil
It's version 2.3.0 non-commerical for Windows. My OS is Windows 2000
Professional SP4. Using this same version of Qt for a Ruby-based
implementation of a similar app I didn't experience the access
violation crashes when invoking the
What's the easiest and cleanest way of having PyQt bring up an external
application? In this case I am looking to launch Internet Explorer and
bring up a specific URL. I don't care about tracking the IE process'
activity and don't want PyQt to wait until the browser is closed. I
tried the
Paul Boddie wrote:
What does os.startfile do when invoked with the URL? My impression was
that the startfile function - available only on Windows - doesn't wait
for the command to finish, but I don't run Windows and can't test this.
Any feedback would be appreciated, though, since it's part
Hope this post doesn't duplicate, as a Google Groups error happened
last attempt...
Phil Thompson wrote:
What version of Qt?
Phil
It's version 2.3.0 non-commerical for Windows. My OS is Windows 2000
Professional SP4. Using this same version of Qt for a Ruby-based
implementation of a similar
I noticed that when I invoked the setCentralWidget() method using PyQt
3.13 on Python 2.3.5 opening and closing a widget associated with a
main window would result in a Win32 access violation crash after a
couple of times. Here's a generic snippet:
class Application_Window(QMainWindow):
def
I have an application I'm writing using PyQt. I'm trying to create the
various windows by subclassing Qt objects. I have a subclassed
QMainWindow as the parent, and then a series of subclassed QWidgets as
other child windows that get used. How can I pass variables back and
forth between the parent
Diez B. Roggisch wrote:
Looks (or better smells) like a design smell to me. In Qt,and especially
PyQt, you rarely subclass widgets, as that makes you lose the
possibility to use the fabulous designer. The only thing I subclass in
PyQt are the designer-generetaed top-level-classes. Can be a
91 matches
Mail list logo