[issue10300] Documentation of three PyDict_* functions

2010-11-03 Thread Hagen Fürstenau
Hagen Fürstenau added the comment: The ReST links in http://docs.python.org/py3k/c-api/dict.html#PyDict_Items seem to be broken. -- ___ Python tracker ___ _

[issue10243] Packaged Pythons

2010-11-03 Thread Ned Deily
Changes by Ned Deily : Removed file: http://bugs.python.org/file19480/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue10243] Packaged Pythons

2010-11-03 Thread Ned Deily
Ned Deily added the comment: For what it's worth, the python.org installers for Mac OS X do include a libpython shared library. As of Python 2.7 (and 3.2), the installer includes a symlink to make it easier to find: $ cd /Library/Frameworks/Python.framework/Versions/2.7/lib $ ls -l libpython

[issue9015] array.array.tofile cannot write arrays of sizes > 4GB, even compiled for amd64

2010-11-03 Thread Martin Spacek
Martin Spacek added the comment: NumPy is addressing this with a workaround in its ndarray, calling fwrite multiple times in reasonably sized chunks. See http://projects.scipy.org/numpy/ticket/1660 -- nosy: +mspacek type: -> crash ___ Python track

[issue10307] compile error in readline.c

2010-11-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: The problem was in py3k, due to a minor overlook in r85680. Fixed in r86153. -- components: +Build resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2 ___ Python tracker

[issue10155] Add fixups for encoding problems to wsgiref

2010-11-03 Thread And Clover
And Clover added the comment: Thanks. Some of those additions in _needs_transcode are potentially controversial, though. I'm not wholly sure it's the right thing to transcode these. Some of them may not actually come from the request, eg `REMOTE_USER` may be filled in by IIS's Windows authen

[issue10307] compile error in readline.c

2010-11-03 Thread Senthil Kumaran
New submission from Senthil Kumaran : /py3k/Modules/readline.c: In function flex_complete: /py3k/Modules/readline.c:877: error: on_completion undeclared (first use in this function) -- assignee: orsenthil messages: 120376 nosy: orsenthil priority: normal severity: normal status: open t

[issue10306] Weakref callback exceptions should be turned into warnings.

2010-11-03 Thread Julian
New submission from Julian : If a weakref callback raises an exception, weakref writes out some text (to stderr, I think) and ignores it. I think it would be more appropriate if weakref emitted that text using the Python warning module, to allow it to be better controlled. Consider this code

[issue7317] Display full tracebacks when an error occurs asynchronously

2010-11-03 Thread Julian
Julian added the comment: Amaury asks: "Is there an already existing flag that could control this behaviour?" I wonder if the warnings module could be used. -- nosy: +oddthinking ___ Python tracker __

[issue6058] Add cp65001 to encodings/aliases.py

2010-11-03 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue6058] Add cp65001 to encodings/aliases.py

2010-11-03 Thread David Sankel
Changes by David Sankel : -- nosy: +David.Sankel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue1602] windows console doesn't print utf8 (Py30a2)

2010-11-03 Thread David Sankel
Changes by David Sankel : -- nosy: +David.Sankel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2010-11-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: One nuance, it may be better to implement as: a_cnt = collections.Counter(iter(a)) b_cnt = collections.Counter(iter(b)) That will bypass the special handling the Counter constructor has if the argument is a Mapping. --

[issue10273] Clean-up Unittest API

2010-11-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: > assertLess, on the other hand, I often get wrong, > since it is *not* __lt__ spelled out. Right. Even Michael gets that one wrong. Meditate on why Guido created the special method __lt__ instead of __less_than__. Regardless of why Guido made that choi

[issue10260] Add a threading.Condition.wait_for() method

2010-11-03 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: On Tue, Nov 2, 2010 at 4:29 AM, Antoine Pitrou wrote: >> I spent some time thinking of a name.  I tried wait_predicate and >> predicate_wait, but wait_for seemed natural.  Any other ideas? >> How about wait_until_true? > > wait_for is ok IMO. Agreed. >> My o

[issue10273] Clean-up Unittest API

2010-11-03 Thread R. David Murray
R. David Murray added the comment: assertCountsEqual is IMO much clearer than assertItemsCountsEqual (or however you spell it). I was unclear on what the latter did, but the former is fairly clear. Ezio's suggestion is also clearer. Raymond, since you said 'never' your statement about asser

[issue10273] Clean-up Unittest API

2010-11-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: > For the regexp methods we should use assertRegexp assertRegex is better. it matches the name used in other unittest implementations, there is not confusion with camel casing RegExp vs Regexp, and it matches the former name of Python's own regex module.

[issue1926] NNTPS support in nntplib

2010-11-03 Thread StevenJ
StevenJ added the comment: I too was just looking at NNTPS support because I have a need for it. The latest patch looks like great work and I think the things it implements are needed for this library. But it seems to me that the latest patch combines 3 things which might otherwise be able t

[issue10305] Cleanup up ResourceWarnings in multiprocessing

2010-11-03 Thread Brian Curtin
New submission from Brian Curtin : As shown in a debug run of test_multiprocessing, at least two places in managers.py apparently leave open sockets. Lines 786 and 805 are the culprits, both util log lines. -- components: Library (Lib) messages: 120367 nosy: asksol, brian.curtin priori

[issue9732] Addition of getattr_static for inspect module

2010-11-03 Thread Michael Foord
Changes by Michael Foord : Added file: http://bugs.python.org/file19484/test_static.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9732] Addition of getattr_static for inspect module

2010-11-03 Thread Michael Foord
Michael Foord added the comment: Updated implementation that handles instances with inherited __slots__ members and attributes from C descriptors correctly. I think is both "good enough" and useful enough to add to inspect. (The remaining constraints are rare or pathological.) -- Add

[issue9732] Addition of getattr_static for inspect module

2010-11-03 Thread Michael Foord
Changes by Michael Foord : Removed file: http://bugs.python.org/file18701/test_static.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9732] Addition of getattr_static for inspect module

2010-11-03 Thread Michael Foord
Changes by Michael Foord : Removed file: http://bugs.python.org/file18699/static.py ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10304] error in tutorial triple-string example

2010-11-03 Thread Malte Helmert
Malte Helmert added the comment: Here's a related one if you want to get the sample output really 100% correct. In the last example of Section 3, the output in {>>> a, b = 0, 1 >>> while b < 1000: ... print(b, end=' ') ... a, b = b, a+b ... 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 98

[issue10304] error in tutorial triple-string example

2010-11-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10304] error in tutorial triple-string example

2010-11-03 Thread Malte Helmert
New submission from Malte Helmert : >From Section 3.1.2 of the tutorial: print(""" Usage: thingy [OPTIONS] -hDisplay this usage message -H hostname Hostname to connect to """) produces the following output: _

[issue10303] small inconsistency in tutorial

2010-11-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10273] Clean-up Unittest API

2010-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: An alternative would be adding check_order and check_duplicates to assertSameElements and de-deprecate it. Python 2.7 could be left unchanged because it's too late to add/rename/deprecate methods (it has assertItemsEqual but not assertSameElements). Py3.2 woul

[issue10303] small inconsistency in tutorial

2010-11-03 Thread Malte Helmert
New submission from Malte Helmert : Section "3.1.2. Strings" says "*Once again*, the print() function produces the more readable output.", but as far as I can see (or grep), this is the first time that this aspect of print() is mentioned. -- assignee: d...@python components: Documentat

[issue6081] str.format_from_mapping()

2010-11-03 Thread Eric Smith
Eric Smith added the comment: Updated patch which adds tests and minimal docs. Named changed to format_map. I'll commit this before 3.2b1 unless I hear a complaint. -- keywords: +easy, needs review resolution: -> accepted Added file: http://bugs.python.org/file19482/issue6081-1.diff

[issue10273] Clean-up Unittest API

2010-11-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > For assertItemsEqual Raymond suggests assertElementCountsEqual. See > issue 10242. Why replace a long awkward name with an even longer and more awkward name? -- ___ Python tracker

[issue3699] test_bigaddrspace broken

2010-11-03 Thread Sandro Tosi
Sandro Tosi added the comment: After quite a bit of discussion with Antoine on IRC, here it is a preliminary patch: it uses byte instead of string, but at least it works :) I'll work on a string (additional) test class hopefully tomorrow -- keywords: +patch nosy: +sandro.tosi Added fi

[issue10243] Packaged Pythons

2010-11-03 Thread Max Skaller
Max Skaller added the comment: On Sat, Oct 30, 2010 at 6:40 PM, Martin v. Löwis wrote: It may be there is none. You need to read the bit where I explain that I am not building Python, I'm grabbing pre-made packages, for OSX and for Ubuntu. The problem is that these packages don't seem to supp

[issue10273] Clean-up Unittest API

2010-11-03 Thread Michael Foord
Michael Foord added the comment: Renaming and aliasing methods has a cost. It confuses users of the old names (including future users - the current API is now baked into django 1.3 unless I can get an update done in time for them to change the version they're using). People who use autocomple

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2010-11-03 Thread Michael Foord
Michael Foord added the comment: assertElementCountEqual is good name and I like your implementation suggestion. I'll put this in. I think the implementation fix can go into 2.7 as well but not the rename/aliasing. -- ___ Python tracker

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2010-11-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I'd be inclined to insert a check that falls back > to the "unorderable_list_difference" approach in > the case where "expected != sorted(reversed(expected))". Too fragile and subtle. The method need to be absolutely straight-forward. -- _

[issue10155] Add fixups for encoding problems to wsgiref

2010-11-03 Thread Phillip J. Eby
Phillip J. Eby added the comment: Committed to Py3K in r86146, with added docs and a larger list of transcodable CGI variables. -- ___ Python tracker ___ __

[issue9796] Add summary tables for unittest API

2010-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: I committed the patch in r86141 and a few other fixes in r86142 and r86143. There are still more things I want to fix before I backport all the patches to 3.1 and 2.7 and close the issue. -- stage: needs patch -> commit review _

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2010-11-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Suggestions: * new name: assertCountEqual(a, b) or:assertElementCountEqual(a, b) this name captures the essential service: - unordered comparison where duplicates matter - inputs are "elements", not "items" which means key/value pairs

[issue10302] Add class-functions to hash many small objects with hashlib

2010-11-03 Thread Lukas Lueg
New submission from Lukas Lueg : The objects provided by hashlib mainly serve the purpose of computing hashes over strings of arbitrary size. The user gets a new object (e.g. hashlib.sha1()), calls .update() with chunks of data and then finally uses .digest() or .hexdigest() to get the hash. F

[issue8886] zipfile.ZipExtFile is a context manager, but that is not documented

2010-11-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10301] Zipfile cannot be used in "with" Statement

2010-11-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10284] NNTP should accept bytestrings for username and password

2010-11-03 Thread Julien ÉLIE
Julien ÉLIE added the comment: I quote what Russ Allbery has just answered on news.software.nntp: It's completely unspecified what encoding to use for AUTHINFO USER/PASS, which is one of the problems fixed by SASL. Clients should always use SASL where possible because of things like this. No

[issue1500504] Alternate RFC 3986 compliant URI parsing module

2010-11-03 Thread Nick Coghlan
Nick Coghlan added the comment: Just to be clear, even *I* don't think adding urischemes as it stands is a particularly great idea, and I wrote it. The only reason I haven't closed the issue is because I'd like to see it mined for additional tests in test_urlparse and perhaps even implementat

[issue10301] Zipfile cannot be used in "with" Statement

2010-11-03 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue10301] Zipfile cannot be used in "with" Statement

2010-11-03 Thread Alex
Alex added the comment: Context manager support was added in 3.2 -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10300] Documentation of three PyDict_* functions

2010-11-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: r86144 -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10301] Zipfile cannot be used in "with" Statement

2010-11-03 Thread t.steinruecken
New submission from t.steinruecken : Using a ZipFile as a "with"-context dosnt work (Im using the standard Ubuntu version of Python3.1) Python 3.1.2 (r312:79147, Apr 15 2010, 15:35:48) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from zipfile

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2010-11-03 Thread Ask Solem
Ask Solem added the comment: Since you can't specify the return code, `self.terminate` is less flexible than `sys.exit`. I think the original intent is clear here, the method is there for the parent to control the child. You are of course welcome to argue otherwise. By the way, I just read

[issue1500504] Alternate RFC 3986 compliant URI parsing module

2010-11-03 Thread Éric Araujo
Éric Araujo added the comment: Sure, adding tests is a no-brainer. Regarding the module, I’m a bit reluctant. I see value in providing low-level building blocks (think OS calls) and high-level utilities for regular use, but here it seems that urllib.parse and urischemes are at the same level

[issue10284] NNTP should accept bytestrings for username and password

2010-11-03 Thread Julien ÉLIE
Julien ÉLIE added the comment: OK, I understand. I believe it works fine in practice, because people often use ASCII-only characters... I assume it is going to be a problem when the passwords contain 8-bit characters. I doubt it will work fine if I use different news readers on different lo

[issue9995] "setup.py register sdist upload" requires pass to be saved

2010-11-03 Thread anatoly techtonik
anatoly techtonik added the comment: Fix attached. Also on Rietveld - http://codereview.appspot.com/2874041 Could you also backport it to other Python distributions to avoid questions like these: http://stackoverflow.com/questions/3773613/pypi-issues-upload-failed-401-you-must-be-identified-t

[issue10284] NNTP should accept bytestrings for username and password

2010-11-03 Thread R. David Murray
R. David Murray added the comment: What I meant by saying that the spec was broken is that the user is going to be typing the password at a keyboard. The keyboard will generate scan codes. Those scan codes will get interpreted through a system-specific chain of processes until some bytes or

[issue9807] deriving configuration information for different builds with the same prefix

2010-11-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @rpetrov: reusing $LDVERSION does make sense, but then I think the variable is misnamed. I don't like $ABIVERSION either but maybe $BUILDVERSION? Also I think we need to let the substitution for $LDVERSION happen in the Makefile rather than in the configure

[issue10282] IMPLEMENTATION token differently delt with in NNTP capability

2010-11-03 Thread Julien ÉLIE
Julien ÉLIE added the comment: The "nntp_implementation" attribute would be great. OK for the exception. -- ___ Python tracker ___ __

[issue10285] Other status field flags in documentation for NNTP LIST command

2010-11-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Improvement committed in r86140, thank you! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue10171] Ugly buttons in some Tkinter objects in Windows

2010-11-03 Thread Éric Araujo
Éric Araujo added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10282] IMPLEMENTATION token differently delt with in NNTP capability

2010-11-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Rather than special casing the dict item, I would rather add an "nntp_implementation" attribute containing the desired value. > Besides, shouldn't it be checked that the line is not empty, before > splitting it? If the line is empty, the server is non-conform

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, committed in r86139. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue1926] NNTPS support in nntplib

2010-11-03 Thread Julien ÉLIE
Julien ÉLIE added the comment: >> * starttls() should probably test the `tls_on` attribute first and >> raise a ValueError if True (as you point out, a client mustn't attempt >> to start a new TLS session if one is already active). > > ...I actually meant to do exactly that, but forgot to put th

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-03 Thread Julien ÉLIE
Julien ÉLIE added the comment: > My conclusion in working on the email package is that only > the first space after the ':', if it exists, should be stripped. > That is, even though the RFC (for email) reads as if the space > after the colon is part of the value, in practice it is part > of the

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-03 Thread Julien ÉLIE
Julien ÉLIE added the comment: > Er, so you're disagreeing with your previous message? > Or am I missing something? :) I was saying that if an empty string is returned, then it means that the header exists and is empty. An example was "User-Agent: \r\n". And my remark "I believe None is bette

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2010-11-03 Thread 5houston
5houston added the comment: I vote for the latter. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10297] decimal module documentation is misguiding

2010-11-03 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10299] Add index with links section for built-in functions

2010-11-03 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10299] Add index with links section for built-in functions

2010-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: The attached patch adds a 4-columns table that lists the functions without args. -- assignee: d...@python -> ezio.melotti keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file19478/issue10299.diff ___

[issue9995] "setup.py register sdist upload" requires pass to be saved

2010-11-03 Thread anatoly techtonik
anatoly techtonik added the comment: Do you have a list of more important tasks than this one. I'd like to elaborate, because for me alone it could take a lot of time. What I need now is SVN URL to checkout distutils code and some advice where to start. No guarantees though - if the code is t

[issue2281] Enhanced cPython profiler with high-resolution timer

2010-11-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +krisvale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10284] NNTP should accept bytestrings for username and password

2010-11-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: invalid -> stage: committed/rejected -> needs patch status: closed -> open title: Exception raised when decoding NNTP newsgroup descriptions -> NNTP should accept bytestrings for username and password ___ P

[issue10300] Documentation of three PyDict_* functions

2010-11-03 Thread Hagen Fürstenau
New submission from Hagen Fürstenau : The documentation of the functions PyDict_Items, PyDict_Keys and PyDict_Values is incorrect: They do return PyListObject, but in Python 3.x this is not the same as dict.items() etc. -- assignee: d...@python components: Documentation messages: 12032

[issue10299] Add index with links section for built-in functions

2010-11-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10299] Add index with links section for built-in functions

2010-11-03 Thread nestor
New submission from nestor : The built-in function page (http://docs.python.org/dev/py3k/library/functions.html) is pretty long. Each function has an anchor but unlike the built-in types section there is no quick way to get an overview or jump to a specific function (like open or print) short

[issue10298] zipfile: incorrect comment size will prevent extracting

2010-11-03 Thread rep
New submission from rep : Opening (and thus extracting) zip files with appended junk data is not possible with the way the current zipfile implementation checks validity. Basically the problem comes down to the comment size in the end-of-central-directory record being different from the size o

[issue9981] let make_buildinfo use a temporary directory on windows

2010-11-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Committed to 3.2 in revision 86137 -- resolution: -> accepted status: open -> closed versions: +Python 3.2 -Python 2.7 ___ Python tracker _

[issue10295] _socket.pyd uses winsock2, select.pyd uses winsock 1

2010-11-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: committed as revision 86136 -- resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2010-11-03 Thread Tod Olson
Changes by Tod Olson : -- nosy: +tod ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue10273] Clean-up Unittest API

2010-11-03 Thread R. David Murray
R. David Murray added the comment: assertEquals existed forever, too, but we deprecated that :) (with no intent to remove it, as I understand it). There is no more ambiguity in "assertLessThan" than there is in assertLT, one just has more letters. True, you have to look it up the first time,

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2010-11-03 Thread Nick Coghlan
Nick Coghlan added the comment: So the overall to-do list here is sounding like: 1. Document "Py_buffer->obj" appropriately in both the C API documentation and in PEP 3118 2. Ensure GetBuffer/ReleaseBuffer are used as the moral equivalent of INCREF/DECREF for Py_buffer objects. 3. Check bui

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2010-11-03 Thread Nick Coghlan
Nick Coghlan added the comment: It doesn't help that neither PEP 3118 nor the Py_buffer docs mention the "obj" member of the Py_buffer struct that refers back to the original object providing the buffer - that's fairly fundamental to understanding how PyBuffer_Release and PyMemoryView_FromBuf

[issue10263] "python -m site" does not print path details

2010-11-03 Thread Éric Araujo
Éric Araujo added the comment: Sounds good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2010-11-03 Thread Nick Coghlan
Changes by Nick Coghlan : -- title: get_shape0 in memoryobject.c not checked for error return -> Problems with Py_buffer management in memoryobject.c (and elsewhere?) ___ Python tracker ___

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-03 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, if we're ever creating a new copy of a Py_buffer without calling GetBuffer again on the original object, then *that* is a bug (exactly comparable to copying a PyObject pointer without incrementing the reference count - it's OK if you can guarantee the life

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-03 Thread Roger Upole
Roger Upole added the comment: While on the subject, the docs for PyMemoryView_FromBuffer state that the resulting memoryview takes ownership of the Py_buffer struct and is responsible for freeing any associated memory. It does not do so, which is not surprising. The absence of a standard f

[issue10263] "python -m site" does not print path details

2010-11-03 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, yes, I see what you mean - because runpy ignores the sys.modules cache (by design), it won't see the precached module instance placed there by the bootstrap code. We actually *could* make this work on our end: if we find an existing module in sys.modules,

[issue9995] "setup.py register sdist upload" requires pass to be saved

2010-11-03 Thread anatoly techtonik
anatoly techtonik added the comment: > python setup.py build sdist register upload ... Save your login (y/N)?n running upload Submitting dist\review-r585.zip to http://pypi.python.org/pypi Upload failed (401): You must be identified to edit package information -- __

[issue10297] decimal module documentation is misguiding

2010-11-03 Thread hafiza jameel
New submission from hafiza jameel : the documentation does not show the import statement of decimal module in the introduction: http://docs.python.org/library/decimal.html import should have been done like this: from decimal import * -- assignee: d...@python components: Documentation m

[issue10295] _socket.pyd uses winsock2, select.pyd uses winsock 1

2010-11-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10295] _socket.pyd uses winsock2, select.pyd uses winsock 1

2010-11-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9015] array.array.tofile cannot write arrays of sizes > 4GB, even compiled for amd64

2010-11-03 Thread Christoph Gohlke
Christoph Gohlke added the comment: This seems to be related: http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/7c913001-227e-439b-bf07-54369ba07994 -- nosy: +cgohlke ___ Python tracker __

[issue10296] ctypes catches BreakPoint error on windows 32

2010-11-03 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : import ctypes ctypes.windll.kernel32.DebugBreak() This used to be a handy way to attach a debugger to a running program, by way of JIT debugging. Now ctypes catches and handles this exception so a debugger is never invoked. Bummer. -- mess

[issue9919] gdbinit lineno result is one line in excess

2010-11-03 Thread Georg Brandl
Georg Brandl added the comment: Right. Fixed in r86134. Thanks :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr