docutils release 0.11 out

2013-07-24 Thread engelbert gruber
hello , I finally got around to release, PLEASE report anything failings to me. summary of changes since 0.10 * General - Apply [ 2714873 ] Fix for the overwritting of document attributes. - Support embedded aliases within hyperlink references. - Fix [ 228 ] try local import of docutils

Re: Python 3: dict dict.keys()

2013-07-24 Thread Peter Otten
Ethan Furman wrote: So, my question boils down to: in Python 3 how is dict.keys() different from dict? What are the use cases? I just grepped through /usr/lib/python3, and could not identify a single line where some_object.keys() wasn't either wrapped in a list (or set, sorted, max) call,

Re: Strange behaviour with os.linesep

2013-07-24 Thread Vincent Vande Vyvre
Le 23/07/2013 17:25, Steven D'Aprano a écrit : On Tue, 23 Jul 2013 13:42:13 +0200, Vincent Vande Vyvre wrote: On Windows a script where de endline are the system line sep, the files are open with a double line in Eric4, Notepad++ or Gedit but they are correctly displayed in the MS Bloc-Notes.

Re: Strange behaviour with os.linesep

2013-07-24 Thread Chris Angelico
On Wed, Jul 24, 2013 at 5:02 PM, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: In fact, in my code, the original file is open in binary mode, the line separator is translate to \n and it is parsed by the module tokenise. I'm not a Windows user but my code must be run also on Win, this

i want to run user specific cronjobs so where to specify user in ubuntu?

2013-07-24 Thread navnathgadakh
-- http://mail.python.org/mailman/listinfo/python-list

Re: i want to run user specific cronjobs so where to specify user in ubuntu?

2013-07-24 Thread Chris Angelico
On Wed, Jul 24, 2013 at 5:47 PM, navnathgad...@gmail.com wrote: -- http://mail.python.org/mailman/listinfo/python-list Not a Python question. I'm sure Google can help you with this one - just take three words from your question, 'user specific cronjobs', and you'll get plenty of advice.

Contact information for Jim Hugunin?

2013-07-24 Thread Larry Hastings
Does anybody have an email address (or anything, really) for Jim Hugunin? He left Google in May and appears to have dropped off the face of the internet. Please email me privately. I swear I will use the information only for good and never for evil, //arry/ --

Re: Contact information for Jim Hugunin?

2013-07-24 Thread Albert Hopkins
On Mon, Jul 22, 2013, at 05:33 PM, Larry Hastings wrote: Does anybody have an email address (or anything, really) for Jim Hugunin? He left Google in May and appears to have dropped off the face of the internet. Please email me privately. I swear I will use the information only for

Re: how: embed + extend to control my running app?

2013-07-24 Thread Gregory Ewing
David M. Cotter wrote: For Mac, I understand i need to create (?) a python.dylib, If your Python was installed as a framework, you should already have one. Just link your application with -framework Python. Now for Windows: same thing, i think i must create a .dll, right? Again, you should

Re: Python 3: dict dict.keys()

2013-07-24 Thread Oscar Benjamin
On Jul 24, 2013 7:25 AM, Peter Otten __pete...@web.de wrote: Ethan Furman wrote: So, my question boils down to: in Python 3 how is dict.keys() different from dict? What are the use cases? I just grepped through /usr/lib/python3, and could not identify a single line where

Re: Python 3: dict dict.keys()

2013-07-24 Thread Neil Cerutti
On 2013-07-24, Peter Otten __pete...@web.de wrote: So, my question boils down to: in Python 3 how is dict.keys() different from dict? What are the use cases? I just grepped through /usr/lib/python3, and could not identify a single line where some_object.keys() wasn't either wrapped in a

Re: Python 3: dict dict.keys()

2013-07-24 Thread Peter Otten
Oscar Benjamin wrote: On Jul 24, 2013 7:25 AM, Peter Otten __pete...@web.de wrote: Ethan Furman wrote: So, my question boils down to: in Python 3 how is dict.keys() different from dict? What are the use cases? I just grepped through /usr/lib/python3, and could not identify a single

Re: hex dump w/ or w/out utf-8 chars

2013-07-24 Thread wxjmfauth
I do not find the thread, where a Python core dev spoke about French, so I'm putting here. This stupid Flexible String Representation splits Unicode in chunks and one of these chunks is latin-1 (iso-8859-1). If we consider that latin-1 is unusable for 17 (seventeen) European languages based on

Re: RE Module Performance

2013-07-24 Thread wxjmfauth
Le samedi 13 juillet 2013 01:13:47 UTC+2, Michael Torrie a écrit : On 07/12/2013 09:59 AM, Joshua Landau wrote: If you're interested, the basic of it is that strings now use a variable number of bytes to encode their values depending on whether values outside of the ASCII range and

Re: RE Module Performance

2013-07-24 Thread Chris Angelico
On Wed, Jul 24, 2013 at 11:40 PM, wxjmfa...@gmail.com wrote: Short example. Writing an editor with something like the FSR is simply impossible (properly). jmf, have you ever written an editor with *any* string representation? Are you speaking from any level of experience at all? ChrisA --

Re: RE Module Performance

2013-07-24 Thread David Hutto
I've screwed up plenty of times in python, but can write code like a pro when I'm feeling better(on SSI and medicaid). An editor can be built simply, but it's preference that makes the difference. Some might have used tkinter, gtk. wxpython or other methods for the task. I think the main issue in

Re: RE Module Performance

2013-07-24 Thread David Hutto
I've screwed up plenty of times in python, but can write code like a pro when I'm feeling better(on SSI and medicaid). An editor can be built simply, but it's preference that makes the difference. Some might have used tkinter, gtk. wxpython or other methods for the task. I think the main issue in

Re: RE Module Performance

2013-07-24 Thread Chris Angelico
On Thu, Jul 25, 2013 at 12:17 AM, David Hutto dwightdhu...@gmail.com wrote: I've screwed up plenty of times in python, but can write code like a pro when I'm feeling better(on SSI and medicaid). An editor can be built simply, but it's preference that makes the difference. Some might have used

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-24 Thread Kevin Walzer
On 7/23/13 5:53 PM, Gilles wrote: On Mon, 22 Jul 2013 10:14:15 -0400, Kevin Walzer k...@codebykevin.com wrote: http://www.hmailserver.com Thanks. hMailServer was one of the apps I checked, and I was just making sure there weren't something simpler, considering my needs, ideally something like

Re: RE Module Performance

2013-07-24 Thread Michael Torrie
On 07/24/2013 07:40 AM, wxjmfa...@gmail.com wrote: Sorry, you are not understanding Unicode. What is a Unicode Transformation Format (UTF), what is the goal of a UTF and why it is important for an implementation to work with a UTF. Really? Enlighten me. Personally, I would never use UTF as a

Re: Python 3: dict dict.keys()

2013-07-24 Thread Skip Montanaro
What do you mean? Why would you want to create a temporary list just to iterate over it explicitly or implicitly (set, sorted, max,...)? Because while iterating over the keys, he might also want to add or delete keys to/from the dict. You can't do that while iterating over them in-place. This

Re: RE Module Performance

2013-07-24 Thread Michael Torrie
On 07/24/2013 08:34 AM, Chris Angelico wrote: Frankly, Python's strings are a *terrible* internal representation for an editor widget - not because of PEP 393, but simply because they are immutable, and every keypress would result in a rebuilding of the string. On the flip side, I could quite

Re: Python 3: dict dict.keys()

2013-07-24 Thread Ian Kelly
On Tue, Jul 23, 2013 at 8:11 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Basically, views are set-like, not list-like. The keys and items views are set-like. The values view is not. -- http://mail.python.org/mailman/listinfo/python-list

Re: RE Module Performance

2013-07-24 Thread Chris Angelico
On Thu, Jul 25, 2013 at 12:47 AM, Michael Torrie torr...@gmail.com wrote: On 07/24/2013 07:40 AM, wxjmfa...@gmail.com wrote: Sorry, you are not understanding Unicode. What is a Unicode Transformation Format (UTF), what is the goal of a UTF and why it is important for an implementation to work

Re: Python 3: dict dict.keys()

2013-07-24 Thread Ian Kelly
On Wed, Jul 24, 2013 at 8:58 AM, Skip Montanaro s...@pobox.com wrote: What do you mean? Why would you want to create a temporary list just to iterate over it explicitly or implicitly (set, sorted, max,...)? Because while iterating over the keys, he might also want to add or delete keys

[ANN] pyspread 0.2.4

2013-07-24 Thread Martin Manns
== pyspread 0.2.4 == Pyspread 0.2.4 is released. Besides Linux, the new version also runs on Windows (Windows 7 64bit and Windows XP 32bit tested). About pyspread == Pyspread is a non-traditional spreadsheet application that is based on and written in the

Re: Converting a list of lists to a single list

2013-07-24 Thread Terry Reedy
On 7/23/2013 7:02 PM, Terry Reedy wrote: On 7/23/2013 5:52 PM, st...@divillo.com wrote: I think that itertools may be able to do what I want but I have not been able to figure out how. What you want is a flattened product with unchanged components of the successive products omitted in the

Re: Strange behaviour with os.linesep

2013-07-24 Thread Terry Reedy
On 7/23/2013 7:41 PM, Dennis Lee Bieber wrote: On 23 Jul 2013 15:25:12 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info declaimed the following: On Tue, 23 Jul 2013 13:42:13 +0200, Vincent Vande Vyvre wrote: On Windows a script where de endline are the system line sep, the files are

Re: how: embed + extend to control my running app?

2013-07-24 Thread David M. Cotter
well, umm, gosh, now i feel quite silly. that was easy. okay that's done. next: i'd like to redirect the output of any print statements to my C function: voidLog(const unsigned char *utf8_cstrP); on the mac, python output sys.stdout goes into the debug console if you're in the

Re: Python 3: dict dict.keys()

2013-07-24 Thread Ethan Furman
On 07/24/2013 05:51 AM, Oscar Benjamin wrote: On Jul 24, 2013 7:25 AM, Peter Otten __pete...@web.de mailto:pete...@web.de wrote: Ethan Furman wrote: So, my question boils down to: in Python 3 how is dict.keys() different from dict? What are the use cases? I just grepped through

Re: how: embed + extend to control my running app?

2013-07-24 Thread Chris Angelico
On Thu, Jul 25, 2013 at 2:10 AM, David M. Cotter m...@davecotter.com wrote: So: i really want it to go to my own log file (via my Log() function). now, can i specify please output to this FILE* ?, i looked at all the python c headers but found nothing about redirecting the output. Are you

Re: Python 3: dict dict.keys()

2013-07-24 Thread Oscar Benjamin
On Jul 24, 2013 2:27 PM, Peter Otten __pete...@web.de wrote: Oscar Benjamin wrote: On Jul 24, 2013 7:25 AM, Peter Otten __pete...@web.de wrote: Ethan Furman wrote: So, my question boils down to: in Python 3 how is dict.keys() different from dict? What are the use cases? I

Re: Python 3: dict dict.keys()

2013-07-24 Thread Chris Angelico
On Thu, Jul 25, 2013 at 1:57 AM, Ethan Furman et...@stoneleaf.us wrote: On 07/24/2013 05:51 AM, Oscar Benjamin wrote: What do you mean? Why would you want to create a temporary list just to iterate over it explicitly or implicitly (set, sorted, max,...)? You wouldn't. But you don't need

Re: Python 3: dict dict.keys()

2013-07-24 Thread Terry Reedy
On 7/24/2013 12:34 PM, Chris Angelico wrote: Side point: Why is iterating over a dict equivalent to .keys() rather than .items()? It feels odd that, with both options viable, the implicit version iterates over half the dict instead of all of it. Obviously it can't be changed now, even if

Re: Python 3: dict dict.keys()

2013-07-24 Thread Stefan Behnel
Chris Angelico, 24.07.2013 18:34: On Thu, Jul 25, 2013 at 1:57 AM, Ethan Furman wrote: On 07/24/2013 05:51 AM, Oscar Benjamin wrote: What do you mean? Why would you want to create a temporary list just to iterate over it explicitly or implicitly (set, sorted, max,...)? You wouldn't. But

Re: Python 3: dict dict.keys()

2013-07-24 Thread Stefan Behnel
Peter Otten, 24.07.2013 08:23: Ethan Furman wrote: So, my question boils down to: in Python 3 how is dict.keys() different from dict? What are the use cases? I just grepped through /usr/lib/python3, and could not identify a single line where some_object.keys() wasn't either wrapped in a

Re: how: embed + extend to control my running app?

2013-07-24 Thread David M. Cotter
i don't use stdout in my own code, my code goes to my own log file. i want the output from any python code to go to my existing log file, so log statements from my app and any python code are intermingled in that one file. my updated code is here, which now bridges my python print function to

Re: RE Module Performance

2013-07-24 Thread Terry Reedy
On 7/24/2013 11:00 AM, Michael Torrie wrote: On 07/24/2013 08:34 AM, Chris Angelico wrote: Frankly, Python's strings are a *terrible* internal representation for an editor widget - not because of PEP 393, but simply because they are immutable, and every keypress would result in a rebuilding of

Re: Python 3: dict dict.keys()

2013-07-24 Thread Chris Angelico
On Thu, Jul 25, 2013 at 3:17 AM, Terry Reedy tjre...@udel.edu wrote: On 7/24/2013 12:34 PM, Chris Angelico wrote: Side point: Why is iterating over a dict equivalent to .keys() rather than .items()? It feels odd that, with both options viable, the implicit version iterates over half the dict

Re: Dihedral

2013-07-24 Thread Stefan Behnel
Fábio Santos, 16.07.2013 00:54: On 07/15/2013 08:36 AM, Steven D'Aprano wrote: Devyn, 8 Dihedral is our resident bot, not a human being. Nobody knows who controls it, and why they are running it, but we are pretty certain that it is a bot responding mechanically to keywords in people's

Re: Converting a list of lists to a single list

2013-07-24 Thread steve
Wow, thanks everyone. Very helpful indeed! On Tuesday, July 23, 2013 2:52:21 PM UTC-7, st...@divillo.com wrote: I think that itertools may be able to do what I want but I have not been able to figure out how. I want to convert an arbitrary number of lists with an arbitrary number of

Re: RE Module Performance

2013-07-24 Thread Chris Angelico
On Thu, Jul 25, 2013 at 3:52 AM, Terry Reedy tjre...@udel.edu wrote: On 7/24/2013 11:00 AM, Michael Torrie wrote: On 07/24/2013 08:34 AM, Chris Angelico wrote: Frankly, Python's strings are a *terrible* internal representation for an editor widget - not because of PEP 393, but simply because

Re: Dihedral

2013-07-24 Thread Chris Angelico
On Thu, Jul 25, 2013 at 4:08 AM, Stefan Behnel stefan...@behnel.de wrote: Fábio Santos, 16.07.2013 00:54: Does this mean he passes the Turing test? I'd say that it appears more correct. Or is there any indication of a specific bot gender? (I sure might have missed it...) Note that being of

Re: Python 3: dict dict.keys()

2013-07-24 Thread Ethan Furman
On 07/24/2013 10:23 AM, Stefan Behnel wrote: Peter Otten, 24.07.2013 08:23: Ethan Furman wrote: So, my question boils down to: in Python 3 how is dict.keys() different from dict? What are the use cases? To me it looks like views are a solution waiting for a problem. They reduce the API

Re: how: embed + extend to control my running app?

2013-07-24 Thread David M. Cotter
http://karaoke.kjams.com/wiki/Python nevermind, i got it, it's working now (see link for code) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3: dict dict.keys()

2013-07-24 Thread Stefan Behnel
Ethan Furman, 24.07.2013 20:31: On 07/24/2013 10:23 AM, Stefan Behnel wrote: Peter Otten, 24.07.2013 08:23: Ethan Furman wrote: So, my question boils down to: in Python 3 how is dict.keys() different from dict? What are the use cases? To me it looks like views are a solution waiting for

Re: how: embed + extend to control my running app?

2013-07-24 Thread David M. Cotter
Now for Windows: same thing, i think i must create a .dll, right? you should already have a python.dll in your installation i can find python27.lib in the libs folder, but there is no python27_d.lib, and there is no python27.dll in the DLLs folder? are there instructions for creating (or

Re: Python 3: dict dict.keys()

2013-07-24 Thread Ethan Furman
On 07/24/2013 12:59 PM, Stefan Behnel wrote: I think the question is: how else would you implement an interface that doesn't restrict itself to returning a list? I mean, previously, the following was totally inefficient in terms of memory: value in d.values() It now avoids creating an

RE: Python 3: dict dict.keys()

2013-07-24 Thread Prasad, Ramit
Stefan Behnel wrote: Ethan Furman, 24.07.2013 20:31: On 07/24/2013 10:23 AM, Stefan Behnel wrote: Peter Otten, 24.07.2013 08:23: Ethan Furman wrote: So, my question boils down to: in Python 3 how is dict.keys() different from dict? What are the use cases? To me it looks like

Re: Python 3: dict dict.keys()

2013-07-24 Thread Christian Heimes
Am 24.07.2013 18:34, schrieb Chris Angelico: Side point: Why is iterating over a dict equivalent to .keys() rather than .items()? It feels odd that, with both options viable, the implicit version iterates over half the dict instead of all of it. Obviously it can't be changed now, even if

Re: Beginner. 2d rotation gives unexpected results.

2013-07-24 Thread Joshua Landau
On 23 July 2013 13:34, en...@yandex.ru wrote: Hello! This is my first post, nice to meet you all! I`m biology student from Russia, trying to learn python to perform some simple simulations. Here`s my first problem. I`m trying to perform some simple 2d vector rotations in pygame, in order

Re: Python testing tools

2013-07-24 Thread Y Yen
On Friday, July 19, 2013 3:56:24 PM UTC-7, cutems93 wrote: I am currently doing some research on testing software for Python. I found that there are many different types of testing tools. These are what I've found. 1.Unit test 2.Mock test 3.Fuzz test 4.Web test

Re: RE Module Performance

2013-07-24 Thread Terry Reedy
On 7/24/2013 2:15 PM, Chris Angelico wrote: On Thu, Jul 25, 2013 at 3:52 AM, Terry Reedy tjre...@udel.edu wrote: For my purpose, the mock Text works the same in 2.7 and 3.3+. Thanks for that report! And yes, it's going to behave exactly the same way, because its underlying structure is an

Re: RE Module Performance

2013-07-24 Thread Chris Angelico
On Thu, Jul 25, 2013 at 8:09 AM, Terry Reedy tjre...@udel.edu wrote: On 7/24/2013 2:15 PM, Chris Angelico wrote: To my mind, exposing UTF-16 surrogates to the application is a bug to be fixed, not a feature to be maintained. It is definitely not a feature, but a proper UTF-16 implementation

Re: RE Module Performance

2013-07-24 Thread Michael Torrie
On 07/24/2013 04:19 PM, Chris Angelico wrote: I'm referring here to objections like jmf's, and also to threads like this: http://mozilla.6506.n7.nabble.com/Flexible-String-Representation-full-Unicode-for-ES6-td267585.html According to the ECMAScript people, UTF-16 and exposing surrogates to

Re: RE Module Performance

2013-07-24 Thread Chris Angelico
On Thu, Jul 25, 2013 at 8:59 AM, Michael Torrie torr...@gmail.com wrote: I don't fully understand why making strings simply unicode in javascript breaks compatibility with older scripts. What operations are performed on strings that making unicode an abstract type would break? Imagine this

Re: Python 3: dict dict.keys()

2013-07-24 Thread Terry Reedy
On 7/24/2013 4:34 PM, Prasad, Ramit wrote: I am still not clear on the advantage of views vs. iterators. A1: Views are iterables that can be iterated more than once. Therefore, they can be passed to a function that re-iterates its inputs, or to multiple functions. They support 'x in view'

Re: Python 3: dict dict.keys()

2013-07-24 Thread Ethan Furman
On 07/24/2013 01:34 PM, Prasad, Ramit wrote: I am still not clear on the advantage of views vs. iterators. What makes d.viewkeys() better than d.iterkeys()? Why did they decide not to rename d.iterkeys() to d.keys() and instead use d.viewkeys()? Is the iteration over a set operation on keys

Re: Beginner. 2d rotation gives unexpected results.

2013-07-24 Thread Terry Reedy
On 7/24/2013 5:17 PM, Joshua Landau wrote: import math as m GAH! Why on earth would you do such a thing? for the same reason people do 'import tkinter as tk': to minimize typing and maximize clarity. In this case, from math import sin, cos, radians also works well -- Terry Jan

Re: how: embed + extend to control my running app?

2013-07-24 Thread David M. Cotter
update: okay so the python27.dll is in /windows/system32 so ignore that i've set my include directory correct, so i can compile i've set my additional libraries directory to the libs directory (where the .lib files are. (note: NOT including Lib directory, cuz that's full of .py files and

Re: Python 3: dict dict.keys()

2013-07-24 Thread Ethan Furman
On 07/23/2013 07:11 PM, Steven D'Aprano wrote: On Tue, 23 Jul 2013 18:16:08 -0700, Ethan Furman wrote: So now, in Python 3, .keys(), .values(), even .items() all return these 'view' thingies. And everything I thought I knew about when to use one or the other went out the window. Surely not.

Re: how: embed + extend to control my running app?

2013-07-24 Thread Dave Angel
On 07/24/2013 08:51 PM, David M. Cotter wrote: update: okay so the python27.dll is in /windows/system32 so ignore that i've set my include directory correct, so i can compile i've set my additional libraries directory to the libs directory (where the .lib files are. (note: NOT including Lib

I have a little problem with Django when I am trying to create a new app

2013-07-24 Thread peins0242
Hello everyone I'm watching a tutorial on how to create a project on Django... django-admin.py startproject carabali when I run this code on terminal.. happens : http://nsae01.casimages.net/img/2013/07/25/130725021220676239.png There's a mistake or something but I can't figure out, help me

High Availability with neo4j-embedded in Python -- Is that possible?

2013-07-24 Thread jotavrj
I'm almost switching from Python to Groovy because I can't find a way to use the neo4j-embedded's Highly Available mode. But no, I certainly don't want Java... I'm using JPype. Is there a way to do it? Kind regards, Jota Junior -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3: dict dict.keys()

2013-07-24 Thread Ben Finney
Ethan Furman et...@stoneleaf.us writes: On 07/23/2013 07:11 PM, Steven D'Aprano wrote: On Tue, 23 Jul 2013 18:16:08 -0700, Ethan Furman wrote: And everything I thought I knew about when to use one or the other went out the window. Surely not. The fundamental behaviour of Python's data

Re: I have a little problem with Django when I am trying to create a new app

2013-07-24 Thread Chris Angelico
On Thu, Jul 25, 2013 at 12:03 PM, peins0...@gmail.com wrote: Hello everyone I'm watching a tutorial on how to create a project on Django... django-admin.py startproject carabali when I run this code on terminal.. happens : http://nsae01.casimages.net/img/2013/07/25/130725021220676239.png

[ANN] PyWeek 17 will run in the first week of September (1st to 8th) - write a game in Python in a week

2013-07-24 Thread Richard Jones
Hi all, The Python Game Programming Challenge http://pyweek.org/ will run its 17th challenge during the first week of September, from the 1st to the 8th. The PyWeek challenge: 1. Invites entrants to write a game in one week from scratch either as an individual or in a team, 2. Is intended to be

Python3, GUIs, game APIs, PyGLet, 2to3...?

2013-07-24 Thread John Ladasky
I am teaching Python 3 to a few beginning computer programming students. Being high-school age boys, they are, unsurprisingly, interested in games. I want to introduce them to real-time programming and GUI in the most painless way possible. I know that Python comes bundled with Tkinter.

Re: RE Module Performance

2013-07-24 Thread Serhiy Storchaka
24.07.13 21:15, Chris Angelico написав(ла): To my mind, exposing UTF-16 surrogates to the application is a bug to be fixed, not a feature to be maintained. Python 3 uses code points from U+DC80 to U+DCFF (which are in surrogates area) to represent undecodable bytes with surrogateescape error

Re: Python 3: dict dict.keys()

2013-07-24 Thread Steven D'Aprano
On Wed, 24 Jul 2013 08:57:11 -0700, Ethan Furman wrote: My point is that in 2.x .keys() did something different from the dict, while in 3.x it appears to me that they are the same. Then you aren't looking very closely. d.keys() returns a set-like view into the dict, which is great for

[issue18533] Avoid error from repr() of recursive dictview

2013-07-24 Thread Ben North
Ben North added the comment: New patch, fixing nit noted in msg193624: non-error-recursive-dictview-3.3-1.patch Otherwise same as previous non-error-recursive-dictview-3.3.patch -- Added file: http://bugs.python.org/file31025/non-error-recursive-dictview-3.3-1.patch

[issue18535] termios.tcgetattr should return namedtuple

2013-07-24 Thread anatoly techtonik
anatoly techtonik added the comment: I've made my own monster, attached. -- Added file: http://bugs.python.org/file31026/DictRecord.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18535 ___

[issue18535] termios.tcgetattr should return namedtuple

2013-07-24 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You need a better use case though. termios awful constant names ('TIOCGWINSZ') and values ('\x1b') won't become more easy with a nametuple. -- resolution: - works for me status: open - closed ___ Python

[issue791968] Arguments tooltip wrong if def contains tuple

2013-07-24 Thread ariel brunner
ariel brunner added the comment: I will, sorry. I thought it's possible reopen an issue. Since all the relevant information is already contained here, and since the problem is with the fix to the issue, I figured it's best to reopen this one. --

[issue2943] Distutils should generate a better error message when the SDK is not installed

2013-07-24 Thread Matt Hickford
Matt Hickford added the comment: ( Upstreamed from Pip https://github.com/pypa/pip/issues/942 ) There are lot of Python users on Windows. If they succeed in installing a package manager (a struggle), this is typically their first experience with it $ pip install numpy blah blah blah

[issue18539] Arguments tooltip wrong if def contains fractional default value

2013-07-24 Thread ariel brunner
New submission from ariel brunner: When defining a function with factional default arguments, the tuple text replaces the correct values in the tooltip. Here's an example - def f(a=0.5): pass f( tooltip shows - (a=0tuple), i.e. replaces the .5 with tuple. This was found to happen

[issue18539] Arguments tooltip wrong if def contains fractional default value

2013-07-24 Thread ariel brunner
Changes by ariel brunner ariel...@mail.tau.ac.il: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18539 ___ ___

[issue18540] imaplib.IMAP4() ends with Name or service not known on Fedora 18

2013-07-24 Thread Matěj Stuchlík
New submission from Matěj Stuchlík: Traceback (most recent call last): File stdin, line 1, in module File /usr/lib64/python2.7/imaplib.py, line 163, in __init__ self.open(host, port) File /usr/lib64/python2.7/imaplib.py, line 229, in open self.sock = socket.create_connection((host,

[issue18541] LoggerAdapter example is counter-productive

2013-07-24 Thread Antoine Pitrou
New submission from Antoine Pitrou: The idiomatic way to use a LoggerAdapter is to override the process() method. However, the example in the cookbook (*) is some gobbledegook code overriding __getitem__ and __iter__ on a separate class. It's a pity that users are directed to use an insane

[issue18542] httpd memory consuption increasing continously due to mod_python

2013-07-24 Thread Sumitinder
New submission from Sumitinder: Mod_python is used in our application and continous load of mod_python result in increase in httpd memory usage i.e upto 1.6 Gb. Packets used: mod_python-3.2.8-3.1 httpd-2.2.3-43.el5.centos Centos 5.5 OS Is there any memory leak in mod_python which is resulting

[issue18542] httpd memory consuption increasing continously due to mod_python

2013-07-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: mod_python isn't part of the cpython std lib. As such, this isn't the right tracker to report problems with mod_python. You may have more success by asking the project itself (http://www.modpython.org). -- nosy: +ronaldoussoren resolution: -

[issue2066] Adding new CNS11643, a *huge* charset, support in cjkcodecs

2013-07-24 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2066 ___ ___ Python-bugs-list mailing list

[issue3453] PyType_Ready doesn't ensure that all bases are ready

2013-07-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't know if multiple inheritance is explicitly supported at the C level, but it is possible to create an extension type with multiple base classes in tp_bases. -- nosy: +ronaldoussoren ___ Python tracker

[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2013-07-24 Thread Bohuslav Slavek Kabrda
Changes by Bohuslav Slavek Kabrda bkab...@redhat.com: -- nosy: +bkabrda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10131 ___ ___

[issue4708] os.pipe should return inheritable descriptors (Windows)

2013-07-24 Thread STINNER Victor
STINNER Victor added the comment: Changing the default inheritance value of os.pipe() is not acceptable because it would break backward compatibility. Giving access to Windows extra parameter is nice, but we have to find a way to propose a portable API. That's what I'm trying to do with the

[issue18535] termios.tcgetattr should return namedtuple

2013-07-24 Thread anatoly techtonik
anatoly techtonik added the comment: Do not hijack the issue - value interpretation is the next step, which better keep out of scope for this improvement. termios is a C interface, which documents the meaning of TIOCGWINSZ and has defined names for structure entries, such as lflag. This issue

[issue18535] termios.tcgetattr should return namedtuple

2013-07-24 Thread anatoly techtonik
anatoly techtonik added the comment: If you need a better use case for DictRecord, urlparse is another one. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18535 ___

[issue18543] urllib.parse.urlopen shouldn't ignore installed opener when called with any ca* argument

2013-07-24 Thread Moritz Sichert
New submission from Moritz Sichert: If you pass any of cafile, capath or cadefault to urllib.parse.urlopen it creates a new opener that contains the HTTPSHandler that was according to the ca* arguments. It then uses this new opener to execute the request. If you installed a custom opener with

[issue18078] threading.Condition to allow notify on a specific waiter

2013-07-24 Thread João Bernardo
João Bernardo added the comment: ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18078 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18078] threading.Condition to allow notify on a specific waiter

2013-07-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Charles-François's point about the algorithmic complexity is legitimate, so I think he was actually waiting for you to amend your patch ;) -- ___ Python tracker rep...@bugs.python.org

[issue18078] threading.Condition to allow notify on a specific waiter

2013-07-24 Thread João Bernardo
João Bernardo added the comment: Charles-François's point about the algorithmic complexity is legitimate, so I think he was actually waiting for you to amend your patch ;) This doesn't seems to be the actual issue as it would require a big change for something that wasn't proven

[issue6627] threading.local() does not work with C-created threads

2013-07-24 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___

[issue18541] LoggerAdapter example is counter-productive

2013-07-24 Thread Vinay Sajip
Vinay Sajip added the comment: That's not quite right. The recommended way *is* to override the process() method. From the page you linked to: If you need a different method, e.g. if you want to prepend or append the contextual information to the message string, you just need to subclass

[issue18541] LoggerAdapter example is counter-productive

2013-07-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: That does not have a specific example, as it seems simple enough to understand as stated. I think we should acknowledge that people often have difficulties with the rather simple functionalities of the logging module, not only the advanced ones. The example

[issue18544] subprocess.Popen support for redirection of arbitrary file descriptors

2013-07-24 Thread Robert O'Callahan
New submission from Robert O'Callahan: Popen() ought to support redirection to/from more file descriptors than 0, 1, and 2 when spawning processes. A clear use case is here: http://stackoverflow.com/questions/6050187/write-to-file-descriptor-3-of-a-python-subprocess-popen-object Instead of

[issue18524] BufferedReader.read1() documentation/implementation difference

2013-07-24 Thread R. David Murray
R. David Murray added the comment: Unless I'm misunderstanding something, the current implementation does match the current documentation: if buffer-size n, returning buffer-size bytes is returning up to n. Up to means it could be less than. So you are advocating a change in behavior...but

[issue18545] enum always runs member_type when use_args is True

2013-07-24 Thread Chris Lambacher
New submission from Chris Lambacher: Starting at line 153 in enum.py there is: 153 if not use_args: 154 enum_member = __new__(enum_class) 155 original_value = value 156 else: 157 enum_member =

[issue18541] LoggerAdapter example is counter-productive

2013-07-24 Thread Vinay Sajip
Vinay Sajip added the comment: I think we should acknowledge that people often have difficulties with the rather simple functionalities of the logging module, not only the advanced ones. Perhaps some people do have difficulties, but that's always going to be the case no matter what you do.

[issue18533] Avoid error from repr() of recursive dictview

2013-07-24 Thread R. David Murray
R. David Murray added the comment: I'm in favor of treating this a bugfix. It is a bug for repr to raise a recursion error, IMO. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18533

[issue18524] BufferedReader.read1() documentation/implementation difference

2013-07-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: This means that read1() will only return up to n bytes if n is smaller than the buffer size, otherwise it will return at most buffer-size bytes. Did you actually observe such behaviour? If so, this is a bug. --

  1   2   >