Roundup Robot added the comment:
New changeset 3dd012397b11 by Chris Jerdonek in branch '3.2':
Issue #16115: Improve subprocess.Popen() documentation around args, shell, and
executable arguments.
http://hg.python.org/cpython/rev/3dd012397b11
New changeset 0ef3b801ccbc by Chris Jerdonek in
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16115
Roundup Robot added the comment:
New changeset 46889b772442 by Vinay Sajip in branch 'default':
Issue #16141: replaced old-style exception handling code in logging with the
modern idiom.
http://hg.python.org/cpython/rev/46889b772442
--
nosy: +python-dev
Roundup Robot added the comment:
New changeset 6f3e48838a2d by Chris Jerdonek in branch 'default':
Issue #16161: Update link for downloading Microsoft Visual Studio 2008.
http://hg.python.org/devguide/rev/6f3e48838a2d
--
nosy: +python-dev
___
Python
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16161
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
assignee: vinay.sajip -
title: Possible simplification for logging.StreamHandler exception handling -
Possible simplification for old-style exception handling code in stdlib
___
Python tracker
Roundup Robot added the comment:
New changeset 6e31832f8275 by Vinay Sajip in branch '2.7':
Issue #16168: Use specified socket type for domain sockets in SysLogHandler.
http://hg.python.org/cpython/rev/6e31832f8275
New changeset f41e6ef3392a by Vinay Sajip in branch '3.2':
Issue #16168: Use
Roundup Robot added the comment:
New changeset a6f37d503878 by Senthil Kumaran in branch '3.2':
Fix Issue 15922: make howto/urllib2.rst doctests pass.
http://hg.python.org/cpython/rev/a6f37d503878
New changeset a24d3e2124b6 by Senthil Kumaran in branch '3.3':
Fix Issue 15922: make
Chris Jerdonek added the comment:
BTW, the patch fails for 3.2 and 3.3 but works for 3.4
By patch do you mean test? And by works, do you mean fails or succeeds?
:)
I haven't prepared a patch yet, but I just started working on it. On my
machine, I found that the test fails as is on 3.3 and
Chris Jerdonek added the comment:
Thanks, Senthil!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15922
___
___
Python-bugs-list mailing list
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
assignee: - chris.jerdonek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16114
___
___
Roundup Robot added the comment:
New changeset b2f282991973 by Senthil Kumaran in branch '2.7':
Fix Issue 15922: make howto/urllib2.rst doctests pass.
http://hg.python.org/cpython/rev/b2f282991973
--
___
Python tracker rep...@bugs.python.org
Changes by Senthil Kumaran sent...@uthcode.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15922
___
Changes by Kushal Das kushal...@gmail.com:
--
nosy: +kushaldas
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14039
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset ce0d0d052494 by Vinay Sajip in branch 'default':
Closes #16110: fileConfig now accepts a pre-initialised ConfigParser instance.
http://hg.python.org/cpython/rev/ce0d0d052494
--
nosy: +python-dev
resolution: - fixed
stage: -
New submission from Antoine Pitrou:
unittest docs suggest the following load_tests for a __main__.py:
def load_tests(loader, standard_tests, pattern):
# top level directory cached on loader instance
this_dir = os.path.dirname(__file__)
package_tests =
Amaury Forgeot d'Arc added the comment:
Note: the error message above is mojibake (cp1253-encoded message written to a
cp737 console) for:
Δεν ήταν δυνατό να εντοπιστεί η καθορισμένη μονάδα (The specified module
could not be found)
Spiros, you closed the issue. How did you fix it exactly?
Changes by Kushal Das kushal...@gmail.com:
--
nosy: +kushaldas
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16061
___
___
Python-bugs-list
Michael Foord added the comment:
Yes the version of load_tests you show is better. However there is an
outstanding issue to fix the load_tests protocol to work with pattern=None
which is a better fix. (I think this is a bug in load_tests rather than a doc
issue really.)
Issue 11218.
Michael Foord added the comment:
Changing the docs to the following fixes the original reported issue:
def load_tests(loader, standard_tests, pattern):
# top level directory cached on loader instance
this_dir = os.path.dirname(__file__)
pattern = pattern or test_*.py
Kushal Das added the comment:
So, should I submit a new patch which will just put a warning ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16125
___
Ned Deily added the comment:
I've been able to isolate the problem to a particular Tk checkin and have
opened an Tk issue with details here:
https://sourceforge.net/tracker/?func=detailaid=3575681group_id=12997atid=112997
--
___
Python tracker
Ned Deily added the comment:
I've been able to build Cocoa Tk and isolate the crash regression to a
particular Tk checkin. This Tk issue contains the details:
https://sourceforge.net/tracker/?func=detailatid=112997aid=3575664group_id=12997
--
___
New submission from Serhiy Storchaka:
Here are two patches written on the discussion in Python-Ideas [1].
The first patch fixes incorrect use of x is 0 or x is 'foo'. Result of this
operations is implementation details.
The second patch changes non-idiomatic use of x == None or x == True.
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file27504/equals_none_or_bool.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16172
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
components: +Tests
nosy: +ezio.melotti
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16172
___
Antoine Pitrou added the comment:
Try prefixing doesnotexist with the same dirname as sys.executable
(i.e. `os.path.join(os.path.dirname(sys.executable), doesnotexist)`).
Python under Unix uses its own path to determine where the standard library is,
and it does so by inspecting argv[0].
Antoine Pitrou added the comment:
If you prefer two macros instead of three then we should name them
PY_IS_LITTLE_ENDIAN and PY_IS_BIG_ENDIAN.
Fine with me. Having three macros is pointless complication.
If I understand you correctly than we can't have a configure definition
and need
New submission from Baptiste Mispelon:
When a syntax error happens, the exception that gets printed has an extra line
with a caret that helps locate the error.
If the line also contains an identifier with non-ascii characters, then this
caret is misaligned (too far on the right).
I've
Ezio Melotti added the comment:
See #2382.
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16173
___
___
Python-bugs-list
New submission from Berker Peksag:
The suggested usage should be like this:
try:
import threading
except ImportError:
import dummy_threading as threading
See:
- http://hg.python.org/cpython/file/ce0d0d052494/Lib/queue.py#l3
-
Michael Foord added the comment:
Unfortunately subclassing core components is the *intended* mechanism for
customising unittest behaviour. Changing this is possible, but is a big job
with very extensive changes.
I don't think this request is *invalid* per-se, but it isn't something that
Roundup Robot added the comment:
New changeset 7de9c620716e by Andrew Svetlov in branch '3.2':
Issue #16174: Fix suggested usage of dummy_threading module.
http://hg.python.org/cpython/rev/7de9c620716e
New changeset f02974773a71 by Andrew Svetlov in branch '3.3':
Merge issue #16174: Fix
Andrew Svetlov added the comment:
Fixed. Thanks, Berker.
--
nosy: +asvetlov
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16174
Michael Vogt added the comment:
Thanks for this detailed explaination! I will workaround this outside of python
(that is easy ;) - I just thought that it would be a good idea to be able to
change the fsencoding (and therefore send the patch), but in the light of e.g.
sys.path it seems to be
Roundup Robot added the comment:
New changeset a3d65edc3b04 by Richard Oudkerk in branch '3.3':
Issue #16169: Fix ctypes.WinError()'s confusion between errno and winerror
http://hg.python.org/cpython/rev/a3d65edc3b04
New changeset d3c4dcd9a048 by Richard Oudkerk in branch 'default':
Issue
Brett Cannon added the comment:
Finder is only documented as deprecated; actually making it work with a
reasonable warning is too much of a pain for such little gain. So it can just
stay in as there is no maintenance burden.
--
___
Python tracker
Brett Cannon added the comment:
This can get fixed in 3.3.1, which is why I left Python 3.3 as an affected
version.
Hopefully I can get to a fix this week. I need to write a test showing that a
module that doesn't exist as specified in a fromlist is silently ignored, but
if a module in a
Roundup Robot added the comment:
New changeset 79231a12567a by Eli Bendersky in branch '3.3':
Issue #12322: clarify xpath reference for cases where the path reaches
ancestors of the start element. Also add missing markup for a None. Thanks to
patrick vrijlandt and Mike Hoy for the report and
Eli Bendersky added the comment:
Changes pushed. Thanks for the report and patches.
Mike - a note for the future: when you create an updated patch, create it anew
vs. a clean repo. Don't compound patches.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open -
Changes by Richard Oudkerk shibt...@gmail.com:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16169
___
Eli Bendersky added the comment:
Einar, TypeError is raised because tostring/tostringlist return bytes with the
default encoding, and you can't join bytes on (which is unicode).
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset ff925e135e60 by Eli Bendersky in branch '3.3':
Issue #16082: clarify the documentation of tostring[list] saying that it may
generate a bytestring, depending on the given encoding.
http://hg.python.org/cpython/rev/ff925e135e60
New changeset
Christian Heimes added the comment:
I think it's not enough as some platforms prefix/suffix the macros with dashes.
The values must be compared to BYTE_ORDER iff the macro is defined. too. I've
checked some machines of the Snakebite network and came up with this macro
cascade:
/*
* The
Roundup Robot added the comment:
New changeset 842276ae4a3f by Benjamin Peterson in branch '3.3':
compare with equality not identity (issue #16172)
http://hg.python.org/cpython/rev/842276ae4a3f
--
nosy: +python-dev
___
Python tracker
Benjamin Peterson added the comment:
Also http://hg.python.org/cpython/rev/332b93ce7bf9
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16172
R. David Murray added the comment:
I think we'd probably better find out if there is support for applying it
before you go to the trouble of writing it. It might be appropriate as a -3
warning, since the behavior changes in python3. I would be +1 for applying it
as a -3 warning, and -0 as a
R. David Murray added the comment:
Ezio, is there a reason you didn't close this as a duplicate?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16173
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16125
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16166
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2382
___
New submission from Christian Heimes:
Guido has expressed [1] that he like to see IOCP support in the stdlib for the
grant unified asyncore interface.
Quote from MSDN [2]:
---
I/O completion ports provide an efficient threading model for processing
multiple asynchronous I/O requests on a
New submission from Brian Curtin:
platform.platform()
'Windows-post2008Server-6.2.9200'
The change is trivial, just accounting for a point release of 2 (from the major
release 6).
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -595,8 +595,13 @@
release = '7'
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
stage: - needs patch
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9514
___
Serhiy Storchaka added the comment:
Fine with me. Having three macros is pointless complication.
Don't having two macros for one boolean value pointless complication too?
--
___
Python tracker rep...@bugs.python.org
Richard Oudkerk added the comment:
Cogen [4] uses ctypes wrapper.
In the code for the IOCP reactor only ctypes.FormatError() is used from ctypes.
It uses pywin32 instead.
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
Changes by Guido van Rossum gu...@python.org:
--
nosy: +mhammond
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16175
___
___
Python-bugs-list
Guido van Rossum added the comment:
Tough choice. I'm not in favor of using either ctypes or Cython for this
purpose -- ctypes because it's brittle, and Cython because it is a huge
complicated system of its own that I would rather not depend on. Cython
already depends on CPython, so CPython
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:
--
nosy: +jkloth
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16175
___
___
Christian Heimes added the comment:
Guido,
Richard pointed out that pywin32 already wraps the necessary bits of IOCP. The
functions are in the win32file package. Cogen's reactor uses pywin32 instead of
ctypes, too. The library has an *additional* ctypes based interface in the
directory
Guido van Rossum added the comment:
So do we need this ticket at all? It seems there's no code to write -- all we
need to do is make sure we can integrate IOCP in the future standard reactor
interface. That hardly seems a reason to keep a ticket open.
--
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2382
___
___
Richard Oudkerk added the comment:
Note that since Python 3.3, multiprocessing and _winapi make some use of
overlapped IO.
One can use _winapi.ReadFile() and _winapi.WriteFile() to do overlapped IO on
normal socket handles created using socket.socket().
--
Matthias Klose added the comment:
http://www.freedesktop.org/software/systemd/man/os-release.html
is the next step, with the advantage of the definition of the file format for
/etc/os-release.
--
___
Python tracker rep...@bugs.python.org
Changes by Brian Curtin br...@python.org:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16175
___
___
Python-bugs-list
Antoine Pitrou added the comment:
Fine with me. Having three macros is pointless complication.
Don't having two macros for one boolean value pointless complication too?
No, since you need only one to get going. Either:
#ifdef PY_LITTLE_ENDIAN
...
or:
#ifdef PY_BIG_ENDIAN
...
So this is
Serhiy Storchaka added the comment:
Here is a patch upgraded to Python 3.3. It uses a little different approach and
works with invalid encoded data. unicode_utf8size.patch is not needed.
This patch fixes a half of the issue - working with non-ascii non-wide
characters. It's enough for many
Ned Deily added the comment:
I've not seen any reports of this behavior before. Can you try two things?
One, try temporarily disabling your current IDLE preferences. Quit IDLE, then
from a terminal shell, type something like:
mv ~/.idlerc ~/.idlerc-disabled
then launch IDLE and try the
Antoine Pitrou added the comment:
I'm not sure why we would have no code to write unless you're thinking of
integrating pywin32 into the stdlib.
As Richard said, overlapped I/O is already more or less supported as part of
the _winapi private module. But IOCP itself isn't exposed. We could have
Serhiy Storchaka added the comment:
Usually you need code for both alternatives.
#ifdef WORDS_BIGENDIAN
...
#else
...
#endif
What can be simpler? Of cause, using *two* macros is complicated. You need
only one and second macros is unnecessary.
--
Brian Keegan added the comment:
I moved the idlerc to the disabled folder like you recommended and I
haven't been able to reproduce the error again. I'll cautiously take this
as an indication of a fix, but will update if it changes.
Thank you!
On Tue, Oct 9, 2012 at 2:40 PM, Ned Deily
New submission from Gregory P. Smith:
The atexit module's _run_exitfuncs() function needs to be a public API. In
Python 2.x it was exposed through a disgusting hack as sys.exitfunc() that
the atexit module monkeypatched into place at import time.
This monkeypatching was cleaned up in Python
New submission from Robin Åsén:
I am getting inconsistent behavior when getting an md5 hexdigest on a json
structure that's converted to a string.
Am I doing something wrong here?
import json
import hashlib
data = '''{key1:value1,key2:value2}'''
Marc-Andre Lemburg added the comment:
Brian Curtin wrote:
New submission from Brian Curtin:
platform.platform()
'Windows-post2008Server-6.2.9200'
The change is trivial, just accounting for a point release of 2 (from the
major release 6).
Looks good. Please also backport this to
New submission from Xavier de Gaye:
$ tmp=`mktemp /tmp/foo.XX`; echo 'def foo: pass' $tmp; python3 -m pdb
$tmp; rm $tmp
Traceback (most recent call last):
File /usr/local/lib/python3.2/pdb.py, line 1556, in main
pdb._runscript(mainpyfile)
File /usr/local/lib/python3.2/pdb.py,
R. David Murray added the comment:
The order in which elements are produced when iterating a dictionary is not
fixed. In python3.3 it is intentionally perturbed by a randomized seed at
interpreter startup by default.
--
nosy: +r.david.murray
resolution: - invalid
stage: -
Eric Snow added the comment:
Yikes. I'll get a patch up tonight.
--
assignee: - eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16160
___
Chris Jerdonek added the comment:
Thanks for the explanation and suggestion, Antoine. I'm attaching a patch that
incorporates the suggestion, but I haven't checked that it works yet (I would
need to use snakebite).
--
keywords: +patch
Added file:
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16170
___
___
Antoine Pitrou added the comment:
Chris, you can also push a custom repo to a custom builder:
http://docs.python.org/devguide/buildbots.html#custom-builders
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16170
Antoine Pitrou added the comment:
Actually, I've just checked that your patch works under Linux.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16170
___
Chris Jerdonek added the comment:
That's great, thanks for the pointer, Antoine. I will try that out later today.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16170
___
New submission from Charles Jones:
The docs for http2time state that None is returned if [...] the time is
outside the representable range. However, it is raising a ValueError when a
year larger than datetime.MAXYEAR is provided (actually raised downstream by
calendar.date()).
To reproduce:
Chris Jerdonek added the comment:
Okay, even better. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16170
___
___
Python-bugs-list mailing
New submission from Kaarle Ritvanen:
Tab completion in the readline module does not seem to work well with Unicode
terminals. The get_line_buffer function converts the line buffer to the str
type (which are Unicode strings in Python 3), but the indices returned by
get_begidx and get_endidx
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +haypo
stage: - patch review
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16182
___
Roundup Robot added the comment:
New changeset 9451908da615 by Chris Jerdonek in branch '3.3':
Issue #16170: Remove Linux skip from test_subprocess's test_executable test.
http://hg.python.org/cpython/rev/9451908da615
New changeset 0ee03c9b098f by Chris Jerdonek in branch 'default':
Issue
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16170
Giampaolo Rodola' added the comment:
We could have a public module exposing IOCP as a nice API :-)
What about select module?
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16175
Senthil Kumaran added the comment:
+1 to this change. It may be helpful in the cases like issue15991.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16088
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16178
___
___
Python-bugs-list mailing list
Maciej Szulik added the comment:
I've confirmed that bug in the latest repo version, still exists. I attach
patch for py3k.
I'll try to have a look at it in the current version, as soon as it will be
fixed I'll port it to 2.7.
--
nosy: +maciej.szulik
versions: +Python 3.4
Added file:
STINNER Victor added the comment:
AC_C_BIGENDIAN
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16166
___
___
Python-bugs-list
Changes by Łukasz Langa luk...@langa.pl:
--
assignee: - lukasz.langa
nosy: +lukasz.langa
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15927
___
Guido van Rossum added the comment:
I would be happy with requiring that the user use pywin32 if they want to use
this.
Have you all read the docs for IOCP? It is not for the faint of heart. E.g.
it integrates with the thread scheduler.
--
___
Antoine Pitrou added the comment:
Have you all read the docs for IOCP? It is not for the faint of
heart. E.g. it integrates with the thread scheduler.
Yes, IOCP (or overlapped I/O) may use threads under the hood, but IIUC
this can be ignored by the programmer, and
STINNER Victor added the comment:
This patch fixes a half of the issue - working with non-ascii
non-wide characters.
The purpose of this issue is to handle CJK characters taking 2 columns instead
of 1 in a terminal, or did I misunderstand it?
--
Guido van Rossum added the comment:
According to http://msdn.microsoft.com/en-us/library/aa365198%28VS.85%29.aspx
once you call GetQueuedCompletionStatus() your thread is managed by the IOCP
and only up to a given parameter of those threads are allowed to run. They
recommend setting that
STINNER Victor added the comment:
This issue may be related or a duplicate of #11461.
For example codecs.utf_16_le_decode(b'\x00\xd8\x00') should return ('', 0),
but raises UnicodeDecodeError.
Only incremental decoder should return partial results. Other decoders are
strict and (usually)
Antoine Pitrou added the comment:
According to http://msdn.microsoft.com/en-us/library/aa365198%28VS.85%
29.aspx once you call GetQueuedCompletionStatus() your thread is
managed by the IOCP and only up to a given parameter of those threads
are allowed to run. They recommend setting that
1 - 100 of 128 matches
Mail list logo