Re: my new project, is this the right way?

2011-11-27 Thread 88888 Dihedral
On Sunday, November 27, 2011 12:03:26 PM UTC+8, Matt Joiner wrote: > Sounds like you want a key-value store. If it's a lot of data, you may > still want a "database", I think it's just relational databases that > you're trying to avoid? > > On Sun, Nov 27, 2011 at 10:41 AM, 8 Dihedral > wrote

Re: my new project, is this the right way?

2011-11-27 Thread 88888 Dihedral
On Sunday, November 27, 2011 4:29:52 PM UTC+8, 8 Dihedral wrote: > On Sunday, November 27, 2011 12:03:26 PM UTC+8, Matt Joiner wrote: > > Sounds like you want a key-value store. If it's a lot of data, you may > > still want a "database", I think it's just relational databases that > > you're tr

Re: sick of distribute, setup, and all the rest...

2011-11-27 Thread Matt Joiner
Agreed. I recently gave Haskell a go, and it was remarkable how similar the package management is to Python's. How well does the new "packaging" (set for release in Python 3.3?) module deal with the problems? With a better package management system, the half of the standard library that nobody us

Re: Return of an old friend

2011-11-27 Thread Matt Joiner
On Sun, Nov 27, 2011 at 4:38 AM, Chris Angelico wrote: > On Sun, Nov 27, 2011 at 4:11 AM, rusi wrote: >> Hi Rick! >> Glad to see you back! >> [Courts can be dull places without jesters ye-know!] > > So, what... you'd take someone to court for being funny? That sounds > like the -other- Pythons. >

why is bytearray treated so inefficiently by pickle?

2011-11-27 Thread Irmen de Jong
Hi, A bytearray is pickled (using max protocol) as follows: >>> pickletools.dis(pickle.dumps(bytearray([255]*10),2)) 0: \x80 PROTO 2 2: cGLOBAL '__builtin__ bytearray' 25: qBINPUT 0 27: XBINUNICODE u'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' 52: qBINP

Buy Google AdWords Vouchers & Coupons

2011-11-27 Thread Horace Quinn
Hi Friends, Do You Need Google AdWords Vouchers. You Can Get All Coupons Of $100, $75, $50 Credit. Just Visit http://buyadwordsvoucher.tk/ To Get Them. You Will Receive Coupon With In 12 Hrs 100%. Thankyou & Good Luck In Google AdWords. adwords voucher, adwords coupon, buy adwords voucher, bu

hii

2011-11-27 Thread Horace Quinn
okk -- http://mail.python.org/mailman/listinfo/python-list

Buy Google AdWords Vouchers & Coupons

2011-11-27 Thread Horace Quinn
Hi Friends, Do You Need Google AdWords Vouchers. You Can Get All Coupons Of $100, $75, $50 Credit. Just Visit http://buyadwordsvoucher.tk/ To Get Them. You Will Receive Coupon With In 12 Hrs 100%. Thankyou & Good Luck In Google AdWords. adwords voucher, adwords coupon, buy adwords voucher, bu

[ANN] Android Debug Bridge (ADB) Scripting Language For Android (SL4A) convenience library

2011-11-27 Thread Stef Mientki
hello, The information on ADB / SL4A is quiet overwhelming. Despite that, especially for people, not familiar with Linux, it's not an easy task to get their first program running. This library allows you to easy upload and run Python files on a Android device, without pressing any button on the

Re: suitability of python

2011-11-27 Thread Grant Edwards
On 2011-11-24, Rudra Banerjee wrote: > I am a newbie in python and basically i use python for postprocessing > like plotting, data manipulation etc. > Based on ease of programming on python I am wondering if I can consider > it for the main development as well. My jobs (written on fortran) runs >

Re: suitability of python

2011-11-27 Thread Stefan Behnel
Rudra Banerjee, 24.11.2011 12:31: I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if I can consider it for the main development as well. My jobs (written on fortran) runs for weeks an

lxml precaching DTD for document verification.

2011-11-27 Thread Gelonida N
Hi, I'd like to verify some (x)html / / html5 / xml documents from a server. These documents have a very limited number of different doc types / DTDs. So what I would like to do is to build a small DTD cache and some code, that would avoid searching the DTDs over and over from the net. What wou

Re: lxml precaching DTD for document verification.

2011-11-27 Thread Roy Smith
In article , Gelonida N wrote: > I'd like to verify some (x)html / / html5 / xml documents from a server. I'm sure you could roll your own validator with lxml and some DTDs, but you would probably save yourself a huge amount of effort by just using the validator the W3C provides (http://vali

Re: lxml precaching DTD for document verification.

2011-11-27 Thread John Gordon
In Roy Smith writes: > In article , > Gelonida N wrote: > > > I'd like to verify some (x)html / / html5 / xml documents from a server. > I'm sure you could roll your own validator with lxml and some DTDs, but > you would probably save yourself a huge amount of effort by just using > the v

Re: sick of distribute, setup, and all the rest...

2011-11-27 Thread Cameron Simpson
On 27Nov2011 23:54, Matt Joiner wrote: | Agreed. I recently gave Haskell a go, and it was remarkable how | similar the package management is to Python's. | | How well does the new "packaging" (set for release in Python 3.3?) | module deal with the problems? | | With a better package management s

Re: Using the Python Interpreter as a Reference

2011-11-27 Thread Travis Parks
On Nov 26, 1:53 pm, Rick Johnson wrote: > On Nov 20, 6:46 pm, Travis Parks wrote: > > > Hello: > > > I am currently working on designing a new programming language. It is > > a compiled language, but I still want to use Python as a reference. > > Python has a lot of similarities to my language, s

Re: Using the Python Interpreter as a Reference

2011-11-27 Thread Colin Higwell
On Sun, 27 Nov 2011 14:21:01 -0800, Travis Parks wrote: > On Nov 26, 1:53 pm, Rick Johnson wrote: >> On Nov 20, 6:46 pm, Travis Parks wrote: >> >> > Hello: >> >> > I am currently working on designing a new programming language. It is >> > a compiled language, but I still want to use Python as a

Re: Using the Python Interpreter as a Reference

2011-11-27 Thread Steven D'Aprano
On Sun, 27 Nov 2011 14:21:01 -0800, Travis Parks wrote: > Personally, I find a lot of good things in Python. I thinking tabs are > out-of-date. Even the MAKE community wishes that the need for tabs would > go away and many implementations have done just that. Tabs have every theoretical advantage

Re: Using the Python Interpreter as a Reference

2011-11-27 Thread Chris Angelico
On Mon, Nov 28, 2011 at 10:55 AM, Steven D'Aprano wrote: > What does it mean to say that a language is "small"? > > A Turing Machine is a pretty small language, with only a few > instructions: step forward, step backwards, erase a cell, write a cell, > branch on the state of the cell. And yet anyt

Re: lxml precaching DTD for document verification.

2011-11-27 Thread Gelonida N
On 11/27/2011 10:33 PM, John Gordon wrote: > In Roy Smith > writes: > >> In article , >> Gelonida N wrote: >> >>> I'd like to verify some (x)html / / html5 / xml documents from a server. > >> I'm sure you could roll your own validator with lxml and some DTDs, but >> you would probably sav

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-27 Thread DevPlayer
On Nov 15, 10:38 pm, goldtech wrote: > Hi, > > Using Windows. Is there a python shell that has a history of typed in > commands? > > I don't need output of commands just what I typed it. I need it to > save between sessions - something that no shell seems to do. If I > reboot there will still be a

Re: why is bytearray treated so inefficiently by pickle?

2011-11-27 Thread Terry Reedy
On 11/27/2011 9:33 AM, Irmen de Jong wrote: Hi, A bytearray is pickled (using max protocol) as follows: pickletools.dis(pickle.dumps(bytearray([255]*10),2)) 0: \x80 PROTO 2 2: cGLOBAL '__builtin__ bytearray' 25: qBINPUT 0 27: XBINUNICODE u'\xff\xff\x

Proper way to delete/kill a logger?

2011-11-27 Thread cassiope
I've been trying to migrate some code to using the standard python logging classes/objects. And they seem quite capable of doing what I need them to do. Unfortunately there's a problem in my unit tests. It's fairly common to have to create quite a few entities in the course of a series of tests.

Re: sick of distribute, setup, and all the rest...

2011-11-27 Thread rusi
On Nov 28, 2:46 am, Cameron Simpson wrote: > On 27Nov2011 23:54, Matt Joiner wrote: > | Agreed. I recently gave Haskell a go, and it was remarkable how > | similar the package management is to Python's. > | > | How well does the new "packaging" (set for release in Python 3.3?) > | module deal wit

RE: Automatic import of submodules

2011-11-27 Thread Shambhu Rajak
-Original Message- From: Massi [mailto:massi_...@msn.com] Sent: 25/11/2011 6:30 PM To: python-list@python.org Subject: Automatic import of submodules Hi everyone, in my project I have the following directory structure: plugins | -- wav_plug | -- __init__.py

Re: sick of distribute, setup, and all the rest...

2011-11-27 Thread Roy Smith
In article <46c11371-411a-4ba0-89b9-967e2f83e...@k5g2000pre.googlegroups.com>, rusi wrote: > If the linguistic features were all that mattered Lisp would be the > king of languages today (that (is (one (of (the (most (absurd (statements (I've (read (in (a (long (time)) -- http://

Re: sick of distribute, setup, and all the rest...

2011-11-27 Thread alex23
rusi wrote: > While Ive never seen anything as ridiculous as the debian-rails in the > python world, its still always a hobson choice:  use a deb package > that will cleanly install, deinstall, upgrade etc but is out of date > or use a fresh and shiny egg that messes up the system. The only time

Re: sick of distribute, setup, and all the rest...

2011-11-27 Thread rusi
On Nov 28, 9:37 am, alex23 wrote: > With that approach in mind, I've never had any real issues using pip, > virtualenv etc for managing my development environment. Yes that is in a way my point also: we discuss (things like) pip, virtualenv etc too little. Try working out the ratio of the numbe

Re: lxml precaching DTD for document verification.

2011-11-27 Thread Stefan Behnel
Gelonida N, 27.11.2011 18:57: I'd like to verify some (x)html / / html5 / xml documents from a server. These documents have a very limited number of different doc types / DTDs. So what I would like to do is to build a small DTD cache and some code, that would avoid searching the DTDs over and o