Brian Quinlan br...@sweetapp.com added the comment:
Arian,
This seems like such an unimportant edge case that I don't want to mess with
the API just to accommodate it.
If you really need to pass an fn keyword argument, use:
.submit(foo, 1, 2, **{'fn': bar})
--
resolution: - wont
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10924
___
___
Adrian Dries adr...@gmail.com added the comment:
What now?
Python 3.1.3 (r313:86834, Jan 17 2011, 22:33:40)
[GCC 4.4.1] on linux2
Type help, copyright, credits or license for more information.
def foo(f, **kw):
... pass
...
foo(1, **{'f': 2})
Traceback (most recent call last):
File
Brian Quinlan br...@sweetapp.com added the comment:
Good point! I'd suggest functools.partial.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10918
___
New submission from Mark Dickinson dicki...@gmail.com:
It would be helpful (perhaps to developers of alternative implementations) to
give a pure Python version of correctly-rounded long-to-float conversion.
Attached is such a version, as a patch to test_long in the release27-maint
branch.
Changes by Mark Dickinson dicki...@gmail.com:
--
components: +Tests
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10925
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615158
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9344
___
___
Changes by Brian Curtin cur...@acm.org:
--
type: crash - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10923
___
___
Python-bugs-list
Changes by Brian Curtin cur...@acm.org:
--
type: crash - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10921
___
___
Python-bugs-list
New submission from Mark Summerfield m...@qtrac.eu:
I'm reporting this at Georg Brandl's suggestion.
If you unpack the attached (tiny) tarball you get this directory structure:
Graphics/
Graphics/Xpm.py
Graphics/Vector/
Graphics/Vector/__init__.py
Graphics/Vector/Svg.py
Graphics/__init__.py
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10926
___
___
Python-bugs-list
Nick Coghlan ncogh...@gmail.com added the comment:
Graham - the cases you describe are the things I was saying don't currently
work in my post and wouldn't be helped by Antoine's patch. Your thoughts on how
we could possibly make it work actually parallel mine (although there may be
fun and
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: docs@python -
nosy: +belopolsky, r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10921
___
Changes by Antoine Pitrou pit...@free.fr:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10921
___
___
Python-bugs-list
Nick Coghlan ncogh...@gmail.com added the comment:
I like the idea of adding these tests as well.
Probably worth bringing up on python-dev - folks like Tarek should definitely
be able to help with alternative ways of building a test application for this.
There is also always the possibility
Antoine Pitrou pit...@free.fr added the comment:
Graham - the cases you describe are the things I was saying don't
currently work in my post and wouldn't be helped by Antoine's patch.
Your thoughts on how we could possibly make it work actually parallel
mine (although there may be fun and
Changes by Senthil Kumaran orsent...@gmail.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10926
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
There is also always the possibility of writing it in Python and using
ctypes to get at the necessary C API calls to create subinterpreters.
Well, I don't think calling Py_Initialize, Py_Finalize and Py_NewInterpreter
from pure Python code is
Nick Coghlan ncogh...@gmail.com added the comment:
Yeah, 7902 was a bug that tried to do an absolute import if an explicit
relative import failed to find anything (i.e. it had inherited the old implicit
relative import fallback, which was entirely inappropriate for the new use
case).
Since
New submission from Geoffrey Bache gjb1...@users.sourceforge.net:
It would be useful to compare the contents of two files while not caring what
platform they were produced on, perhaps a universal_line_endings parameter to
e.g. filecmp.cmp and possibly other methods.
At the moment opening the
Nick Coghlan ncogh...@gmail.com added the comment:
Good point - consider that comment revised to refer to the GIL acquisition
counter in the thread state struct. It may just be a matter of having
ThreadState_Swap complain loudly if the gilstate_counter isn't set to a value
it knows how to
Antoine Pitrou pit...@free.fr added the comment:
Please attach a simple script reproducing the perceived problem.
--
components: +Library (Lib) -None
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10923
arindam arindampa...@gmail.com added the comment:
Attached test file a.zip. Happening with 2.7.1.3. The changes came with
/python/branches/release27-maint/Lib/zipfile.py revision 83961
--
Added file: http://bugs.python.org/file20425/a.zip
___
Mark Summerfield m...@qtrac.eu added the comment:
I just installed 3.1.3 and it does indeed give the import error:
Python 3.1.3 (r313:86834, Jan 17 2011, 16:29:46)
[GCC 4.4.5] on linux2
Type help, copyright, credits or license for more information.
from Graphics.Vector import *
Traceback
R. David Murray rdmur...@bitdance.com added the comment:
Adrian's suggestions don't look to me like they fiddle with the API, but rather
make the behavior match the documented API. The existing behavior is, IMO, a
very surprising corner case, especially to a less experienced Python
New submission from Kirill Bystrov kirrb...@gmail.com:
I have written a simple script which evaluates some numeric expressions and
faced a strange problem at some point. Some of these expressions cannot
evaluate correctly. Here is an example:
Python 2.7.1+ (r271:86832, Dec 24 2010, 10:03:35)
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - relative import broken
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10926
R. David Murray rdmur...@bitdance.com added the comment:
08 is an invalid octal literal. See
http://docs.python.org/reference/lexical_analysis.html#integer-and-long-integer-literals
--
nosy: +r.david.murray
resolution: - invalid
stage: - committed/rejected
status: open - closed
Ron Adam ron_a...@users.sourceforge.net added the comment:
Why is this surprising?
def foo(c, c=None):
... pass
...
File stdin, line 1
SyntaxError: duplicate argument 'c' in function definition
In the previous examples, it finds the duplicate at run time instead of compile
time due to
Ross Lagerwall rosslagerw...@gmail.com added the comment:
I think this can be closed.
msync() is only called in mmap.flush() and it is checked for an error.
--
nosy: +rosslagerwall
___
Python tracker rep...@bugs.python.org
Kirill Bystrov kirrb...@gmail.com added the comment:
Sorry, i have really forgotten about these octals.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10928
___
R. David Murray rdmur...@bitdance.com added the comment:
The reason that it is surprising is that the API is designed to allow an
arbitrary function to be called, with whatever arguments and keyword arguments
that function takes. The user of the API is not necessarily going to remember
that
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
1. It crashes with KeyError. ...
I assume this means it raises a KeyError when given a bytes object as an
argument.
Internaldate2tuple(b'INTERNALDATE 01-Jan-2000 12:00:00 +')
Traceback (most recent call last):
Ron Adam ron_a...@users.sourceforge.net added the comment:
Is this issue referring to something in Python's library, or a hypothetical
function someone may write?
If it's in the library, we can look at that case in more detail, otherwise,
it's just a bad program design issue and there's
Antoine Pitrou pit...@free.fr added the comment:
Attached test file a.zip. Happening with 2.7.1.3. The changes came
with /python/branches/release27-maint/Lib/zipfile.py revision 83961
I tested with 2.7.x and 3.2 (both from latest SVN) and couldn't reproduce (I
used testzip() and
Joe Peterson j...@skyrush.com added the comment:
I assume this means it raises a KeyError when given a bytes object as an
argument.
Yes, a KeyError is raised when arg is bytes, but passing a string also fails
(raising TypeError). The latter might also be a separate bug, in that strings
R. David Murray rdmur...@bitdance.com added the comment:
Yes, it's about the concurrent.futures 'submit' method:
http://docs.python.org/dev/py3k/library/concurrent.futures.html#executor-objects
I've updated the title to reflect this. There are other places in the stdlib
affected by this, but
Antoine Pitrou pit...@free.fr added the comment:
You forgot to add the new files to your patch.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10924
___
R. David Murray rdmur...@bitdance.com added the comment:
Duplicate of issue 6306.
--
nosy: +r.david.murray
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - filecmp.cmp can not compare two files from different OS with
the same content
Sean Reifschneider j...@tummy.com added the comment:
Oops, thanks. It's in there now, though for some reason I can't get this patch
to apply to trunk, but I'll have to look at that later this afternoon. I
wanted to get this new version up in the interim since it definitely does
include the
Changes by Sean Reifschneider j...@tummy.com:
Removed file: http://bugs.python.org/file20422/python-underscore_crypt.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10924
___
Adrian Dries adr...@gmail.com added the comment:
The futures case is one example of a broader API design issue.
Note also that 'self' is similarly restricted. You might think these are
'corner cases', but to me it is poor API design. There may well be a
reasonable case for passing 'self' as
arindam arindampa...@gmail.com added the comment:
Able to get the issue with
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on
win32
This is the latest version for 2.7.x
Please try with the uploaded a.zip
--
___
Antoine Pitrou pit...@free.fr added the comment:
Able to get the issue with
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)]
on win32
Ok, I tried with this exact version and I still can't reproduce.
Can you explain which steps exactly are necessary to exhibit
R. David Murray rdmur...@bitdance.com added the comment:
Name mangling applies only to attributes of classes, and so does not enter in
to this issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10918
Georg Brandl ge...@python.org added the comment:
def submit(*args, **kwds):
and picking out self and fn from *args might indeed be the most sensible
solution here.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
Adrian Dries adr...@gmail.com added the comment:
No, private mangling applies to any identifier in class-scope:
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type help, copyright, credits or license for more information.
class C:
... def f(__x): pass
...
import
arindam arindampa...@gmail.com added the comment:
Legacy code in my module was setting zipfile.structCentralDir to
4s4B4H3l5H2L (was added to fix some issues with older version of python) was
the root cause of this issue. Sorry, should have checked before filing. Thanks
for your time. Sorry
Brian Curtin cur...@acm.org added the comment:
That was changed in r84950 from #2643.
--
resolution: - out of date
stage: unit test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
Adrian: you are correct of course, I was misremembering and did not check the
docs. I prefer the other solution, though.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
The age of core developers may surprise you.
For the anecdote, I used to game and use Internet slang, and to me w00t == wut
== what; I’ve never seen it used to mean “great”.
--
assignee: docs@python - georg.brandl
components:
New submission from Joe Bennett jammer10...@ka3nam.com:
Hi, am running Python 2.6.5 on Unbuntu 10.04 and am seeing no FIN when a
self.close() is issued... I do see a reset issued, but it looks like some of
the M$ servers do not appreciate on a reset and would like a graceful
teardown... I
Sean Reifschneider j...@tummy.com added the comment:
I've made a new .patch file using diff -c rather than svn diff. This is
the same code, but applies without manual intervention.
--
Added file: http://bugs.python.org/file20428/python-underscore_crypt-3.patch
Changes by Sean Reifschneider j...@tummy.com:
Removed file: http://bugs.python.org/file20427/python-underscore_crypt-2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10924
___
Piotr Maślanka piotr.masla...@henrietta.com.pl added the comment:
I ripped some stuff from the project I'm working on, undependencing it on any
my libraries.
Can someone with similar conf(Win7 x86-64, Python 2.7.1 (r271:86832, Nov 27
2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32)
Andre Wobst wob...@users.sourceforge.net added the comment:
I just declare this bug to be a duplicate of #4953. Due to the recent fix
r87998 of the cgi module my extended/corrected testcases attached in this bug
report now pass.
--
resolution: - duplicate
status: open - closed
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also #8846: Andre Wobst wrote other tests.
--
nosy: +wobsta
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10911
___
R. David Murray rdmur...@bitdance.com added the comment:
telnetlib closes the socket, which in turn calls the OS level socket close
function. What happens after that is up to the OS tcp/ip stack, and is not
under Python's control. So if there is a bug here it isn't in Python.
--
Nicolas Dumazet nicd...@gmail.com added the comment:
Hello,
1) Can you please avoid putting several statements in the same line?
2) wouldnt it be better to compute only once the contents of methods()? I'm not
sure that module-initialization time is okay for CPython, but at the very least
you
Garrett Cooper yaneg...@gmail.com added the comment:
Sorry -- got off-track for a while.
I assume these should go into Lib/test/test_os.py ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8746
Joe Peterson j...@skyrush.com added the comment:
Added fix for ParseFlags (another string/bytes issue) and now accept strings as
args to ParseFlags and Internaldate2tuple.
Also added unit tests for changes.
--
assignee: - docs@python
components: +Tests
title: imaplib:
Ned Deily n...@acm.org added the comment:
There is an existing test_lchflags in Lib/test/test_posix.py. Additional test
cases should go there.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8746
Changes by Joe Peterson j...@skyrush.com:
Removed file: http://bugs.python.org/file20420/imaplib_Internaldate2tuple.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10921
___
Changes by Joe Peterson j...@skyrush.com:
Removed file:
http://bugs.python.org/file20430/imaplib_Internaldate2tuple_python32.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10921
___
Changes by Joe Peterson j...@skyrush.com:
Added file:
http://bugs.python.org/file20431/imaplib_Internaldate2tuple_python32.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10921
___
Garrett Cooper yaneg...@gmail.com added the comment:
On Mon, Jan 17, 2011 at 5:11 PM, Ned Deily rep...@bugs.python.org wrote:
Ned Deily n...@acm.org added the comment:
There is an existing test_lchflags in Lib/test/test_posix.py. Additional
test cases should go there.
Ok, but again this
Changes by Joe Peterson j...@skyrush.com:
Removed file:
http://bugs.python.org/file20426/imaplib_Internaldate2tuple_python27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10921
___
Changes by Joe Peterson j...@skyrush.com:
Added file:
http://bugs.python.org/file20432/imaplib_Internaldate2tuple_python27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10921
___
Tim Alexander dragonfyr...@gmail.com added the comment:
Wanted to quickly comment here, as I'm dealing with this issue as well, that I
did find a workaround for avoiding it as far back as 2.6 (and it's not don't
pass a Pipe through a Pipe)
multiprocessing.reduction can already do this, though
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
There are at least 3 issues here: a documentation issue, a py3k bug and at
least one feature request. Given that the logistics are different for
different kinds of issues, I think it would be best to split them on the
Ron Adam ron_a...@users.sourceforge.net added the comment:
Here is the whole method for reference...
def submit(self, fn, *args, **kwargs):
with self._shutdown_lock:
if self._shutdown_thread:
raise RuntimeError('cannot schedule new futures after
Ron Adam ron_a...@users.sourceforge.net added the comment:
Change...
are never unpacked within submit.
to...
Are completely separate.
It's the attempt to mix two function signatures together as one, that was/is
the problem.
--
___
Joe Peterson j...@skyrush.com added the comment:
There are at least 3 issues here: a documentation issue, a py3k bug and at
least one feature request.
Which is a feature request? In these patches, I am attempting to fix the DST
problems and regain the previous behavior in Python 2. Are you
Ned Deily n...@acm.org added the comment:
Backported to 2.7 in r88090 (to appear in 2.7.2).
(I decided to not backport to 3.1 as some prereq backports would be needed and
we do not supply a 64-bit OS X installer for 3.1.x anyway.)
--
assignee: ronaldoussoren - ned.deily
resolution: -
Sean Reifschneider j...@tummy.com added the comment:
Thanks for the review. Attached is a new version of the patch.
1) Done.
2) Good point, I didn't think of that. I've changed it into a class that
stores the methods list, and made the module methods point to that method on
an instance of
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Attached is a fix to make offset use off_t. This means that mmap will work with
offset 2GB on 32bit systems.
It also fixes that mmap.size() returns the correct value for files 2GB on
32bit systems.
The first issue of msg78055 was
Georg Brandl ge...@python.org added the comment:
The current submit definition doesn't allow that, and pulling out self, and
fn, would not be correct either.
It would if they are pulled from *args. The only difference to now is that you
cannot give the self and fn args as keyword args
78 matches
Mail list logo