Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Mario Figueiredo
On Thu, 19 Feb 2015 03:43:36 +, Mark Lawrence wrote: >After a wonderful relationship lasting many happy years I dumped Firefox >a few weeks ago for Chrome. A few anxious moments gave me pause for >thought, but overall I'm happy to have changed. However is anybody >aware of a "new kid on t

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Mario Figueiredo
A lot of patronizing egos running around in these groups. This is a sad thread... What is being asked is for help, not whether this is useful or needed. Jan-Hein is after some directions, not whether your bloody opinion on how he should use his free time. If the interest and usability of a projec

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Mario Figueiredo
On Thu, 19 Feb 2015 18:22:57 +1300, Gregory Ewing wrote: > >How does sqlite3 miss parameterized queries? It supports >DB-API parameter subsitution with '?' according to the >docs. It's actually parameterized views that I meant. Not queries. SQLite misses the ability to write parameterized views.

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Steven D'Aprano
Ben Finney wrote: > What's the difference betwen a “requirement” and a “major requirement”? "I require a gold-plated Mercedes, if I can have it for less than $30,000. My major requirement is for some sort of personal transport." *wink* -- Steve -- https://mail.python.org/mailman/listinfo/

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Chris Angelico
On Thu, Feb 19, 2015 at 6:07 PM, Steven D'Aprano wrote: > Very possibly. With modern dependency management, it isn't hard to install > Postgresql: > > sudo aptitude postgresql > > or equivalent should work. For primitive operating systems with no > dependency management available, Firefox could co

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Steven D'Aprano
ru...@yahoo.com wrote: > On 02/18/2015 07:13 PM, Steven D'Aprano wrote:> Chris Angelico wrote: SQLite misses some important features that makes it better suited as a simple datastore, not much unlike shelve. And network use is not one of them, since you can actually implement concur

Re: can python handle CHIME .spt files?

2015-02-18 Thread Laura Creighton
In a message of Wed, 18 Feb 2015 21:23:50 -0800, Ethan Furman writes: >On 02/18/2015 08:57 PM, Laura Creighton wrote: > >> I went and asked your question to Andrew Dalke, who is an expert >> in such things. > >Did you happen to ask him about PyMol? Just curious. ;) > >-- >~Ethan~ I hadn't then,

Re: What behavior would you expect?

2015-02-18 Thread Dave Angel
On 02/19/2015 12:10 AM, Chris Angelico wrote: On Thu, Feb 19, 2015 at 3:44 PM, Jason Friedman wrote: I have need to search a directory and return the name of the most recent file matching a given pattern. Given a directory with these files and timestamps, q.pattern1.abc Feb 13 r.pattern1.cdf

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Ethan Furman
On 02/18/2015 09:26 PM, memilanuk wrote: > On 02/18/2015 09:16 PM, Ben Finney wrote: >> memilanuk writes: >> >>> In the past I've been waffling back and forth between a desktop >>> client/server setup, or a web-based interface with everything on one >>> computer. At this point I'm leaning toward t

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Mark Lawrence
On 19/02/2015 00:08, Mario Figueiredo wrote: Parameterized queries is just a pet peeve of mine that I wish to include here. SQLite misses it and I miss the fact SQLite misses it. The less SQL one needs to write in their code, the happier one should be. https://docs.python.org/3/library/sqlite

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread memilanuk
On 02/18/2015 09:16 PM, Ben Finney wrote: memilanuk writes: In the past I've been waffling back and forth between a desktop client/server setup, or a web-based interface with everything on one computer. At this point I'm leaning toward the latter. So, it's been many exchanges back and forth,

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Gregory Ewing
Mario Figueiredo wrote: Parameterized queries is just a pet peeve of mine that I wish to include here. SQLite misses it How does sqlite3 miss parameterized queries? It supports DB-API parameter subsitution with '?' according to the docs. -- Greg -- https://mail.python.org/mailman/listinfo/pyth

Re: can python handle CHIME .spt files?

2015-02-18 Thread Ethan Furman
On 02/18/2015 08:57 PM, Laura Creighton wrote: > I went and asked your question to Andrew Dalke, who is an expert > in such things. Did you happen to ask him about PyMol? Just curious. ;) -- ~Ethan~ signature.asc Description: OpenPGP digital signature -- https://mail.python.org/mailman/li

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Ben Finney
memilanuk writes: > In the past I've been waffling back and forth between a desktop > client/server setup, or a web-based interface with everything on one > computer. At this point I'm leaning toward the latter. So, it's been many exchanges back and forth, and you still aren't telling us what sp

Re: What behavior would you expect?

2015-02-18 Thread Chris Angelico
On Thu, Feb 19, 2015 at 3:44 PM, Jason Friedman wrote: > I have need to search a directory and return the name of the most recent > file matching a given pattern. Given a directory with these files and > timestamps, > > q.pattern1.abc Feb 13 > r.pattern1.cdf Feb 12 > s.pattern1.efg Feb 10 > t.p

Re: When to use SQLite3 [was Re: 'Lite' Databases (Re: sqlite3 and dates)]

2015-02-18 Thread Ethan Furman
On 02/18/2015 08:59 PM, Steve Hayes wrote: > I would summarise it by saying [...] if you want a standalone database on > a single machine, use SQLite. It sounds like SQLite would also work fine if that single-machine scenario was a web-app with not-too-many users trying to write at once. -- ~E

Re: When to use SQLite3 [was Re: 'Lite' Databases (Re: sqlite3 and dates)]

2015-02-18 Thread Steve Hayes
On Wed, 18 Feb 2015 20:15:30 -0800, Ethan Furman wrote: >At the risk of using actual data, I looked this up at >http://www.sqlite.org/whentouse.html: > > >Checklist For Choosing The Right Database Engine Interesting. A couple of months ago I asked in comp.databases what the differences were b

Re: can python handle CHIME .spt files?

2015-02-18 Thread Laura Creighton
I went and asked your question to Andrew Dalke, who is an expert in such things. Writing programs for visualising molecules is what he does for a living. The news is not good. First of all, he says the "spt" format is a command format. See http://www.callutheran.edu/BioDev/omm/scripting_ch/molma

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread memilanuk
On 02/18/2015 08:36 PM, Ben Finney wrote: memilanuk writes: They would need to be able to set up the application (and whatever database) on their laptop or PC, wherever that may be, and spend their time administering the event, not the database engine. So, the database will only be accessed

What behavior would you expect?

2015-02-18 Thread Jason Friedman
I have need to search a directory and return the name of the most recent file matching a given pattern. Given a directory with these files and timestamps, q.pattern1.abc Feb 13 r.pattern1.cdf Feb 12 s.pattern1.efg Feb 10 t.pattern2.abc Feb 13 u.pattern2.xyz Feb 14 v.pattern2.efg Feb 10 calli

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Ben Finney
memilanuk writes: > They would need to be able to set up the application (and whatever > database) on their laptop or PC, wherever that may be, and spend their > time administering the event, not the database engine. So, the database will only be accessed by exactly one application, on exactly t

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread rurpy
On 02/18/2015 09:09 PM, Ben Finney wrote > memilanuk writes: >[...] > If you want networked access, you need concurrent access and access > permissions, etc. Sqlite has concurrent access. It doesn't have concurrent access that will support a large number of writers or high volume of writes. A

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread memilanuk
On 02/18/2015 08:09 PM, Ben Finney wrote: I have a hard time picturing that few people stressing a modern computer system enough to where SQLite couldn't keep up (thinking web-based interface using Flask or something similar). In the latter case, one of the over-arching priorities is that it be

When to use SQLite3 [was Re: 'Lite' Databases (Re: sqlite3 and dates)]

2015-02-18 Thread Ethan Furman
At the risk of using actual data, I looked this up at http://www.sqlite.org/whentouse.html: Checklist For Choosing The Right Database Engine * Is the data separated from the application by a network? → choose client/server Relational database engines act as a bandwidth-reducing data filt

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread rurpy
On 02/18/2015 07:13 PM, Steven D'Aprano wrote:> Chris Angelico wrote: >>> SQLite misses some important features that makes it better suited as a >>> simple datastore, not much unlike shelve. And network use is not one >>> of them, since you can actually implement concurrent sqlite access by >>> cod

Re: sqlite3 and dates

2015-02-18 Thread rurpy
On 02/18/2015 04:07 PM, Steven D'Aprano wrote: > ru...@yahoo.com wrote: >> On 02/18/2015 01:14 PM, Ben Finney wrote: >>> Johannes Bauer writes: On 18.02.2015 08:05, Chris Angelico wrote: > But if you need more facilities than SQLite3 can offer, maybe it's > time to move up to a f

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Ben Finney
memilanuk writes: > At this point... I don't think concurrency is going to be a major > requirement for what I have in mind. What's the difference betwen a “requirement” and a “major requirement”? If you want networked access, you need concurrent access and access permissions, etc. SQLite does

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread rurpy
On 02/18/2015 05:08 PM, Mario Figueiredo wrote: >[...] > SQLite misses some important features that makes it better suited as a > simple datastore, not much unlike shelve. And network use is not one > of them, since you can actually implement concurrent sqlite access by > coding an intermediate lay

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Chris Angelico
On Thu, Feb 19, 2015 at 2:33 PM, memilanuk wrote: > At this point... I don't think concurrency is going to be a major > requirement for what I have in mind. For one project, only a few people > will be writing to the DB, and only by a stroke of luck would it be at the > same time, and it would be

VTK Quadratic - vtkContourFilter - vtkSliderRepresentation2D in Python not working properly

2015-02-18 Thread Shalini Ravishankar
Hello Everyone, I am new to VTK. I am trying to extract isosurfaces(Contour) from a quadratic function with a Slider to change the iso surfaces. #!/usr/bin/env python # First, we need to import vtk package in order to access VTK classes/functions. import vtk # create a data source...an imp

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Mark Lawrence
On 19/02/2015 02:13, Steven D'Aprano wrote: Chris Angelico wrote: SQLite misses some important features that makes it better suited as a simple datastore, not much unlike shelve. And network use is not one of them, since you can actually implement concurrent sqlite access by coding an intermedi

Re: sqlite3 and dates

2015-02-18 Thread Mark Lawrence
On 19/02/2015 02:48, Steve Hayes wrote: All of which has nothing, absolutely nothing, to do with the OP's question, which said nothing about number of users, but how the software handles dates. Very true, but charging off like this at massive tangents is one of the reasons I love being here.

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread memilanuk
On 02/18/2015 04:03 PM, Ben Finney wrote: Is there anything *good* that sits in between the two extremes of SQLite and PostgreSQL? What do you need a RDBMS to do, and what do you not need? The answers to those questions vary hugely between different people (and most people probably don't thin

Not sqlite3 and dates

2015-02-18 Thread Steve Hayes
On Thu, 19 Feb 2015 09:37:49 +1100, Chris Angelico wrote: >On Thu, Feb 19, 2015 at 9:17 AM, wrote: >>> SQLite3 is fine for something that's basically just a more structured >>> version of a flat file. You assume that nobody but you has the file >>> open, and you manipulate it just the same as i

Not sqlite3 and dates

2015-02-18 Thread Steve Hayes
On Wed, 18 Feb 2015 23:14:32 +1100, Chris Angelico wrote: >On Wed, Feb 18, 2015 at 10:57 PM, Johannes Bauer wrote: >> SQLite and Postgres are so vastly different in their setup, >> configuration, capabilities and requirements that the original developer >> has to have done a MAJOR error in judge

Re: sqlite3 and dates

2015-02-18 Thread Steve Hayes
On Wed, 18 Feb 2015 22:21:35 +1100, Chris Angelico wrote: >On Wed, Feb 18, 2015 at 10:11 PM, Johannes Bauer wrote: >> On 18.02.2015 08:05, Chris Angelico wrote: >> >>> But if you need more facilities than SQLite3 can offer, maybe it's >>> time to move up to a full database server, instead of loc

Re: sqlite3 and dates

2015-02-18 Thread Steve Hayes
On Wed, 18 Feb 2015 08:19:25 +0200, "Frank Millman" wrote: >Hi all > >sqlite3 does not have a DATE type, but the python module does a pretty good >job of providing one - The Rootsmagic genealogy program uses SQLite for its database, I don't know whether or to what extent it uses Python to int

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Steven D'Aprano
Chris Angelico wrote: >> SQLite misses some important features that makes it better suited as a >> simple datastore, not much unlike shelve. And network use is not one >> of them, since you can actually implement concurrent sqlite access by >> coding an intermediate layer. Assuming of course we ar

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Chris Angelico
On Thu, Feb 19, 2015 at 11:08 AM, Mario Figueiredo wrote: > I usually think of my relationship with postgre as similar to what I > experienced with Git. At first I was just dumbstruck by the whole > thing and my first reaction was to ignore it and just do version > control as I knew with the tools

Re: What the Pythons docs means by "container" ?

2015-02-18 Thread Chris Angelico
On Thu, Feb 19, 2015 at 11:05 AM, Ben Finney wrote: >> Hmmm. I'm not sure I believe that. Can you enumerate all of the items >> and see if there actually is an infinite number of them? I'll wait... > > A mathematician should know better: you don't need to enumerate to > demonstrate a collection is

Re: What the Pythons docs means by "container" ?

2015-02-18 Thread Ben Finney
Steven D'Aprano writes: > Terry Reedy wrote: > > > […] virtual collections can be infinite. > > Hmmm. I'm not sure I believe that. Can you enumerate all of the items > and see if there actually is an infinite number of them? I'll wait... A mathematician should know better: you don't need to enum

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Mario Figueiredo
On Wed, 18 Feb 2015 15:32:36 -0800, memilanuk wrote: > >Is there anything *good* that sits in between the two extremes of SQLite >and PostgreSQL? > >I've tinkered with MySQL years ago (in conjunction with PHP) and was a >little unhappy with some of the things MariaDB is backwards compatible wi

Re: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Ben Finney
memilanuk writes: > Okay... this might be a question with a blindingly obvious answer, but > I haven't seen any recommendations otherwise so I'll ask anyway ;) > > Is there anything *good* that sits in between the two extremes of > SQLite and PostgreSQL? What do you need a RDBMS to do, and what

'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread memilanuk
On 02/18/2015 02:52 PM, Ethan Furman wrote: Chris also wrote: But SQLite3 is *not* great if you look on it as a database engine comparable with DB2, PostgreSQL, and even MySQL. Sure, the LITE in SQLite means you don't get some things. There is still a huge amount of software that doesn't ne

Re: sqlite3 and dates

2015-02-18 Thread Steven D'Aprano
ru...@yahoo.com wrote: > On 02/18/2015 01:14 PM, Ben Finney wrote: >> Johannes Bauer writes: >>> On 18.02.2015 08:05, Chris Angelico wrote: >>> But if you need more facilities than SQLite3 can offer, maybe it's time to move up to a full database server, instead of local files. Swit

Re: What the Pythons docs means by "container" ?

2015-02-18 Thread Steven D'Aprano
Terry Reedy wrote: > On 2/18/2015 2:43 PM, Ethan Furman wrote: > >> Whether a "contained" object exists before it is accessed is irrelevant, >> is an implementation detail, and is a level of optimization. > > Is in not irrelevant in that virtual collections can be infinite. Hmmm. I'm not sure I

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Grant Edwards
On 2015-02-18, Marko Rauhamaa wrote: > janhein.vanderb...@gmail.com: > >> Op woensdag 18 februari 2015 17:47:49 UTC+1 schreef Dave Angel: >>> On 02/18/2015 03:59 AM, janhein.vanderb...@gmail.com wrote: >>> > encoding individual integers optimally without any assumptions >>> > about their values. >

Re: Issues pip-installing pywin32

2015-02-18 Thread Chris Angelico
On Thu, Feb 19, 2015 at 6:01 AM, Terry Reedy wrote: > On 2/18/2015 7:13 AM, Chris Angelico wrote: >> Huh. The PyPI categorization seems to exclude Python 3.4 support > > > I have pip-installed 3.4 packages just fine. > > >> (despite versions for both 3.4 and 3.5 existing on the sourceforge >> page

Re: sqlite3 and dates

2015-02-18 Thread Ethan Furman
On Thu, Feb 19, 2015 at 9:17 AM, rurpy wrote: > That you would equate that to a JSON blob [...] Chris wrote: > I didn't equate them. >> Chris wrote earlier: >>> and you manipulate it just the same as if it were a big fat blob >>> of JSON That sure sounds like equating. Chris also wrote: > But

Re: sqlite3 and dates

2015-02-18 Thread Chris Angelico
On Thu, Feb 19, 2015 at 9:17 AM, wrote: >> SQLite3 is fine for something that's basically just a more structured >> version of a flat file. You assume that nobody but you has the file >> open, and you manipulate it just the same as if it were a big fat blob >> of JSON, but thanks to SQLite, you d

Re: sqlite3 and dates

2015-02-18 Thread rurpy
On 02/18/2015 04:21 AM, Chris Angelico wrote: > On Wed, Feb 18, 2015 at 10:11 PM, Johannes Bauer wrote: >> On 18.02.2015 08:05, Chris Angelico wrote: >> >>> But if you need more facilities than SQLite3 can offer, maybe it's >>> time to move up to a full database server, instead of local files. >>>

Re: sqlite3 and dates

2015-02-18 Thread rurpy
On 02/18/2015 01:14 PM, Ben Finney wrote: > Johannes Bauer writes: >> On 18.02.2015 08:05, Chris Angelico wrote: >> >>> But if you need more facilities than SQLite3 can offer, maybe it's >>> time to move up to a full database server, instead of local files. >>> Switching to PostgreSQL will give yo

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Dave Angel
On 02/18/2015 02:55 PM, janhein.vanderb...@gmail.com wrote: Op woensdag 18 februari 2015 17:47:49 UTC+1 schreef Dave Angel: On 02/18/2015 03:59 AM, janhein.vanderb...@gmail.com wrote: encoding individual integers optimally without any assumptions about their values. Contradiction in terms

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Marko Rauhamaa
Marko Rauhamaa : > Out of curiosity, could you give me an example of an integer, not > assuming anything about its value. > > I mean, any integer you could mention would be very close to zero > compared with virtually all other integers. And I don't mean to be snide, either. I'm just saying that

Re: can python handle CHIME .spt files?

2015-02-18 Thread Ethan Furman
On 02/18/2015 01:55 PM, Davin Potts wrote: > * If you want a way to parse problematic .spt files that can no longer be > read in using Jmol or MDL Chime, it is > possible to create an .spt parser in Python capable of reading your files > though my quick searches for an existing .spt > parser lib

Re: can python handle CHIME .spt files?

2015-02-18 Thread Ethan Furman
On 02/18/2015 12:56 PM, James Zimmerman wrote: > > I have a lot of old files that were written in Chime, then made compatible > with Jmol. > Now there are problems with that. Will Python give me a way to be able to > show the > .spt files that Chime could read? I don’t want to start learning P

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Marko Rauhamaa
janhein.vanderb...@gmail.com: > Op woensdag 18 februari 2015 17:47:49 UTC+1 schreef Dave Angel: >> On 02/18/2015 03:59 AM, janhein.vanderb...@gmail.com wrote: >> > encoding individual integers optimally without any assumptions >> > about their values. >> >> Contradiction in terms. > > Not. Out o

Re: can python handle CHIME .spt files?

2015-02-18 Thread Davin Potts
Hi James — I’m not entirely sure I understand what you’re wanting to do, but my ears perked up when you mentioned Jmol and Chime so I’ll try to offer some pointers: * If you want to assess which .spt files are failing when trying to read them with Jmol, then yes, Python can be used to automate

can python handle CHIME .spt files?

2015-02-18 Thread James Zimmerman
I have a lot of old files that were written in Chime, then made compatible with Jmol. Now there are problems with that. Will Python give me a way to be able to show the .spt files that Chime could read? I don't want to start learning Python unless I know there is a way. Than

Re: Logging with Custom Levels not working

2015-02-18 Thread Ian Kelly
On Wed, Feb 18, 2015 at 6:49 AM, Didymus wrote: > def perror(self, message, *args, **kws): > """ Performance Error Message Level """ > # Yes, logger takes its '*args' as 'args'. > self._log(PERROR_NUM, message, args, **kws) > > logging.Logger.perror = perror I think you need to call s

Re: sqlite3 and dates

2015-02-18 Thread Ben Finney
Johannes Bauer writes: > On 18.02.2015 08:05, Chris Angelico wrote: > > > But if you need more facilities than SQLite3 can offer, maybe it's > > time to move up to a full database server, instead of local files. > > Switching to PostgreSQL will give you all those kinds of features, > > plus a lot

Re: What the Pythons docs means by "container" ?

2015-02-18 Thread Terry Reedy
On 2/18/2015 2:43 PM, Ethan Furman wrote: Whether a "contained" object exists before it is accessed is irrelevant, is an implementation detail, and is a level of optimization. Is in not irrelevant in that virtual collections can be infinite. -- Terry Jan Reedy -- https://mail.python.org/mai

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread janhein . vanderburg
Op woensdag 18 februari 2015 17:47:49 UTC+1 schreef Dave Angel: > On 02/18/2015 03:59 AM, janhein.vanderb...@gmail.com wrote: > > > > encoding individual integers optimally without any assumptions about their > > values. > > > > Contradiction in terms. > > -- > DaveA Not. Jan-Hein. -- https

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread janhein . vanderburg
Op woensdag 18 februari 2015 14:55:07 UTC+1 schreef Dave Angel: > Define "beats." You might mean beats in simplicity, or in elegance, or > in clarity of code. But you probably mean in space efficiency, or > "compression." But that's meaningless without a target distribution of > values that y

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread janhein . vanderburg
Op woensdag 18 februari 2015 11:33:18 UTC+1 schreef Laura Creighton: > Hi Jan. Hi Laura, thanks for your comments; let me explain my why: > Should you ever need an assembler programmer for > quick and dirty hacks for the PDP-11 line (11/20 and 11/05 preferred > as it is harder) I am still the wom

Re: What the Pythons docs means by "container" ?

2015-02-18 Thread Ethan Furman
On 02/17/2015 06:14 PM, candide wrote: > Le mercredi 18 février 2015 01:50:16 UTC+1, Chris Angelico a écrit : > >> >> So, what's a container? It's a thing that you put other objects into. > > I agree with this approach. The important point to consider here is the last > word in your definition :

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread janhein . vanderburg
Op woensdag 18 februari 2015 10:36:37 UTC+1 schreef Chris Angelico: > I would actually look at it the other way: I'm aware of that, since you already warned me with "This is a fine forum to ask in. However, you may find that the advice you get isn't quite what you were asking for. In my case, ...

Re: Assigning a function to sys.excepthook doesn't work in WSGI

2015-02-18 Thread Alexander Sh
On Wednesday, February 18, 2015 at 7:52:19 PM UTC+3, Ian wrote: > > sys.excepthook is called just before the interpreter exits due to an > exception. In a mod_wsgi environment, having the interpreter exit just > because of an exception would be undesirable. I don't know exactly > what it's doing u

Re: Issues pip-installing pywin32

2015-02-18 Thread Terry Reedy
On 2/18/2015 7:13 AM, Chris Angelico wrote: (Before I begin, I want to make it clear that I can still go poke around on SourceForge and grab the appropriate installer [1], and that does work. But if I'm going to tell someone else how to set up this program, I'd much rather be able to recommend pi

Re: PythonMagick on Windows DLL load failed

2015-02-18 Thread Terry Reedy
On 2/16/2015 7:17 AM, julien levasseur wrote: I am using Python 2.7 on Windows 8.1. Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32 I *strongly* suggest that you update to 2.7.9. I installed ImageMagick from imagemagick.org

Re: What the Pythons docs means by "container" ?

2015-02-18 Thread Ian Kelly
On Wed, Feb 18, 2015 at 11:04 AM, MRAB wrote: > On 2015-02-18 02:14, candide wrote: >> >> Le mercredi 18 février 2015 01:50:16 UTC+1, Chris Angelico a écrit : >> >>> So, what's a container? It's a thing that you put other objects >>> into. >> >> >> I agree with this approach. The important point t

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Mark Lawrence
On 18/02/2015 17:30, Grant Edwards wrote: On 2015-02-18, Dave Angel wrote: On 02/18/2015 03:59 AM, janhein.vanderb...@gmail.com wrote: encoding individual integers optimally without any assumptions about their values. Contradiction in terms. Ah, that depends on whether the encoding has t

Re: What the Pythons docs means by "container" ?

2015-02-18 Thread MRAB
On 2015-02-18 02:14, candide wrote: Le mercredi 18 février 2015 01:50:16 UTC+1, Chris Angelico a écrit : So, what's a container? It's a thing that you put other objects into. I agree with this approach. The important point to consider here is the last word in your definition : "into". There i

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Grant Edwards
On 2015-02-18, Dave Angel wrote: > On 02/18/2015 03:59 AM, janhein.vanderb...@gmail.com wrote: > > >> encoding individual integers optimally without any assumptions about >> their values. > > Contradiction in terms. Ah, that depends on whether the encoding has to be lossless or not. For example:

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Mark Lawrence
On 18/02/2015 16:46, Dave Angel wrote: On 02/18/2015 03:59 AM, janhein.vanderb...@gmail.com wrote: encoding individual integers optimally without any assumptions about their values. Contradiction in terms. I'm just pleased to see new blood coming through for my dream team, it's been a b

Re: Noob Parsing question

2015-02-18 Thread kai . peters
> >> > Given > >> > > >> > data = > >> > '{[][]}' > >> > > >> > How can I efficiently get dictionaries for each of the data blocks > >> > framed by <> ? > >> > > >> > Thanks for any help > >> > >> The question here is: What _can't_ happen? For instance, what happens > >> if Fred's name contains

Re: Assigning a function to sys.excepthook doesn't work in WSGI

2015-02-18 Thread Ian Kelly
On Wed, Feb 18, 2015 at 8:08 AM, wrote: > I want to generate an html page with http response status '200 OK' in case of > an uncaught exception in my wsgi application, instead of web server's > standard '500 Internal Server Error' response for such case. To do so, I've > made the following sam

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Dave Angel
On 02/18/2015 03:59 AM, janhein.vanderb...@gmail.com wrote: encoding individual integers optimally without any assumptions about their values. Contradiction in terms. -- DaveA -- https://mail.python.org/mailman/listinfo/python-list

about gsoc 2015

2015-02-18 Thread Nadeesh Dilanga
Hi, I'm a Computer Science undergradute student who like to participate in GSOC this year. Do you have any projects willing to publish for gsoc 2015. I am more familiar with Python. -- https://mail.python.org/mailman/listinfo/python-list

Fwd: how to collect old tweets from 03-20 Aug, 2014 for a particular location

2015-02-18 Thread Md. Hasanuzzaman
Hello, I am a PhD student. I am new to python and using TwitterSearch to collect tweets from 03-20 Aug for a particular location (geocode). I am trying to run the following piece of code. twitter = Twython(CONSUMER_KEY,CONSUMER_SECRET,ACCESS_KEY,ACCESS_SECRET) results = twitter.cursor(twitter.sea

Assigning a function to sys.excepthook doesn't work in WSGI

2015-02-18 Thread tak . govoril
I want to generate an html page with http response status '200 OK' in case of an uncaught exception in my wsgi application, instead of web server's standard '500 Internal Server Error' response for such case. To do so, I've made the following sample code: import sys def application(environ, st

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Chris Angelico
On Thu, Feb 19, 2015 at 12:54 AM, Dave Angel wrote: >>> I've tried to read through the original algorithm description, but I'm >>> not entirely sure: How many payload bits per transmitted byte does it >>> actually achieve? >> >> >> I don't think that payload bits per byte makes sense in this conce

PythonMagick on Windows DLL load failed

2015-02-18 Thread julien levasseur
I am using Python 2.7 on Windows 8.1. Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32 I installed ImageMagick from imagemagick.org Then installed PythonMagick with pip from http://www.lfd.uci.edu/~g

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Dave Angel
On 02/18/2015 04:04 AM, janhein.vanderb...@gmail.com wrote: On Tuesday, February 17, 2015 at 3:35:16 PM UTC+1, Chris Angelico wrote: Oh, incidentally: If you want a decent binary format for variable-sized integer, check out the MIDI spec. I did some time ago, thanks, and it is indeed a decent

Logging with Custom Levels not working

2015-02-18 Thread Didymus
Greetings, I've been setting up a custom logging for a project here and got some great examples of code from stackoverflow. The only problem I'm having is that no matter what I set the log level too all the messages print out... Verbosity Level set to: 55 [PVERBOSE] Performance Verbose Leve

Re: sqlite3 and dates

2015-02-18 Thread Johannes Bauer
On 18.02.2015 13:14, Chris Angelico wrote: > On Wed, Feb 18, 2015 at 10:57 PM, Johannes Bauer wrote: >> SQLite and Postgres are so vastly different in their setup, >> configuration, capabilities and requirements that the original developer >> has to have done a MAJOR error in judgement so that a c

Re: sqlite3 and dates

2015-02-18 Thread Chris Angelico
On Wed, Feb 18, 2015 at 10:57 PM, Johannes Bauer wrote: > SQLite and Postgres are so vastly different in their setup, > configuration, capabilities and requirements that the original developer > has to have done a MAJOR error in judgement so that a change from one to > the other would not be ill-a

Issues pip-installing pywin32

2015-02-18 Thread Chris Angelico
(Before I begin, I want to make it clear that I can still go poke around on SourceForge and grab the appropriate installer [1], and that does work. But if I'm going to tell someone else how to set up this program, I'd much rather be able to recommend pip.) On a fresh Python 3.4 running on Windows

Dependencies from git aren't being installed? (setuptools, pip)

2015-02-18 Thread Samuel Marks
I'm sure I've just misconfigured my setup.py, requirements.txt and/or project structure, but I've tried: * install_requires * requirements.txt * install_requires + dependency_links With (for install_requires): * bettertutors_sql_models==dev * bettertutors_sql_models For requirements.txt, depende

Re: sqlite3 and dates

2015-02-18 Thread Johannes Bauer
On 18.02.2015 12:21, Chris Angelico wrote: > SQLite3 is fine for something that's basically just a more structured > version of a flat file. You assume that nobody but you has the file > open, and you manipulate it just the same as if it were a big fat blob > of JSON, but thanks to SQLite, you don

Re: sqlite3 and dates

2015-02-18 Thread Chris Angelico
On Wed, Feb 18, 2015 at 10:11 PM, Johannes Bauer wrote: > On 18.02.2015 08:05, Chris Angelico wrote: > >> But if you need more facilities than SQLite3 can offer, maybe it's >> time to move up to a full database server, instead of local files. >> Switching to PostgreSQL will give you all those kind

Re: sqlite3 and dates

2015-02-18 Thread Johannes Bauer
On 18.02.2015 08:05, Chris Angelico wrote: > But if you need more facilities than SQLite3 can offer, maybe it's > time to move up to a full database server, instead of local files. > Switching to PostgreSQL will give you all those kinds of features, > plus a lot of other things that I would have t

People hated it for the same reasons I found them cool (was: python implementation of a new integer encoding algorithm.)

2015-02-18 Thread Ben Finney
Laura Creighton writes: > So now you are sad. I was sad, too, but the sooner I learned this the > sooner I could stop wasting my time creating algorithms that provided > cool functionality that people hated for the same reasons I found them > cool. +1 QotW -- \“Human reason is sna

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Laura Creighton
Hi Jan. I'm an old fart. In the late 1970s, when I started programming these things, and memory was non-existant, we came up with all sorts of data compression algorithms which were absolutely necessary to get any work done whatsoever. Should you ever need an assembler programmer for quick and d

Re: sqlite3 and dates

2015-02-18 Thread Chris Angelico
On Wed, Feb 18, 2015 at 6:49 PM, Frank Millman wrote: > My accounting software supports three databases - MS Sql Server, PostgreSQL, > and sqlite3. > > sqlite3 is not suitable for 'heavy-duty' applications, but it is ideal for > demos and one-man businesses. Anyone can try out my software so long

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Chris Angelico
On Wed, Feb 18, 2015 at 7:55 PM, wrote: >> Take the >> easy option; you can always make things more complicated later. > That makes sense alright. > No offense, but I still believe that human readable text encoding complicates > things right now and shouldn't be tried until "my way" has proven u

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread janhein . vanderburg
On Tuesday, February 17, 2015 at 5:43:43 PM UTC+1, Paul Rubin wrote: > This is a reasonable place to ask specific python questions. The > algorithm description itself is pretty confusing though, and it seems to > address a problem that doesn't particularly seem to need a solution. > It's pretty t

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread janhein . vanderburg
On Tuesday, February 17, 2015 at 3:35:16 PM UTC+1, Chris Angelico wrote: > Oh, incidentally: If you want a decent binary format for > variable-sized integer, check out the MIDI spec. I did some time ago, thanks, and it is indeed a decent format. I also looked at variations of that approach. None o

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread janhein . vanderburg
On Tuesday, February 17, 2015 at 3:13:41 PM UTC+1, Dave Angel wrote: > This is a fine forum for such a discussion. I for one would love to > participate. However, note that it isn't necessary true that "the > smaller the better" is a good algorithm. In context, there are > frequently a number

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread janhein . vanderburg
On Tuesday, February 17, 2015 at 2:17:02 PM UTC+1, Chris Angelico wrote: > This is a fine forum to ask in. However, you may find that the advice > you get isn't quite what you were asking for. In my case, the advice > I'm offering is: Don't do this. Thanks Chris; let me explain why I want this. As

  1   2   >