Changes by Georg Brandl ge...@python.org:
--
priority: normal - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14330
___
___
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15436
___
___
Python-bugs-list
Eli Bendersky eli...@gmail.com added the comment:
I think it can go into 3.3 but only if it gets reviewed by another core dev
(we're in release candidate stage now). Senthil - can you review the patch
together with me?
As for customizing the stream, yes, go ahead and open a new issue for it,
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15360
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15451
___
___
Python-bugs-list
New submission from Mike Castle dalg...@gmail.com:
On debian/testing with python 2.7.3rc2 and gcc 4.7.1.
I was trying to use ctypeslib to wrap libdvdnav and running into some issues
porting my test C code to Python, eventually tracking it down to this
difference between how ctypes and gcc
Mike Castle dalg...@gmail.com added the comment:
And the C version
--
Added file: http://bugs.python.org/file26522/t.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15453
___
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +mark.dickinson, meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15453
___
___
New submission from Chris Jerdonek chris.jerdo...@gmail.com:
Currently, filecmp.dircmp's report(), report_partial_closure(), and
report_full_closure() methods all only allow printing to stdout.
This issue is to provide some way for the caller to control the stream to which
these methods print
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Sounds good. And for the record, new issue created here: issue 15454
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15269
___
Nick Coghlan ncogh...@gmail.com added the comment:
This is a tricky one. Long term, the right approach is to migrate all the
scripts that run other scripts over to runpy, but the runpy API needs work
before we can do that (see #9325).
For bug fix purposes though, these modules can borrow some
New submission from Chris Jerdonek chris.jerdo...@gmail.com:
I haven't tracked down the reason for this, but certain index entries seem to
be getting skipped in the Glossary. If you view source on the Glossary page
and search for index-:
http://docs.python.org/dev/glossary.html
You will
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
It's not actually the PEP 391 implementation - dictConfig() - that uses eval().
Rather, it's the older fileConfig() API which was part of the original logging
package when added to Python 2.3. The use of eval() by fileConfig() was
New submission from Serhiy Storchaka storch...@gmail.com:
Here is a patch that implements __sizeof__ for code objects (PyCodeObject)
counting co_cell2arg array.
--
components: Interpreter Core
files: code_sizeof.patch
keywords: patch
messages: 166469
nosy: storchaka
priority: normal
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +eric.araujo, ezio.melotti, georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15455
___
Serhiy Storchaka storch...@gmail.com added the comment:
See also issue12399.
--
nosy: +benjamin.peterson, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15456
___
STINNER Victor victor.stin...@gmail.com added the comment:
+@unittest.skipIf(sys.platform == 'win32',
+Win32 can fail cwd() with invalid utf8 name)
def test_nonascii_abspath(self):
You should not always skip the test on Windows: the filename is decodable in
code pages other
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
This is a very simple patch.
--
keywords: +patch
Added file: http://bugs.python.org/file26525/issue-15355-1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15355
Richard Oudkerk shibt...@gmail.com added the comment:
I think env is used for specifying the environment used by the child process
once it has started. env['PATH'] is not used by the parent process to find
program to run.
Having said that, maybe if you used shell=True as well then the shell
New submission from Chris Jerdonek chris.jerdo...@gmail.com:
The documentation on generators (outside of PEP 255) does not currently educate
the reader on the more specific generator function and generator iterator
terminology, or at least not in any consistent or systematic way.
For
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15355
___
___
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Attaching patch.
--
keywords: +patch
Added file: http://bugs.python.org/file26526/issue-15457-1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15457
andrea bergamini andrea.bergamini...@gmail.com added the comment:
Ok guys, ticket closed, but I'm still confused: I'm not a Python expert, I've
understood that math is a sort of wrapper of C math.h or something like this,
but:
- I can't find any reason in using math.pow if I can get errors
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15457
___
___
Python-bugs-list
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15355
___
___
Python-bugs-list
Richard Oudkerk shibt...@gmail.com added the comment:
I see that the originally proposed patch is more or less what I suggested
above. Since this has been a critical issue for 5 years, I think such a
minimal patch should be committed even though it is not a complete solution.
It seems to me
Serhiy Storchaka storch...@gmail.com added the comment:
- I can't find any reason in using math.pow if I can get errors like the one
explained.
The reason is your intention to get the error.
pow(-1, 0.5)
(6.123031769111886e-17+1j)
math.pow(-1, 0.5)
Traceback (most recent call last):
Mark Dickinson dicki...@gmail.com added the comment:
- I can't find any reason in using math.pow if I can get errors like the one
explained.
Yep---don't use math.pow if you want *exact* integer results. If you're doing
numerical calculations and errors of around 1 part in 1 thousand million
Richard Oudkerk shibt...@gmail.com added the comment:
You could just do
Server_1=TestServer(address=(127.0.0.1,5),authkey=bpasskey)
so this is probably a documentation issue. The examples in the documentation
should at least be updated.
--
Richard Oudkerk shibt...@gmail.com added the comment:
Any objection if I commit the last patch before the next beta? This is the one
which on installed Pythons have
get_config_var('srcdir') == os.path.dirname(get_makefile_filename())
on posix systems.
--
Atsuo Ishimoto ishim...@gembook.org added the comment:
chcp does only change the OEM code page, whereas Python uses the ANSI code
page for sys.getfilesystemencoding().
Sorry, I should have investigated the code more carefully.
Attached patch win32_bytes_filename.patch tries to solve both
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset aa296d685e02 by Andrew Svetlov in branch '3.2':
Issue #15041: update see also list in tkinter documentation.
http://hg.python.org/cpython/rev/aa296d685e02
New changeset e2ab56295b56 by Andrew Svetlov in branch
Changes by Atsuo Ishimoto ishim...@gembook.org:
--
nosy: +ishimoto
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10296
___
___
Python-bugs-list
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Initial evaluation indicates that ast.literal_eval doesn't cut the mustard: it
doesn't do any name lookups, so you can't for example successfully evaluate
something like 'handlers.WatchedFileHandler' or even 'FileHandler'.
However, a
Martin v. Löwis mar...@v.loewis.de added the comment:
What if use totalsize = object.__sizeof__(struct_obj) ?
That would defeat the purpose of the test. We want to test whether __sizeof__
is correct, so we shouldn't use __sizeof__ in the test to compute the expected
result. I understand that
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10296
___
___
Python-bugs-list
Atsuo Ishimoto ishim...@gembook.org added the comment:
On Windows, 'target_is_directory' is required for directory symlink.
python -c import os; os.mkdir('bar'); os.symlink('bar', 'foo',
target_is_directory=True); print(os.path.isdir('foo'))
True
Should we automatically specify
Antoine Pitrou pit...@free.fr added the comment:
Should we automatically specify target_is_directory if target exists and the
target is a directory?
No, see issue14917 and issue13772.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Atsuo Ishimoto ishim...@gembook.org added the comment:
ah, thank you for pointer! I should have googled before I wrote.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15093
___
Atsuo Ishimoto ishim...@gembook.org added the comment:
Jason: You can re-activate test you disabled if you use target_is_directory.
Please take a look at a issue15093.patch.
--
keywords: +patch
Added file: http://bugs.python.org/file26527/issue15093.patch
Atsuo Ishimoto ishim...@gembook.org added the comment:
I think we can close this ticket as won't fix.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15093
___
Changes by Ross Lagerwall rosslagerw...@gmail.com:
--
resolution: - duplicate
status: open - closed
superseder: - thread-safety issue in regrtest.main()
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7996
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11602
___
___
Python-bugs-list mailing
New submission from Barry A. Warsaw ba...@python.org:
To assist with vendor builds, Matthias has requested added a --configdir option
to the python3-config script. This would return
sysconfig.get_config_var('LIBPL'). The value is embedded in the output for
--ldflags, but not in a convenient
Antoine Pitrou pit...@free.fr added the comment:
I think assigning to __dict__ is an implementation detail; we shouldn't
document it before it is clearly agreed what it should do (which probably
deserves asking on python-dev).
--
nosy: +pitrou
___
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15454
___
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
C comparison rules are different from Python's.
In the program below (which outputs 1), the mixed comparison will first convert
the literal to a double, and lost some precision.
Python does the opposite: the (imprecise) float is
Christian Rickert m...@crickert.de added the comment:
Noticed this odd behaviour with BooleanVar.get() as well:
class MyCheckbutton(Checkbutton):
def __init__(self, parent, **options):
Checkbutton.__init__(self, parent, **options)
self.var = BooleanVar()
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Having reflected on this further, ISTM that limiting the scope of evaluation is
not the correct answer. For example, a malicious user could still send a bogus
configuration which, for example, just turns the verbosity of all loggers off,
New submission from Thomas Heller thel...@ctypes.org:
When a ctypes Structure uses a subclass of c_int, c_short, c_byte in the
_fields_ list to define bitfields, the results are wrong.
The attached script showbug.py demonstrates this behaviour.
--
components: ctypes
files: showbug.py
Thomas Heller thel...@ctypes.org added the comment:
The attached patch for branch default fixes this issue. It also contains a
unittest.
--
Added file: http://bugs.python.org/file26530/bitfields.patch
___
Python tracker rep...@bugs.python.org
New submission from Charlie Clark charlie.cl...@clark-consulting.eu:
It says in the docs:
This read-only attribute provides the column names of the last query. To
remain compatible with the Python DB API, it returns a 7-tuple for each column
where the last six items of each tuple are None.
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
It occurs to me that the filecmp/dircmp tests in Lib/test/test_filecmp.py would
also benefit from code like this (i.e. being able to create a nested directory
of files in one or two lines). And perhaps elsewhere in the tests.
This is
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15459
___
Jason R. Coombs jar...@jaraco.com added the comment:
I apologize I missed this issue when it arose, so my comments come late.
The reason for inferring the directory status of the targets was so that use of
os.symlink(link, target) would behave much the same on Unix as on Windows for
the most
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5bf7afd944a2 by Jason R. Coombs in branch 'default':
Restored test by specifying that the symlink links to a target (currently
required for Windows symlinks). See issue15093 for details.
Jason R. Coombs jar...@jaraco.com added the comment:
Thanks ishimoto for getting to the bottom of this. Thanks pitrou for the links
to the symlink implementation changes.
Yes, this issue as reported was invalid.
--
resolution: - invalid
status: open - closed
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15041
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Adding a patch with a failing test for the issue.
--
keywords: +patch
stage: - needs patch
Added file: http://bugs.python.org/file26531/issue-15450-failing-test.patch
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
Ah yes; a comparison like that could indeed give the impression that C/C++ was
computing things exactly. :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15438
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Attaching full patch (though Misc/NEWS would need to be moved a new section is
created for pre-alpha).
--
Added file: http://bugs.python.org/file26532/issue-15450-1.patch
___
Python tracker
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15450
___
Ned Deily n...@acm.org added the comment:
LGTM
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15364
___
___
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Actually, this should also be documented.
--
stage: patch review - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15450
Serhiy Storchaka storch...@gmail.com added the comment:
That would defeat the purpose of the test. We want to test whether
__sizeof__ is correct, so we shouldn't use __sizeof__ in the test to
compute the expected result. I understand that object.__sizeof__ is
actually a different
Martin v. Löwis mar...@v.loewis.de added the comment:
I still would prefer if only one issue at a time gets fixed, in particular if
the two issues require independent changes. This issue is about
test_nonascii_abspath failing on the Japanese edition of Windows (see the first
sentence of the
Georg Brandl ge...@python.org added the comment:
I guess we can do this, looks fine to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15458
___
Martin v. Löwis mar...@v.loewis.de added the comment:
I do not think that the purpose of testing is a testing of object.__sizeof__.
Memory consumption consists of two parts -- memory for C structure (and the
base object implementation works for this)
Note that object.__sizeof__ does
Martin v. Löwis mar...@v.loewis.de added the comment:
Interestingly, the original patch did change the sizeof test, but incorrectly
(adding the extra pointer to the struct spec, but failing to recognize that
there is additional memory allocated).
This tells me
a) we *absolutely* need to
Martin v. Löwis mar...@v.loewis.de added the comment:
See issue15456 for a follow-up issue.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12399
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5093cfdff2a9 by Martin v. Löwis in branch 'default':
Issue #15456: Fix code __sizeof__ after #12399 change.
http://hg.python.org/cpython/rev/5093cfdff2a9
--
nosy: +python-dev
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5093cfdff2a9 by Martin v. Löwis in branch 'default':
Issue #15456: Fix code __sizeof__ after #12399 change.
http://hg.python.org/cpython/rev/5093cfdff2a9
--
___
Python
Martin v. Löwis mar...@v.loewis.de added the comment:
Thanks for the patch!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15456
___
Serhiy Storchaka storch...@gmail.com added the comment:
Note that object.__sizeof__ does something slightly different, though:
it uses basicsize (which may or may not contain the sizeof() invocation
of the correct C structure), and it considers tp_itemsize (which may or
may not have a
Martin v. Löwis mar...@v.loewis.de added the comment:
All such cases are bugs (memory manager works with tp_basicsize and
tp_itemsize, not with __sizeof__ result) and tests do not test it. In
paranoidal mode we should tests both __sizeof__ and object.__sizeof__. For
all
classes, even
New submission from coder.maliubiao maliub...@gmail.com:
the code:
import os,stat
mode=os.stat(a broken link file).st_mode
then i got :OSError: [Errno 2] No such file or directory.
why not just treat a broken link as something existing and don't report any
error.
--
components:
New submission from Aimon Bustardo abusta...@morphlabs.com:
Ubuntu 12.0.4 LTS 64bit
python2.7-minimal 2.7.3-0ubuntu3
rsyslog 5.8.6-1ubuntu8
Python converts all syslog messages to UTF8 before sending to syslog. It also
prepends the Byte Order Mark (BOM) of the Unicode Standard. This prepended
Éric Araujo mer...@netwok.org added the comment:
FYI, there is no need to add a Misc/NEWS entry for such small doc changes (and
especially not in the Library section :) The Documentation section of
Misc/NEWS is used for important changes to the doc or the toolchain, not the
everyday changes
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge
stage: - patch review
versions: +Python 3.2 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15459
Changes by Brett Cannon br...@python.org:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15151
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Does get_config_var('srcdir') always return a string or sometimes None?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15364
___
Brett Cannon br...@python.org added the comment:
While I would be happy to see this issue finally closed, but it's up to Georg
if this goes into 3.3 or not as one could argue it's a feature or a
bugfix/oversight.
As for the actual fix, classic classes shouldn't hold back a good solution
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ddf15cd9be4a by Barry Warsaw in branch 'default':
- Issue #15458: python-config gets a new option --configdir to print the
http://hg.python.org/cpython/rev/ddf15cd9be4a
--
nosy: +python-dev
Changes by Barry A. Warsaw ba...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15458
___
Richard Oudkerk shibt...@gmail.com added the comment:
Does get_config_var('srcdir') always return a string or sometimes None?
Always a string.
distutils.support._get_xxmodule_path() is one place which (currently) would
throw an exception if it returned None.
--
Richard Oudkerk shibt...@gmail.com added the comment:
I realize now that the idea of using object.__reduce__(..., 2) would not really
work since many exception classes use non-slot descriptors (unless '__slots__'
attributes were also added as hints of what to serialize).
I think there are two
Antoine Pitrou pit...@free.fr added the comment:
I think there are two options simple enough to sneak in to 3.3:
(1) The trivial patch of initially setting self-args in __new__().
(2) Georg's idea of additionally setting a __newargs__ attribute in
__new__() and using it in __reduce__().
Changes by Ned Deily n...@acm.org:
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11602
___
___
Python-bugs-list mailing list
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
For discussion purposes, I'd like to mention an alternate approach. (I haven't
yet formed an opinion on what approach is preferable.)
Python's built-in print() function accepts more than just a 'file' keyword
argument:
Antoine Pitrou pit...@free.fr added the comment:
Le jeudi 26 juillet 2012 à 19:12 +, Jason R. Coombs a écrit :
Without the directory feature, many uses of os.symlink are not
portable and will fail (with ugly results) on Windows.
The target_is_directory argument is supposed to be supported
Stefan Mihaila mstefa...@gmail.com added the comment:
I have attached a fix to this issue (and implicitly issue1062277).
This patch allows pickling self-referential sets by implementing a
set.__reduce__ which uses states as opposed to ctor parameters.
Before:
s=set([1,2,3])
s.__reduce__()
Changes by mike bayer mike...@zzzcomputing.com:
--
nosy: +zzzeek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1062277
___
___
Python-bugs-list
New submission from Ned Deily n...@acm.org:
==
FAIL: test_dump_traceback_threads (test.test_faulthandler.FaultHandlerTests)
--
Traceback (most recent call
New submission from Thiébaud Weksteen thieb...@weksteen.fr:
I wrote a patch for Python 3 to expose the function
SSL_CTX_set_msg_callback in the module ssl.
Here is a description of this function:
SSL_CTX_set_msg_callback() or SSL_set_msg_callback() can be used
to define a message callback
R. David Murray rdmur...@bitdance.com added the comment:
Because we are doing what the linux stat call (and command) does . See man
stat.
--
nosy: +r.david.murray
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python
R. David Murray rdmur...@bitdance.com added the comment:
I believe this is a duplicate of issue 14452.
--
components: -IO, Library (Lib)
nosy: +r.david.murray, vinay.sajip
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - SysLogHandler sends
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
This might be obvious to some people, but for background purposes, this seems
to be where the file name gets truncated (in the dump_frame() function):
write(fd, \, 1);
dump_ascii(fd, code-co_filename);
write(fd, \, 1);
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15464
___
___
Python-bugs-list
Ned Deily n...@acm.org added the comment:
Without investigating further, my instinct would be to prefer to truncate in
the middle, if possible, otherwise truncate the head of the path, rather than
truncate the tail.
--
___
Python tracker
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
In your test, is there a reason you don't need to verify that your callback is
actually called?
+def cb(packet):
+ self.assertGreater(len(packet), 0)
+ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
+
1 - 100 of 105 matches
Mail list logo