[issue18919] Unify audio modules tests

2013-10-14 Thread Georg Brandl
Georg Brandl added the comment: Some new (I assume) ResourceWarnings from test_wave: /home/gbr/devel/python/Lib/unittest/case.py:571: ResourceWarning: unclosed file <_io.BufferedWriter name='@test_1974_tmp'> testMethod() /home/gbr/devel/python/Lib/chunk.py:61: ResourceWarning: unclosed file

[issue19082] Lib/xmlrpc/client.py demo code points to the dead server

2013-10-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Sounds good.I shall update patch (.rstify the security warning). Thank you! -- ___ Python tracker ___

[issue19261] Add support for 24-bit in the sunau module

2013-10-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a simple patch which adds support for writing 24-bit samples in the sunau module. Actually the sunau module already supports reading 24-bit samples and AUDIO_FILE_ENCODING_LINEAR_24 mentioned as supported encoding. So perhaps this should be consid

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-14 Thread Ethan Furman
Ethan Furman added the comment: Updated and renamed the DynamicClassAttribute tests, and discovered that classify_class_attrs is not handling instance portion correctly. class Meta(type): def __getattr__(self, name): if name == 'ham': return 'spam'

[issue18521] [cppcheck] Full report

2013-10-14 Thread Georg Brandl
Georg Brandl added the comment: > Shouldn't converttuple() in getargs.c set "levels[1] = 0;" after second > "levels[0] = i+1;"? I think it is fine, since convertitem() or converttuple() called from convertitem() will set their levels[0] (which is levels[1] in the original context) to zero on

[issue18521] [cppcheck] Full report

2013-10-14 Thread Georg Brandl
Georg Brandl added the comment: Closing this one as Fixed, then. Thanks everybody. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue18919] Unify audio modules tests

2013-10-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 164a60cce934 by Serhiy Storchaka in branch '2.7': Issue #18919: Catch and check warnings in the aifc module tests. http://hg.python.org/cpython/rev/164a60cce934 New changeset 9eecd00ffc28 by Serhiy Storchaka in branch '3.3': Issue #18919: Check warn

[issue18919] Unify audio modules tests

2013-10-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd7752db1e54 by Serhiy Storchaka in branch '2.7': Issue #18919: Fixed resource leaks in audio tests. http://hg.python.org/cpython/rev/fd7752db1e54 New changeset 2850fc02f324 by Serhiy Storchaka in branch '3.3': Issue #18919: Fixed resource leaks in

[issue18919] Unify audio modules tests

2013-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > In 3.x we removed that check. But I wonder if that was wise :) (We did it > for technical reasons when adding other features to regrtest). Actually the checks left, but there was no check for warning message. Now they are added. > Some new (I assume) Re

[issue16938] pydoc confused by __dir__

2013-10-14 Thread Ethan Furman
Ethan Furman added the comment: Discovered a problem with one of the tests, moved back to issue19030. The __class__/__objclass__ is gone, the code is simpler. When issue19030 is committed I think we can make a doc change to include __objclass__ somewhere and close this one. -- stage:

[issue10292] tarinfo should use relative symlinks

2013-10-14 Thread Benjamin Root
Benjamin Root added the comment: What was the issue number for the python2.7 fix? I think I have hit upon this issue myself and I need to see if I need to file a new report. -- nosy: +Benjamin.Root ___ Python tracker

[issue9170] zipfile cannot read AES encrypted files

2013-10-14 Thread Georg Brandl
Georg Brandl added the comment: #8998 has been closed (among others due to legal concerns), so this need not be kept open. -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker _

[issue18919] Unify audio modules tests

2013-10-14 Thread Ned Deily
Ned Deily added the comment: The new tests fail when run from an installed Python. You also need to add all of the new test directories to LIBSUBDIRS for the libinstall target in Makefile.pre.in. -- nosy: +ned.deily ___ Python tracker

[issue8507] abc.abstractproperty does not copy docstring

2013-10-14 Thread Georg Brandl
Georg Brandl added the comment: Confirmed; this appears fixed. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-14 Thread Ethan Furman
Ethan Furman added the comment: Updated tests now passing. Will commit Thursday, or Friday at the latest. -- stage: -> patch review Added file: http://bugs.python.org/file32123/issue19030.stoneleaf.05.patch ___ Python tracker

[issue10292] tarinfo should use relative symlinks

2013-10-14 Thread Benjamin Root
Benjamin Root added the comment: To clarify, the bug is resolved in py2.7 -- for the most part. I think I have come upon an edge-case where if the archived symbolic link refers to a file not contained in a subdirectory, say: "foo.txt -> foobar.txt", extracting "foo.txt" would result in an exce

[issue19228] type.__qualname__ should not strip the module name

2013-10-14 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread Tim Peters
Tim Peters added the comment: @haypo, this has nothing to do with PyMalloc. As I reported in my first message, only 7 PyMalloc arenas are in use at the end of the program, less than 2 MB total. *All* other arenas ever used were released to the OS. And that's not surprising. The vast bulk of

[issue18102] except-clause with own exception class inside generator can lead to confusing warning on termination

2013-10-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: While this is easy to reproduce under 3.3, it doesn't happen anymore under 3.4. Given how tricky it would be to fix it under 3.3 (IMO), I prefer to close the bug. -- resolution: -> out of date stage: -> committed/rejected status: open -> closed versi

[issue18919] Unify audio modules tests

2013-10-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset de1f62a55648 by Serhiy Storchaka in branch '2.7': Issue #18919: Add test/audiodata to LIBSUBDIRS. http://hg.python.org/cpython/rev/de1f62a55648 New changeset 865bab7387f2 by Serhiy Storchaka in branch '3.3': Issue #18919: Add test/audiodata to LIBSU

[issue19260] "int" comment in marshal.c is outdated

2013-10-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1309fee48908 by Antoine Pitrou in branch 'default': Close #19260: remove outdated comment in marshal.c http://hg.python.org/cpython/rev/1309fee48908 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> clo

[issue18096] bad library order returned by python-config.in

2013-10-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Build, Demos and Tools nosy: +dmalcolm, doko stage: -> patch review versions: +Python 3.4 ___ Python tracker ___

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread Tim Peters
Tim Peters added the comment: @Esa.Peuha, fine idea! Alas, on the same box I used before, uglyhack.c displays (it varies a tiny amount from run to run): 65198 65145 99.918709% So it's not emulating enough of Python's malloc()/free() behavior to trigger the same kind of problem :-( -

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, in Python 3.4 arena allocation is done using VirtualAlloc and VirtualFree, that may make a difference too. -- ___ Python tracker __

[issue17294] compile-flag for single-execution to return value instead of printing it

2013-10-14 Thread Albert Zeyer
Albert Zeyer added the comment: I don't know that I have an expression and I want it also to work if it is not an expression. Basically I really want the 'single' behavior. (My not-so-uncommon use case: Have an interactive shell where the output on stdout does not make sense. Also I might want

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread Tim Peters
Tim Peters added the comment: @pitrou, maybe, but seems very unlikely. As explained countless times already ;-), PyMalloc allocates few arenas in the test program. "Small objects" are relatively rare here. Almost all the memory is consumed by strings of ever-increasing length. PyMalloc pas

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > @pitrou, maybe, but seems very unlikely. As explained countless times > already ;-), Indeed, a 32-bit counter would already have overflowed :-D You're right that's very unlikely. -- ___ Python tracker

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread Tim Peters
Tim Peters added the comment: Just to be sure, I tried under current default (3.4.0a3+). Same behavior. -- ___ Python tracker ___ ___

[issue19236] Add Tornado HTTP benchmark

2013-10-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue19079] chameleon benchmark fails on 3.4

2013-10-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset e40042a7788c by Georg Brandl in branch 'default': Closes #19079: add VersionRange decorator to benchmark suite to mark compatible Python versions. http://hg.python.org/benchmarks/rev/e40042a7788c -- nosy: +python-dev resolution: -> fixed s

[issue4965] Can doc index of html version be separately scrollable?

2013-10-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7ebe03fa752 by Ezio Melotti in branch '2.7': #4965: Implement intelligent scrolling of the sidebar in the docs. http://hg.python.org/cpython/rev/d7ebe03fa752 -- ___ Python tracker

[issue1772673] Replacing char* with const char*

2013-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch synchronized with tip. -- Added file: http://bugs.python.org/file32124/const_char_3.patch ___ Python tracker ___ _

[issue19252] Enum.py : Enum.__new__() : Test Coverage

2013-10-14 Thread CliffM
CliffM added the comment: Yes it's purely a coverage issue. I must try to be more explicit (rather than implicit). -- ___ Python tracker ___ ___

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread Richard Oudkerk
Richard Oudkerk added the comment: After running ugly_hack(), trying to malloc a largeish block (1MB) fails: int main(void) { int first; void *ptr; ptr = malloc(1024*1024); assert(ptr != NULL);/* succeeds */ free(ptr); first = ugly_hack(); ptr = malloc(1024

[issue15613] argparse ArgumentDefaultsHelpFormatter interacts badly with --arg and nargs=+

2013-10-14 Thread paul j3
paul j3 added the comment: Looks like this behavior is intentional. This subclass adds a '%(default)s' string to the help lines if: if '%(default)' not in action.help: if action.default is not SUPPRESS: defaulting_nargs = [OPTIONAL, ZERO_OR_MORE] if action.o

[issue19252] Enum.py : Enum.__new__() : Test Coverage

2013-10-14 Thread Ethan Furman
Ethan Furman added the comment: Well, I would say it's half a coverage issue, half a guard against accidental deletion of the if test. :) -- ___ Python tracker ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlin

2013-10-14 Thread Guido van Rossum
New submission from Guido van Rossum: I'll add the tests next. The plan is to get this in the next (last) alpha release. -- messages: 199953 nosy: gvanrossum, larry, pitrou priority: release blocker severity: normal stage: patch review status: open title: Add asyncio (tulip, PEP 3156)

[issue19262] Add asyncio (tulip, PEP 3156) to stdlin

2013-10-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue19262] Add asyncio (tulip, PEP 3156) to stdlin

2013-10-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: It will probably need some messaging to integrate the Windows overlapped stuff? -- nosy: +sbt ___ Python tracker ___ ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlin

2013-10-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: (massaging, probably) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue4965] Can doc index of html version be separately scrollable?

2013-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please make a scrolling more smooth? Or at least optional. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Add asyncio (tulip, PEP 3156) to stdlin -> Add asyncio (tulip, PEP 3156) to stdlib ___ Python tracker ___ ___

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Georg Brandl
Georg Brandl added the comment: If you need help with docs, let me know. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs

[issue18919] Unify audio modules tests

2013-10-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue1772673] Replacing char* with const char*

2013-10-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread Tim Peters
Tim Peters added the comment: @sbt, excellent! Happens for me too: trying to allocate a 1MB block fails after running ugly_hack() once. That fits the symptoms: lots of smaller, varying-sized allocations, followed by free()s, followed by a "largish" allocation. Don't know _exactly_ which l

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: Here's an updated patch that doesn't botch the selectors imports. -- keywords: +patch Added file: http://bugs.python.org/file32125/asyncio2.patch ___ Python tracker _

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread STINNER Victor
STINNER Victor added the comment: > Anyway, since "the problem" has been produced with a simple pure C program, I think we need to close this as "wont fix". Can someone try the low fragmentation allocator? -- ___ Python tracker

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread STINNER Victor
STINNER Victor added the comment: I tried jemalloc on Linux which behaves better than the (g)libc on the RSS ans VMS memory. I know that Firefox uses it on Windows (and maybe also Mac OS X). It may be interesting to try it and/or provide something to use it easily. -- __

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: What I need help with most right now is a suggestion of where the unittests should go. There are too many of them to all put in one file. Some options: asyncio/test/*_test.py asyncio/test/test_*.py test/test_asyncio/ What's the best current practice? (I als

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > asyncio/test/*_test.py > asyncio/test/test_*.py > test/test_asyncio/ Personally I have a preference for test/test_asyncio/test_*.py, because putting all tests in test/ makes them easier to find. However, other packages such as unittest have their dedicated te

[issue10757] zipfile.write, arcname should be allowed to be a byte string

2013-10-14 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue10972] zipfile: add "unicode" option to the force the filename encoding to UTF-8

2013-10-14 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue10614] ZipFile: add a filename_encoding argument

2013-10-14 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19263] enum.py : Enum.__new__(). __objclass__

2013-10-14 Thread CliffM
New submission from CliffM: Is the assignment __objclass__ = enum_class in enum.py(149) needed ? I cannot find any other reference to it (even Google) and it seems that __class__ is already set to enum_class : enum_member.__objclass__ = enum_class < not sure what this is doing > I have

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: OK, here's a new patch that includes tests. To run the tests, I use: ./python.exe Lib/test/regrtest.py --fromfile Lib/test/test_asyncio/tests.txt --verbose There are a total of 4 individual test failures, all having to do with SSL: ssl.SSLEOFError: EOF oc

[issue16310] zipfile: allow surrogates in filenames

2013-10-14 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19263] enum.py : Enum.__new__(). __objclass__

2013-10-14 Thread Ethan Furman
Ethan Furman added the comment: It was originally put in to help inspect.classify_class_attrs, but recent subsequent changes (not yet committed, issue19030), make it unnecessary. Whether or not it stays depends on the changes to inspect being committed. -- assignee: -> ethan.furman _

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread Tim Peters
Tim Peters added the comment: @haypo, I'm not sure what you mean by "the low fragmentation allocator". If it's referring to this: http://msdn.microsoft.com/en-us/library/windows/desktop/aa366750(v=vs.85).aspx it doesn't sound all that promising for this failing case. But, sure, someone shou

[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-14 Thread Tim Peters
Tim Peters added the comment: BTW, everything I've read (including the MSDN page I linked to) says that the LFH is enabled _by default_ starting in Windows Vista (which I happen to be using). So unless Python does something to _disable_ it (I don't know), there's nothing to try here. ---

[issue16938] pydoc confused by __dir__

2013-10-14 Thread Ethan Furman
Ethan Furman added the comment: Ronald, if you get a chance could you try your descriptor, without the __objclass__ work around, with the latest patch in #19030? -- ___ Python tracker _

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-14 Thread Tyler B
Tyler B added the comment: Looked at the code and found differences between 3.4 and 2.7. 2.7 has 3 exceptions that can be raised while 3.4 has 4 exceptions. I propose removing the "list of parameters" from the documenation to keep things simple and not repeat the code. # 2.7 "Raises an exce

[issue4965] Can doc index of html version be separately scrollable?

2013-10-14 Thread Ezio Melotti
Ezio Melotti added the comment: I've looked into it, and I found that: 1) the scroll event can be triggered dozens of times per second; 2) sidebarwrapper.css(...) causes a browser repaint/reflow, which is slow; Optimizing the function doesn't seem like a good solution, so I tried to throttle it

[issue19260] "int" comment in marshal.c is outdated

2013-10-14 Thread Larry Hastings
Larry Hastings added the comment: Martin: The code is not statically type-safe, but it is mechanically safe, which I think is why you wrote the comment in the first place. The return value of fread() is size_t, but the "read" variable is Py_ssize_t. So the function *could* theoretically retur

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: Found the cause of the ssl test failure -- the location of the ssl test key and cert are different. Here's a new patch with a quick fix (#4), but I think the correct solution is to either have the certificates inline in the source and write them to a temp f

[issue2919] Merge profile/cProfile in 3.n+1

2013-10-14 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Let's close this. There is no point keeping this languishing any further. The profile and cProfile modules are different enough that we can't merge them without breaking compatibility. They should treated as two separate profilers. Maybe in the future we

[issue19079] chameleon benchmark fails on 3.4

2013-10-14 Thread Stefan Behnel
Stefan Behnel added the comment: This commit conflicts with the patch for issue #19108 and breaks benchmarking in Py3 (at least for me). Traceback (most recent call last): File "perf.py", line 2538, in main(sys.argv[1:]) File "perf.py", line 2481, in main base_cmd_prefix, changed_c

[issue19264] subprocess.Popen doesn't support unicode on Windows

2013-10-14 Thread Peter Graham
New submission from Peter Graham: On Windows, subprocess.Popen requires the executable name and working directory to be ascii. This is because it calls CreateProcess instead of CreateProcessW. -- components: Library (Lib), Unicode, Windows messages: 199976 nosy: ezio.melotti, peter0 pr

[issue19079] chameleon benchmark fails on 3.4

2013-10-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> georg.brandl nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5411] Add xz support to shutil

2013-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3.4 beta 1 will be soon. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13451] sched.py: speedup cancel() method

2013-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Giampaolo, Raymond? What are your opinions? -- ___ Python tracker ___ ___ Python-bugs-list mailing

<    1   2