Ronald Oussoren ronaldousso...@mac.com added the comment:
The script works fine for me (OSX 10.6.3, /usr/bin/python2.5,
/usr/bin/python2.6, a recent build of 2.6.x, a recent build of 3.2 and the
trunk)
The breakit example in msg93828 works in 64-bit binaries, and fails on 32-bit
ones. This
Martin v. Löwis mar...@v.loewis.de added the comment:
I agree that these tests are more integration tests than unit tests;
however, they are useful in exercising the code and options we provide
(otherwise we wouldn't know whether e.g. PROTOCOL_TLSv1 really does what
it claims to do).
I
Antoine Pitrou pit...@free.fr added the comment:
I don't think the test actually achieves that, as we are testing against
our own implementation (IIUC). To be sure that this really triggers the
right bytes on the wire, we would have to test against an independent
TLS implementation.
Yes,
Antoine Pitrou pit...@free.fr added the comment:
This is more of a documentation issue than anything else. The fact that the
argument is named maxsplit and accepts a default value doesn't mean it's
usable as a keyword argument. It would be difficult to document a parameter
without giving it a
Lars Gustäbel l...@gustaebel.de added the comment:
I think it is a good suggestion to use surrogateescape as the default,
because (I hope) it produces the fewest errors and is the best choice if
tarfile is used in connection with Python's filesystem calls.
- When reading tar headers,
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Ronald,
Did you forget to attach your patch? I don't see v3.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7900
STINNER Victor victor.stin...@haypocalc.com added the comment:
Reopen: r80703 (and r80711) introduces a new bug: on Windows, there is an empty
string between each line. It looks like a newline error.
replace_stdout() should set the newline argument to open(). But how can I get
the newline
New submission from Alex Quinn aq2...@alexquinn.org:
After using subprocess.Popen(...).communicate(), the session hangs.
c:\python31
Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on
win32
Type help, copyright, credits or license for more information.
from
Tres Seaver tsea...@agendaless.com added the comment:
This patch adds tests for the four edge cases (opening source fails, opening
dest fails, closing dest fails, closing source fails).
--
Added file:
http://bugs.python.org/file17229/issue4265-test_copyfile_exceptions.patch
New submission from Alex Quinn aq2...@alexquinn.org:
The documentation says subprocess replaces os.system(). However, subprocess
does not handle built-in Windows shell commands as os.system() does.
Works:
- os.system(dir /w)
- subprocess.Popen(cmd /c dir /w,
Nick Coghlan ncogh...@gmail.com added the comment:
I haven't looked at this in a while, but I do remember it was hard to get
working at all without a ridiculous number of false alarms - type
initialisation isn't the most straightforward thing in the world.
Agreed the warning for __cmp__
Nick Coghlan ncogh...@gmail.com added the comment:
(Not sure how relevant my second last paragraph is - I meant to take that out
after noticing the MRO details).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8627
New submission from STINNER Victor victor.stin...@haypocalc.com:
tarfile is unable to open a TAR archive in PAX format embedding invalid
filenames (filename not encoded in utf8, an undecodable filename). Attached
file is an example (contain the file b'z/\xff', not decodable from utf8).
PAX
A.M. Kuchling li...@amk.ca added the comment:
(commenting on a closed bug, because I'm not sure it should be re-opened)
While coming up with examples, I found a weird inconsistency. Was it
intentional for viewkeys() and viewitems() to support set operations, but not
viewvalues()?
d1 =
STINNER Victor victor.stin...@haypocalc.com added the comment:
Thank you for your review. I commited the patch as r80824 (I fixed the
documentation, :versionadded = :versionchanged), blocked as r80825 (3.2).
--
Unfortunately, POSIX says nothing about how to store bad filenames in
a pax
A.M. Kuchling li...@amk.ca added the comment:
The fix is easy, I think; just add Py_TPFLAGS_CHECKTYPES to the
PyDictValues_Type's definition.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8404
Philip Jenvey pjen...@underboss.org added the comment:
shell commands don't work because you're not specifying the shell=True argument
to Popen. This is covered in the subprocess Replacing os.system documentation
--
nosy: +pjenvey
resolution: - invalid
status: open - closed
Antoine Pitrou pit...@free.fr added the comment:
pthread_sigmask should be used instead. I could either expose both of
these and let the caller choose, or I could make signal.sigprocmask use
pthread_sigmask if it's available, and fall back to sigprocmask.
Or perhaps you could disable
Tres Seaver tsea...@agendaless.com added the comment:
Trying pthread_sigmask first, and falling back, seems like the right strategy
to me.
--
nosy: +tseaver
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8407
Alex Quinn aq2...@alexquinn.org added the comment:
Sorry. My mistake. Thanks for clarifying.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8632
___
Martin v. Löwis mar...@v.loewis.de added the comment:
I think you are misinterpreting the spec. A PAX file MUST encode its file names
in UTF-8. The invalid flag only applies when these invalid names cannot map
to file names - either because they are not supported in the locale, or because
Mark Dickinson dicki...@gmail.com added the comment:
Applied in r80832 (trunk), r80834 (py3k). Thanks, all.
--
assignee: - mark.dickinson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
I didn't read the whole spec, only read quickly the invalid option.
The idead behind this issue is to be able to read a file generated by GNU tar
which keeps the filename unchanged if it's not encodable to utf8. (z-pax.tar
Tarek Ziadé ziade.ta...@gmail.com added the comment:
committed in r80830, r80831, r80833 and r80835
Thanks all !
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Why do you expect dict_values to support set operations? Dict values unlike
keys are not sets, they are more like lists. Set operations of dict_values are
not supported in 3.x either.
--
nosy: +belopolsky
Mark Dickinson dicki...@gmail.com added the comment:
Perfect! Committed in r80836 (py3k); fixed that one test and comment in
r80842 in trunk.
Alexander, do you want to tackle the 2.6 backport?
BTW, I think in most cases it's unnecessary to add Python 3.3 to the Versions
field above, since
Mark Dickinson dicki...@gmail.com added the comment:
Bah. That's r80841, not r80842.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533
___
Changes by Mark Dickinson dicki...@gmail.com:
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533
___
___
Python-bugs-list mailing list
Mark Dickinson dicki...@gmail.com added the comment:
That should have been r80839, not r80842.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Alexander, do you want to tackle the 2.6 backport?
I've never done a maintenance branch backport, but here is my attempt:
1. Checkout release26-maint
2. Apply 80757:80758 diff, fix rejected NEWS patch
3. Ignore
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
keywords: +26backport
versions: -Python 2.7, Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533
George Sakkis george.sak...@gmail.com added the comment:
Just discovered this by chance; I would probably have noticed it earlier if the
docstring had been updated. Let me know if it needs a new documentation bug
ticket and I'll create one.
Pretty handy feature by the way, thanks for adding
A.M. Kuchling li...@amk.ca added the comment:
Ah, of course! It didn't occur to me that .values() isn't necessarily a set.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8404
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Wow, nice trick (shutil.open = func) :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4265
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8625
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
There is a couple of white-space only changes in the patch;
it would be good if you could reduce them.
When two paths open to you, you should always choose the most difficult (in
french: Quand deux chemins s'ouvrent à nous, il
STINNER Victor victor.stin...@haypocalc.com added the comment:
I notice an incompatible change: posix.environ has now a
different element type. This is probably fine.
I don't understand, what is an element type?
--
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
I tried your suggestion, but it seemed to me that it made the first paragraph
of that section be all about tabs, and get even farther away from its original
focus, which was introducing the example.
I've attached a patch that instead
Mark Hammond mhamm...@users.sourceforge.net added the comment:
I tried to use this in place of shlex for parsing IMAP responses for the
'imapclient' package. A couple of things struck me.
* The class no longer has a next() method but probably should be added for b/w
compat.
* The class no
Amos Anderson nitroa...@gmail.com added the comment:
I believe I applied the patch correctly to my Python-2.6.5.tar.bz2, on my OSX
10.6.3 machine, configured with:
./configure --enable-framework=/Users/amos/triad/trunk/src/python
but make install now fails with this error at the end:
ln:
Romulo A. Ceccon romulocec...@gmail.com added the comment:
I think WindowsError's message should be English like other errors.
FormatMessageW() function can take dwLanguageId parameter.
So I think Python should pass `MAKELANGID(LANG_ENGLISH,
SUBLANG_ENGLISH_US)` to the parameter.
On a
R. David Murray rdmur...@bitdance.com added the comment:
It turns out that email5 (py3k), because it is using unicode for the payload,
doesn't do the encoding to the output character set until later in the process.
Specifically, charset.body_encode no longer does the input-to-output charset
Brian Curtin cur...@acm.org added the comment:
Now that I have access to a Server 2008 R2 machine, I've verified that this fix
works there.
Committed in r80857 through r80860.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.1,
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
I think this is ready for a first review. See
http://codereview.appspot.com/1132041. If everyone agrees this is
inappropriate for 2.7, then I'll port the changes to 3.x. I don't expect there
to be much difference in the 3.x
Martin v. Löwis mar...@v.loewis.de added the comment:
I notice an incompatible change: posix.environ has now a
different element type. This is probably fine.
I don't understand, what is an element type?
In a container, the contents is sometimes called elements; their
type is the element
Changes by Ronald Oussoren ronaldousso...@mac.com:
Added file: http://bugs.python.org/file17234/os-getgroups-v3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7900
___
Ronald Oussoren ronaldousso...@mac.com added the comment:
Installing a framework anywhere but a reasonably standard location doesn't
work. You should try to build with
--enable-framework=$SOMEPREFIX/Library/Frameworks. Applications then get
installed in $SOMEPREFIX/Applications and
201 - 247 of 247 matches
Mail list logo