ANN: kryptomime 0.1.3

2014-01-03 Thread Thomas Tanner
kryptomime 0.1.3 has been released. https://pypi.python.org/pypi/kryptomime/0.1.3 About kryptomime A package for encrypted MIME messages. It currently supports PGP/MIME via GnuPG. S/MIME support is planned for future releases. Disclaimer -- Proper kryptography

ANNOUNCE: wxPython 3.0.0.0

2014-01-03 Thread Robin Dunn
Announcing -- wxPython 3.0.0.0 (classic) has been released and is now available for download at http://wxpython.org/download.php. No new features but lots of bug fixes in wxWidgets and of course the bump (finally!) up to 3.0. Various binaries are available for 32-bit and 64-bit

isort - the automatic Python import sorter - version 3.0.0 released

2014-01-03 Thread timothy . crosley
isort v 3.0.0 released with the following major features: - Built-in support for editorconfig config files (http://editorconfig.org/) - Support for consistent syntax when adding or removing imports - Improved handling of files that a user doesn't have permission to read - The ability to separate

PyDev 3.2.0 Released

2014-01-03 Thread Fabio Zadrozny
Hi All, PyDev 3.2.0 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com LiClipse (PyDev standalone with goodies such as support for Django Templates, Mako Templates, Html, Javascript, etc): http://brainwy.github.io/liclipse/ Release

Re: On a scrollbar for tkinter

2014-01-03 Thread eneskristo
@Terry Quite sorry but had to write that message in a hurry, didn't notice the name. @Rick I found some solutions for python 2.x, but still, as I am with the future, I need a futuristic solution or 2, so if anyone else could help me, I'd be grateful! --

Re: Ifs and assignments

2014-01-03 Thread Terry Reedy
On 1/2/2014 8:20 PM, Mark Lawrence wrote: On 03/01/2014 00:57, Gary Herron wrote: On 01/02/2014 01:44 PM, John Allsup wrote: The point of my original post was that, whilst C's if( x = 2 ) { do something } and if( x == 2 ) { do something } are easy to confuse, and a source of bugs, having a

Debugging on the Mac question.

2014-01-03 Thread Sean Murphy
Team, I am a Vision Impaired programmer on the Mac and Window platforms. I have started to learn Python. The biggest road block I have is the ability of debugging my simple scripts. The IDLE program does not work with the screen readers I use on the Mac or Windows. A screen reader is a

Re: Blog about python 3

2014-01-03 Thread Terry Reedy
On 1/2/2014 11:49 PM, Steven D'Aprano wrote: Robin Becker wrote: For fairly sensible reasons we changed the internal default to use unicode rather than bytes. After doing all that and making the tests compatible etc etc I have a version which runs in both and passes all its tests. However, for

Re: Debugging on the Mac question.

2014-01-03 Thread Paul Rudin
Sean Murphy mhysnm1...@gmail.com writes: I am a Vision Impaired programmer on the Mac and Window platforms. I have started to learn Python. The biggest road block I have is the ability of debugging my simple scripts. The IDLE program does not work with the screen readers I use on the Mac or

Is Python really Lisp without parentheses? So would it be easy to *implement* a lot of Python in Scheme/Lisp?

2014-01-03 Thread Chris Seberino
I've heard it said, by no less a guru than Peter Norvig, that Python is a lot like Lisp without the parentheses at least for the basics of Python. For pedagogical reasons, I'm wondering if it would be easy to implement a big subset of Python in Scheme. The basics of Scheme or Lisp are

Re: Is Python really Lisp without parentheses? So would it be easy to *implement* a lot of Python in Scheme/Lisp?

2014-01-03 Thread Rustom Mody
On Fri, Jan 3, 2014 at 12:16 PM, Chris Seberino cseber...@gmail.com wrote: I've heard it said, by no less a guru than Peter Norvig, that Python is a lot like Lisp without the parentheses at least for the basics of Python. For pedagogical reasons, I'm wondering if it would be easy to

Re: Blog about python 3

2014-01-03 Thread wxjmfauth
It's time to understand the Character Encoding Models and the math behind it. Unicode does not differ from any other coding scheme. How? With a sheet of paper and a pencil. jmf -- https://mail.python.org/mailman/listinfo/python-list

Re: Blog about python 3

2014-01-03 Thread Chris Angelico
On Fri, Jan 3, 2014 at 9:10 PM, wxjmfa...@gmail.com wrote: It's time to understand the Character Encoding Models and the math behind it. Unicode does not differ from any other coding scheme. How? With a sheet of paper and a pencil. One plus one is two, therefore Python is better than

Re: Blog about python 3

2014-01-03 Thread Robin Becker
On 02/01/2014 18:25, David Hutto wrote: Just because it's 3.3 doesn't matter...the main interest is in compatibility. Secondly, you used just one piece of code, which could be a fluke, try others, and check the PEP. You need to realize that evebn the older versions are benig worked on, and they

Re: On a scrollbar for tkinter

2014-01-03 Thread Vlastimil Brom
2014/1/3 eneskri...@gmail.com: @Rick I found some solutions for python 2.x, but still, as I am with the future, I need a futuristic solution or 2, so if anyone else could help me, I'd be grateful! -- Hi, I usually don't use tkinter myself, hence others may have more idiomatic suggestions,

Re: Blog about python 3

2014-01-03 Thread Robin Becker
On 02/01/2014 18:37, Terry Reedy wrote: On 1/2/2014 12:36 PM, Robin Becker wrote: I just spent a large amount of effort porting reportlab to a version which works with both python2.7 and python3.3. I have a large number of functions etc which handle the conversions that differ between the two

Re: Blog about python 3

2014-01-03 Thread Robin Becker
On 02/01/2014 23:57, Antoine Pitrou wrote: .. Running a test suite is a completely broken benchmarking methodology. You should isolate workloads you are interested in and write a benchmark simulating them. I'm certain you're right, but individual bits of code like generating our

WebSocket for Python 2 and 3 on Twisted and asyncio

2014-01-03 Thread Tobias Oberstein
Hi, Autobahn provides open-source implementations of * The WebSocket Protocol * The Web Application Messaging Protocol (WAMP) https://github.com/tavendo/AutobahnPython https://pypi.python.org/pypi/autobahn Starting with the release 0.7.0, Autobahn now fully supports (with all features) both

pip's wheel support requires setuptools = 0.8 for dist-info support

2014-01-03 Thread seaders
I have a Jenkins server running Ubuntu which has been running perfectly fine for as long as I've been using it, and in one of the jobs, it runs a few things under the shiningpanda plugin (a python virtual environment wrapper). At some point today, or over the weekend, the job that uses it

Re: Blog about python 3

2014-01-03 Thread Robin Becker
On 03/01/2014 09:01, Terry Reedy wrote: There was more speedup in 3.3.2 and possibly even more in 3.3.3, so OP should run the latter. python 3.3.3 is what I use on windows. As for astral / non-bmp etc etc that's almost irrelevant for the sort of tests we're doing which are mostly simple

Re: Debugging on the Mac question.

2014-01-03 Thread Robert Kern
On 2014-01-03 04:17, Sean Murphy wrote: Team, I am a Vision Impaired programmer on the Mac and Window platforms. I have started to learn Python. The biggest road block I have is the ability of debugging my simple scripts. The IDLE program does not work with the screen readers I use on the

Re: Blog about python 3

2014-01-03 Thread Roy Smith
In article mailman.4850.1388752146.18130.python-l...@python.org, Robin Becker ro...@reportlab.com wrote: On 03/01/2014 09:01, Terry Reedy wrote: There was more speedup in 3.3.2 and possibly even more in 3.3.3, so OP should run the latter. python 3.3.3 is what I use on windows. As for

Creating a list with holes

2014-01-03 Thread Larry Martell
I think I know the answer is no, but is there any package that allows creating a list with holes in it? E.g. I'd want to do something like: x[10] = 12 x[20] = 30 I'm thinking of something like defaultdict but for lists (I know that's very different, but ... ) Thanks! -larry --

Re: Creating a list with holes

2014-01-03 Thread eneskristo
On Friday, January 3, 2014 4:19:09 PM UTC+1, larry@gmail.com wrote: I think I know the answer is no, but is there any package that allows creating a list with holes in it? E.g. I'd want to do something like: x[10] = 12 x[20] = 30 I'm thinking of something like defaultdict

Re: Creating a list with holes

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 2:19 AM, Larry Martell larry.mart...@gmail.com wrote: I think I know the answer is no, but is there any package that allows creating a list with holes in it? E.g. I'd want to do something like: x[10] = 12 x[20] = 30 I'm thinking of something like defaultdict but for

Re: Creating a list with holes

2014-01-03 Thread Roy Smith
In article mailman.4852.1388762356.18130.python-l...@python.org, Larry Martell larry.mart...@gmail.com wrote: I think I know the answer is no, but is there any package that allows creating a list with holes in it? E.g. I'd want to do something like: x[10] = 12 x[20] = 30 Whenever you ask,

Re: need to print seconds from the epoch including the millisecond

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 2:33 AM, Grant Edwards invalid@invalid.invalid wrote: time.time() returns a Python float. A Python float will have 16 digits of precision. Perhaps the OS always sets some of those digits to 0 (or even random values), but they're still there. Perhaps the accuracy or

Re: Creating a list with holes

2014-01-03 Thread Larry Martell
On Fri, Jan 3, 2014 at 10:30 AM, eneskri...@gmail.com wrote: On Friday, January 3, 2014 4:19:09 PM UTC+1, larry@gmail.com wrote: I think I know the answer is no, but is there any package that allows creating a list with holes in it? E.g. I'd want to do something like: x[10] = 12 x[20]

Re: need to print seconds from the epoch including the millisecond

2014-01-03 Thread Grant Edwards
On 2014-01-03, Dave Angel da...@davea.name wrote: On Thu, 2 Jan 2014 16:23:22 + (UTC), Grant Edwards invalid@invalid.invalid wrote: AFAIK, that's irrelevent. time.time() returns a float. On all the CPython implementations I know of, that is a 64-bit IEEE format, which provides 16

Re: Creating a list with holes

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 2:38 AM, Roy Smith r...@panix.com wrote: Why do you want holes? Is the issue that you're storing sparse data and don't want to waste memory on unused keys? If so, a dictionary should do you fine. Do you need to be able to read the values back out in a specific order?

Re: Blog about python 3

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 1:57 AM, Roy Smith r...@panix.com wrote: I was doing a project a while ago importing 20-something million records into a MySQL database. Little did I know that FOUR of those records contained astral characters (which MySQL, at least the version I was using, couldn't

Re: Creating a list with holes

2014-01-03 Thread Larry Martell
On Fri, Jan 3, 2014 at 10:37 AM, Chris Angelico ros...@gmail.com wrote: On Sat, Jan 4, 2014 at 2:19 AM, Larry Martell larry.mart...@gmail.com wrote: I think I know the answer is no, but is there any package that allows creating a list with holes in it? E.g. I'd want to do something like:

Re: Ifs and assignments

2014-01-03 Thread Duncan Booth
Chris Angelico ros...@gmail.com wrote: Maybe a for loop isn't the best other example, but I frequently work with places where I want to call some function and keep iterating with the result of that until it returns false: while (var = func()) { } In Python, that gets a lot

Re: Creating a list with holes

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 2:51 AM, Roy Smith r...@panix.com wrote: In article mailman.4853.1388763434.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Alternatively, if you expect to fill in most of the elements, it's possible you'd be happier working with a subclass of list

Re: Creating a list with holes

2014-01-03 Thread Roy Smith
In article mailman.4853.1388763434.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Alternatively, if you expect to fill in most of the elements, it's possible you'd be happier working with a subclass of list that auto-expands by filling in the spare space with a singleton

Re: Creating a list with holes

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 2:55 AM, Larry Martell larry.mart...@gmail.com wrote: The use case is that I'm parsing a XML file like this: Parameter Name=DefaultVersion Values Value DefaultTrue/Default /Value /Values

Re: Is Python really Lisp without parentheses? So would it be easy to *implement* a lot of Python in Scheme/Lisp?

2014-01-03 Thread Chris Seberino
Exceptions, modules, OOP, etc. would be tricky to implement in Scheme but at least the basics like for loops, while loops, assignment etc. would seem doable and very instructive for students.they would thereafter, for all time, have a mental image of what the Python interpreter is doing.

Re: Is Python really Lisp without parentheses? So would it be easy to *implement* a lot of Python in Scheme/Lisp?

2014-01-03 Thread Devin Jeanpierre
On Thu, Jan 2, 2014 at 10:46 PM, Chris Seberino cseber...@gmail.com wrote: I've heard it said, by no less a guru than Peter Norvig, that Python is a lot like Lisp without the parentheses at least for the basics of Python. There are plenty of non-superficial differences. Python has lexical

Re: Blog about python 3

2014-01-03 Thread Ethan Furman
On 01/03/2014 02:24 AM, Chris Angelico wrote: I worked that out with a sheet of paper and a pencil. The pencil was a little help, but the paper was three sheets in the wind. Beautiful! -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

Re: Is Python really Lisp without parentheses? So would it be easy to *implement* a lot of Python in Scheme/Lisp?

2014-01-03 Thread Chris Seberino
On Friday, January 3, 2014 11:10:07 AM UTC-6, Devin Jeanpierre wrote: A lecturer of mine back in university did this (implemented a subset of Python in Racket). My understanding is that this is primarily interesting to show that Racket is not as crazily different as it looks from the

Re: Is Python really Lisp without parentheses? So would it be easy to *implement* a lot of Python in Scheme/Lisp?

2014-01-03 Thread Roy Smith
In article mailman.4862.1388769050.18130.python-l...@python.org, Devin Jeanpierre jeanpierr...@gmail.com wrote: // C++ Foo x = y; x.bar = 3; // Java Foo x = y; x.bar = 3; // Scheme (define x y) (foo-bar x 3) The syntax of the first two is identical, so the uneducated would

Re: Python 2.x and 3.x usage survey

2014-01-03 Thread emile
On 01/02/2014 08:55 AM, Grant Edwards wrote: On 2013-12-31, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: You laugh, but there was at least one attendee at the last PyCon who was still using 1.5 professionally. Software never quite dies so long as there is hardware capable of

Re: Is Python really Lisp without parentheses? So would it be easy to *implement* a lot of Python in Scheme/Lisp?

2014-01-03 Thread Rustom Mody
On Fri, Jan 3, 2014 at 10:20 PM, Chris Seberino cseber...@gmail.com wrote: Exceptions, modules, OOP, etc. would be tricky to implement in Scheme but at least the basics like for loops, while loops, assignment etc. would seem doable and very instructive for students.they would thereafter,

Re: Creating a list with holes

2014-01-03 Thread Denis McMahon
On Fri, 03 Jan 2014 10:41:21 -0500, Larry Martell wrote: The holes would be between the items I put in. In my example above, if I assigned to [10] and [20], then the other items ([0..9] and [11..19]) would have None. dic = { 10:6, 20:11} dic.get(10) 6 dic.get(14) dic.get(27,oh god there's

Re: Is Python really Lisp without parentheses? So would it be easy to *implement* a lot of Python in Scheme/Lisp?

2014-01-03 Thread Devin Jeanpierre
On Fri, Jan 3, 2014 at 9:26 AM, Chris Seberino cseber...@gmail.com wrote: On Friday, January 3, 2014 11:10:07 AM UTC-6, Devin Jeanpierre wrote: A lecturer of mine back in university did this (implemented a subset of Python in Racket). My understanding is that this is primarily interesting to

The Economic System of Islam

2014-01-03 Thread BV BV
The Economic System of Islam 1-An introduction to the principles Islam has legislated to guide the economic system of society. Part 1: The sources from which the laws that guide economical activity are derived. 2-The Ideological Basis of Economic Activity and the general principles by which

Re: About some problem

2014-01-03 Thread André Malo
* Steven D'Aprano wrote: Mark Lawrence wrote: raise Not Valid DB Type is perfectly valid in Python 2. Actually, no it isn't. It's only valid up to Python 2.4. In Python 2.5, string exceptions display a warning but continue to work, and in Python 2.6 they generate a compile-time

Re: Is Python really Lisp without parentheses? So would it be easy to *implement* a lot of Python in Scheme/Lisp?

2014-01-03 Thread Steven D'Aprano
Chris Seberino wrote: The basics of Scheme or Lisp are amazingly easy to implement. Would implementing a subset of Python in a Scheme subset be a clever way to easily implement a lot of Python? I don't know how easy it was, but it was done: http://common-lisp.net/project/clpython/ --

Python 2.x vs 3.x survey

2014-01-03 Thread Dan Stromberg
The results of the survey are at: https://wiki.python.org/moin/2.x-vs-3.x-survey -- https://mail.python.org/mailman/listinfo/python-list

Re: About some problem

2014-01-03 Thread Steven D'Aprano
André Malo wrote: * Steven D'Aprano wrote: Mark Lawrence wrote: raise Not Valid DB Type is perfectly valid in Python 2. Actually, no it isn't. It's only valid up to Python 2.4. In Python 2.5, string exceptions display a warning but continue to work, and in Python 2.6 they generate

Re: Debugging on the Mac question.

2014-01-03 Thread Sean Murphy
PETER, thanks Peter, I have already found the PDB module and have had a play with it. It will do for now. On 03/01/2014, at 8:08 PM, Paul Rudin paul.nos...@rudin.co.uk wrote: Sean Murphy mhysnm1...@gmail.com writes: I am a Vision Impaired programmer on the Mac and Window platforms. I have

Re: About some problem

2014-01-03 Thread Ethan Furman
On 01/03/2014 12:55 PM, Steven D'Aprano wrote: André Malo wrote: * Steven D'Aprano wrote: Mark Lawrence wrote: raise Not Valid DB Type is perfectly valid in Python 2. Actually, no it isn't. It's only valid up to Python 2.4. In Python 2.5, string exceptions display a warning but continue

Re: Blog about python 3

2014-01-03 Thread Terry Reedy
On 1/3/2014 7:28 AM, Robin Becker wrote: On 03/01/2014 09:01, Terry Reedy wrote: There was more speedup in 3.3.2 and possibly even more in 3.3.3, so OP should run the latter. python 3.3.3 is what I use on windows. As for astral / non-bmp etc etc that's almost irrelevant for the sort of tests

[newbie] Recursive algorithm - review

2014-01-03 Thread Wiktor
Hi, it's my first post on this newsgroup so welcome everyone. :) I'm still learning Python (v3.3), and today I had idea to design (my first) recursive function, that generates board to 'Towers' Puzzle: http://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/towers.html (so I could in future write

Re: Creating a list with holes

2014-01-03 Thread Larry Martell
On Fri, Jan 3, 2014 at 1:07 PM, Denis McMahon denismfmcma...@gmail.com wrote: On Fri, 03 Jan 2014 10:41:21 -0500, Larry Martell wrote: The holes would be between the items I put in. In my example above, if I assigned to [10] and [20], then the other items ([0..9] and [11..19]) would have

Re: Creating a list with holes

2014-01-03 Thread Larry Martell
On Fri, Jan 3, 2014 at 11:07 AM, Chris Angelico ros...@gmail.com wrote: On Sat, Jan 4, 2014 at 2:55 AM, Larry Martell larry.mart...@gmail.com wrote: The use case is that I'm parsing a XML file like this: Parameter Name=DefaultVersion Values Value

[newbie] Recursive algorithm - review

2014-01-03 Thread Wiktor
Hi, it's my first post on this newsgroup so welcome everyone. :) I'm still learning Python (v3.3), and today I had idea to design (my first) recursive function, that generates (filled out) board to 'Towers' Puzzle: http://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/towers.html (so I could

Re: Creating a list with holes

2014-01-03 Thread Roy Smith
In article mailman.4871.1388794533.18130.python-l...@python.org, Larry Martell larry.mart...@gmail.com wrote: Thanks, but I know all that about dicts. I need to use a list for compatibility with existing code. Generalizing what I think the situation is, A dict is the best data structure

Re: Creating a list with holes

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 11:18 AM, Larry Martell larry.mart...@gmail.com wrote: Your last suggestion is what I ended up doing, but I had to key off the Values /Values unit - I couldn't use Value because that isn't present for ones that have no Current - that messed me up for hours. But it's

Re: [newbie] Recursive algorithm - review

2014-01-03 Thread Terry Reedy
On 1/3/2014 7:16 PM, Wiktor wrote: Hi, it's my first post on this newsgroup so welcome everyone. :) I'm still learning Python (v3.3), and today I had idea to design (my first) recursive function, that generates (filled out) board to 'Towers' Puzzle:

Re: [newbie] Recursive algorithm - review

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 11:13 AM, Wiktor look@signature.invalid wrote: Hi, it's my first post on this newsgroup so welcome everyone. :) Hi! Welcome! I'm still learning Python (v3.3), and today I had idea to design (my first) recursive function, that generates board to 'Towers' Puzzle:

Re: Creating a list with holes

2014-01-03 Thread Denis McMahon
On Fri, 03 Jan 2014 20:18:06 -0500, Roy Smith wrote: In article mailman.4871.1388794533.18130.python-l...@python.org, Larry Martell larry.mart...@gmail.com wrote: Thanks, but I know all that about dicts. I need to use a list for compatibility with existing code. Generalizing what I

How to make a tkinter GUI work on top of a CUI program?

2014-01-03 Thread Beinan Li
I know how to make a GUI program work on top of a console program like ls, which exits immediately. But some console programs have their own shell or ncurse-like CUI, such as cscope. So I figured that I need to first subprocess.popen a bidirectional pipe and send command through stdin and get

Re: How to make a tkinter GUI work on top of a CUI program?

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 1:44 PM, Beinan Li li.bei...@gmail.com wrote: But some console programs have their own shell or ncurse-like CUI, such as cscope. So I figured that I need to first subprocess.popen a bidirectional pipe and send command through stdin and get results from stdout and stderr.

Re: Creating a list with holes

2014-01-03 Thread Dan Stromberg
On Fri, Jan 3, 2014 at 7:37 AM, Chris Angelico ros...@gmail.com wrote: Depending on what exactly you need, it's probably worth just using a dict. In what ways do you need it to function as a list? You can always iterate over sorted(some_dict.keys()) if you need to run through them in order.

Re: Creating a list with holes

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 1:58 PM, Dan Stromberg drsali...@gmail.com wrote: On Fri, Jan 3, 2014 at 7:37 AM, Chris Angelico ros...@gmail.com wrote: Depending on what exactly you need, it's probably worth just using a dict. In what ways do you need it to function as a list? You can always iterate

Re: Creating a list with holes

2014-01-03 Thread Dan Stromberg
On Fri, Jan 3, 2014 at 7:00 PM, Chris Angelico ros...@gmail.com wrote: On Sat, Jan 4, 2014 at 1:58 PM, Dan Stromberg drsali...@gmail.com wrote: On Fri, Jan 3, 2014 at 7:37 AM, Chris Angelico ros...@gmail.com wrote: Depending on what exactly you need, it's probably worth just using a dict. In

Re: Creating a list with holes

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 2:32 PM, Dan Stromberg drsali...@gmail.com wrote: That is fine, sorting once at then end of a script is a good use of sorted(some_dict.keys()). However, it probably should be pointed out that this, while similar, is not so good: for thing in range(n): for key in

Re: Blog about python 3

2014-01-03 Thread Mark Lawrence
On 03/01/2014 22:00, Terry Reedy wrote: On 1/3/2014 7:28 AM, Robin Becker wrote: On 03/01/2014 09:01, Terry Reedy wrote: There was more speedup in 3.3.2 and possibly even more in 3.3.3, so OP should run the latter. python 3.3.3 is what I use on windows. As for astral / non-bmp etc etc that's

Re: Suggest an open-source log analyser?

2014-01-03 Thread Alec Taylor
Web interface (and/or SQL-like query interface); is useful for drilling down and rolling up multiparametric analyses. Currently looking at logstash, kibana, graylog2 and a few others. Might end up writing my own to escape the Java dependency. Would welcome further suggestions. On Fri, Jan 3,

Highest performance HTTP REST microframework?

2014-01-03 Thread Alec Taylor
What is the highest performance REST microframework? Happy if it's mostly written in C or C++; as long as it provides a simple routes interface in Python. Currently using bottle and utilising its application, @route and app.merge(app2) extra features. --

Strange behaviour with a for loop.

2014-01-03 Thread Sean Murphy
Hello all. This is a newly question. But I wish to understand why the below code is providing different results. import os, sys if len(sys.argv) 2: filenames = sys.argv[1:] else print (no parameters provided\n) sys.edit() for filename in filenames: print (filename is: %s\n

Re: Strange behaviour with a for loop.

2014-01-03 Thread Larry Martell
On Fri, Jan 3, 2014 at 11:03 PM, Sean Murphy mhysnq1...@icloud.com wrote: Hello all. This is a newly question. But I wish to understand why the below code is providing different results. import os, sys if len(sys.argv) 2: filenames = sys.argv[1:] else print (no parameters

Re: Strange behaviour with a for loop.

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 3:03 PM, Sean Murphy mhysnq1...@icloud.com wrote: filenames = sys.argv[1:] for filename in filenames: print (filename is: %s\n %filename) versus filenames = sys.argv[1] for filename in filenames: print (filename is: %s\n % filename) The first one is

Re: Highest performance HTTP REST microframework?

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 3:26 PM, Alec Taylor alec.tayl...@gmail.com wrote: What is the highest performance REST microframework? Happy if it's mostly written in C or C++; as long as it provides a simple routes interface in Python. Currently using bottle and utilising its application, @route

Re: Strange behaviour with a for loop.

2014-01-03 Thread Mark Lawrence
On 04/01/2014 04:03, Sean Murphy wrote: Hello all. This is a newly question. But I wish to understand why the below code is providing different results. import os, sys if len(sys.argv) 2: filenames = sys.argv[1:] else print (no parameters provided\n) sys.edit() for filename in

Re: How to make a tkinter GUI work on top of a CUI program?

2014-01-03 Thread Jerry Hill
On Fri, Jan 3, 2014 at 9:44 PM, Beinan Li li.bei...@gmail.com wrote: But some console programs have their own shell or ncurse-like CUI, such as cscope. So I figured that I need to first subprocess.popen a bidirectional pipe and send command through stdin and get results from stdout and stderr.

Re: Suggest an open-source log analyser?

2014-01-03 Thread Walter Hurry
On Thu, 02 Jan 2014 16:40:19 +1100, Alec Taylor wrote: I use the Python logger class; with the example syntax of: Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') Can of course easily use e.g.: a JSON syntax here instead. Are there any open-source log viewers (e.g.:

Re: Creating a list with holes

2014-01-03 Thread Frank Millman
Larry Martell larry.mart...@gmail.com wrote in message news:CACwCsY5P47-dB1NLQTUTQ=0aF6B+-M3y4hCxcUGmcVmHM8=-x...@mail.gmail.com... I think I know the answer is no, but is there any package that allows creating a list with holes in it? E.g. I'd want to do something like: x[10] = 12 x[20] =

Re: Blog about python 3

2014-01-03 Thread Mark Lawrence
On 02/01/2014 17:36, Robin Becker wrote: On 31/12/2013 15:41, Roy Smith wrote: I'm using 2.7 in production. I realize that at some point we'll need to upgrade to 3.x. We'll keep putting that off as long as the effort + dependencies + risk metric exceeds the perceived added value metric. We

Re: Strange behaviour with a for loop.

2014-01-03 Thread Sean Murphy
Thanks everyone. Mark thanks for the correction on the ':'. Since I didn't cut and copy, rather typed it out. Errors crept in. :-) another question in relation to slicing strings. If you want to get a single character, just using the index position will get it. If I use the following,

Re: Strange behaviour with a for loop.

2014-01-03 Thread Sean Murphy
Hi everyone. Worked out what I was doing wrong with the string splicing. The offset number was lower then the index number, so it was failing. E.G: On 04/01/2014, at 4:54 PM, Sean Murphy mhysnm1...@gmail.com wrote: Thanks everyone. Mark thanks for the correction on the ':'. Since I

Re: Strange behaviour with a for loop.

2014-01-03 Thread Chris Angelico
On Sat, Jan 4, 2014 at 5:32 PM, Sean Murphy mhysnm1...@gmail.com wrote: So I suspect the offset number still starts at the beginning of the string and counts forward or another way to look at it you are slicing from element x to element y. If element y is less then element x, return nothing.

Re: Strange behaviour with a for loop.

2014-01-03 Thread Cameron Simpson
On 04Jan2014 16:54, Sean Murphy mhysnm1...@gmail.com wrote: Thanks everyone. Mark thanks for the correction on the ':'. Since I didn't cut and copy, rather typed it out. Errors crept in. :-) another question in relation to slicing strings. If you want to get a single character, just

[issue19944] Make importlib.find_spec load packages as needed

2014-01-03 Thread Eric Snow
Eric Snow added the comment: find_spec() is at package level because find_module() is and for no other good reason I'm aware of. I'd be just fine with moving it to util. I don't expect it to be used enough to warrant that top-level placement. Regarding builtins.__import__(), I'm using it in

[issue19713] Deprecate various things in importlib thanks to PEP 451

2014-01-03 Thread Eric Snow
Eric Snow added the comment: Here's a patch that updates a couple files to not use find_module/load_module. These are the only changes like this (of consequence) outside pydoc, pkgutil, and importlib, which are covered by other tickets. -- Added file:

[issue19708] Check pkgutil for anything missing for PEP 451

2014-01-03 Thread Eric Snow
New submission from Eric Snow: Here's a patch that does the minimum of updating pkgutil and its tests to move away from find_module/load_module. I'm not sure there is much more to do than this. -- keywords: +patch Added file:

[issue19703] Update pydoc to PEP 451

2014-01-03 Thread Eric Snow
Eric Snow added the comment: Here's a patch that updates pydoc to move away from find_module/load_module. These 4 don't need to change for PEP 451: safeimport() HTMLDoc.docmodule() HTMLDoc.index() TextDoc.docmodule() -- keywords: +patch Added file:

[issue19699] Update zipimport for PEP 451

2014-01-03 Thread Eric Snow
Eric Snow added the comment: Could this wait for 3.5? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19699 ___ ___ Python-bugs-list mailing list

[issue16039] imaplib: unlimited readline() from connection

2014-01-03 Thread STINNER Victor
STINNER Victor added the comment: Why is this issue still open? The issue was fixed in Python 2.6.9. Why is the issue a release blocker? The issue was also fixed in the future Python 3.4 (in default). -- nosy: +haypo ___ Python tracker

[issue19699] Update zipimport for PEP 451

2014-01-03 Thread Nick Coghlan
Nick Coghlan added the comment: I don't see any problem with postponing the zipimport updates until 3.5 (we won't be updating the extension module handling until then anyway, since that requires C API additions). -- ___ Python tracker

[issue20113] os.readv() and os.writev() don't raise an OSError on readv()/writev() failure

2014-01-03 Thread STINNER Victor
New submission from STINNER Victor: Example: $ python3 Python 3.3.2 (default, Nov 8 2013, 13:38:57) [GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux Type help, copyright, credits or license for more information. import os os.fstat(19) Traceback (most recent call last): File stdin, line 1,

[issue20113] os.readv() and os.writev() don't raise an OSError on readv()/writev() failure

2014-01-03 Thread STINNER Victor
STINNER Victor added the comment: os.readv() and os.writev() were added in Python 3.3 with the issue #10812. -- keywords: +patch nosy: +serhiy.storchaka Added file: http://bugs.python.org/file33303/readv_writev.patch ___ Python tracker

[issue18294] zlib module is not completly 64-bit safe

2014-01-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0cca6c5513d2 by Victor Stinner in branch 'default': Issue #18294: Fix uint_converter() in zlibmodule.c, fix the UINT_MAX check http://hg.python.org/cpython/rev/0cca6c5513d2 -- ___ Python tracker

[issue20114] Sporadic failure of test_semaphore_tracker() of test_multiprocessing_forkserver on FreeBSD 9 buildbot

2014-01-03 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/6085/steps/test/logs/stdio == FAIL: test_semaphore_tracker

[issue16039] imaplib: unlimited readline() from connection

2014-01-03 Thread R. David Murray
R. David Murray added the comment: Presumably because it has not been fixed in 2.7. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16039 ___

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2014-01-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52350d325b41 by Martin v. Löwis in branch 'default': * Issue #16113: Remove sha3 module again. http://hg.python.org/cpython/rev/52350d325b41 -- ___ Python tracker rep...@bugs.python.org

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2014-01-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: I have now removed the aha code. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16113 ___

[issue20113] os.readv() and os.writev() don't raise an OSError on readv()/writev() failure

2014-01-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20113 ___ ___ Python-bugs-list

[issue16039] imaplib: unlimited readline() from connection

2014-01-03 Thread STINNER Victor
STINNER Victor added the comment: Since the merge 2.6 - 2.7 did not apply cleanly, and had other problems. I null merged the 2.6 changes. I'll leave it to Benjamin to work out whatever patches 2.7 needs. So Benjamin, is there a reason to not fix this security vulnerability in Python 2.7?

  1   2   >