[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2012-03-27 Thread Victor Lin
Victor Lin added the comment: My environment is Windows 7 64bits with VC++ 2008 Express and Python2.7.2. I encountered same problem, I have tried all solution posted here, but non of them work. Eventually, I add "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin" to my PATH and it wo

[issue14386] Expose dictproxy as a public type

2012-03-27 Thread Georg Brandl
Georg Brandl added the comment: But it has nothing to do with weakrefs, so... -- nosy: +georg.brandl ___ Python tracker ___ ___ Pytho

[issue14412] Sqlite Integer Fields

2012-03-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Is that with the 32-bit Python on a 64-bit copy of Windows? No, it was the 64-bit version. -- ___ Python tracker ___ __

[issue14426] date format problem in Cookie/http.cookies

2012-03-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +orsenthil stage: -> test needed title: Lib/Cookie.py date format problem -> date format problem in Cookie/http.cookies versions: -Python 3.1 ___ Python tracker

[issue14386] Expose dictproxy as a public type

2012-03-27 Thread Éric Araujo
Éric Araujo added the comment: weakref.mappingview sounds nice to me. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-li

[issue14418] Document differences in SocketServer between Python 2.6 and 2.7

2012-03-27 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> needs patch versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue14408] Support the load_tests protocol in the stdlib tests

2012-03-27 Thread Matt Joiner
Matt Joiner added the comment: I think if you can correctly construct the same test case list using discovery then that's far superior. But I haven't tried this, and don't know if you can correctly predicate the support classes using only class decorators. --

[issue14136] Simplify PEP 409 command line test and move it to test_cmd_line_script

2012-03-27 Thread Nick Coghlan
Nick Coghlan added the comment: Yup, I plan to get a few things like this incorporated once I have broadband access at home again. Probably won't be early enough to get things into alpha 2, but they should make it for alpha 3. -- ___ Python tracker

[issue14408] Support the load_tests protocol in the stdlib tests

2012-03-27 Thread Éric Araujo
Éric Araujo added the comment: I’m a bit disappointed to see that the files after the change are as long. I hoped we could avoid explicitly listing test cases, thanks to auto-discovery of TestCase subclasses combined with skips for specific platforms or optional modules. Of course this woul

[issue14357] Distutils2 does not work with virtualenv

2012-03-27 Thread Éric Araujo
Éric Araujo added the comment: Alex and I found the real issue: it’s about caching of scripts in the build directory. d2 works in a virtualenv, closing :) -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> distutils[2] should recreate scr

[issue10374] distutils[2] should recreate scripts in the build tree

2012-03-27 Thread Éric Araujo
Éric Araujo added the comment: I now think that this should be fixed in d1 too. We could just always rebuild scripts (it’s just a file copy), or implement the matching idea from my previous message. To answer my own question: > Or is there a rule that says build_* command only look at timeta

[issue13614] setup.py register fails if long_description contains ReST

2012-03-27 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. The suggested fix on the Ubuntu report looks indeed good. A test is needed to confirm it. I’ll be leading a sprint in Montreal soon and will put this bug on the list. -- ___ Python tracker <

[issue13959] Re-implement parts of imp in pure Python

2012-03-27 Thread Eric Snow
Eric Snow added the comment: (Éric, I'd reply in the review if reitveld recognized my current username -- see http://psf.upfronthosting.co.za/roundup/meta/issue402. FYI, I also did not get an email for your review, which is likely related to that issue.) Regarding __all__, I didn't realize t

[issue14357] Distutils2 does not work with virtualenv

2012-03-27 Thread Éric Araujo
Éric Araujo added the comment: Just logged into your machine to try to reproduce, could not (check the ~merwok/.bash_history file). -- ___ Python tracker ___ __

[issue12857] Expose called function on frame object

2012-03-27 Thread Eric Snow
Eric Snow added the comment: for reference, a related issue: http://bugs.python.org/issue13672 -- ___ Python tracker ___ ___ Pytho

[issue12857] Expose called function on frame object

2012-03-27 Thread Eric Snow
Eric Snow added the comment: It's been a while and I probably need to clean up that last patch a little. I also need to address the questions of: 1. f_func for class/module execution 2. thread-safety see: http://mail.python.org/pipermail/python-ideas/2011-August/011321.html and http://mail.p

[issue14428] Implementation of the PEP 418

2012-03-27 Thread STINNER Victor
New submission from STINNER Victor : Attached patch implements the PEP 418: add time.monotonic() and time.hires(). In practice, it replaces time.steady() by time.hires() and time.steady(strict=True) by time.monotonic(). -- components: Library (Lib) files: pep418.patch keywords: patch m

[issue14412] Sqlite Integer Fields

2012-03-27 Thread Mendez
Mendez added the comment: Is that with the 32-bit Python on a 64-bit copy of Windows? I've tried it on a different machine, again running Windows 7 64-bit and I'm getting the same incorrect results. -- ___ Python tracker

[issue14136] Simplify PEP 409 command line test and move it to test_cmd_line_script

2012-03-27 Thread Ethan Furman
Ethan Furman added the comment: Modified test name to test_pep_409_verbiage(); modified test body to use same pattern as other tests, thus eliminating the dangling test script files after the test was run. -- Added file: http://bugs.python.org/file25052/raise_from_none_test_cleanup_3.

[issue14419] Faster ascii decoding

2012-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As you can see, the unpatched code does not depend on the alignment. With patches aligned data (which constitute the vast majority, if not all) decoded much faster and non-aligned data decoded sometimes slightly slower. Time of decoding 2-10-bytes practical

[issue14419] Faster ascii decoding

2012-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python script too rough tool to measure decoding performance on short strings. To do this I used C. The benchmark scheme is as follows. Taken a big enough chunk of memory to reduce effect of processor cache. This area is splitted into many pieces with the

[issue14136] Simplify PEP 409 command line test and move it to test_cmd_line_script

2012-03-27 Thread Ethan Furman
Ethan Furman added the comment: Nick Coghlan wrote: > Nick Coghlan added the comment: > > Hah, I've been dealing with Python's regression test suite for 8+ years and > there are still cases where I don't understand the rationale for testing > things a particular way (beyond "it must have see

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2012-03-27 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue14425] Improve handling of 'timeout' parameter default in urllib.urlopen

2012-03-27 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue14399] zipfile and creat/update comment

2012-03-27 Thread Ethan Furman
Ethan Furman added the comment: I see a comment around line 240 that says: # It is assumed that the "end of central directory" magic # number does not appear in the comment. Any reason not to add that check to comment.setter? -- nosy: +stoneleaf __

[issue14427] urllib.request.Request get_header and header_items not documented

2012-03-27 Thread R. David Murray
New submission from R. David Murray : These appear from the source to be public methods (and I certainly want to be able to use get_header), but they aren't documented. -- assignee: docs@python components: Documentation messages: 156953 nosy: docs@python, r.david.murray priority: normal

[issue7652] Merge C version of decimal into py3k.

2012-03-27 Thread Stefan Krah
Stefan Krah added the comment: I have a couple of questions about the proposed capsule C API. In order to be useful, it should be possible to set temporary contexts and pass them to functions. For example, PyDec_Add could look like: PyDec_Add(PyObject *a, PyObject *b, PyObject *context); T

[issue14423] Getting the starting date of iso week from a week number and a year.

2012-03-27 Thread Esben Agerbæk Black
Changes by Esben Agerbæk Black : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14423] Getting the starting date of iso week from a week number and a year.

2012-03-27 Thread Esben Agerbæk Black
Esben Agerbæk Black added the comment: I have made a patch as per the "Lifecycle of a patch" quick guide. (http://docs.python.org/devguide/patch.html#lifecycle-of-a-patch) -- keywords: +patch Added file: http://bugs.python.org/file25048/isodates.patch __

[issue14423] Getting the starting date of iso week from a week number and a year.

2012-03-27 Thread Esben Agerbæk Black
Changes by Esben Agerbæk Black : Removed file: http://bugs.python.org/file25040/weekdate.py ___ Python tracker ___ ___ Python-bugs-list mailin

[issue14423] Getting the starting date of iso week from a week number and a year.

2012-03-27 Thread Esben Agerbæk Black
Changes by Esben Agerbæk Black : -- hgrepos: -117 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue14399] zipfile and creat/update comment

2012-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My fault. -- Added file: http://bugs.python.org/file25047/fix_zipfile_comment_3.patch ___ Python tracker ___

[issue14426] Lib/Cookie.py date format problem

2012-03-27 Thread Federico Reghenzani
Federico Reghenzani added the comment: The same problem is present in newest version of Python. I attacched a patch for python 3. -- nosy: +federico.reghenzani versions: +Python 3.1, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file25046/cookie_3.py __

[issue14425] Improve handling of 'timeout' parameter default in urllib.urlopen

2012-03-27 Thread Federico Reghenzani
Federico Reghenzani added the comment: I think the same change is needed in function open(url, data=None[, timeout]) of OpenerDirector. I added this other patch. -- nosy: +federico.reghenzani Added file: http://bugs.python.org/file25045/OpenDirector.patch _

[issue14425] Improve handling of 'timeout' parameter default in urllib.urlopen

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Thanks. Looks good to me. I'll give Senthil a little time to comment, in case he disagrees with my proposal, before committing it. We could conceivably apply this as a bug fix to 3.2, since I don't think there is any backward compatibility issue.

[issue14426] Lib/Cookie.py date format problem

2012-03-27 Thread Müte Invert
New submission from Müte Invert : Cookie.py doesn't format the expiry date correctly. The problematic line is: http://hg.python.org/cpython/file/2.7/Lib/Cookie.py#l393, which should read 'return "%s, %02d %3s %4d %02d:%02d:%02d GMT" % \' (spaces instead of dashes). The RFC specifying the date

[issue14425] Improve handling of 'timeout' parameter default in urllib.urlopen

2012-03-27 Thread Jeff McNeil
Jeff McNeil added the comment: Quick little patch to change the default to None and update the corresponding documentation. -- keywords: +patch nosy: +mcjeff Added file: http://bugs.python.org/file25044/urllib_urlopen_default.patch ___ Python tracke

[issue14399] zipfile and creat/update comment

2012-03-27 Thread R. David Murray
R. David Murray added the comment: The tests don't seem to be included in the new patch. Also, you could modernize the property definition (@property, @comment.setter). -- ___ Python tracker

[issue14390] Tkinter single-threaded deadlock

2012-03-27 Thread Ned Deily
Ned Deily added the comment: For examples of tests that build extension modules, see Lib/packaging/tests/test_command_build_ext.py or the Distutils equivalent, Lib/distutils/tests/test_build_ext.py. These tests are also runnable from installed versions of Python, assuming the user has the ne

[issue14390] Tkinter single-threaded deadlock

2012-03-27 Thread John Bollinger
John Bollinger added the comment: I looked at the packaging tests (thanks), but I didn't find anything useful to me. There were a couple whose names looked promising, but they turned out to be stubs. As far as I can tell, none of those tests actually invoke the system's C compiler, even ind

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: >From what I understand, that defeats the purpose of AUTHPRIV, which is to log >messages that should be logged in a "safer" location than AUTH. That's why I >said it was a special case. In other words, if an application is going to be >logging, say, a pass

[issue14412] Sqlite Integer Fields

2012-03-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: I can't reproduce that. Your test script, with the released 2.7.3rc2, on Windows 7, gives 12349 for me, as it should. -- ___ Python tracker _

[issue14416] syslog missing constants

2012-03-27 Thread Federico Reghenzani
Federico Reghenzani added the comment: We can define AUTHPRIV as AUTH if it doesn't exist in that platform and insert a note in the docs. -- ___ Python tracker ___

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Thinking about this some more, I think that AUTHPRIV is special. You don't want to inadvertently log AUTHPRIV stuff to some other facility. So I think the code patch is good, and we should add a note to the docs that AUTHPRIV may not exist on all platforms

[issue14375] Add socketserver running property

2012-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: (I have not used socketserver so my response is somewhat theoretical.) .__running seems partly if not completely redundant as the negation of .__is_shutdown. However, I do not see that exposed. I suspect that this was not thought to be needed because the api

[issue14386] Expose dictproxy as a public type

2012-03-27 Thread Michael Foord
Michael Foord added the comment: If we do create a proxy module I'd like to suggest adding all or part of Phillip Eby's ProxyTypes: http://pypi.python.org/pypi/ProxyTypes I haven't used it directly, but did read through it a while ago and have ended up re-implementing chunks of it myself sev

[issue14420] winreg SetValueEx DWord type incompatible with value argument

2012-03-27 Thread Bob
Bob added the comment: Likewise, the winreg.QueryValueEx method returns a signed 32 bit value, instead of a 32 bit unsigned value. -- ___ Python tracker ___ ___

[issue14386] Expose dictproxy as a public type

2012-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: There's already a weak proxy class in the weakref module. Not sure a separate module for the other proxies is a good idea. -- nosy: +pitrou ___ Python tracker ___

[issue14288] Make iterators pickleable

2012-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Now, how important do you think type consistency is? when using > iterators, does one ever look at it and test its type? if this is > important, I _could_ take another look at dicts and seta and create > fresh iterators to the dicts and sets made out of the

[issue14425] Improve handling of 'timeout' parameter default in urllib.urlopen

2012-03-27 Thread R. David Murray
New submission from R. David Murray : Currently the prototype uses timeout=socket._GLOBAL_DEFAULT_TIMEOUT, and the docs give the prototype as: urlopen(url, data=None[, timeout], *, cafile=None, capath=None) which is unlike most other Python function prototypes in the docs, and makes no sens

[issue14399] zipfile and creat/update comment

2012-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed patch with tests attached. -- Added file: http://bugs.python.org/file25043/fix_zipfile_comment_2.patch ___ Python tracker ___ _

[issue14422] Pack PyASCIIObject fields to reduce memory consumption of pure ASCII strings

2012-03-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: -1. Using packed structures may violate all kinds of expectations in extension modules. I consider it important that the data block of a string is well-aligned. -- ___ Python tracker

[issue12184] socketserver.ForkingMixin collect_children routine needs to collect only it's children

2012-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1767511] SocketServer.DatagramRequestHandler

2012-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue5824] SocketServer.DatagramRequestHandler Broken under Linux

2012-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue14412] Sqlite Integer Fields

2012-03-27 Thread Mendez
Mendez added the comment: I've done some more checking 2.7.3rc1 32-bit works as expected. If I replace sqlite3.dll _sqlite3.lib in rc2 32-bit with those from rc1 then that fixes the problem. -- ___ Python tracker

[issue14288] Make iterators pickleable

2012-03-27 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I've incorporated antoine's comments and the proposed internal function name into a new patch. A lot of the changes concerned thecking the type() of the unpickled iterator. Now, it wasn't a specific design goal to get the exact same objects back, onl

[issue13749] socketserver can't stop

2012-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue14390] Tkinter single-threaded deadlock

2012-03-27 Thread R. David Murray
R. David Murray added the comment: I believe there is an example in the packaging unit tests of building an extension module in a test (but I'm not 100% sure). Also, the fact that the test will deadlock if it fails is not a deal breaker: the test should pass normally, and if it fails the buil

[issue14386] Expose dictproxy as a public type

2012-03-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue14399] zipfile and creat/update comment

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Got you. We'll definitely go with the more complete fix, then. -- ___ Python tracker ___ ___ Pyth

[issue14399] zipfile and creat/update comment

2012-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is the second advantage. The first one is that nothing is to be written when zipfile opened in a mode "a", if we don't change anything. -- ___ Python tracker _

[issue14390] Tkinter single-threaded deadlock

2012-03-27 Thread John Bollinger
John Bollinger added the comment: For what it's worth, I can convert my standalone test into a PyUnit testcase easily enough (or so it appears). I'm having trouble, however, figuring out how to get the extension it depends on built and accessible to the test, yet not installed with the norma

[issue14419] Faster ascii decoding

2012-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This may also depend on the processor and compiler. I have AMD Athlon > 64 X2 4600+ (2-core, 2.4GHz, 512 KB cache) and use gcc 4.4.3 on 32-bit > Linux. Then by choosing a string length that exceeds the L2 cache size, you may have found an ideal case for you

[issue14419] Faster ascii decoding

2012-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > New tests. I'm not conviced by the patch: it slows down the decoder for > "short" strings. I don't understand which kind of ASCII encoded strings > (specific length or content?) are optimized by the patch. May be you forgot the -r? Add -r 100 or -r 1000 and

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Close. We either need to mention that LOG_AUTHPRIV is only defined if the platform defines it, or we need to change the implementation so that it is always defined (by mapping it to some other facility if it doesn't exist). I'm of mixed mind about it: the

[issue14416] syslog missing constants

2012-03-27 Thread Federico Reghenzani
Federico Reghenzani added the comment: Done. I'm a newbie, I hope I did it right :) -- Added file: http://bugs.python.org/file25041/syslog_doc.patch ___ Python tracker ___ _

[issue14420] winreg SetValueEx DWord type incompatible with value argument

2012-03-27 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> brian.curtin components: +Extension Modules stage: -> needs patch ___ Python tracker ___ _

[issue14399] zipfile and creat/update comment

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch. The advantage of the more complicated way being that you get an immediate TypeError instead of a delayed one? Is there any other advantage? (That's probably enough reason, though :) Now we just need a unit test for this. -- s

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: Frederico: thanks for the patch. Do you want to do the doc patches as well? -- ___ Python tracker ___ ___

[issue14424] document PyType_GenericAlloc

2012-03-27 Thread Eli Bendersky
New submission from Eli Bendersky : PyType_GenericAlloc is not documented in http://docs.python.org/dev/c-api/type.html -- assignee: docs@python components: Documentation keywords: easy messages: 156917 nosy: docs@python, eli.bendersky priority: low severity: normal status: open title:

[issue14416] syslog missing constants

2012-03-27 Thread R. David Murray
R. David Murray added the comment: That's probably reasonable (we have precedents for that in other modules), except that that's not how the older possibly-not-there constants work. For backward compatibility reasons we can't change the older constants, but I don't see any reason we can't do

[issue14416] syslog missing constants

2012-03-27 Thread Federico Reghenzani
Changes by Federico Reghenzani : -- nosy: +Federico.Reghenzani ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14288] Make iterators pickleable

2012-03-27 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Btw, regarding compatibility: The docs say " The pickle serialization format is guaranteed to be backwards compatible across Python releases." I take this to mean the serialization format itself. I don't think there is a broader guarantee that pickl

[issue14419] Faster ascii decoding

2012-03-27 Thread STINNER Victor
STINNER Victor added the comment: New tests. I'm not conviced by the patch: it slows down the decoder for "short" strings. I don't understand which kind of ASCII encoded strings (specific length or content?) are optimized by the patch. Unpatched: $ ./python -m timeit -n 5 -r 100 -s 'data

[issue14423] Getting the starting date of iso week from a week number and a year.

2012-03-27 Thread Esben Agerbæk Black
New submission from Esben Agerbæk Black : An enhancement request to make available the date of the first iso weekday of any week of any year. -- files: weekdate.py hgrepos: 117 messages: 156913 nosy: Esben.Agerbæk.Black priority: normal severity: normal status: open title: Getting the s

[issue14399] zipfile and creat/update comment

2012-03-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25039/fix_zipfile_comment_complex.patch ___ Python tracker ___ ___ Python

[issue14399] zipfile and creat/update comment

2012-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The bug only occurs for non-empty archives. There are two ways of fixing this bug -- very simple and no so simple. Patches are attached. -- keywords: +patch nosy: +storchaka Added file: http://bugs.python.org/file25038/fix_zipfile_comment_simple.pat

[issue13165] Integrate stringbench in the Tools directory

2012-03-27 Thread STINNER Victor
STINNER Victor added the comment: > What, do you mean, "please"? This is exactly what this issue is about. I mean that it is a good idea to integrate the tool, I want it in Python source tree! Go ahead. -- ___ Python tracker

[issue14422] Pack PyASCIIObject fields to reduce memory consumption of pure ASCII strings

2012-03-27 Thread STINNER Victor
STINNER Victor added the comment: Compare stringio total: 160.84 (unpatched) vs 160.53 (patched). I don't see any difference in the benchmarks results. The small differnces are just the noise of the benchmark. -- ___ Python tracker

[issue13165] Integrate stringbench in the Tools directory

2012-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: What, do you mean, "please"? This is exactly what this issue is about. -- ___ Python tracker ___ __

[issue14422] Pack PyASCIIObject fields to reduce memory consumption of pure ASCII strings

2012-03-27 Thread STINNER Victor
STINNER Victor added the comment: iobench and stringbench results on unpatched Python: $ ./python Tools/iobench/iobench.py -t Preparing files... Python 3.3.0a1+ (default:51016ff7f8c9, Mar 27 2012, 13:19:52) [GCC 4.6.1] Unicode: PEP 393 Linux-3.0.0-16-generic-pae-i686-with-debian-wheezy-sid Tex

[issue13165] Integrate stringbench in the Tools directory

2012-03-27 Thread STINNER Victor
STINNER Victor added the comment: Please integrate stringbench into the HG repository. I will try to improve after its inclusion. -- ___ Python tracker ___

[issue14288] Make iterators pickleable

2012-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, please take a look at the review link. There are already some comments there. -- ___ Python tracker ___

[issue14422] Pack PyASCIIObject fields to reduce memory consumption of pure ASCII strings

2012-03-27 Thread STINNER Victor
New submission from STINNER Victor : It is possible to reduce PyASCIIObject.state to 8 bits instead of 32, move it to the end (exchange wstr and state) of the structure and pack the structure. As a result, the structure size is reduced by 3 bytes (state type changes from int to char). I expec

[issue14288] Make iterators pickleable

2012-03-27 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Raymond had already reviewed it, and sbt. I wasn't aware of any more pending reviews, but I'll wait for yours, of course. -- ___ Python tracker _

[issue14288] Make iterators pickleable

2012-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Okay, I'll go ahead, fix the 'iter()' trick api name and apply the > patch. Then we'll see what happens :). Please wait for reviews. -- ___ Python tracker

[issue14288] Make iterators pickleable

2012-03-27 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Okay, I'll go ahead, fix the 'iter()' trick api name and apply the patch. Then we'll see what happens :). Any suggestion towards what documentation changes are needed? I don't think the list of pickleable objects is made explicit anywhere, it is larg

[issue11826] Leak in atexitmodule

2012-03-27 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 3.2 ___ Python tracker ___ _

[issue14419] Faster ascii decoding

2012-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > q is not the address of the Unicode string, but the address of the > data following the Unicode structure in memory. Strings created by > PyUnicode_New() are composed on one unique memory block: {structure, > data}. I know all that. #define _PyUnicode_COMP

[issue11826] Leak in atexitmodule

2012-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7c48bb929e6e by Stefan Krah in branch 'default': Issue #11826: Fix memory leak in atexitmodule. http://hg.python.org/cpython/rev/7c48bb929e6e -- nosy: +python-dev ___ Python tracker

[issue14419] Faster ascii decoding

2012-03-27 Thread STINNER Victor
STINNER Victor added the comment: >> +#if SIZEOF_LONG <= SIZEOF_VOID_P >> +    if (!((size_t) p & LONG_PTR_MASK)) { >> >> I wrote "q", not "p". You have to check p and q alignement to be able >> to dereference p and q pointers. > > Initial q (destination) is always pointer-aligned, because PyASC

[issue14420] winreg SetValueEx DWord type incompatible with value argument

2012-03-27 Thread Tim Golden
Tim Golden added the comment: Brian - I think this is your area -- nosy: +brian.curtin, tim.golden ___ Python tracker ___ ___ Python-

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2012-03-27 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13608] remove born-deprecated PyUnicode_AsUnicodeAndSize

2012-03-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > The Py_UNICODE* type is deprecated but since Python 3.3, Py_UNICODE=wchar_t > and wchar_t* is a common type on Windows. PyUnicode_AsUnicodeAndSize() is > used to encode Python strings to ca