Changes by Berker Peksag berker.pek...@gmail.com:
--
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1047397
___
New submission from Raymond Hettinger:
Currently, threading.Thread requires that group=None pending implementation of
a ThreadGroup class such as that described in
http://www.javaworld.com/article/2074481
This has been an open todo for very long time, possibly because it may be too
big of a
New submission from Nick Coghlan:
It would be handy if the main OS exception docs at
https://docs.python.org/3/library/exceptions.html#os-exceptions included a
summary table mapping between exception types and errno names, akin to the one
in the original PEP
Nick Coghlan added the comment:
Another idea would be to include fragments of the ASCII art hierarchy
throughout the doc, but that's trickier than it sounds, since we just use
literalinclude to generate the current one.
--
___
Python tracker
Ronald Oussoren added the comment:
On 19 jul. 2014, at 23:22, Mark Dickinson rep...@bugs.python.org wrote:
Mark Dickinson added the comment:
The relevant piece of code in the struct module looks like this:
static PyObject *
nu_bool(const char *p, const formatdef *f)
{
BOOL_TYPE
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
Added file: http://bugs.python.org/file35998/parallel_download_application.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22013
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file35999/threadgroup.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22013
Mark Dickinson added the comment:
For native struct packing / unpacking, it's not even clear to me that this
should be considered a bug (though for standard unpacking it definitely is):
the primary use-case for native unpacking is unpacking a collection of bytes
that was written (from
Mark Dickinson added the comment:
In practice, I doubt that Python's going to meet such platforms in a hurry.
Hrm; looks like that's not a particularly safe assumption, especially with
older compilers that might do a typedef int _Bool.
From
Changes by Ned Deily n...@acm.org:
--
title: struct.unpack('?', '\x02') returns (False,) on Mac OSX -
struct.unpack('?', '\x02') returns (False,) when Python is built with clang
___
Python tracker rep...@bugs.python.org
New submission from STINNER Victor:
The signal module has a wakefd feature which calls write(fd) in a signal
handler, but the signal handler replaces errno without saving/restoring it.
See Practice 4 in this article:
http://www.ibm.com/developerworks/linux/library/l-reent/index.html
Attached
STINNER Victor added the comment:
Ooops, I looked at the wrong function. signal_handler() saves/restores errno.
trip_signal() is a function called by signal_handler(). The code is correct.
--
resolution: - not a bug
status: open - closed
___
Python
Changes by Drekin dre...@gmail.com:
Removed file: http://bugs.python.org/file27245/win_unicode_console.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
Xavier de Gaye added the comment:
# This returns to a '' prompt,
At the above line in Terry test, the debugger is not terminated and on linux
when I type Ctl-D at this point I get:
--Call--
/home/xavier/etc/.pystartup(21)save_history()
- def save_history(historyPath=historyPath):
(Pdb)
So
Drekin added the comment:
@Victor Stinner: You are right. So I did it. Here are the links to GitHub and
PyPI: https://github.com/Drekin/win-unicode-console,
https://pypi.python.org/pypi/win_unicode_console.
I also tried to delete the files, but it seems that it is only possible to
unlink a
New submission from Nick Coghlan:
This would be along the same lines as xmlcharrefreplace and backslashreplace,
but only affect surrogate escaped characters.
Unlike surrogate escape, which reproduces the escaped characters directly in
the data stream, this would follow the 'replace' error
Nick Coghlan added the comment:
Thanks Drekin - I'll point folks to your project as a good place to provide
initial feedback, and if that seems promising we can look at potentially
integrating the various fixes into Python 3.5
--
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +tim.peters
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22013
___
___
Python-bugs-list
Antoine Pitrou added the comment:
I have a hard time understanding what it would bring in Python's context. Even
the Java API doesn't look very useful.
--
nosy: +neologix, pitrou
___
Python tracker rep...@bugs.python.org
Ronald Oussoren added the comment:
On 20 jul. 2014, at 10:32, Mark Dickinson rep...@bugs.python.org wrote:
Mark Dickinson added the comment:
In practice, I doubt that Python's going to meet such platforms in a hurry.
Hrm; looks like that's not a particularly safe assumption,
Changes by Jason R. Coombs jar...@jaraco.com:
Added file: http://bugs.python.org/file36001/9ac347a7f375.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13540
___
Changes by Jason R. Coombs jar...@jaraco.com:
Added file: http://bugs.python.org/file36003/b8c09b766e20.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13540
___
R. David Murray added the comment:
Vinay has a patch improving shlex parsing in issue 1521950, but it doesn't seem
to address this case, so I'm adding him as nosy.
--
nosy: +r.david.murray, vinay.sajip
stage: - needs patch
title: shlex: bug in posix more handling of empty strings -
R. David Murray added the comment:
'type' and 'class' are two different names for the same concept in python3, so
this paragraph simply appears to be out of date and indeed in need of complete
rewording.
--
nosy: +r.david.murray
___
Python tracker
Jason R. Coombs added the comment:
I've made another commit to capture Steven's recommendations. I've also merged
the work with the latest 2.7 tip, the result of which is the latest diff. I'll
commit this in a week or two if there aren't any objections, though I would
appreciate a review and
R. David Murray added the comment:
must be identical sounds like identical twins. I think what you mean is
must be references to the same object or to objects that compare equal. If
you don't want to get into the concept of 'references' here, I suppose it could
read must be the same object
Jason R. Coombs added the comment:
I've tried building the docs, but it appears to rely on a local build of Python
as well as subversion, neither of which my system can do currently, so I'm
hoping someone has a suitable environment to help test the building of the docs.
--
R. David Murray added the comment:
I have no problem with the change to test_email. (I could have sworn I tried
unittest.main() in __main__ when I set it up, but I must have screwed something
up).
I didn't go over the patch line by line, but it looks good to me.
--
nosy:
Geert Jansen added the comment:
Hi all (pitrou, haypo and all others) can I get some feedback on this patch?
Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21965
___
New submission from Xavier de Gaye:
$ ./python
Python 2.7.8+ (2.7:5563f895b215, Jul 20 2014, 18:10:28)
[GCC 4.9.0 20140521 (prerelease)] on linux2
Type help, copyright, credits or license for more information.
import warnings
warnings.defaultaction = 'default'
warnings.warn('some warning')
Xavier de Gaye added the comment:
The same kind of fix should also be applied to '_once_registry' and
'_filters'.
Oops, no they are correctly refcounted.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22017
Mark Lawrence added the comment:
The chain of dependencies goes from here to #15403, #18576 and back here. How
do we break this loop?
--
nosy: +BreamoreBoy
type: - enhancement
versions: +Python 3.5 -Python 3.3, Python 3.4
___
Python tracker
David Wilson added the comment:
This version is tidied up enough that I think it could be reviewed.
Changes are:
* Defer `buf' allocation until __init__, rather than __new__ as was previously
done. Now upon completion, BytesIO.__new__ returns a valid, closed BytesIO,
whereas previously a
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22017
___
___
Python-bugs-list
paul j3 added the comment:
I think you want to unlink 9ac347a7f375.diff
It's from a different project
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13540
___
Gregory P. Smith added the comment:
agreed, we could at least do that for the Popen methods.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17131
___
Mark Lawrence added the comment:
Changes were made to this module on #20555.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17665
___
Changes by Gregory P. Smith g...@krypto.org:
--
assignee: - gregory.p.smith
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17131
___
Changes by Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de:
--
nosy: +wolma
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1152248
___
___
David Wilson added the comment:
New patch also calls unshare() during getbuffer()
--
Added file: http://bugs.python.org/file36005/cow3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22003
Ned Deily added the comment:
I also can reproduce this on Linux with Python 2.7 but not with 3.4 which uses
a different io system. So the question is: is anyone interested in addressing
this for Python 2 file objects?
--
nosy: +gregory.p.smith
stage: - needs patch
title:
R. David Murray added the comment:
If insuffcient space is insufficient disk space (ie: /tmp is full), I don't
see any reason the test should cater to that possibility. None of our other
tests do. If it means something else, then nevermind.
--
nosy: +r.david.murray
Ned Deily added the comment:
My reading of the man page is that in the xattr case it can refer to conditions
other than just file system full, e.g.
https://bugzilla.kernel.org/show_bug.cgi?id=12793. Also, Yannick reported that
the volume was apparently not full.
--
R. David Murray added the comment:
The example looks like something you could use concurrent.futures for and get
more features besides?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22013
STINNER Victor added the comment:
I'm interested to work on all EINTR issues, including Python 2.
I'm working on a new PEP with Charles-François Natali to address *all* EINTR at
once in Python 3.5. If the PEP is accepted, we may fix some EINTR issues on
Python 2. Some changes change the
New submission from STINNER Victor:
Hi,
I'm working on asyncio, someone asked why asyncio cannot be interrupted by
CTRL+c (SIGINT):
https://code.google.com/p/tulip/issues/detail?id=191
On Windows, select.select() is not interrupted by CTRL+c. To get a reliable
behaviour, interrupt
STINNER Victor added the comment:
I tested manually test_signal.test_socket() on Windows 7: the test pass.
The test is currently skipped on Windows because the whole TestCase is skipped.
Moreover, there is no socket.socketpair() function on Windows. For the manual
test, I used
Guido van Rossum added the comment:
I don't know much about how sockets are implemented on Windows; is there a
guarantee that the space of possible socket fds doesn't overlap the space of
possible stream fds?
--
___
Python tracker
Roundup Robot added the comment:
New changeset 8106f91fccd6 by Benjamin Peterson in branch '2.7':
correct ref counting of default_action (closes #22017)
http://hg.python.org/cpython/rev/8106f91fccd6
--
nosy: +python-dev
resolution: - fixed
stage: - resolved
status: open - closed
Mark Lawrence added the comment:
I'm getting lost in all the enhancement requests for tests. How does this
relate to e.g. 16748 or 10572?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22002
STINNER Victor added the comment:
Guido wrote:
I don't know much about how sockets are implemented on Windows; is there a
guarantee that the space of possible socket fds doesn't overlap the space of
possible stream fds?
Python has a low-level _PyVerify_fd() which uses the __pioinfo private
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
Removed file: http://bugs.python.org/file35998/parallel_download_application.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22013
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
Added file: http://bugs.python.org/file36007/parallel_download_application.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22013
___
Guido van Rossum added the comment:
Perhaps the API should take a socket object on Windows to avoid any confusion?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22018
___
STINNER Victor added the comment:
Perhaps the API should take a socket object on Windows to avoid any confusion?
I don't know if the feature is useful, but signal.set_wakeup_fd() works on
Windows since at least Python 2.7 and accepts files. Only supporting sockets
would be a regression.
Raymond Hettinger added the comment:
The example looks like something you could use concurrent.futures for
The example was minimal to show how it works. The concept of having groups of
related threads is perfectly general. It is a tool for organizing and
reasoning about code more complex
Terry J. Reedy added the comment:
To continue and expand some things I said in various messages above...
The reason Shell does not and indeed should not have a secondary line prompt is
that in Shell, ' ' means 'Enter a statement:' rather than just a line. Being
able to enter, edit, and recall
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
nosy: +Christian.Tismer, aleax, kristjan.jonsson, lemburg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22013
___
David Wilson added the comment:
I'm not sure the read only buffer test is strong enough: having a readonly
view is not a guarantee that the data in the view cannot be changed through
some other means, i.e. it is read-only, not immutable.
Pretty sure this approach is broken. What about the
Guido van Rossum added the comment:
So perhaps an int or a socket?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22018
___
___
Python-bugs-list
Raymond Hettinger added the comment:
c++
thread_group provides for a collection of threads that are related in some
fashion.
http://www.boost.org/doc/libs/1_35_0/doc/html/thread/thread_management.html#thread.thread_management.threadgroup
perl
Thread::Pool - group of threads for performing
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
Removed message: http://bugs.python.org/msg223544
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22013
___
Raymond Hettinger added the comment:
Even the Java API doesn't look very useful.
This isn't a Java-only concept. It is widely available. Here's a sample:
c++
thread_group provides for a collection of threads that are related in some
fashion.
Tin Tvrtković added the comment:
For your examples, my first instinct would be to use a thread pool executor.
It's a nice high level API and can already do the aggregate join.
--
nosy: +tinchester
___
Python tracker rep...@bugs.python.org
Claudiu Popa added the comment:
This seems indeed like a weaker version of ThreadPoolExecutor. Here's how your
example looks with it, not very different and still easy to understand and
grasp:
from concurrent.futures import ThreadPoolExecutor
from urllib.request import urlretrieve
with
STINNER Victor added the comment:
I don't understand. My patch works for files and sockets on all platforms.
What is the problem? You don't like the idea of checking the file type?
--
___
Python tracker rep...@bugs.python.org
Jim Jewett added the comment:
Ah... be the same object or compare equal sounds much better.
I don't want same to sound like an informal wording for equal, because
getting rid of the confusion over NaN and similar objects is the whole
point of the revision. On the other hand, I don't want the
Michael Rohan added the comment:
I recently implemented a custom logger derived from Logger and to get the
reporting of modules, etc, correct, I implemented the findCaller using
the same code as library code with the minor change of
if filename == _srcfile:
to
if filename in
Guido van Rossum added the comment:
My worry is that somehow a program has a fd that refers to both a file and a
socket. But I agree that changing the API is not a great option either.
--
___
Python tracker rep...@bugs.python.org
Changes by Andrew Barnert abarn...@yahoo.com:
Added file: http://bugs.python.org/file36008/pep-newline.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1152248
___
Changes by Andrew Barnert abarn...@yahoo.com:
Added file: http://bugs.python.org/file36009/pep-peek.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1152248
___
New submission from StupidHod:
When ntpath.join() works with a path that with Chinese character ,a unicode
Decode error will happen.
detailes as:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb2 in position 0: ordinal
not in range(128)
As the interparter said,it happened at
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22019
___
___
Python-bugs-list mailing
Zachary Ware added the comment:
What type are your arguments, str, unicode, or a mix? I can reproduce your
issue using a unicode and a str containing a non-ASCII character, while any
other combination works:
import os
os.path.join('test', 'test\x85')
'test\\test\x85'
os.path.join('test',
Ezio Melotti added the comment:
Agreed. Make sure that the arguments you are passing to ntpath.join() have the
same type (i.e. either both unicode, or both string).
--
nosy: +ezio.melotti
resolution: - not a bug
stage: - resolved
status: open - closed
StupidHod added the comment:
You are correct,the resultpath is unicode and path is str.Tks for your
comments.
2014-07-21 10:15 GMT+08:00 Ezio Melotti rep...@bugs.python.org:
Ezio Melotti added the comment:
Agreed. Make sure that the arguments you are passing to ntpath.join()
have the
Roundup Robot added the comment:
New changeset 847a0e74c4cc by Raymond Hettinger in branch '2.7':
Issue #21868: Prevent turtle crash due to invalid undo buffer size.
http://hg.python.org/cpython/rev/847a0e74c4cc
--
nosy: +python-dev
___
Python
Roundup Robot added the comment:
New changeset 02b25ec13c94 by Raymond Hettinger in branch '3.4':
Issue #21868: Prevent turtle crash due to invalid undo buffer size.
http://hg.python.org/cpython/rev/02b25ec13c94
--
___
Python tracker
Raymond Hettinger added the comment:
Thanks for the patch Lita. This was a nice fix.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21868
___
Raymond Hettinger added the comment:
Closing for the reasons listed and also because there is another pair of
tracker items 22000 and 22001 pursuing related documentation updates.
--
resolution: - not a bug
status: open - closed
___
Python tracker
80 matches
Mail list logo