Kiwi PyCon 2013 Call for Proposals is now open! (closes 01 June)

2013-05-10 Thread Danny Adair
Dear fellow Pythonistas, We're pleased to announce that Kiwi PyCon 2013's Call for Proposals is now open! This year the conference will be held Saturday 06 and Sunday 07 September in Auckland, New Zealand. Friday 05 September will see tutorials and workshops run during the day - a Kiwi PyCon

Re: object.enable() anti-pattern

2013-05-10 Thread Dan Sommers
On Fri, 10 May 2013 05:03:10 +, Steven D'Aprano wrote: There is no sensible use-case for creating a file OBJECT unless it initially wraps an open file pointer. So far the only counter-examples given aren't counter-examples ... Well, sure, if you discount operations like create this file

Re: python call golang

2013-05-10 Thread Fábio Santos
On 10 May 2013 03:37, Thanatos xiao yanxiaopei...@gmail.com wrote: Hey ! Now! I have written a python script . I want to call a golang script in python script. Who can give me some advices? thanks! Check out the subprocess module. You can use it to call other programs from python and get

Re: Message passing syntax for objects | OOPv2

2013-05-10 Thread Chris Angelico
On Fri, May 10, 2013 at 2:55 PM, Roy Smith r...@panix.com wrote: In article mailman.1523.1368160434.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: The first hard disk I ever worked with stored 20MB in the space of a 5.25 slot (plus its associated ISA controller card).

Re: in need of some help...

2013-05-10 Thread Alex Norton
On Wednesday, 1 May 2013 13:15:28 UTC+1, Jens Thoms Toerring wrote: Alex Norton ayjayn1...@gmail.com wrote: thanks... ill take a look at the Qt event handling It's rather simple: instead of the program running through a sequence of steps, the program normally is basically doing

Re: object.enable() anti-pattern

2013-05-10 Thread Steven D'Aprano
On Fri, 10 May 2013 01:50:09 -0400, Roy Smith wrote: In article 518c7f05$0$29997$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: there is no way to create a C file descriptor in a closed state. Such a thing does not exist. If you have a file

Re: Append to python List

2013-05-10 Thread 88888 Dihedral
Jussi Piitulainen於 2013年5月9日星期四UTC+8下午7時30分05秒寫道: 8 Dihedral writes: This is just the handy style for a non-critical loop. In a critical loop, the number of the total operation counts does matter in the execution speed. Do you use speed often? There is another

Re: object.enable() anti-pattern

2013-05-10 Thread Steven D'Aprano
On Fri, 10 May 2013 06:22:31 +, Dan Sommers wrote: On Fri, 10 May 2013 05:03:10 +, Steven D'Aprano wrote: There is no sensible use-case for creating a file OBJECT unless it initially wraps an open file pointer. So far the only counter-examples given aren't counter-examples ...

Re: object.enable() anti-pattern

2013-05-10 Thread Robert Kern
On 2013-05-10 12:00, Steven D'Aprano wrote: But either way, that's fine. You've found an object where it does make sense to have an explicit make it go method: first one entity has permission to construct the object, but not to open the underlying file. Another entity has permission to open the

Re: Message passing syntax for objects | OOPv2

2013-05-10 Thread William Ray Wing
On May 10, 2013, at 12:55 AM, Roy Smith r...@panix.com wrote: In article mailman.1523.1368160434.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: The first hard disk I ever worked with stored 20MB in the space of a 5.25 slot (plus its associated ISA controller card).

Re: help on Implementing a list of dicts with no data pattern

2013-05-10 Thread Neil Cerutti
On 2013-05-09, Dave Angel da...@davea.name wrote: On 05/09/2013 05:22 PM, rlelis wrote: On Thursday, May 9, 2013 7:19:38 PM UTC+1, Dave Angel wrote: Yes it's a list of string. I don't get the NameError: name 'file_content' is not defined in my code. That's because you have the 3 lines

Re: Message passing syntax for objects | OOPv2

2013-05-10 Thread Roy Smith
On May 10, 2013, at 7:49 AM, William Ray Wing wrote: On May 10, 2013, at 12:55 AM, Roy Smith r...@panix.com wrote: In article mailman.1523.1368160434.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: The first hard disk I ever worked with stored 20MB in the space of a

Re: object.enable() anti-pattern

2013-05-10 Thread Roy Smith
In article 518cc239$0$29997$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: int fd = 37; I've just created a file descriptor. There is not enough information given to know if it corresponds to an open file or not. No, you haven't

Re: object.enable() anti-pattern

2013-05-10 Thread Roy Smith
In article mailman.1527.1368188358.3114.python-l...@python.org, Robert Kern robert.k...@gmail.com wrote: I'd be curious to see in-the-wild instances of the anti-pattern that you are talking about, then. I think everyone agrees that entirely unmotivated enable methods should be avoided, but

Re: object.enable() anti-pattern

2013-05-10 Thread Oscar Benjamin
On 10 May 2013 15:01, Roy Smith r...@panix.com wrote: In article mailman.1527.1368188358.3114.python-l...@python.org, Robert Kern robert.k...@gmail.com wrote: I'd be curious to see in-the-wild instances of the anti-pattern that you are talking about, then. I think everyone agrees that

Re: object.enable() anti-pattern

2013-05-10 Thread Roy Smith
In article mailman.1530.1368196163.3114.python-l...@python.org, Oscar Benjamin oscar.j.benja...@gmail.com wrote: It's not just because of exceptions. In C++ virtual method calls in a constructor for a class A will always call the methods of class A even if the object being constructed is

Re: object.enable() anti-pattern

2013-05-10 Thread Chris Angelico
On Sat, May 11, 2013 at 12:37 AM, Roy Smith r...@panix.com wrote: I suppose, if I had a class like this, I would write a factory function which called the constructor and post-construction initializer. And then I would make the constructor protected. That sounds like a reasonable plan, with

Re: object.enable() anti-pattern

2013-05-10 Thread Roy Smith
In article mailman.1531.1368197225.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Sat, May 11, 2013 at 12:37 AM, Roy Smith r...@panix.com wrote: I suppose, if I had a class like this, I would write a factory function which called the constructor and post-construction

Re: object.enable() anti-pattern

2013-05-10 Thread Chris Angelico
On Sat, May 11, 2013 at 12:54 AM, Roy Smith r...@panix.com wrote: In article mailman.1531.1368197225.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Sat, May 11, 2013 at 12:37 AM, Roy Smith r...@panix.com wrote: I suppose, if I had a class like this, I would write a

Re: Unicode humor

2013-05-10 Thread jmfauth
On 8 mai, 15:19, Roy Smith r...@panix.com wrote: Apropos to any of the myriad unicode threads that have been going on recently: http://xkcd.com/1209/ -- This reflects a lack of understanding of Unicode. jmf -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode humor

2013-05-10 Thread Chris Angelico
On Sat, May 11, 2013 at 1:06 AM, jmfauth wxjmfa...@gmail.com wrote: On 8 mai, 15:19, Roy Smith r...@panix.com wrote: Apropos to any of the myriad unicode threads that have been going on recently: http://xkcd.com/1209/ -- This reflects a lack of understanding of Unicode. By the

Re: Anybody familiar with pygments ?

2013-05-10 Thread Chris “Kwpolska” Warrick
On Thu, May 9, 2013 at 10:40 AM, Fábio Santos fabiosantos...@gmail.com wrote: On 9 May 2013 05:19, dabaichi valben...@outlook.com wrote: And hereis the output file: That's not the output file. That is just an HTML fragment to put on your page. A full HTML file will need more things, which

Re: Unicode humor

2013-05-10 Thread Ned Batchelder
On 5/10/2013 11:06 AM, jmfauth wrote: On 8 mai, 15:19, Roy Smith r...@panix.com wrote: Apropos to any of the myriad unicode threads that have been going on recently: http://xkcd.com/1209/ -- This reflects a lack of understanding of Unicode. jmf And this reflects a lack of a sense of

Re: object.enable() anti-pattern

2013-05-10 Thread Roy Smith
In article mailman.1532.1368198547.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Each language has its own set of best practices. Trying to write C++ code using Python patterns is as bad as trying to write Python code using C++ patterns. Agreed, in generality. But

Re: Unicode humor

2013-05-10 Thread Chris Angelico
On Sat, May 11, 2013 at 1:24 AM, Ned Batchelder n...@nedbatchelder.com wrote: On 5/10/2013 11:06 AM, jmfauth wrote: On 8 mai, 15:19, Roy Smith r...@panix.com wrote: Apropos to any of the myriad unicode threads that have been going on recently: http://xkcd.com/1209/ -- This

Re: object.enable() anti-pattern

2013-05-10 Thread Robert Kern
On 2013-05-10 15:01, Roy Smith wrote: In article mailman.1527.1368188358.3114.python-l...@python.org, Robert Kern robert.k...@gmail.com wrote: I'd be curious to see in-the-wild instances of the anti-pattern that you are talking about, then. I think everyone agrees that entirely unmotivated

Re: object.enable() anti-pattern

2013-05-10 Thread Chris Angelico
On Sat, May 11, 2013 at 1:21 AM, Roy Smith r...@panix.com wrote: In article mailman.1532.1368198547.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Agreed, in generality. But what is actually gained by hiding data from yourself? You're not hiding it from yourself.

Re: Unicode humor

2013-05-10 Thread rusi
On May 10, 8:32 pm, Chris Angelico ros...@gmail.com wrote: On Sat, May 11, 2013 at 1:24 AM, Ned Batchelder n...@nedbatchelder.com wrote: On 5/10/2013 11:06 AM, jmfauth wrote: On 8 mai, 15:19, Roy Smith r...@panix.com wrote: Apropos to any of the myriad unicode threads that have been

Re: Unicode humor

2013-05-10 Thread MRAB
On 10/05/2013 17:07, rusi wrote: On May 10, 8:32 pm, Chris Angelico ros...@gmail.com wrote: On Sat, May 11, 2013 at 1:24 AM, Ned Batchelder n...@nedbatchelder.com wrote: On 5/10/2013 11:06 AM, jmfauth wrote: On 8 mai, 15:19, Roy Smith r...@panix.com wrote: Apropos to any of the myriad

Re: Unicode humor

2013-05-10 Thread Ethan Furman
On 05/10/2013 09:07 AM, rusi wrote: On May 10, 8:32 pm, Chris Angelico ros...@gmail.com wrote: On Sat, May 11, 2013 at 1:24 AM, Ned Batchelder n...@nedbatchelder.com wrote: On 5/10/2013 11:06 AM, jmfauth wrote: On 8 mai, 15:19, Roy Smith r...@panix.com wrote: Apropos to any of the myriad

Re: object.enable() anti-pattern

2013-05-10 Thread Nobody
On Thu, 09 May 2013 05:23:59 +, Steven D'Aprano wrote: There is no sensible use-case for creating a file without opening it. What would be the point? Any subsequent calls to just about any method will fail. Since you have to open the file after creating the file object anyway, why make

Re: object.enable() anti-pattern

2013-05-10 Thread Serhiy Storchaka
10.05.13 15:19, Robert Kern написав(ла): I'd be curious to see in-the-wild instances of the anti-pattern that you are talking about, then. Many (if not most) GUI frameworks use this pattern. button = Button(text) button.setForegroundColor(...) button.setBackgoundColor(...)

Re: object.enable() anti-pattern

2013-05-10 Thread Robert Kern
On 2013-05-10 16:44, Serhiy Storchaka wrote: 10.05.13 15:19, Robert Kern написав(ла): I'd be curious to see in-the-wild instances of the anti-pattern that you are talking about, then. Many (if not most) GUI frameworks use this pattern. button = Button(text)

Re: object.enable() anti-pattern

2013-05-10 Thread Chris Angelico
On Sat, May 11, 2013 at 1:44 AM, Serhiy Storchaka storch...@gmail.com wrote: 10.05.13 15:19, Robert Kern написав(ла): I'd be curious to see in-the-wild instances of the anti-pattern that you are talking about, then. Many (if not most) GUI frameworks use this pattern. button =

Re: object.enable() anti-pattern

2013-05-10 Thread Roy Smith
In article pan.2013.05.10.16.59.31.512...@nowhere.com, Nobody nob...@nowhere.com wrote: However: there are situations where it is useful to be able to separate the simple task of creating an object from more invasive actions such as system calls. Particularly in multi-threaded or real-time

?????????? WHY DID PROPHET MUHAMMAD MARRY AISHA THE YOUNG GIRL

2013-05-10 Thread BV BV
WHY DID PROPHET MUHAMMAD MARRY AISHA THE YOUNG GIRL? This is an important book talks about a common issue misunderstood but misused by lots of thinkers and orientalists. It is “Why did Prophet Muhammad marry Aisha the young girl?” The author shows the reason behind their discussion. They want to

Re: python call golang

2013-05-10 Thread Miki Tebeka
Now! I have written a python script . I want to call a golang script in python script. Who can give me some advices? See http://gopy.qur.me/extensions/examples.html and http://www.artima.com/weblogs/viewpost.jsp?thread=333589 -- http://mail.python.org/mailman/listinfo/python-list

Re: object.enable() anti-pattern

2013-05-10 Thread Cameron Simpson
On 10May2013 09:22, Roy Smith r...@panix.com wrote: | In article 518cc239$0$29997$c3e8da3$54964...@news.astraweb.com, | Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: | int fd = 37; | | I've just created a file descriptor. There is not enough information | given to know if

Re: object.enable() anti-pattern

2013-05-10 Thread Mark Janssen
There is no sensible use-case for creating a file OBJECT unless it initially wraps an open file pointer. So far the only counter-examples given aren't counter-examples ... Well, sure, if you discount operations like create this file and queries like could I delete this file if I wanted to?

Re: object.enable() anti-pattern

2013-05-10 Thread Mark Janssen
| No, I've created a file descriptor, which is, by definition, an integer. | It has nothing to do with C. This is all defined by the POSIX | interface. For example, the getdtablesize(2) man page says: | | The entries in the descriptor table are numbered with small integers | starting at 0.

Re: object.enable() anti-pattern

2013-05-10 Thread Thomas Rachel
Am 10.05.2013 15:22 schrieb Roy Smith: That's correct. But, as described above, the system makes certain guarantees which allow me to reason about the existence or non-existence os such entries. Nevertheless, your 37 is not a FD yet. Let's take your program: #include unistd.h #include

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-05-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: if (PyLong_CheckExact(item) || (PyLong_Check(item) item-ob_type-tp_as_number-nb_index == PyLong_Type.tp_as_number-nb_index)) -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org

[issue17883] Fix buildbot testing of Tkinter

2013-05-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: a) Is Windows Server 2003 is really meant to be spported? Yes b) Are UNCs expected to behave differently on Server 2003? No. c) Can UNCs be disabled on a particular machine? I may misunderstand can: yes, it is possible, but no, it is not desirable.

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Ethan Furman
New submission from Ethan Furman: PEP-0435 has been approved! Now for lots of code review. -- assignee: docs@python components: Documentation, Library (Lib), Tests files: ref435.py hgrepos: 189 messages: 188812 nosy: barry, docs@python, eli.bendersky, stoneleaf priority: normal

[issue17841] Remove missing aliases from codecs documentation

2013-05-10 Thread Nick Coghlan
Nick Coghlan added the comment: For anyone else reading the issue and wondering about Ezio's question above - this issue was actually spun out from issue 7475, which covers the long saga of getting these codecs fully restored in the new world order of Python 3 :) --

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Ezio Melotti
Ezio Melotti added the comment: Can you upload the patch as a diff against the CPython repo? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Ethan Furman
Ethan Furman added the comment: Here it is (I hope ;) . -- keywords: +patch Added file: http://bugs.python.org/file30192/pep-435.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___

[issue17948] HTTPS and sending a big file size hangs.

2013-05-10 Thread Jesús Vidal Panalés
New submission from Jesús Vidal Panalés: This bug was found using Mercurial. All the information it's on this bug link http://bz.selenic.com/show_bug.cgi?id=3905 The bug was introduced on 2.7.3, previous versions works fine. -- components: Windows messages: 188816 nosy: jesusvpct

[issue16133] asyncore.dispatcher.recv doesn't handle EAGAIN / EWOULDBLOCK

2013-05-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: For the reson why read() must still check for EWOULDBLOCK even though after select() has reported a file descriptor ready for reading, see the BUGS section of select linux man page, which says: Under Linux, select() may report a socket file descriptor as

[issue17908] Unittest runner needs an option to call gc.collect() after each test

2013-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: TBH I would *love* for there to be a standardized way to extend the command line options! If it existed I would help myself. As it is, that's way to complicated. (Then again, most customizations to the default test runner are too complicated IMO. :-) +1.

[issue17948] HTTPS and sending a big file size hangs.

2013-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hello Jesus, this report is far too vague to make anything about it. You should try to diagnose the issue further, here are some ideas: - check whether it happens with another server than IIS - try if you can reproduce without Mercurial being involved (simply

[issue17936] O(n**2) behaviour when adding/removing classes

2013-05-10 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: So, any objections? It is pretty straighforward. Btw, the searching for Py_NONE seems to be a rudiment of some older version, there is no place where a Py_NONE is put in there. Also, what is the policy for 2.7? Are performance bugs proper bugs?

[issue16133] asyncore.dispatcher.recv doesn't handle EAGAIN / EWOULDBLOCK

2013-05-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: Deciding what's best to do at this point without breaking existent code is not easy, that is why I think that on python = 3.3 we should fix *asynchat* in order to take EAGAIN/EWOULDBLOCK into account and leave asyncore's recv() alone. IMHO for all python

[issue17237] m68k aligns on 16bit boundaries.

2013-05-10 Thread mirabilos
mirabilos added the comment: Hi again, sorry for being a bit late in following up to this. Here are the results for the two runs you requested; these were done on the same machine, intermixed (the first one cache-clean, the second and third run subsequently (so that the third run is

[issue17936] O(n**2) behaviour when adding/removing classes

2013-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Py_None is what PyWeakref_GET_OBJECT() returns when the object is dead. (same as calling () on a weakref, really) The patch looks straightforward to me. 2.7 doesn't receive performance fixes, though, except for large regressions. Also, we've had enough

[issue9687] dbmmodule.c:dbm_contains fails on 64bit big-endian (test_dbm.py fails) when built against gdbm (int vs Py_ssize_t)

2013-05-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9687 ___ ___ Python-bugs-list

[issue17926] PowerLinux dbm failure in 2.7

2013-05-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue9687. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17926 ___ ___

[issue17936] O(n**2) behaviour when adding/removing classes

2013-05-10 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Right, I misread the code. Since the remove_subclass() function is called when a subclass dies, I don't think it is necessary to clear out weak references in add_subclass(). They are there merely to break the reference cycle. Btw, the 'patch diff'

[issue9687] dbmmodule.c:dbm_contains fails on 64bit big-endian (test_dbm.py fails) when built against gdbm (int vs Py_ssize_t)

2013-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be fixed in issue17926. AFAICT the issue doesn't exist on 3.x. -- resolution: - duplicate stage: patch review - committed/rejected status: open - closed superseder: - PowerLinux dbm failure in 2.7 versions: -Python 3.1, Python 3.2

[issue17936] O(n**2) behaviour when adding/removing classes

2013-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Right, I misread the code. Since the remove_subclass() function is called when a subclass dies, I don't think it is necessary to clear out weak references in add_subclass(). They are there merely to break the reference cycle. Agreed. --

[issue5773] Crash on shutdown after os.fdopen(2) in debug builds

2013-05-10 Thread Anselm Kruis
Anselm Kruis added the comment: Hi, I was faced with a very similar problem also caused by an invalid file descriptor. My solution is to set an invalid parameter handler, that does nothing. This effectively disables Dr. Watson. Perhaps this is a suitable solution for other users too. And it

[issue17237] m68k aligns on 16bit boundaries.

2013-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Which supports your suspicion that the optimised case may not be needed at all. So we can just skip the assert when __m68k__ is defined? -- ___ Python tracker rep...@bugs.python.org

[issue17237] m68k aligns on 16bit boundaries.

2013-05-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please repeat the tests with a larger data (1MB or more)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17237 ___

[issue14596] struct.unpack memory leak

2013-05-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: So what about more compact Struct object? This is not only memory issue (a Struct object can require several times larger memory than size of processed data), but performance issue (time of creating such object is proportional to it's size). Here is a

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: Removed file: http://bugs.python.org/file30191/ref435.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___

[issue11016] stat module in C

2013-05-10 Thread Christian Heimes
Christian Heimes added the comment: AP has started to review my patch. I'm not yet sure how we should handle constants and functions when the platform doesn't provide them. For example Windows doesn't have any S_IS*() function like macros and doesn't provide a S_IFBLK constant. We have three

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Eli Bendersky
Eli Bendersky added the comment: I don't see docs in the patch, but perhaps that should be a separate patch to keep reviewing easier. Also, Ethan, number the patch files in some way (like pep-435.1.patch, pep-435.N.patch) as they go through rounds of reviews. -- assignee: docs@python

[issue5901] missing meta-info in documentation pdf

2013-05-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: This seems to be fixed now. I downloaded python-3.3.1-docs-pdf-letter.tar.bz2 and ran pdfinfo on using.pdf: Title: Python Setup and Usage Subject: Keywords: Author: Guido van Rossum, Fred L. Drake, Jr., editor Creator:

[issue17941] namedtuple should support fully qualified name for more portable pickling

2013-05-10 Thread Eli Bendersky
Eli Bendersky added the comment: A question that came up while reviewing the new enum code: module or module_name for this extra argument? The former is shorter, but the latter is more correct in a way. -- ___ Python tracker rep...@bugs.python.org

[issue17941] namedtuple should support fully qualified name for more portable pickling

2013-05-10 Thread Guido van Rossum
Guido van Rossum added the comment: Module, please. The class attribute is also called __module__ after all. On Friday, May 10, 2013, Eli Bendersky wrote: Eli Bendersky added the comment: A question that came up while reviewing the new enum code: module or module_name for this extra

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Eli Bendersky
Eli Bendersky added the comment: OK, I sent another batch of reviews through the code review system - Ethan you should've gotten an email about it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947

[issue17941] namedtuple should support fully qualified name for more portable pickling

2013-05-10 Thread Eli Bendersky
Eli Bendersky added the comment: On Fri, May 10, 2013 at 7:02 AM, Guido van Rossum rep...@bugs.python.orgwrote: Guido van Rossum added the comment: Module, please. The class attribute is also called __module__ after all. Makes sense. Thanks. --

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Eli Bendersky
Eli Bendersky added the comment: Regarding module vs. module_name for the extra param in the functional API, Guido rightly points out in issue 17941 that __module__ is the class attribute, so module is a consistent choice. -- ___ Python tracker

[issue14596] struct.unpack memory leak

2013-05-10 Thread Meador Inge
Meador Inge added the comment: Serhiy Storchaka added the comment: So what about more compact Struct object? I already implemented the count optimization as a part of my patch for implementing PEP 3188 in issue3132. I need to rebaseline the patch. It has gotten stale. Hopefully there is

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___ ___ Python-bugs-list mailing

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Ethan Furman
Ethan Furman added the comment: Incorporated comments. -- Added file: http://bugs.python.org/file30195/pep-0435_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- hgrepos: -189 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___ ___ Python-bugs-list mailing

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___ ___ Python-bugs-list

[issue1045893] warning '_POSIX_C_SOURCE redefined' when include Python.h

2013-05-10 Thread Jonathan Wakely
Jonathan Wakely added the comment: Insisting on including Python.h first is just broken. GNU libc's /usr/include/features.h will override it anyway when _GNU_SOURCE is defined: # undef _POSIX_C_SOURCE # define _POSIX_C_SOURCE200809L # undef _XOPEN_SOURCE # define _XOPEN_SOURCE 700 So

[issue17927] Argument copied into cell still referenced by frame

2013-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d331e14cae42 by Guido van Rossum in branch 'default': #17927: Keep frame from referencing cell-ified arguments. http://hg.python.org/cpython/rev/d331e14cae42 -- nosy: +python-dev ___ Python tracker

[issue17927] Argument copied into cell still referenced by frame

2013-05-10 Thread Guido van Rossum
Guido van Rossum added the comment: Ok, the deed is done. Thanks for your review, Benjamin! I've reassigned it to you so you can fix up the test if you want to. What would you think of a backport to 3.3? -- assignee: gvanrossum - benjamin.peterson resolution: - fixed

[issue17883] Fix buildbot testing of Tkinter

2013-05-10 Thread Zachary Ware
Zachary Ware added the comment: Thanks for your response, Martin. Martin v. Löwis wrote: Zach: Temporarily committing changes to test specific buildbot issues is fine I suppose it would also be beneficial to get some output from the other bots which are *not* failing, to have something to

[issue17944] Refactor test_zipfile

2013-05-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file30197/test_zipfile_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17944 ___

[issue17949] operator documentation mixup

2013-05-10 Thread Martijn Pieters
New submission from Martijn Pieters: Rev 83684 (http://hg.python.org/cpython/rev/5885c02120f0) managed to move the `attrgetter()` `versionadded` and `versionchanged` notes down to the `itemgetter()` documentation instead, by moving the `itemgetter()` signature *up* above these lines. Now the

[issue17237] m68k aligns on 16bit boundaries.

2013-05-10 Thread mirabilos
mirabilos added the comment: Antoine: precisely. Serhiy: sure. The times are now in msec per loop. I did three subsequent runs, so the second and third tuple are cache-warm. Without assert: (89,88), (87,87), (89,86) Without block : (79,78), (78,78), (79,78) And in a second run: Without

[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2013-05-10 Thread Martijn Pieters
Martijn Pieters added the comment: The 2.7 patch shifted the `itemgetter()` signature to above the `attrgetter()` change and new notes. New patch to fix that in issue #17949: http://bugs.python.org/issue17949 -- nosy: +mjpieters ___ Python tracker

[issue17949] operator documentation mixup

2013-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c93a631e95a by Ezio Melotti in branch '2.7': #17949: fix merge glitch in itemgetter signature. Patch by Martijn Pieters. http://hg.python.org/cpython/rev/9c93a631e95a -- nosy: +python-dev ___ Python

[issue17949] operator documentation mixup

2013-05-10 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement ___ Python tracker

[issue995907] memory leak with threads and enhancement of the timer class

2013-05-10 Thread Charles-François Natali
Charles-François Natali added the comment: I'm attaching a proof of concept code for a ScheduledExecutor interface, and a ScheduledThreadPoolExecutor implementation (unfortunately I can't upload it as a mercurial diff for now). Here's what the API looks like: from concurrent.futures import

[issue17904] bytes should be listed as built-in function for 2.7

2013-05-10 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a patch. Do you think it should be added under the string signature too? It will make linking easier, but it might be more confusing for users. -- keywords: +patch nosy: +chris.jerdonek, ezio.melotti stage: needs patch - patch review type:

[issue17927] Argument copied into cell still referenced by frame

2013-05-10 Thread Martin Morrison
Martin Morrison added the comment: Our usage of Python would certainly benefit from the backport. We are embedding Python 3.3 in a system with requirements that lead us to disable the gc in most cases, so cycles are an obvious problem for us. Cycles created inadvertently, such as this, are

[issue17468] Generator memory leak

2013-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: The issue17807 patch has now been committed and should solve this issue. I would like to encourage anyone to test this change, as it is quite a significant departure from the previous semantics: http://mail.python.org/pipermail/python-dev/2013-May/126102.html

[issue17907] Deprecate imp.new_module() in favour of types.ModuleType

2013-05-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17907 ___

[issue17920] Documentation: complete ordering should be total ordering

2013-05-10 Thread Ezio Melotti
Ezio Melotti added the comment: Raymond, since this has been merged to default too in e163c13b941c, can the issue be closed or is there something else left to do? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org

[issue17923] test glob with trailing slash fail

2013-05-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Library (Lib) nosy: +ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17923 ___

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-10 Thread Ethan Furman
Ethan Furman added the comment: More adjustments due to review. -- Added file: http://bugs.python.org/file30202/pep-0435_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___

[issue17940] extra code in argparse.py

2013-05-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +bethard stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17940 ___

[issue17906] JSON should accept lone surrogates

2013-05-10 Thread Bob Ippolito
Bob Ippolito added the comment: The patch that I wrote for simplejson is here (it differs a bit from serhiy's patch): https://github.com/simplejson/simplejson/commit/35816bfe2d0ddeb5ddcc68239683cbb35b7e3ff2 I discovered another bug along the way in the pure-Python scanstring, int(s, 16) will

[issue17948] HTTPS and sending a big file size hangs.

2013-05-10 Thread James O'Cull
James O'Cull added the comment: We have more information on this bug here. It's SSL v2 related when pushing to IIS. http://stackoverflow.com/a/16486104/97964 Here's a paste from the StackOverflow answer: I found a few ways of dealing with this issue: To fix this server-side

  1   2   >