Roundup Robot added the comment:
New changeset fae92309c3be by Ethan Furman in branch 'default':
Closes issue 17947. Adds PEP-0435 (Enum, IntEnum) to the stdlib.
http://hg.python.org/cpython/rev/fae92309c3be
--
resolution: - fixed
stage: patch review - committed/rejected
status: open
Nick Coghlan added the comment:
That commit looks just a touch incomplete...
--
resolution: fixed -
stage: committed/rejected - commit review
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17947
Marc-Andre Lemburg added the comment:
On 14.06.2013 03:43, Alexander Belopolsky wrote:
Alexander Belopolsky added the comment:
PEP 393 implementation has already added the fast path to decimal encoding:
http://hg.python.org/cpython/diff/8beaa9a37387/Objects/unicodeobject.c#l1.3735
Berker Peksag added the comment:
Duplicate of issue 12853.
--
nosy: +berker.peksag
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - global name 'r' is not defined in upload.py
type: - behavior
___
Python
Aditya Atluri added the comment:
I have found a hack for the issue.
First, install Microsoft Visual C++ 2010 Redistributable Package.
Second, copy the msvcr100.dll to C:\Python33\libs.
Reason: During compilation, the directory for linking is C:\Python44\libs. Both
-lpython and -lmsvcr100 are
Berker Peksag added the comment:
Thanks for the report and patch. This is duplicate of issue 12853.
--
nosy: +berker.peksag
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - global name 'r' is not defined in upload.py
type: - behavior
New submission from Phil Connell:
The following two expressions should have the same value:
Python 3.4.0a0 (default:fae92309c3be, Jun 14 2013, 09:29:54)
[GCC 4.8.0] on linux
Type help, copyright, credits or license for more information.
1 in [2] == False
False
(1 in [2]) == False
True
It
New submission from Vincent Michel:
The Bytearray type is a mutable object that support the read-write buffer
interface. The fcntl.ioctl() function is supposed to handle mutable object
(such as array.array) for the system calls in order to pass object that are
more than 1024 bytes long.
The
Kristján Valur Jónsson added the comment:
Keeping the GIL requirement is _very_ useful for PyMem_MALLOC et al. It allows
applications to hook in their own monitoring code, accessible from python
itself, without having to worry about conflicts with python.
even if it were not for the GIL
Amaury Forgeot d'Arc added the comment:
This is one case of chained comparisons:
http://docs.python.org/3/reference/expressions.html#not-in
x = y = z is equivalent to (x = y) and (y = z)
x in y == z is equivalent to (x in y) and (y == z)
There is a jump if the 'in' expression is false, because
New submission from Aditya Atluri:
I am trying to build c extensions in windows using mingw32. The file hello.c
works fine with 2.7 but, errors are poping up in 3.3.
Attachments:
[1] log.txt : The errors
[2] hello.c : The C file
[3] setup.py: The setup file
The command I used in cmd is, python
Amaury Forgeot d'Arc added the comment:
Python3 has a new API to create modules: PyModule_Create() and PyModuleDef.
See also:
http://docs.python.org/3/howto/cporting.html?highlight=pymodule_create#module-initialization-and-state
--
nosy: +amaury.forgeotdarc
resolution: - invalid
Amaury Forgeot d'Arc added the comment:
Aditya, python3 changed the API to create modules. See issue18210.
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15315
Ronald Oussoren added the comment:
From reading the source of Python/marshal.c it seems that the read function's
raise an exception on I/O errors, but don't return a specific value (that is,
sentence starting with It appears that is wrong).
PyMarshal_ReadLongFromFile calls r_long, this calls
Ronald Oussoren added the comment:
I'd prefer to have new variants of the PyErr_SetFromErrno* functions where the
errno value is explicitly passed in instead of adding a side-channel for
passing in the value.
--
nosy: +ronaldoussoren
___
Python
Antoine Pitrou added the comment:
Agreed with Ronald.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15883
___
___
Python-bugs-list mailing list
New submission from Ronald Oussoren:
Changeset a3559c8c614b added -Werror=statement-after-declaration to the CFLAGS
for compiler that support it.
This new flags is fine for CPython itself (which is explicitly writting in C89
style to support older compilers and Microsoft Visual Studio), but
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18211
___
___
Antoine Pitrou added the comment:
Well, the problem, as you point out, is that \\?\ only works with absolute
paths, but the stdlib currently works with both absolute and relative paths.
The only reasonable solution right now is to prepend the \\?\ prefix yourself
(after having resolved the
Antoine Pitrou added the comment:
I don't have my Windows VM anymore, so unfortunately I won't be able to tell
you whether there is still a build problem :)
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
Christian Heimes added the comment:
Is there anything left to do or can I close this bug?
--
nosy: +christian.heimes
stage: - committed/rejected
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14813
Jeroen Demeyer added the comment:
The problem on the machine that I mentioned was a regression from 2.7.4 to
2.7.5, probably due to #17086. Whether you consider a patch a bugfix or new
feature is quite subjective, right? If #17086 is a bugfix, then this can also
be a bugfix.
--
Jeroen Demeyer added the comment:
This is causing breakage, see #17990 and #18000.
--
nosy: +jdemeyer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17086
___
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15464
___
___
New submission from Ram Rachum:
I have a `Future` and I want to check whether it's in finished state. It seems
like I don't have a method to do that, right? (I could emulate the existing
methods for checking Future state, but that would mean fiddling with private
variables.)
Why not just
Stefan Krah added the comment:
Building the external packages isn't fixed yet, but I don't know if it's
worth the trouble.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14813
___
Roundup Robot added the comment:
New changeset ee3952965934 by Christian Heimes in branch '3.3':
Issue #15172: Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 on
Windows
http://hg.python.org/cpython/rev/ee3952965934
New changeset 1b2cbdc9c1d4 by Christian Heimes in branch
Christian Heimes added the comment:
I got bitten by the bug, too. NASM 2.10 or newer as requirement is now
documented in PCbuild/readme.txt.
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15172
Christian Heimes added the comment:
It's out of scope for 3.3 but I'd love to see the feature in 3.4.
--
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9216
___
New submission from Phil Muldoon:
(gdb) py-bt
#2 Frame 0xef8180, for file string, line 1, in module ()
Python Exception type 'exceptions.IOError' (2, 'No such file or directory',
'string'):
Error occurred in Python command: (2, 'No such file or directory', 'string')
This is the actual raw
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:
--
nosy: +jkloth
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18211
___
___
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11943
___
___
Delhallt added the comment:
not a python problem, see closed aix issue
http://www-01.ibm.com/support/docview.wss?uid=isg1IZ57712
--
nosy: +delhallt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11192
Changes by Tom Tromey tro...@redhat.com:
--
nosy: +tromey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18213
___
___
Python-bugs-list mailing
Eli Bendersky added the comment:
Ethan, did you forget to hg add ?
On Fri, Jun 14, 2013 at 12:44 AM, Nick Coghlan rep...@bugs.python.orgwrote:
Nick Coghlan added the comment:
That commit looks just a touch incomplete...
--
resolution: fixed -
stage: committed/rejected - commit
Changes by Richard Oudkerk shibt...@gmail.com:
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9122
___
___
Python-bugs-list mailing
Phil Connell added the comment:
Thanks Amaury. That's quite surprising, but I wouldn't advocate changing such
long standing behaviour.
I'm closing the issue.
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
New submission from Richard Oudkerk:
Currently when a module is garbage collected its dict is purged by replacing
all values except __builtins__ by None. This helps clear things at shutdown.
But this can cause problems if it occurs *before* shutdown: if we use a
function defined in a module
Dave Malcolm added the comment:
pmuldoon: did you truncate the output of bt? (or did the superior gdb you're
using do this behind the scenes? I know you hack on gdb itself, and this looks
a superior gdb debugging an inferior gdb).
The reason for this error:
Python Exception type
Ethan Furman added the comment:
Well, that made me laugh first thing in the morning!
I had nuked and redone my clone, and yeah, forgot to re-add the files. :/
Trying again...
Commit message was okay?
--
___
Python tracker rep...@bugs.python.org
New submission from Christian Heimes:
I have created a little script that automates downloading, compiling and
testing multiple versions of OpenSSL. It's a bit of a hack but it suits its
purpose. Maybe somebody likes to take it from here and turn it into a proper
tool for Python's Tools/
Phil Muldoon added the comment:
Yes I did truncate the output, the backtrace was very long.
This is my scenario:
gdb --args ./gdb somefile
When the superior gdb loads, I did:
(top-gdb) b frapy_pc
(top-gdb) run
In the inferior gdb, I did:
(gdb) start
(gdb) py g = gdb.selected_frame()
(gdb)
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18163
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18166
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18162
___
___
Python-bugs-list
Berker Peksag added the comment:
Updated patch adressing Brett's comments.
--
Added file: http://bugs.python.org/file30585/issue18193_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18193
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18170
___
___
Python-bugs-list
Brett Cannon added the comment:
Answered Berker's questions from the review. At this point Berker just needs to
tweak one line in the test and it should then be good to go.
--
___
Python tracker rep...@bugs.python.org
Changes by Berker Peksag berker.pek...@gmail.com:
Added file: http://bugs.python.org/file30586/issue18193_v3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18193
___
Brett Cannon added the comment:
With Berker's nice use of TestCase.subTest() I think the patch is good to go! I
should hopefully get this checked in today or tomorrow.
--
resolution: - fixed
stage: patch review - commit review
status: open - pending
Richard Oudkerk added the comment:
Do you want something like
f.done() and not f.cancelled() and f.exception() is None
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18212
Brett Cannon added the comment:
Thanks for the patch, Berker!
--
assignee: - brett.cannon
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18193
Roundup Robot added the comment:
New changeset 01da7bf11ca1 by Brett Cannon in branch 'default':
Issue #18193: Add importlib.reload(), documenting (but not
http://hg.python.org/cpython/rev/01da7bf11ca1
--
nosy: +python-dev
status: pending - open
___
Changes by Brett Cannon br...@python.org:
--
title: Document/deprecate imp - Deprecate imp
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17177
___
Brett Cannon added the comment:
Any chance I could get a response to my questions, Barry, soon? I think I can
finish the rest of the issues related to deprecating imp this weekend if we can
settle this quickly.
--
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
assignee: - barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18192
___
___
Python-bugs-list
Ram Rachum added the comment:
I guess that'd be equivalent, yes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18212
___
___
Python-bugs-list
Barry A. Warsaw added the comment:
The only argument I have about it is that if someone *does* want to use, it
should be fairly easily discoverable. Also, since it's a concrete value, it
seems a little weird that it's stashed in an abc.
I suppose importlib.machinery.MAGIC is better than
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18000
___
Brett Cannon added the comment:
I'll put it into importlib.util.MAGIC.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18192
___
___
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: +zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15968
___
___
Python-bugs-list
Barry A. Warsaw added the comment:
On Jun 14, 2013, at 07:53 PM, Brett Cannon wrote:
I'll put it into importlib.util.MAGIC.
+1
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18192
___
Changes by A.M. Kuchling li...@amk.ca:
--
nosy: +akuchling
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18179
___
___
Python-bugs-list mailing
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1475523
___
___
Python-bugs-list mailing list
Changes by A.M. Kuchling li...@amk.ca:
--
nosy: +akuchling
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18155
___
___
Python-bugs-list mailing
New submission from Jakub Wilk:
The MO file format specification[0] reads:
A program seeing an unexpected major revision number should stop reading the
MO file entirely
But Python doesn't pay attention to versions at all.
As a test-case I attached a MO file with a bogus major revision number.
New submission from Alex Gaynor:
There's a myriad of reasons it's a bad idea:
* Makes code harder to read
* Doesn't play nicely with multiple projects using gettext
* Defeats any attempt at static analysis
* etc...
--
messages: 191152
nosy: alex
priority: normal
severity: normal
Changes by A.M. Kuchling li...@amk.ca:
--
nosy: +akuchling
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11352
___
___
Python-bugs-list mailing
Zachary Ware added the comment:
The current patch doesn't apply cleanly anymore and contained an accidental
reversion of a commit, so I took the liberty of creating an updated version.
I'll also be leaving comments on Rietveld.
--
Added file:
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18217
___
___
Python-bugs-list mailing
Steve Ward added the comment:
Add input parameter 'shallow' to dircmp.
Use it in phase3 and phase4.
Document it in filecmp.rst.
Did not modify test_filecmp.py.
--
keywords: +patch
Added file: http://bugs.python.org/file30589/issue12932.diff
___
R. David Murray added the comment:
How would you do dynamic switching of translation locale at runtime, then?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18217
___
Alex Gaynor added the comment:
I'm not sure I understand the question. What `install()` does is set
`__builtins__._` to be gettext. I think people should import the gettext
function they need.
--
___
Python tracker rep...@bugs.python.org
Barry A. Warsaw added the comment:
On Jun 14, 2013, at 09:27 PM, R. David Murray wrote:
How would you do dynamic switching of translation locale at runtime, then?
flufl.i18n :)
http://pythonhosted.org/flufl.i18n/
--
___
Python tracker
R. David Murray added the comment:
install says this:
This installs the function _() in Python’s builtins namespace, based on
domain, localedir, and codeset which are passed to the function translation()
Unless I'm misunderstanding something, this means that the actual value of _ is
Alex Gaynor added the comment:
I think the code makes what this does much clearer:
http://hg.python.org/cpython/file/01da7bf11ca1/Lib/gettext.py#l209
There's no reason you can't make your own translation object, and expose it's
gettext method as as your API, and then you can update the
R. David Murray added the comment:
Which is what Barry's library does.
But rather than just deprecating install, I think we should fix the module so
that it supports this directly. That could be as simple as adding a dynamic
translations class.
What does library code that wants to provide
tahnoon pasha added the comment:
http://sourceforge.net/p/davmail/bugs/532/
The response back from the davmail software maintainer is that this is a non
RFC mechanism with a purpose (used as a keep alive on a very slow responding
server - SELECT can be very slow when getting mail this way.)
Roundup Robot added the comment:
New changeset bfd53dcb02ff by Ned Deily in branch 'default':
Issue #18149: Add filecmp.clear_cache() to manually clear the filecmp cache.
http://hg.python.org/cpython/rev/bfd53dcb02ff
--
nosy: +python-dev
___
Python
Ned Deily added the comment:
Committed for release in 3.4.0. Thanks, Mark.
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18149
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17222
___
Roundup Robot added the comment:
New changeset 46ef1d2af352 by Brett Cannon in branch 'default':
Issue #17222: Raise FileExistsError when py_compile.compile would
http://hg.python.org/cpython/rev/46ef1d2af352
--
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
assignee: barry - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18192
___
___
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18194
___
___
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17907
___
___
Roundup Robot added the comment:
New changeset 6661a8154eb3 by Victor Stinner in branch 'default':
Issue #3329: Add new APIs to customize memory allocators
http://hg.python.org/cpython/rev/6661a8154eb3
--
nosy: +python-dev
___
Python tracker
Roundup Robot added the comment:
New changeset 5619bc2d8207 by Brett Cannon in branch 'default':
Issue #18192: Introduce importlib.util.MAGIC_NUMBER and document the
http://hg.python.org/cpython/rev/5619bc2d8207
--
nosy: +python-dev
___
Python
R. David Murray added the comment:
Oh, by the way there's a bit more of the test infrastructure in python3
compared to python2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18153
___
R. David Murray added the comment:
Well, the first thing to do would be to write a test that reproduces the
problem. There is test infrastructure in Lib/test/test_imaplib.py, but I will
admit that writing the server side of imaplib tests is not a walk in the park.
You are welcome to take a
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18192
___
STINNER Victor added the comment:
I commited my new API to customize memory allocators:
New changeset 6661a8154eb3 by Victor Stinner in branch 'default':
Issue #3329: Add new APIs to customize memory allocators
http://hg.python.org/cpython/rev/6661a8154eb3
I added PyMem_RawMalloc(),
R. David Murray added the comment:
I'll also note that if you start from the traceback and look at the code
involved in the exception (keeping in mind that since the exception is caught,
in python2 you lose the original cause, which is therefore in the function
called in the try block), there
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17907
___
Roundup Robot added the comment:
New changeset be50f1403f4d by Brett Cannon in branch 'default':
Issue #17907: Document types.ModuleType's constructor and attributes,
http://hg.python.org/cpython/rev/be50f1403f4d
--
nosy: +python-dev
___
Python
Roundup Robot added the comment:
New changeset e7a01c7f69fe by Ethan Furman in branch 'default':
Closes issue 17947. Adds PEP-0435 (Adding an Enum type to the Python standard
library).
http://hg.python.org/cpython/rev/e7a01c7f69fe
--
resolution: - fixed
stage: commit review -
STINNER Victor added the comment:
New changeset e7a01c7f69fe by Ethan Furman in branch 'default':
Closes issue 17947. Adds PEP-0435 (Adding an Enum type to the Python
standard library).
http://hg.python.org/cpython/rev/e7a01c7f69fe
Great job :-)
--
nosy: +haypo
STINNER Victor added the comment:
pymem_debugcheckgil.patch: Patch adding check in debug mode to ensure that
PyMem_Malloc() and PyObject_Malloc() are called with the GIL held.
--
keywords: +patch
Added file: http://bugs.python.org/file30590/pymem_debugcheckgil.patch
STINNER Victor added the comment:
py_finalize.patch: modify Py_Finalize() to destroy the GIL after the last call
to PyMem_Malloc() or PyObject_Malloc(). For example,
PyCFunction_Fini() calls PyObject_GC_Del() which calls PyObject_FREE().
--
Added file:
STINNER Victor added the comment:
pymem_debugcheckgil.patch: oops, a forgot a change in pgenmain.c. New fixed
patch attached.
--
Added file: http://bugs.python.org/file30592/pymem_debugcheckgil-2.patch
___
Python tracker rep...@bugs.python.org
Tom Prince added the comment:
this package performs heavy monkey-patching of distutils to make it
use the system's ssh command.
I don't think this bodes well for immediate inclusion, especially in
a bugfix release.
It only needs monkey-patching to convince distutils to connect over ssh. This
1 - 100 of 125 matches
Mail list logo