Eric Snow added the comment:
Okay, I didn't read closely enough. :) It may be worth updating the title.
FWIW, the name module_from_spec confused me at first because my brain
interpreted that as load_from_spec. Keeping the name and purpose more
focused might be helpful. I have comments
Eric Snow added the comment:
How about this replacement for direct use of Loader.load_module():
# in importlib.util
def load(spec_or_name, /, **kwargs): # or load_from_spec
if isinstance(spec_or_name, str):
name = spec_or_name
if not kwargs:
raise
Berker Peksag added the comment:
See issue 18879 for more information about the change.
--
nosy: +berker.peksag, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21579
___
Марк Коренберг added the comment:
Is issue 21579 fixed in that bug? too many letters..sorry...
--
nosy: +mmarkk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18879
___
Roundup Robot added the comment:
New changeset cd8b5b5b6356 by Raymond Hettinger in branch '3.4':
Issue 8743: Improve interoperability between sets and the collections.Set
abstract base class.
http://hg.python.org/cpython/rev/cd8b5b5b6356
--
___
Roundup Robot added the comment:
New changeset ba84d1e9a742 by Raymond Hettinger in branch '2.7':
Issue #21481: Teach argparse equality tests to return NotImplemented when
comparing to unknown types.
http://hg.python.org/cpython/rev/ba84d1e9a742
--
nosy: +python-dev
Roundup Robot added the comment:
New changeset 510c8dc38749 by Raymond Hettinger in branch '3.4':
Issue #21481: Teach argparse equality tests to return NotImplemented when
comparing to unknown types.
http://hg.python.org/cpython/rev/510c8dc38749
--
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21481
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: rhettinger - bob.ippolito
nosy: +bob.ippolito
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13212
___
Bob Ippolito added the comment:
As Chris Rebert mentioned, the JSON standards have adopted this (unsurprising)
behavior. Ruby hasn't, and I doubt Crockford has, but I think they're in the
minority at this point. JavaScript's own JSON implementation works the same way
json/simplejson does.
Bob Ippolito added the comment:
In other words, I would consider this to be fixed by the documentation change
made elsewhere.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13212
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8743
___
Jan-Philip Gehrcke added the comment:
I have updated the patch with a cross-reference to the sorted() built-in, which
explains the arguments.
W.r.t. to Éric's suggestion: the sorted() doc refers to the sorting howto in
the wiki. Now everything is connected.
--
Added file:
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: docs@python - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21575
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +gpolo, serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21580
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +georg.brandl, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21579
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20664
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21560
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Note the catch on 2.7. triangular(10, 10.0) returns 10.0, but triangular(10,
10.0, 10.0) returns 10. If then you divide by the result...
I proposed change return low to return low + 0.0.
--
___
Python tracker
Serhiy Storchaka added the comment:
In any case this trick didn't work on Windows. And it can't work on Linux too
when use new O_TMPFILE flag (issue21515).
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21579
___
___
Python-bugs-list
Марк Коренберг added the comment:
Yes, but O_TMPFILE should be set ONLY when used with TemporaryFile, not with
NamedTemporaryFile. My problem refer only NamedTemporaryFile.
--
___
Python tracker rep...@bugs.python.org
Berker Peksag added the comment:
Here's a patch with a simple test case.
--
keywords: +patch
nosy: +berker.peksag
stage: needs patch - patch review
Added file: http://bugs.python.org/file35366/issue21578.diff
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
All the current dependences are currently fixed.
Are you planning to add more in the future or can this issue be closed?
--
assignee: - docs@python
components: +Documentation
nosy: +docs@python, ezio.melotti
type: - enhancement
Sunny K added the comment:
Hi Stefan,
I've added a new patch which only adds _fields, combining parts from my earlier
patch and Andrew's (his patch does not account for visible unnamed fields).
--
Added file: http://bugs.python.org/file35367/structseq_fields.patch
Ezio Melotti added the comment:
IIUC there was a similar issue from China, and on the old site we fixed it by
adding http://legacy.python.org/getit/.
I don't know what was made to this page to make it work from China and if it
still exists on the new website, but maybe the same trick could be
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: - needs patch
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21077
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +haypo, pitrou, serhiy.storchaka
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21310
___
Ezio Melotti added the comment:
Can you provide more information about the error (e.g. the relevant piece of
code where the error generates, if you can reproduce it every time or if it's
sporadic, a minimal piece of code that can reproduce the same issue, etc.)?
I would also suggest to report
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +terry.reedy
stage: patch review - commit review
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21434
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21445
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21515
___
___
Serhiy Storchaka added the comment:
See also issue20074.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21310
___
___
Python-bugs-list mailing
Mark Lawrence added the comment:
Anybody?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19980
___
___
Python-bugs-list mailing list
Leo Butcher added the comment:
Still not working, they both timeout
also the docs subdomain is the same
On Mon, May 26, 2014 at 12:19 PM, Ezio Melotti rep...@bugs.python.orgwrote:
Ezio Melotti added the comment:
IIUC there was a similar issue from China, and on the old site we fixed it
by
Brett Cannon added the comment:
First, about breaking up _SpecMethods: that was entirely on purpose. =) I
honestly have found _SpecMethods a bit of a pain to work with because at every
place where I have a spec object and I need to operate on it I end up having to
wrap it and then call a
Ian Cordasco added the comment:
Per discussion on twitter
(https://twitter.com/merwok_/status/468518605135835136) I'm bumping this to
make sure it's merged.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10510
Brett Cannon added the comment:
I think that's the wrong abstraction(it would be fine in a third-party library,
though, that's trying to smooth over 3.3-3.4 transitions). Since
importlib.util.find_spec() always returns a spec, then you want something more
like::
def load(spec):
loader
Changes by Brett Cannon br...@python.org:
--
dependencies: +Consider dropping importlib.abc.Loader.create_module()
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21235
___
New submission from Brett Cannon:
As Armin Ronacher pointed out, it's a bit odd having the importlib.abc.Loader
ABC have a method whose default does nothing and having the method itself be
entirely optional. Might as well just drop it from the ABC and instead just
make sure that
Brett Cannon added the comment:
Opened issue #21581 to discuss Armin's point about
importlib.abc.Loader.create_module() being there but not being much use since
the method is entirely optional.
--
___
Python tracker rep...@bugs.python.org
Saimadhav Heblikar added the comment:
Summary for htest-26052014-34.diff and htest-26052014-27.diff
1. Adds htest for ReplaceDialog and SearchDialog
2. Removes the two canvases in TreeWidget as per code review comment. Now there
is only a single ScrollableCanvas
3. Some text changes in spec
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
Added file: http://bugs.python.org/file35369/htest-26052014-27.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21477
___
New submission from diana:
Updated test_asyncore to use the support.catpured_stdout/stderr context
managers rather than try/finally blocks.
--
components: Tests
files: use_support_captured_test_asyncore.patch
keywords: patch
messages: 219162
nosy: diana
priority: normal
severity:
Changes by diana diana.joan.cla...@gmail.com:
--
title: use the support.catpured_stdout/stderr context managers - test_asyncore
- use support.catpured context managers - test_asyncore
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
I plan to add more.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21054
___
___
Python-bugs-list mailing list
Terry J. Reedy added the comment:
This is documentation for the 2.7 '-3' command line option, which I presume has
not changed at least since 2.7.0, rather than for 2to3, which has changed in
different 3.x releases. If I am correct, the list of things -3 warns about has
not changed. It might
New submission from diana:
- Updated test_asyncore to use the support.catpured_stderr context manager
- Removed unused imports
--
components: Tests
files: use_support_captured_stderr_test_logging.patch
keywords: patch
messages: 219165
nosy: diana
priority: normal
severity: normal
Jessica McKellar added the comment:
@BreamoreBoy, thanks for following up on this!
I propose the following. help('') returns help on strings in the same way
that help([]) and help({}) returns help on lists and dicts respectively,
Sounds good.
further help(''.method) returns help on the
diana added the comment:
oops, typo:
- Updated test_logging (not test_asyncore) to use the support.catpured_stderr
context manager
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21583
Eric Snow added the comment:
tl;dr I'm okay with pulling the functions out of _SpecMethods (and
dropping the class) but I'd prefer the distinct functions continue to
exist as they are. Also, I still think updating the ModuleType
signature is the way to go (given current use cases). :)
First,
Eric Snow added the comment:
I'm just considering current usage:
mod = loader.load_module(name)
becomes:
spec = spec_from_loader(name, loader)
mod = load(spec)
vs.
mod = load(name, loader=loader)
I guess I'm torn. I like how the former forces you to consider specs when
dealing
Brett Cannon added the comment:
I think we view the fundamentals of built-in types differently as well. =) A
module instance can exist without a spec no problem. As long as you don't pass
that module instance through some chunk of code that expects __spec__ -- or any
other attribute for that
Jessica McKellar added the comment:
@Lita.Cho: (I'd like to this on the web but the links are still broken after
the website port) if you search for `wantobjects` in `Doc/whatsnew/2.3.rst`,
there's a description of why the parameter was added.
--
Robert Snoeberger added the comment:
I created a patch to add a check for NULL globals or locals. The file
execfile.patch is attached. A system error is set with the message globals and
locals cannot be NULL if either is NULL.
An open question I have is how should I create tests for this
Eric Snow added the comment:
I give. :) You've made good points about builtins and C implementations.
Also, thinking about issue #21235 has changed my perspective a bit.
As to _SpecMethods, I mean just drop the class and turn the methods into
functions:
* name: name - _spec_name (or
New submission from Serhiy Storchaka:
When integer index overflows C long, sqlite3.Row.__getitem__() doesn't raise an
exception. Instead overflow exception is raised later.
import sqlite3
con = sqlite3.connect(:memory:)
con.row_factory = sqlite3.Row
row = con.execute(select 1 as a, 2 as
Serhiy Storchaka added the comment:
Actually this happens after applying the patch from issue10203.
--
resolution: - not a bug
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21584
Serhiy Storchaka added the comment:
Looks good, but there is one detail. Whith issue10203.patch when integer index
overflows C long, sqlite3.Row.__getitem__() doesn't raise an exception. Instead
overflow exception is raised later.
import sqlite3
con = sqlite3.connect(:memory:)
Serhiy Storchaka added the comment:
Now I think we shouldn't deprecate and remove wantobjects=False. Tkinter was
partially broken with wantobjects=False, on other hand, it was partially broken
with wantobjects=True. Many bugs was fixed last months, all tests now work with
wantobjects=False,
New submission from Serhiy Storchaka:
The wantobjects attribute of the tkinter module is True by default, and all
Tkinter tests run with wantobjects=True. We need to test Tkinter with
wantobjects=False too. All Tkinter tests should be ran twice, in both mode.
--
components: Tests,
Claudiu.Popa added the comment:
Thanks. Here's a fix.
--
Added file: http://bugs.python.org/file35373/issue10203_1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10203
___
Torsten Landschoff added the comment:
That sounds like you did not initialize the freeze support of the
multiprocessing module:
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.freeze_support
Basically, you need to add the following code to your main, before anything
Antoine Pitrou added the comment:
PHP might be close to our case: Debian includes a libphp5.so
(in /usr/lib/php5), yet neither /usr/bin/php5 nor the Apache libphp5.so
link against it, and all the PHP modules (in
/usr/lib/php5/20100525+lfs/) don't link with the shared library -
on Debian.
New submission from Daniel Fisher:
There is a minor error in the documentation page
https://docs.python.org/2/howto/sockets.html;
Line 31 of the sample program of the program listed under Using a Socket
reads chucks.append(chunk). It should read chunks.append(chunk). Without this
minor
New submission from Joshua Landau:
There are tabs in the source:
http://hg.python.org/cpython/file/5c8d71516235/Include/listobject.h#l49
I don't really know, but this seems like a release blocker to me ;).
--
messages: 219183
nosy: Joshua.Landau
priority: normal
severity: normal
Roundup Robot added the comment:
New changeset dc2a123d538a by Benjamin Peterson in branch '2.7':
fix typo in variable name (closes #21586)
http://hg.python.org/cpython/rev/dc2a123d538a
New changeset 62eb4828fdf7 by Benjamin Peterson in branch '3.4':
fix typo in variable name (closes #21586)
Roundup Robot added the comment:
New changeset e38e30b0d017 by Benjamin Peterson in branch '2.7':
remove tab (closes #21587)
http://hg.python.org/cpython/rev/e38e30b0d017
New changeset f7075eb04b75 by Benjamin Peterson in branch '3.4':
remove tab (closes #21587)
Antoine Pitrou added the comment:
Hmm, apparently the -l flag was added in #832799, for a rather complicated case
where the interpreter is linked with a library dlopened by an embedding
application (I suppose for some kind of plugin system). The OP there also
mentions RTLD_GLOBAL as a
Roundup Robot added the comment:
New changeset ae2e8bfda7d7 by Benjamin Peterson in branch '2.7':
remove list of example incompatibilities (closes #21434)
http://hg.python.org/cpython/rev/ae2e8bfda7d7
--
nosy: +python-dev
resolution: - fixed
stage: commit review - resolved
status: open
Benjamin Peterson added the comment:
Looks like there's a debugging turd in the test.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21304
___
Nick Coghlan added the comment:
I suggest waiting until we update the C extension import system before making a
final decision - that was the concrete use case for the feature, so it may
become less confusing once that is added.
--
nosy: +ncoghlan
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21581
___
Ned Deily added the comment:
2. Htest's for GrepDialog, outputwindow, configDialog and Filelist are not
progressing because of assert statements in macosxsupport.py.
The asserts are to ensure that none of the Tk-variant tests (isCarbonTk(),
isCocoaTk(), et al) are called before
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13742
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
Added file: http://bugs.python.org/file35374/keymerge.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13742
___
R. David Murray added the comment:
Issue number was mistyped in commit message. Commit was 730eeb10cd81.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21467
___
Roundup Robot added the comment:
New changeset 1b96949bfc97 by Raymond Hettinger in branch 'default':
Issue 21575: Show list.sort() arguments in the tutorial.
http://hg.python.org/cpython/rev/1b96949bfc97
--
nosy: +python-dev
___
Python tracker
R. David Murray added the comment:
This is likely to be hard to reproduce (but perhaps someone will try). The best
hope of getting it fixed is probably for you to investigate it yourself.
Were you using ssl? Also, have you tried all the python versions you selected,
and if so, which exact
Roundup Robot added the comment:
New changeset be77b213ace0 by Raymond Hettinger in branch '2.7':
Issue 21575: Show list.sort() arguments in the tutorial.
http://hg.python.org/cpython/rev/be77b213ace0
--
___
Python tracker rep...@bugs.python.org
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21575
___
Raymond Hettinger added the comment:
I taught a python class this week with Python 2.7.7 and the learners found this
change to be an impediment to usability.
The filename and fullpath are the most important pieces of information in the
title bar. They are now obscured by the version
Raymond Hettinger added the comment:
Using Python 2.7.7 is a classroom setting revealed that this change is
sometimes helpful and sometimes problematic.
The big tip windows are VERY distracting during live coding demos and learners
are reporting that it breaks their concentration. On the
Alex Gaynor added the comment:
New patch removes the pdb nonsense in the test.
--
Added file: http://bugs.python.org/file35375/pbkdf2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21304
New submission from Terry J. Reedy:
#17390 changes the title bars for (so far), shell and editor windows. While the
editor window change helps me (for reasons given on the issue) and got no
objection, before being pushed, from people nosy on the issue, others have
found it objectionable in
Terry J. Reedy added the comment:
Another possibility is to separate the calculation of the title from setting
it. This would make it much easier to unittest the calculation of the title.
--
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
Since no title format can satisfy everyone, I propose to make it user
configurable. The default can be the old style. I opened #21588 for that and
marked it high priority.
--
priority: high - normal
versions: +Python 3.5 -Python 3.3
Roundup Robot added the comment:
New changeset 053ba3c2c190 by Raymond Hettinger in branch '3.4':
Issue 21439: Minor issues in the reference manual.
http://hg.python.org/cpython/rev/053ba3c2c190
--
nosy: +python-dev
___
Python tracker
Raymond Hettinger added the comment:
Most of the comments ended-up being useful and we applied.
--
resolution: - fixed
status: open - closed
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21439
Terry J. Reedy added the comment:
My understanding is that when a builtin is converted, a) the docstring
signature disappears, and b) getfullargspec calls str(signature). I need to
check what now happens with .getfullargspec version .signature for uncoverted
builtins and if any changes should
90 matches
Mail list logo