Re: Loading C extension from memory

2010-05-19 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/13/2010 06:14 AM, mk wrote: > I wonder if there is a way to load C extension from in-memory object, > not from the file on the disk? > > I'm asking bc I would like to download C extensions over network and > load them into Python interpreter (wi

Re: Python 2.X vs. 3.X - level of acceptance?

2010-04-27 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/27/2010 03:57 AM, Stephan Schulz wrote: > Is Python 3 sucessful enough to make a switch worthwhile now? The language/interpreter is just fine. The biggest problem is 3rd party modules. My own module (APSW) has been available since the early b

Re: Python 3.0 usage?

2010-02-17 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philip Semanchuk wrote: > is Python 3.0 seeing use in production > anywhere, or did most of the Python world move to 3.1 as soon as it was > released? Python 3.0 has been end of lifed: http://www.python.org/download/releases/3.0.1/ Consequently no

Re: Py3: Terminal or browser output?

2010-02-13 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gnarlodious wrote: > I want to have a script > output HTML if run in a browser and plain text if run in a Terminal. You may also want to look into urwid. It provides you with a text console interface but can also provide HTML. It has widgets like te

Re: execute sqlite3 dot commands in python

2010-02-08 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 gintare statkute wrote: > Does anybody know if it possible to execute sqlite3 dot commands in python? The dot commands are parsed and executed by different code not part of the standard SQLite library. However if you want interactive shell functional

Re: SQLite3: preventing new file creation

2010-02-08 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gnarlodious wrote: > Every time I say something like: > > connection=sqlite3.connect(file) > > sqlite creates a new database file. Can this behavior be suppressed > through SQLite? Or am I forced to check for the file existing first? This is due to

Re: Safe file I/O to shared file (or SQLite) from multi-threaded web server

2010-01-01 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Diez B. Roggisch wrote: > AFAIK, sqlite ensures process-serialization via locking, and threads > synchronize themselves as well. SQLite versions prior to 3.5 did not support using the same connection or cursors in different threads. (You needed to al

Re: sqlite3 .mode option to create HTML table automatically?

2009-12-24 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 davidj411 wrote: > the CLI for sqlite3 shows .mode of "html", which formats the output in > HTML format that is good to add to . > > BUT i have not yet found anything for sqlite in python that does this. The CLI is extra code (in C) that wraps the SQ

Re: sqlite question

2009-10-17 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis Lee Bieber wrote: > I suspect, besides building an sqlite3.dll (if Windows), you might > have to modify the pysqlite DB-API adapter to support whatever new > arguments have been added to various calls (most like the db.connect() > paramete

Re: What command should be use when the testing of arguments is failed?

2009-10-14 Thread Roger Binns
Peng Yu wrote: > I actually wanted to ask what return code should be returned in this > case when the arguments are not right. Thank you1 The BSD world attempted to standardize the codes so you may as well use their definitions. You can see them in /usr/include/sysexits.h on your nearest Linux/Un

Re: RabbitMQ vs ApacheQpid (AMQP)

2009-10-13 Thread Roger Binns
jacopo wrote: > I am considering two solutions for a distributed system: either > RabbitMQ with py-amqplib or ApacheQpid with its own set of API. Have you considered the multiprocessing module? http://docs.python.org/library/multiprocessing.html#using-a-remote-manager Roger -- http://mail.py

Re: How to install 64-bit python on Ubuntu

2009-10-07 Thread Roger Binns
Curious wrote: > Did you mean to say that Ubuntu does come pre-installed with 64-bit > Python? I am saying that 64 bit Ubuntu comes with 64 bit Python. (32 bit Ubuntu comes with 32 bit Python.) > When I used the same command as you did, I see a 32-bit > version there. It is most likely that yo

Re: How to install 64-bit python on Ubuntu

2009-10-07 Thread Roger Binns
Curious wrote: > Ubuntu comes pre-installed with Python2.6 but this python installation > is a 32 bit installation. For 64 bit Ubuntu you are mistaken: $ file /usr/bin/python2.6 /usr/bin/python2.6: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GN

Re: Combining python and sqlite DB into a single, "executeable".

2009-10-07 Thread Roger Binns
[Please do not email me *and* the list - it is highly annoying] Tom Cumming wrote: > Thanks!, but I already thought of your suggestion. I've already gotten > the clear impression that the amount of work to implement this is more than > the ROI. It isn't anywhere near as hard or as much work as y

Re: Combining python and sqlite DB into a single, "executeable".

2009-10-06 Thread Roger Binns
tcumming...@gmail.com wrote: > The problem, is that I need the python app and the > sqlite db file to exist in the same disk file. This way the app to > access the data and the data are in the same file. For binaries this is possible with a little hackery. Firstly you need make the app be a zip f

Re: Business issues regarding adapting Python

2009-09-27 Thread Roger Binns
Nash wrote: > 3. If we do train people in Python for say a month; are we just > creating a team of mediocre programmers? Someone who has worked with > Python for over an year is much different than someone who has worked > with Python for only a month. In my experience the best way to "train" new

Re: Signing extensions

2009-09-26 Thread Roger Binns
Neil Hodgson wrote: >Code signing certificates that will be be valid for Windows > Authenticode cost $129 per year through CodeProject That isn't an amount I am prepared to pay either :-) (I don't even use Windows except as a glorified boot loader for Rise of Nations and to build Python exten

Signing extensions

2009-09-25 Thread Roger Binns
I would like to digitally sign the open source Python extensions I produce. I produce source code (zip file) as well as pre-built binaries for Windows (all Python versions from 2.3 to 3.1). I can sign the source using my PGP key no problem. I could also sign the Windows binaries that way but Win

Re: Do anyone here use Python *embedded* in a database?

2009-08-05 Thread Roger Binns
Jonathan Fine wrote: > anyone here ever used the Python *embedded* in a database server. There is also the case of using SQLite where it shares the same process as your Python code (and nothing else) and is a standard part of the Python library. You can add your own functions and collations and i

Re: hoe to build a patched socketmodule.c

2009-07-09 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 jacopo mondi wrote: > Hi all, I need to patch socketmodule.c (the _socket module) in order to > add support to an experimental socket family. You may find it considerably easier to use ctypes since that will avoid the need for any patching. You'll al

Re: Opening a SQLite database in readonly mode

2009-07-06 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joshua Kugler wrote: > BTW, APSW is written by the same author as pysqlite. Not even remotely true :-) pysqlite was written by various people, with the maintainer of the last several years being Gerhard Häring. I am the (sole) author of APSW and hav

Re: Python preprosessor

2009-06-07 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tuomas Vesterinen wrote: > I am intensively using 2to3.py. So I have 2 codebase: one in py2 and the > other in py3. The expectation would be that you only maintain the py2 code and automatically generate the py3 code on demand using 2to3. It is possi

Re: Learning C++ for Python Development

2009-05-10 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 joshua.pea...@gmail.com wrote: > Or, just give me some general advice on learning C++ for Python? You may want to start with Cython first. It lets you intersperse C and C level information with Python code to produce extensions. That will give you a

Re: Unix Change Passwd Python CGI

2009-02-25 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Derek Tracy wrote: > Apache is running on the same system that needs the password changed. I > need to keep security high and can not install additional modules at > this time. > > I just need a general direction to start looking, and I do not have >

Re: Is there a way to increase memory allocated to the python interpreter

2009-02-25 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 janandith jayawardena wrote: > Is there a way to configure the amount of memory allocated to the python > interpreter. Can it be increased or decreased using an argument like in > the Java Virtual Machine. Java needs the memory allocation number beca

Re: Fastest database solution

2009-02-06 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Curt Hash wrote: > I started out using sqlite3, but was not satisfied with the performance > results. I then tried using psycopg2 with a local postgresql server, and > the performance got even worse. SQLite is in the same process. Communication with

Re: Iterating through a file significantly slower when file has big buffer

2009-01-27 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pyt...@bdurham.com wrote: > The following tests were run on a Windows XP system using Python 2.6.1 Unless you changed the defaults, the Windows XP system cache size is 10MB. When you use a larger read size, chances are it is blowing out that cache an

Re: malloc (error code=12)

2009-01-22 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arash Arfaee wrote: > Very BIG Jesse It works on a huge Boolean function. > And thanks Roger. Do you think it will be solved if I run it over > another OS like windows? By far the simplest solution is to use a 64 bit process on a 64 bit operating

Re: malloc (error code=12)

2009-01-21 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arash Arfaee wrote: > Python(15492,0xb0103000) malloc: *** mmap(size=393216) failed (error > code=12) errno 12 is ENOMEM on Macs (and Linux for that matter). You may have run out of swap space, but that is unlikely. The most likely cause is that you

Re: Any news on when some libraries will be ported to Python 3.0?

2009-01-07 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just Another Victim of the Ambient Morality wrote: > Anyway, I'd love to hear some news about any of these things in > particular or even anything in general. Am I the only one who's psyched for > this version of Python? I ported my APSW SQLite

Re: Measuring bytes of packet sent from python application

2009-01-05 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kangkook Jee wrote: > That seems like a good solution for my issue but how can I distinguish > traffics from my application to others? I use nethogs on Ubuntu. If you use Intrepid, you can press 'm' to make it change amongst different displays (eg cu

Re: SQL, lite lite lite

2008-12-29 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aaron Brady wrote: > Python. There are some options, such as 'sqllite3', but they are not > easy. 'sqllite3' statements are valid SQL expressions, which afford > the entire power of SQL, but contrary to its name, it is not that > 'lite'. Have you c

Re: Most efficient way to build very large dictionaries

2008-12-24 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin wrote: > I'd think he's talking about in memory SQLite Databases, this way you > should be quite fast _and_ could dump all that to a persistent > storage... I was just talking about regular on disk SQLite databases. In terms of priming the pum

Re: Most efficient way to build very large dictionaries

2008-12-24 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pyt...@bdurham.com wrote: > Thank you for your suggestion about looking at SQLite. I haven't > compared the performance of SQLite to Python dictionaries, but I'm > skeptical that SQLite would be faster than in-memory Python dictionaries > for the type

Re: Most efficient way to build very large dictionaries

2008-12-24 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pyt...@bdurham.com wrote: > Can I take advantage of this knowledge to optimize You do the optimization last :-) The first thing you need to do is make sure you have a way of validating you got the correct results. With 25M entries it would be very e

Re: Most efficient way to build very large dictionaries

2008-12-24 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pyt...@bdurham.com wrote: > I would appreciate your thoughts on whether there are advantages to > working with a pre-built dictionary and if so, what are the best ways to > create a pre-loaded dictionary. Based on this and your other thread, you may w

Re: Strategy for determing difference between 2 very large dictionaries

2008-12-23 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pyt...@bdurham.com wrote: > Feedback on my proposed strategies (or better strategies) would be > greatly appreciated. Both strategies will work but I'd recommend the second approach since it uses already tested code written by other people - the chanc

Re: Jarow-Winkler algorithm: Measuring similarity between strings

2008-12-19 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Øyvind wrote: > Based on examples and formulas from http://en.wikipedia.org/wiki/Jaro-Winkler. > Useful for measuring similarity between two strings. For example if > you want to detect that the user did a typo. Jaro-Winkler is best when dealing with

Re: Source code generation using Python

2008-12-07 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ats wrote: > I want to generate 3 different versions of a C++ source code, > basically injecting different flavours of inline assembler depending > on target compiler/CPU. Are you aware that there are also packages that let you generate and call C cod

Re: Determining number of dict key collisions in a dictionary

2008-12-02 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > Background: I'm working on a project using very large dictionaries (64 > bit Python) and question from my client is how effective is Python's > default hash technique for our data set? Python hash functions return a long wh

Re: More than one interpreter per process?

2007-12-18 Thread Roger Binns
Graham Dumpleton wrote: > When using mod_wsgi there is no problem with C extension modules which > use simplified GIL API provided that one configures mod_wsgi to > delegate that specific application to run in the context of the first > interpreter instance created by Python. Graham, I've asked yo

Re: More than one interpreter per process?

2007-12-18 Thread Roger Binns
sturlamolden wrote: > On 18 Des, 10:24, Roger Binns <[EMAIL PROTECTED]> wrote: > >> The biggest stumbling block is what to do when the external environment >> makes a new thread and then eventually calls back into Python. It is >> hard to know which interpret

Re: More than one interpreter per process?

2007-12-18 Thread Roger Binns
sturlamolden wrote: > If one can have more than one interpreter in a single process, You can. Have a look at mod_python and mod_wsgi which does exactly this. But extension modules that use the simplified GIL api don't work with them (well, if at all). > Most of the conversion of the current Py

Re: How to release the GIL from C?

2007-05-23 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roger Binns wrote: > I am trying to release the GIL in a multi-threaded program (efforts > detailed below) without any success. The ultimate cause was that the program forked to go into daemon mode. I had called PyOS_AfterFork() as the doc

How to release the GIL from C?

2007-05-23 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am trying to release the GIL in a multi-threaded program (efforts detailed below) without any success. In the main thread during startup, I do the following: Py_InitializeEx(0); /* Python shouldn't handle signals */ PyEval_InitThreads(); /*

Adding extra frames to traceback in C module

2006-06-09 Thread Roger Binns
One thing I would like to do in my extension module is add extra frames to the traceback when an extension occurs. At the moment C code is invisible to tracebacks. This is relevant when the C code makes a Python callback. For example if the following code sequence happens (time going down) Python

Re: Help on exceptions (was: Convertion of Unicode to ASCII NIGHTMARE)

2006-04-10 Thread Roger Binns
"Serge Orlov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It can be like this. Notice special url, it is pointing to a > non-existing :) tutorial about why concatenating byte strings with > unicode strings can produce UnicodeDecodeError An alternate is to give an error code that

Re: Insertion (sql) bug in Py2.4 pySQLite 2.2

2006-04-08 Thread Roger Binns
"DurumDara" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have this code in my program. Before this I use APSW, but that project's > connection object doesn't have close method... The connection object is released when there are no more references to it, and there are no outsta

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-05 Thread Roger Binns
"Serge Orlov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have an impression that handling/production of byte order marks is > pretty clear: they are produced/consumed only by two codecs: utf-16 and > utf-8-sig. What is not clear? Are you talking about the C APIs in Python/SQL

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-05 Thread Roger Binns
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > sounds like your understanding of Unicode and Python's Unicode system > is a bit unclear. Err, no. Relaying unicode data between two disparate C APIs requires being careful and thorough. That means paying attention to

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-05 Thread Roger Binns
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Roger Binns wrote: > >> SQLite only accepts Unicode so a Unicode string has to be supplied. > > fact or FUD? let's see: Note I said SQLite. For APIs that take/give strings, yo

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-04 Thread Roger Binns
"ChaosKCW" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > me. As for SQLite supporting unicode, it probably does, No, SQLite *ONLY* supports Unicode. It will *only* accept strings in Unicode and only produces strings in Unicode. All the functionality built into SQLite such as comp

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-03 Thread Roger Binns
"Paul Boddie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It looks like you may have Unicode objects that you're presenting to > sqlite. In any case, with earlier versions of pysqlite that I've used, > you need to connect with a special unicode_results parameter, He is using apsw

Re: State of SSL in Python

2006-03-15 Thread Roger Binns
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'd like to use Python's native SSL functions because I'd like to keep > the install requirements at a minimum. I'm writing a client that will > use TLS with X509 certificate validation (and CRL checking in the > future). Will Python

Re: Python source cross reference doc generator?

2006-03-11 Thread Roger Binns
"Harry Fuecks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Wondering if a tool exists to generate "cross reference" documentation > for Python code bases? PyXR does cross referencing. epydoc generates good doc from comments (javadoc style): http://pyxr.sourceforge.net/ http

Re: Which GUI toolkit is THE best?

2006-03-11 Thread Roger Binns
"invitro81" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > But I've no idea which one I should use to start with.. One thing you'll need to carefully decide is where you want to end up. The different toolkits have different limits on where you can go. A simple example is printing

Re: Distributed Cache Server?

2005-11-06 Thread Roger Binns
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone know if a "distributed caching system" has been developed > for use with Python? BitTorrent :-) > Yes, "distributed caching system" is a bit of a general term, but am > really just talking about something as simple as key +

Re: PyFLTK - an underrated gem for GUI projects

2005-11-06 Thread Roger Binns
"aum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > To me, wxPython is like a 12-cylinder Hummer, with fuzzy dice hanging > from the mirror, fridge and microwave in the back, and DVD consoles on > every seat, towing a campervan - absolute power and luxury, giving 8mpg > if you're l

Re: Generating HTML from python

2005-06-10 Thread Roger Binns
"Philippe C. Martin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I wish to use an easy way to generate reports from wxPython and feel > wxHtmlEasyPrinting could be a good solution. > > I now need to generate the HTML wxHtmlEasyPrinting can print: I need to have > a title

Re: Comparing 2 similar strings?

2005-05-25 Thread Roger Binns
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ***Check out difflib, it's in the library.*** Perfect package for what > the OP wants AFAICT. The method in difflib is okay, but doesn't do that good a job. It is also relatively slow. My need for this was matching records in BitPim

Re: pyvm -- faster python

2005-05-11 Thread Roger Binns
"Stelios Xanthakis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> - hacking SWIG. Shouldn't be too hard and will instantly give >> us access to wx, qt, etc. Have you ever written a non-trivial extension using Swig? It isn't as simple as you would think. There are a lot of lit

Re: pyvm -- faster python

2005-05-10 Thread Roger Binns
"Paul Rubin" <http://[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Roger Binns" <[EMAIL PROTECTED]> writes: > What kind of stuff is in the existing Python C library that couldn't > be reimplemented or retargeted pretty easily?

Re: pyvm -- faster python

2005-05-10 Thread Roger Binns
"Paul Rubin" <http://[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Roger Binns" <[EMAIL PROTECTED]> writes: >> That will rule out all the gui frameworks, SSL, cryptography >> and numerous other packages. Have a look at what happened t

Re: pyvm -- faster python

2005-05-10 Thread Roger Binns
> I am not very interested on C compatibility. That will rule out all the gui frameworks, SSL, cryptography and numerous other packages. Have a look at what happened to Prothon. What ultimately killed it was the problem of having a decent library. You don't have to make the C library compatibil

Re: M2Crypto SSL memory leaks - fixes or alternatives ??

2005-05-10 Thread Roger Binns
> I notice that M2Crypto (a python wrap of OpenSSL) leaks (haemorrhages) > memory significantly and affects my long running app very badly. > > Does anyone know of fixes to this problem? > > Does anyone recommmend alternatives to M2C ? e.g pyopenssl. If you control both ends of the connection then

Re: pyvm -- faster python

2005-05-08 Thread Roger Binns
> could You tell us a bit more about Your motivation to create an > alternative C-Python interpreter? I'd also be curious to know if the performance gains would remain once it gets fleshed out with things like closures, long numbers, new style classes and a C library compatibility shim. Roger

Re: Decent Win32All Documentation

2005-04-24 Thread Roger Binns
"Harlin Seritt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone know of any decent documenation on Mark Hammond's win32all > modules? I have tried looking at the documentation .chm file that comes > with it, Python Programming On Win32 (OReilly book) and ActiveState's > d

Re: GUI woes

2005-04-23 Thread Roger Binns
"jeff elkins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > under debian sid, I installed (via apt-get) the various wxpython stuff > available.: > > libwxgtk2.4-python > libwxgtk2.5.3-python > python-opengl > python-pythoncard > python2.1-opengl > python2.2-opengl > python2.3-opengl

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-18 Thread Roger Binns
"Stefan Behnel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Roger Binns schrieb: >> As far as I can tell, they failed at two hurdles. One is that there >> is a new BitPim release every two weeks and they can't really keep up >>

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-13 Thread Roger Binns
> Here is the situation I see. I use debian linux systems. Installing all the > dependencies is trivial and if your program has a debian package it would be > a single command. Note that there is *nothing* precluding running using the system Python other than you have to have the dependencies pres

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-13 Thread Roger Binns
"Terry Reedy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I guess I don't understand some people's determination to not have users > install fully useable Python on their Windows machines. Ok, here is how you install BitPim which contains a frozen Python: - Download and run

Re: PyAsm

2005-03-10 Thread Roger Binns
"Stefan Behnel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Meaning: Put the assembler into the doc-string of a function. That has several issues. One is that you can't do string operations with it. Say you wanted some %d, %s etc in the string. If you use a documentation gene

Re: FTPLIB & FTPS or SFTP?

2005-01-19 Thread Roger Binns
"Peter A. Schott" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > have a handful of partners who use FTPS or SFTP and I need to pull/push files > to/from them. For SFTP, run don't walk, over to http://www.lag.net/paramiko/ Paramiko is a pure Python(*) implementation of SSH and all

Re: [ANN] iCalendar package 0.9

2005-01-18 Thread Roger Binns
"Max M" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://www.mxm.dk/products/public/ical/ > > Any feedback would be welcome. How well do you cope with the crud that real programs generate? Does it work with the different dialects uses out there? Can it at least identify them

Re: there's a socket.sendall(), so why no socket.recvall()?

2005-01-16 Thread Roger Binns
there's a socket.sendall(), so why no socket.recvall()? BTW socket.sendall() doesn't actually work for large amounts of data on Windows 2000 and probably other versions of Windows as well. Eg if you supply a 1MB buffer then you get an exception based on some internal Windows error code. I ha

Re: PyChecker messages

2005-01-11 Thread Roger Binns
> runner.py:878: Function (main) has too many lines (201) > > What does this mean? Cannot functions be large? Or is it simply an advice that > functions should be small and simple? It is advice. > runner.py:200: Function (detectMimeType) has too many returns (11) > > The function is simply a long

Re: Recent infoworld column

2005-01-09 Thread Roger Binns
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dwarf Electrician wrote: >> from a long time listener... >> >> http://www.infoworld.com/article/04/12/30/01OPstrategic_1.html > > Kudos for Roger Binns! It is a very nice arti

Re: PHP vs. Python

2004-12-23 Thread Roger Binns
"Stephen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I like the idea of being able to port specific sections to C ... Python > seems more flexible than PHP ... scalable. If you want portions of your code in C, then wrap them with Swig. That way they can be available in any numbe

Re: PHP vs. Python

2004-12-23 Thread Roger Binns
"Eric Pederson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My beloved Python-oriented webhost doesn't currently support Mod-Python You can always do what I did. I wrote the backend of my app in Python and run it as an XML-RPC server. I did the front end in PHP using the Smart

Source cross reference + colourizer (PyXR is no more?)

2004-12-22 Thread Roger Binns
I have been a happy user of PyXR which colourizes source to HTML and also cross references it. Here is an example of the output: http://bitpim.org/pyxr/c/projects/bitpim/analyser.py.html Unfortunately the author and his site appears to have gone AWOL for quite a while. It used to be: http:

Re: Boo who? (was Re: newbie question)

2004-12-21 Thread Roger Binns
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Terry Reedy wrote: > >> This I again agree with. I understand that Prothon is also a *different* >> though Python inspired language. Also that it is still >> under development. > > http://www.prothon.org/ > >"All

Re: why no python setup.py uninstall?

2004-12-12 Thread Roger Binns
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I think a little database (maybe in xml?) of installed files/modules > and their locations would be useful, perhaps even for a future > automatic download/installation/dependency-tracking thingmabob that > still regretably still doesn't

Re: Fun with Outlook and MAPI

2004-12-11 Thread Roger Binns
"Larry Bates" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At the risk of beating a dead horse, but you really should consider > using SMTP instead if you are really going to be sending a lot > of messages. The problem is that doesn't work in more complicated configurations such

Re: Fun with Outlook and MAPI

2004-12-11 Thread Roger Binns
"Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My only problem is that when I call Resolve() and Send(), I get confirmation > dialogs. I will be sending out quite a few e-mails > at a time, and would rather not have the user have to click yes for every > single one. He

Re: PajamaScript

2004-12-05 Thread Roger Binns
"Jerome Chan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I wrote something called PajamaScript. Basically, it parses a text > file and looks for tags. Then it calls python to handle the > scripting. Why learn another language when you already know Python? Why write another temp

Re: PySQLLite Speed

2004-12-02 Thread Roger Binns
"Kevin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Then when it starts to > write the Database, the PC Util drops to 1-2% and it > takes forever. I'm not PC related preformance > barriers that I'm aware of. Your hard disk. See the synchronous information in the pragmas: http

Re: What to use for installation?

2004-12-02 Thread Roger Binns
"Eugene Morozov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > But I want to know other opinions before going with scons. What is the best > tool for installing python applications? The tools you mention are actually more applicable to Python packages in that they install the code

Re: wxPython to build an HTML analyser/displayer?

2004-12-01 Thread Roger Binns
"Luke Skywalker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does wxWidgets offer an HTML displayer widget, Yes. In general it is highly recommended to download wxPython and the associated demo app. The demo app shows every single widget so you get an idea of what is available