[issue16145] Abort in _csv module

2013-03-24 Thread Roger Binns
Roger Binns added the comment: So is 3.3.1 with the fix ever going to be released? Georg did predict mid-November and we are 4 months after that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16145

[issue16145] Abort in _csv module

2012-10-06 Thread Roger Binns
Roger Binns added the comment: Roughly how long will it be before Python 3.3.1 comes out? This issue means my users will get garbage or crashes, so I'll need to work around it if it will be quite a while till 3.3.1. -- ___ Python tracker rep

[issue16145] Abort in _csv module

2012-10-05 Thread Roger Binns
Roger Binns added the comment: I'm the APSW author. You do not need SQLite installed - APSW's setup can fetch the current SQLite and use it privately not affecting the rest of the system. An easier way of testing is: python3 setup.py fetch --sqlite --version 3.7.14 build_ext --inplace

[issue16145] Abort in _csv module

2012-10-05 Thread Roger Binns
Roger Binns added the comment: (APSW author here). I haven't ported to the new Python 3.3 Unicode handling yet but it is on my todo list. The PEPs and doc said the C API would remain backwards compatible. The APSW code supports Python 2.3 onwards. SQLite APIs support both UTF-8 and UTF-16

[issue16035] Segmentation fault in test suite of apsw

2012-09-26 Thread Roger Binns
Roger Binns added the comment: Thanks for finding this problem. I can repeat it with the patch and am in the process of fixing it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16035

[issue12265] revamp argument errors

2011-06-05 Thread Roger Binns
Roger Binns pyt...@rogerbinns.com added the comment: Is there any reason it doesn't show the function 'prototype' which is by far the most the useful piece of information and is also a form of documentation (plus fairly hard to work out). Convoluted technospeak is far harder to understand

[issue12265] revamp argument errors

2011-06-05 Thread Roger Binns
Roger Binns pyt...@rogerbinns.com added the comment: Obviously the prototype can't be provided when it isn't known. But the pseudo-English text is trying to describe the prototype and is far less clear than the actual prototype. ie the developer communicated the prototype to Python

[issue11851] Flushing the standard input causes an error

2011-04-16 Thread Roger Binns
Roger Binns pyt...@rogerbinns.com added the comment: I'm the APSW author. The reason why this apparent nonsense is done is due to using readline and completion. That requires being able to write to standard input when it is a terminal - something that Windows and Linux are happy to do

Re: Loading C extension from memory

2010-05-20 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

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

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

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 the

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

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

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 TABLE. BUT i have not yet found anything for sqlite in python that does this. The CLI is extra code (in C) that wraps the

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() parameters

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

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 --

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

2009-10-07 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

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 you

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

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 you

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

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

APSW 3.6.17-r1 released

2009-08-12 Thread Roger Binns
APSW 3.6.17-r1 is now available. The home page is at http://code.google.com/p/apsw/ which includes full documentation, source and binary distributions for Windows (Python 2.3 onwards including 3.0 3.1). The opensource license used is the zlib/png license. APSW is a wrapper around the SQLite

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

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

Re: Opening a SQLite database in readonly mode

2009-07-07 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

[issue6040] bdist_msi does not deal with pre-release version

2009-07-05 Thread Roger Binns
Roger Binns pyt...@rogerbinns.com added the comment: This issue is highly annoying. The ultimate cause is the msi code using the StrictVersion class to get the version number. StrictVersion is documented to be constrained to numerical dot separated versions, and there doesn't appear

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

Re: Learning C++ for Python Development

2009-05-11 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: 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

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: 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

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

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

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

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

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 of

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 pump,

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

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 code

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

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-07 Thread Roger Binns
Roger Binns [EMAIL PROTECTED] added the comment: I will ask on the MinGW lists. I am still curious as to how MinGW is supposed to know which MSVC library will be used at compile time since distutils doesn't tell it until link time. As a seperate issue Python isn't too helpful when an extension

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-07 Thread Roger Binns
Roger Binns [EMAIL PROTECTED] added the comment: I guess you can close this now. Unfortunately SourceForge goes out of its way to not make an easy link for the MinGW mailing list but you can see the messages on 8th July 2008: http://sourceforge.net/mailarchive/forum.php?forum_name=mingw

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-06 Thread Roger Binns
New submission from Roger Binns [EMAIL PROTECTED]: My extension (apsw) builds and runs just fine on Linux, Mac and Windows for Python 2.3, 2.4 and 2.5. For Linux and Mac Python 2.6 beta 1 and Python 3.0 beta 1 also work just fine. However on Windows using MinGW and Python 2.6 beta 1 and Python

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-06 Thread Roger Binns
Roger Binns [EMAIL PROTECTED] added the comment: I figured maybe it was something to do with MSVC 90 dlls. pre C:\apswdir \*msvc*90* /s Volume in drive C has no label. Volume Serial Number is F4A5-1661 Directory of C:\MinGW\lib 12/27/2007 08:23 AM 554,136 libmsvcr90.a 12/27

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-06 Thread Roger Binns
Roger Binns [EMAIL PROTECTED] added the comment: I can't prove it since Python gives no further information than a procedure cannot be found, but using a bunch of other tools I think this may be due at least to the use of localtime() and it not being present in the msvcr90.dll but is in the vc

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-06 Thread Roger Binns
Roger Binns [EMAIL PROTECTED] added the comment: I cleared all event categories, and then ran Python followed by the import (which fails). No events in any category appeared. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3308

[issue3308] MinGW built extensions do not load (specified procedure cannot be found)

2008-07-06 Thread Roger Binns
Roger Binns [EMAIL PROTECTED] added the comment: I didn't have a copy of depends.exe since it doesn't appear to come with MinGW. System is basically VirtualBox VM with fresh install of XP Pro SP2, upgraded to SP3 and TortoiseSVN, Firefox, Xemacs, MinGW and Python versions installed. I found

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

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 interpretter that callback should go to. Not if you

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 you

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(); /*

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 documents

Ann: apsw 3.3.10-r1 (Another Python SQLite Wrapper)

2007-01-17 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 APSW 3.3.10-r1 is now available. Home page: http://www.rogerbinns.com/apsw.html APSW provides an SQLite 3 wrapper that provides the thinnest layer over SQLite 3 possible. Everything you can do from the C API to SQLite 3, you can do from Python.

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)

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 outstanding

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, you can either supply/get a UTF-8 encoded sequence

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 when

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/SQLite

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-04 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: 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

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 be

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: 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/

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 lucky.

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 + value

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 followed

Re: Comparing 2 similar strings?

2005-05-26 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 (eg

Re: pyvm -- faster python

2005-05-11 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? Most of it is either wrappers for standard C functions (system

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 little

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 you

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

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 to Prothon. I think it would be enough to retarget SWIG

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

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: 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

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 the

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? The

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

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: 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 Smarty

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 number of

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:

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 work on Prothon

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
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. Here is

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 as

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 pj tags. Then it calls python to handle the scripting. Why learn another language when you already know Python? Why write another

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:

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,

  1   2   >