skreft skr...@gmail.com added the comment:
One possible refactor would be.
import operator
def logical_or(self, other, context=None):
return self._logical_op(other, operator.__or__, context)
def logical_xor(self, other, context=None):
return self._logical_op(other,
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file23622/issue13361_check.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13361
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8c719e106694 by Vinay Sajip in branch 'default':
Merged fix for #13361 from 3.2.
http://hg.python.org/cpython/rev/8c719e106694
--
nosy: +python-dev
___
Python tracker
Florent Xicluna florent.xicl...@gmail.com added the comment:
I've uploaded two proposals:
- first with isinstance(name, str)
- second which is more duck-friendly
Personally, I like ducks.
--
stage: needs patch - patch review
Added file:
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8726ad774cf0 by Vinay Sajip in branch '2.7':
Closes #13356. Thanks to Florent Xicluna for the patch.
http://hg.python.org/cpython/rev/8726ad774cf0
--
nosy: +python-dev
resolution: - fixed
stage: patch
Florent Xicluna florent.xicl...@gmail.com added the comment:
btw, changeset a3ba905447ba does not fix the case for:
import logging
log = logging.Logger(any)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13361
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
@Florent: Sorry, I didn't see your patch, for some reason. But I would say:
1. I agree that where I put the check (logging.getLogger) does not catch the
case where someone instantiates the logger directly (using
logging.Logger(any)), but
Petri Lehtinen pe...@digip.org added the comment:
The good thing about this is ease of debugging. You can see which is the
offending value that was not found.
On the other hand, the repr of a value might be very long:
[].index(list(range(1000)))
ValueError: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 60dd1568bbd1 by Vinay Sajip in branch '2.7':
Closes #13361: Raise correct exception type.
http://hg.python.org/cpython/rev/60dd1568bbd1
New changeset bc05c11b340e by Vinay Sajip in branch '3.2':
Closes #13361: Raise
Antoine Pitrou pit...@free.fr added the comment:
I think the best thing would be to let rmtree fail (provided it closes
all the FDs it opened)
Agreed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4489
Chandra Sekhar Reddy sanc...@ca.com added the comment:
Hi Amaury and Terry,
Thanks for your feedback, actually the product that we have delivered to
customer is now in support phase, so currently there is no development going
on, so we cannot use the latest python.
It would be of great help
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Unfortunately there is not much in the process call stack: the creation of a
list (PyList_New) needs to allocate some memory (not much: sizeof(PyListObject)
+ gc overhead, probably 32 bytes).
If the system malloc() function fails and
Changes by John Feuerstein j...@feurix.com:
--
nosy: +john.feuerstein
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12567
___
___
Python-bugs-list
Benjamin Peterson benja...@python.org added the comment:
2011/11/7 skreft rep...@bugs.python.org:
skreft skr...@gmail.com added the comment:
Hi all again:
in the original posting of this issue, I asked what would be the best way to
address this issue. Additionally I proposed to use
John Feuerstein j...@feurix.com added the comment:
textwrap_tabsize_v2.diff:
* Moved the tabsize parameter to the end of the parameter list
* Added documentation update
* Made the test case more obvious
--
Added file: http://bugs.python.org/file23624/textwrap_tabsize_v2.diff
New submission from John Feuerstein j...@feurix.com:
The documentation for str.expandtabs([tabsize]) is wrong:
Return a copy of the string where all tab characters are replaced by one or
more spaces, depending on the current column and the given tab size. [...]
This should read zero or more
Michael Brooks firealwayswo...@gmail.com added the comment:
This one should also have a priority change. Tested python 2.7.3
--MIke
On Sun, Nov 6, 2011 at 12:54 PM, Michael Brooks rep...@bugs.python.orgwrote:
Michael Brooks firealwayswo...@gmail.com added the comment:
Yes I am running
Eli Bendersky eli...@gmail.com added the comment:
While we're at it, wouldn't it be clearer to say ... where each tab character
is replaced by...?
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13365
Changes by Jesús Cea Avión j...@jcea.es:
Removed file: http://bugs.python.org/file23532/0b701eb5e9e3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6397
___
Changes by Jesús Cea Avión j...@jcea.es:
Added file: http://bugs.python.org/file23626/528fdd816160.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6397
___
Eli Bendersky eli...@gmail.com added the comment:
Other than that, the patch looks good.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13365
___
Jesús Cea Avión j...@jcea.es added the comment:
Please, review.
With current code, each devpoll object has capacity for managing 256 fds, by
default. This is about 2048 bytes. The cost seems reasonable, since a normal
program will have only a few devpoll objects around. I have considered an
Éric Araujo mer...@netwok.org added the comment:
I misreported: dict.update is actually okay, but collections.Counter.update (a
Python method) is a not an unbound method but a function (py3k-style).
--
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6397
___
___
Python-bugs-list mailing
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Re. Paul Moore's comment - IMO he's right about the problem, but changing only
packaging.manifest._translate_pattern doesn't do it. The equivalent fix has to
be made in distutils.filelist.translate_pattern. I've made the change in the
Éric Araujo mer...@netwok.org added the comment:
I think this change was wrong. Please see my rationale in
http://bugs.python.org/issue12119.
(BTW, I’d be surprised if byte compilation was the only compat issue with
distutils and IronPython. For a start, sys.version[:3] is used to get the
Darren Dale dsdal...@gmail.com added the comment:
I just double-checked that the unit tests do not raise any warnings with this
patch.
Can it be merged?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11610
Jon Bryan jrbr...@sandia.gov added the comment:
Thanks for the suggestions.
Since I can put the OEM-supplied DLL in another directory and everything works
just fine, I'm not going to spend any more time on it. I assume that it's
something to do with file permissions in Win7 that I don't have
Éric Araujo mer...@netwok.org added the comment:
[global variables]
one possible approach might be: Have those bindings be instance variables in
a Database class in
database.py, and have a module-level binding to an instance of it. Then,
tests can have their
own instance which is thrown
Changes by Jason R. Coombs jar...@jaraco.com:
--
hgrepos: +88
keywords: +needs review, patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13211
___
Changes by Jason R. Coombs jar...@jaraco.com:
Added file: http://bugs.python.org/file23627/fffeff7721c0.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13211
___
Jason R. Coombs jar...@jaraco.com added the comment:
I've created three changesets, addressing the issue in 2.7, 3.2, and 3.3,
including tests. Please review and comment. If there are no objections, I'll
push the changesets after 24 hours.
--
___
Changes by Éric Araujo mer...@netwok.org:
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11610
___
___
Python-bugs-list mailing list
Unsubscribe:
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
entirely deterministic: I couldn't see any other reason why the flag
would have different values
on different machines.
Sorry, what flag?
By flag I mean _cache_generated_egg (flag as in Boolean value)
Patches for upstream cpython
Éric Araujo mer...@netwok.org added the comment:
Éric, thanks for paying attention to this.
You’re welcome. I hope that my commits get reviewed too.
In this particular case, I checked the code and verified that the
variables were not used anywhere.
Yep, I can’t imagine third-party code
Éric Araujo mer...@netwok.org added the comment:
Another nice API: http://feldboris.alwaysdata.net/blog/unittest-template.html
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7897
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13341
___
___
Python-bugs-list mailing
Éric Araujo mer...@netwok.org added the comment:
The good thing about this is ease of debugging.
Exactly! +1 for the idea.
On the other hand, the repr of a value might be very long:
You can restrict the length with % formats.
Also, all values don't have a very informal repr:
Not your
Éric Araujo mer...@netwok.org added the comment:
There's also documentation and tests that depend on this actual error message:
Doc/library/doctest.rst: ValueError: list.remove(x): x not in list
Lib/test/test_xml_etree.py:ValueError: list.remove(x): x not in list
That’s a well-known
Éric Araujo mer...@netwok.org added the comment:
FWIW, quickly grepping through the raises of ValueErrors in the 2.6
stdlib doesn't bring up any other usage of repeat-with-fake-variable-x.
#13349 begs to differ :)
--
nosy: +eric.araujo
___
Python
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. If I may offer recommendations about submitting bugs:
- Know that stable branches don’t get code cleanups, only bug fixes, so you
have to target 3.3
- Focused bugs (“code duplication in packaging commands”) are much better
Éric Araujo mer...@netwok.org added the comment:
By flag I mean _cache_generated_egg (flag as in Boolean value)
Ah, I had forgotten this earlier message:
I get the opposite failure to Nadeem as far as
InstallDataTestCase.test_resources: it works on
Ubuntu 64-bit, but fails on 32-bit.
sbt shibt...@gmail.com added the comment:
Testing the patch a bit more thoroughly, I found that data received from the
readable end of the pipe can be corrupted by the C implementation. This seems
to be because two of the previously dormant codepaths did not properly maintain
the necessary
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
That it depends on the architecture currently baffles me.
The only explanation I can come up with is that on different machines, the
order of the tests might be slightly different. That would allow the flag to be
set differently on
Vitja Makarov vitja.maka...@gmail.com added the comment:
Perhaps it's better to calculate utc-offset for each timestamp cause we never
know what is correct timezone for given time.
That could be done in C:
localtime, utc_offset = time.localtime_ex(t)
Where localtime is the same as returned
R. David Murray rdmur...@bitdance.com added the comment:
Unless I misunderstand your concerns, this is a duplicate of issue 665194.
--
nosy: +r.david.murray
resolution: - duplicate
status: open - closed
superseder: - datetime-RFC2822 roundtripping
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset fcff91a7b397 by Florent Xicluna in branch 'default':
More assertions in test_unicode_file, to chase issue #13348.
http://hg.python.org/cpython/rev/fcff91a7b397
--
nosy: +python-dev
Vitja Makarov vitja.maka...@gmail.com added the comment:
I'm not quite sure. The problem is email.utils.formatdate doesn't respect TZ
info changes since it uses time.timezone (or time.altzone) for utc offset.
Btw it seems that issue 665194 should fix the problem.
--
New submission from Antoine Pitrou pit...@free.fr:
The 3.x Windows buildbots all fail in test_pep277.
==
FAIL: test_open (test.test_pep277.UnicodeFileTests)
Changes by Ross Lagerwall rosslagerw...@gmail.com:
--
nosy: +rosslagerwall
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6397
___
___
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Thanks Charles, I'll take your comments into account and take a look at making
a general walker method.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4489
Florent Xicluna florent.xicl...@gmail.com added the comment:
I'm guilty on this one :-)
--
assignee: - flox
components: +Windows -Interpreter Core
keywords: +buildbot
nosy: +flox
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
formatdate doesn't know anything about datetimes, so it doesn't make any sense
to me to say that it doesn't notice changes in tzinfo. That's why the fix for
issue 665194 introduces a new method for formatting datetimes.
--
Barry A. Warsaw ba...@python.org added the comment:
When I need defaults, I make them part of the mapping that gets passed into
.substitute() and .safe_substitute(). It doesn't feel to me like it's
necessary to attach them to the Template instance. Also, couldn't you just
subclass
Petri Lehtinen pe...@digip.org added the comment:
Perhaps the reason should include the status code, too? It makes HTTP errors
much more useful, as you'll immediately see what's going on from the status
code.
--
___
Python tracker
Eric Snow ericsnowcurren...@gmail.com added the comment:
FYI, the following changesets were also for this issue. They had the wrong
issue number (#13661, which doesn't actually exist so no big deal), which is
why they didn't show up in this issue automatically.
New changeset 5f3b7528b144 by
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 655d65bcc939 by Florent Xicluna in branch 'default':
Closes #13366: fix test_pep277 failure on Windows.
http://hg.python.org/cpython/rev/655d65bcc939
--
nosy: +python-dev
resolution: - fixed
stage: needs
Martin v. Löwis mar...@v.loewis.de added the comment:
Closing the report as invalid then.
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13345
Florent Xicluna florent.xicl...@gmail.com added the comment:
test fails on x86 Windows7 2.7 buildbot
(ok on 3.2 and 3.3)
test_unix_mbox (test.test_mailbox.MaildirTestCase) ...
D:\cygwin\home\db3l\buildarea\2.7.bolen-windows7\build\lib\sqlite3\test\dbapi.py:649:
DeprecationWarning: buffer()
Jason R. Coombs jar...@jaraco.com added the comment:
My initial instinct was to agree - the status code is useful. However, in
looking at the FTP code, it sometimes just sets other objects (socket.error for
example) as the 'reason'. The docs say 'reason' is a string or another
exception.
I'm
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 59dca1e2363d by Brian Curtin in branch 'default':
Fix #13327. utimensat now has the atime and mtime arguments set as optional,
http://hg.python.org/cpython/rev/59dca1e2363d
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 2cd6b417e488 by Florent Xicluna in branch 'default':
Some win32 platforms raise NotADirectoryError, others FileNotFoundError. Issue
#13366.
http://hg.python.org/cpython/rev/2cd6b417e488
--
Brian Curtin br...@python.org added the comment:
Changeset 045e8757f10d was also entered for this, which should conclude the
changes. Everything seems to have survived the buildbots for now, so closing as
fixed. Feel free to reopen if there are any other issues.
--
resolution: -
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5e18ff5476e8 by Brian Curtin in branch 'default':
News updates for #13327.
http://hg.python.org/cpython/rev/5e18ff5476e8
--
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
I am closing this because there is no issue for currently maintained CPython.
If you have further questions, try python-list or a question-answer forum such
as StackOverflow.
--
resolution: - out of date
status: open - closed
Florent Xicluna florent.xicl...@gmail.com added the comment:
Maybe it is related.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
Ambiguous timezone names (AEST vs EST)
--
___
Python tracker rep...@bugs.python.org
Michael Foord mich...@voidspace.org.uk added the comment:
On OS X Lion, with XCode 4.2 installed, I find the following works (no need to
install macports):
./configure CC=gcc-4.2 --prefix=/dev/null --with-pydebug
--
nosy: +michael.foord
___
Python
Florent Xicluna florent.xicl...@gmail.com added the comment:
LMT stands for Local Mean Time.
I found a report of someone having an issue parsing timezone with Python 2.6.
Looks quite similar.
Michael Foord mich...@voidspace.org.uk added the comment:
Ah, it seems I have XCode 3.2.6 installed alongside XCode 4.2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13241
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
unescape() already converts named, decimal and hexadecimal entities, so this
can be closed.
--
assignee: fdrake - ezio.melotti
nosy: +ezio.melotti
resolution: - out of date
stage: test needed - committed/rejected
status: open -
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9375
___
___
New submission from INADA Naoki songofaca...@gmail.com:
http://docs.python.org/c-api/capsule.html?highlight=capsule#PyCapsule_New
The pointer argument may not be NULL.
I think must not is correct.
--
assignee: docs@python
components: Documentation
messages: 147269
nosy: docs@python,
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +larry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13367
___
___
Python-bugs-list
Jesús Cea Avión j...@jcea.es added the comment:
Checking the testsuite source code, I see several issues:
The server thread only waits for 3 seconds for the connection. If a connection
is not created before 3 seconds, the server suicides and when the connection is
tried, it will fail. This
Jesús Cea Avión j...@jcea.es added the comment:
About the support.HOST, changing from localhost to 127.0.0.1 could be
problematic is servers without IPv4 support (servers IPv6 only). I guess this
is a theorical problem so far, and that when we find this issue the exception
would be pretty
New submission from Eli Bendersky eli...@gmail.com:
docs@ list report by Daniel Dieterle:
in the documentation
(http://docs.python.org/library/subprocess.html#subprocess.Popen.send_signal)
is a bug.
CTRL_C_EVENT can not be sent to processes started with a creationflags
parameter which
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13367
___
___
Python-bugs-list mailing list
Benjamin Peterson benja...@python.org added the comment:
In this context, may means allowed to. In other words, it is equivalent to
The pointer argument is not allowed to be NULL.
--
nosy: +benjamin.peterson
resolution: - works for me
status: open - closed
Florent Xicluna florent.xicl...@gmail.com added the comment:
This is a transient failure, other builds are successful.
Maybe the line time.sleep(2.01 + self._box._skewfactor) could be changed to
time.sleep(2.5 + self._box._skewfactor) in
test_mailbox.TestMaildir.test_reread.
Closing because
Lucas Sinclair blastoc...@mac.com added the comment:
Well the configure parameters suggested by Michael Foord worked. I was able to
build cpython on a mac. But I could not have guessed how to make it work.
Shouldn't these instructions be added here http://docs.python.org/devguide/ ?
Shouldn't
80 matches
Mail list logo