Charles-François Natali added the comment:
No automated testing included because I'm not entirely sure how to replicate
this without eating up a ton of ram or doing something naughty with ulimit.
Simply use RLIMIT_NPROC, from a subprocess:
$ cat /tmp/test.py
import subprocess
ps = [ ]
for
Benjamin Peterson added the comment:
Here's a patch for 3.4. __qualname__ ought to have been implemented this way in
the first place. I'll have to think about what can be done about 3.3. Maybe
just the same fix without the removal of PyHeapType.ht_qualname. We can hope no
one has written
Antoine Pitrou added the comment:
I'm not sure why this would be the correct way to do it. First you are removing
the unicode check, which looks wrong to me. Second, if ht_name works, perhaps
ht_qualname can be made to work as well?
--
___
Python
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16285
___
___
Python-bugs-list
STINNER Victor added the comment:
sys.getfilesystemencoding()
'mbcs'
import locale
locale.getpreferredencoding()
'cp932'
'cp932' is the same as 'mbcs' in the Japanese environment.
And what is the value.of locale.getpreferredencoding(False)?
--
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16309
___
___
Python-bugs-list
Charles-François Natali added the comment:
Also, I didn't check, but if the problems also occurs on execve()
failure, then it's much simpler: simply call Popen() with an
invalid/nonexisting executable.
--
___
Python tracker rep...@bugs.python.org
Nick Coghlan added the comment:
This whole refactoring project grew out of the fact that Chris and I were
looking for somewhere to put common helpers for package testing. Specfically, I
wrote a heap of helpers for test_runpy that I wanted to use for the new pkgutil
tests.
The short term hack
Masami HIRATA added the comment:
And what is the value.of locale.getpreferredencoding(False)?
import locale
locale.getpreferredencoding(False)
'cp932'
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16322
Ronald Oussoren added the comment:
Apple seems to have switched to using dlopen in their version of getpath.c (see
http://www.opensource.apple.com/source/python/python-60.3/2.7/fix/getpath.c.ed,
this is the version in OSX 10.8.2)
This causes a problem for some people, as noticed on the
Hynek Schlawack added the comment:
Isn’t this a dupe of #5411?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16313
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Yes, this is actually a dupe of #5411? Thanks.
--
resolution: - duplicate
stage: patch review - committed/rejected
status: open - closed
superseder: - Add xz support to shutil
___
Python tracker
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: -berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9856
___
___
Serhiy Storchaka added the comment:
I have not seen this issue and was created a new issue16313 with almost same
patch as Eric's one (only I have changed the documentation too). Here's the
patch. I wonder that it was not committed yet to 3.3. I think it would be
better first to add xz support
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5411
___
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: -berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11468
___
___
Jesús Cea Avión added the comment:
The problem with using RLIMIT is that the testsuite could be executing several
tests in parallel using independent threads, for instance. You don't want to
influence unrelated tests.
Overiding private methods is ugly, but if the code evolves the test would
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file27722/shutil-lzma.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5411
___
Serhiy Storchaka added the comment:
Oh, I see the '.bz2' bug. Patch updated.
--
Added file: http://bugs.python.org/file27723/shutil-lzma_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5411
Hynek Schlawack added the comment:
Thanks for taking the time! I remember my frustrations when trying to grok how
the mp test suite works. :)
A small nit-pick first: you have a lot of extra white space in your patches.
Just run 'make patchcheck' first, that should warn you about that.
Not
lilydjwg added the comment:
My system has updated to Python 3.3.0 and this bugs me again :-(
I don't see the changes in Python 3.3.0. So when will this be merged into 3.3?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15222
Petri Lehtinen added the comment:
The fix was committed when 3.3.0 was in release candidate mode, and wasn't
considered important enough to be included in 3.3.0 anymore. It will be
included in 3.3.1, which is to be released next month.
--
___
Charles-François Natali added the comment:
The problem with using RLIMIT is that the testsuite could be executing
several tests in parallel using independent threads, for instance. You don't
want to influence unrelated tests.
That's why I suggested to run it in a subprocess: this is used
Janne Karila added the comment:
Otherwise I agree, but what if one of the callbacks is not called? The test
case would fail on assertEqual(2, len(call_args)) but you wouldn't know which
callback is the problem.
--
___
Python tracker
Winston451 added the comment:
I attached a patch that solve the problem
--
keywords: +patch
Added file: http://bugs.python.org/file27725/readline.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4202
Changes by Claude Paroz cla...@2xlibre.net:
--
keywords: +patch
Added file: http://bugs.python.org/file27726/issue16324-1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16324
___
Changes by Winston451 montag...@laposte.net:
--
type: - behavior
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python
3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4202
Changes by Winston451 montag...@laposte.net:
Added file: http://bugs.python.org/file27727/readline.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4202
___
Changes by Winston451 montag...@laposte.net:
Removed file: http://bugs.python.org/file27725/readline.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4202
___
New submission from Emil Styrke:
OS: Windows 7 Ultimate x64
Python version: 2.7.3 x64
win_add2path.py in the scripts directory is supposed to add the Scripts
directory according to its source. However, it tries to add
$PYTHONPATH/Scripts, when in fact the Scripts directory is at
Hynek Schlawack added the comment:
True, it makes sense to push this assert to the end.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16307
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
versions: -Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2, Python
3.3, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4202
Changes by Tim Golden m...@timgolden.me.uk:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16328
___
___
Tim Golden added the comment:
[this response appears to have got lost in an email black hole somewhere]
I assume that $PYTHONPATH is actually referring to sys.exec_prefix
(and not the PYTHONPATH env var which has nothing to do with this).
In any case c:\python27\scripts is still the place for
I assume that $PYTHONPATH is actually referring to sys.exec_prefix
(and not the PYTHONPATH env var which has nothing to do with this).
In any case c:\python27\scripts is still the place for scripts. There is
a c:\python27\tools\scripts (which you're welcome to add to your %PATH%
if you find the
New submission from Giampaolo Rodola':
http://www.webmproject.org/docs/container/#naming
--
components: Library (Lib)
files: webm.diff
keywords: patch
messages: 173843
nosy: giampaolo.rodola
priority: normal
severity: normal
status: open
title: mimetypes does not support webm type
Giampaolo Rodola' added the comment:
(patch in attachment)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16329
___
___
Python-bugs-list mailing
Jesús Cea Avión added the comment:
How do we know if the webm file is video+audio or audio only?. Mimetypes are
different. :-?
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16329
Giampaolo Rodola' added the comment:
I'd say we can't but I suppose the same problem might exist for other mime
types as well.
Given that we can't inspect file content the only choice we have is either
decide to not support a certain mime type or assume the most common scenario,
which in case
R. David Murray added the comment:
I suppose this is a flaw in the mimetype API. At some point perhaps we should
fix it, but in the meantimedoes anyone have a pointer to an actual IANA
submission for this mime type? I think we can probably no longer wait for
official IANA approval, but
Daniel Oźminkowski added the comment:
Python 2.7.3
WinXP Professional 2002 + SP3
Visual Studio C++ Express 2008
I bumped into this error trying to install fabric. One of the installation
steps is compiling pycrypto.
After looking into C:\Program Files\Microsoft Visual Studio
Ezio Melotti added the comment:
So IIUC the package will contain __init__.py (what is now support.py),
script_helper, and pkg_helper.
One reason why I proposed to merge script_helper with support.py is that
functions like assert_python*() are used in several modules already, and are
generic
Richard Oudkerk added the comment:
For updated code see http://hg.python.org/sandbox/sbt#spawn
This uses _posixsubprocess and closefds=True.
--
hgrepos: +157
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8713
Lucas Maystre added the comment:
Alright, here's a version with more tests (unittest.mock is awesome!). I think
it tests exactly what it should (and no more), i.e. that the arguments are
correctly passed to `open`.
--
Added file: http://bugs.python.org/file27729/filetype11175.patch
Petri Lehtinen added the comment:
LGTM. Let's wait for Steven's comments as he's the maintainer of argparse.
--
keywords: +needs review
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11175
Emil Styrke added the comment:
Ok, thanks for clearing that up. And yes, I meant the pythonpath variable in
the script, which seems to be derived from sys.executable.
But in that case, it's unfortunate that the c:\python27\scripts dir is not
created during install. I did win_add2path right
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: -berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11175
___
___
Benjamin Peterson added the comment:
Was does qualname need to be on the struct?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16271
___
___
New submission from Serhiy Storchaka:
A set of macros to work with surrogates was introduced in 3.3:
Py_UNICODE_IS_SURROGATE, Py_UNICODE_IS_HIGH_SURROGATE,
Py_UNICODE_IS_LOW_SURROGATE, Py_UNICODE_JOIN_SURROGATES,
Py_UNICODE_HIGH_SURROGATE, and Py_UNICODE_LOW_SURROGATE. Using this macros
Peter Würtz added the comment:
x * 2 - 1 is less clear than x*2 - 1
I don't feel this. Anyone else feel this?
I strongly feel so. And if you don't take my word for it, just open any math
book or look at any formula and recognize that it is the general consensus that
the elements of a
Benjamin Peterson added the comment:
s/Was/Why/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16271
___
___
Python-bugs-list mailing list
Roundup Robot added the comment:
New changeset 361beec678e1 by Ezio Melotti in branch '2.7':
#16206: Improve examples about dict construction.
http://hg.python.org/cpython/rev/361beec678e1
New changeset eb999002916c by Ezio Melotti in branch '3.2':
#16206: Improve examples about dict
Vinay Sajip added the comment:
(note: SocketHandler's implementation looks grotesque. Enough said).
Care to be a little more constructive in your criticism? I'm quite open to
improving it, if you have any suggestions for doing so. It's a very basic
exponential back-off approach - the only
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
nosy: +ezio.melotti
stage: - needs patch
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16304
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16312
___
___
Roundup Robot added the comment:
New changeset 2fc18ba8ca4a by Ezio Melotti in branch '3.3':
#16317: mention lzma in the tutorial. Patch by Serhiy Storchaka.
http://hg.python.org/cpython/rev/2fc18ba8ca4a
New changeset f2f615b5718a by Ezio Melotti in branch 'default':
#16317: merge with 3.3.
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
nosy: +chris.jerdonek
title: It would be nice if documentation pages linked to other versions of the
same document - documentation pages should link to other versions of the same
page
___
Chris Jerdonek added the comment:
Can you give an example of what you would like the API to look like (i.e. what
you would like to be able to type from the command-line if, say, configuring
logging as in the SO post)?
I'm not sure I understand why a wrapper script isn't a good enough
Michael Foord added the comment:
I would do this with a module level (global) flag as to whether the initial set
up has been done and a BaseTestCase class that checks this flag and calls a set
up function if it hasn't been done yet (and then sets the flag).
--
Changes by Michael Foord mich...@voidspace.org.uk:
--
assignee: - michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16312
___
___
New submission from Yury Selivanov:
This patch adds a dropdown to python documentation top toolbar:
https://dl.dropbox.com/u/21052/python/p3_doc_dd.png
This patch version is for python 3.3 3.4 docs theme, but I can quickly make
patches for 3.2-style and below.
JavaScript that monitors
Changes by Yury Selivanov yselivanov...@gmail.com:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16331
___
___
Ezio Melotti added the comment:
Thanks for the patch.
What happens if the module doesn't exist in a previous version or if it has a
different name?
It's probably not necessary to include all those versions.
--
nosy: +ezio.melotti
stage: - patch review
versions: +Python 2.7 -Python
Yury Selivanov added the comment:
What happens if the module doesn't exist in a previous version or if it has a
different name?
As I said in the first message:
2) Before making a redirect, is checks that the doc page exists for the
selected python version, and if not, then it simply
Mark Dickinson added the comment:
What use-cases did you have in mind for this? (I assume that something
motivated this report.)
It seems to me that there's not actually much to say about the float format:
the only format that Python realistically supports these days is the IEEE 754
Ezio Melotti added the comment:
I left a review on rietveld.
FWIW we discussed this already somewhere, and IIRC the two main issues were:
1) mapping new/renamed/delete files between versions;
2) making this work while building the docs locally;
Redirecting to 'http://docs.python.org/{version}'
Ezio Melotti added the comment:
See #8040.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16331
___
___
Python-bugs-list mailing list
Yury Selivanov added the comment:
1) mapping new/renamed/delete files between versions;
I think that this dropdown is mostly like to be used to switch between somewhat
recent python versions, like '3.2' - '3.3', '2.7' - '3.3', and not between
'2.4' - '3.4'
And most of the internet links
Ezio Melotti added the comment:
I think that this dropdown is mostly like to be used to switch between
somewhat recent python versions, like '3.2' - '3.3', '2.7' - '3.3',
and not between '2.4' - '3.4'
I mostly want to switch between 2.x and 3.x, and several modules got renamed
between
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14901
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
versions: +Python 3.4 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10936
___
___
Yury Selivanov added the comment:
I mostly want to switch between 2.x and 3.x, and several modules got renamed
between these versions. There are also new modules on each release (5 new
ones in 3.3).
To make that work we'll need to have a modules mapping between 2nd and 3rd
versions. It
Éric Araujo added the comment:
If you want to work on this you should also consider that the URLs used on
docs.python.org don't necessary
match the directory structure present when building the doc locally.
I think this is irrelevant; this feature is intended for the web site, not for
Terry J. Reedy added the comment:
Where there's conflict, Guido's style rules for the purposes of this PEP. I
think this sentence should go. The only way that I can make sense of it is that
Guido's and Barry's documents have rules that are not in PEP 8 and that if they
conflict, Guido's wins.
Yury Selivanov added the comment:
Eric,
I'm not sure what we should do with #8040. I searched for the existing issue
before creating a new one, but obviously failed. Should we just close #8040
and point it to #16331?
--
___
Python tracker
Éric Araujo added the comment:
Typically we close the newer issue as duplicate of the existing one, unless the
new has much more discussion or patches. I would close this one.
About renamed modules: there’s a mapping in lib2to3 that contains the info.
--
Yury Selivanov added the comment:
Eric, Ezio,
This one has a patch attached with a relevant discussion review, so I'd close
#8040.
But if you guys decide to close this one and switch to #8040 - i'm fine.
--
___
Python tracker
Ezio Melotti added the comment:
As I said on #16331, it would be nice to have it, but it shouldn't block a
patch that works for the website only (having it there is still better than not
having it at all).
What I meant to say is that taking this into account while writing the code is
a good
Berker Peksag added the comment:
Here is the second patch with Alexander Belopolsky's comments addressed.
--
nosy: +berker.peksag
versions: +Python 3.3, Python 3.4 -Python 3.1
Added file: http://bugs.python.org/file27732/issue6478.patch
___
Python
Alexander Belopolsky added the comment:
The patch looks good, but I have a few comments on the test:
1. Does it work on Windows? It seems to rely on Olson's TZ names.
2. Please use @run_with_tz decorator.
--
___
Python tracker
New submission from Berker Peksag:
See:
http://docs.python.org/whatsnew/2.6.html#pep-3110-exception-handling-changes
Patch attached.
--
assignee: docs@python
components: Documentation
files: subprocess-exception-2.7.patch
keywords: patch
messages: 173881
nosy: berker.peksag,
Roundup Robot added the comment:
New changeset 7a69b4077afb by Ezio Melotti in branch '2.7':
#16332: use except OSError as e in subprocess docs. Patch by Berker Peksag.
http://hg.python.org/cpython/rev/7a69b4077afb
--
nosy: +python-dev
___
Python
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - pending
type: - enhancement
___
Python tracker
Chris Jerdonek added the comment:
I recommend closing this as a duplicate.
--
nosy: +chris.jerdonek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16331
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16332
___
___
Martin v. Löwis added the comment:
yselivanov: please resubmit the patch to the original issue.
--
nosy: +loewis
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16331
Changes by Martin v. Löwis mar...@v.loewis.de:
--
superseder: - documentation pages should link to other versions of the same
page
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16331
___
Martin v. Löwis added the comment:
[on yselivanov's patch]
I think the menu should drop versions that are not maintained anymore, i.e.
anything older than 2.5 (including). If that sounds too harsh, a single item
older could be added that always navigates to the version selection page.
With
Yury Selivanov added the comment:
Eric, Ezio,
I'd like to make the version dropdown to be configurable. The question is--I
can add an option (set to False by default) to conf.py. Will you have a way to
override it on the 'docs.python.org'?
--
nosy: +yselivanov
Janne Karila added the comment:
The length assertion protects the test from breaking with IndexError. How about
this? Though, it looks like two test cases to me.
+self.pool.map_async(int, ['1'],
+callback=call_args.append,
+
Benjamin Peterson added the comment:
Here's the other option.
--
Added file: http://bugs.python.org/file27734/qualname2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16271
___
Georg Brandl added the comment:
A few comments:
* If the issue with patch is closed as duplicate, the patch should be attached
to the superseder.
* The patch looks awfully long for such a simple option list. (e.g.,
get_version() is just lambda x: x[:3], no need for a function to do that.)
*
New submission from Zach Mathew:
When using the indent option in json.JSONEncoder, extra trailing whitespace
(preceding the newline) is added to list and dict items.
For example:
import json
json.dumps(['foo', 'bar'], indent=1)
'[\n foo, \n bar\n]'
Notice the blank space between foo, and
Roundup Robot added the comment:
New changeset 9d3b616fc702 by Andrew Svetlov in branch '3.3':
Issue #16243: add example for inspect.formatargspec
http://hg.python.org/cpython/rev/9d3b616fc702
New changeset a0337031a6b7 by Andrew Svetlov in branch 'default':
Merge issue #16243: add example for
Andrew Svetlov added the comment:
Thanks, Berker.
I feel the patch is good enough to close the issue.
If anybody want to add some value please reopen.
--
nosy: +asvetlov
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Yury Selivanov added the comment:
If the issue with patch is closed as duplicate, the patch should be attached
to the superseder.
Attached now. Although, please don't use it. I'll upload an updated version
soon.
The patch looks awfully long for such a simple option list. (e.g.,
Yury Selivanov added the comment:
Attaching a new patch, with all previous issues resolved.
Version dropdown can be enabled by the new 'pydoc_versionswitcher' config
property (False by default).
Please review and test (I've done lots of testing by injecting the JS on live
python docs site,
R. David Murray added the comment:
See issue 16333 for the bug report against the json trailing whitespace.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9767
___
R. David Murray added the comment:
Thanks for the report and patch.
I think we'll need a fix for the C version, too (unless it doesn't have the
bug).
--
nosy: +r.david.murray
stage: - patch review
versions: -Python 2.6, Python 3.1, Python 3.5
___
1 - 100 of 121 matches
Mail list logo