[issue19330] Use public classes for contextlib.suppress and redirect_stdout

2013-10-25 Thread Nick Coghlan
Nick Coghlan added the comment: I decided to defer adding any public attributes to these APIs - that greatly simplifies this patch, is more consistent with the draft wording in the PEP 8 update (issue 19331), and if the demand for improved introspection support is there, we can always add them

[issue19403] Make contextlib.redirect_stdout reentrant

2013-10-25 Thread Nick Coghlan
Changes by Nick Coghlan : -- dependencies: +Use public classes for contextlib.suppress and redirect_stdout ___ Python tracker ___ ___

[issue19403] Make contextlib.redirect_stdout reentrant

2013-10-25 Thread Nick Coghlan
New submission from Nick Coghlan: I realised making contextlib.redirect_stdout reentrant was actually fairly easy (thread safety is inherently impossible due to the process global side effect). Since making it reentrant makes it more user-friendly, I'll tweak the implementation to work that wa

[issue19396] test_contextlib fails with -S

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b904290b3b9 by Nick Coghlan in branch 'default': Close #19396: make test_contextlib tolerate -S http://hg.python.org/cpython/rev/2b904290b3b9 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed _

[issue19396] test_contextlib fails with -S

2013-10-25 Thread Nick Coghlan
Nick Coghlan added the comment: On second thoughts, since I haven't started on the refactoring yet... -- resolution: duplicate -> status: closed -> open ___ Python tracker ___ _

[issue19396] test_contextlib fails with -S

2013-10-25 Thread Nick Coghlan
Nick Coghlan added the comment: It's not strictly a duplicate, but I'll be refactoring the relevant tests a bit in order to resolve issue 19330 anyway (I'm working on that now), so I can remove the dependency on help() in the process. -- resolution: -> duplicate status: open -> closed

[issue19398] test_trace fails with -S

2013-10-25 Thread Vajrasky Kok
Vajrasky Kok added the comment: I finally found the main culprit which puts extra '/' in my sys.path. The patch removed the extra '/' and also fixed this test automatically. -- Added file: http://bugs.python.org/file32367/remove_extra_slash_from_sys_path.patch

[issue19398] test_trace fails with -S

2013-10-25 Thread Vajrasky Kok
Vajrasky Kok added the comment: This is the "emergency" patch to solve this issue. The main issue is, [sky@localhost cpython]$ ./python -Sc "import sys; print(sys.path)" ['', '/usr/local/lib/python34.zip', '/home/sky/Code/python/programming_language/cpython/Lib/', '/home/sky/Code/python/progr

[issue19395] unpickled LZMACompressor is crashy

2013-10-25 Thread Tim Peters
Tim Peters added the comment: @cantor, this is a Python issue tracker, not a help desk. If you want advice about Python programming, please use the Python mailing list or any number of "help desk" web sites (e.g., stackoverflow). -- nosy: +tim.peters _

[issue19395] unpickled LZMACompressor is crashy

2013-10-25 Thread cantor
cantor added the comment: python 3.3 version - tried this code and got a sliglty faster processing time then when running lzma.compress() on its own. Could this be improved upon? import lzma from functools import partial from threading import Thread def split_len(seq, length): return [str.

[issue4331] Add functools.partialmethod

2013-10-25 Thread Nick Coghlan
Nick Coghlan added the comment: On 26 Oct 2013 05:28, "alon horev" wrote: > Is the first option what you had in mind? That's actually an interesting question. I was going to say yes, but then I realised it would be better to just "do the right thing" when the underlying object was a classmethod

[issue19402] AbstractBasicAuthHandler

2013-10-25 Thread Perry Lorier
New submission from Perry Lorier: Similar to Issue8797, if the first 5 requests result in exception (eg 404), then AbstractBasicAuthHandler.retried is not reset, meaning authentication will fail on all subsequent attempts. The logic in AbstractBasicAuthHandler.http_error_401 calling self.rese

[issue19399] sporadic test_subprocess failure

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset af67cfcd4089 by Tim Peters in branch 'default': Issue #19399: fix sporadic test_subprocess failure. http://hg.python.org/cpython/rev/af67cfcd4089 -- nosy: +python-dev ___ Python tracker

[issue19399] sporadic test_subprocess failure

2013-10-25 Thread Tim Peters
Changes by Tim Peters : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker ___ __

[issue19399] sporadic test_subprocess failure

2013-10-25 Thread Tim Peters
Changes by Tim Peters : -- assignee: -> tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19399] sporadic test_subprocess failure

2013-10-25 Thread Tim Peters
Tim Peters added the comment: I think I'll change Thread.join() to just return if a timeout <= 0 is passed. The docs don't say anything about what Thread.join() does with a negative timeout, but at least in 2.7.5 it happened to just return. No point being gratuitously more demanding ;-) ---

[issue19401] Segmentation fault with float arithmatics on OS X Mavericks

2013-10-25 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update ___ Python tracker

[issue19401] Segmentation fault with float arithmatics on OS X Mavericks

2013-10-25 Thread Brian Zhou
New submission from Brian Zhou: $ uname -a Darwin foobar 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64 $ python Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "h

[issue19367] IDLE wont open

2013-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Usage questions are generally better directed at python-list, but I will try to answer here first.) It is actually a 'connection not made' error, with a Firewall being only one possible cause for the non-connection. Questions: What OS? Windows? Mac? or ??? Wh

[issue19362] Documentation for len() fails to mention that it works on sets

2013-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would prefer 'collections with a known size' but 'collections' should be good enough for the doc string. The manual can follow with examples. -- nosy: +terry.reedy ___ Python tracker

[issue19320] Tkinter tests ran with wantobjects is false

2013-10-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue19316] devguide: compiler - wording

2013-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Proposes changes could have been put in one (or just a few) messages with numbered suggestions. This would make it easier to refer to them. Each could have had a link to the file involved in order to make it easy to look at context. My opinions: msg200572 di

[issue18685] Restore re performance to pre-PEP393 level

2013-10-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks good to me. -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-lis

[issue19400] Extension module builds can fail with Xcode 5 on OS X 10.8+

2013-10-25 Thread Ned Deily
Ned Deily added the comment: The problem is fixed in 6cfb0f2815ce for release in 2.7.6 and e62a64507913 for 3.3.3. It was previously fixed in 3.4.0a4 by 73532f33fbb3. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___

[issue19400] Extension module builds can fail with Xcode 5 on OS X 10.8+

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6cfb0f2815ce by Ned Deily in branch '2.7': Issue #19400: Prevent extension module build failures with Xcode 5 on OS X http://hg.python.org/cpython/rev/6cfb0f2815ce New changeset e62a64507913 by Ned Deily in branch '3.3': Issue #19400: Prevent extens

[issue19400] Extension module builds can fail with Xcode 5 on OS X 10.8+

2013-10-25 Thread Ned Deily
New submission from Ned Deily: On OS X 10.8 or 10.9 when using Xcode 5 and attempting to build an extension module using a universal Python that includes a PPC architecture (such as from one of the python.org 32-bit-only installers), the extension module build can fail with numerous compiler e

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-10-25 Thread Christian Heimes
Changes by Christian Heimes : Added file: http://bugs.python.org/file32365/38b3ad4287ef.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue1887] distutils doesn't support out-of-source builds

2013-10-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue5309] distutils doesn't parallelize extension module compilation

2013-10-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever title: setup.py doesn't parallelize extension module compilation -> distutils doesn't parallelize extension module compilation ___ Python tracker

[issue19399] sporadic test_subprocess failure

2013-10-25 Thread Tim Peters
Tim Peters added the comment: BTW, if subprocess did check the return value, it would see that the timeout already expired, and the test would pass. -- ___ Python tracker ___ __

[issue19399] sporadic test_subprocess failure

2013-10-25 Thread Tim Peters
Tim Peters added the comment: Well, when a timeout is specified, .join() passes exactly the timeout passed to _it_ to ._wait_for_tstate_lock(), which in turn passes exactly the same timeout to .acquire(). So the negative value must be coming from _communicate() (the self.stdout_thread.joi

[issue19399] sporadic test_subprocess failure

2013-10-25 Thread Antoine Pitrou
New submission from Antoine Pitrou: It looks like this may be the symptom of a buglet in Thread.join: == ERROR: test_communicate_timeout (test.test_subprocess.ProcessTestCase)

[issue19395] unpickled LZMACompressor is crashy

2013-10-25 Thread cantor
cantor added the comment: in python 2.7.3 this kind of works however it is less efficient than the pure lzma.compress() from threading import Thread from backports import lzma from functools import partial import multiprocessing class CompressClass(Thread): def __init__ (self,data,c):

[issue19395] unpickled LZMACompressor is crashy

2013-10-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: Yes, that's because the builtin map function doesn't handle each input in a separate process, so it uses the same LZMACompressor object everywhere. Whereas multiprocessing.Pool.map creates a new copy of the compressor object for each input, which is where the probl

[issue19395] unpickled LZMACompressor is crashy

2013-10-25 Thread cantor
cantor added the comment: just to mention that map() (i.e. the non parallel version) works: import lzma from functools import partial import multiprocessing def run_lzma(data,c): return c.compress(data) def split_len(seq, length): return [str.encode(seq[i:i+length]) for i in range(0,

[issue19329] Faster compiling of charset regexpes

2013-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Antoine's comments. One my bug fixed. -- Added file: http://bugs.python.org/file32364/re_optimize_charset_2.patch ___ Python tracker _

[issue19395] unpickled LZMACompressor is crashy

2013-10-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: As far as I can tell, liblzma provides no way to serialize a compressor's state, so the best we can do is raise a TypeError when attempting to pickle the LZMACompressor (and likewise for LZMADecompressor). Also, it's worth pointing out that the provided code would

[issue13234] os.listdir breaks with literal paths

2013-10-25 Thread Tim Golden
Tim Golden added the comment: Applied. Thanks for the patch. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue18685] Restore re performance to pre-PEP393 level

2013-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Antoine's comments. -- Added file: http://bugs.python.org/file32363/sre_optimize_3.patch ___ Python tracker ___ __

[issue13234] os.listdir breaks with literal paths

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 12aaa2943791 by Tim Golden in branch 'default': Issue13234 Allow listdir to handle extended paths on Windows (Patch by Santoso Wijaya) http://hg.python.org/cpython/rev/12aaa2943791 New changeset 5c187d6162c5 by Tim Golden in branch 'default': Issue

[issue19395] unpickled LZMACompressor is crashy

2013-10-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: The problem is that using an unpickled LZMACompressor crashes: $ ./python -c "import lzma, pickle; c = pickle.loads(pickle.dumps(lzma.LZMACompressor())); c.compress(b'')" Erreur de segmentation Here is the gdb backtrace: #0 0x77bcafc0 in sem_trywait

[issue19397] test_pydoc fails with -S

2013-10-25 Thread Antoine Pitrou
New submission from Antoine Pitrou: $ ./python -S -m test test_pydoc [1/1] test_pydoc test test_pydoc failed -- Traceback (most recent call last): File "/home/antoine/cpython/default/Lib/test/test_pydoc.py", line 473, in test_namedtuple_public_underscore help(NT) NameError: name 'help' is

[issue19398] test_trace fails with -S

2013-10-25 Thread Antoine Pitrou
New submission from Antoine Pitrou: $ ./python -S -m test test_trace [1/1] test_trace test test_trace failed -- Traceback (most recent call last): File "/home/antoine/cpython/default/Lib/test/test_trace.py", line 313, in test_coverage self.assertTrue("pprint.cover" in files) AssertionError

[issue19396] test_contextlib fails with -S

2013-10-25 Thread Antoine Pitrou
New submission from Antoine Pitrou: $ ./python -S -m test test_contextlib [1/1] test_contextlib test test_contextlib failed -- Traceback (most recent call last): File "/home/antoine/cpython/default/Lib/test/test_contextlib.py", line 640, in test_redirect_to_string_io help(pow) NameError: n

[issue19375] Deprecate site-python in site.py

2013-10-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ P

[issue19387] Explain and test the sre overlap table

2013-10-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue19387] Explain and test the sre overlap table

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2ed12e014ef by Antoine Pitrou in branch 'default': Issue #19387: explain and test the sre overlap table http://hg.python.org/cpython/rev/a2ed12e014ef -- nosy: +python-dev ___ Python tracker

[issue19375] Deprecate site-python in site.py

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 90c56229efb7 by Antoine Pitrou in branch 'default': Issue #19375: The site module adding a "site-python" directory to sys.path, if it exists, is now deprecated. http://hg.python.org/cpython/rev/90c56229efb7 -- nosy: +python-dev ___

[issue16803] Make test_import & test_importlib run tests under both _frozen_importlib and importlib._bootstrap

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset f3d50720dee0 by Brett Cannon in branch 'default': Issue #16803: Move test.test_importlib.extension to use both frozen and source importlib code http://hg.python.org/cpython/rev/f3d50720dee0 -- ___ Python

[issue19395] lzma hangs for a very long time when run in parallel using python's muptiprocessing module?

2013-10-25 Thread cantor
Changes by cantor : -- components: -ctypes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue17432] PyUnicode_ functions not accessible in Limited API on Windows

2013-10-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> needs patch versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue19395] lzma hangs for a very long time when run in parallel using python's muptiprocessing module?

2013-10-25 Thread cantor
Changes by cantor : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue4331] Add functools.partialmethod

2013-10-25 Thread alon horev
alon horev added the comment: I just want to make sure I understand the semantics concerning class methods, the following example demonstrates a usage similar to regular methods as much as possible: class A(object): def add(self, x, y): print(self) return x + y add10 =

[issue19395] lzma hangs for a very long time when run in parallel using python's muptiprocessing module?

2013-10-25 Thread cantor
cantor added the comment: lzma -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailm

[issue19395] lzma hangs for a very long time when run in parallel using python's muptiprocessing module?

2013-10-25 Thread cantor
New submission from cantor: import lzma from functools import partial import multiprocessing def run_lzma(data,c): return c.compress(data) def split_len(seq, length): return [str.encode(seq[i:i+length]) for i in range(0, len(seq), length)] def lzma_mp(sequence,threads=3): lzc = l

[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2013-10-25 Thread Tim Golden
Tim Golden added the comment: New patch, tested on Windows & Linux -- Added file: http://bugs.python.org/file32362/issue14255.3.diff ___ Python tracker ___ __

[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2013-10-25 Thread Tim Golden
Changes by Tim Golden : Removed file: http://bugs.python.org/file32338/issue14255.2.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue19387] Explain and test the sre overlap table

2013-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. I guess that new code can be even a little faster. -- ___ Python tracker ___ ___ Python-bugs

[issue13789] _tkinter does not build on Windows 7

2013-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I got sufficient answers on core-mentorship list to build and run. #19273 revised and updated readme.txt. -- resolution: -> out of date stage: -> committed/rejected status: open -> closed superseder: -> Update PCbuild/readme.txt _

[issue18834] Add Clang to distutils to build C/C++ extensions

2013-10-25 Thread Christian Heimes
Changes by Christian Heimes : -- stage: -> patch review versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue17874] ProcessPoolExecutor in interactive shell doesn't work in Windows

2013-10-25 Thread Brian Quinlan
Brian Quinlan added the comment: Take a look at http://bugs.python.org/issue11161 and its fix. Do you think that just saying that ProcessPoolExecutor will not work from the interactive shell is sufficient? -- nosy: +bquinlan ___ Python tracker

[issue16287] Sporadic test_utime() failures on Solaris

2013-10-25 Thread Christian Heimes
Christian Heimes added the comment: Trent, do you still see the failures on Solaris? -- nosy: +christian.heimes priority: normal -> low status: open -> languishing type: -> behavior ___ Python tracker

[issue18699] What is Future.running() for in PEP 3148 / concurrent.futures.Future?

2013-10-25 Thread Brian Quinlan
Brian Quinlan added the comment: The only thing that I've used .running() for is for UI reasons. But it is easier to just iterative over your futures and call a method than to install a callback and handle the state yourself. -- nosy: +bquinlan ___

[issue17432] PyUnicode_ functions not accessible in Limited API on Windows

2013-10-25 Thread Christian Heimes
Christian Heimes added the comment: Martin, do you want to change the def-file for Python 3.4? -- nosy: +christian.heimes priority: normal -> high versions: +Python 3.4 -Python 3.3 ___ Python tracker __

[issue19394] distutils.core.Extension: empty strings in library_dirs and include_dirs should not be allowed

2013-10-25 Thread robotron
New submission from robotron: When empty string element is passed in include_dirs or library_dirs (e.g. include_dirs = [""]) param of distutils.core.Extension constructor, it is propagated to compiler/linker params and in the case of gcc it eats subsequent command line option. setup.py excerp

[issue13785] Make concurrent.futures.Future state public

2013-10-25 Thread Brian Quinlan
Brian Quinlan added the comment: Any progress on this or can I close the bug? -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue19172] selectors: add keys() method

2013-10-25 Thread Charles-François Natali
Charles-François Natali added the comment: > Antoine Pitrou added the comment: > > FWIW, I think the "ideal" solution would be for keys() (*) to return a > read-only Mapping implementation, allowing for file object lookup (using > __getitem__) as well as iteration on SelectorKeys (using __iter__)

[issue19392] document importlib.reload() requires __loader__ to be defined

2013-10-25 Thread Brett Cannon
Brett Cannon added the comment: importlib.reload() already states that the loader is reused, so this only required imp.reload() to be updated. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue11161] futures.ProcessPoolExecutor hangs

2013-10-25 Thread Brian Quinlan
Changes by Brian Quinlan : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11161] futures.ProcessPoolExecutor hangs

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 44b69e95d276 by bquinlan in branch 'default': Issue #11161: Update the documentation for ProcessPoolExecutor to note that it will not work in the interactive shell. http://hg.python.org/cpython/rev/44b69e95d276 -- nosy: +python-dev ___

[issue19393] symtable.symtable can return the wrong "top" SymbolTable

2013-10-25 Thread Steven Winfield
New submission from Steven Winfield: The attached script creates calls symtable.symtable many times on a code snippet that contains a single class with a method called "top", and some other important (to trigger the behaviour) properties: * a class variable * at least three other methods T

[issue19392] document importlib.reload() requires __loader__ to be defined

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset f575f6298eb1 by Brett Cannon in branch '3.3': Issue #19392: Document that imp.reload() now relies on __loader__ http://hg.python.org/cpython/rev/f575f6298eb1 -- nosy: +python-dev ___ Python tracker

[issue19389] find_file might return a different directory than the tested file

2013-10-25 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. The issue of setup.py not looking in an OS X SDK for zlib.h was recently fixed in currently active branches: f3a2dab1623b (default), 2d8d5fea6194 (3.3), c207ac413457 (2.7). By the way, there has been a lot of confusion about the installation

[issue19392] document importlib.reload() requires __loader__ to be defined

2013-10-25 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue15477] test_cmath failures on OS X 10.8

2013-10-25 Thread Mark Dickinson
Mark Dickinson added the comment: Perfect. Thanks, Ned! I'll update the Apple issue. -- ___ Python tracker ___ ___ Python-bugs-list

[issue19339] telnetlib: time.monotonic() should be used instead of time.time() for timeout

2013-10-25 Thread Charles-François Natali
Charles-François Natali added the comment: Victor, did you see Serhiy's comment? -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2013-10-25 Thread Nick Coghlan
Nick Coghlan added the comment: Keep in mind that part of the problem here is finding stdlib code that needs to be fixed to handle subclasses correctly. The existing APIs have permitted use with subclasses for years but are, in fact, the wrong tool for that in many cases. The problem to be solve

[issue19392] document importlib.reload() requires __loader__ to be defined

2013-10-25 Thread Brett Cannon
New submission from Brett Cannon: Make sure importlib.reload() (and by extension imp.reload()) mention that __loader__ must be defined as well as __name__. -- assignee: docs@python components: Documentation messages: 201259 nosy: brett.cannon, docs@python priority: normal severity: norm

[issue19390] clinic.py: unhandled syntax error

2013-10-25 Thread Stefan Krah
Stefan Krah added the comment: Larry Hastings wrote: > You're proposing that Clinic allow => ? No, but it should print an error message and exit. Currently it silently generates garbage which does not compile. [I've noticed that you handle many other syntax errors. Nice work.] -- ___

[issue16803] Make test_import & test_importlib run tests under both _frozen_importlib and importlib._bootstrap

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e2c3f638c3d0 by Brett Cannon in branch 'default': Issue #16803: Have test.test_importlib.builtin test both frozen and http://hg.python.org/cpython/rev/e2c3f638c3d0 -- ___ Python tracker

[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2013-10-25 Thread Stefan Behnel
Stefan Behnel added the comment: Nick Coghlan added the comment: > Antoine Pitrou added the comment: >> To be clear: the problem is with CPython calling the concrete APIs when >> it shouldn't, rather than with the concrete APIs not behaving properly. > > The boilerplate required to use them corr

[issue16037] httplib: header parsing is unlimited

2013-10-25 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Third version of the 3.2 patch, this time with documentation of the exception TooManyHeaders -- Added file: http://bugs.python.org/file32358/issue16037_py32_v3.patch ___ Python tracker

[issue19391] Fix PCbuild/readme.txt in 2.7 and 3.3

2013-10-25 Thread Zachary Ware
Zachary Ware added the comment: The 2.7 patch makes the following changes: - python30.dll -> python27.dll - remove "(see below)" from _bsddb and _sqlite3 which have nothing to see below - bz2.vcproj isn't as magical as it made out to be, and it can clean itself - nasmw -> nasm - Remove untrue par

[issue19391] Fix PCbuild/readme.txt in 2.7 and 3.3

2013-10-25 Thread Zachary Ware
Changes by Zachary Ware : Added file: http://bugs.python.org/file32355/pcbuild_readme-3.3.diff-w ___ Python tracker ___ ___ Python-bugs-list m

[issue19391] Fix PCbuild/readme.txt in 2.7 and 3.3

2013-10-25 Thread Zachary Ware
Changes by Zachary Ware : Added file: http://bugs.python.org/file32357/pcbuild_readme-2.7.diff-w ___ Python tracker ___ ___ Python-bugs-list m

[issue16803] Make test_import & test_importlib run tests under both _frozen_importlib and importlib._bootstrap

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset becc0a488189 by Brett Cannon in branch 'default': Issue #16803: Stop having test.test_importlib.abc ABCs inherit from http://hg.python.org/cpython/rev/becc0a488189 -- ___ Python tracker

[issue19391] Fix PCbuild/readme.txt in 2.7 and 3.3

2013-10-25 Thread Zachary Ware
New submission from Zachary Ware: As discussed in issue19273, here are a pair of patches that correct factual errors in PCbuild/readme.txt in both 2.7 and 3.3. The 3.3 patch makes the following changes: - Remove Win2k mentions, it is not supported (Tcl nmake command also adjusted) - MSVCRT9 ->

[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2013-10-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > To be clear: the problem is with CPython calling the concrete APIs when > > it shouldn't, rather than with the concrete APIs not behaving properly. > > The boilerplate required to use them correctly renders them broken in my > view, particularly when they si

[issue19390] clinic.py: unhandled syntax error

2013-10-25 Thread Larry Hastings
Larry Hastings added the comment: You're proposing that Clinic allow => ? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2013-10-25 Thread Nick Coghlan
Nick Coghlan added the comment: On 26 Oct 2013 02:18, "Antoine Pitrou" wrote: > > > Antoine Pitrou added the comment: > > > The problem we're trying to solve is CPython *silently* breaking subclass > > invariants, which is what the concrete APIs currently do. > > To be clear: the problem is with

[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2013-10-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The problem we're trying to solve is CPython *silently* breaking subclass > invariants, which is what the concrete APIs currently do. To be clear: the problem is with CPython calling the concrete APIs when it shouldn't, rather than with the concrete APIs not b

[issue10977] Concrete object C API considered harmful to subclasses of builtin types

2013-10-25 Thread Nick Coghlan
Nick Coghlan added the comment: The problem we're trying to solve is CPython *silently* breaking subclass invariants, which is what the concrete APIs currently do. At the moment, trying to swap out dicts with ordered dicts in various places will corrupt the ordered dict instead of calling the app

[issue19390] clinic.py: unhandled syntax error

2013-10-25 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue19390] clinic.py: unhandled syntax error

2013-10-25 Thread Stefan Krah
New submission from Stefan Krah: The attached syntax error should probably be handled by clinic.py. -- components: Demos and Tools files: syntax-err-1.patch keywords: patch messages: 201246 nosy: skrah priority: normal severity: normal status: open title: clinic.py: unhandled syntax erro

[issue19389] find_file might return a different directory than the tested file

2013-10-25 Thread Mathieu Virbel
New submission from Mathieu Virbel: With Maverick OSX (latest version), there is no /usr/include/zlib.h anymore. If you try to compile Python with -sysroot, it trigger a error message: error: /usr/include/zlib.h: No such file or directory The issue is in setup.py, where find_file is checking t

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-10-25 Thread Brett Cannon
Brett Cannon added the comment: I've added a review -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19358] Integrate "Argument Clinic" into CPython build

2013-10-25 Thread Larry Hastings
Larry Hastings added the comment: For a long time it was actually 3.4+ only. I was depending on a particular AST node that wasn't exposed to Python until 3.4 trunk. But that went away, and I tried it with 3.3 and it worked fine, so I labeled it 3.3+. For all I know it works fine under 3.1,

[issue19386] selectors test_interrupted_retry is flaky

2013-10-25 Thread Charles-François Natali
Charles-François Natali added the comment: Could you try to run the test in a loop under strace ("strace -ttTf") ? -- ___ Python tracker ___ _

[issue19386] selectors test_interrupted_retry is flaky

2013-10-25 Thread R. David Murray
R. David Murray added the comment: The only change on the buildbot for some months now was increasing the size of the in-memory /tmp filesystem, which I did yesterday. That also involved a reboot, though, and it is conceivable that there were software changes made since the last reboot and be

[issue19386] selectors test_interrupted_retry is flaky

2013-10-25 Thread Charles-François Natali
Charles-François Natali added the comment: > Flaky VM clock perhaps? Yeah, thought about that, but here we see *exactly* the same value for two time intervals (using time.monotonic()), computed over different test suite runs. I'd expected something more erratic... -- __

  1   2   >