Re: ImportError with pickle (Python 2.7.9), possibly platform dependent

2015-05-13 Thread Ben Sizer
On Friday, 1 May 2015 13:34:41 UTC+1, Peter Otten wrote: > Ben Sizer wrote: > > > So... I don't know how to fix this, but I do now know why it fails, and I > > have a satisfactory answer for why it is acting differently on the Linux > > server (and that is just

Re: ImportError with pickle (Python 2.7.9), possibly platform dependent

2015-05-13 Thread Ben Sizer
or some reason or other. I think the hoops we need to jump through to ensure that the dumping and loading environments match up are too high relative to the cost of switching to JSON or similar, especially if we might need to load the data from something other than Python in future (god forbid).

Re: ImportError with pickle (Python 2.7.9), possibly platform dependent

2015-05-01 Thread Ben Sizer
On Thursday, 30 April 2015 01:45:05 UTC+1, Chris Angelico wrote: > On Thu, Apr 30, 2015 at 2:01 AM, Ben Sizer wrote: > > 1) There clearly is a module named OMDBMap, and it's importable - it's > > there in the 2nd line of the traceback. > > > > Does anybody

ImportError with pickle (Python 2.7.9), possibly platform dependent

2015-04-29 Thread Ben Sizer
whichever way you look at it), or there's something wrong with the Linux configuration that means it somehow cannot find this module (despite it already having found it to get this far). Does anybody have any suggestions on how I can go about debugging this? Or refactoring it to avoid whatever is happening here? -- Ben Sizer -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating an object that can track when its attributes are modified

2013-03-06 Thread Ben Sizer
On Thursday, 7 March 2013 00:07:02 UTC, Steven D'Aprano wrote: > On Wed, 06 Mar 2013 08:56:09 -0800, Ben Sizer wrote: > > > I need to be able to perform complex operations on the object that may > > modify several properties, and then gather the properties at the end as

Re: Creating an object that can track when its attributes are modified

2013-03-06 Thread Ben Sizer
objects and probably expensive to calculate the differences that way too. Performance is important so I would probably just go for an explicit function call to mark an attribute as having been modified rather than trying to do a diff like that. (It wouldn't work for rollbacks, but I can a

Creating an object that can track when its attributes are modified

2013-03-06 Thread Ben Sizer
ts: eg. if one of the attributes is a list and I append to it, this system won't notice. Is that something I can rectify easily? Any other comments or suggestions? Thanks, -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing PyPy alongside Python 2.7 on Windows?

2011-07-13 Thread Ben Sizer
On Jul 13, 7:29 am, cjrh wrote: > You can just extract the windows pypy 1.5 distribution to any folder and run > "pypy.exe" from there as if it was called "python.exe".  This is how I have > been using it.  In fact, pypy has been the default python for my portable > eclipse for a good while now

Installing PyPy alongside Python 2.7 on Windows?

2011-07-12 Thread Ben Sizer
asy enough, but what about getting setuptools and easy_setup working to install various packages for it? Is there a virtualenv-based method I can use here? (And is pip a decent replacement for setuptools on Windows yet?) -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Confusion over etree.ElementTree.Element.getiterator

2010-07-05 Thread Ben Sizer
HTML namespace'. Therefore I don't see how the example Python code given could work on a proper xhtml file, given that there should always be a namespace in effect but the code doesn't allow for it. That's my excuse anyway! :) -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Confusion over etree.ElementTree.Element.getiterator

2010-07-03 Thread Ben Sizer
On Jul 3, 11:12 pm, Ben Sizer wrote: > >>> for el in root.getiterator(): > > ...        print el > [much output snipped] > http://www.w3.org/1999/xhtml}a at d871e8> > http://www.w3.org/1999/xhtml}a at d87288> > http://www.w3.org/1999/xhtml}script at d87300>

Confusion over etree.ElementTree.Element.getiterator

2010-07-03 Thread Ben Sizer
ript tags to be found, considering iterating over the whole lot found at least 2 at the end there. What am I doing wrong? >>> import sys >>> print sys.version 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] I will upgrade to 2.6.5 ASAP, but I don't see

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-08 Thread Ben Sizer
so simple for beginners. So, whether it is or has been > planned the core Python implementation of *scanf()* ? (prefered as a > batteries included method) Perhaps struct.unpack is close to what you need? Admittedly that doesn't read from a file, but that might not be a problem in mo

Re: 'Import sys' succeeds in C++ embedded code, but module is not fully visible

2009-01-15 Thread Ben Sizer
On Jan 14, 4:37 pm, Ivan Illarionov wrote: > On Jan 14, 1:49 pm, Ben Sizer wrote: > > > No, I don't want to do anything with sys.path apart from see it. I > > just wanted my original question answered, not a guess at my intent > > and a solution for something I&#

Re: 'Import sys' succeeds in C++ embedded code, but module is not fully visible

2009-01-14 Thread Ben Sizer
ally do, though. I also wonder if this is something specific to the sys module, since it's already been shown that there are some specific C API functions for it. I will try with other modules and see if they exhibit the same symptoms. And I'm still wondering about the sys.path[0] q

Re: 'Import sys' succeeds in C++ embedded code, but module is not fully visible

2009-01-14 Thread Ben Sizer
On Jan 14, 1:55 am, Ivan Illarionov wrote: > Ben Sizer wrote: > > What am I doing wrong? > > What are you trying to achieve? > If you want to modify sys.path I suggest using Python/C API directly: No, I don't want to do anything with sys.path apart from see it. I

'Import sys' succeeds in C++ embedded code, but module is not fully visible

2009-01-13 Thread Ben Sizer
ies Python looks into for modules and source files: 2 Python error: Unhandled Python exception from script. Traceback (most recent call last): File "", line 13, in File "", line 7, in debug_path_info NameError: global name 'sys' is not defined [12532 refs] (Incidentally, the Stackless references are because I was originally trying to embed Stackless, but I reverted to vanilla 2.5 to see if it was a Stackless specific issue, which it appears not.) Another interesting thing is that sys.path[0] doesn't appear to be the current working directory, despite several sources online suggesting it should be. What am I doing wrong? -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Plz help..SocketServer UDP server losing lots of packets

2008-11-06 Thread Ben Sizer
oesn't exist. I've not tried to run the example, but it certainly confused me when trying to work out how Circuits works. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Python GUI interpreter slower than DOS-version?

2008-08-12 Thread Ben Sizer
27;s crashed. It just means it's not servicing the message pump. Chances are high that the program is still running just as normal. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Undefined calling conventions in Python.h

2008-07-25 Thread Ben Sizer
On Jul 23, 1:19 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Ben Sizer wrote: > > You should put the extern block around the #include call > > rather than individual functions, as surely the C calling convention > > should apply to everything within. > > Hel

Re: Undefined calling conventions in Python.h

2008-07-23 Thread Ben Sizer
're not using managed code in your app, disable it in the project/build options. If you are, then perhaps you just need to specify that you're not with this DLL, though I've never had to deal with anything like that myself. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Best Python packages?

2008-07-22 Thread Ben Sizer
look on this collection helps > > http://wiki.python.org/moin/UsefulModules Yeah, I saw that. I hoped some people might have some more, but perhaps not. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Best Python packages?

2008-07-18 Thread Ben Sizer
On Jul 16, 3:31 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Ben Sizer wrote: > > make my development a lot easier. > > Knowing what kind of development you do might help, of course.  Some > libraries are excellent in some contexts and suck badly in others... Sure. Mostl

Best Python packages?

2008-07-16 Thread Ben Sizer
lopment a lot easier. Any suggestions? -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Create list from string

2008-06-13 Thread Ben Sizer
he locale, but I am not sure.) Often it's best to specify why you want to do something, as when using a new language there is often a better way to achieve what you want than the first way that occurs to you. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Using an object-relational mapper to convert between databases

2008-05-28 Thread Ben Sizer
ow how easy it is to reflect them onto a second database. I'd just like some advice and pointers from anybody who's tried something similar to this or who knows the packages well enough to point me in the right direction. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: The Future of Python Threading

2007-08-11 Thread Ben Sizer
On Aug 10, 5:13 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On 8/10/07, Ben Sizer <[EMAIL PROTECTED]> wrote: > > > On 10 Aug, 15:38, Ben Finney <[EMAIL PROTECTED]> > > wrote: > > > Last I checked, multiple processes can run concurrently

Re: The Future of Python Threading

2007-08-10 Thread Ben Sizer
be a large degree of waiting for the other processes to respond, and you have to develop the protocols to communicate. Apart from convenient serialisation, Python doesn't exactly make IPC easy, unlike Java's RMI for example. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: something similar to shutil.copytree that can overwrite?

2007-06-22 Thread Ben Sizer
or them and delete them? It seems like there are several different copy functions in the module and it's not clear what each of them do. What's the difference between copy, copyfile, and copy2? Why do the docs imply that they overwrite existing files when copytree skips existing files? -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: something similar to shutil.copytree that can overwrite?

2007-06-21 Thread Ben Sizer
On 20 Jun, 11:40, Justin Ezequiel <[EMAIL PROTECTED]> wrote: > On Jun 20, 5:30 pm, Ben Sizer <[EMAIL PROTECTED]> wrote: > > > I need to copy directories from one place to another, but it needs to > > overwrite individual files and directories rather than just exi

something similar to shutil.copytree that can overwrite?

2007-06-20 Thread Ben Sizer
ooking for? -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows build of PostgreSQL library for 2.5

2007-06-13 Thread Ben Sizer
On 30 May, 16:20, Ben Sizer <[EMAIL PROTECTED]> wrote: > On 30 May, 15:42, Frank Millman <[EMAIL PROTECTED]> wrote: > > > On May 30, 4:15 pm,BenSizer<[EMAIL PROTECTED]> wrote: > > > > I've been looking for a Windows version of a library to interf

Re: Windows build of PostgreSQL library for 2.5

2007-05-30 Thread Ben Sizer
On 30 May, 15:42, Frank Millman <[EMAIL PROTECTED]> wrote: > On May 30, 4:15 pm, Ben Sizer <[EMAIL PROTECTED]> wrote: > > > I've been looking for a Windows version of a library to interface to > > PostgreSQL, but can only find ones compiled under Python versio

Windows build of PostgreSQL library for 2.5

2007-05-30 Thread Ben Sizer
I've been looking for a Windows version of a library to interface to PostgreSQL, but can only find ones compiled under Python version 2.4. Is there a 2.5 build out there? -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: pygame and python 2.5

2007-02-10 Thread Ben Sizer
On Feb 10, 8:42 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Hendrik van Rooyen wrote: > > <[EMAIL PROTECTED]> wrote: > > "Ben Sizer" <[EMAIL PROTECTED]> wrote: > > >> Ben> Python extensions written in C require recompilation f

Re: pygame and python 2.5

2007-02-10 Thread Ben Sizer
On Feb 10, 6:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Feb 9, 11:39?am, "Ben Sizer" <[EMAIL PROTECTED]> wrote: > > > Hopefully in the future, some of those convoluted steps will be fixed, > > but that requires someone putting in

Re: pygame and python 2.5

2007-02-09 Thread Ben Sizer
ructure of complex types across the boundary. The same may well go for the multitude of macros that make assumptions about the structure of a PyObject. It's not really much to do with the maturity, since functions don't seem to be getting regularly removed from the API. It's m

Re: pygame and python 2.5

2007-02-09 Thread Ben Sizer
ns when you upgrade the application. Winamp is one application that comes to mind which has kept plugins working across many upgrades. I doubt they're still compiling with Visual Studio 6. Perhaps it works because they have a more restrictive API that isn't passing non-primitive types

Re: pygame and python 2.5

2007-02-09 Thread Ben Sizer
On Feb 9, 1:48 pm, "siggi" <[EMAIL PROTECTED]> wrote: > @Ben Sizer Lucky I spotted this... > As a Python (and programming ) newbie allow me a - certainly naive - > question: > > What is this time consuming part of recompiling an extension, such as > Pygame, fr

Re: when will python 2.5 take in mainstream?

2007-02-06 Thread Ben Sizer
On Feb 6, 3:35 pm, [EMAIL PROTECTED] (Aahz) wrote: > Ben Sizer <[EMAIL PROTECTED]> wrote: > > >It would be great if someone could invest some time in trying to fix > >this problem. I don't think I know of any other languages that require > >recompilation o

Re: when will python 2.5 take in mainstream?

2007-02-06 Thread Ben Sizer
binary API between extensions and Python changes every couple of years or so. That's why I run 2.4 anywhere that needs extensions. It would be great if someone could invest some time in trying to fix this problem. I don't think I know of any other languages that require recompila

Re: Python does not play well with others

2007-01-25 Thread Ben Sizer
iciencies in certain areas when compared with other languages. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a good example on instantiating, calling, using, an API from Python on Windows?

2007-01-12 Thread Ben Sizer
nd out precisely what form the API takes. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: How to modify object attribute by python C API

2007-01-12 Thread Ben Sizer
Python has taken note that there's a new use of that object - your C code. It means it won't delete that object, even if no more Python code refers to it, because it knows your C code holds a reference to it. Therefore, when your C code no longer needs to access the object, you call Py_DECREF. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: pygame and python 2.5

2007-01-12 Thread Ben Sizer
ding problem with Python really, requiring extensions to always be recompiled for newer versions. I usually have to wait about 6 months to a year after any new release before I can actually install it, due to the extension lag. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Ref count oddness with embedded Python... memory leak?

2007-01-11 Thread Ben Sizer
's my output, with Python 2.5 built in debug mode on WinXP, no modifications: [7438 refs] [7499 refs] [7550 refs] [7601 refs] [7652 refs] Is this normal? It doesn't look very promising to me. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: creating simple Python scripting interfaces via C++

2007-01-11 Thread Ben Sizer
going for now. Are there any glaring errors I've made (apart from perhaps assuming sizeof(pointer) <= sizeof(long), that is)? And is there anywhere else more appropriate that I should be asking this question, given the lack of responses to this and my other embedding topic so far? -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

PyCFunction_New requires a pointer to a static PyMethodDef?

2007-01-09 Thread Ben Sizer
the method. (Google doesn't find any instance of "PyCFunction_Call" on docs.python.org. This might explain the Cookbook's comment that "one hardly ever sees Python class objects built in C extensions"!) -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

creating simple Python scripting interfaces via C++

2007-01-08 Thread Ben Sizer
hon class for this (as in http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/54352)? I'm not interested in wrapping whole C++ objects at this stage, and libraries like Boost::Python aren't currently an option. I just need a few pointers on doing it the low-level way for now. -- Ben Sizer -- http:/

Re: Why does Python never add itself to the Windows path?

2007-01-03 Thread Ben Sizer
Martin v. Löwis wrote: > Ben Sizer schrieb: > > Firstly, that solution only works for actual Python scripts; it doesn't > > solve the utility scripts that are often installed to the /scripts > > directory. > > Those packages should install .bat files into /scrip

Re: Why does Python never add itself to the Windows path?

2007-01-03 Thread Ben Sizer
Chris Lambacher wrote: > On Tue, Jan 02, 2007 at 09:08:41AM -0800, Ben Sizer wrote: > > Chris Lambacher wrote: > > > The python part of the 'python setup.py install' idiom needs to be > > > omitted on > > > Windows, but that does not mean that

Re: Why does Python never add itself to the Windows path?

2007-01-02 Thread Ben Sizer
Chris Lambacher wrote: > On Sat, Dec 30, 2006 at 04:55:09PM -0800, Ben Sizer wrote: > > Yet many scripts and applications require parameters, or to be executed > > from a certain directory. For example, setup.py. Or the various > > turbogears scripts. Or easy_install. >

Re: Why does Python never add itself to the Windows path?

2007-01-02 Thread Ben Sizer
Gabriel Genellina wrote: > At Saturday 30/12/2006 21:55, Ben Sizer wrote: > > >python setup.py install > > > >On Unix, you'd run this command from a shell prompt; on Windows, you > >have to open a command prompt window (``DOS box'') and do it there;

Re: Why does Python never add itself to the Windows path?

2007-01-02 Thread Ben Sizer
lem with Windows users being forced to jump through unnecessary hoops that Unix and MacOS users don't have to endure. And I think the default should be to edit the PATH and allow you to explicitly disallow this: changing from the current behaviour is the right thing to do because the curren

Re: Why does Python never add itself to the Windows path?

2007-01-02 Thread Ben Sizer
robert wrote: > Ben Sizer wrote: > > My opinion is that this is not as big a problem as some may feel that > > it is. Unlike Unix systems, the PATH variable is rarely used. > > It is a big problem. > > It is not less than the majority of Python users (at least those who

Re: Why does Python never add itself to the Windows path?

2006-12-30 Thread Ben Sizer
Martin v. Löwis wrote: > Ben Sizer schrieb: > > I've installed several different versions of Python across several > > different versions of MS Windows, and not a single time was the Python > > directory or the Scripts subdirectory added to the PATH environment > >

Re: Why does Python never add itself to the Windows path?

2006-12-25 Thread Ben Sizer
Ross Ridge wrote: > Ben Sizer wrote: > > I've installed several different versions of Python across several > > different versions of MS Windows, and not a single time was the Python > > directory or the Scripts subdirectory added to the PATH environment > >

Re: Why does Python never add itself to the Windows path?

2006-12-25 Thread Ben Sizer
n", it won't do anything on a plain Python install on Windows. Try it on Linux, and probably Mac too, and it'll do something useful. Similarly, if you install a Python package that adds to the scripts directory, you can typically expect to run those scripts from the command line witho

Why does Python never add itself to the Windows path?

2006-12-24 Thread Ben Sizer
years now. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python scripts in Windows Explorer

2006-10-23 Thread Ben Sizer
Gabriel Genellina wrote: > At Friday 20/10/2006 12:20, Ben Sizer wrote: > > >I'd like to be able to drag a file onto a Python script in Windows > >Explorer, or send that file to the script via the Send To context-menu > >option, so I can then process that file via sys.

Re: Using Python scripts in Windows Explorer

2006-10-23 Thread Ben Sizer
e." defines.py is in the same directory as the batch file, but cannot be executed like this. Double-clicking on it works, as expected. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Using Python scripts in Windows Explorer

2006-10-20 Thread Ben Sizer
p it in a batch file, but encounter a problem, where that batch file is able to execute the Python file if I double-click the batch file, but if I drag a file onto it it says it can no longer find the Python script. Are there any simple and workable solutions for this sort of thing? -- Ben Sizer -

Re: Can recursive descent parser handle Python grammar?

2006-10-02 Thread Ben Sizer
[EMAIL PROTECTED] wrote: > Ben Sizer wrote: > > [EMAIL PROTECTED] wrote: > > > I'm a compiler newbie and was curious if Python's language/grammar > > > can be handled by a recursive descent parser. > > > > I believe a recursive descent parser can ha

Re: Can recursive descent parser handle Python grammar?

2006-09-29 Thread Ben Sizer
[EMAIL PROTECTED] wrote: > I'm a compiler newbie and was curious if Python's language/grammar > can be handled by a recursive descent parser. I believe a recursive descent parser can handle any grammar; it just depends on how pure you want it to be. -- Ben Sizer -- http:/

Re: for: else: - any practical uses for the else clause?

2006-09-27 Thread Ben Sizer
y implies failure of a previous explicit condition, yet in this case, it's executed by default, when the previous clause was successfully executed. It would seem more natural if the else clause was triggered by 'bar' being empty, or even if the loop was explicitly broken out of, thoug

Re: Request for elucidation: enhanced generators

2006-09-20 Thread Ben Sizer
Steve Holden wrote: > Ben Sizer wrote: > > A simple question - can anybody give a short example of how these work > > and what they are good for? I've read PEP 342 and the associated bit in > > the What's New section and it's still all Greek to me. The latte

Request for elucidation: enhanced generators

2006-09-20 Thread Ben Sizer
o it doesn't aid the understanding too much. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: RELEASED Python 2.5 (FINAL)

2006-09-20 Thread Ben Sizer
the Python community, I'm happy to > announce the FINAL release of Python 2.5. Any chance the docs links could be fixed? The link on the front page still goes to 2.4.3 on docs.python.org, and the link from /download/releases/2.5/ goes to 2.6a0. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

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

2006-09-14 Thread Ben Sizer
Bryan Olson wrote: > Ben Sizer wrote: > > It's not a crackpot theory. It's a completely reasonable theory. SQL is > > based on relational algebra, which provides a mathematical set of > > operators for grouping data that is stored in separate sets. That data > >

Re: Javadoc style python manual?

2006-09-08 Thread Ben Sizer
Michele Simionato wrote: > Ben Sizer wrote: > > I agree that the Python docs aren't quite as effective as reference > > material due to the lack of simple function and method lists though. > > http://docs.python.org/lib/modindex.html, pydoc and ipython are more > tha

Re: Javadoc style python manual?

2006-09-08 Thread Ben Sizer
ily on inheritance like Java does. Instead, it is used in just a few places, more like the C++ standard library than the Java library. I agree that the Python docs aren't quite as effective as reference material due to the lack of simple function and method lists though. I don't kno

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

2006-09-08 Thread Ben Sizer
ke much to say that the module implements a subset of SQL but stores ignores data types. > What are the chances that anything I send in as a bug report > will simply be ignored? Kind of like the Emporer's New Clothes, eh? > It would be an admission of ignorance and stupidity on the pa

Re: getting quick arp request

2006-09-07 Thread Ben Sizer
nnections. It may also be that it implements part of its own TCP/IP stack, and accessing the ethernet card directly, but I don't know how practical that is for you. Ethereal and nmap appear to do this; you might want to browse their open source code, and/or ask on their mailing lists or foru

Re: getting quick arp request

2006-09-07 Thread Ben Sizer
sn't appearing for some reason. I've had that myself sometimes. There is an unofficial OS-level patch for this behaviour at this address: http://www.lvllord.de/?lang=en&url=downloads No idea if it works or if it's safe, but many people use it. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

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

2006-09-06 Thread Ben Sizer
her applications, you have a separate download. With sqlite, you don't, on Windows at least. Surely all the 'included batteries' should have local documentation, especially with the type conversions. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: getting quick arp request

2006-09-06 Thread Ben Sizer
which you can make connections at the OS level; this will show up as event 4226 in the Event Viewer if it affects you. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Higher-level OpenGL modules

2006-09-06 Thread Ben Sizer
oogle search. I think you're very mistaken... it's a little over-complex, but everything you need is up there, on the installation and download pages, and the only other .dlls you need are the OpenGL ones which the original poster will already have. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: raw audio in windows

2006-09-04 Thread Ben Sizer
I think you still need to get it into .wav format first, though this can apparently be in memory rather than on disk. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: raw audio in windows

2006-09-01 Thread Ben Sizer
app. <http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1103.mspx> -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Timeline for Python?

2006-08-31 Thread Ben Sizer
ainly not in just 12 or 13 months. The PEP does suggest that it isn't likely to be around any time before 2008 at the earliest. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Office and Python

2006-08-25 Thread Ben Sizer
d? It might be as simple as this: # sample data table = [ ("item1", 10, 100), ("item 2", 15, 300) ] out = file("my.csv", "w+") for row in table: out.write(",".join(str(item) for item in row) + "\n") And my.csv will look like: item1,10,100 item 2,15,300 -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and STL efficiency

2006-08-25 Thread Ben Sizer
t of those > reallocations take place while the vector is still proportionally > quite small. Math.log(4, 2) is not a small number when talking about a relatively expensive operation such as memory allocation and deallocation. And the superfluous copying amounts to probably an extra 2^1

Re: Pygame, mouse events and threads

2006-08-25 Thread Ben Sizer
[EMAIL PROTECTED] wrote: > Ben Sizer wrote: > > [EMAIL PROTECTED] wrote: > > > > > When I put the content of the run and input functions in the main > > > thread, it's working, why not in the thread? > > > > Because event handling needs to be done

Re: Pygame, mouse events and threads

2006-08-24 Thread Ben Sizer
ule, try to keep all your PyGame functions in the main thread and push your other processing into background threads, if you really need them. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Python + Java Integration

2006-08-23 Thread Ben Sizer
erved to be the 'next' anything anyway. It was sold on hype and has never lived up to it. I can see your point from a business perspective but I like to think Python is sold on its merits and not on being the new panacea for middle managers to deploy. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: hide python code !

2006-08-15 Thread Ben Sizer
t such laws there would be little incentive to create any such works that were non-trivial. No-one is going to pay you up front for it, so you need a way of protecting future potential income. Since that future income is typically strongly linked to the quality of your work, it's arguable that this is in fact a fairer business model than being paid a normal salary. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: hide python code !

2006-08-14 Thread Ben Sizer
Steven D'Aprano wrote: > On Fri, 11 Aug 2006 09:18:12 -0700, Ben Sizer wrote: > > > Imagine if you were the single-person developer of a small application > > that did something quite innovative, > > And imagine that you found a money-tree in your back yard... > &g

Re: hide python code !

2006-08-14 Thread Ben Sizer
Paul Boddie wrote: > Ben Sizer wrote: > > > > Imagine if you were the single-person developer of a small application > > that did something quite innovative, and charged a small fee for your > > product. Now imagine you were practically forced to make your algorith

Re: hide python code !

2006-08-11 Thread Ben Sizer
Paul Boddie wrote: > Ben Sizer wrote: > > > > It's worth remembering that there is a massive amount of software that > > has nothing to do with 'infrastructure', that won't need to be > > maintained, or upgraded. Examples include most retail soft

Re: hide python code !

2006-08-11 Thread Ben Sizer
nclude most retail software for the home or small office, and most entertainment software. Developers of such software often have understandable reasons for making it inconvenient to examine the algorithms at a high level. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: beginner questions on embedding/extending python with C++

2006-08-08 Thread Ben Sizer
e polled (eg. to handle input, AI, graphics, etc). Previous threads there will give you some hints on all these matters. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python for my web site

2006-08-04 Thread Ben Sizer
that go into turning a fresh, clean spot on your hard drive > into an application, what you've done is reinvent TurboGears rather than > develop your application. However, at least whatever you come up with would be better documented than TurboGears. ;) (I reserve the right to amend t

Re: Need a compelling argument to use Django instead of Rails

2006-08-04 Thread Ben Sizer
s, which is advisable anyway. > The hosting service formerly known as > python-hosting has been doing this > for years. Would you need one instance per user? Is it practical to run 1000s of Apache instances on one server? -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Need a compelling argument to use Django instead of Rails

2006-08-02 Thread Ben Sizer
Paul Rubin wrote: > "Ben Sizer" <[EMAIL PROTECTED]> writes: > > Another perfectly good reason is that PHP pages are much simpler to > > deploy than any given Python application server. Just add the code into > > your HTML pages as required and you're do

Re: Network Game in Python

2006-08-02 Thread Ben Sizer
nd who played what move etc..? Any suggestions on this. Use whichever is easiest for you. Why do you need to save the data to disk anyway? If you definitely need to do that, the shelve module is often a good choice for basic needs. But it depends on what you need to do with the information after you

Re: Need a compelling argument to use Django instead of Rails

2006-08-02 Thread Ben Sizer
Vincent Delporte wrote: > On 31 Jul 2006 07:05:27 -0700, "Ben Sizer" <[EMAIL PROTECTED]> wrote: > >Typically you run PHP as a module in your webserver, so there should be > >no process startup overhead. mod_python provides the same sort of > >functionality

Re: Need a compelling argument to use Django instead of Rails

2006-07-31 Thread Ben Sizer
d the same thing for PHP? Or is this handled > differently there? Typically you run PHP as a module in your webserver, so there should be no process startup overhead. mod_python provides the same sort of functionality for Python, but is not as popular or widely installed as the PHP Apache module. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Need a compelling argument to use Django instead of Rails

2006-07-31 Thread Ben Sizer
Terry Reedy wrote: > "Ben Sizer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > PyGame was barely maintained for a year, and is based on SDL which was > > also barely maintained for a year, and which hasn't kept up with > > hardw

Re: Need a compelling argument to use Django instead of Rails

2006-07-31 Thread Ben Sizer
Sybren Stuvel wrote: > Ben Sizer enlightened us with: > > PyGame was barely maintained for a year, and is based on SDL which > > was also barely maintained for a year, and which hasn't kept up with > > hardware advances at all. > > Still, ID Software and Epic both

Re: Need a compelling argument to use Django instead of Rails

2006-07-31 Thread Ben Sizer
Paul Boddie wrote: > Ben Sizer wrote: > > > > Even C++ comes with OpenGL in the standard library. > > Which standard library? Sorry, it was a long day, and I used entirely the wrong term here. By that, I meant "typically shipped with each compiler". I've nev

  1   2   3   >