Roundup Robot added the comment:
New changeset 5f24a77e7beb by Chris Jerdonek in branch 'default':
Issue #16814: add make -C Doc html short-cut to documentation instructions.
http://hg.python.org/devguide/rev/5f24a77e7beb
--
nosy: +python-dev
___
Chris Jerdonek added the comment:
I went ahead and committed this if that's okay. I wasn't sensing any strong
objection but -0 from some and +1 or +0 from others. To compensate for the
extra six words, I went ahead and first made the current language more concise
here:
Mark Dickinson added the comment:
But I'm unsure is this is expected behavior or luck, and on some
platform this code will not work due to different complex numbers
internal representation.
What platform? Isn't the complex number representation standard? E.g., C99
6.2.5p13 says: Each
New submission from Charles-François Natali:
After optimizing epoll() to use a per-instance buffer like poll() does
(http://bugs.python.org/issue16876), I realized that it wasn't thread-safe, and
can result in crashes:
./python /tmp/test.py
*** glibc detected *** ./python: free(): corrupted
Georg Brandl added the comment:
This is a known issue in older Sphinx versions. I've updated the version used
to build the devguide now; this should fix it.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Chris Jerdonek added the comment:
Great, thank you! :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16928
___
___
Python-bugs-list mailing
New submission from Chris Jerdonek:
In various places, the devguide recommends `hg graft`, but it appears it might
not be possible to use on some systems or in certain situations. For example,
when I tried grafting a trivial change from 2.7 to 3.2 on Mac OS X, I got the
following fatal
Ezio Melotti added the comment:
This is what I found out.
I used an easily copy/pastable one-liner that creates 3 variables: e (no
children), e2 (3 children), e3 (5 children).
Original leaky code (test_xml_etree_c leaked [56, 56] references, sum=112):
from xml.etree import ElementTree as ET;
gac added the comment:
Patch to add the same functionality to Python 2.7, if anyone's interested in
that also.
--
versions: +Python 2.7
Added file: http://bugs.python.org/file28686/smtplib.py.27.patch
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
For poll() see issue8865.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16929
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +select.poll is not thread safe
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16929
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
dependencies: +Update cloning guidelines in devguide
stage: - needs patch
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16930
New submission from Chris Jerdonek:
This issue is to mention in the devguide how to create diffs with the changeset
number when --git is configured on. Perhaps this can be done via a FAQ like:
How can I get Rietveld to work with a 2.7 patch?
Background: Currently, the devguide recommends
Charles-François Natali added the comment:
OK, I'll close as duplicate.
--
dependencies: -select.poll is not thread safe
resolution: - duplicate
superseder: - select.poll is not thread safe
___
Python tracker rep...@bugs.python.org
Charles-François Natali added the comment:
This patch should be updated to also fix epoll().
Also, is it right to raise an exception in case of concurrent invocation?
Here's a simple script that crashes systematically on my Linux box.
--
nosy: +neologix
Added file:
Changes by Charles-François Natali cf.nat...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16929
___
___
Chris Jerdonek added the comment:
I created issue 16931 to document a way to use Rietveld for 2.7 patches, while
still keeping the Mercurial configuration we advise.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13963
Serhiy Storchaka added the comment:
Also, is it right to raise an exception in case of concurrent invocation?
It is right for poll() because it was not concurrently usable in previous
versions in any case. For epoll() it is an another issue.
--
Tim Golden added the comment:
This code is no longer present in subprocess.py now that issue14470 has been
applied.
--
nosy: +brian.curtin, tim.golden
resolution: - out of date
stage: - committed/rejected
status: open - closed
___
Python tracker
Changes by Sergey Prokhorov sergey.prokho...@gmail.com:
--
nosy: +Sergey.Prokhorov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11159
___
___
Tim Golden added the comment:
Reopening because there is in fact a doc issue reamining.
--
assignee: - tim.golden
resolution: out of date -
stage: committed/rejected -
status: closed - open
___
Python tracker rep...@bugs.python.org
Tim Golden added the comment:
I can't push from work; the (trivial) doc patch is attached. If no-one gets to
it, I'll push from home this evening.
--
Added file: http://bugs.python.org/file28688/doc.diff
___
Python tracker rep...@bugs.python.org
Chris Jerdonek added the comment:
As suggested in the previous comment, here is simple code to find candidates
for test duplication (TestCase subclasses subclassing other TestCase classes):
def find_dupes(mod):
objects = [getattr(mod, name) for name in sorted(dir(mod))]
classes = [obj
Roundup Robot added the comment:
New changeset f783db4a58ba by Serhiy Storchaka in branch '2.7':
Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.
http://hg.python.org/cpython/rev/f783db4a58ba
New changeset 9df6b707aef9 by Serhiy Storchaka in branch '3.2':
Issue #15539: Fix a
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15539
Serhiy Storchaka added the comment:
Here is a dirty patch which hacks unittest to search possible test overriding.
Just apply the patch and run regression tests.
--
Added file: http://bugs.python.org/file28689/checkTestOverriding.diff
___
Python
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file28690/test_overriding.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16748
___
Raymond Hettinger added the comment:
It could be made a bit faster, but it would complicate the code for very little
benefit. IMO, this isn't worth it.
--
priority: normal - low
___
Python tracker rep...@bugs.python.org
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16613
___
___
Daniel Shahaf added the comment:
Ezio Melotti wrote on Fri, Jan 11, 2013 at 08:44:43 +:
### one ref leaked for every child in __setstate__:
e2.__setstate__(p2)
[76810 refs]
e2.__setstate__(p2)
[76813 refs]
e2.__setstate__(p2)
[76816 refs]
I'm not working on this anymore now, so
Ezio Melotti added the comment:
I left a review on Rietveld.
Frank, once the comments have been addressed and the patch approved, do you
want to commit it on all the 4 branches yourself?
If you prefer I can take care of it.
--
nosy: +ezio.melotti
type: - behavior
versions: +Python
Ezio Melotti added the comment:
Some buildbots are failing:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%202.7/builds/341/steps/test/logs/stdio
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/1263/steps/test/logs/stdio
--
New submission from Sandro Tosi:
Hello,
as reported at http://mail.python.org/pipermail/docs/2013-January/012375.html
urlparse fails to parse URLs without a schema and with a url path, as opposed
to what's documented at
Raymond Hettinger added the comment:
Can you write-up a patch with tests and a doc change?
--
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16613
___
Sandro Tosi added the comment:
Adding Senthil as per expert list
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16932
___
___
Federico Reghenzani added the comment:
I think that 't' option can be added to conform with open() built-in function.
The other options I don't think it's possible to use with sockets.
Adding the 't' doesn't change the makefile() behavior. I added also a
clarification in documentation.
Changes by Thomas Guettler guet...@thomas-guettler.de:
--
nosy: +guettli
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14102
___
___
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
hgrepos: +171
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16613
___
___
Python-bugs-list
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
keywords: +patch
Added file: http://bugs.python.org/file28694/951243de359a.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16613
___
Vinay Sajip added the comment:
Can you write-up a patch with tests and a doc change?
Done.
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16613
___
Dražen Lučanin added the comment:
Yes, I see your point.
Well, for now I am voting for issue1634034 to get some sort of
resolution, as Serhiy mentioned, as it might help this scenario as
well.
Cheers!
On Thu, Jan 10, 2013 at 4:29 PM, Ezio Melotti rep...@bugs.python.org wrote:
Ezio Melotti
Serhiy Storchaka added the comment:
Here is a patch which should fix creating a backup on Windows. Please test it.
If test_tools passes on Windows then I'll commit the patch, in contrary case
I'll just skip checking of backup on Windows.
--
stage: committed/rejected - patch review
Serhiy Storchaka added the comment:
I agree, the main problem is in the fact that expected token is not always
singular. And even most expected token is a little subjective. The better
solution will be to expect several possible tokens. This requires some parser
modification.
--
Roundup Robot added the comment:
New changeset 1aac333f320a by Tim Golden in branch 'default':
#16921 Since Win9x is no longer supported, CREATE_NEW_CONSOLE is
http://hg.python.org/cpython/rev/1aac333f320a
--
nosy: +python-dev
___
Python tracker
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16445
___
___
New submission from Thomas Guettler:
The current argparse documentation is not easy to read people new to python.
http://docs.python.org/dev/library/argparse.html#choices
{{{
current: parser.add_argument('foo', choices='abc')
}}}
Please make this more explicit:
{{{
better:
New submission from Stephane Poirier:
qsort doesn't sort arrays that are defined with double elements.
You can find attached a script that shows this function working well for int
(as described in the ctypes documentation). If int array is replaced by double
array qsort doesn't sort any more.
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16934
___
New submission from Brett Cannon:
For test discovery to work where a dependent module is optional, you end up
needing to do something like what is done in
http://hg.python.org/cpython/rev/15ddd683c321:
-crypt = support.import_module('crypt')
+def setUpModule():
+# this import will raise
Michael Foord added the comment:
Agreed and it should be easy to implement.
--
keywords: +gsoc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16935
___
Mark Dickinson added the comment:
What happens if you replace the line:
CMPFUNC = CFUNCTYPE(c_double, POINTER(c_double), POINTER(c_double))
in your example code with
CMPFUNC = CFUNCTYPE(c_int, POINTER(c_double), POINTER(c_double))
?
--
nosy: +mark.dickinson
Ramchandra Apte added the comment:
Going to attach a patch using subprocess in a few minutes...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16829
___
Mark Dickinson added the comment:
Closing as invalid: the issue is not in Python but with the CMPFUNC line.
Your py_cmp_func should return an integer rather than a float to be compatible
with libc.qsort.
--
resolution: - invalid
status: open - closed
R. David Murray added the comment:
I believe this patch is correct in essence, but I think it would be helpful to
clarify the explanation of what autocommit mode is. I'll work on an updated
patch.
It could also be considered a bug that the standard context manager does not
support
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: +zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16935
___
___
Python-bugs-list
New submission from Jens Lechtenboerger:
The documentation for the stat module is inconsistent
(Doc/library/stat.rst, at least for Python 2.7.2 and 3.3.0):
It talks about a function stat.S_IFMT() and a bit mask stat.S_IFMT.
Only the former does exist.
Besides, it states: For complete details
Serhiy Storchaka added the comment:
It is not so easy. The problem is that we have to determine the print command
by configuration line. A user may wish to change these settings, and some users
already changed them. The patch should not break them. For backward
compatibility we also have to
Serhiy Storchaka added the comment:
Hmm, expected attribute is set when there is only one possible expected token
in PyParser_AddToken(). I don't understand why error messages are so misleading
for def f(*23): (here not only ')', but a name possible).
--
Ramchandra Apte added the comment:
@Serhiy Storchaka
I don't think anybody edits that line anyway.
IMHO, a warning about this change should be enough.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16829
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3170
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10544
___
Changes by Brett Cannon br...@python.org:
--
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9716
___
___
Changes by Brett Cannon br...@python.org:
--
versions: +Python 3.4 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10544
___
___
Serhiy Storchaka added the comment:
At least one who want print filenames on non-default printer must edit that
line. In any case we can't break this in a bugfix release.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16829
Serhiy Storchaka added the comment:
Zack, can you please resend your agreement by email?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16624
___
Roundup Robot added the comment:
New changeset acce13a6e728 by Brett Cannon in branch 'default':
Issue #3583: mention that testing whether a bad address not triggering
http://hg.python.org/cpython/rev/acce13a6e728
--
nosy: +python-dev
___
Python
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3583
___
___
Serhiy Storchaka added the comment:
Ben, can you please resend your agreement?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12004
___
___
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8915
___
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2267
___
Éric Araujo added the comment:
LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16814
___
___
Python-bugs-list mailing list
Unsubscribe:
Éric Araujo added the comment:
Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16874
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16893
___
___
Python-bugs-list
Éric Araujo added the comment:
Thanks for the report and patches!
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13934
___
Brett Cannon added the comment:
While I appreciate the effort, SilentGhost, I'm going to make a call and say
Raymond is right; this isn't worth the code breakage. While all new code should
make sure to use the underscore prefix, proactively adding it to pre-existing
code just isn't worth the
Brett Cannon added the comment:
So I just closed the dependency on this issue as I figured the potential code
breakage wasn't worth this (plus the referenced TODO item from the devguide is
gone and was never turned into a proper task).
Now the question becomes do the guidelines SilentGhost
Éric Araujo added the comment:
FTR there is already an alternative to setupmodule:
try:
import module
except ImportError:
module = None
@unittest.skipUnless(module, 'requires module')
class ModuleTests(unittest.TestCase):
pass
This idiom is more lines than support.import_module,
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
versions: +Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue969718
___
Brett Cannon added the comment:
Alexander's patch LGTM
--
assignee: - belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10541
___
___
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10991
___
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10708
___
___
Python-bugs-list
Georg Brandl added the comment:
This is not a bug: urlparse is there to parse URLs, and URLs start with an URL
scheme such as http:.
There is no way for a generic URL parser to know that python.org:80/ is
supposed to be http://python.org:80/;.
--
nosy: +georg.brandl
resolution: -
Ramchandra Apte added the comment:
+1
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16933
___
___
Python-bugs-list
Brett Cannon added the comment:
This no longer seems to be a problem in Python 3.2, 3.3, or 3.4.
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11441
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10401
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10399
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11276
___
___
Python-bugs-list
Éric Araujo added the comment:
Thanks for the report. Did you find this by looking at the code or while using
distutils? In other words, if this is just a theoretical issue / code quality
problem, it won’t be changed. (distutils is not improved anymore.)
--
versions: +Python 3.4
Brett Cannon added the comment:
What is the status of this, Sandro? Are we still out of sync? If so and it's a
licensing issue I can get legal clarification for whatever we need.
--
status: open - pending
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16916
___
___
Python-bugs-list
Roger Serwy added the comment:
@Serhiy
IDLE places its default configuration files within the standard library. Any
upgrade of Python can modify the contents of the standard library. Even if we
do *nothing* to change Lib/idlelib/config-main.def, the next upgrade would
overwrite an end users
Andrew Svetlov added the comment:
I like the proposition in general, but files should be synchronized first.
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16893
___
Sandro Tosi added the comment:
The documentation reports this example:
urlparse('www.cwi.nl:80/%7Eguido/Python.html')
ParseResult(scheme='', netloc='', path='www.cwi.nl:80/%7Eguido/Python.html',
params='', query='', fragment='')
but when executing it returns:
$ ./python -V
Python
Georg Brandl added the comment:
Note that Sphinx' make text output already should be suitable. We already
update the pydoc topics with that on every release, so we could just as well do
the same for the IDLE doc. No need for another separate script.
--
nosy: +georg.brandl
Andrew Svetlov added the comment:
LoadError was IOError descendant, now OSError is directly specified.
If somebody want to change base class for LoadError he should to update the
code in several places in http/cookiejar.py.
The docstring for FileCookieJar.revert directly specifies possible
Georg Brandl added the comment:
Hmm, you're right. The behavior has been like this at least since Python 2.5:
Python 2.5.4 (r254:67916, Dec 16 2012, 20:33:12)
[GCC 4.6.3] on linux3
Type help, copyright, credits or license for more information.
from urlparse import urlparse
Roundup Robot added the comment:
New changeset a0077c1d201d by Georg Brandl in branch 'default':
Closes #16916: clarify slicing equivalent to extended unpacking example: the
latter always creates a list.
http://hg.python.org/peps/rev/a0077c1d201d
--
nosy: +python-dev
resolution: -
Georg Brandl added the comment:
Thanks for the report. This statement was actually false for almost all
sequence types, except for those whose slicing returns a list.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
Georg Brandl added the comment:
If I understand your issue correctly, you are expecting all three exception
handlers to be called in innermost-to-outermost order. However, exceptions are
not reraised automatically after except blocks; you can insert a bare raise
statement in the handler to
Chris Jerdonek added the comment:
+1. By the way, I included a couple fixes similar to these in a patch posted
to issue 16878.
--
nosy: +bethard, chris.jerdonek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16933
1 - 100 of 171 matches
Mail list logo