EnhancedObject: Yet Another Python ORM (an RFC)

2006-07-05 Thread [EMAIL PROTECTED]
I have some ideas about a ORM design, but have no time to start its development. I used SQLObject, Django's Model, and looked at SQLAlchemy and Dejavu, an readed some thread in the last year or so. Here is an example: #from EnhancedOcject.all import * from EnhancedObject.core import EObject, EType

Re: EnhancedObject: Yet Another Python ORM (a RFC)

2006-07-05 Thread [EMAIL PROTECTED]
Ops, sorry about my ugly english. > I have some ideas about an ORM design, but have no time to start its > development. > I used SQLObject, Django's Model, and looked at SQLAlchemy and Dejavu, > and readed some threads in the last year or so. -- http://mail.python.org/mailman/listinfo/python-list

Re: EnhancedObject: Yet Another Python ORM (an RFC)

2006-07-05 Thread [EMAIL PROTECTED]
> So why tell us? What are your ideas? What does your design do that the > others don't? Basically, the API I exemplificated in the first exemple. My initial idea was to have a way of turn alread designed objects into persistent ones. This is not the goal of SQLObject, for example. Other litle diff

Re: problems with midi programming in python

2006-07-05 Thread [EMAIL PROTECTED]
sreekant wrote: > Hi folks > > I hope someone here might be able to help. I scavenged some info and > even code from the net and am trying to write a module that reads a text > file and spits out a midi file. > > So far I managed to make it work to the level of reading a text file > with appropriat

Re: Installation of python on my workspace.

2006-07-06 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > I had two questions. I am new to Unix and Python. I wanted to get > python installed on my unix terminal without too much interference from > the administrator. How can I do this? If you have the Python sources, you can configure it to install where you tell

Re: searching for strings (in a tuple) in a string

2006-07-06 Thread [EMAIL PROTECTED]
You can get the matching elements with a list comprehension with something like py> a='xfsdfyysd asd x' py> tup=('x','yy','asd') py> [x for x in tup if x in a.split()] ['x', 'asd'] Hope this helps manstey wrote: > Hi, > > I often use: > > a='yy' > tup=('x','yy','asd') > if a in tup: ><...> >

Re: EnhancedObject: Yet Another Python ORM (an RFC)

2006-07-06 Thread [EMAIL PROTECTED]
> No, but it is a design point of Dejavu. > EAssociation -> HasA and HasMany? How is that different from Dejavu's > UnitAssociation -> ToOne and ToMany? Hum, I'll give Dejavu and SQLALchemy a better look, with sure. I should be feeling like this guy now: http://nerd.newburyportion.com/2005/11/ev

strange i/o delay problem in socket,

2006-07-06 Thread [EMAIL PROTECTED]
Hi guys, I have got some strange system behaviors regarding i/o delays in socket in python, here's the details: I'm writing a web proxy like program that intercepts and redirects requests from clients to my tomcat server, this proxy is written in python, and i'm starting a new thread to handle (red

Re: how can I avoid abusing lists?

2006-07-07 Thread [EMAIL PROTECTED]
Thomas Nelson wrote: > I have this code: > type1 = [0] > type2 = [0] > type3 = [0] > map = {0:type1, 1:type1, 2:type3, 3:type1, 4:type2} # the real map is > longer than this > > def increment(value): > map[value][0] += 1 > > increment(1) > increment(1) > increment(0) > increment(4) > #incre

Print Tkinter canvas oject contents from Windows?

2006-07-08 Thread [EMAIL PROTECTED]
What is the best way to print a graphic image contained within the canvas oject in Tkinter ruinng under Windows (XP)? The only thing I found so far was the canvas postscript method...it there a more direct way? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: wx Browser-objekt for python on Linux

2006-07-08 Thread [EMAIL PROTECTED]
Hi Spooky, Try looking at the wx.HtmlWindow demo - it is cross platform and is pretty capable. Thanks, Davy Mitchell http://www.latedecember.com/sites/personal/davy/ -- http://mail.python.org/mailman/listinfo/python-list

The Split String Function - How to preserve whitespace?

2006-07-08 Thread [EMAIL PROTECTED]
Hi Folks, I am trying to scan the lines in the string text: lines = text.split('\n') seemed to do the job but has the side effect of stripping the whitespace. As I am reading Python source in this text and checking identation this is a bit annoying :-) How can I stop this happening? Does

Re: The Split String Function - How to preserve whitespace?

2006-07-08 Thread [EMAIL PROTECTED]
Just wrote: >>>> "a\nb\nc\n".splitlines(True) >['a\n', 'b\n', 'c\n'] Genius - Thanks alot for the quick response !! :-) Thanks, Davy Mitchell The Good Ol' Blog http://www.latedecember.com/sites/personal/davy/ -- http://mail.python.org/mailman/listinfo/python-list

How properly manage memory of this PyObject* array?? (C extension)

2006-07-08 Thread [EMAIL PROTECTED]
Suppose a C extension locally built an array of PyObject* 's as follows... my_array = malloc(n * sizeof(PyObject*)); for (i = 0; i < n; i++) { my_array[i] = PyList_New(0); } Q1: Must I do a Py_DECREF(my_array[i]) on all elements before exiting this C extension function? (What if

Re: How properly manage memory of this PyObject* array?? (C extension)

2006-07-10 Thread [EMAIL PROTECTED]
> > Q2: Must I do free(my_array); at end of function?? > unless some other part of your program holds on to it F. Thanks! If I understand you correctly then I never have to do free(my_array); because all the elements of my_array are still being used and appended to other structures elsewhere ri

Re: threading troubles

2006-07-10 Thread [EMAIL PROTECTED]
ers put into protected memory. Use threads only when you know why you want to abandon such and share all memory. 95% or more of the time when you're making the multiprocessing decision, threads are the wrong choice. 5% (or less) of the time they're indispensable. But if you're j

python

2006-08-24 Thread [EMAIL PROTECTED]
Regards, [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

String formatting with nested dictionaries

2006-08-24 Thread [EMAIL PROTECTED]
I've got a bit of code which has a dictionary nested within another dictionary. I'm trying to print out specific values from the inner dict in a formatted string and I'm running into a roadblock. I can't figure out how to get a value from the inner dict into the string. To make this even more co

Re: String formatting with nested dictionaries

2006-08-24 Thread [EMAIL PROTECTED]
Gabriel Genellina wrote: > At Thursday 24/8/2006 13:22, [EMAIL PROTECTED] wrote: > > >I've got a bit of code which has a dictionary nested within another > >dictionary. I'm trying to print out specific values from the inner > >dict in a formatted string and I&#x

Re: Is this a good idea or a waste of time?

2006-08-24 Thread [EMAIL PROTECTED]
asincero wrote: > Would it be considered good form to begin every method or function with > a bunch of asserts checking to see if the parameters are of the correct > type (in addition to seeing if they meet other kinds of precondition > constraints)? Like: > > def foo(a, b, c, d): >ass

Re: Python and STL efficiency

2006-08-27 Thread [EMAIL PROTECTED]
C++ -- #include #include #include #include #include #include using namespace std; int main() { DWORD ticks = ::GetTickCount(); const string s1("What do you know"); const string s2("So long..."); const stri

Re: Learning Python

2006-08-27 Thread [EMAIL PROTECTED]
Tal Einat wrote: > Duncan Booth wrote: > > JAG CHAN wrote: > > > > > Whenever I try to open IDLE, my zone firewall tells me pythonw.exe is > > > trying to access the trusted zone. > > > Whenever I try to open new IDLE window I get the following message: > > > "IDLE's subprocess didn't make connect

Re: Conway's Life Implementation

2006-08-27 Thread [EMAIL PROTECTED]
Putty wrote: > Hi. I was going to write an implementation of John Conway's Life game > using Python and Tk, but I soon found that Tk just didn't cut the > mustard for memory usage, management, and the like for such a project, > so I've found my best GUI bet for my project is wxPython and not > py

Re: Conway's Life Implementation

2006-08-27 Thread [EMAIL PROTECTED]
Putty wrote: > Do you think it would be reasonable to use wxGrid to make the game > area? > > [EMAIL PROTECTED] wrote: > > Putty wrote: > > > Hi. I was going to write an implementation of John Conway's Life game > > > using Python and Tk, but

newbe question about removing items from one file to another file

2006-08-27 Thread [EMAIL PROTECTED]
def simplecsdtoorc(filename): file = open(filename,"r") alllines = file.read_until("") pattern1 = re.compile(">orcfilename, line I am pretty sure my code isn't close to what I want. I need to be able to skip html like commands from to and to key on another word in adition to to end

A Sort Optimization Technique: decorate-sort-dedecorate

2006-08-27 Thread [EMAIL PROTECTED]
ups if it is of no general interest. Thanks) (am also interested on how Perl6 or Python3000 does this, if there are major changes to their sort function) Thanks. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: newbe question about removing items from one file to another file

2006-08-27 Thread [EMAIL PROTECTED]
PetDragon wrote: > Sounds like you need to use html parser, check it out in the > documentation > > > > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > def simplecsdtoorc(filename): > >file = open(filename,"r") >

Re: newbe question about removing items from one file to another file

2006-08-28 Thread [EMAIL PROTECTED]
ts > that might not be obvious to a reader who knows nothing > about your mission. > > Frederic > > - Original Message - > From: <[EMAIL PROTECTED]> > Newsgroups: comp.lang.python > To: > Sent: Sunday, August 27, 2006 11:35 PM > Subject: newbe question

Re: Truly platform-independent DB access in Python?

2006-08-28 Thread [EMAIL PROTECTED]
bobrik wrote: > I am using the Python DB API for access to MySQL. But it is not > platform-independent - I need a module not included in Python by > default - python-mysql, and it uses a compiled binary _mysql.so. So it > is not platform-independent because for each web-server on different > platfo

Re: Is this a good idea or a waste of time?

2006-08-28 Thread [EMAIL PROTECTED]
Antoon Pardon wrote: > There seem to be enough problems that work with ints but not with > floats. In such a case enforcing that the number you work with > is indeed an int seems fully appropiate. I've _never_ seen a case where enforcing types in the manner of the OP is appropriate. It fails with

Re: How ahead are you guys in the (Python) real world?

2006-08-28 Thread [EMAIL PROTECTED]
Ray wrote: > > Is it the same in the Python world? What version of Python is used in, > say, Google? Is it even 2.4 yet? Google uses many versions of Python including 2.2, 2.3 and 2.4. Though 2.4 is relatively new. I hope to start introducing Python 2.5 sometime next year. Mid-year is about as

absolute imports (python-2.5)

2006-08-29 Thread [EMAIL PROTECTED]
Hello all I just played around a bit with python 2.5 and relative imports. Bit disappointed so far. Hoped to be able to use this new feature to develop standalone libraries that can be just dropped into any project without having to adjust any imports. pkg/ pkg/__init__.py pkg/main.py pkg/string.

Re: Python editor

2006-08-29 Thread [EMAIL PROTECTED]
John Salerno wrote: > Is it possible to get vim-python for Windows, or is that just a Linux build? It builds for windows. -- http://mail.python.org/mailman/listinfo/python-list

Re: How ahead are you guys in the (Python) real world?

2006-08-29 Thread [EMAIL PROTECTED]
Ray wrote: > Since I haven't used Python at work, I am using Python 2.5 right now. > However I wonder, how fast are you guys moving from version to version > at work? As an illustration my ex-company just moved to Java 5, which > was released around... what, 2-3 years ago? (While I am running Java

Issues with Installer written in Python for Linux

2006-08-29 Thread [EMAIL PROTECTED]
c.l.p- I am undertaking writing an installer for a software package using Python. It is exclusively for Linux. Because this is an installer and has to run on numerous Linux distros, it is presenting some unique challenges. First off, I have begun this project by writing a text mode only interface

Re: NumPy 1.0b4 now available

2006-08-29 Thread [EMAIL PROTECTED]
Travis E. Oliphant wrote: > The 4th beta release of NumPy 1.0 has just been made available. > > NumPy 1.0 represents the culmination of over 18 months of work to unify > the Numeric and Numarray array packages into a single best-of-breed > array package for Python. > > NumPy supports all the featu

Re: newbe question about removing items from one file to another file

2006-08-29 Thread [EMAIL PROTECTED]
file > (from to )? Right? Or > each block to its own file in case there are several?. You want your code to > generate the file names? Can you confirm this or > explain it differently? > > Regards > > Frederic > > > - Original Message - > From: <

Re: NumPy 1.0b4 now available

2006-08-29 Thread [EMAIL PROTECTED]
Robert Kern wrote: > [EMAIL PROTECTED] wrote: > > Travis E. Oliphant wrote: > >> The 4th beta release of NumPy 1.0 has just been made available. > >> > >> NumPy 1.0 represents the culmination of over 18 months of work to unify > >> the Numeric and

Re: Allowing ref counting to close file items bad style?

2006-08-29 Thread [EMAIL PROTECTED]
Paul Rubin wrote: > Dan <[EMAIL PROTECTED]> writes: > > Is this discouraged?: > > > > for line in open(filename): > > > > Yes. > > > Can I count on the ref count going to zero to close the file? > > You really shouldn't

Re: Allowing ref counting to close file items bad style?

2006-08-30 Thread [EMAIL PROTECTED]
Paul Rubin wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > I disagree, somewhat. No, you shouldn't count on the "ref count" per > > se going to 0. And you shouldn't count on the file object being GC'd > > _immediately_ af

where or filter on list

2006-08-30 Thread [EMAIL PROTECTED]
Hi, Can anybody tell me how to to find the nearest value to zero in a list ? To do that, i'm using list comprenhension : >>> foo = [-5,-1,2,3] # nearest value to zero ? >>> [value for value in foo if math.fabs(value) == min([int(math.fabs(x)) for x >>> in foo])] [-1] Something simpler ? How to

Re: where or filter on list

2006-08-30 Thread [EMAIL PROTECTED]
Thanks all ! > Question: what if two values are equidistant? >>> def closest(foo,v): ... intermed = [(abs(v), v) for v in foo] ... intermed.sort() ... return [x[1] for x in intermed if x[0] == intermed[0][0]] ... >>> print closest([-20,-10,10,15],0) [-10, 10] Works fine ! (now with

Re: How ahead are you guys in the (Python) real world?

2006-08-30 Thread [EMAIL PROTECTED]
John Salerno wrote: > Interesting question. Just as a curious follow-up (not being someone who > works in the programming world), why does it take so long to move to the > latest version, especially when there aren't (I don't think) any changes > that would break existing code, such as moving to Py

code for the graphics window?

2006-08-30 Thread [EMAIL PROTECTED]
Hi. I'm new to Python . . .very new. I was just wondering, once I've written a program that opens the graphics window and I've got some things going on in the grahics window, how do I display text in the grahics window? I need to be able to display changeable text, so that the words and numbers can

audio with graphics

2006-08-30 Thread [EMAIL PROTECTED]
How do I make audio play when the graphics window is opened and then loop so it repeats until the graphics window is closed? I'm not even sure how to make ANY audio file play in using Python. _ PrivatePhone - FREE telephone numbe

py2exe for programs with excel COM objects

2006-08-30 Thread [EMAIL PROTECTED]
Is it possible to create a executable of a python program that refers to Excel COM objects with the help of py2exe. -- http://mail.python.org/mailman/listinfo/python-list

active python windows

2006-08-30 Thread [EMAIL PROTECTED]
When I test my program the graphics window opens over the top of the command line, but for some odd reason the command line remains the active window, so I have to click on the grphics window to make it the active window. I was just curious as to why this might be happening and if it was possible t

Re: Allowing ref counting to close file items bad style?

2006-08-30 Thread [EMAIL PROTECTED]
Paul Rubin wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > > > (And personally I think the benefits to programmers of guaranteeing > > > > ref-counting semantics would outweigh the additional headaches for > > > > Jython and ot

Re: Coding style and else statements

2006-08-30 Thread [EMAIL PROTECTED]
Tal Einat wrote: > I meant to say that: > > (thing and [thing+1] or [-1])[0] > > is more readable (IMO) than: > > thing != -1 and (thing and thing+1 or -1) or 0 Neither is particularly readable, though I agree that the latter is worse since it has to have the third option ("0") on the end. But I'

Large LCD/Plasma TV Output

2006-08-30 Thread [EMAIL PROTECTED]
I'm soon going to be starting on a little program that needs to output tabular information to a large LCD or Plasma screen. Python is, of course, my preferred language. My first instinct is PyGame, which I have programming for a PC monitor before. Has anyone else had any experience with any Pytho

Re: newbe question about removing items from one file to another file

2006-08-30 Thread [EMAIL PROTECTED]
gment in instrument_segments.split ('\n\n'): > if segment: >instr_line = Instrument_Number (segment) >instrument_number = instr_line.split ()[1] >instruments [instrument_number] = segment > > --

Re: py2exe for programs with excel COM objects

2006-08-30 Thread [EMAIL PROTECTED]
Thanks a loy -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe for programs with excel COM objects

2006-08-30 Thread [EMAIL PROTECTED]
Thanks a lot -- http://mail.python.org/mailman/listinfo/python-list

Deploying an app with Embedded Python

2006-08-30 Thread [EMAIL PROTECTED]
I've got a large C++ application that we're adding web integration to, XMLRPC and HTTP GET/POST stuff. I'm jumping at the chance to use embedded python to handle this aspect of the application as its so much quicker to handle all the SSL, XML, and HTTP stuff with python and, when the web servic

Re: Allowing ref counting to close file items bad style?

2006-08-31 Thread [EMAIL PROTECTED]
Paul Rubin wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > I disagree strongly with this assertion. It's not as efficient overall > > as other GC implementations, but it's not a case of "less efficient to > > do the same task&qu

Re: Large LCD/Plasma TV Output

2006-08-31 Thread [EMAIL PROTECTED]
> If you want to try some fancy effects (alpha blending, 3D transitions), > have a look at PyOpenGL, or another OpenGL based library. There are > lots of links on pygame.org. I'm not looking for anything fancy. I guess my main concern is that I've never really done any programming for fancy telev

Re: Boost Python Issue

2006-08-31 Thread [EMAIL PROTECTED]
I believe this is more of a tools/compiler issue than a coding issue. If you are using the pre-built BOOST.Python library you get compile mismatches. I am not a Windows Visual Studio programmer (barely a programmer), I am probably not using the correct terminology. There are some settings for th

Re: Allowing ref counting to close file items bad style?

2006-08-31 Thread [EMAIL PROTECTED]
Dan wrote: > BJo:rn Lindqvist wrote: > > On 8/30/06, Dan <[EMAIL PROTECTED]> wrote: > >> Is my data safer if I explicitly close, like this?: > >> fileptr = open("the.file", "w") > >> foo_obj.write(fileptr) > >>

Re: ANN: GMPY binaries for Windows 2.5

2006-09-01 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > GMPY binaries for Python 2.5 are available at > http://home.comcast.net/~casevh/ > > Notes > > They have not been extensively tested. They don't work. At least the Pentium4 binary doesn't work, same problem as before. Is the patch ins

Re: ANN: GMPY binaries for Windows 2.5

2006-09-02 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > > > Notes > > > > > > They have not been extensively tested. > > > > They don't work. At least the Pentium4 binary doesn't work, > > same problem as before. Is the patch installed? > > I found the problem

XBox 360 free SDK (XNA) and IronPython

2006-09-02 Thread [EMAIL PROTECTED]
Just for information I just read this BBC article about the free (as in beer) SDK for XBOX 360 called XNA : http://news.bbc.co.uk/2/hi/technology/5306276.stm and saw here an example of someone using IronPython: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=682689&SiteID=1 I hope Nintend

Python GUI/tk

2006-09-03 Thread [EMAIL PROTECTED]
Hi, I am making a GUI with the help of python.In the program, when "ADD" button is pressed new frames build up and when you press "delete" button those frames will be destroyed . My problem is that these frames only get destroyed in Tk but the data structure associated with it (in Python) doesn't

pdf to hhp for boa-constructor help

2006-09-03 Thread [EMAIL PROTECTED]
Is there a way to convert from .pdf to hhp so that I can add help files to boa constructor.. adding html to it would also be helpfull http://www.dexrow.com -- http://mail.python.org/mailman/listinfo/python-list

Re: newbe question about removing items from one file to another file

2006-09-03 Thread [EMAIL PROTECTED]
Simon Forman wrote: > [EMAIL PROTECTED] wrote: > > Anthra Norell wrote: > > > Dexter, > > > > > > I looked at the format specification. It contains an example: > > > > > > --- > >

Re: newbe question about removing items from one file to another file

2006-09-03 Thread [EMAIL PROTECTED]
file > (from to )? Right? Or > each block to its own file in case there are several?. You want your code to > generate the file names? Can you confirm this or > explain it differently? > > Regards > > Frederic > > > - Original Message - > From: <

Re: newbe question about removing items from one file to another file

2006-09-03 Thread [EMAIL PROTECTED]
gment in instrument_segments.split ('\n\n'): > if segment: >instr_line = Instrument_Number (segment) >instrument_number = instr_line.split ()[1] >instruments [instrument_number] = segment > > --

This seems to crash my program and gives me errors on the #include statements

2006-09-04 Thread [EMAIL PROTECTED]
gt;> Instrument_Number = SE.SE (' ~instr.*~==\n') > >>> instruments ={} > >>> for segment in instrument_segments.split ('\n\n'): > if segment: >instr_line = Instrument_Number (segment) >instrument_number = instr_line.split ()[1] >

Re: This seems to crash my program and gives me errors on the #include statements

2006-09-04 Thread [EMAIL PROTECTED]
https://sourceforge.net/project/showfiles.php?group_id=156455&package Steve Holden wrote: > [EMAIL PROTECTED] wrote: > > I was trying to add this to my project but I must be missing some > > includes or there is a serius error somewhere > > > [...] > > > > I cut and past

Re: This seems to crash my program and gives me errors on the #include statements

2006-09-04 Thread [EMAIL PROTECTED]
#import se # se available at http://cheeseshop.python.org/pypi/SE/2.2%20beta looks like it is the se beta.. I didn't get any kind of error or traceback that would tell me that though.. Roberto Bonvallet wrote: > [EMAIL PROTECTED] wrote: > > It is giving errors on the import s

Re: threading support in python

2006-09-04 Thread [EMAIL PROTECTED]
iexecution programming. The decision on whether to use processes or threads should come down to whether you want to share everything, or whether you have specific pieces of data you want to share. With processes + shm, you can gain the security of protected memory for the majority of your cod

Re: Linear regression in 3 dimensions

2006-09-04 Thread [EMAIL PROTECTED]
through it. Cheers! Bernhard Robert Kern wrote: > [EMAIL PROTECTED] wrote: > > Hi all, > > > > I am seeking a module that will do the equivalent of linear regression in > > 3D to yield a best fit a plane through a set of points (X1, Y1, Z1), (X1, > > Y1, Z1),... (Xn,

Re: newbe question about removing items from one file to another file

2006-09-04 Thread [EMAIL PROTECTED]
: > - Original Message - > From: <[EMAIL PROTECTED]> > Newsgroups: comp.lang.python > To: > Sent: Monday, September 04, 2006 4:58 AM > Subject: Re: newbe question about removing items from one file to another file > > > > > > Anthra Norell wrote: &

Is it just me, or is Sqlite3 goofy?

2006-09-04 Thread [EMAIL PROTECTED]
Probably just me. I've only been using Access and SQL Server for 12 years, so I'm sure my opinions don't count for anything. I was, nevertheless, looking forward to Sqlite3. And now that gmpy has been upgraded, I can go ahead and install Python 2.5. So I open the manual to Section 13.13 where I f

Re: threading support in python

2006-09-05 Thread [EMAIL PROTECTED]
Sandra-24 wrote: > > You seem to be confused about the nature of multiple-process > > programming. > > > > If you're on a modern Unix/Linux platform and you have static read-only > > data, you can just read it in before forking and it'll be shared > > between the processes.. > > Not familiar with *

Re: threading support in python

2006-09-05 Thread [EMAIL PROTECTED]
Bryan Olson wrote: > I think it's even worse. The standard Python library offers > shared memory, but not cross-process locks. File locks are supported by the standard library (at least on Unix, I've not tried on Windows). They work cross-process and are a normal method of interprocess locking ev

Re: Is it just me, or is Sqlite3 goofy?

2006-09-05 Thread [EMAIL PROTECTED]
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] wrote: > > > But watch this: being clueless (but not stupid) is a gift I have > > for troubleshooting. I tried (incorrectly) to insert another record: > > > > cur.e

Re: code for the graphics window?

2006-09-05 Thread [EMAIL PROTECTED]
On Saturday 02 September 2006 11:41, you wrote: > [EMAIL PROTECTED] wrote: > > Hi. I'm new to Python . . .very new. I was just wondering, once I've > > written a program that opens the graphics window and I've got some > > things going on in the grahics

Re: Is it just me, or is Sqlite3 goofy?

2006-09-05 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > >> I think your whole experience is based on it. > > >> But shouldn't a significant feature like that be explained in the > >> Python manuals? Why should I go dig up Sqlite FAQs to learn what > >> should have been

Re: Higher-level OpenGL modules

2006-09-05 Thread [EMAIL PROTECTED]
http://pyopengl.sourceforge.net/ I wouldn't begin to tell you how to install this.. Looks like russian roulette with virus since the .dll's are not available and are not linked from the site but are available from lots of places in the google search. Looks like there is a copyright that might pre

Searching for python eng for Mobile Gaming: Limbo41414

2006-09-05 Thread [EMAIL PROTECTED]
is a total of 29. Recently funded by DFJ, Azure Capital Partners. Launched, product hit market, we are a fun group. Please contact me if you are interested in learning more about us, or the position. [EMAIL PROTECTED] www.41414.com -- http://mail.python.org/mailman/listinfo/python-list

Re: threading support in python

2006-09-06 Thread [EMAIL PROTECTED]
Paul Rubin wrote: > Jean-Paul Calderone <[EMAIL PROTECTED]> writes: > > >which more explicitly shows the semantics actually desired. Not that > > >"huge" a benefit as far as I can tell. Lisp programmers have gotten > > >along fine without it for 40

Re: threading support in python

2006-09-06 Thread [EMAIL PROTECTED]
Paul Rubin wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > Having memory protection is superior to not having it--OS designers > > spent years implementing it, why would you toss out a fair chunk of it? > > Being explicit about what you&#x

Re: threading support in python

2006-09-06 Thread [EMAIL PROTECTED]
Paul Rubin wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > > I think it's even worse. The standard Python library offers > > > shared memory, but not cross-process locks. > > > > File locks are supported by the standard library (a

Import a textfile to MS SQL with python

2006-09-06 Thread [EMAIL PROTECTED]
I'm a dba for SQL server and I Will import a textfile to SQL. For example I use a file with 3 columns. ID, Name and Surname and the columns are tab separated. I don't know much about programming. Anyway, I use this code below. It works, but it will not split the columns. I have tried to change the

Re: Import a textfile to MS SQL with python

2006-09-06 Thread [EMAIL PROTECTED]
i know the bulk instert functions i ms sql but i will use this script for oracle in a linux enviroment to so i think python is a good choice. regard joel -- http://mail.python.org/mailman/listinfo/python-list

Re: threading support in python

2006-09-06 Thread [EMAIL PROTECTED]
Steve Holden wrote: > [EMAIL PROTECTED] wrote: > > Paul Rubin wrote: > > > >>Jean-Paul Calderone <[EMAIL PROTECTED]> writes: > >> > >>>>which more explicitly shows the semantics actually desired. Not that > >>>>"huge"

Re: Import a textfile to MS SQL with python

2006-09-06 Thread [EMAIL PROTECTED]
Ok thanks Tim. I'm possible to read the file now as you described but when I pass it to the DB I got an error says: [['1', 'Joel', 'Sjoo'], ['2', 'Sture', 'Andersson'], ['3', 'Arne', 'Svensson']] Traceback (most recent call last): File "txttosql6.py", line 23, in ? row File "C:\Python24\Lib\si

How to insert an email-link into wxPython's HtmlWindow

2006-09-06 Thread [EMAIL PROTECTED]
Hello. I don't know if this topic is appropriate in this group (and my English is not good). My problem is here: I created a HtmlWindow in wxPython, then I wrote some code and set it to the page-text. In these code there was a line "mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]&

Re: Import a textfile to MS SQL with python

2006-09-06 Thread [EMAIL PROTECTED]
i gott the same results with both executemany and execute. i will try with some other sql modules. if you try tim so let me now if you cot it to work. many thanks for your help. regards joel -- http://mail.python.org/mailman/listinfo/python-list

running script in pyalamode

2006-09-06 Thread [EMAIL PROTECTED]
Is there a way to run a script within the editor of pyalamode? Or does one need to open and run the saved .py file? -- http://mail.python.org/mailman/listinfo/python-list

Re: Import a textfile to MS SQL with python

2006-09-06 Thread [EMAIL PROTECTED]
Yes i got it to work now. Thank you for all help Tim and Steve. I hope it will work for Oracle to :) Regards Joel -- http://mail.python.org/mailman/listinfo/python-list

Re: threading support in python

2006-09-06 Thread [EMAIL PROTECTED]
Paul Rubin wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > (1) I think is here to stay, if you're going to tell programmers that > > their destructors can't make program-visible changes (e.g. closing the > > database connection when

Re: threading support in python

2006-09-06 Thread [EMAIL PROTECTED]
Paul Rubin wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > > We had that debate already (PEP 343). Yes, there is some sloppy > > > current practice by CPython users that relies on the GC to close the > > > db conn. > > > >

Re: Scientific computing and data visualization.

2006-09-07 Thread [EMAIL PROTECTED]
A commonly used data analysis framework is root (http://root.cern.ch). It offers a object oriented C++ framework with all kind of things one needs for plotting and data visualization. It comes along with PyRoot, an interface making the root objects available to Python. Take a look at the root manua

wxPython

2006-09-07 Thread [EMAIL PROTECTED]
Hello everyone, I'm new at this so please be gentle. I have Python 2.4 on fc4. I installed easy_install and Python in my home directory since I don't have root permissions. It works fine. Now I want to install wxPython. I downloaded wxPython-src2.6.3.3.tar.bz2 from the site and now I'm trying thi

SQLwaterheadretard3 (Was: Is it just me, or is Sqlite3 goofy?)

2006-09-07 Thread [EMAIL PROTECTED]
Bruno Desthuilliers wrote: > [EMAIL PROTECTED] wrote: > > Probably just me. I've only been using Access and SQL Server > > for 12 years, so I'm sure my opinions don't count for anything. > > > > SQLite never pretended to be a full-blown RDBMS - just a lig

Re: wxPython

2006-09-07 Thread [EMAIL PROTECTED]
ident that the version still exsists it may still be in the search engines.. I don't know if you are after windows or not since I am not sure what fc4 is but if you are I have the uploads on my site. http://www.stormpages.com/edexter/csound.html [EMAIL PROTECTED] wrote: > Hello everyone,

Re: wxPython

2006-09-07 Thread [EMAIL PROTECTED]
I'm on Fedora Core 4, that's Linux. Thanks anyways. [EMAIL PROTECTED] wrote: > I suspect that your version for 2.4 is later than the one I installed a > couple weeks ago. That one was 2.6.1.0 You could possibly have the > one for python 2.5. I had trouble downloading tha

Re: SQLwaterheadretard3 (Was: Is it just me, or is Sqlite3 goofy?)

2006-09-08 Thread [EMAIL PROTECTED]
Ben Sizer wrote: > [EMAIL PROTECTED] wrote: > > Bruno Desthuilliers wrote: > > > SQLite never pretended to be a full-blown RDBMS - just a lightweight > > > simple embedded database as SQL-compliant as possible. > > > > Ah, *you* haven't read the docume

Re: Is it just me, or is Sqlite3 goofy?

2006-09-08 Thread [EMAIL PROTECTED]
someone else in his proximity > who suffers from this condition. Ok, I appologize. No more Larry the Cable Guy humor. I'll stick with Monty Python and Douglas Adams. > > [EMAIL PROTECTED] wrote: > > "Fixed"? Up until now, I didn't think it was possible for >

<    14   15   16   17   18   19   20   21   22   23   >