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
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
Nick Coghlan added the comment:
On second thoughts, since I haven't started on the refactoring yet...
--
resolution: duplicate -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19396
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
Changes by Nick Coghlan ncogh...@gmail.com:
--
dependencies: +Use public classes for contextlib.suppress and redirect_stdout
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19403
___
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
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
Roundup Robot added the comment:
New changeset ea3deb022890 by Victor Stinner in branch '3.3':
Close #19339: telnetlib module is now using time.monotonic() when available to
http://hg.python.org/cpython/rev/ea3deb022890
New changeset d0f90d3f6203 by Victor Stinner in branch 'default':
(Merge
New submission from Nick Coghlan:
While working on issue 19330, I also took a look at whether or not I could fix
the @contextmanager decorator to also provide useful help information on the
resulting objects. This turned out to be difficult, since calling decorated
functions produces
STINNER Victor added the comment:
Victor, did you see Serhiy's comment?
Yes, I modified my patch to use _time name instead. The issue should now be
fixed.
--
stage: committed/rejected -
___
Python tracker rep...@bugs.python.org
Nick Coghlan added the comment:
I checked the other classes in contextlib to ensure they also provided decent
docstrings on instances. They were mostly OK, but @contextmanager itself
doesn't provide useful docs when inspecting the result context manager
instances directly. However, fixing
Roundup Robot added the comment:
New changeset 66e2dfbb1d70 by Serhiy Storchaka in branch 'default':
Issue #18685: Restore re performance to pre-PEP 393 levels.
http://hg.python.org/cpython/rev/66e2dfbb1d70
--
nosy: +python-dev
___
Python tracker
Roundup Robot added the comment:
New changeset 09153a9a3bb9 by Nick Coghlan in branch 'default':
Close #19330 by using public classes in contextlib
http://hg.python.org/cpython/rev/09153a9a3bb9
--
nosy: +python-dev
resolution: - fixed
stage: needs patch - committed/rejected
status:
Roundup Robot added the comment:
New changeset 09153a9a3bb9 by Nick Coghlan in branch 'default':
Close #19330 by using public classes in contextlib
http://hg.python.org/cpython/rev/09153a9a3bb9
--
nosy: +python-dev
___
Python tracker
STINNER Victor added the comment:
Sorry, I was busy with my tracemalloc PEP, I didn't havee time to review your
patch. I'm happy that you restored Python 3.2 performances! Thanks Serhiy.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 00e61cb3b11c by Serhiy Storchaka in branch 'default':
Issue #18685: Extract template part of _sre.c into separated sre_lib.h file.
http://hg.python.org/cpython/rev/00e61cb3b11c
--
___
Python tracker
Nick Coghlan added the comment:
Because context managers are closer to try/finally blocks than they are to
exception handling, the class-based implementation for the contextlib.suppress
API uses issubclass rather than emulating the CPython exception handling
semantics:
New submission from Serhiy Storchaka:
The _sre module contains comments which refers to 16-bit SRE_CODE. Now SRE_CODE
is 32-bit.
Antoine partially reviewed this change in issue19329.
--
assignee: docs@python
components: Documentation, Regular Expressions
files: sre_comments.patch
Serhiy Storchaka added the comment:
I suppose tests will fail when Python is compiled with --without-doc-strings
options. Perhaps the test.support.requires_docstrings decorator should be used.
--
nosy: +serhiy.storchaka
___
Python tracker
Roundup Robot added the comment:
New changeset db5a50959dc9 by Ned Deily in branch '2.7':
Issue #15663: OS X installer builtin Tcl/Tk support
http://hg.python.org/cpython/rev/db5a50959dc9
New changeset 150242784de0 by Ned Deily in branch '3.3':
Issue #15663: OS X installer builtin Tcl/Tk
Vajrasky Kok added the comment:
This issue has been accidentally fixed by
http://hg.python.org/cpython/rev/513da56d28de commit.
Time to close it? Any last words?
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Didn't you forget to add sre_lib.h?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18685
___
___
Antoine Pitrou added the comment:
Ah, sorry, no. I was fooled by the commit e-mail.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18685
___
___
Serhiy Storchaka added the comment:
Yes, the commit e-mail looks queer.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18685
___
___
Vajrasky Kok added the comment:
Attached the patch to fix the test.
The main issue is that with S flag, we do not have help in builtins. And I
think that is deliberate.
[sky@localhost cpython]$ ./python -S
Python 3.4.0a4+ (default:64fb6a58ebf4+, Oct 26 2013, 19:04:01)
[GCC 4.7.2 20121109
Nick Coghlan added the comment:
It also fails under -OO, so I changed that decorator to deal with that case as
well.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19330
___
Roundup Robot added the comment:
New changeset a9bbc2d0c1dc by Nick Coghlan in branch 'default':
Issue #19330: Handle the no-docstrings case in tests
http://hg.python.org/cpython/rev/a9bbc2d0c1dc
--
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file32370/issue16203_mrab_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16203
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: -easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16203
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Patch updated to current tip. I have added some changes from the review and
have added some tests.
Matthew, why change for SRE_OP_REPEAT_ONE is needed? Tests are passed without
it.
--
___
Python tracker
Serhiy Storchaka added the comment:
Just use pydoc.help.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19397
___
___
New submission from Nick Coghlan:
Adding the initial ensurepip implementation and module docs
(the Installing Python Modules updates will be handled in a separate issue)
--
assignee: dstufft
components: Library (Lib)
messages: 201342
nosy: dstufft, larry, ncoghlan
priority: release
New submission from Nick Coghlan:
Updating the Installing Python Modules docs in 2.7, 3.3 and default to
recommend pip as the default cross-platform installer.
--
assignee: ncoghlan
components: Documentation
messages: 201343
nosy: benjamin.peterson, georg.brandl, larry, ncoghlan
Nick Coghlan added the comment:
Once issue 19406 is implemented, this will need an additional update to
indicate pip should be available by default in 3.4.
--
dependencies: +PEP 453: add the ensurepip module
___
Python tracker rep...@bugs.python.org
Nick Coghlan added the comment:
First two working issues created:
Issue 19406 for the addition of ensurepip and its docs
Issue 19407 for the Installing Python Modules updates
--
dependencies: +PEP 453: add the ensurepip module, PEP 453: update the
Installing Python Modules
Nick Coghlan added the comment:
Issue 19437 tracks overall PEP 453 implementation progress
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19407
___
Nick Coghlan added the comment:
Issue 19347 tracks overall PEP 453 implementation progress
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19406
___
Nick Coghlan added the comment:
Issue 19437 tracks overall PEP 453 implementation progress
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19406
___
Nick Coghlan added the comment:
Issue 19347 tracks overall PEP 453 implementation progress
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19407
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
Removed message: http://bugs.python.org/msg201346
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19407
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
Removed message: http://bugs.python.org/msg201347
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19406
___
Donald Stufft added the comment:
Attached is an initial rough draft of the ensurepip module. There are some
issues still, but they largely need resolved in pip.
1. Setuptools' use of dependency_links causes pip to still reach out to the
internet.
2. Need to remove the --pre flag from the pip
New submission from Isis Binder:
I was working on some SPOJ exercises when the regex module hit me with an error
related to '*' being used inside the character set operator.
I looked in the module docs but it says: Special characters lose their special
meaning inside sets. For example, [(+*)]
Donald Stufft added the comment:
Added a second draft that handles the case when the stdlib isn't directly
browseable (e.g. it's zipped up or something).
--
Added file: http://bugs.python.org/file32373/draft2.diff
___
Python tracker
Brett Cannon added the comment:
Since the test now passes I'm going to close this as fixed.
--
assignee: - brett.cannon
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
From re documentation:
Ranges of characters can be indicated by giving two characters and
separating them by a '-', for example [a-z] will match any lowercase ASCII
letter, [0-5][0-9] will match all the two-digits numbers from 00 to 59, and
[0-9A-Fa-f]
New submission from Donald Stufft:
Currently pkgutil cannot be imported unless you first import
importlib.machinery. This means ./python.exe -m pkgutil works, but doing
``import pkgutil`` in the REPL does not.
--
messages: 201355
nosy: dstufft, larry
priority: release blocker
Nick Coghlan added the comment:
I'm seeing the same symptom locally.
If you use -m to execute things, the problem isn't noticeable because runpy
imports importlib.machinery. It looks like test.regrtest imports it as well:
$ ./python -m test test_pkgutil
[1/1] test_pkgutil
1 test OK.
$
Donald Stufft added the comment:
Added a third draft, this one adds the script to check if pip needs updated.
I've removed the first two drafts to make it simpler.
--
Added file: http://bugs.python.org/file32374/draft3.diff
___
Python tracker
Changes by Donald Stufft don...@stufft.io:
Removed file: http://bugs.python.org/file32371/draft.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19406
___
Changes by Donald Stufft don...@stufft.io:
Removed file: http://bugs.python.org/file32373/draft2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19406
___
Nick Coghlan added the comment:
I think this change also makes for nicer examples of reentrant (using the
updated redirect_stdout) and reusable-but-not-reentrant (using ExitStack)
behaviour in the docs.
--
keywords: +patch
Added file:
Nick Coghlan added the comment:
Also make clobber and a rebuild didn't fix it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19409
___
___
Nick Coghlan added the comment:
Turns out the relevant import is just plain missing from pkgutil, and we didn't
notice because so many other things import it :P
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19409
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: - ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19409
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 0c0cbba64b7b by Nick Coghlan in branch 'default':
Close #19409: add missing import in pkgutil
http://hg.python.org/cpython/rev/0c0cbba64b7b
--
nosy: +python-dev
resolution: - fixed
stage: - committed/rejected
status: open - closed
Nick Coghlan added the comment:
Ah, I figured out which commit broke it, too: the one that deprecated the imp
module (see http://hg.python.org/cpython/rev/1b8f08c4efd5)
Previously, the importlib.machinery dependency was satisfied indirectly through
imp.
--
Nick Coghlan added the comment:
I checked the other modules that previously imported imp, and they're all fine.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19409
___
Nick Coghlan added the comment:
I proposed a possible solution for this in issue 19404
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19031
___
Nick Coghlan added the comment:
Issue 19031 is a report indicating that this is a problem for Enum instances as
well.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19404
___
alon horev added the comment:
Here's another attempt at a consistent api with regular methods.
I'm contemplating whether partialmethod should support __call__. Given the fact
partial is used to bind positional arguments, it will do the 'wrong' thing when
calling the partialmethod directly and
New submission from Nick Coghlan:
As noted on python-dev, while changing PathFinder to expand the empty string to
the current working directory is a good idea, removing the '' special case
handling in FileFinder may break subclasses and other custom metapath hooks
that expect the current
Christian Heimes added the comment:
I still don't get it. All arguments are about don't execute async unsafe code
after fork(). But the child process does *not* execute *any* code after fork.
It's just the parent process that executes its handler.
--
Nick Coghlan added the comment:
Something else we may be able to fix (albeit probably not in 3.4): several of
the issues noted in PEP 395 (since __main__.__spec__.name will give the real
module name, even when __name__ is set to __main__ or otherwise modified)
--
Vajrasky Kok added the comment:
Attached the patch based on Serhiy's suggestion.
--
Added file: http://bugs.python.org/file32376/fix_test_pydoc_with_S_flag_v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19397
Benjamin Peterson added the comment:
Your patch adds a child process atfork handler, which definitely isn't executed
in the parent
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19227
Antoine Pitrou added the comment:
I suppose this issue can be fixed then. Thanks for doing this!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18685
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19393
___
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19393
___
___
Antoine Pitrou added the comment:
If it's not possible (or easily doable) to recreate the compressor's internal
state, I agree it would be helpful for pickling to raise a TypeError.
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Thank you for your review Antoine and Victor.
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18685
Matthew Barnett added the comment:
The traceback says bad character range because ord('+') == 43 and ord('*') ==
42. It's not surprising that it complains if the range isn't valid.
--
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19408
___
New submission from Devin Jeanpierre:
http://docs.python.org/3.4/library/binascii.html#binascii.hexlify
--
assignee: docs@python
components: Documentation
messages: 201376
nosy: Devin Jeanpierre, docs@python
priority: normal
severity: normal
status: open
title: binascii.hexlify docs say
Nick Coghlan added the comment:
I like your suggestion of not providing __call__(), as I don't see a way to
make it work with arbitrary underlying descriptors, and neither classmethod nor
staticmethod is callable.
In terms of usage, I think this approach will be OK, as in practice I expect
Roundup Robot added the comment:
New changeset bc259b221cb8 by Benjamin Peterson in branch '3.3':
just return toplevel symbol table rather than all blocks (closes #19393)
http://hg.python.org/cpython/rev/bc259b221cb8
New changeset f1b7b5979e96 by Benjamin Peterson in branch '2.7':
just return
New submission from Nick Coghlan:
It is *not* OK to have a test.support.HAVE_DOCSTRINGS flag that is true under
-OO, nor a requires_docstrings decorator that still attempts to run the test
under those conditions.
Issue 19330 updated them so their meaning matched their names and the
Nick Coghlan added the comment:
Alternatively, if the affected tests should also be skipped under -OO, then I
think changing the current definition of HAVE_DOCSTRINGS would also work:
MISSING_C_DOCSTRINGS = (check_impl_detail() and
sys.platform != 'win32' and
Tim Peters added the comment:
Think this is related to why the FreeBSD default buildbot is always failing now?
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/5619/steps/test/logs/stdio
Like:
File
Roundup Robot added the comment:
New changeset fae0a09f0f60 by Benjamin Peterson in branch '2.7':
check for berkelydb versions besides 4.3 (#18734)
http://hg.python.org/cpython/rev/fae0a09f0f60
--
nosy: +python-dev
___
Python tracker
Benjamin Peterson added the comment:
Okay. I made the check less dumb. Maybe it works...
--
priority: release blocker - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18734
___
Stefan Krah added the comment:
Yeah, HAVE_DOCSTRINGS was added when we were not sure whether to skip C
and Python docstrings separately.
I agree that the right thing is to have both requires_c_docstrings
and requires_py_docstrings.
--
___
Python
Stefan Krah added the comment:
For reference see #17041 and msg180774. Separating the decorators
makes things clearer (after all we're dealing with extremely obscure
features here), merging them could mean less work.
--
___
Python tracker
Nick Coghlan added the comment:
+1 for separate flags with appropriate names and skip messages.
It should only be the usage in test_contextlib which needs to be
migrated to the Python flags, although the C usage may be more
widespread. (The other Python cases are currently checking the
Ethan Furman added the comment:
Would it make sense to have the presence of a non-None __doc__ be a deciding
factor? How often does an instance have a docstring where one would want the
class info instead?
--
___
Python tracker
Nadeem Vawda added the comment:
It looks like there's also a separate problem in the multiprocessing
module. The following code hangs after hitting a TypeError trying to
pickle one of the TextIOWrapper objects:
import multiprocessing
def read(f): return f.read()
files =
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19412
___
Stefan Krah added the comment:
I'm getting a couple of Valgrind leaks, starting with 1edff836c954:
valgrind --suppressions=Misc/valgrind-python.supp --leak-check=full ./python -c
pass
All of them seem to be in _PySys_Init().
--
nosy: +skrah
Added file:
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: - committed/rejected
versions: +Python 3.4 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11161
___
Antoine Pitrou added the comment:
Can you identify which objects those leaks point to?
The sys module is cleared at shutdown.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10241
___
Antoine Pitrou added the comment:
Here is a working patch.
--
keywords: +patch
Added file: http://bugs.python.org/file32378/build_ext_parallel.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5309
Antoine Pitrou added the comment:
Looks good to me, except that it probably shouldn't apply to 2.7 (does it?).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19405
___
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file32379/tkinter_options_tests_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19085
___
Serhiy Storchaka added the comment:
Updated patch fixes issues for Tk 8.4 and skipped ttk.Scrollbar test on MacOSX.
I have increased the priority because many Tkinter issues will benefit from
these tests.
--
priority: normal - high
___
Python
Serhiy Storchaka added the comment:
In 2.7 SRE_CODE is 32-bit too (since issue1160). Only last chunk in
Lib/sre_compile.py patch shouldn't apply to 2.7.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19405
Antoine Pitrou added the comment:
Here is an updated patch which only enables parallel building in setup.py.
--
Added file: http://bugs.python.org/file32380/build_ext_parallel2.patch
___
Python tracker rep...@bugs.python.org
Juan Javier added the comment:
Hi Brian,
No, no progress on this. I think this is not an interesting feature after all.
You can close this.
Juan Javier
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13785
Juan Javier added the comment:
It looks like this is not very interesting after all.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15634
___
Changes by Juan Javier jjdomingu...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13785
___
___
Eric Snow added the comment:
Here's an update of the language reference patch based on Brett's comments.
--
Added file: http://bugs.python.org/file32381/import-system-reference.diff
___
Python tracker rep...@bugs.python.org
1 - 100 of 119 matches
Mail list logo