Petri Lehtinen added the comment:
Andrew: Generally all changes deserve a Misc/NEWS entry, see:
http://docs.python.org/devguide/committing.html#news-entries
The feature was new in 3.3, but this change only went in after the release of
3.3.0, so ISTM that a Misc/NEWS entry is required.
Antoine Pitrou added the comment:
test.support will become a package in 3.3 and trunk after the final 3.2
release goes out.
Excessively large source files are a sign of bad software design.
Do you weigh in the python-dev discussion about splitting
unicodeobject.c?
--
Antoine Pitrou added the comment:
s/Do you weigh in/Do you want to weigh in/, sorry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15494
___
Chris Jerdonek added the comment:
Excessively large source files are a sign of bad software design.
Do you [want to] weigh in the python-dev discussion about splitting
unicodeobject.c?
Nick did weigh in starting here:
http://mail.python.org/pipermail/python-dev/2012-October/122391.html
New submission from Inyeol Lee:
Ubuntu 12.04, python 3.2.3
Optional trailing comma causes syntax error if used for keyword-only argument
list:
These are OK --
def f(a, b,): pass
def f(a, b=None,): pass
These triggers syntax error --
def f(a, *, b,): pass
def f(a, *, b=None,): pass
python
Antoine Pitrou added the comment:
Ah, ok. Perhaps I should read python-dev before talking about it!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15494
___
Nick Coghlan added the comment:
I already did, that thread 'tis a large part of why I'm somewhat irritable in
relation to this topic today. Huge source files are inherently bad because
they provide no hint as to the modular breakdown and encourage excessive
coupling between subcomponents is
Janne Karila added the comment:
I'm working on the test. It keeps failing...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16307
___
___
anatoly techtonik added the comment:
That's not an argument. I am asking about it in general.
Another wart of Python.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16299
___
Chris Rebert added the comment:
No, the thought merely did not occur to me. I don't recall having seen such
forward-looking notes in Python's documentation before.
Should the pipes.quote() mention be axed from the 3.x patch?
--
___
Python tracker
Chris Jerdonek added the comment:
I could be misinterpreting the documentation, but it looks to me like the
examples given are behaving as documented:
parameter_list ::= (defparameter ,)*
( * [parameter] (, defparameter)*
[, ** parameter]
Chris Jerdonek added the comment:
Duplicate of issue 9232 (enhancement request).
--
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - Allow trailing comma in any function argument list.
___
Python tracker
Ronald Oussoren added the comment:
For the record: I agree with Ned, the patch is not needed at this time and
won't work as is anyway (in particular: tar on OSX does not have an 'J' option,
so even if you install the lzma tools the patch won't work)
--
Roundup Robot added the comment:
New changeset e816851fb30d by Andrew Svetlov in branch '3.3':
Update NEWS for issue #16241
http://hg.python.org/cpython/rev/e816851fb30d
New changeset af93948ca33d by Andrew Svetlov in branch 'default':
Update NEWS for issue #16241
Andrew Svetlov added the comment:
Well, I have updated the NEWS file.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16241
___
___
Armin Rigo added the comment:
Attached the diff, in case we want to do that. The diff is only about
non-Windows platforms, given that it follows a Posix use case about PATH. But
do we also need to change PC/getpathp.c?
--
keywords: +patch
Added file:
New submission from Serhiy Storchaka:
The proposed patch reorganizes the dependencies for bytes and strings. Now
object files depended only from needed (and from all needed) headers. This will
reduce the compilation time when modifying the bytes implementation.
--
components: Build,
Serhiy Storchaka added the comment:
OK. I thought that xz support was just forgot. The xz compression was very
popular in the Linux distributives over the past few years.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16315
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16320
___
___
New submission from Serhiy Storchaka:
The Objects/stringlib directory used for templates which instantiates for
specified bytes or unicode kinds. Objects/stringlib/eq.h has no relation to
this templates and should be moved out (as Objects/unicode_eq.h for example).
Also it should be removed
Giampaolo Rodola' added the comment:
Have you tried to see what happens in passive mode (use: ftps.set_pasv(True))?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16318
___
Roundup Robot added the comment:
New changeset 19ed42e84030 by Mark Dickinson in branch '3.3':
Issue #16305: Merge fix from 3.2.
http://hg.python.org/cpython/rev/19ed42e84030
New changeset cbdd6852a274 by Mark Dickinson in branch 'default':
Issue #16305: Merge fix from 3.3.
Janne Karila added the comment:
Three test cases added.
The tricky part in writing the tests was to realize that when the tests are run
with Manager, the callback goes through a proxy object.
--
Added file: http://bugs.python.org/file27711/test_callback.patch
Mark Dickinson added the comment:
Fixed in 3.2, 3.3 and default. Thanks Amaury for the report and diagnosis!
(I forget to add the issue number in the 3.2 commit: the changeset is
b4bfcf7a4773.)
--
resolution: - fixed
status: open - closed
___
Stefan Holek added the comment:
What we are trying to do is make distribute work with non-ASCII filenames, and
this is one of the things we ran into.
Fact 1: Filenames are bytes, whether you like it or not. Treating them as
strings is going to give you more trouble than dragging the bytes
New submission from Masami HIRATA:
OS: Windows 7 Starter Edition SP1 (32-bit) Japanese version
Python: 3.3.0 for Windows x86 (python-3.3.0.msi)
time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding.
C:\Python33python.exe
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48)
Serhiy Storchaka added the comment:
If we allow for surrogates in the names, it will not correct UTF-8. This can
breaks other software.
We should clear 11th flag bit in this case.
--
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
Umm, WTF? You're really asking me to justify the basic software
engineering principle that modularity is good,
I'm aware of the principle -- what I'm asking is what practical advantages this
will bring (practicality beats purity).
and wanting to dump
Serhiy Storchaka added the comment:
I see in 3.3 PyUnicode_DecodeFSDefaultAndSize() was replaced by
PyUnicode_DecodeLocale().
What show sys.getdefaultencoding(), sys.getfilesystemencoding(), and
locale.getpreferredencoding()?
--
components: +Extension Modules
keywords: +3.3regression
Andrew Svetlov added the comment:
I think patch for 3.3 should mention only shlex.quote.
I don't care about 2.7 patch but it looks good to me.
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14616
New submission from Serhiy Storchaka:
The documentation for PyUnicode_DecodeLocale() and PyUnicode_EncodeLocale() are
wrong. The second parameter described as int surrogateescape, but actually it
is const char *errors.
--
assignee: docs@python
components: Documentation, Unicode
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16272
___
___
Éric Araujo added the comment:
readlines might be discouraged; readline has its use cases (two days ago I used
it to get one line to pass to csv.Sniffer.sniff), but next(file) works too, so
it could be de-emphasized. There may be a difference with respect to the
trailing newline however; I
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13510
___
Martin v. Löwis added the comment:
Since basic software engineering principles have been invoked, I'd like to
point out that many of the standard motivations to modularization don't apply
in this case. So it is fair to ask what *specific* benefits such a
restructuring may have. Such a
Armin Rigo added the comment:
Attached another simpler diff (only one + line instead of two...).
--
Added file: http://bugs.python.org/file27712/pythonpath2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16309
New submission from Claude Paroz:
When initializing a MIMEText instance, it might be desirable to set the
_charset parameter to a real Charset instance, not only a charset identifier
(for example to pass a Charset with customized body_encoding). Unfortunately,
this is failing:
File
Serhiy Storchaka added the comment:
The ZIP specification says:
If general purpose bit 11 is unset, the file name and comment should conform
to the original ZIP character encoding. If general purpose bit 11 is set, the
filename and comment must support The Unicode Standard, Version 4.1.0 or
Serhiy Storchaka added the comment:
Related issues: issue10614, issue10757, issue10972.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16310
___
Ezio Melotti added the comment:
Doing that now will be backward incompatible, because people might be using
these functions already even if they are not documented. An alias could be
created, but I'm not sure it's worth doing it.
--
nosy: +ezio.melotti
status: pending - open
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16216
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
components: +Library (Lib)
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16217
___
Eric Snow added the comment:
Given how confusing it seems, perhaps we should change it to
adopt a PATH-like behaviour.
Wouldn't that introduce a backward-compatibility issue? FWIW, otherwise I
agree that it makes a lot of sense to conform to the same behavior as PATH.
--
nosy:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +eli.bendersky
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16219
___
Serhiy Storchaka added the comment:
LGTM.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16309
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16309
___
___
Ezio Melotti added the comment:
I would use It is possible to remove rather than One can remove, but
otherwise the patch LGTM.
--
nosy: +eric.araujo, ezio.melotti, terry.reedy
stage: needs patch - patch review
___
Python tracker
Ezio Melotti added the comment:
Attached a patch that modifies some of the example in the section.
- x = x * 2 - 1
- hypot2 = x * x + y * y
+ x = x*2 - 1
+ hypot2 = x*x + y*y
Here I used more space around operators with lower priority.
- x = x*2 - 1
- hypot2 =
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, pitrou
type: - behavior
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16271
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16285
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16286
___
New submission from Serhiy Storchaka:
PEP 8 refers to Guido's original Python Style Guide essay
(http://www.python.org/doc/essays/styleguide.html), but the essay was removed,
only link to PEP 8 (and PEP 257) left.
--
assignee: docs@python
components: Documentation
messages: 173773
Amaury Forgeot d'Arc added the comment:
Looking at the CRT source code, tznames should be decoded with mbcs.
See also http://mail.python.org/pipermail/python-3000/2007-August/009290.html
--
nosy: +amaury.forgeotdarc
___
Python tracker
Ezio Melotti added the comment:
The link might still be OK, otherwise we could copy the note directly in the
PEP.
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16325
Serhiy Storchaka added the comment:
- x = x * 2 - 1
- hypot2 = x * x + y * y
Why you remove this?
- c = (a+b) * (a-b)
+ c = a+b * a-b
This changes the semantic.
but otoh 'x*2 - 1' is a better alternative.
Can you justify this?
--
nosy: +serhiy.storchaka
Fred L. Drake, Jr. added the comment:
Better (IMO):
Wrap the meta-characters in brackets for a literal match. For example,
``'[?]'`` matches the character ``'?'``.
--
nosy: +fdrake
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
I think patch for 3.3 should mention only shlex.quote.
+1
I'm not sure what's the best thing to do about pipes.quote. Pointing to an
undocumented function that is available in 3.3 in a different module doesn't
sound like a really good idea.
Maybe we could
Ezio Melotti added the comment:
- x = x * 2 - 1
- hypot2 = x * x + y * y
Why you remove this?
As I explained in my previous message, even if valid, these are IMHO less clear
than x*2 - 1 and x*x + y*y.
- c = (a+b) * (a-b)
+ c = a+b * a-b
This changes the semantic.
Serhiy Storchaka added the comment:
My patch was only example. Commit what you feel is better.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16240
___
Ezio Melotti added the comment:
For a literal match, wrap the meta-characters in brackets. For example,
``'[?]'`` matches the character ``'?'``.
Stating the goal at the beginning of the sentence will make this easier to find
while skimming through the doc.
--
Serhiy Storchaka added the comment:
I think there is no sense to refer to removed document. If Guido's original
essay saved somewhere, than PEP 8 should refer to this copy. Otherwise
meaningless link should be removed.
--
___
Python tracker
Ezio Melotti added the comment:
Do you think something like the attached patch would be OK?
--
keywords: +patch
stage: - patch review
Added file: http://bugs.python.org/file27714/issue16325.diff
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
As I explained in my previous message, even if valid, these are IMHO less
clear than x*2 - 1 and x*x + y*y.
I don't feel this. Anyone else feel this? It seems to me, this is a serious
change in the Style Guide.
It does indeed, but I think it's worth
Serhiy Storchaka added the comment:
As I understand, OP has UTF-8 locale.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16322
___
___
Ezio Melotti added the comment:
As I see it:
For c = (a + b) * (a - b) the hint (and the actual priority) is given by the
(), the spaces around the +/- are not necessary but don't affect readability.
For c = (a+b) * (a-b) the hints are given both by the () and the spacing, the
lack of
Serhiy Storchaka added the comment:
LGTM, but I'm not well competent to assess these changes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16325
___
Andrew Svetlov added the comment:
Update: test_ttk_guionly hangs on Ubuntu with Unity.
It passed on Arch as well as on Ubuntu via xvfb-run.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14799
Andrew Svetlov added the comment:
Fir Unity it hangs on Tcl_ConditionWait inside Tcl_DoOneEvent function.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14799
___
Serhiy Storchaka added the comment:
For me it passed with Openbox and Compiz, but fails with KWin.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14799
___
Chris Jerdonek added the comment:
If you are planning to further split support.py, then I'm -1.
Ezio, this issue is not to split up support.py. Nick already responded to you
to this effect in the fourth comment above. Also, in the second comment to
this issue, I said that this issue was to
Ezio Melotti added the comment:
Ezio, this issue is not to split up support.py. Nick already responded
to you to this effect in the fourth comment above.
Indeed, I should have re-read the messages more carefully.
Also, in the second comment to this issue, I said that this issue was
to
R. David Murray added the comment:
Every sizeable (and some not-so-sizeable) Python projects I've worked on have
one or more 'utils' modules that collect stuff that doesn't logically fit
elsewhere. That's what test.support is for the test infrastructure.
I agree that we should not talk in
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16155
___
___
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +belopolsky, haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16322
___
___
R. David Murray added the comment:
I don't think you missed anything. It doesn't look like this has ever worked,
but you'd certainly think it would. The documentation doesn't claim anything
about it one way or another. That probably means we should treat it as an
enhancement rather than a
Claude Paroz added the comment:
It's fine for me to consider it as an enhancement. The fix might be as simple
as replacing **{'charset': _charset} by **{'charset': str(_charset)} in
MIMEText __init__.
--
___
Python tracker rep...@bugs.python.org
Antonio Chay added the comment:
Hello there!
I have the same issue, using CentOS 5.8, I *reversed* this patch:
http://bugs.python.org/issue8205
and now make install works.
A side note: before it failed to compile _multiprocessing, with the patch
reversed now is included.
HTH.
Regards!
New submission from Andy Salnikov:
Hi,
when trying to build extension modules with distutils I ran into
a problem that linking fails with an errors like:
gcc -pthread -shared -L build/temp.linux-x86_64-2.7/h5py/defs.o
-L/reg/g/psdm/sw/external/hdf5/1.8.4p1/x86_64-rhel6-gcc44-opt/lib -L.
Roger Serwy added the comment:
Issue7883 also has a test.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15392
___
___
Python-bugs-list mailing
STINNER Victor added the comment:
I see in 3.3 PyUnicode_DecodeFSDefaultAndSize() was replaced
by PyUnicode_DecodeLocale().
Related changes:
- 8620e6901e58 for the issue #5905
- 279b0aee0cfb for the issue #13560
I wrote 8620e6901e58 for Linux, when the wcsftime() function is missing.
The
Martin v. Löwis added the comment:
This may increasingly get off-topic, so I'll stop with generalities after this
post.
I find the effect of modularization on discoverability to be two-sided.
On the one hand, splitting functionality into groups helps discoverability,
since you don't have to
Jeremy Brock added the comment:
Hello Giampaolo,
It is the same timeout in PASV with Prot_P, please see attached documentation.
Something I did not mention before is that the file being written shows up on
the server but I can't view it because it is being used by another process.
When the
Hieu Nguyen added the comment:
Submitted another patchs for py3k and python 2.7
--
Added file: http://bugs.python.org/file27716/issue16306_py3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
Changes by Hieu Nguyen ndhie...@gmail.com:
Added file: http://bugs.python.org/file27717/issue16306_py27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
Changes by Hieu Nguyen ndhie...@gmail.com:
--
nosy: +hieu.nguyen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9192
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9192
___
Berker Peksag added the comment:
Here's a patch that adds an example of using `inspect.formatargspec`.
--
keywords: +patch
nosy: +berker.peksag
Added file: http://bugs.python.org/file27718/inspect-formatargspec-example.patch
___
Python tracker
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: -berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11060
___
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: -berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11880
___
___
Berker Peksag added the comment:
Chris, did you have a chance to review the patch I submitted?
The only usage of `iter_importers` function in stdlib is in
`iter_modules` function:
http://hg.python.org/cpython/file/cbdd6852a274/Lib/pkgutil.py#l139
--
New submission from Mark Gius:
When subprocess.Popen is called with subprocess.PIPE and os.fork() fails (due
to insufficient memory for example), the pipes created by _get_handles() are
not closed.
Steps to reproduce:
1) Launch a python shell, import subprocess
2) Create a situation where
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +gregory.p.smith, neologix
stage: - patch review
versions: +Python 3.2, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16327
Serhiy Storchaka added the comment:
LGTM.
--
nosy: +serhiy.storchaka
stage: - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
Masami HIRATA added the comment:
What show sys.getdefaultencoding(), sys.getfilesystemencoding(), and
locale.getpreferredencoding()?
C:\Python33python.exe
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (In
tel)] on win32
Type help, copyright, credits or license
Changes by Hieu Nguyen ndhie...@gmail.com:
--
nosy: +hieu.nguyen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12317
___
___
Python-bugs-list
Changes by Hieu Nguyen ndhie...@gmail.com:
--
nosy: +hieu.nguyen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14266
___
___
Python-bugs-list
Mark Gius added the comment:
Just read the docs for stdin and stdout. This patch will indtroduce a bug
where a provided file descriptor can be closed. This definitely shouldn't
close a file descriptor that isn't created by _get_handles(). I'll update.
--
Mark Gius added the comment:
Patch now only closes pipe fds created by Popen
--
Added file: http://bugs.python.org/file27720/fd_leak_fix_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16327
Winston451 added the comment:
Hi,
I'm currently developping an application which runs sub interpreters in threads
(one sub interpreter per thread). When I try to use readline completion in
these sub interpreters it fails because it's not possible to import the
keyword module
Changes by Gregory P. Smith g...@krypto.org:
--
assignee: - gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16327
___
___
1 - 100 of 113 matches
Mail list logo