Ezio Melotti added the comment:
I tried to reproduce the issue and copied
/usr/share/zoneinfo/posix/Asia/Calcutta to /etc/localtime as suggested in
msg134382, but test_imaplib passes on 2.7/3.2/3.3/3.4.
I wrote a C program to test the output of mktime:
$ cat mk.c
#include stdio.h
#include
Dan added the comment:
Guys, this looks really bad and inconveniences a lot of users. You install the
latest MinGW and Distutils from their default location, try using them on
**anything that requires compilation**, and get the cryptic gcc -mno-cygwin
error (after having to edit the obscure
Eric V. Smith added the comment:
I've just looked through the code for 2.7. It uses short float repr for both
%-formatting and for float.__format__. So they both use Gay's code, and both
should work the same as they do in 3.2+. In all cases, round-half-to-even is
used.
It's 2.6 that uses the
Dirkjan Ochtman added the comment:
I guess option 3 would be the best (in that people get more usable libraries).
Option 2 seems okay as well. I don't much like 1 or 4.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10213
Nick Coghlan added the comment:
+1 for Remove instead of Removes
For the online docs, :const:`__debug__` should work (resolving to
http://docs.python.org/3/library/constants.html#__debug__, which is currently
described using some slightly brain-bending phrasing)
We should also tweak the
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17267
___
___
Python-bugs-list mailing
Charles-François Natali added the comment:
Alright, here's what's going on.
When the main thread exits, it triggers the interpreter shutdown, which clears
all the tstates in PyInterpreterState_Clear():
void
PyInterpreterState_Clear(PyInterpreterState *interp)
{
PyThreadState *p;
Antoine Pitrou added the comment:
Albert, this happens because daemon threads continue running during interpreter
shutdown. I suppose the problem goes away if you make the thread non-daemonic?
This shouldn't be a problem in Python 3 where Python threads cannot switch
during shutdown.
Charles-François Natali added the comment:
This shouldn't be a problem in Python 3 where Python threads cannot switch
during shutdown.
What happens if the GIL is relased during shutdown?
Also, I'm a bit worried about this code:
void
PyThreadState_Clear(PyThreadState *tstate)
{
if
Carlo Bramini added the comment:
I have downloaded the latest sources with HG and, with the only exception of
the variable cookie now conditionally declared with an #ifdef HAVE_SXS,
yes, all these fixes are still actual.
--
status: pending - open
Charles-François Natali added the comment:
I'm closing, since issue #17025 proposes to do this as part of performance
optimization.
--
nosy: +neologix
status: open - closed
superseder: - reduce multiprocessing.Queue contention
___
Python tracker
Antoine Pitrou added the comment:
What happens if the GIL is relased during shutdown?
In PyEval_RestoreThread(), any thread other than the main thread trying to take
the GIL will immediately exit:
take_gil(tstate);
if (_Py_Finalizing tstate != _Py_Finalizing) {
Roumen Petrov added the comment:
yes
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10560
___
___
Python-bugs-list mailing list
Unsubscribe:
Roumen Petrov added the comment:
Dan added the comment:
Guys, this looks really bad and inconveniences a lot of users. You install
the latest MinGW and Distutils from their default location, try using them on
**anything that requires compilation**, and get the cryptic gcc -mno-cygwin
Changes by Antoine Pitrou pit...@free.fr:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5033
___
___
Eli Bendersky added the comment:
+1, I've been bothered by this description of optimization for a long time.
Terry's patch LGTM
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17232
New submission from Alex:
1. I created file (C:\Users\Alkor\Desktop\a3434.raw) on my desktop
2. Tried to get the file name from the absolute path
Actual result:
C:\Users\Alkorpython
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on
win32
Type help, copyright,
STINNER Victor added the comment:
print os.path.basename (C:\Users\Alkor\Desktop\a3434.raw)
Ah, it's a common trap of the Python syntax (and PHP, and C, and ...
languages). \ is a special character, you have to escape it: \\.
C:\\Users\\Alkor\\Desktop\\a3434.raw
or simply use the raw string
STINNER Victor added the comment:
-HINSTANCE hKernel32 = GetModuleHandleW(Lkernel32.dll);
+HINSTANCE hKernel32 = GetModuleHandle(TEXT(KERNEL32));
I prefer to be explicit and force the usage of the wide character API,
espacially in Python 3.
--
nosy: +haypo
Maciej Fijalkowski added the comment:
Also IMO -OO should stop talking about optimizations. Maybe Do what -O does
and discard docstrings?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17232
Ramchandra Apte added the comment:
+1000
--
nosy: +Ramchandra Apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2704
___
___
Python-bugs-list
Mark Dickinson added the comment:
Thanks, Ezio; I didn't get around to dealing with this as quickly as I meant
to.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15438
___
Albert Zeyer added the comment:
Note that in my original application where I encountered this (with sqlite),
the backtrace looks slightly different. It is at shutdown, but not at
interpreter shutdown - the main thread is still running.
https://github.com/albertz/music-player/issues/23
I was
Xavier de Gaye added the comment:
The patch (on the default branch) reverts one of the changes made in r72488 to
introduce the new PyFrame_GetLineNumber() function (issue 5954): tb_lineno is
now back again the result of the call to PyCode_Addr2Line() instead of the
call to
New submission from Kevin Lyda:
The pypi entry for distutils2 has a comical set of broken links (docs and
contributing): https://pypi.python.org/pypi/Distutils2
The following two paragraphs have broken links. Adding a link checker to your
browser isn't the worst idea.
The Distutils2 codebase
Andreas Pelme added the comment:
This bug still exists in 2.7 and 3.4.
If SQLITE_VERSION in sqlite3.h (/usr/include/sqlite3.h on Mac OS) ends with
beta, such as
#define SQLITE_VERSION3.7.12beta
make will fail.
The regex changed suggested above fixes this. The attached patch
Jyrki Pulliainen added the comment:
I modified the docstring for the glob and iglob to note that the match does not
work exactly like fnmatch.
Should this be extended to the documentation too?
--
keywords: +patch
nosy: +nailor
Added file:
Changes by Eric V. Smith e...@trueblade.com:
--
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17280
___
Andreas Åkerlund added the comment:
Submited a patch against 2.7 that adds all environment variables starting with
HTTP_, strips of the prefix and converts it to lower case. Also added a small
test case.
--
keywords: +patch
nosy: +thezulk
Added file:
Jyrki Pulliainen added the comment:
Added a patch with documentation change
--
keywords: +patch
nosy: +nailor
Added file: http://bugs.python.org/file29174/issue16403.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16403
Geoff Wilson added the comment:
Simplify to single build/test directory, and disambiguate by TEMPFN.
Test suite run on Mac OS X (./python.exe -m test -j3) without error. Some files
created by tests do not use TESTFN, so may have build bots identify issues.
--
keywords: +patch
nosy:
Jyrki Pulliainen added the comment:
Added documentation changes to the glob documentation too, not only docstring.
--
Added file: http://bugs.python.org/file29176/issue16695_2.patch
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
Note: Nick Coghlan's idea of having Named Value support in Python just came up
again on python-dev, and this would be a perfect application for it (pretty
much exactly Terry's proposal in msg178542).
--
___
Python
Gökçen Eraslan added the comment:
The patch is attached. Is it correct?
--
keywords: +patch
nosy: +Gökçen.Eraslan
Added file: http://bugs.python.org/file29177/python-issue-17117.diff
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 8b177aea9ddd by Petri Lehtinen in branch '2.7':
Issue #5033: Fix building of the sqlite3 extension module
http://hg.python.org/cpython/rev/8b177aea9ddd
New changeset 73d5dd480558 by Petri Lehtinen in branch '3.2':
Issue #5033: Fix building of the
Petri Lehtinen added the comment:
Applied, thanks!
--
nosy: +petri.lehtinen
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5033
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16801
___
___
Python-bugs-list mailing
Martin Melin added the comment:
Attached is a patch with Viraj's original fix except using a set instead of a
dict as suggested by Björn. This patch also includes a test case and a note in
the docs about this behavior.
Since Cookie has been moved and the code has been cleaned up somewhat
Martin Melin added the comment:
Just adding the 3.2 patch
--
Added file: http://bugs.python.org/file29179/issue1375011-3.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1375011
___
Charles-François Natali added the comment:
Note that in my original application where I encountered this (with sqlite),
the backtrace looks slightly different. It is at shutdown, but not at
interpreter shutdown - the main thread is still running.
Could you post a traceback of this crash?
Björn Skoglund added the comment:
Hello, first patch, be kind.
I opted for option 2 so there is top keywords filename_ and sort_ filtered out
before calling func.
The test in test_profile seems to call runctx but runcall and run are never
tested. Not sure if this is missing or intended.
Albert Zeyer added the comment:
Here is one. Others are in the issue report on GitHub.
In Thread 5, the PyObject_SetAttr is where some attribute containing a
threading.local object is set to None. This threading.local object had a
reference to a sqlite connection object (in some TLS
Hugo Hallman added the comment:
Can not reproduce the problem in 2.7
Attaching a patch with test cases proving that the problem is solved.
Patch based on current tip 2.7.
--
keywords: +patch
nosy: +hhallman
Added file: http://bugs.python.org/file29181/issue8489.patch
Martin Melin added the comment:
FYI, this looks like the same issue as #1375011
--
nosy: +mmelin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7504
___
Charles-François Natali added the comment:
Here is one. Others are in the issue report on GitHub.
Yes, I've seen it, but I'd need a backtrace with line numbers (like
the one you posted above).
thread 5 is crashing, but I don't know where.
--
___
Devin Cook added the comment:
Should now be compliant with this part of the spec:
Each header_value must not include any control characters, including carriage
returns or linefeeds, either embedded or at the end. (These requirements are to
minimize the complexity of any parsing that must be
Andreas Pelme added the comment:
This seems like an oversight from
http://bugs.python.org/issue15473
The release notes for 3.3 added a note about this:
Because None is now inserted into sys.path_importer_cache, if you are clearing
out entries in the dictionary of paths that do not have a
Geoff Wilson added the comment:
Patch for 2.7, with most references to /tmp removed or replaced.
References remain in Doc/install/index.rst and Doc/library/rexec.rst as they
seem to make sense in context.
--
nosy: +gmwils
Added file: http://bugs.python.org/file29183/Issue8890.patch
Henrik Heimbuerger added the comment:
Attached patch file for the 2.7 branch. They not only touch find(), but also
findtext(), which has the mistake in the documentation. Also does some related
changes in the module's code comments.
--
keywords: +patch
nosy: +hheimbuerger
Added file:
Henrik Heimbuerger added the comment:
Almost identical patch for 3.2, just differs in line numbers.
--
Added file: http://bugs.python.org/file29185/issue11367_branch32.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11367
Albert Zeyer added the comment:
Sadly, that is quite complicated or almost impossible. It needs the MacOSX
system Python and that one lacks debugging information.
I just tried with the CPython vom hg-2.7. But it seems the official Python
doesn't have objc bindings (and I also need Cocoa
R. David Murray added the comment:
Well, this issue changed into a feature request for UTF8SMTP support, which I
do intend to implement at some point.
It does indeed appear like the original problem (not converting unicode strings
into ASCII) was fixed in 2.7 at some point, though, which is
Gökçen Eraslan added the comment:
Should this be done in Modules/pyexpat.c file or in Lib/xml/parsers/expat.py?
If modifying expat.py is sufficient, then attached simple patch does the job.
By the way I couldn't find the test you are referring to. Is it in
Lib/test/test_importlib of somewhere
Geoff Wilson added the comment:
Patch against 2.7 to add csv to the internal list. It is popular enough as a
format, that it should work even if the system mime files are stale.
--
keywords: +patch
nosy: +gmwils
Added file: http://bugs.python.org/file29187/issue13952.patch
Petri Lehtinen added the comment:
Looks good to me, and all tests also pass on my Ubuntu 12.10.
Chris: Would you be willing to commit this and watch the buildbots do their
job? Or do the buildbots even use the -j option?
--
nosy: +petri.lehtinen
Changes by Gökcen Eraslan gokcen.eras...@gmail.com:
--
nosy: +gkcn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17115
___
___
Python-bugs-list
Changes by Gökcen Eraslan gokcen.eras...@gmail.com:
--
nosy: +gkcn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17099
___
___
Python-bugs-list
Lowe Thiderman added the comment:
Can convert_timestamp(val) be implemented as
datetime.datetime.strptime(val.decode(), '%Y-%m-%d %H:%M:%S.%f')?
No. The microseconds are not always included, as can be seen by the current
implementation. Nice idea though!
--
nosy: +thiderman
Lowe Thiderman added the comment:
Add patch for 2.7 branch with regression test.
--
keywords: +patch
Added file: http://bugs.python.org/file29188/issue14720.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14720
Jyrki Pulliainen added the comment:
The implementation does not actually end up in infinite loop, just repeating
the loading of the CDLL is slow.
I added caching to that and fixed the ctypes imports too.
--
nosy: +nailor
Added file: http://bugs.python.org/file29189/issue11063_2.patch
Geoff Wilson added the comment:
Attaching patch for 3.2 (Issue8890-3.2.patch)
--
Added file: http://bugs.python.org/file29190/Issue8890-3.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8890
Geoff Wilson added the comment:
Attaching patch for 3.3 that also works for 3.4/default (Issue8890-3.3.patch)
--
Added file: http://bugs.python.org/file29191/Issue8890-3.3.patch
___
Python tracker rep...@bugs.python.org
Devin Cook added the comment:
backported patch to 2.7
--
Added file: http://bugs.python.org/file29192/header_newlines_2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11671
___
Devin Cook added the comment:
backported patch to 2.6
--
Added file: http://bugs.python.org/file29193/header_newlines_2.6.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11671
___
Andreas Åkerlund added the comment:
This is a patch against 3.2 adding urllib.parse.quote_uri
It splits the URI in 5 parts (protocol, authentication, hostname, port and
path) then runs urllib.parse.quote on the path and encodes the hostname to
punycode if it's not in ascii.
It's not perfect,
Roundup Robot added the comment:
New changeset 4e2bfe6b227a by Petri Lehtinen in branch 'default':
Issue #15132: Allow a list for the defaultTest argument of unittest.TestProgram
http://hg.python.org/cpython/rev/4e2bfe6b227a
--
nosy: +python-dev
___
Petri Lehtinen added the comment:
Applied, thanks!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15132
___
Roundup Robot added the comment:
New changeset 6911df35b7b6 by Petri Lehtinen in branch '2.7':
Issue #14720: sqlite3: Convert datetime microseconds correctly
http://hg.python.org/cpython/rev/6911df35b7b6
New changeset 46d5317a51fb by Petri Lehtinen in branch '3.2':
Issue #14720: sqlite3:
Petri Lehtinen added the comment:
Applied, thanks!
--
nosy: +petri.lehtinen
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14720
Changes by Devin Cook devin.c.c...@gmail.com:
--
nosy: +devin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12226
___
___
Python-bugs-list mailing
Henrik Heimbuerger added the comment:
Here's a suggestion for a documentation addition. Comments on tone and content
are welcome, and I'm willing to update it and submit modified patch files.
This adds the following note:
If a file descriptor *fileno* is specified, the other arguments
Roundup Robot added the comment:
New changeset 488957f9b664 by Petri Lehtinen in branch '2.7':
Issue #8890: Stop advertising an insecure use of /tmp in docs
http://hg.python.org/cpython/rev/488957f9b664
New changeset 7556601180c8 by Petri Lehtinen in branch '3.2':
Issue #8890: Stop advertising
Petri Lehtinen added the comment:
Applied, thanks!
--
resolution: accepted - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8890
Andy Holst added the comment:
The documentation updated for the tarfile.rst document. The arguments encoding
and errors are added to tarfile.TarInfo.frombuf method. Patch uploaded.
--
keywords: +patch
nosy: +StealthAsimov
Added file: http://bugs.python.org/file29196/issue15566.patch
Martin Melin added the comment:
Not sure if there was anything more to it than this, but please find an attempt
to add this attached.
--
keywords: +patch
nosy: +mmelin
Added file: http://bugs.python.org/file29197/issue16709.patch
___
Python tracker
Roundup Robot added the comment:
New changeset 2b96dcdac419 by Petri Lehtinen in branch '2.7':
Issue #16695: Document how glob handles filenames starting with a dot
http://hg.python.org/cpython/rev/2b96dcdac419
New changeset b4434cbca953 by Petri Lehtinen in branch '3.2':
Issue #16695: Document
Petri Lehtinen added the comment:
Applied, thanks!
--
nosy: +petri.lehtinen
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16695
Petri Lehtinen added the comment:
The patch looks good to me.
--
nosy: +petri.lehtinen
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16709
___
Michael Foord added the comment:
As we're specifying this behaviour in the documentation it would be nice to
test it.
--
stage: patch review - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16709
Dennis Mårtensson added the comment:
We have added the from None to the documentation with a explanation and some
example code.
--
keywords: +patch
nosy: +m...@dennis.is
Added file: http://bugs.python.org/file29199/patch17188.patch
___
Python
Jyrki Pulliainen added the comment:
Added a functionality that raises error_proto('line too long') if we read over
_MAXLINE characters. Defaults _MAXLINE to 2048. The patch is written on top of
2.7
--
keywords: +patch
nosy: +nailor
Added file:
Giampaolo Rodola' added the comment:
I already posted a patch in issue 9285.
Maybe we should close this one as a duplicate.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17130
___
Antoine Pitrou added the comment:
I have two questions:
- how do you know the crash really happens because of thread 5?
- when the thread.local object is being deleted, has another thread just
started looking up its attributes?
--
___
Python tracker
Joar Wandborg added the comment:
Patch submitted, please review.
--
keywords: +patch
nosy: +joar
Added file: http://bugs.python.org/file29200/issue17267.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17267
Björn Skoglund added the comment:
Look at that. Sorry, totally missed it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17130
___
___
Changes by Gökcen Eraslan gokcen.eras...@gmail.com:
--
nosy: +gkcn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17093
___
___
Python-bugs-list
Jyrki Pulliainen added the comment:
Here's a patch that limits the headers to 100. If more than _MAXHEADERS headers
are read, this raises exception TooMuchHeaders.
The patch is for 2.7, I'll cook one for 3.2 too.
--
keywords: +patch
nosy: +nailor
Added file:
Devin Cook added the comment:
I agree that this is probably a bug, but can't think of any instances where
this in itself would cause a security issue. By sending something like a
negative Content-Length, you do indeed get data returned that doesn't really
match the data sent on the wire. If
Jyrki Pulliainen added the comment:
...and here's the patch for 3.2
--
Added file: http://bugs.python.org/file29203/issue16037_py32.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16037
Antoine Pitrou added the comment:
Another question: are threads being started or stopped while the thread local
object is being deleted?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17263
Petri Lehtinen added the comment:
Added some comments to Rietveld.
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17267
___
David Lam added the comment:
looks like RFC 6531 obsoletes 5336 --
http://datatracker.ietf.org/doc/rfc6531/
(6531 says its the Proposed Standard, whereas 5336 says its Experimental
etc etc)
--
___
Python tracker rep...@bugs.python.org
Geoff Wilson added the comment:
Patch attached to move sqlite3 tests under Lib/test, and remove
Lib/test/test_sqlite.py.
Naming of files has been kept the same in the move from Lib/sqlite/test, to
allow for easier merging of future patches.
--
keywords: +patch
nosy: +gmwils
Added
Manuel Jacob added the comment:
http://docs.python.org/3/library/array.html states that the 'u' type code is
deprecated together with the rest of the Py_UNICODE API (which includes
PyUnicode_FromUnicode), so keeping this using PyUnicode_FromUnicode should be
fine.
--
Roundup Robot added the comment:
New changeset 14144373fdcd by Petri Lehtinen in branch '2.7':
Issue #16403: Document how distutils uses the maintainer field in PKG-INFO
http://hg.python.org/cpython/rev/14144373fdcd
New changeset b65b6a0ebd44 by Petri Lehtinen in branch '3.2':
Issue #16403:
Petri Lehtinen added the comment:
Applied, thanks!
--
nosy: +petri.lehtinen
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16403
Devin Cook added the comment:
This looks resolved. Can it be closed?
--
nosy: +devin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10340
___
___
Joar Wandborg added the comment:
New patch adressing the review comments.
--
Added file: http://bugs.python.org/file29205/issue17267.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17267
Terry J. Reedy added the comment:
Serhiy called subclassing 'particular and cumbersome'.
'Cumbersome' is an opinion. I consider subclassing elegant. The ease of doing
so and specializing only what one needs to is a major feature of Python. It
only took me a couple of minutes to whip up
Petri Lehtinen added the comment:
The patch should add something to the The from clause is used for
exception... paragraph, to state that None is also allowed.
It also adds things in a confusing order. I think the new example should go
below other examples, and the changedversion and
1 - 100 of 145 matches
Mail list logo