Roundup Robot added the comment:
New changeset e5607874e8ff by Ned Deily in branch '3.3':
Issue #18517: Move definition of xxlimited extension to detect_modules().
http://hg.python.org/cpython/rev/e5607874e8ff
New changeset 1d832bc857e2 by Ned Deily in branch 'default':
Issue #18517: merge from
Charles-François Natali added the comment:
Marking #10496 as a dependency (since it could prevent Python from running
with low level privileges).
--
dependencies: +Python startup should not require passwd entry
___
Python tracker
Ned Deily added the comment:
On further reflection, only building on a debug build partially defeats part of
the reason for building xxlimited; the current setup.py skips building in the
debug case. Perhaps another approach would be to comment out the build in
setup.py and instead add a new
Charles-François Natali added the comment:
I've posted another review (not sure you receive notifications).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18418
___
Changes by Charles-François Natali cf.nat...@gmail.com:
--
keywords: +needs review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10496
___
___
Roundup Robot added the comment:
New changeset 8205e72b5cfc by Charles-François Natali in branch '2.7':
Issue #18325: Fix a test_kqueue failure on OpenBSD: kevent's data and event
http://hg.python.org/cpython/rev/8205e72b5cfc
--
nosy: +python-dev
___
Roundup Robot added the comment:
New changeset 78db41e4c6a9 by Charles-François Natali in branch '3.3':
Issue #18325: Fix a test_kqueue failure on OpenBSD: kevent's data and event
http://hg.python.org/cpython/rev/78db41e4c6a9
New changeset 1287d4c9cd39 by Charles-François Natali in branch
Marc-Andre Lemburg added the comment:
The alias was added by Hye-Shik Chang:
http://hg.python.org/cpython-fullhistory/annotate/887ce39f95f2/Lib/encodings/aliases.py#198
I've added him to the nosy list.
If the alias don't match, we'd have to add a codec for the mismatching encoding
to
Changes by Charles-François Natali cf.nat...@gmail.com:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1611154
___
___
Charles-François Natali added the comment:
Time to close this one, since the PEP has been superseeded by PEP 446?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17070
___
Marc-Andre Lemburg added the comment:
Here's a usable reference:
http://www.w3.org/TR/html4/struct/dirlang.html#bidi88598
+1 on adding the alias.
Also see
http://lists.gnu.org/archive/html/lynx-dev/2012-02/msg00041.html
for how Lynx does this.
The URL also mentions iso-8859-8-e, which
Changes by Charles-François Natali cf.nat...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11757
___
___
Charles-François Natali added the comment:
OK, let's close then.
We can still re-open if this pops up again.
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12999
Michael Foord added the comment:
The best way to solve this seems to be to track a set of visited ids (mocks
we've reset) and not recurse into mocks we've already done. This is similar to
the patch proposed on the google code issue - but not identical as that uses a
list and has it as the
Charles-François Natali added the comment:
I changed my mind, and think we should keep the current behavior: it guarantees
resize() won't break, and doesn't cost much. One extra FD per mmap is not a
huge hit. If that's a problem, then the user can raise the RLIMIT_NOFILE.
--
Changes by Charles-François Natali cf.nat...@gmail.com:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12588
___
___
Charles-François Natali added the comment:
So, what now?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16038
___
___
Python-bugs-list mailing
Charles-François Natali added the comment:
Should be fixed now.
Thanks for the report, and sorry for the delay!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Charles-François Natali cf.nat...@gmail.com:
--
resolution: - rejected
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16635
___
Nick Coghlan added the comment:
I like the new wording, but was there a missing hg push here? (Not seeing
the update on hg.python.org/peps)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18472
Lorenz Huedepohl added the comment:
If that's a problem, then the user can raise the RLIMIT_NOFILE.
This can only be raised (above the hard limit) by a privileged process,
so I would be out of luck there, as I could not convince my sysadmins
to raise this further.
Anyway, I don't really care
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: docs@python - ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18628
___
___
Nick Coghlan added the comment:
I applied Guido's update in http://hg.python.org/peps/rev/82e24ac40255
I'm not sure what happened with Guido's Patch applied above, but I wanted to
include Terry's encoding fixes from #18628, so I figured it made sense to
ensure this was included first.
Nick Coghlan added the comment:
I changed the section heading in PEP 8 to Source File Encoding and the sole
remaining use of a coding cookie to an encoding declaration. No link, since
it would need separate links for Python 2 and 3, and that just gets messing.
Now it uses the right
Changes by Antoine Pitrou pit...@free.fr:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4885
___
___
Christian Heimes added the comment:
Nick,
you have deferred PEP 432 [1]. Do you mind if I check in the isolate mode for
3.4 and help you with PEP 432 for 3.5?
[1] http://www.python.org/dev/peps/pep-0432/#pep-deferral
--
___
Python tracker
Antoine Pitrou added the comment:
Thanks Valerie. I've tested your patch and it looks good to me.
Have you signed and sent a contributor's agreement?
http://www.python.org/psf/contrib/
--
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
I got the impression from what I read that -e included additional control
sequences, but perhaps I misunderstood and that only meant that the data stream
was expected to *use* additional control sequences but the control codes
themselves are part of the base
Guido van Rossum added the comment:
Sorry, I forgot the push. I had to do a little merge dance and also fixed one
typo (a redundant 'line') and now it's hopefully pushed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18472
Nick Coghlan added the comment:
Yep, sounds good to me (don't wait for PEP 432 is what I meant to imply
above, but I wasn't very clear about it)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16499
Charles-François Natali added the comment:
Here's a patch, based on the version in tulip's repo.
I've added doc update and tests.
I also made the following changes:
- BaseSelector is an abstract base class (so one could imagine user code
implementing its own selector on top of it)
-
New submission from Jean-Paul Calderone:
datetime.timedelta instances are divisible by integers on Python 2.7, but not
when __future__.division has been turned on:
exarkun@top:~$ ~/Projects/cpython/2.7/python -c '
from datetime import timedelta
print timedelta(seconds=3) / 2
'
0:00:01.50
Guido van Rossum added the comment:
Thanks! We should make sure this makes it into alpha 2. Could you also
prepare a patch for Tulip itself? That way I can make sure Tulip works with
either its own or the stdlib implementation.
One thought: would it be better if the selectors ended up in a
Antoine Pitrou added the comment:
One thought: would it be better if the selectors ended up in a
separate module rather than extending 'select'?
IMHO they're fine in select. It's quite the natural place for them.
--
___
Python tracker
David Edelsohn added the comment:
Thanks. The patch seems to return the tests to the expected failures and Python
does not crash.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18609
___
Antoine Pitrou added the comment:
You're just looking for floor division:
$ python -Qnew
Python 2.7.4 (default, Apr 19 2013, 18:28:01)
[GCC 4.7.3] on linux2
Type help, copyright, credits or license for more information.
1/2
0.5
from datetime import timedelta
print timedelta(seconds=3) // 2
Jean-Paul Calderone added the comment:
Hm. Maybe I am. Yet isn't true division implemented for this pair of types in
Python 3? I'm not sure why it shouldn't be implemented for them in Python 2.
Also that raises another question. Does a result of one and one half seconds
make sense as the
Steven D'Aprano added the comment:
A function like this often gets called to truncate lots of lines. Unfortunately
for many use-cases, the part truncated is the most significant part of the
line. E.g.:
Scanning file:
/home/fred/documents/datafil...
/home/fred/documents/datafil...
Steven D'Aprano added the comment:
Bike-shedding here... why (...)? Is it common to use round brackets for this
purpose? In English-speaking countries, it is usual to use square brackets for
editorial comments, including ellipsis [...].
Either way, if you wanted to be more Unicode aware, you
Antoine Pitrou added the comment:
Bike-shedding here... why (...)? Is it common to use round brackets
for this purpose? In English-speaking countries, it is usual to use
square brackets for editorial comments, including ellipsis [...].
Ah, really? French uses [...] but I thought
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18586
___
___
New submission from Roumen Petrov:
Split of issue3871 - build core modules.
--
components: Build
files: 0013-MINGW-exclude-unix-only-modules.patch
keywords: patch
messages: 194191
nosy: rpetrov
priority: normal
severity: normal
status: open
title: mingw: exclude unix only modules
type:
New submission from Roumen Petrov:
Split of issue3871 - build core modules.
--
components: Build
files: 0014-MINGW-setup-msvcrt-and-_winapi-modules.patch
keywords: patch
messages: 194192
nosy: rpetrov
priority: normal
severity: normal
status: open
title: mingw: setup msvcrt and _winapi
New submission from Roumen Petrov:
Split of issue3871 - build core modules.
Now more simple version of previous patch.
--
components: Build
files: 0015-MINGW-build-extensions-with-GCC.patch
keywords: patch
messages: 194193
nosy: rpetrov
priority: normal
severity: normal
status: open
Roundup Robot added the comment:
New changeset 314a872f54e1 by Antoine Pitrou in branch 'default':
Backout 62658d9d8926 (issue #10241): it causes a crash at shutdown when
deallocating a Tkapp object.
http://hg.python.org/cpython/rev/314a872f54e1
--
Antoine Pitrou added the comment:
I backed out the changeset in time for the Alpha 1 release.
Further investigation should perhaps be made on the tkinter issue, but it's a
bit cumbersome: you need a full test run in non-parallel mode to exhibit the
segfault.
--
stage:
Changes by Roumen Petrov bugtr...@roumenpetrov.info:
Removed file:
http://bugs.python.org/file31121/0015-MINGW-build-extensions-with-GCC.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18632
Roumen Petrov added the comment:
Attached up to date version of patch.
--
Added file:
http://bugs.python.org/file31122/0015-MINGW-build-extensions-with-GCC.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18632
New submission from Roumen Petrov:
Split of issue3871 - build core modules: improved version based on
get_platform()
--
components: Build, Cross-Build
files: 0016-MINGW-use-Mingw32CCompiler-as-default-compiler-for-m.patch
keywords: patch
messages: 194197
nosy: rpetrov
priority: normal
New submission from Roumen Petrov:
Split of issue3871 - build core modules: required by setup.py on hosts with
installed only shared (DLL) packages.
--
components: Build, Cross-Build
files: 0017-MINGW-find-import-library.patch
keywords: patch
messages: 194198
nosy: rpetrov
priority:
New submission from Chris Lambacher:
It would be useful to set the discovered member_type to the Enum class and not
just the instance. Attached is a patch to add _member_type_ to the enum_class.
--
files: enum_member_type_on_class.patch
keywords: patch
messages: 194199
nosy: lambacck
New submission from Roumen Petrov:
Split of issue3871 - build core modules.
--
components: Build, Cross-Build, Extension Modules
files: 0018-MINGW-setup-_ssl-module.patch
keywords: patch
messages: 194200
nosy: rpetrov
priority: normal
severity: normal
status: open
title: mingw: setup
New submission from Roumen Petrov:
Split of issue3871 - build core modules.
--
components: Extension Modules, Interpreter Core
files: 0019-MINGW-export-_PyNode_SizeOf-as-PyAPI-for-parser-modu.patch
keywords: patch
messages: 194201
nosy: rpetrov
priority: normal
severity: normal
status:
New submission from Roumen Petrov:
Split of issue3871 - build core modules: improved patch
--
components: Build, Cross-Build
files: 0020-MINGW-generalization-of-posix-build-in-sysconfig.py.patch
keywords: patch
messages: 194202
nosy: rpetrov
priority: normal
severity: normal
status:
New submission from Roumen Petrov:
Split of issue3871 - build core modules: patch is not required in cross-build
environment.
--
assignee: eric.araujo
components: Build, Distutils, Extension Modules
files: 0021-MINGW-avoid-circular-dependency-from-time-module-dur.patch
keywords: patch
New submission from Roumen Petrov:
Split of issue3871 - build core modules: improved patch
--
assignee: eric.araujo
components: Build, Cross-Build, Distutils, Extension Modules
files: 0022-MINGW-generalization-of-posix-build-in-distutils-sys.patch
keywords: patch
messages: 194204
nosy:
New submission from Roumen Petrov:
Split of issue3871 - build core modules: improved patch
--
components: Build, Cross-Build, Extension Modules
files: 0023-MINGW-customize-site.patch
keywords: patch
messages: 194205
nosy: rpetrov
priority: normal
severity: normal
status: open
title:
Changes by Ethan Furman et...@stoneleaf.us:
--
assignee: - ethan.furman
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18635
___
Ethan Furman added the comment:
Ah, so the Enum class has the mixin class as wall as / instead of the Enum
member (which should find it via normal attribute lookup).
I have no problem with that. I'll need to make a couple more changes to the
code, add a test, etc., etc.
It won't make the
Madison May added the comment:
I agree -- it's not at all intuitive that the floor division returns a decimal
number of seconds, while float division raises an error. This should probably
be cleaned up.
In python 3.4, both float division and integer division return decimal numbers
of
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +belopolsky, lemburg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18629
___
___
Madison May added the comment:
This issue may have been dead for 3+ years, but perhaps it's time its brought
back to the surface. Aside from simple being convenient for general security
practices, a stdlib module for crypto routines would enable python to handle
encrypted zipfiles and
Marc-Andre Lemburg added the comment:
Madison May wrote:
This issue may have been dead for 3+ years, but perhaps it's time its brought
back to the surface. Aside from simple being convenient for general security
practices, a stdlib module for crypto routines would enable python to handle
Madison May added the comment:
Yeah, that definitely qualifies as a good argument. I didn't consider the
legal issues that would create. Let's let this issue rest in peace, then.
--
___
Python tracker rep...@bugs.python.org
Gregory P. Smith added the comment:
The interest is there but nobody is designing or implementing it.
Realistically, make a module sporting the proposed API and put it up on pypi
and after success there: raise the issue on python-ideas.
Read the entire thread here first before designing such
Gregory P. Smith added the comment:
Python already ships with SSL support so the legal ship might have sailed ages
ago if thats what PSF lawyers say. (IANAL)
--
resolution: - later
status: open - closed
___
Python tracker rep...@bugs.python.org
Gregory P. Smith added the comment:
note,
http://docs.scipy.org/doc/scipy/reference/stats.html#statistical-functions is a
very popular module for statistics in Python.
One of the more frequent things I see people include the entire beast of a code
base (scipy and numpy) for is the student's
Antoine Pitrou added the comment:
Here is an updated patch. Any objections to committing?
--
Added file: http://bugs.python.org/file31132/frame_clear_alt3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17934
Valerie Lambert added the comment:
I just signed and sent the agreement electronically. Let me know if there is
anything else I need to do.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4885
Alexander Belopolsky added the comment:
I believe this is related to the fact that timedelta * float is not supported
in 2.x:
Python 2.7.5 (default, May 24 2013, 15:56:16)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type help, copyright, credits or license for more information.
from
Charles-François Natali added the comment:
Version addressing Antoine and Christian's comments.
--
Added file: http://bugs.python.org/file31133/selector-12.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16853
Alexander Belopolsky added the comment:
Does a result of one and one half seconds make sense as the result of a floor
division operation?
Yes. Timedeltas behave as integers containing the number of microseconds:
timedelta(microseconds=1) / 2
datetime.timedelta(0)
--
Eli Bendersky added the comment:
I've been reading the discussion again to figure out what we need to move
forward; it appears that a simple approach of using str(int(obj)) in json
encoding when isinstance(obj, int) was acceptable for many of the participants,
and it helps solve the most
Eli Bendersky added the comment:
[please note that the patch is POC/hacky at best - it's likely to leak memory
and be careless and incomplete in other ways. I'm just trying to demonstrate
the approach]
--
___
Python tracker rep...@bugs.python.org
Eli Bendersky added the comment:
Can you clarify why it would be useful? Note that we're talking about private
non-documented members here.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18635
Ethan Furman added the comment:
I'll check you patch later against big numbers (which is where I had
difficulties). If it works I'll try to make it more complete. If it doesn't,
I've been working on just extraction the Enum member's value and using that
(works fine on the Python side ;) .
Ethan Furman added the comment:
I don't think my idea of always extracting .value is grandiose (and didn't take
that long to implement on the Python side), but it is definitely forcing me to
learn more about C and how Python is put together.
It this point I have successfully imported Enum
Madison May added the comment:
PathFinder or FileFinder? Changing PathFinder._path_importer_cache(cls, path)
seems to fix the issue.
See line 1302 in _bootstrap.py.
if path == '':
-path = '.'
+path = _os.getcwd()
$ touch blah.py; ./python -c import blah;
Ethan Furman added the comment:
I also admit to being curious as to the reason it is useful, especially since
it is, at this point, an implementation detail.
Even so, it still makes more sense to have that attribute on the class instead
of the instance.
--
Roundup Robot added the comment:
New changeset f37b336bfbca by Ned Deily in branch '3.3':
Issue #17046: Fix test_subprocess test_executable_without_cwd broken test case.
http://hg.python.org/cpython/rev/f37b336bfbca
New changeset e3e28ee5b5c3 by Ned Deily in branch 'default':
Issue #17046:
Ned Deily added the comment:
test_executable_without_cwd was broken by the test enhancements added for
Issue15533. This particular test case is skipped unless the tests are being
run from an installed Python rather than from a build directory, the more
typical case. The applied patch (for
Terry J. Reedy added the comment:
If the iterator for 'self' were de-structive, if it removed (popped) the test
from whatever structure holds it before yielding it, the messiness of enumerate
and the new ._removeTestAtIndex method would not be needed and 'for test in
self' would work as
Ned Deily added the comment:
Terry, your patch did not get attached. Do you still have it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18270
___
Changes by Ned Deily n...@acm.org:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17704
___
___
Python-bugs-list
Ned Deily added the comment:
Since there has been no further activity on this issue and it seems to be
isolated to a particular user build, I'm going to close this. Feel free to
reopen with more documentation if you believe there is a problem with Python
itself.
--
resolution: -
Alexander Belopolsky added the comment:
Is there a reason why there is no review link? Could it be because the file
is uploaded as is rather than as a patch?
In any case, I have a question about this code in sum:
# Convert running total to a float. See comment below for
Ned Deily added the comment:
Has anyone seen this problem on other than OS X 10.6? If not, I suggest we
assume it was, in fact, due to a platform bug and close.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15398
Alexander Belopolsky added the comment:
The implementation of median and mode families of functions as classes is
clever, but I am not sure it is a good idea to return something other than an
instance of the class from __new__(). I would prefer to see a more traditional
implementation along
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18599
___
___
Python-bugs-list mailing list
Jesús Cea Avión added the comment:
Ronald, could you try to write a patch?
--
nosy: +jcea
stage: test needed - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18595
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18594
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18602
___
___
Python-bugs-list mailing list
Terry J. Reedy added the comment:
No, but I recreated it from my description and attached it. But see next
message.
--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file31135/18270-27.diff
___
Python tracker
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18574
___
___
Python-bugs-list mailing list
Guido van Rossum added the comment:
No time for a full review yet, but a comment on the timeout test failure you
are observing in Tulip. This particular test schedules a task that sleeps for
20 msecs, and first calls run_until_complete() with a timeout of 10 msecs, and
then calls it again
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18575
___
___
Python-bugs-list mailing list
Terry J. Reedy added the comment:
Looking further at handling debug, startup, cmd, or script options. When any of
these are set, enable_shell is also, so to reach here, shell must be true, so
only the MAC test, the subject of this issue, needs protection. Smaller patch
(fewer lines changed)
97 matches
Mail list logo