Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
At this point a feature change seems unlikely,
Amaury, it is not too late to fix anything that's broken. New features are
out, but we are free to fix anything hosed this badly.
--
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
But there are probably working usages with unicode strings out there. For
example, I've seen code like struct.pack('6sHHBBB', 'GIF87a', ...)
Do you suggest to make this 3.1 code stop working in 3.2?
In any case, the 'c' format should
STINNER Victor victor.stin...@haypocalc.com added the comment:
Amaury At this point a feature change seems unlikely,
Amaury but it's not too late to emit a DeprecationWarning.
I prefer to break the API today than having to maintain a broken API for
10 or 20 years :-) And we have a very small
Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r87524.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10773
Georg Brandl ge...@python.org added the comment:
Fine with me to fix this API during beta.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1823
___
Georg Brandl ge...@python.org added the comment:
By all means.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10738
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
Hmm, argparse is new, so that is a different story. Not so sure about
optparse, so I would not put this into 3.2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10766
Georg Brandl ge...@python.org added the comment:
Looks good.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9824
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
Committed in r87525.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10679
___
Georg Brandl ge...@python.org added the comment:
Alas, too late for 3.2 now.
--
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2775
___
Georg Brandl ge...@python.org added the comment:
Looks good. Would there be a point in making any of the parameters optional?
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10784
Georg Brandl ge...@python.org added the comment:
I agree this automatic conversion is broken and should be fixed. Not sure if
emitting a DeprecationWarning now and fixing it 18 months later is the right
thing, especially since DeprecationWarnings are now silent.
As Victor says, the
Martin v. Löwis mar...@v.loewis.de added the comment:
Looks good. Would there be a point in making any of the parameters optional?
No. The API should look exactly as it does on the system level. Anybody
calling these functions should know how call them.
--
Georg Brandl ge...@python.org added the comment:
Thanks, this should be fixed in r87526.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10777
Georg Brandl ge...@python.org added the comment:
Fixed in r87527. Terry, the reason why calling example() interactively failed
is the strange way __doc__ is imported -- it is None in your case and that
causes the Tkinter type error. I fixed this as well.
--
nosy: +georg.brandl
Georg Brandl ge...@python.org added the comment:
Fixed in r87530.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10767
___
Georg Brandl ge...@python.org added the comment:
Added in r87531.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10742
___
Georg Brandl ge...@python.org added the comment:
Fixed in r87532.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10781
___
Georg Brandl ge...@python.org added the comment:
Same for Misc/SpecialBuilds.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10708
___
Changes by Georg Brandl ge...@python.org:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6785
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
I agree that this belongs in the makefile docs. Fixed in r87535.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Georg Brandl ge...@python.org:
--
Removed message: http://bugs.python.org/msg123928
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10670
___
Georg Brandl ge...@python.org added the comment:
Fixed in r87536.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10609
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Since the Release Manager agrees with the change, I withdraw my objection.
I have three remarks to the patch:
- Some examples in the documentation should be fixed:
http://docs.python.org/dev/py3k/library/struct.html#examples
Antoine Pitrou pit...@free.fr added the comment:
I'm not sure how that's going to help as I don't want my library code
to be responsible for printing out exceptions, I just want them to
print reasonably -- and it seems very unreasonable to have the
exception I'm converting /from/ show up in
David Beazley d...@dabeaz.com added the comment:
As a user of Python 3, I would like echo Victor's comment about fixing the API
right now as opposed to having to deal with it later. I can only speak for
myself, but I would guess that anyone using Python 3 already understands that
it's
STINNER Victor victor.stin...@haypocalc.com added the comment:
Fixed by r87537. Thanks Amaury for your review!
I also removed some ugly (implicit) conversions from test_struct.
--
resolution: - fixed
status: open - closed
___
Python tracker
Georg Brandl ge...@python.org added the comment:
Thanks, Victor!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10783
___
___
Python-bugs-list
David Beazley d...@dabeaz.com added the comment:
Thanks everyone for looking at this!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10783
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Informations about SysV semaphores:
- functions: semget(), semop(), semctl(), ftok()
- http://perldoc.perl.org/IPC/SysV.html
- http://beej.us/guide/bgipc/output/html/multipage/semaphores.html
--
STINNER Victor victor.stin...@haypocalc.com added the comment:
Examples of programs using SysV semaphores:
http://firebird.cvs.sourceforge.net/viewvc/firebird/firebird2/src/jrd/isc_sync.cpp?revision=HEADview=markup
(Firebird, search #ifdef USE_SYS5SEMAPHORE sections)
Brian Curtin cur...@acm.org added the comment:
Thanks for having a look.
Checked in with the suggested changes to r87539.
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed this in r87542 in (py3k). unescape is undocumented helper method, so no
docs are added.
There was already an issue ( Issue6662) on malformed charref handling and it is
fixed.
--
resolution: - fixed
stage: patch review -
Senthil Kumaran orsent...@gmail.com added the comment:
r87544 (release27-maint) and r87545 (release31-maint).
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10759
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Committed backports:
r87540 (3.1)
r87541 (2.7)
r87546 (2.6)
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
versions: +Python 3.2
___
Changes by R. David Murray rdmur...@bitdance.com:
--
keywords: +easy
nosy: +michael.foord
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10786
Michael Foord mich...@voidspace.org.uk added the comment:
TextTestRunner is initialised with a stream to output messages on that defaults
to sys.stderr. The correct way to redirect messages is to construct it with a
different stream.
If you want a redirectable stream then construct the
Michael Foord mich...@voidspace.org.uk added the comment:
Actually I can't see a good reason why not to just lookup the *current*
sys.stderr at instantiation time instead of binding at import time as is the
current behaviour.
Patch with tests will make it more likely that this change goes in
New submission from David Kremer david.kremer...@gmail.com:
Could you please add the exact form of the distribution, because it's rather
confusing in the current form.
In this url, the role of k and theta is precised with a formula :
[http://tinyurl.com/24jxfrk]*
It seems that in
Brian Curtin cur...@acm.org added the comment:
Checked in a small doc update in r87547. Removes the part about os.symlink not
being available, and mentions the OSError.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9333
Antoine Pitrou pit...@free.fr added the comment:
+1 on simply removing this test. *.xmlrpc.com look(s) totally unmaintained.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6027
Éric Araujo mer...@netwok.org added the comment:
Is it on purpose that no sys.flags attribute has been added for quiet?
--
nosy: +eric.araujo
versions: +Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
I suggest this bug is superseded by #9878.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10764
___
New submission from Antoine Pitrou pit...@free.fr:
This on the Windows Server 2008 buildbot:
(http://www.python.org/dev/buildbot/all/builders/AMD64%20Windows%20Server%202008%203.x)
Re-running test 'test_logging' in verbose mode
test_flat (test.test_logging.BuiltinLevelsTest) ... FAIL
Éric Araujo mer...@netwok.org added the comment:
Great, thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10774
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10787
___
___
Python-bugs-list
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Indeed
--
resolution: - duplicate
status: open - closed
superseder: - Avoid parsing pyconfig.h and Makefile by autogenerating
extension module
___
Python tracker rep...@bugs.python.org
Michael Foord mich...@voidspace.org.uk added the comment:
No, issue 9878 can't be implemented for Python 2.7 whereas the issues other
implementations have with sysconfig *could* still be resolved in 2.7 as a
bugfix. (Specifically for IronPython on Mac OS X it would mean not assuming
that
Georg Brandl ge...@python.org added the comment:
No, pure ignorance -- should be fixed in r87549.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1772833
___
R. David Murray rdmur...@bitdance.com added the comment:
See also issue 6533.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6027
___
___
R. David Murray rdmur...@bitdance.com added the comment:
Committed to py3k in r87550. Since the only application that would trip up
would be one not using SimpleCookie to read SimpleCookie generated cookies
*and* that doesn't implement unescaping (in which case it wasn't really
handling
Terry J. Reedy tjre...@udel.edu added the comment:
3.2,3.1,2.7: r87553, r87554, r87555
--
assignee: - terry.reedy
components: +Library (Lib)
resolution: - fixed
status: open - closed
type: - behavior
___
Python tracker rep...@bugs.python.org
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
issue2636-20101228a.zip is a new version of the regex module.
It now compiles the pattern quickly.
--
Added file: http://bugs.python.org/file20182/issue2636-20101228a.zip
___
Python
Éric Araujo mer...@netwok.org added the comment:
argparse is not new if you consider that it’s present in 2.7.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10766
___
Brian Quinlan br...@sweetapp.com added the comment:
Fixed in r87556.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10626
___
Brian Curtin cur...@acm.org added the comment:
Looks like this might be an issue with the Windows Server 2008 build slave. I
restarted it last night and a bunch of builds after that have failed due to
this test.
--
resolution: fixed -
stage: committed/rejected -
status: closed -
Ethan Furman et...@stoneleaf.us added the comment:
Besides, if you are writing library code (as opposed to application
code), you shouldn't care at all how tracebacks are displayed, should
you?
I care when it lies:
During handling of the above exception, another exception occurred:
This is
Jacques Grove jacq...@tripitinc.com added the comment:
Thanks, issue2636-20101228a.zip also resolves my compilation speed issues I had
on other (very) complex regexes.
Found this one:
re.search((X.*?Y\s*){3}(X\s*)+AB:, XY\nX Y\nX Y\nXY\nXX AB:)
produces a search hit with stock python 2.6.5
Antoine Pitrou pit...@free.fr added the comment:
During handling of the above exception, another exception occurred:
This is a blatant falsehood -- another exception did not occur, a
different exception was raised.
This doesn't make any difference in any other context, so why would it
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I like the idea, but I don't like the trend that parser code continues to
diverge from pgen. I understand that most of the Python runtime is not
available to pgen, but maybe a more elegant solution than changing the type
Ethan Furman et...@stoneleaf.us added the comment:
During handling of the above exception, another exception occurred:
This is a blatant falsehood -- another exception did not occur, a
different exception was raised.
This doesn't make any difference in any other context, so why would it
Ron Adam ron_a...@users.sourceforge.net added the comment:
Here is a tentative start on this. (css_v1.diff)
The css file is much better. It's shorter, simpler and validated.
The header and navbar panel use it in the new server.
Added a markup call to the topic page contents. (The same
STINNER Victor victor.stin...@haypocalc.com added the comment:
maybe a more elegant solution than changing the type conditional
on PGEN can be found
In pgen, the filename is only used to display the following warning, in
indenterror():
filename: inconsistent use of tabs and spaces in
STINNER Victor victor.stin...@haypocalc.com added the comment:
When testing my patch, I found and fixed two bugs in pgen:
- r87557: PGEN was not defined to compile pgenmain.c and printgrammar.c
- r87558: pgen error was ignored on make Parser/pgen.stamp (when executing
pgen to compile the
STINNER Victor victor.stin...@haypocalc.com added the comment:
Version 2 of the patch:
- remove filename attribute from perrdetail and tok_state structure in PGEN
mode, and add a comment to explain why
- rename filename_obj to filename
- indenterror() no longer print the input filename in
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5672
___
___
Antoine Pitrou pit...@free.fr added the comment:
and, finally, if all I have is
except ValueError as exc:
raise AttributeError(blah)
I just get the normal, previous context free, traceback.
And what if the exception is raised from a subroutine?
--
Ethan Furman et...@stoneleaf.us added the comment:
And what if the exception is raised from a subroutine?
Well, if I have it surrounded by a try/except block, presumably I'm aware that
an exception could be raised. ;)
And if I'm aware that an exception could be raised, it may also be
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also #5725.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10348
___
___
Antoine Pitrou pit...@free.fr added the comment:
And what if the exception is raised from a subroutine?
Well, if I have it surrounded by a try/except block, presumably I'm
aware that an exception could be raised. ;)
I'm talking about the exception raised from the except block.
Jacques Grove aquara...@gmail.com added the comment:
Here is a somewhat crazy pattern (slimmed down from something much larger and
more complex, which didn't finish compiling even after several minutes):
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
issue2636-20101229.zip is a new version of the regex module.
It now compiles the pattern quickly.
--
Added file: http://bugs.python.org/file20185/issue2636-20101229.zip
___
Python tracker
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Tests now fail on windows XP:
http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/3874/steps/test/logs/stdio
os.symlink() may raise NotImplementedError, and test.support.can_symlink()
should catch it.
--
Ethan Furman et...@stoneleaf.us added the comment:
I'm talking about the exception raised from the except block.
So was I -- why should this:
try:
x = y / z
except ZeroDivisionError as exc:
raise InvalidInput()
be different from this:
try:
x = divide_and_conquer(y, z)
except
Giampaolo Rodola' g.rod...@gmail.com added the comment:
If somebody would provide a patch that adds prctl to the posix module,
that would be fine with me - we have a long tradition of exposing all
available system calls if somebody wants them.
Just for the record, I was about to try to do
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also http://semanchuk.com/philip/sysv_ipc/: System V IPC for Python -
Semaphores, Shared Memory and Message Queues
--
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Sat, Nov 27, 2010 at 5:03 PM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
..
* this version should be slightly faster and is also easier to read:
#define Py_UCS4_READ_CODE_POINT(ptr, end) \
..
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8654
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6210
___
___
Python-bugs-list
Brian Curtin cur...@acm.org added the comment:
Oops, sorry. Fixed in r87561.
--
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9333
Martin v. Löwis mar...@v.loewis.de added the comment:
Just for the record, I was about to try to do this, when I realized that
exposing prctl requires expecting a variable number of arguments with
variable types.
It turns out providing a Python wrapper for such a kind of C API is just a
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I am attaching a patch for commit review. I added an underscore prefix to all
new macros. This way I am not introducing new features and we will have a full
release cycle to come up with better names. i would just note
Brian Curtin cur...@acm.org added the comment:
This isn't failing in manual runs of regrtest -uall on that machine.
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8618
Senthil Kumaran orsent...@gmail.com added the comment:
r87564 (py3k), r87565 (release31-maint) and r87566 (release27-maint).
Just a Note.
These kind of minor changes have many a times resulted in regression for
developers who relied upon previous bad behavior. I have added NEWS to explain
84 matches
Mail list logo