Re: test for list equality

2011-12-15 Thread Alec Taylor
Just for fun, use the Hungarian Algorithm (Python implementation: http://software.clapper.org/munkres/) On Fri, Dec 16, 2011 at 3:36 AM, noydb wrote: > I want to test for equality between two lists.  For example, if I have > two lists that are equal in content but not in order, I want a return >

Re: Python education survey

2011-12-19 Thread Alec Taylor
Two suggestions: - Editra (free): Requires a little bit of fiddling around and enabling Shelf, installing plugins but then it is great - Recently I was introduced to Sublime Text 2 which has an über streamlined layout. On Tue, Dec 20, 2011 at 2:51 PM, Raymond Hettinger wrote: > Do you use IDLE w

Re: Good notation for showing MVC interactions (i.e. Django)

2011-12-29 Thread Alec Taylor
An example of a BPMN2 diagram with swimlanes, which I created for a project: http://i40.tinypic.com/262r6nr.jpg What I am looking for is something suited towards showing architecture bounds and the interactions between each section of MVC. > I find that when thinking something through at the whit

Good notation for showing MVC interactions (i.e. Django)

2011-12-29 Thread Alec Taylor
there would be a more suitable one for this. Thanks for all suggestions, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list

virtualenv wrecked my Django+modules install

2012-01-05 Thread Alec Taylor
ack (most recent call last): File "", line 1, in ImportError: No module named django Does this mean I need to install everything required by my project all over again? - If so, should I take a virtualenv approach (and what would the advantages be of doing so)? Thanks for all suggest

Re: virtualenv wrecked my Django+modules install

2012-01-06 Thread Alec Taylor
I ran Pinax-env\Scripts\deactivate.bat but it didn't change anything. I'm skeptical if satchmo will work in a virtualenv, since many of its dependencies (such as PIL) I had to install with a setup from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil How would I get around this issue in a vir

Re: Ctypes compatibility

2012-01-10 Thread Alec Taylor
Use size_t http://en.wikipedia.org/wiki/C_data_types#Size_and_pointer_difference_types On Wed, Jan 11, 2012 at 2:20 PM, Evan Driscoll wrote: > Might as well ask another question of the list. > > I've written a ctypes-based Python wrapper around the 'readdir' > function. (I want access to the dt_

Re: unzip function?

2012-01-18 Thread Alec Taylor
http://docs.python.org/library/zipfile.html ZipFile.extractall([path[, members[, pwd]]]) -- http://mail.python.org/mailman/listinfo/python-list

Re: unzip function?

2012-01-18 Thread Alec Taylor
http://docs.python.org/library/functions.html >>> x = [1, 2, 3] >>> y = [4, 5, 6] >>> zipped = zip(x, y) >>> zipped [(1, 4), (2, 5), (3, 6)] >>> x2, y2 = zip(*zipped) >>> x == list(x2) and y == list(y2) True -- http://mail.python.org/mailman/listinfo/python-list

Re: Thoughts on SQL vs ORM

2013-02-06 Thread Alec Taylor
I agree that ORMs can be rather complicated; especially when you need to do some refactoring. Another reason not to use ORMs is difficult of measuring query complexity. However, some of the most major advantages of ORMs are: - Generation of forms - Same code can be used with multiple backends - T

Re: Number validation issue

2013-02-22 Thread Alec Taylor
Out[1]: '0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29' In [2]: [not len(x) >= 2 and len(x)<=25 for x in _] Out[2]: [True]*79 # shorthand to prevent spam I trust you can see the error now! On Sat, Feb 23, 2013 at 2:09 AM, Morten Engvoldsen wrote: > Hi , > I ha

Re: Number validation issue

2013-02-22 Thread Alec Taylor
Whoops, my mistake: In [5]: [not len(x) >= 2 and len(x)<=25 for x in [str(y) for y in xrange(30)]] Out [5]: [True]*10, [False]*20 But still, I'm guessing that's not the result you were looking for… On Sat, Feb 23, 2013 at 2:30 AM, Alec Taylor wrote: > Out[1]: '0 1 2 3

Re: PyQT app accessible over network?

2013-02-22 Thread Alec Taylor
Monte: I noticed you mentioned web2py; that would be my recommendation. You also mention different features being available to different users; perfect use-case for web2py's built-in RBAC. Scalability: Go with Postgres, MySQL; or considering how much data you're talking about, even SQLite would b

Re: PyQT app accessible over network?

2013-02-24 Thread Alec Taylor
On Sat, Feb 23, 2013 at 10:37 AM, Michael Torrie wrote: > On 02/22/2013 02:49 PM, Monte Milanuk wrote: >> Web2py does seem pretty attractive in that it seems to come with a lot >> of functionality rolled in already. It seems to be pretty easy to >> deploy... since this would be more of a case whe

Re: Python source to C++ and/or Java

2013-03-07 Thread Alec Taylor
Saw a talk at a Python usergroup today which talked about: Ply http://www.dabeaz.com/ply/ But you're probably looking for Cython. Python can run of the JRE e.g.: see Jython. There was also another one that you can use to build C extensions with, it was MP... something On Fri, Mar 8, 2013 at 2:1

Are there any Python libraries/frameworks which generate AngularJS?

2013-03-19 Thread Alec Taylor
RESTful setup; with JSON as format] Thanks for all suggestions, Alec Taylor BTW: Also posted this on stackoverflow - http://stackoverflow.com/q/15513907 PS: I currently use the web2py framework; but this is an important enough feature that I am willing to switch to ANY other Python web-framework

How to choose between ORMs?

2013-04-02 Thread Alec Taylor
e NoSQL systems; what else should I be looking for? Thanks for all suggestions, Alec Taylor *not sure if widgets should be a requirement; by widgets I mean annotation of db schema to specify which widget to use with the form generator PS: Will likely use this ORM with: Flask, Bottle or Twisted

Re: How to choose between ORMs?

2013-04-03 Thread Alec Taylor
I know None. Currently I use web2py's; which is a DAL not an ORM. On Thu, Apr 4, 2013 at 4:05 AM, Rodrick Brown wrote: > Pick the one you learn and know. > > Sent from my iPhone > > On Apr 3, 2013, at 2:17 AM, Alec Taylor wrote: > >> SQLalchemy and Storm are a few

Highest performance Python framework for API exposure?

2013-05-03 Thread Alec Taylor
ueues. An additional requirement is support for serving static, downloadable content efficiently. Currently looking at Falcon, Bottle and Werkzeug. Suggestions are greatly appreciated. Thanks, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list

Is len() restricted to (positive) 32-bit values?

2005-12-29 Thread Josh Taylor
I have a class that wraps a large file and tries to make it look like a string w.r.t. slicing. Here, "large file" means on the order of hundreds of GB. All the slicing/indexing stuff through __getitem__() works fine, but len() is quite broken. It seems to be converting the value returned by __le

msvcp71.dll and Python 2.4

2006-01-16 Thread Taylor, Martin
stalls both python24.dll>and msvcr71.dll into system32.[emphasis mine]   I'm using ActivePython 2.4.2 and its installer does NOT install msvcr71.dll into system32, nor anywhere else that I can see.  But it does need it!  Does anyone have any idea why this .dll file is missing from the A

Re: Mailman - Sendmail problem

2006-08-21 Thread Taylor, Grant
swangdb wrote: > I have a Sun Server running Solaris 10 and Sendmail 8.13.7. I have > Majordomo and Listproc installed on this server and they work. I have > several production majordomo and listproc mailing lists installed on > this server and they work. Shesh. That's just a few mailing list m

Python RPM package arch compatability

2006-10-18 Thread Christopher Taylor
asons as listed at the above mentioned webpage)? Respectfully, Christopher Taylor -- http://mail.python.org/mailman/listinfo/python-list

Re: Python RPM package arch compatability

2006-10-18 Thread Christopher Taylor
So just build it from source and use make altinstall instead? That simple huh? Will I need to do anything else to make sure things are put in their correct place? Respectfully, Christopher Taylor On 10/18/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Christopher Taylor wrote: >

Install from source on a x86_64 machine

2006-10-18 Thread Christopher Taylor
e files in /usr/lib64/Python2.4 and /usr/lib/Python2.4 respectively ? *** Respectfully, Christopher Taylor -- http://mail.python.org/mailman/listinfo/python-list

Help: Python2.3 & Python2.4 on RHEL4 x86_64

2006-10-18 Thread Christopher Taylor
module mismatch This basically means to me that Python2.4 is loading gloab.py from /usr/lib64/Python2.3 insead of /usr/lib/Python2.4 (even thought I wanted to install the related files in /usr/lib64/Python2.4) Can someome please help! Respectfully, Christopher Taylor -- http://mail.python.org/mailman/listinfo/python-list

?Incorrect Configure script?

2006-10-18 Thread Christopher Taylor
also required for my intel x86_64). Is this a bug in the configure script for python or did I just not set something correctly? Respectfully, Christopher Taylor -- http://mail.python.org/mailman/listinfo/python-list

Re: Install from source on a x86_64 machine

2006-10-19 Thread Christopher Taylor
g important while it does so. > ok, so where does that leave me. I'm not even sure which files *should* be put in /lib64 vs lib. >>> I guess what I'm expecting is a congifure option to specify where architecture dependent files should be put. <<< Has anyone else mentioned this before? Respectfully, Christopher Taylor -- http://mail.python.org/mailman/listinfo/python-list

Re: Install from source on a x86_64 machine

2006-10-19 Thread Christopher Taylor
value Which basically means to me that for whatever reason, when python compiled up, the ./configure script didn't see that the os was running in 64bit mode and compile the libraries in PIC mode, something I think that is required for libraries on a 64bit OS. Respectfully, Christopher Taylor -- http://mail.python.org/mailman/listinfo/python-list

Compile for 64bit RHEL

2006-10-19 Thread Christopher Taylor
Has anyone been able to get python 2.4 to compile properly for x86_64 RHEL? Respectfully, Christopher Taylor -- http://mail.python.org/mailman/listinfo/python-list

Re: Help: Python2.3 & Python2.4 on RHEL4 x86_64

2006-10-23 Thread Christopher Taylor
ll get put in /usr/lib64. How do I then build the library files for 32bits? Respectfully, Christopher Taylor -- http://mail.python.org/mailman/listinfo/python-list

Re: Help: Python2.3 & Python2.4 on RHEL4 x86_64

2006-10-23 Thread Christopher Taylor
changes to lines 83 & 87 of the make file, did a "make clean", "make", "make test", "make altinstall", "python2.4" followed by some goofing around and everything works fine. So I'm guessing my manual edits of the makefile didn't go well. Any idea what else I need to change? Respectfully, Christopher Taylor -- http://mail.python.org/mailman/listinfo/python-list

Re: Help: Python2.3 & Python2.4 on RHEL4 x86_64

2006-10-24 Thread Christopher Taylor
x86_64 community. > You will have to debug this (can't do right now); see Modules/getpath.c, > and the definition of PYTHONPATH. It seems this isn't really supported. I'll ask on Python-Dev for more details on how to fix this. Respectfully, Christopher Taylor -- http://mail.python.org/mailman/listinfo/python-list

Re: Help: Python2.3 & Python2.4 on RHEL4 x86_64

2006-10-24 Thread Christopher Taylor
in /usr/lib. > The x86_64 community has been using Python for a while, and > apparently has solved this problem already. You should try > to find out how they did it. Where might I go to look on how to get this working? Respectfully, Christopher Taylor P.S. I posted on python-dev

Re: Help: Python2.3 & Python2.4 on RHEL4 x86_64

2006-10-24 Thread Christopher Taylor
eve > Redhat does, too). You could study what they do to achieve that. Yes, this is true ... but they do not package the most up-to-date version .. which I need. Respectfully, Christopher Taylor -- http://mail.python.org/mailman/listinfo/python-list

Help: Python2.3 & Python2.4 on RHEL4 x86_64

2006-10-24 Thread Christopher Taylor
b". This way the flexibility you mentioned above can be > maintained and the 64bit community (which will eventually be the > entire community) can move forward with minimal hassle. Respectfully, Christopher Taylor -- http://mail.python.org/mailman/listinfo/python-list

PyDoc link to source code

2006-10-30 Thread Taylor, Martin
x27;t know what to do with a .py file (should treat it like plain text).  Does anyone know how to make these links work?   Thanks,   C. Martin Taylor Sr. Test Automation Specialist Texas Instruments, Inc. Educational and Productivity Solutions 7800 Banner Dr. MS 3908 Dallas, TX 75251 --

Re: wxPython GUI designer

2006-06-19 Thread Don Taylor
aum wrote: > On Sun, 18 Jun 2006 13:09:08 -0700, diffuser78 wrote: > >> I am newbie learning wxPython. I tried using GUI designer called >> wxGlade. When it generated code I couldnt get the same level of >> flexibility as writing the code by oneself. >> >> Any view on what you think about using GU

Re: OT: wxPython GUI designer

2006-06-21 Thread Don Taylor
Frithiof Andreas Jensen wrote: > Just gave is a spin yesterday: How does on fix the size of layout; I > can only manage to get sizers to distribute space evently amongst the > fields, which is *not* what I want. > Use spacers. Don. -- http://mail.python.org/mailman/listinfo/python-list

Re: help a newbie with a IDE/book combination

2006-07-10 Thread Don Taylor
kilnhead wrote: > I have used spe and pyscripter on windows. I currently use Eclipse and > this it is the best of the lot in terms of functionality. However, it > does take some effort to get comfortable with. I only wish it had a GUI > builder for python. > I have found that wxGlade plays nicely

Newbie question: Multiple installations of Python on Windows machines

2006-02-20 Thread Don Taylor
I have Python 2.4.2 installed on a Windows XP machine. There is an application that I want to use that refuses to install unless I have Python 2.3.x installed. (The only way that I can install this is to use it's .exe installer) Can I install two versions of Python on Windows, and if so is the

Re: Newbie question: Multiple installations of Python on Windows machines

2006-02-22 Thread Don Taylor
Fuzzyman wrote: > A lot of 'exe' installers are special types of zip archvies. You might > be able to open it using winzip or winrar and do a manual install. Interesting suggestion that would never have occured to me. One of the unzippers I tried (IZArc) did show me a directory of the contents,

Re: Newbie question: Multiple installations of Python on Windows machines

2006-02-22 Thread Don Taylor
Fuzzyman wrote: > > It means installing a compiler (but I don't see a way around that) - > but this worked for me : > > http://www.vrplumber.com/programming/mstoolkit/index.html > > So long as the module can be installed with distutils, the instuctions > there will work for you. Hefty downl

Re: PyDev/Eclipse Help

2006-02-23 Thread Don Taylor
Greg Lindstrom wrote: > I am running Python 2.4 on Windows XP "Professional" and Eclipse 3.1. I > would like to take a look at PyDev on Eclipse and downloaded the PyDev > (1.0.2?) via the Help->SotwareUpdates->FindAndInstall wizard. Then then > go to create a Python Project with File->New->Pro

Use of __slots__

2006-02-26 Thread Don Taylor
Hi: I am puzzled about the following piece of code which attempts to create a class that can be used as record or struct with a limited set of allowed attributes that can be set into an instance of the class. class RecordClass(object): __slots__ = ["foo"] def __init__(self, args):

Re: Use of __slots__

2006-02-27 Thread Don Taylor
Steve Juranich wrote: > I might be a little confused about a couple of things (I'm sure many will > correct me if I'm not), but as I understand it the __slots__ attribute is a > class-attribute, which means it cannot be modified by an instance of the > class (think of a "static" class member, if y

Re: Use of __slots__

2006-02-27 Thread Don Taylor
Alex Martelli wrote: > meant for extremely RARE use, and only by very advanced programmers who > fully know what they're doing Yea, from the table of my memory I ’ll wipe away all trivial fond records of __slots__ (Bet you wish Mark Lutz had not mentioned it in Learning Python ...) Don. --

CIE Colorspace Conversions

2007-08-20 Thread Greg Taylor
I'd love to eventually be able to quickly convert between color spaces and perform comparisons like Delta E without having to worry about doing said conversions manually. I'm not too sure this excites anyone else, though! Greg Taylor Clemson University '08 Graphic Communication

Readline()

2007-03-12 Thread Taylor, Stuart
I have been working on running an external process using subprocess.popen for a few days. The process is ran over the network to another machine. One thing I have found is that if I perform readline() on the stdout it will hang if the process loses connection. I have tried a few things in a test e

RE: Readline()

2007-03-13 Thread Taylor, Stuart
_ From: Sick Monkey [mailto:[EMAIL PROTECTED] Sent: 13 March 2007 01:51 To: Taylor, Stuart Cc: python-list@python.org Subject: Re: Readline() Maybe if you show us your code we can better assist you. But maybe you can use a global variable or a try-catch method to keep threads fr

RE: Readline()

2007-03-16 Thread Taylor, Stuart
ime < currentTime: print "timed out" sys.stdout.flush() break time.sleep(1) From: Taylor, Stuart [mailto:[EMAIL PROTECTED] Sent: 13 March 2007 09:50 To: Sick Monkey; Taylor, Stuart Cc:

How to do transparent (opaque) windows from Python

2007-10-06 Thread Don Taylor
I want to build an application in Python that can show an opaque window so that you can still see and type into any window that it covers. Sort of like a software mylar transparency sheet placed over the screen. I need to be able to type 'through' the transparency into the underlying applicat

Re: PyDev 1.3.9 code compleition trouble

2007-10-11 Thread Don Taylor
Vyacheslav Maslov wrote: > I use Pydev 1.3.9 and notice issue related to code completion. I give an > ...stuff deleted... > proposed also as well. Why this doesn't work? You will have better luck asking this question on the Pydev forum: http://sourceforge.net/forum/forum.php?forum_id=293649 Th

vote for Python - PLEASE

2007-10-18 Thread Monty Taylor
Hey everybody, MySQL has put up a poll on http://dev.mysql.com asking what your primary programming language is. Even if you don't use MySQL - please go stick in a vote for Python. I'm constantly telling folks that Python needs more love, but PHP and Java are kicking our butts... (I know the w

Generating pdf files in epydoc on Windows

2007-02-11 Thread Don Taylor
Does anyone know what is needed to install to get epydoc to generate pdf files on Windows. Besides epydoc itself of course. Maybe there is a more appropriate forum to ask newbie questions about epydoc? Thanks, Don. -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating pdf files in epydoc on Windows

2007-02-12 Thread Don Taylor
Duncan Smith wrote: > As I remember, LaTeX and ghostscript. Thanks. OK, I have these installed now, but apparently epydoc can't find them and I don't know how to teach it to find them. Error: latex failed: [Errno 2] The system cannot find the file specified epydoc does creates so

Re: Testers please

2007-02-14 Thread Don Taylor
martien friedeman wrote: > I have written this tool that allows you to look at runtime data and > code at the same time. > And now I need people to test it. > > The easiest way to see what I mean is to look at some videos: > http://codeinvestigator.googlepages.com/codeinvestigator_videos > > It

Re: Help Required for Choosing Programming Language

2007-02-17 Thread Don Taylor
[EMAIL PROTECTED] wrote: > I am VB6 programmer and wants to start new programming language but i > am unable to deciced. > > i have read about Python, Ruby and Visual C++. but i want to go > through with GUI based programming language like VB.net > By 'GUI based programming language' I think tha

Re: Found a product for running Python-based websites off CDROM -have anybody tried it?

2007-02-20 Thread Don Taylor
David Wishnie wrote: > Hello, > > Recently I've found a product that allows to create CDs or DVDs with > mod_python -based websites > (and CGI python of course) so that apache-based webserver, python and > mod_python are run directly > off CD on Windows, MacOS X and Linux at the same time (a

Re: Ironpython book?

2006-04-19 Thread Taylor Boon
hacker" types out there... BTW, IronPython compiles Python code into CLR byte codes; Python.NET allows CPython code to call into managed code libraries and services. Cheers, Taylor -- http://mail.python.org/mailman/listinfo/python-list

A defense for bracket-less code

2006-04-26 Thread Don Taylor
Found in a style guide (http://www.artlogic.com/careers/styleguide.html) --- Another case where "unnecessary" braces should be used is when writing an empty while loop: while (*p++ = *q++) { // this loop intentionally left em

Re: Using a browser as a GUI: which Python package

2006-04-30 Thread Don Taylor
John J. Lee wrote: > "André" <[EMAIL PROTECTED]> writes: > [...] > >>I would like to use a browser (e.g. Firefox) as a simple GUI >>"framework". Note that this is to be done on a single user machine, so >>the question of sandboxing is not really relevant here. > > [...] > >>My ultimate goal wou

Re: which windows python to use?

2006-05-12 Thread Don Taylor
Robert Kern wrote: > In what way? Does the mingw gcc that we distribute interfere with Cygwin's > gcc? Robert: Which C compiler will you be using for the Enthought 2.4 Windows release? Don. -- http://mail.python.org/mailman/listinfo/python-list

Re: which windows python to use?

2006-05-12 Thread Don Taylor
Robert Kern wrote: >>Which C compiler will you be using for the Enthought 2.4 Windows release? > > > Define "using". We build Python with whatever compiler the official build is > compiled with. In this case, MSVC 7., I think . For this release, we > will ship the latest available gcc available

Klik2 Project, Python apps on linux

2008-01-26 Thread Jason Taylor
o fix this in a clean way with out resorting to nasty hacks involving $PYTHON_PATH. If any one has any suggestions please email me or drop by #klik on freenode Issue http://code.google.com/p/klikclient/issues/detail?id=144 Cheers Jason Taylor -- "Why isn't my life like a situation c

Re: Klik2 Project, Python apps on linux

2008-01-27 Thread Jason Taylor
Perhaps this would help, heres a list of our error reports http://klik.atekon.de/feedback/details.php?e=ImportError On 27/01/2008, Jason Taylor <[EMAIL PROTECTED]> wrote: > > Hi > > We've been working on klik2, http://code.google.com/p/klikclient/, which > implements OSX

Extracting file from zip archive in Python 2.6.1

2009-02-02 Thread Brandon Taylor
Hello everyone, I'm having an issue specifying the path for extracting files from a .zip archive. In my method, I have: zip_file.extract(zip_name + '/' + thumbnail_image, thumbnail_path) What is happening is that the extract method is creating a folder with the name of 'zip_name' and extracting

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

Proposal for thread-safe Tkinter

2008-10-23 Thread Allen Taylor
x27;m new to Python and am not initiated in the deep Pythonic developer world. Can someone give me some pointers? Many thanks. Allen B. Taylor MDA 9445 Airport Road Brampton, ON L6S 4J3 905-790-2800 ext. 4350 [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

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

Hash of None varies per-machine

2009-04-03 Thread ben . taylor
Found this while trying to do something unrelated and was curious... If you hash an integer (eg. hash(3)) you get the same integer out. If you hash a string you also get an integer. If you hash None you get an integer again, but the integer you get varies depending on which machine you're running

python regex character group matches

2008-09-17 Thread christopher taylor
hello python-list! the other day, i was trying to match unicode character sequences that looked like this: \\uAD0X... my issue, is that the pattern i used was returning: [ '\\uAD0X', '\\u1BF3', ... ] when i expected: [ '\\uAD0X\\u1BF3', ] the code looks something like this: pat = re.compile

python regex character group matches...group...gotcha

2008-09-17 Thread christopher taylor
My apologies to the respondents - I failed to screen my test cases before kicking them out to the global python-list. but yes, the 'X' character in my test case was a mistake on my part. I'll give group() a shot. ct -- http://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] Replacing cmd.exe with custom .py application

2008-09-30 Thread Ezra Taylor
ed in another > .exe application. > > > > Sorry for any mistake in my question. Just help me if you can > > ___ > Tutor maillist - [EMAIL PROTECTED] > http://mail.python.org/mailman/listinfo/tutor > > -- Ezra Taylor -- http://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] Replacing cmd.exe with custom .py application

2008-09-30 Thread Ezra Taylor
Is there something similar to /dev/null on Windows? On Tue, Sep 30, 2008 at 2:13 PM, Ezra Taylor <[EMAIL PROTECTED]> wrote: > Joseph: > Check out subprocess. The subprocess module is on python > 2.4. Also, use subprocess.call("your command",shell=True) >

Re: Python IDE: great headache....

2006-03-11 Thread Don Taylor
Sullivan WxPyQtKinter 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. > > So far as I know, Eclipse + PyDev + PyDev Extension is perfect for > source code editing. Since I am real

Re: Python IDE: great headache....

2006-03-13 Thread Don Taylor
Joel Hedlund wrote: >> If you install Eclipse and try to use it without reading the >> Workbench User Guide then you are not going to get anywhere. > > > Woah, easy now! I never read any "Workbench User Guide" and I'm doing > just fine with PyDev. Fabio Zadrozny (PyDev developer) wrote an > exce

Printable string for 'self'

2006-03-14 Thread Don Taylor
Is there a way to discover the original string form of the instance that is represented by self in a method? For example, if I have: fred = C() fred.meth(27) then I would like meth to be able to print something like: about to call meth(fred, 27) or about to call

Re: Printable string for 'self'

2006-03-14 Thread Don Taylor
Michael Spencer wrote: > > > In general, this requires exhaustive search of name bindings e.g.,: > > >>> def get_names_of(obj, ns): > ... return [name for name, value in ns.iteritems() if value is obj] > ... > >>> class A(object): > ... def global_names_bound_to_me(self): > ...

Re: Printable string for 'self'

2006-03-15 Thread Don Taylor
Fredrik Lundh wrote: > objects don't have names in Python, and the source is not part of > the running program. > > have you read this ? > > http://effbot.org/zone/python-objects.htm I have now. Thank you very much. "objects don't have names in Python": It appears from the code that Micha

Re: Printable string for 'self'

2006-03-15 Thread Don Taylor
Fredrik Lundh wrote: > Q. How can my code discover the name of an object? > > A. The same way as you get the name of that cat you found on your > porch: the cat itself cannot tell you its name, and it doesn't really > care -- so the only way to find out what it's called is to ask

Re: Python Debugger / IDE ??

2006-03-16 Thread Don Taylor
Christoph Zwerschke wrote: > [EMAIL PROTECTED] wrote: > >>I like the Pyscripter, is there any Linux version or something of it. > > > Sorry, I forgot to mention that there is a snag in it. Since PyScripter > is based on Python for Delphi, it is available for Windows only. > Is there a free or

Re: Python 2.5 Schedule

2006-03-18 Thread Don Taylor
[EMAIL PROTECTED] wrote: > For more details about the plan for Python 2.5, see: > > http://www.python.org/doc/peps/pep-0356/ > I hope that this is not considered too off topic, but what compiler is going to be used for the MSW version of 2.5? If it is going to the MS Visual Studio 2005 com

Re: Python 2.5 Schedule

2006-03-19 Thread Don Taylor
Scott David Daniels wrote: > I think there will be no compiler switching for a while. The previous > switch from VC 6 was in part because there was no longer any legal way > to get a VC 6.0 compiler. This round at least is sticking with the same > compiler as Python 2.4 (VC 7.0). > Scott: Adm

Re: Python 2.5 Schedule

2006-03-20 Thread Don Taylor
Ravi Teja wrote: > http://msdn.microsoft.com/visualc/vctoolkit2003/ > Free. > True, but 'The Microsoft Toolkit Compiler doesn't come out-of-the-box with everything you need to compile extensions.' see: http://www.vrplumber.com/programming/mstoolkit/ If you are going ahead with the VC 7.1 Toolk

Re: MVC in Python for web app dev

2006-03-27 Thread Don Taylor
[EMAIL PROTECTED] wrote: > I'm aware that Pylons is trying to > compete with Rails in the near future but I'm just not clear on how > directly they are trying to compete...will Pylons have the same > generation functions and other time saving goodies that RoR has or am I > barking up the wrong tre

Re: Networked Broadcast Messaging

2009-08-11 Thread Greg Taylor
On Aug 11, 3:00 pm, Kushal Kumaran wrote: > You could use the socket module to broadcast.  Using INADDR_BROADCAST > as the destination should do it.  I fail to recollect whether that > will need root privileges... Awesome, I think this is exactly what I'm looking for. Much appreciated! Greg --

Re: Networked Broadcast Messaging

2009-08-13 Thread Greg Taylor
On Aug 11, 9:18 pm, David Bolen wrote: > > If you want better guarantees, you might look into a distributed > message bus like Spread (http://www.spread.org/) or perhaps a > messaging protocol like XMPP (http://xmpp.org/) through its PubSub > extension.  Both have Python interfaces, though I have

Fedex + SOAP

2009-08-24 Thread Greg Taylor
Fedex has recently started the process to transition from their XML- based Web Services to the new SOAP-based equivalent. I've been trying unsuccessfully to get an example SOAP transaction working with their new service, but am running into validation problems. I was wondering if anyone has alread

os.walk restart

2010-03-17 Thread Keir Vaughan-taylor
I am traversing a large set of directories using for root, dirs, files in os.walk(basedir): run program Being a huge directory set the traversal is taking days to do a traversal. Sometimes it is the case there is a crash because of a programming error. As each directory is processed the name

<    1   2   3