Petri Lehtinen added the comment:
Serhiy Storchaka wrote:
This can be done in compile time. Something like:
if ((uid_t)-1 0) ...
Ah, neat. I would have expected that to issue a compiler warning,
though, because the comparison is always true if the type is unsigned,
but at least gcc
New submission from Simon Blanchard:
_LegalCharsPatt = r[\w\d!#%'~_`@,:/\$\*\+\-\.\^\|\)\(\?\}\{\=]
The above regex in cookies.py includes the the comma character but RFC 6265
https://tools.ietf.org/html/rfc6265 section 4.1.1 says:
cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B /
New submission from Ronny Pfannschmidt:
this means its much harder to have a mixin to change the behaviour of a property
instead of super(Mixin, self).prop = foo
the code is super(Mixin, type(self)).prop.__set__(self, foo)
which is way harder to understand
the attached file demonstrates the
Serhiy Storchaka added the comment:
Matti Mäki, can you please submit a contributor form?
http://python.org/psf/contrib/contrib-form/
http://python.org/psf/contrib/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14897
Charles-François Natali added the comment:
Well, the first difference that jumps out is that with python 2.7, the protocol
used is SSLv2, whereas it's bare SSL on Python 3.3.0.
But another interesting thing is the presence, in Python 2.3, of many
extenstions (elliptic_curves, heartbeat,
Serhiy Storchaka added the comment:
Thanks.
Issue #16330: Fix compilation on Windows
Oh, how could I miss this?
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
I don't know any application using UTF-32-LE or UTF-32-BE. So I don't want to
waste Python memory/code size with a heavily optimized decoder. The patch A
looks to be enough.
Agree. I had the same doubts. That's why I proposed two patches for your
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11566
___
___
Mark Dickinson added the comment:
Enhance error messages of struct.pack and struct.pack_into
You probably should have used the word 'fix' rather than 'enhance' here: else
it smells like you're putting new features into a maintenance release. :-)
--
Serhiy Storchaka added the comment:
(b'\\N{WHITE SMILING FACE' + b'x' * 2**32 + '}').decode('unicode-escape') may
pass on platform with 32-bit int and more than 32-bit size_t if there is enough
memory.
I don't have so much memory.
--
___
Python
Petri Lehtinen added the comment:
You probably should have used the word 'fix' rather than 'enhance' here:
else it smells like you're putting new features into a maintenance release.
:-)
Ah, true. But unfixable now :(
--
___
Python tracker
Serhiy Storchaka added the comment:
See also issue16074.
The patch changes also os.link(), os.rename() and os.replace() to use the
source, not the destination, in the error message. It is maybe a mistake
because these functions can also fail in the directory of the destination
does not
Serhiy Storchaka added the comment:
Hieu Nguyen, can you please submit a contributor form?
http://python.org/psf/contrib/contrib-form/
http://python.org/psf/contrib/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
Matti Mäki added the comment:
I filled up the contributor form and gave it to Petri Lehtinen 2012-10-22
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14897
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: -serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16322
___
___
Petri Lehtinen added the comment:
Matti Mäki wrote:
I filled up the contributor form and gave it to Petri Lehtinen 2012-10-22
Yeah, and I posted it (along with 14 other contributor forms received
at PyCon Finland) to the PSF last week. They just seem to be a bit
slow to process them.
Stefan Holek added the comment:
It's possible to distribute Python packages with non-ASCII filenames.
Well, it wasn't until very recently (distribute 0.6.29):
https://bitbucket.org/tarek/distribute/issue/303/no-support-for-unicode-manifest-files
Unless we are not talking about the same thing,
Mark Dickinson added the comment:
I think there's something generally smelly about the way hypot is handled;
this isn't the only hypot-related build issue that's turned up. I'm wondering
whether the code can be reworked to deal with hypot in the same way that
functions like log1p, etc. are
Václav Šmilauer added the comment:
Just for the record: a workaround (mentioned at
http://boost.2283326.n4.nabble.com/Boost-Python-Compile-Error-s-GCC-via-MinGW-w64-td3165793.html#a3166760)
is to always include cmath before Python.h.
--
___
Python
Hieu Nguyen added the comment:
Serhiy, actually I have submitted my contributor form to Petri Lehtinen in a
sprint here in Finland.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
STINNER Victor added the comment:
Oh, how could I miss this?
The code does compile with error on Linux with GCC. I don't understand how.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16330
STINNER Victor added the comment:
If I am the only one to think this is wrong, then so be it.
Our current workaround is to disallow surrogates in the manifest. /me shrugs.
You are not alone, that's why there are 3 open issues. But someone
should finish the different proposition and write a
Serhiy Storchaka added the comment:
It was a rhetorical question. This code compiled only if Py_UNICODE_SIZE == 2.
But I should be more careful.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16330
New submission from jamesf:
on windows(windows 7), python 2.7.3 compiled with VS 2008 and code page cp936.
locale.getdefaultlocale call Win32 API GetACP and return cp936,
but a small test program return C from 'getlocale' CRT function.
I am not sure if this behaviour is expected or bug?
It
jamesf added the comment:
i just found that locale.getlocale does return (None, None),
maybe defaultlocale just return the DEFAULT, which is the hints.
i will use locale.setlocale in my app, so close this issue.
--
status: open - closed
___
Python
Changes by Berker Peksag berker.pek...@gmail.com:
--
versions: -Python 3.1, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16363
___
Christian Heimes added the comment:
AFAIK C89 doesn't specify integer overflows:
If an exceptional condition occurs during the evaluation of an expression (that
is, if the result is not mathematically defined or not in the range of
representable values for its type), the behavior is
Jyrki Pulliainen added the comment:
Yeah, I tried figuring out something more clever, as this, in the current form,
has a bit too hackish feeling in it, but I couldn't find a proper tool for the
job.
Anyway, attached a patch with the getattr removed.
--
Added file:
Changes by Jyrki Pulliainen jy...@dywypi.org:
Removed file: http://bugs.python.org/file27793/issue9351.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9351
___
Changes by Jyrki Pulliainen jy...@dywypi.org:
Added file: http://bugs.python.org/file27795/issue9351.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9351
___
Changes by Jyrki Pulliainen jy...@dywypi.org:
Added file: http://bugs.python.org/file27794/issue9351.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9351
___
Changes by Jyrki Pulliainen jy...@dywypi.org:
Removed file: http://bugs.python.org/file27677/issue9351.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9351
___
Changes by Jyrki Pulliainen jy...@dywypi.org:
Removed file: http://bugs.python.org/file27794/issue9351.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9351
___
Petri Lehtinen added the comment:
Christian Heimes wrote:
AFAIK C89 doesn't specify integer overflows:
Casting a signed integer to an unsigned integer is always defined, if
that's what you're talking about.
See http://flash-gordon.me.uk/ansi.c.txt, section 3.2.1.2.
If you're talking about
Petri Lehtinen added the comment:
LGTM. Steven?
--
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9351
___
___
Ramchandra Apte added the comment:
Unless Python's grammar is translated into other languages I'm -1 on this.
I don't see any use of this. You anyway have to know English to understand the
docs and Python's grammar is English.
@Ezio melotti
In some places (like my country, public schools),
R. David Murray added the comment:
This is a pragmatic choice. Try searching the tracker for 'cookie comma', and
read about the lack of adherence to cookie RFCs by the major browsers.
Specifically, I think issue 1210326 is relevant here, and am closing this as a
duplicate of that issue. If
R. David Murray added the comment:
I believe this is a duplicate of issue 14965. If you agree please add yourself
to nosy there and review the proposed patch and/or make your own proposal. If
you think your issue is different you can reopen this one.
--
nosy: +r.david.murray
Changes by Ramchandra Apte maniandra...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16261
___
___
Charles-François Natali added the comment:
Schools put a priority on English but not on native languages. Languages must
be preserved because they contain culture
Of course, but the main goal of a language is to communicate.
As it stand, English is the language which is the most likely to
Charles-François Natali added the comment:
It's a little too vague :-)
You should probably report this on pysnmp mailing list.
If you want to debug this, you should perform a tcpdump/wireshark capture while
running your script, and see what happens (according to your description, it
may
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10966
___
___
Changes by Brett Cannon br...@python.org:
--
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10966
___
___
Antoine Pitrou added the comment:
Your script works for me under Linux with Python 3.2, 3.3 and 3.4.
Perhaps the problem has to do with the version of OpenSSL that we package
Windows binaries with? My OpenSSL version here (as given by
ssl.OPENSSL_VERSION) is 'OpenSSL 1.0.0d 8 Feb 2011'.
Terry J. Reedy added the comment:
It'll get tricky if in a couple months, we start getting bug reports with
traceback in Finnish or French...
That is another reason to *always* output the standard English message first. I
think this was discussed a couple of years ago on PyDev, or maybe
Antoine Pitrou added the comment:
It looks like we use OpenSSL 1.0.1c for Python 3.3 Windows builds, which would
explain the different Client Hello. In your capture, the client identifies
itself as TLS 1.2, while on my Linux box it's TLS 1.0.
I'm uploading the decoded protocol tree of the two
Changes by Antoine Pitrou pit...@free.fr:
Added file: http://bugs.python.org/file27796/linux-tls10-handshake.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16361
___
Changes by Antoine Pitrou pit...@free.fr:
Added file: http://bugs.python.org/file27797/windows-tls12-handshake.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16361
___
New submission from Abhijeet Joshi:
Hello,
I have installed Idle for python 3.3 on windows 8 and trying to open the GUI
but unable to open anything.
The screen doesn't show up on monitor.
Please help me here.
Thanks
Abhijeet
--
components: IDLE
messages: 174217
nosy: jabhijeet
Zachary Ware added the comment:
Thanks for the commit! 3.2 looks good now.
3.3 and default still need a little work, though; the docstrings still say
WindowsError instead of OSError and the docs say a OSError instead of an
OSError.
The attached patch cleans up both issues, as well as
Antoine Pitrou added the comment:
Note that you could work around the issue by forcing a lower SSL version:
ssl_context = ssl.SSLContext(ssl.PROTOCOL_SSLv3)
opener = urllib.request.build_opener(
urllib.request.HTTPCookieProcessor(cj),
Antoine Pitrou added the comment:
I recently re-wrote something like this, so I think this is useful.
I wonder if it wouldn't be nice to add a caret or some similar marker
indicating the frame where the exception was caught, e.g.:
Traceback (most recent call last, catch point highlighted):
Roundup Robot added the comment:
New changeset 4e9617d3c514 by Andrew Svetlov in branch '2.7':
Issue #16341: convert examples to use except ... as ... syntax.
http://hg.python.org/cpython/rev/4e9617d3c514
--
nosy: +python-dev
___
Python tracker
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16341
New submission from Antoine Pitrou:
logging's _handleError will tell you in which code line the error happened, but
it's not very useful when application code has its own logging wrappers. You
need more of the stack to get useful information. The attached script showcases
this, along with a
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1553375
___
___
Changes by Ronny Pfannschmidt ronny.pfannschm...@gmail.com:
--
nosy: +Ronny.Pfannschmidt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14965
___
Roger Serwy added the comment:
Can you launch Python from a command line and then launch IDLE from there?
cd c:\python33
python
After python starts, enter the following:
import idlelib.idle
--
nosy: +serwy
___
Python tracker
Abhijeet Joshi added the comment:
Thanks for your reply.
I have tried re-installing it 3-4 times and it started working now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16365
___
Andy Salnikov added the comment:
Hi Éric,
I am attaching a patch that fixes the problem. The patch is tiny, basically
1-line. This replaces the direct use of sys.executable with the
symlink-resolved version of the same path. I made the change for linux/unix
platforms and also for
Andrew Svetlov added the comment:
Amaury, you are right:
PyTclObject_Type_slots[3].pfunc = PyObject_GenericGetAttr;
is not required.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15721
Roundup Robot added the comment:
New changeset 4eb6e07e8171 by Andrew Svetlov in branch 'default':
Issue #15721: apply PEP 384 Refactoring to tkinter module.
http://hg.python.org/cpython/rev/4eb6e07e8171
--
___
Python tracker rep...@bugs.python.org
Roger Serwy added the comment:
I wonder if there is a bug in the Python installer on the new Windows 8
platform, though it is unlikely.
I will leave this issue open for Windows 8 developers to comment. (I don't have
Win8 for testing just yet.) Feel free to close.
--
components:
Abhijeet Joshi added the comment:
will leave it open so that some win8 developer will check it out.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16365
___
Roundup Robot added the comment:
New changeset 43d87cdf9457 by Antoine Pitrou in branch 'default':
Issue #16351: New function gc.get_stats() returns per-generation collection
statistics.
http://hg.python.org/cpython/rev/43d87cdf9457
--
nosy: +python-dev
Antoine Pitrou added the comment:
Now committed.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16351
Antoine Pitrou added the comment:
You anyway have to know English to understand the docs and Python's
grammar is English.
I don't think Python's grammar is relevant. I took my first steps in
programming when I was around 10 and I barely knew English at the time, it
didn't stop me from
Roundup Robot added the comment:
New changeset 9badfe3a31a7 by Victor Stinner in branch 'default':
Close #14625: Rewrite the UTF-32 decoder. It is now 3x to 4x faster
http://hg.python.org/cpython/rev/9badfe3a31a7
--
nosy: +python-dev
resolution: - fixed
stage: patch review -
STINNER Victor added the comment:
I applied the patch A with minor changes: replace multiple goto with classic
break/continue and if/else.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14625
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16344
___
___
Roundup Robot added the comment:
New changeset 10795aac6df7 by Victor Stinner in branch 'default':
Issue #16086: PyTypeObject.tp_flags and PyType_Spec.flags are now unsigned
http://hg.python.org/cpython/rev/10795aac6df7
--
nosy: +python-dev
___
Serhiy Storchaka added the comment:
Because it's much simpler like that.
Well, I wrote a patch with structure sequences, it is really much more
expansive.
I have some comments.
1. You can allocate list of NUM_GENERATIONS elements and then use
PyList_SET_ITEM(result, i, stat). This is 4
Amaury Forgeot d'Arc added the comment:
The same fix, but with a unit test.
Note that object.__dir__ did not exist in previous versions, but I found a
similar failure with __format__, which also applies to 2.7.
--
nosy: +amaury.forgeotdarc
Added file:
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16268
___
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16086
___
Serhiy Storchaka added the comment:
I will do some experiments and review tomorrow.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16311
___
___
Serhiy Storchaka added the comment:
I applied the patch A with minor changes: replace multiple goto with
classic break/continue and if/else.
Looks good. Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14625
Serhiy Storchaka added the comment:
Note that Py_TPFLAGS_INT_SUBCLASS already not used in Python 3.x. One bit of
tp_flags can be freed.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16086
STINNER Victor added the comment:
Note that Py_TPFLAGS_INT_SUBCLASS already not used in Python 3.x. One bit of
tp_flags can be freed.
Please open a new issue if you consider this issue important enough.
--
___
Python tracker
Serhiy Storchaka added the comment:
See also issue9307.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16086
___
___
Python-bugs-list mailing
Mariano Reingart added the comment:
Sorry for taking so long to replying, and for this long follow up...
Antoine Pitrou added the comment:
I think the PEP should be proposed on python-dev or python-ideas.
Also, it's probably better if the PEP is encoded in utf-8, not
latin-1.
Ok, I'll
New submission from STINNER Victor:
The changeset 374dc910db33 fixed FileIO.readinto(), FileIO.write() and
os.write() on Windows for issues #9015, #9611, but FileIO.readall() was not
fixed and it has a similar bug.
It uses int n; to store the result of read(), so FileIO.readall() may also
Roundup Robot added the comment:
New changeset 01cc9fb52887 by Victor Stinner in branch 'default':
Issue #15478: Fix test_os on Windows (os.chown is missing)
http://hg.python.org/cpython/rev/01cc9fb52887
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 96fc87997ce9 by Victor Stinner in branch 'default':
Issue #9566: Explicit downcast to fix compiler warnings on Win64
http://hg.python.org/cpython/rev/96fc87997ce9
New changeset dabe2486e2ce by Victor Stinner in branch 'default':
Issue #9566: Use
New submission from Tom Kuiper:
This error comes from the logging module when a message is logged, but only
when I also import another module which does use logging at all:
Traceback (most recent call last):
File /usr/lib/python2.6/logging/__init__.py, line 776, in emit
msg =
Roundup Robot added the comment:
New changeset ef87bd0797de by Victor Stinner in branch 'default':
Issue #15478: Fix test_os on FreeBSD
http://hg.python.org/cpython/rev/ef87bd0797de
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 7648b7ed6d91 by R David Murray in branch '3.3':
#12890: fix test on windows
http://hg.python.org/cpython/rev/7648b7ed6d91
New changeset d24befb680d6 by R David Murray in branch 'default':
#12890: fix test on windows
R. David Murray added the comment:
Thanks everyone.
--
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12890
___
R. David Murray added the comment:
Do none of those submodules import logging?
It is unlikely that this is a Python bug. Somewhere _fmt is getting set to an
integer. The way to prove this one way or another is to start deleting things
until you find the code that is triggering the issue.
Tom Kuiper added the comment:
Give me a few moments to dig further. I may have found the submodule
culprit. Checking.
Tom
On 10/30/2012 05:29 PM, R. David Murray wrote:
R. David Murray added the comment:
Do none of those submodules import logging?
It is unlikely that this is a Python
Tom Kuiper added the comment:
On 10/30/2012 05:29 PM, R. David Murray wrote:
R. David Murray added the comment:
Do none of those submodules import logging?
It is unlikely that this is a Python bug. Somewhere _fmt is getting set to
an integer. The way to prove this one way or another is
R. David Murray added the comment:
Yep, that would do it. format is supposed to be a format string.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16368
___
Bradley Froehle added the comment:
Your patch looks good to me, and I can verify that it properly tests for the
issue in Python 3.3.
On a related note, I've found that PyType_Ready(...) isn't called for a few
other core PyTypeObjects... see #16369.
--
New submission from Bradley Froehle:
In Python 3.3.0, several global `PyTypeObject`s are not initialized using
PyType_Ready(...).
The list of uninitialized type objects::
PyCapsule_Type
PyLongRangeIter_Type
PyFieldNameIter_Type
PyFormatterIter_Type
PySTEntry_Type
PyCell_Type
Ramchandra Apte added the comment:
I said
Schools put a priority on English but not on native languages. Languages
must be preserved because they contain culture
Charles-François Natali said
Of course, but the main goal of a language is to communicate.
As it stand, English is the language
Roundup Robot added the comment:
New changeset eec0cafe171d by Benjamin Peterson in branch '3.2':
initialize more global type objects (closes #16369)
http://hg.python.org/cpython/rev/eec0cafe171d
New changeset 9371bf2287c4 by Benjamin Peterson in branch '3.3':
merge 3.2 (#16369)
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - duplicate
status: open - closed
superseder: - Global PyTypeObjects not initialized with PyType_Ready(...)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16268
Todd Rovito added the comment:
While writing test cases I discovered another conflict with the documentation.
The phrase On Unix, if dst exists and is a file, it will be replaced silently
if the user has permission and src is a file. is not correct. According to
the test cases I wrote in
Ramchandra Apte added the comment:
Bump.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13659
___
___
Python-bugs-list mailing list
Unsubscribe:
Roundup Robot added the comment:
New changeset 1d700e1aff33 by Benjamin Peterson in branch '3.3':
don't shadow the __qualname__ descriptor with __qualname__ in the class's
__dict__ (closes #16271)
http://hg.python.org/cpython/rev/1d700e1aff33
--
nosy: +python-dev
resolution: - fixed
1 - 100 of 105 matches
Mail list logo