Saimadhav Heblikar added the comment:
ZoomHeight behavior on linux is as what you mentioned. Now I have understood
this issue. Working on it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22706
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15513
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - needs patch
type: - enhancement
versions: +Python 2.7, Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19548
Nick Coghlan added the comment:
Perhaps an API like importlib.util.locks_held() that returns a list of module
names?
We'd then just iterate over the _module_locks() dictionary, looking for locks
where the owner matched the current thread id (alternatively, if speed was
critical for Guido's
Martin Panter added the comment:
RFC 1521 says that a text newline should be encoded as CRLF, and that any
combination of 0x0D and 0x0A bytes that do not represent newlines should be
encoded like other control characters as =0D and =0A.
Since in Python 3 the codec outputs bytes, I don’t think
Gustavo Frederico Temple Pedrosa added the comment:
ping
--
nosy: +gustavotemple
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22038
___
___
Marc-Andre Lemburg added the comment:
I agree with Vajrasky: a patch for the documentation would probably be a good
idea.
Note that mixing line end conventions in a single text is never a good idea. If
you stick to one line end convention, there's no problem with the codec, AFAICT.
Changes by Trent Nelson tr...@snakebite.org:
--
nosy: +trent
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22919
___
___
Python-bugs-list mailing
Roundup Robot added the comment:
New changeset 81c73f964066 by Berker Peksag in branch '3.4':
Issue #23070: Fix a comment in the tutorial.
https://hg.python.org/cpython/rev/81c73f964066
New changeset 81e2f58d9e4b by Berker Peksag in branch 'default':
Issue #23070: Fix a comment in the tutorial.
Roundup Robot added the comment:
New changeset 8cd84e62c1fd by Berker Peksag in branch '2.7':
Issue #23070: Fix a comment in the tutorial.
https://hg.python.org/cpython/rev/8cd84e62c1fd
--
___
Python tracker rep...@bugs.python.org
Berker Peksag added the comment:
Fixed. Thanks for the report, Ross.
--
nosy: +berker.peksag
resolution: - fixed
stage: - resolved
status: open - closed
type: - behavior
versions: +Python 2.7, Python 3.5
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 4c81b1846e14 by Steve Dower in branch 'default':
Issue #22733: MSVC ffi_prep_args doesn't handle 64-bit arguments properly
https://hg.python.org/cpython/rev/4c81b1846e14
--
nosy: +python-dev
___
Python
Eric Snow added the comment:
(Unless I've missed something, we don't run user code with the global
import lock held any more)
Ah. You are correct.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23068
Roundup Robot added the comment:
New changeset 24f4569a1308 by Steve Dower in branch 'default':
Issue #22733: Added NEWS item
https://hg.python.org/cpython/rev/24f4569a1308
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 1794d754ff3c by Steve Dower in branch 'default':
Issue #23060: Suppresses a multiprocessing assert that fails incorrectly
https://hg.python.org/cpython/rev/1794d754ff3c
--
nosy: +python-dev
___
Python
Changes by Steve Dower steve.do...@microsoft.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22733
___
Steve Dower added the comment:
I've commented out the assertion for now with a comment pointing to this issue,
so that'll keep the buildbots running while we figure out how to deal with this
properly.
--
___
Python tracker rep...@bugs.python.org
Steve Dower added the comment:
When you say 2.7.X, which version are you installing and which version did
you have installed?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23065
___
Guido van Rossum added the comment:
Oh. I'd forgotten the PY3 situation is completely different from the PY2
situation. We're still stuck here in PY2 land where there's just the one
import lock. I guess not even ctypes can help us find out whether the
current thread is holding the import lock
Wes Turner added the comment:
* Macros could be useful.
* Would this make it easy/faster to also have a DefaultOrderedDict (which
can/could also be accomplished with .get(attr, []) and .setdefault(attr, [])?
* There may be some value in looking at
https://pypi.python.org/pypi/cyordereddict
*
Martin Panter added the comment:
Okay so maybe the documentation should include these restrictions on encoding:
* The data being encoded should only include \r or \n bytes that are part of \n
or \r\n newline sequences. Encoding arbitrary non-text data is not supported.
* The two kinds of
Serhiy Storchaka added the comment:
Pure Python implementation returns different result.
import quopri
quopri.encodestring(b'\r\n')
b'\r\n'
quopri.a2b_qp = quopri.b2a_qp = None
quopri.encodestring(b'\r\n')
b'=0D\n'
See also issue18022.
--
nosy: +serhiy.storchaka
Eric Snow added the comment:
Suggestions from Antoine on python-dev:
* do not make cOrderedDict builtin; drop changes to:
- Include/Python.h
- Objects/object.c
- Makefile.pre.in
* do not add a C-API
* include the linked list pointers in the hash entries? (may simplify things)
* drop the
New submission from bbc:
The documentation page for the cmd module contains an example with the turtle
module:
https://docs.python.org/3.4/library/cmd.html#cmd-example
It seems like the turtle module has changed quite a bit since the code was
written, and exposes a Pen class instead of all
New submission from STINNER Victor:
Spinoff of the issue #22926: asyncio.get_event_loop() must always raise an
exception, even when assertions are disabled by -O.
Attached patch implements this suggestion.
--
components: asyncio
files: get_event_loop.patch
keywords: patch
messages:
Nick Coghlan added the comment:
Looking at the implementation of PyImport_ImportModuleNoBlock, you should be
able to invoke that via ctypes with a nonsense module name to probe for whether
or not the current thread has the import lock.
A call like
Nick Coghlan added the comment:
You'd still need to check lock_held() to see if *some* thread is holding the
import lock. The non-blocking import API should then let you determine if that
thread is the current one.
--
___
Python tracker
STINNER Victor added the comment:
Guido So in order to do correct diagnostics here we would have to add an
owning
thread pointer to every event loop;
I didn't understand why this approach was not taken when the check was
introduced. I was surprised that get_event_loop() was used for the check
Ethan Furman added the comment:
Please do! Working examples are better than non-working ones. :)
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23073
___
Ethan Furman added the comment:
While you're at it, could you also sign the contributors' license agreement?
https://www.python.org/psf/contrib/contrib-form/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23073
STINNER Victor added the comment:
Fedora 20 provides GCC 4.7 but no stdatomic.c: HAVE_BUILTIN_ATOMIC set
(HAVE_STD_ATOMIC unset).
Fedora 21 provides GCC 4.9 with stdatomic.c: HAVE_BUILTIN_ATOMIC and
HAVE_STD_ATOMIC are set.
I tested atomicv2.patch on Fedora 20 (x86_64) and Fedora 21
Guido van Rossum added the comment:
Interesting. The Dropbox server team thanks you for the suggestion!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23068
___
New submission from Alex Gaynor:
Whether __builtins__ is a module or a dict is undefined in CPython. Use the
reliably well defined `import __builtin__` instead.
--
components: Library (Lib)
files: mock-backport.diff
keywords: patch
messages: 232838
nosy: alex, benjamin.peterson,
STINNER Victor added the comment:
atomicv2.patch:
_Atomic int _value;
Why not using the atomic_int type from stdatomic.h here?
https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
__atomic_store_n(): The valid memory model variants are __ATOMIC_RELAXED,
__ATOMIC_SEQ_CST, and
STINNER Victor added the comment:
It would be backwards incompatible to change, though.
I'm in favor of breaking the compatibility with Python 3.4 and return the
format as an Unicode string.
--
nosy: +haypo
___
Python tracker
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21619
___
___
Python-bugs-list
New submission from Antony Lee:
glob.glob returns an empty list when passed an empty pattern as argument, but
pathlib's Path.glob fails with IndexError. The first option seems more
reasonable (or at least it should be a ValueError).
--
components: Library (Lib)
messages: 232841
nosy:
New submission from Nick Coghlan:
As per python-dev discussion [1], filing this as the home for a proposed update
to PEP 1 that allows Standards Track PEPs to be granted Provisional status
before moving on to Accepted/Final.
The new status will be for PEPs where we want to release an initial
Martin Panter added the comment:
I originally assumed it would be a text string from the existing documentation,
so changing the behaviour to match also seems reasonable
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21071
Roundup Robot added the comment:
New changeset b4dce0e695df by Victor Stinner in branch '3.4':
Issue #23074: asyncio.get_event_loop() now raises an exception if the thread
https://hg.python.org/cpython/rev/b4dce0e695df
--
nosy: +python-dev
___
Python
STINNER Victor added the comment:
Change applied to Python 3.4, 3.5 and Tulip (c6115bc83acc).
Thanks for the review Guido.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23074
STINNER Victor added the comment:
I also updated aiotest test suite:
https://bitbucket.org/haypo/aiotest/commits/d6f544a16a8f55729268d8d4b8d864d1b0af2d12
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23074
bbc added the comment:
It turns out the script is fine. I could have investigated it more thoroughly
at first if I had more carefully read the docs for turtle.
I thought those functions were not exposed because they were reportedly not
found after I copy-pasted, executed the example script
Ethan Furman added the comment:
No worries, thanks for following up.
--
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23073
Martin Panter added the comment:
Here is a patch addressing many of the points raised. Please have a look and
give any feedback. Beware I am not very familiar with the Restructured Text
markup and haven’t tried compiling it.
1. Mentioned bytes-to-bytes and text-to-text in general right at the
Martin Panter added the comment:
The “unicode-escape” and “utf-7” cases affect the more widely-used
TextIOWrapper interface:
TextIOWrapper(BytesIO(br\u2013 * 2000), unicode-escape).read(1)
Traceback (most recent call last):
File stdin, line 1, in module
File
Martin Panter added the comment:
I included the proposed doc fix in my patch for Issue 19548
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19539
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19548
___
Martin Panter added the comment:
Here is the patch (against the default branch)
--
keywords: +patch
Added file: http://bugs.python.org/file37486/codecs-all.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
Martin Panter added the comment:
Patch looks sensible enough to me
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23062
___
___
Python-bugs-list
Berker Peksag added the comment:
Thanks! Could you also add a test? See PublicAPITests in
Lib/test/test_shutil.py as an example.
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23071
Martin Panter added the comment:
Here is a new patch based on John’s suggestion
--
Added file: http://bugs.python.org/file37487/issue21279.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21279
liu chang added the comment:
In[6]: pathlib.Path.glob()
Traceback (most recent call last):
File
/home/liuchang/ENV3/lib/python3.4/site-packages/IPython/core/interactiveshell.py,
line 2883, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File ipython-input-6-a6dcf250fe73,
Martin Panter added the comment:
Here is a patch that changes over to a str() type.
Is it safe to assume PyUnicode_AsUTF8() is null-terminated (like
PyBytes_AS_STRING() is)? My documentation doesn’t say.
--
Added file: http://bugs.python.org/file37488/format-str.patch
Martin Panter added the comment:
Assuming it is intended to support byte strings, here is a patch that documents
them being allowed, and adds a test case
--
keywords: +patch
Added file: http://bugs.python.org/file37489/format-bytes.patch
___
Python
GamesGamble added the comment:
2.7.7 was installed and I has installed 2.7.8 and 2.7.8 was installed and then
I has installed 2.7.9.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23065
Martin Panter added the comment:
Here is another patch that removes the method instead, as suggested in the
review
--
Added file: http://bugs.python.org/file37490/doctype-remove.patch
___
Python tracker rep...@bugs.python.org
Martin Panter added the comment:
This patch includes a new test; although this kind of testing won’t detect when
someone adds a new API and forgets to add it to __all__.
--
Added file: http://bugs.python.org/file37491/codecs-all.patch
___
Python
Arfrever Frehtes Taifersar Arahesis added the comment:
doctype-remove.patch is acceptable for both 3.4 and 3.5 or only 3.5?
If only 3.5, then please apply inherit-doctype.patch in 3.4.
--
___
Python tracker rep...@bugs.python.org
59 matches
Mail list logo