[issue15997] NotImplemented needs to be documented

2012-09-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15490] Correct __sizeof__ support for StringIO

2012-09-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file27242/stringio_sizeof-2.7_3.patch ___ Python tracker ___ ___ Python-bugs-

[issue15490] Correct __sizeof__ support for StringIO

2012-09-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file27241/stringio_sizeof-3.2_3.patch ___ Python tracker ___ ___ Python-bugs-

[issue15490] Correct __sizeof__ support for StringIO

2012-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patches updated. Now the computations done in size_t. Note that the patches for the different versions differ. -- Added file: http://bugs.python.org/file27240/stringio_sizeof-3.3_3.patch ___ Python tracker

[issue15997] NotImplemented needs to be documented

2012-09-20 Thread Max
Max added the comment: I agree about reflected operation, although the wording could be clearer ("will try reflected operation" is better worded as "will return the result of the reflected operation called on the swapped arguments".) But what does it mean "or some other fallback"? And what if

[issue15997] NotImplemented needs to be documented

2012-09-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: This must not be documented for NotImplemented, but for the operations itself. On the same page, it says "There are no swapped-argument versions of these methods (to be used when the left argument does not support the operation but the right argument does);

[issue15997] NotImplemented needs to be documented

2012-09-20 Thread Max
New submission from Max: Quoting from http://docs.python.org/reference/datamodel.html#the-standard-type-hierarchy: NotImplemented This type has a single value. There is a single object with this value. This object is accessed through the built-in name NotImplemented. Numeric methods and rich

[issue15421] Calendar.itermonthdates OverflowError

2012-09-20 Thread Cédric Krier
Cédric Krier added the comment: Fix haypo comments -- Added file: http://bugs.python.org/file27239/calendar.patch ___ Python tracker ___ _

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2012-09-20 Thread Stefan Krah
Stefan Krah added the comment: Both lzma and memoryview use PyLong_AsUnsignedLongLong() in the affected code paths. I get this with the msi installed python.exe: >>> import array >>> a = array.array('Q', [1,2,3,4]) >>> m = memoryview(a) >>> m[0] = 4 >>> m[0] 17179869184 >>> And the correct res

[issue15548] Mention all new os functions in What's New in Python 3.3

2012-09-20 Thread STINNER Victor
STINNER Victor added the comment: The doc is now complete. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue15996] pow() for complex numbers is rough around the edges

2012-09-20 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue15996] pow() for complex numbers is rough around the edges

2012-09-20 Thread mattip
New submission from mattip: complex(1., 0.) ** complex(float('inf'), 0.) raises a ZeroDivisionError. In general, complex_power() needs to handle more corner cases. Barring a clear standard for pow() in C99, the documentation for pow 3 in glibc http://www.kernel.org/doc/man-pages/online/pages/ma

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2012-09-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15995] Windows: 3.3.0-rc2.msi: test_lzma fails

2012-09-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15972] wrong error message for os.path.getsize

2012-09-20 Thread Larry Hastings
Larry Hastings added the comment: Patch looks like it'll work fine. But please add regression tests checking that the error message is what we want. Are the new error messages okay with the OP? It looks like now it'll throw TypeError("argument must be string, bytes or integer, not list").

[issue15421] Calendar.itermonthdates OverflowError

2012-09-20 Thread STINNER Victor
STINNER Victor added the comment: Hi Cédric! while True: yield date -date += oneday +try: +date += oneday +except OverflowError: +break You might add a comment explaining why we may get an OverflowError he

[issue15995] Windows: 3.3.0-rc2.msi: test_lzma fails

2012-09-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue15995] Windows: 3.3.0-rc2.msi: test_lzma fails

2012-09-20 Thread Stefan Krah
New submission from Stefan Krah: This is similar to #15993: With the installed Python from the rc2-msi test_lzma fails. I cannot reproduce the failure with python.exe (PGO) compiled from source: ==

[issue11454] email.message import time

2012-09-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15987] Provide a way to compare AST nodes for equality recursively

2012-09-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15973] Segmentation fault on timezone comparison

2012-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset f17f67f0ec4b by Alexander Belopolsky in branch '3.2': Issue #15973: fixed 3.2 backport. http://hg.python.org/cpython/rev/f17f67f0ec4b -- ___ Python tracker ___

[issue15973] Segmentation fault on timezone comparison

2012-09-20 Thread STINNER Victor
STINNER Victor added the comment: Your change does not compile on Windows: _datetimemodule.c ..\Modules\_datetimemodule.c(3247) : error C2065: 'Py_RETURN_NOTIMPLEMENTED' : undeclared identifier http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.2/builds/194/steps/compile/logs/s

[issue15990] solidify argument/parameter terminology

2012-09-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15989] Possible integer overflow of PyLong_AsLong() results

2012-09-20 Thread Mark Dickinson
Mark Dickinson added the comment: In the Objects subdirectory (which is all I've looked at so far), I see issues in: - fileobject.c (PyObject_AsFileDescriptor) - structseq.c (PyLong_AsLong return value used as a Py_ssize_t; probably safe, but it would be better to use PyLong_AsSsize_t). - u

[issue15973] Segmentation fault on timezone comparison

2012-09-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Leeaving the issue open in case it will go to 3.3.0. Reassigning to the RM. -- assignee: belopolsky -> georg.brandl resolution: -> fixed stage: commit review -> committed/rejected ___ Python tracker

[issue15973] Segmentation fault on timezone comparison

2012-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9fba12ceb2fd by Alexander Belopolsky in branch '3.2': Issue #15973: Fixed segmentation fault on timezone comparison to other types. http://hg.python.org/cpython/rev/9fba12ceb2fd -- nosy: +python-dev ___ P

[issue15989] Possible integer overflow of PyLong_AsLong() results

2012-09-20 Thread Mark Dickinson
Mark Dickinson added the comment: Getting a C int out of a Python int is currently a bit awkward. What do you think about adding a PyLong_AsInt counterpart to PyLong_AsLong? (The alternative is to use PyLong_AsLong and repeat the same overflow detection code in many places.) -- nosy

[issue15959] Declaration mismatch of quick integer allocation counters

2012-09-20 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed; thanks for the patch! (It seems this was fixed in Python 2 some time ago: see issue #4850.) -- nosy: +mark.dickinson resolution: -> fixed status: open -> closed ___ Python tracker

[issue15994] memoryview to freed memory can cause segfault

2012-09-20 Thread Richard Oudkerk
New submission from Richard Oudkerk: A memoryview which does not own a reference to its base object can point to freed or reallocated memory. For instance the following segfaults for me on Windows and Linux. import io class File(io.RawIOBase): def readinto(self, buf): global vie

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2012-09-20 Thread Stefan Krah
New submission from Stefan Krah: I've installed 3.3.0-rc2 on Windows-7 64-bit using the msi installer. I'm getting these failures in test_buffer, but I can *not* reproduce them when I build Win-32/pgo/python.exe from source: ==

[issue15959] Declaration mismatch of quick integer allocation counters

2012-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ed83105731d by Mark Dickinson in branch '3.2': Issue 15959: Fix type mismatch for quick{_neg}_int_allocs. Thanks Serhiy Storchaka. http://hg.python.org/cpython/rev/5ed83105731d New changeset 3504cbb3e1d8 by Mark Dickinson in branch 'default': Iss

[issue15990] solidify argument/parameter terminology

2012-09-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-09-20 Thread Mark Dickinson
Mark Dickinson added the comment: > Mark, please open a new discussion. Done: issue 15992. -- ___ Python tracker ___ ___ Python-bugs

[issue15992] Strict aliasing violations in Objects/unicodeobject.c

2012-09-20 Thread Mark Dickinson
New submission from Mark Dickinson: [Broken out of the discussion in issue 15144] Some of the newly-optimized code in Objects/unicodeobject.c contains strict aliasing violations; under the C standards, this is undefined behaviour (C99 6.5p7). An example occurs in ascii_decode: unsigned

[issue15990] solidify argument/parameter terminology

2012-09-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue15990] solidify argument/parameter terminology

2012-09-20 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15991] BaseHTTPServer with ThreadingMixIn serving wrong data sometimes

2012-09-20 Thread Mikhail Afanasyev
New submission from Mikhail Afanasyev: When using BaseHTTPServer with ThreadingMixIn, sometimes the wrong data is served. The attached script requests normal URL and URLs which are not found in multiple threads using wget (which only saves pages if it gets 200 OK status). Every once in a whil

[issue15985] round() has wrong argument names

2012-09-20 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for the quick commit, Mark. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue15985] round() has wrong argument names

2012-09-20 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed. Thanks for the patch! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue15985] round() has wrong argument names

2012-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset e4037dd73877 by Mark Dickinson in branch '2.7': Issue 15985: fix round argument names in documentation. Thanks Chris Jerdonek. http://hg.python.org/cpython/rev/e4037dd73877 -- ___ Python tracker

[issue15985] round() has wrong argument names

2012-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset eccd94d4ee77 by Mark Dickinson in branch '3.2': Issue 15985: fix round argument names in documentation. Thanks Chris Jerdonek. http://hg.python.org/cpython/rev/eccd94d4ee77 New changeset ad04dd6c07f7 by Mark Dickinson in branch 'default': Issue 159

[issue15985] round() has wrong argument names

2012-09-20 Thread Mark Dickinson
Mark Dickinson added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15990] solidify argument/parameter terminology

2012-09-20 Thread Chris Jerdonek
New submission from Chris Jerdonek: There is currently some ambiguity in our documentation around positional and keyword arguments (e.g. whether positional means "position-only" or "non-keyword" (roughly) and whether various terms and definitions should be for the calling syntax or the functio

[issue15973] Segmentation fault on timezone comparison

2012-09-20 Thread Stefan Krah
Stefan Krah added the comment: Looks good. It would be nice to have this in 3.3.0. There are a couple of blockers open, so perhaps this could go in, too. Georg, are we going to have an rc3 anyway? -- nosy: +georg.brandl ___ Python tracker

[issue15989] Possible integer overflow of PyLong_AsLong() results

2012-09-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: There are several places where the result of PyLong_AsLong() assigned to variable of type int. It can cause unknown issues on platforms with sizeof(int) != sizeof(long). All 140 cases of PyLong_AsLong() usage should be checked. -- assignee: storcha

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in 3.3(.1). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.3 -Python 3.4 ___ Python tracker ___

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 99112b851b25 by Antoine Pitrou in branch 'default': Issue #15144: Fix possible integer overflow when handling pointers as integer values, by using Py_uintptr_t instead of size_t. http://hg.python.org/cpython/rev/99112b851b25 -- nosy: +pytho

[issue15985] round() has wrong argument names

2012-09-20 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is a patch. Also, I checked, and there is already a test for the keyword arguments: http://hg.python.org/cpython/file/dcced3bd22fe/Lib/test/test_builtin.py#l1239 -- keywords: +needs review, patch stage: needs patch -> patch review Added file: htt

[issue15988] Inconsistency in overflow error messages of integer argument

2012-09-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: PyArg_ParseTuple raises inconsistent overflow error messages for small integer formats. For example: >>> import _testcapi >>> _testcapi.getargs_b(100) 100 >>> _testcapi.getargs_b(1000) Traceback (most recent call last): File "", line 1, in OverflowError:

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch! These macros will be useful. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue15987] Provide a way to compare AST nodes for equality recursively

2012-09-20 Thread Julian Berman
New submission from Julian Berman: As is, as far as I can tell, there's no way to easily compare two AST nodes to see if they have the same children and same fields (recursively). I'm writing some unit tests for a NodeTransformers, so I've settled for comparing `ast.dump()`s of each, which is

[issue15986] memoryview: expose 'buf' attribute

2012-09-20 Thread Stefan Krah
Changes by Stefan Krah : -- components: Interpreter Core nosy: dabeaz, skrah priority: normal severity: normal stage: needs patch status: open title: memoryview: expose 'buf' attribute type: enhancement versions: Python 3.4 ___ Python tracker

[issue15972] wrong error message for os.path.getsize

2012-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. Are there any tests for string and bytes arguments as filenames? I will add float and list there. -- keywords: +patch Added file: http://bugs.python.org/file27235/posix_path_converter.patch ___ Py

[issue15421] Calendar.itermonthdates OverflowError

2012-09-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue15421] Calendar.itermonthdates OverflowError

2012-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Context: http://issues.roundup-tracker.org/issue2550765 -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue15985] round() has wrong argument names

2012-09-20 Thread Mark Dickinson
Mark Dickinson added the comment: A case where fixing the names improves both accuracy *and* readability! -- nosy: +mark.dickinson ___ Python tracker ___

[issue15985] round() has wrong argument names

2012-09-20 Thread Chris Jerdonek
New submission from Chris Jerdonek: The documentation for round() says: round(x[, n]) Return the floating point value x rounded to n digits after the decimal point. If n is omitted, it defaults to zero. Delegates to x.__round__(n). (from http://docs.python.org/dev/library/functions.html#round

[issue15985] round() has wrong argument names

2012-09-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15421] Calendar.itermonthdates OverflowError

2012-09-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15984] Wrong documentation for PyUnicode_FromObject()

2012-09-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: In the documentation it is written that PyUnicode_FromObject() is a shortcut for PyUnicode_FromEncodedObject(). But PyUnicode_FromObject() is not call PyUnicode_FromEncodedObject() direct nor indirect. PyUnicode_FromObject() works only with unicode and uni

[issue15421] Calendar.itermonthdates OverflowError

2012-09-20 Thread Skip Montanaro
Skip Montanaro added the comment: LGTM -- nosy: +skip.montanaro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15944] memoryviews and ctypes

2012-09-20 Thread David Beazley
David Beazley added the comment: One followup note---I think it's fine to punt on cast('B') if the memoryview is non-contiguous. That's a rare case that's probably not as common. -- ___ Python tracker ___

[issue15944] memoryviews and ctypes

2012-09-20 Thread David Beazley
David Beazley added the comment: There's probably a bigger discussion about memoryviews for a rainy day. However, the number one thing that would save all of this in my book would be to make sure cast('B') is universally supported regardless of format including endianness--especially in the s

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Mark, please open a new discussion, so we don't lose it and that was the place for discussion. -- ___ Python tracker ___

[issue15983] multiprocessing JoinableQueue's join function with timeout

2012-09-20 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue15981] improve documentation of __hash__

2012-09-20 Thread R. David Murray
R. David Murray added the comment: This has already been fixed, and the change is visible in the online documentation. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> confusing docs with regard to __hash__

[issue15973] Segmentation fault on timezone comparison

2012-09-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Alexander, did you send a contributor agreement? At least twice. :-) -- keywords: +patch priority: normal -> high stage: needs patch -> commit review Added file: http://bugs.python.org/file27234/issue15973.diff _

[issue15954] No error checking after using of the wcsxfrm()

2012-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > No, I think the appropriate error is ValueError, at least if errno is EINVAL. With what message? > msvcrt gives EILSEQ or ERANGE, but never EINVAL. EILSEQ is returned if > LCMapString failed, and ERANE if the output buffer is too small. I don't see where

[issue14783] Make int() and str() docstrings correct

2012-09-20 Thread Ezio Melotti
Ezio Melotti added the comment: That would be backward incompatible, and there might be some valid (corner) cases to pass it as a keyword. Since people are usually not supposed to use it as a keyword arg, it doesn't matter much if the name is different if that makes the docs more understandab

[issue15960] logging.shutdown should cope with IO errors from handler.release methods

2012-09-20 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vinay.sajip resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue15983] multiprocessing JoinableQueue's join function with timeout

2012-09-20 Thread Berker Peksag
Changes by Berker Peksag : -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15983] multiprocessing JoinableQueue's join function with timeout

2012-09-20 Thread Karl Bicker
New submission from Karl Bicker: The multiprocessing.JoinableQueue's function join() should have a timeout argument so that one can check on other things while waiting for a queue to finish. As join() uses a condition to wait anyway, a timeout is easily implemented and passed to the Condiditi

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-09-20 Thread Mark Dickinson
Mark Dickinson added the comment: Apologies; I got distracted from the main point of this issue with the strict aliasing stuff, and then it fell off the to-do list. Unassigning; Antoine or Victor, do you want to take this? -- assignee: mark.dickinson ->

[issue14783] Make int() and str() docstrings correct

2012-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It may be worth rewrite int() and str() so that the first argument was positional-only argument? -- ___ Python tracker ___ __

[issue15144] Possible integer overflow in operations with addresses and sizes.

2012-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, here is a new patch. The five new macros moved to pymacros.h and used in more files. -- Added file: http://bugs.python.org/file27232/align_operations2.patch ___ Python tracker

[issue12750] datetime.strftime('%s') should respect tzinfo

2012-09-20 Thread Mümin Öztürk
Mümin Öztürk added the comment: I made a patch for datetime.strftime('%s'). it takes tzinfo into consideration. >>> datetime.datetime(1970,1,1).strftime("%s") '-7200' >>> datetime.datetime(1970,1,1, tzinfo=datetime.timezone.utc).strftime("%s") '0' datetime.date still behave as naive dateti

[issue15960] logging.shutdown should cope with IO errors from handler.release methods

2012-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: Dan and Amit worked out a patch for ConcurrentLogHandler (https://bugzilla.redhat.com/show_bug.cgi?id=858912) so I'm OK with rejecting this one. -- ___ Python tracker _

[issue15972] wrong error message for os.path.getsize

2012-09-20 Thread STINNER Victor
STINNER Victor added the comment: Set the priority to release blocker until it is decided if this issue is a regression, or a new feature :-) -- priority: normal -> release blocker ___ Python tracker _

[issue15972] wrong error message for os.path.getsize

2012-09-20 Thread STINNER Victor
STINNER Victor added the comment: Functions of the os module uses PyUnicode_FSConverter() function (which uses PyBytes_Check() on bytes) in Python 3.2, whereas PyBytes_FromObject() is used in Python 3.3. Related change: changeset: 77597:27f9c26fdd8b user:Larry Hastings date:

[issue15972] wrong error message for os.path.getsize

2012-09-20 Thread STINNER Victor
STINNER Victor added the comment: It looks like os.stat() and os.path.getsize() converts the list into a byte string. It does something like: >>> x=[]; y=bytes(x); print(y.decode("ascii")) >>> x=[65, 66, 67]; y=bytes(x); print(y.decode("ascii")) ABC >>> x=[None]; y=bytes(x); print(y.decode("as

[issue15973] Segmentation fault on timezone comparison

2012-09-20 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Alexander, did you send a contributor agreement?. I don't see it in the tracker :-?? -- ___ Python tracker ___ ___

[issue15276] unicode format does not really work in Python 2.x

2012-09-20 Thread STINNER Victor
STINNER Victor added the comment: > I can't reproduce this with Python 2.7.3. > >>> locale.setlocale(locale.LC_NUMERIC, 'fr_FR') > 'fr_FR' > >>> u'{:n}'.format(1) > u'10 000' I don't understand why, but the all french locales are the same. Some "french locale" uses the standard ASCII space

[issue15276] unicode format does not really work in Python 2.x

2012-09-20 Thread STINNER Victor
STINNER Victor added the comment: I fixed a similar bug in Python 3.3: issue #13706. changeset: 75231:f89e2f4cda88 user:Victor Stinner date:Fri Feb 24 00:37:51 2012 +0100 files: Include/unicodeobject.h Lib/test/test_format.py Objects/stringlib/asciilib.h Objects/stringl

[issue15276] unicode format does not really work in Python 2.x

2012-09-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15978] asyncore: included batteries don't fit

2012-09-20 Thread chrysn
chrysn added the comment: i'm aware this is ambitious, and hope that at least the individual sub-agendas will be manageable. as for vague, i can enhance it (i'd start refining the individual sub-agendas -- or do you think the "big picture" needs more details too?). integration of frameworks i

[issue15982] asyncore.dispatcher does not handle windows socket error code correctly (namely WSAEWOULDBLOCK 10035)

2012-09-20 Thread Nicolai Ehemann
New submission from Nicolai Ehemann: There are some differences between win32 and other os socket implementations. One specific I found is that in windows, non-blocking socket apis will return WSAEWOULDBLOCK or 10035 instead of EWOULDBLOCK. This causes recv() in asyncore.dispatcher to raise an

[issue15981] improve documentation of __hash__

2012-09-20 Thread Max
New submission from Max: In dev/reference/datamodel#object.__hash__, there are two paragraphs that seem inconsistent. The first paragraph seems to say that a class that overrides __eq__() *should* explicitly flag itself as unhashable. The next paragraph says that a class that overrides __eq__(

[issue15977] Memory leak in _ssl.c

2012-09-20 Thread Christian Heimes
Christian Heimes added the comment: Georg, here is another candidate for the new release candidate. Daniel, two equal patches are good enough as a patch review. The fix is simple and straight forward, too. Thanks for your report! -- assignee: -> georg.brandl nosy: +georg.brandl resolu

[issue15977] Memory leak in _ssl.c

2012-09-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2bdc8c8ea42e by Christian Heimes in branch 'default': Issue #15977: Fix memory leak in Modules/_ssl.c when the function _set_npn_protocols() is called multiple times http://hg.python.org/cpython/rev/2bdc8c8ea42e -- nosy: +python-dev __

[issue15944] memoryviews and ctypes

2012-09-20 Thread Stefan Krah
Stefan Krah added the comment: As I understand it, you prefer memoryviews where the format is purely informational, whereas we now have typed memoryviews. Typed memoryviews are certainly useful, in fact they are present in Cython, see here for examples: http://docs.cython.org/src/userguide/memo

[issue15980] Non-escaped '\n' in docstrings

2012-09-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file27230/escape_nl2-2.7.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue15980] Non-escaped '\n' in docstrings

2012-09-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here are patches that escapes '\n' in docstrings of LWPCookieJar and (for 2.7 only) of email. -- assignee: docs@python components: Documentation files: escape_nl2.patch keywords: patch messages: 170794 nosy: docs@python, ezio.melotti, storchaka prio

[issue15977] Memory leak in _ssl.c

2012-09-20 Thread Daniel Sommermann
Daniel Sommermann added the comment: This patch looks good to me (it's exactly how I fixed it in my local build), although I'm not sure how to approve your patch so you can push it to the upstream. -- ___ Python tracker