[issue11338] No list of Python hg repositories

2011-02-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: Just for the record: at the moment, Python's source code isn't maintained in Mercurial at all, but in subversion. Therefore, there are no official repos - it's no surprise you didn't find any documentation what they were. -- nosy: +loewis __

[issue10880] do_mkvalue and 'boolean'

2011-02-26 Thread Dj Gilcrease
Dj Gilcrease added the comment: Add a boolean format option to Py_BuildValue and Py_VaBuildValue Also added some tests to test_capi that verifies Py_BuildValue is building the right type. I did not add tests for every possible type as it has lived this long without, but I did want to test my

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-02-26 Thread Mark Hammond
Mark Hammond added the comment: I'm wondering if, in practice, extensions which need a manifest can have the manifest being generated completely by the linker - ie, I expect that in most cases where something other than the CRT or MFC is needed in the manifest, the author will want to specify

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-02-26 Thread Christoph Gohlke
Christoph Gohlke added the comment: The proposed patch was meant to be backwards compatible. Unconditionally removing the whole assembly/manifest from extensions could break extensions that have additional dependencies, such as MFC or Common Controls. PyQt4 extensions for example depend on Co

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-02-26 Thread Mark Hammond
Mark Hammond added the comment: Thinking more about this, I think the approach of this patch is more complex than necessary. I think a better patch would be one which *unconditionally* removes the manifest from extension modules. For maximum flexibility though, we should probably allow a ho

[issue968063] Add fileinput.islastline()

2011-02-26 Thread Dj Gilcrease
Dj Gilcrease added the comment: Updated the patch and tests for py3.3 -- keywords: +patch nosy: +Digitalxero Added file: http://bugs.python.org/file20928/cpython_rev68060.patch ___ Python tracker

[issue11256] inspect.getcallargs raises TypeError on valid arguments

2011-02-26 Thread Andreas Stührk
Andreas Stührk added the comment: Confirmed under Python 2.7, 3.2 and 3.3. Patch looks good to me. Attached is a patch for 2.7. -- nosy: +Trundle Added file: http://bugs.python.org/file20927/issue11256_py27.patch ___ Python tracker

[issue11332] Increase logging/__init__.py coverage to 97%

2011-02-26 Thread Brett Cannon
Brett Cannon added the comment: OK, but acceptance tests do not need to not try to get higher test coverage. For instance, for testing disable() simply using it and making sure the outcome is as expected also works. I can understand wanting to avoid some low-level whitebox testing, but I don'

[issue11332] Increase logging/__init__.py coverage to 97%

2011-02-26 Thread Vinay Sajip
Vinay Sajip added the comment: @Brett: I've no religious/dogmatic objection to mocking, either, so I agree with your comment. I merely observed that it's not generally implemented in the Python test suite (not that I've made an exhaustive study of it, so I'm open to being corrected on this po

[issue11326] connect_ex() implementation missing for SSL sockets

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the patch + some tests in r88664 (3.3), r88665 (3.2) and r88666 (2.7). Thanks for reporting this! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 3.1 _

[issue11343] Make errors due to full parser stack identifiable

2011-02-26 Thread Andreas Stührk
Changes by Andreas Stührk : Added file: http://bugs.python.org/file20926/parser_nested_SyntaxError.patch ___ Python tracker ___ ___ Python-bug

[issue11343] Make errors due to full parser stack identifiable

2011-02-26 Thread Andreas Stührk
New submission from Andreas Stührk : Currently, if the parser's internal stack is full (as it happens when the parser tries to parse a deeply nested structure), the parser writes an error message to stderr and a bare MemoryError is raised. That way, it is really hard for REPLs do handle input tha

[issue11341] test_os fails

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > Errno 75 is EOVERFLOW here (Linux), which doesn't seem to be mentioned in > sendfile's man page. > Can you describe your system? (CPU architecture, bitness, endianness, > glibc/kernel version, etc.) Just checked the source code: in fs/read_write.c:

[issue11250] 2to3 truncates files at formfeed character

2011-02-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: r88661 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-li

[issue11334] Failed to build _multiprocessing on Mac OS X

2011-02-26 Thread dave
dave added the comment: seems the multiprocessing issue was produced by the dynamic_lookup parameter in the LDFLAGS... after removing this, "import multiprocessing" works... thanks > export LDFLAGS="-Wall -undefined dynamic_lookup -arch i386" -- resolution: -> works for me status:

[issue11341] test_os fails

2011-02-26 Thread Westley Martínez
Westley Martínez added the comment: > You are not running under a VM or something? No -- ___ Python tracker ___ ___ Python-bugs-list

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-02-26 Thread LW
LW added the comment: [ 92/349] test_distutils /home/les/Downloads/Python-3.2/Lib/distutils/command/sdist.py:197: ResourceWarning: unclosed file <_io.TextIOWrapper name='MANIFEST.in' mode='r' encoding='UTF-8'> self.read_template() unknown, 0: Warning: using regular magic file `/etc/magic' un

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-02-26 Thread LW
New submission from LW : 1 test failed: test_urllib2_localnet 1 test altered the execution environment: test_urllib2 21 tests skipped: test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses test_gdb test_kqueue test_ossaudiodev te

[issue11341] test_os fails

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > rev 88657 > Arch Linux 2.6.37 x86_64 with glibc2.6 > 64-bit, little endian You are not running under a VM or something? -- ___ Python tracker __

[issue11341] test_os fails

2011-02-26 Thread Westley Martínez
Westley Martínez added the comment: rev 88657 Arch Linux 2.6.37 x86_64 with glibc2.6 64-bit, little endian -- ___ Python tracker ___

[issue11341] test_os fails

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Errno 75 is EOVERFLOW here (Linux), which doesn't seem to be mentioned in sendfile's man page. Can you describe your system? (CPU architecture, bitness, endianness, glibc/kernel version, etc.) -- assignee: -> giampaolo.rodola nosy: +giampaolo.rodola,

[issue11341] test_os fails

2011-02-26 Thread SilentGhost
SilentGhost added the comment: Which revision are you trying with? I cannot reproduce this with r88656 -- nosy: +SilentGhost ___ Python tracker ___ _

[issue11332] Increase logging/__init__.py coverage to 97%

2011-02-26 Thread Brett Cannon
Brett Cannon added the comment: Just to give an opinion (which can be ignored), I see no issue with mocking if done carefully and properly. It should just be kept to a minimum (and typically be privately exposing certain things that can be overridden). --

[issue11336] Typo in patch.rst

2011-02-26 Thread blokeley
blokeley added the comment: I updated to the tip of http://hg.python.org/devguide on the hg_transition branch. If this isn't the latest dev guide, what is? -- ___ Python tracker __

[issue11339] annotation for class being defined

2011-02-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: This has been true forever. I suggest you try python-ideas. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___ Python tracker _

[issue11336] Typo in patch.rst

2011-02-26 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, but the wording was completely changed a little while ago so the error has been dealt with. -- nosy: +brett.cannon resolution: -> out of date status: open -> closed ___ Python tracker

[issue11341] test_os fails

2011-02-26 Thread Westley Martínez
New submission from Westley Martínez : test_invalid_offset failed on linux2. -- components: Tests files: test_os messages: 129589 nosy: anikom15 priority: normal severity: normal status: open title: test_os fails versions: Python 3.3 Added file: http://bugs.python.org/file20924/test_os

[issue11340] test_distutils fails

2011-02-26 Thread Westley Martínez
New submission from Westley Martínez : test_compressed_deprecated failed -- components: Tests files: test_distutils messages: 129588 nosy: anikom15 priority: normal severity: normal status: open title: test_distutils fails type: behavior versions: Python 3.3 Added file: http://bugs.pytho

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11339] annotation for class being defined

2011-02-26 Thread Andy Harrington
New submission from Andy Harrington : You cannot make a self-referential annotation like class Graph: def reverse(self) -> Graph: # ... This corresponds to a common coding situation. -- components: Interpreter Core messages: 129587 nosy: andyharrington priority: normal sever

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11338] No list of Python hg repositories

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you for the suggestion. We are actually starting our official transition to hg, which makes things a bit unstable. The final URL (http://hg.python.org/cpython/) is currently a test repo, while the "usable for work right now" (http://code.python.org/hg/)

[issue11338] No list of Python hg repositories

2011-02-26 Thread blokeley
New submission from blokeley : Recently, I've logged a few issues on http://bugs.python.org/ and tried to submit patches where possible. However, I have not been able to find any documentation that states where the hg repositories are. There are some under http://hg.python.org/ and some under

[issue11337] Nothing refers to footnote [1] on page "6. Simple Statements" in Language Reference

2011-02-26 Thread Mitchell Model
New submission from Mitchell Model : I can't find a reference to footnote [1] on page "6. Simple Statements" in Language Reference. Either the footnote should be removed or a [1] link to it should appear on the page. -- assignee: docs@python components: Documentation messages: 129584 n

[issue11336] Typo in patch.rst

2011-02-26 Thread blokeley
New submission from blokeley : I think that a typographical error was made in patch.rst. Should "(do not that not all checks apply to non-core developers)" read "(note that not all checks apply to non-core developers)"? Patch attached. -- assignee: docs@python components: Documentation

[issue8594] Add a "source_address" option to ftplib

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment set source_address attribute and updates doc. It still keeps using support.find_unused_port() which is also used in test_socket.py though [1], so it shouldn't cause problems. http://svn.python.org/view/python/trunk/Lib/test/test_socket.p

[issue9931] test_ttk_guionly hangs on XP5

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r88652 (3.3) and r88655 (3.2). Unfortunately, Paul's buildbot seems a bit stuck in a previous build... (I didn't commit to 2.7 since things look fine there) -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open

[issue11324] ConfigParser(interpolation=None) doesn't work

2011-02-26 Thread Éric Araujo
Éric Araujo added the comment: Thanks. Could you also add a test? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list

[issue11335] Memory leak after key function failure in sort

2011-02-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: LGTM -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-02-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Guido? -- assignee: -> gvanrossum nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list

[issue11174] add argparse formatting option to display type names for metavar

2011-02-26 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: First draft of patch with this functionality. Test, patch and docs are included. I'll gladly work further on this, so I would appreciate some advice and suggestions. -- keywords: +patch nosy: +gruszczy Added file: http://bugs.python.org/file20919/

[issue11321] 9th import of module _pickle always crashes

2011-02-26 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +alexandre.vassalotti, brett.cannon, ncoghlan, pitrou ___ Python tracker ___ ___ Python-bugs-list ma

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Alexandre, Do the considerations against pickling apply to deep copying? It would seem that copying bytecode and pointer within a run should be ok. -- ___ Python tracker

[issue11335] Memory leak after key function failure in sort

2011-02-26 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Below is a link to the code where leak occurs and the patch goes: http://svn.python.org/view/python/branches/py3k/Objects/listobject.c?view=markup&pathrev=88554#l1944 -- keywords: +3.2regression, needs review, patch Added file: http://bugs.python.org

[issue11335] Memory leak after key function failure in sort

2011-02-26 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : In list.sort, if a key function throws an exception, the memory to store the keys is never freed. I introduced the bug in r86937. I'll upload a patch for review shortly. -- assignee: stutzbach components: Interpreter Core messages: 129574 nosy:

[issue11334] Failed to build _multiprocessing on Mac OS X

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11334] Failed to build _multiprocessing on Mac OS X

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: ronaldoussoren -> nosy: +asksol, jnoller ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11334] Failed to build _multiprocessing on Mac OS X

2011-02-26 Thread dave
New submission from dave : hi community, i cannot import multiprocessing since it fails(?) during build. could someone point out a solution for me? thanks a lot in advance. dave $ python Python 2.7.1 (r271:86832, Feb 26 2011, 17:19:29) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "hel

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Ram Rachum
Ram Rachum added the comment: *"generator objects do not have names we can refer to"* How about referring to the generator function that created them and to all the arguments? Regarding instruction pointer, I really don't know the internals of how this works. Can we make some arrangement so

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-02-26 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10868] ABCMeta.register() should work as a decorator

2011-02-26 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Sounds good to me. Thanks for the clarifications and satisfying my curiosity! :-) -- ___ Python tracker ___ ___

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-02-26 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: +1. I've bumped into exactly this problem (https://github.com/DanielStutzbach/blist/issues/closed#issue/29) I'm not intimately familiar with how __slots__ works. Are there any drawbacks to adding an empty __slots__ to the ABCs? -- __

[issue10866] Add sethostname()

2011-02-26 Thread Ross Lagerwall
Ross Lagerwall added the comment: > Ah, strange. I used "autoconf" and it didn't... >From the man page of autoreconf: Run `autoconf' (and `autoheader', `aclocal', `automake', `autopoint' (formerly `gettextize'), and `libtoolize' where appropriate) repeatedly to remake the GNU Build

[issue10866] Add sethostname()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The patch looks good. > > Just to be clear, on my system running "autoreconf" adds the correct > stuff to pyconfig.h.in Ah, strange. I used "autoconf" and it didn't... > Isn't it best to leave it up to the committer to generate "configure" > and "pyconfig.h

[issue10866] Add sethostname()

2011-02-26 Thread Ross Lagerwall
Ross Lagerwall added the comment: The patch looks good. Just to be clear, on my system running "autoreconf" adds the correct stuff to pyconfig.h.in Isn't it best to leave it up to the committer to generate "configure" and "pyconfig.h.in", especially since different autoconf versions can crea

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Vinay Sajip
Vinay Sajip added the comment: Regression test added to py3k and release32-maint (r88654). I just had to modify an existing test case. -- status: pending -> closed ___ Python tracker _

[issue11299] Allow deepcopying and pickling paused generators

2011-02-26 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: The value of the instruction pointer depends on the byte-code. So it's not portable either. But, the bigger issue is the fact generator objects do not have names we can refer to, unlike top-level functions and classes which pickle supports. Similarly,

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-02-26 Thread Merlijn van Deen
Merlijn van Deen added the comment: No, I do not, for several reasons. First of all, this is not a change *from* previous behaviour, but a change *back to* previous behaviour. And sensible behaviour, too. Secondly, I have tested what getpass does on windows (Python 2.7.1 (r271:86832, Nov 27

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Vinay Sajip
Vinay Sajip added the comment: There should, and I'm looking at some additional tests suggested for inclusion in #11332. I'll mark the issue as pending to remind me to ensure that the test gets added soon. -- status: closed -> pending ___ Python tr

[issue9441] increase logging handlers test coverage

2011-02-26 Thread Vinay Sajip
Vinay Sajip added the comment: Fix checked into release32-maint (r88651). -- resolution: accepted -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker __

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-02-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: I fail to see the bug here. Python's getpass.py is mimicing the behavior of getpass.c

[issue11332] Increase logging/__init__.py coverage to 97%

2011-02-26 Thread Vinay Sajip
Vinay Sajip added the comment: Thanks for doing this, I appreciate the effort you've put into it. My comments: 1. Each test class ought to be independent, but they aren't - for example, if I comment out all of your test classes other than LoggerTest, it fails. 2. I try and avoid modifying the

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Changes by Марк Коренберг : Added file: http://bugs.python.org/file20917/shorttest.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Марк Коренберг added the comment: = ORIGINAL === $ ./qwe.py 10 read length: 10 read data: "xx" should read "test". read: "test" $ ./qwe.py -10 read length: -10 read data: "xx" should read "test". read: "test" = PATCHED === $ ./qwe.py 10 read length: 10 r

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Марк Коренберг added the comment: only first hunk is really the patch. 2 next hunks are optimizations. -- Added file: http://bugs.python.org/file20915/z.patch ___ Python tracker ___

[issue11323] os.sendfile() bo failure on solaris

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be fixed in r88647. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.3 -Python 3.2 ___ Python tracker _

[issue11071] What's New review comments

2011-02-26 Thread Éric Araujo
Éric Araujo added the comment: The section about os.environb talks about unencoded bytes and unencoded environment variables instead of undecoded. -- ___ Python tracker ___ ___

[issue10882] Add os.sendfile()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It seems we have a failure on Leopard: I think the issue is you request a 4096 transfer near the end of file, but there aren't that many bytes remaining. Apparently OS X then doesn't transfer anything and returns 0. Hint: >>> 10485760. / 4096 2560.0 >>> 10

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Éric Araujo
Éric Araujo added the comment: Shouldn’t there be a regression test for this? -- components: +Library (Lib) -Documentation nosy: +eric.araujo -docs@python ___ Python tracker ___

[issue11331] unused line in the logging-cookbook example

2011-02-26 Thread Vinay Sajip
Vinay Sajip added the comment: Fix checked into py3k and release32-maint (r88645), thanks. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue11085] expose _abcoll as collections.abc

2011-02-26 Thread Éric Araujo
Éric Araujo added the comment: Some missed doc changes. -- keywords: +patch Added file: http://bugs.python.org/file20914/collections.abc-in-docs.diff ___ Python tracker ___

[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Vinay Sajip
Vinay Sajip added the comment: Fix checked into py3k and release32-maint (r88644). Support was reinstated - the docs weren't changed. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue11323] os.sendfile() bo failure on solaris

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, so the root cause is that sendfile() under Solaris can fail with EINVAL when the offset is past the end of file (but only on 64-bit builds, strangely :-)). Here is a patch, tested under Linux, 32-bit OpenSolaris and 64-bit OpenSolaris. It also uses a more

[issue11171] Python 2.7.1 does not start when "./configure" is used with "--prefix" != "--exec-prefix"

2011-02-26 Thread Éric Araujo
Éric Araujo added the comment: I was unclear. distutils.sysconfig does not play a role in the startup of python anymore. My question was: does distutils.sysconfig._get_makefile_filename have the same bug as the one that was fixed in sysconfig._get_makefile_filename? -- ___

[issue4761] create Python wrappers for openat() and others

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What about Doc/whatsnew/3.3.rst? This is filled by Raymond (or other people) when the release nears. No need to care about it in regular commits. -- ___ Python tracker _

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Changes by Марк Коренберг : Removed file: http://bugs.python.org/file20912/z.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11082] ValueError: Content-Length should be specified

2011-02-26 Thread Éric Araujo
Éric Araujo added the comment: BTW, there was no entry in Misc/NEWS, so this was not in whatsnew/3.2.rst. -- nosy: +eric.araujo ___ Python tracker ___ __

[issue11259] asynchat does not check if terminator is negative integer

2011-02-26 Thread Марк Коренберг
Марк Коренберг added the comment: Real patch is the first hunk of attached file. Other 2 hunks are optimizations.. -- keywords: +patch Added file: http://bugs.python.org/file20912/z.patch ___ Python tracker __

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-02-26 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue4761] create Python wrappers for openat() and others

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: What about Doc/whatsnew/3.3.rst? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue11257] asyncore stores unnecessary object references

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Unless there's a way to automatically call close() when a dispatcher instance is no longer referenced (and I can't think of anything to do that) I'd say we better close this as rejected. -- ___ Python tracker <

[issue11325] compilation warning with sendfile

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11323] os.sendfile() bo failure on solaris

2011-02-26 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue9795] nntplib.NNTP should support the context protocol

2011-02-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: (socket.error, EOFError) after quit() indicates that the socket is disconnected, in which case we should not raise any error (or at least, this is the approach we're using in ftplib) while all other NNTPError related errors are not suppressed. --

[issue11323] os.sendfile() bo failure on solaris

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: It still fails under AMD64 OpenIndiana: == ERROR: test_offset_overflow (test.test_os.TestSendfile) -- Traceback (most recent

[issue11298] unittest discovery needs better explanation

2011-02-26 Thread Michael Foord
Michael Foord added the comment: No, tests as top level modules work fine too. Importability is the only requirement. (Projects themselves are not typically packages but contain packages - so the wording needs to change slightly but I like the rest.) -- __

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > >> If you agree, Raymond, I'll backport the patch. > > Yes. That will address Antoine's legitimate concern about making other > backports harder, and it will get all the Python's to us

[issue11256] inspect.getcallargs raises TypeError on valid arguments

2011-02-26 Thread Daniel Urban
Daniel Urban added the comment: Updated patch with extra tests. -- Added file: http://bugs.python.org/file20911/issue11256_2.diff ___ Python tracker ___

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-02-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Fri, Feb 25, 2011 at 03:43:06PM +, Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > r88586: Normalized the encoding names for Latin-1 and UTF-8 to > 'latin-1' and 'utf-8' in the stdlib. Even though - or maybe exactly bec

[issue10868] ABCMeta.register() should work as a decorator

2011-02-26 Thread Daniel Urban
Daniel Urban added the comment: > In what use-cases would you want to call MyABC.register() when defining > a class instead of inheriting from MyABC? For example if you don't want to inherit a __dict__ for a tree-like data structure (see also issue11333). -- _

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: I updated my local svn checkout, and the code has been fixed recently: r87648 | alexander.belopolsky | 2011-01-02 15:48:22 -0500 (Sun, 02 Jan 2011) | 1 line Issue #8013: Fixed time.asctime segfault when OS's asctime fails p = asctime(&bu

[issue11333] Add empty __slots__ to collections.abc abstract base classes

2011-02-26 Thread Daniel Urban
New submission from Daniel Urban : Currently instances of classes which inherit an ABC in collections.abc will have a __dict__. This can be a problem for example a tree-like data structure. It would make sense to inherit for example MutableMapping, but that would possibly mean, that every nod

[issue10866] Add sethostname()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch including a check for PyObject_GetBuffer()'s return value, the missing declaration of HAVE_SETHOSTNAME in pyconfig.h.in, and a test for giving a bytes values to the function. -- Added file: http://bugs.python.org/file20909/sethostname_v3.pat

[issue11332] Increase logging/__init__.py coverage to 97%

2011-02-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> vinay.sajip nosy: +brett.cannon, vinay.sajip stage: -> patch review type: -> behavior versions: +Python 3.3 ___ Python tracker ___

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > If it's broken, complain to Apple. Actually, I checked glibc's asctime, and it has the same behaviour. But the point is that asctime can return NULL. > That still doesn't explain the OP's crash on OS X 10.6.6. Yes it does. If asctime returns NULL,

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I'll give you the same result again but with additional clock(), just for a heart's pleasure: clock(): 0.100958 , fstat(): posix.stat_result(st_mode=33184, st_ino=10075508, st_dev=234881025, st_nlink=1, st_uid=502, st_gid=20, st_size=4294967300, st_a

[issue11332] Increase logging/__init__.py coverage to 97%

2011-02-26 Thread Oliver Drake
New submission from Oliver Drake : Purely a modification to test_logging.py with the focus being to increase coverage. coverage.py now measures 97% (when running test_logging.py by itself). I'm not sure if I've followed py-dev unit test conventions exactly, I've created quite a few new test ca

[issue11331] unused line in the logging-cookbook example

2011-02-26 Thread SilentGhost
Changes by SilentGhost : -- assignee: docs@python -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11286] Some "trivial" python 2.x pickles fails to load in Python 3.2

2011-02-26 Thread Nick Coghlan
Nick Coghlan added the comment: People may use SystemError for other purposes, but the docs are pretty clear it is only for internal errors that indicate an interpreter bug: http://docs.python.org/dev/library/exceptions.html#SystemError Extension modules or an embedding application passing in

[issue11327] Running test_time.py in python27 caused python to unexpectedly quit

2011-02-26 Thread Ned Deily
Ned Deily added the comment: If it's broken, complain to Apple. $ otool -L $(/opt/local/bin/python2.7 -c 'import time;print(time.__file__)') /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so: /usr/lib/libSystem.B.dylib (compatibility version 1

  1   2   >