Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: - eric.araujo
components: +Distutils -Library (Lib)
nosy: +eric.araujo, tarek
title: getopt chokes on unicode option names - 2.7 distutils getopt chokes on
unicode option names
___
Python
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +bethard
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18943
___
___
Python-bugs-list mailing
Eric Snow added the comment:
It is the module that gets removed. I suppose it could say, ...created the
module, then that module is subsequently Would that help?
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
Armin Rigo added the comment:
Getting consistently one behavior or the other would be much better imho; I
think it's wrong-ish to have the behavior depend uncontrollably on
implementation details. But I agree that it's slightly messy to declare which
of the two possible fixes is the right
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - committed/rejected
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18900
___
New submission from STINNER Victor:
Most Python environment variables (PYTHON*) only enable something when their
value is non-empty. The PYTHONFAULTHANDLER enables the faulthandler even if the
value is empty. As the author of the module, I think that it is a bug and
should be fixed (even in
Roundup Robot added the comment:
New changeset 98f82b124c7d by Victor Stinner in branch 'default':
Close #18954: Fix some typo in fileutils.c comments
http://hg.python.org/cpython/rev/98f82b124c7d
--
nosy: +python-dev
resolution: - fixed
stage: - committed/rejected
status: open -
STINNER Victor added the comment:
Thanks for the report! Don't hesitate to report other grammar issues ;-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18954
___
Vajrasky Kok added the comment:
Do you mean something like *this*?
this - the patch, pythonfaulthandler_env_var.patch.
--
keywords: +patch
nosy: +vajrasky
Added file: http://bugs.python.org/file31641/pythonfaulthandler_env_var.patch
___
Python
Vajrasky Kok added the comment:
That would help.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18955
___
___
Python-bugs-list mailing list
Vajrasky Kok added the comment:
I noticed in CPython source code, when we print the type of the object, we use
%.200s not %s. For example, in Modules/posixmodule.c:
uid should be integer, not %.200s,
So the newest path was created to conform with this tradition.
Another thing I noticed,
Roundup Robot added the comment:
New changeset c391c30fee99 by Ezio Melotti in branch '2.7':
#18894: remove mention of deprecated fail* methods.
http://hg.python.org/cpython/rev/c391c30fee99
New changeset c3a2c0504960 by Ezio Melotti in branch '3.3':
#18894: remove mention of deprecated fail*
Ezio Melotti added the comment:
Fixed, thanks for the report and the patch!
--
assignee: docs@python - ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 2.7
___
Python tracker
Roundup Robot added the comment:
New changeset 523cfc78847c by Ezio Melotti in branch '2.7':
#18895: split a sentence in unittest docs.
http://hg.python.org/cpython/rev/523cfc78847c
New changeset dd669daad7de by Ezio Melotti in branch '3.3':
#18895: split a sentence in unittest docs.
Ezio Melotti added the comment:
Fixed, thanks for the report and the patch!
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 2.7
___
Python tracker
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
assignee: - haypo
stage: - patch review
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18904
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18918
___
New submission from Adrián Chaves Fernández:
Calling json.load() with a file object or json.loads() with a string containing
the attached JSON code raises an exception with the message 'No JSON object
could be decoded'.
I’ve pasted the JSON code into http://jsonlint.com/ and it reports it as
Ezio Melotti added the comment:
Do you want to submit a patch to add tests for these cases?
--
nosy: +ezio.melotti
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18945
New submission from Nick Coghlan:
As discussed at the language summit earlier this year [1], it isn't alway easy
to tell when glancing through the standard library docs which modules are
merely hanging around because removing them would break backwards compatibility.
However, after reviewing
Vajrasky Kok added the comment:
a = open('/tmp/input.json')
b = a.read()
b[0]
'\ufeff'
import json
json.loads(b[1:])
loads just fine
json.loads(b)
chokes.
Whether python json module should handle '\ufeff' gracefully or not, I am not
sure. Let me investigate it.
--
nosy:
New submission from Serhiy Storchaka:
When run in Python 3 followed script:
print('first')
#coding=iso8859-1
print('second')
it prints the 'first' string twice.
Besides this weird behavior I think PEP-0263 should specify that if a magic
comment is second line in the file then first line
Ezio Melotti added the comment:
I think PEP-0263 should specify that if a magic comment is
second line in the file then first line should be a comment too.
+1
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
Vajrasky Kok added the comment:
The U+FEFF character is related with Byte order mark.
Reference:
http://en.wikipedia.org/wiki/Byte_Order_Mark
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18958
Vlad Shcherbina added the comment:
Probably yes, I'm just not sure when I'll get the time.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18945
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18960
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Use the utf-8-sig encoding.
See also issue17909.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18958
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +georg.brandl, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18945
___
___
Antoine Pitrou added the comment:
The patch isn't a good unittest case because it produces an Error, not
a Failure.
Please let's not be pedantic about what a good unittest is.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Of course it is causing tests to fail. You are changing behaviour of an
existing API. Please find another solution.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18929
Changes by Hynek Schlawack h...@ox.cx:
--
nosy: +hynek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18959
___
___
Python-bugs-list mailing list
Adrián Chaves Fernández added the comment:
I’ll veave how to address this up to you. Thanks a lot for finding out that the
cause was the BOM, I’ve just removed it from the file and now everything works
as expected.
--
___
Python tracker
Nick Coghlan added the comment:
Switching to a docs bug - this won't be fixed in 2.7, but it should probably be
documented as a limitation.
--
assignee: - docs@python
components: +Documentation -Extension Modules
nosy: +docs@python, ncoghlan
stage: - needs patch
Serhiy Storchaka added the comment:
The tokenize module, 2to3, IDLE, and the Tools/scripts/findnocoding.py script
affected by this bug. Proposed patch fixes this in all places and adds tests
for tokenize and 2to3.
--
components: +Demos and Tools, IDLE, Library (Lib)
nosy:
Serhiy Storchaka added the comment:
And here is a patch which fixes the regular expression in PEP 263.
--
Added file: http://bugs.python.org/file31646/pep0263_regex.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18873
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18873
___
___
Claudiu.Popa added the comment:
Hello. Here's a basic patch with tests which accomplishes your request.
Currently, it defaults to None if no item failed, but probably it can be set
only when something fails the predicate (and the user will check using
hasattr(t, 'last') ).
--
R. David Murray added the comment:
It is very surprising that evaling the repr doesn't work, since struct_time is
documented to have a named tuple interface, and evaling the repr for a
namedtuple works. So hopefully fixing issue 1820 will also fix this.
--
nosy: +r.david.murray
New submission from Serhiy Storchaka:
Here is a file which is accepted by Python interpreter but is rejected by the
tokenize module.
$ ./python nonutf8_coding_line.py
$ ./python -m tokenize nonutf8_coding_line.py
nonutf8_coding_line.py: error: invalid or missing encoding declaration for
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18961
___
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: - ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18952
___
___
Python-bugs-list
Nick Coghlan added the comment:
I was going to go with the move the directory solution, but realised that
would mean existing checkouts end up downloading the data files again, and also
with a stale copy of the data cluttering them up.
So adjusting the support module for the different
Serhiy Storchaka added the comment:
Oscar, did you considered itertools.groupby()? Perhaps it better meets your
needs.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18821
Serhiy Storchaka added the comment:
When specify an empty string error message is confusing too:
$ ./python -c 'import csv; reader = csv.reader(foo, delimiter=)'
Traceback (most recent call last):
File string, line 1, in module
TypeError: delimiter must be set
--
assignee:
Westley Martínez added the comment:
I believe HFS is case-preserving as well, but it also can be configured to be
case-sensitive. I'm not a Mac owner though so don't take my word for it.
--
___
Python tracker rep...@bugs.python.org
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18905
___
___
New submission from Wouter Bolsterlee:
The heapq.merge() function merges multiple sorted iterables into a single
sorted output. The function uses a heap queue that is repeatedly looped over
until it has generated all output.
If only a single iterable is passed to heapq.merge(), the heap will
Roundup Robot added the comment:
New changeset d5c5ac33b9a1 by Senthil Kumaran in branch '2.7':
os.isatty is not Unix only. Correct the wrong documentation.
http://hg.python.org/cpython/rev/d5c5ac33b9a1
--
nosy: +python-dev
___
Python tracker
Senthil Kumaran added the comment:
I have corrected the documentation. Thanks for raising this issue, anatoly
techtonik.
--
nosy: +orsenthil
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Tim Peters added the comment:
New patch threadstate_join_5.patch adds more testing of is_alive().
An inelegance I don't care about (but someone might): if join() is called with
a timeout, and the Python part of the thread ends before the timeout expires
(_stopped gets set), then a
Antoine Pitrou added the comment:
Anyone doing a join() with a timeout has to be aware that they have no
idea whether the thread is done when join() returns, and do another
join() or check is_alive() later.
Agreed.
--
___
Python tracker
Antoine Pitrou added the comment:
I like threadstate_join_5.patch, but I got the following failure when running
the test suite:
==
FAIL: test_is_alive_after_fork (test.test_threading.ThreadTests)
Senthil Kumaran added the comment:
How does this simple patch sound?
--
keywords: +patch
nosy: +orsenthil
Added file: http://bugs.python.org/file31651/18800.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18800
Tim Peters added the comment:
Ah! I'm running on Windows, where all fork() tests are skipped. Can you fix
it? My prejudice is that anyone mixing threads with fork() should be shot for
the good of humanity 0.7 wink.
--
___
Python tracker
Antoine Pitrou added the comment:
Yes, the fix is to reinitialize the lock (in the surviving thread) or yank it
(in the other threads). Patch attached.
--
Added file: http://bugs.python.org/file31652/threadstate_join_6.patch
___
Python tracker
Tim Peters added the comment:
Cool! What could possibly go wrong? ;-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18808
___
___
Antoine Pitrou added the comment:
Ok, do you think the patch is finally ready? If so, I'm gonna commit (unless
you'd rather do it yourself).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18808
Changes by Akira Kitada akit...@gmail.com:
--
nosy: +akitada
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1065986
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset a723adeb1f47 by Senthil Kumaran in branch '3.3':
Fix License URL display and add test to check for license url presence.
http://hg.python.org/cpython/rev/a723adeb1f47
New changeset 12aaf64feca2 by Senthil Kumaran in branch 'default':
merge from 3.3
Tim Peters added the comment:
If would be nice if Tamas could test it in his application, since we're not
actually testing Py_EndInterpreter. But, ya, commit it! If it doesn't work
for Tamas, we can start over again ;-)
--
___
Python tracker
Senthil Kumaran added the comment:
Fixed in the 3.3 and 3.4.
3.3 - changeset a723adeb1f47
3.4 - changeset 12aaf64feca2
3.4 - (Fixed a merge conflict) changeset 6ecdf2b3192b
--
nosy: +orsenthil
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
Antoine Pitrou added the comment:
Ah, we *can* add a test for the race condition. Patch attached :-)
--
Added file: http://bugs.python.org/file31653/subinterp_test.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18808
New submission from Ned Deily:
==
ERROR: test_above_fd_setsize (test.test_selectors.PollSelectorTestCase)
--
Traceback (most recent call last):
File
Tim Peters added the comment:
Excellent - ship it! :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18808
___
___
Python-bugs-list mailing
Roundup Robot added the comment:
New changeset d52b68edbca6 by Antoine Pitrou in branch 'default':
Issue #18808: Thread.join() now waits for the underlying thread state to be
destroyed before returning.
http://hg.python.org/cpython/rev/d52b68edbca6
--
New submission from Ned Deily:
The 32bit-only OS X installer links with Tcl/Tk 8.4 as these are the only
supported native (Aqua) versions on older supported systems (OS X 10.5 Leopard
and earlier). These failures are also appearing on the Tiger (10.4) buildbots.
$ /usr/local/bin/python3.4 -c
Antoine Pitrou added the comment:
Ok, this should be finally fixed!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18808
R. David Murray added the comment:
See also issue issue 17409.
The code isn't setting it to RLIM_INFINITY explicitly, though, so this must
mean that OSX is reporting an infinite hard limit when the hard limit is not in
fact infinite. Seems like this is an OSX bug that we will have to work
Antoine Pitrou added the comment:
Ha, apparently test_is_alive_after_fork still fails on old Linux kernels:
http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/8562
http://buildbot.python.org/all/builders/x86%20RHEL%206%203.x/builds/2665
--
status: closed - open
Terry J. Reedy added the comment:
Nasty bug. Running a file with 'coding=0', a quite legitimate assignment
statement, causes Idle to close, with LookupError, leading to SyntaxError,
reported on the console if there is one ('crash' otherwise). (Idle closing is a
separate problem, with an
Tim Peters added the comment:
Figures. That's why I wanted your name on the blamelist ;-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18808
___
STINNER Victor added the comment:
Yes. Maybe also with a test. The doc of all env vars must be checked.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18957
___
Serhiy Storchaka added the comment:
Here is a patch against 2.7.
What is the policy about changing 2to3 in 3.x?
--
keywords: +patch
stage: - patch review
versions: +Python 3.3, Python 3.4
Added file: http://bugs.python.org/file31654/2to3_escape_u-2.7.patch
Benjamin Peterson added the comment:
You can change 2to3 in 3.x.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18037
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
The code patch adds '^[ \t\f]' to the re. \f = FormFeed? Should that really
be there? The PEP patch instead adds '^[ \t\v]', \v= VerticalTab? Same
question, and why the difference?
Good catch. I missed in the PEP patch, it should be '\f' ('\014') in all
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file31646/pep0263_regex.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18873
___
Nick Coghlan added the comment:
You mean I actually need to pay proper attention now? :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18808
___
Michael Foord added the comment:
I get a couple of test failures with this patch applied:
==
ERROR: test_find_tests (unittest.test.test_discovery.TestDiscovery)
Serhiy Storchaka added the comment:
Indeed. The dict command was added in 8.5. Thanks for reminder of this. Here is
a patch.
--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file31656/test_tcl_84.patch
___
New submission from Serhiy Storchaka:
In Python 2 string literals are allowed to contain non-ascii characters. In
Python 3 bytes literals can contains only ascii characters, non-ascii
characters should be escaped with \xXX. However 2to3 doesn't change b'...'
literals and produces illegal
Ned Deily added the comment:
LGTM. And, with the patch, test_tcl no longer fails.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18964
___
___
Nick Coghlan added the comment:
Slavek - one you may want to take a look at this. Antoine and Tim are trying to
fix a race condition with the destruction of thread state objects, but the
current fix isn't playing nice on older Linux kernels (including the one in
RHEL 6).
--
nosy:
Roundup Robot added the comment:
New changeset 93018d47793f by Senthil Kumaran in branch '2.7':
Correct Profile class usage example. Addresses issue #18033 .
http://hg.python.org/cpython/rev/93018d47793f
New changeset ab4d3ccb92e6 by Senthil Kumaran in branch '3.3':
Correct Profile class usage
Senthil Kumaran added the comment:
I consolidated the patches and example and have committed them to 2.7, 3.3 and
3.4. Thanks for your contributions.
--
nosy: +orsenthil
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
New submission from Piet van Oostrum:
When a process started as a multiprocessing Process spawns a thread, it doesn't
wait until the thread terminates. It terminates the thread early when the main
thread of the process terminates, as if the thread would be daemonic (it isn't).
It may sound a
New submission from Nick Coghlan:
We keep muttering about coming up with a less conflict-prone approach to
Misc/NEWS updates, without ever settling on a concrete solution.
For the last big discussion on this, see the subthread starting at
Michael Foord added the comment:
The patch and approach look good to me (with docs needed).
Note, personally I would not use a leading underscore for the assertion methods
(in the tests) _assertNoStderr and _assertLogRecords.
--
___
Python tracker
Roundup Robot added the comment:
New changeset 5cfd7b2eb994 by Tim Peters in branch 'default':
Issue 18808: blind attempt to repair some buildbot failures.
http://hg.python.org/cpython/rev/5cfd7b2eb994
--
___
Python tracker rep...@bugs.python.org
Tim Peters added the comment:
Just pushed 5cfd7b2eb994 in a poke-and-hope blind attempt to repair the
annoying ;-) buildbot failures.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18808
Tim Peters added the comment:
Doesn't look like 5cfd7b2eb994 is going to fix it :-( So I'll revert it.
Attaching the patch as blind.patch. After that patch, is_alive() only looks at
Thread data members, where ._is_stopped is obviously True, and ._tstate_lock
is obviously None, both forced
Roundup Robot added the comment:
New changeset 23770d446c73 by Nick Coghlan in branch '3.3':
Close #18952: correctly download test support data
http://hg.python.org/cpython/rev/23770d446c73
New changeset cb8dabc113b8 by Nick Coghlan in branch 'default':
Merge #18952 fix from 3.3
Tim Peters added the comment:
Weird! The Ubuntu box passed test_is_alive_after_fork on its /second/ run with
the patch:
http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/8564/steps/test/logs/stdio
The other box passed all tests:
New submission from Nick Coghlan:
Issue 18952 (fixed in http://hg.python.org/cpython/rev/23770d446c73) was
another case where a test suite change resulted in tests not be executed as
expected, but this wasn't initially noticed since it didn't *fail* the tests,
it just silently skipped them.
Changes by Nick Coghlan ncogh...@gmail.com:
--
title: Find a way to detect regressions in test execution - Find a way to
detect incorrectly skipped tests
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18968
Roundup Robot added the comment:
New changeset 78a5de507f19 by Michael Foord in branch '2.7':
Closes issue 14971.
http://hg.python.org/cpython/rev/78a5de507f19
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Andrew Svetlov added the comment:
This issue is duplicate for #16487
--
nosy: +asvetlov
resolution: - duplicate
status: open - closed
superseder: - Allow ssl certificates to be specified from memory rather than
files.
___
Python tracker
Tim Peters added the comment:
Well, the next time the Ubuntu box ran the tests, it was clean all the way. So
it's fixed! Despite that it isn't ;-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18808
R. David Murray added the comment:
For what it is worth, I haven't had a non-trivial merge conflict on Misc/NEWS
for quite some time now. It seems to me that they are much rarer than they
were with svn. (By 'trivial' I mean that the conflicts I see is that there's a
new entry on 3.4 that
R. David Murray added the comment:
Then, again, I pretty much only do Library fixes. Maybe 'Core and builtins'
fixes get messier because of the proximity of the date and version-specific
header? That should be easy enough to fix
--
___
Python
Changes by Benjamin Peterson benja...@python.org:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18962
___
___
1 - 100 of 101 matches
Mail list logo