Georg Brandl ge...@python.org added the comment:
IMO these symbols should go to the stat module, not the posix module.
However, that module is Python, so the values would need to be hardcoded. Do
you know whether they are constant on all relevant systems?
--
assignee: - loewis
Georg Brandl ge...@python.org added the comment:
Thanks, added Python in r77382, r77383.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7422
___
Changes by Georg Brandl ge...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7441
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
Can this be closed?
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7498
___
Martin v. Löwis mar...@v.loewis.de added the comment:
I think having a stat module is a mistake in the first place. It's primary
purpose (giving symbolic names to fields in a stat result) is out-of-date, now
that we have named tuples. It's secondary purpose (collecting symbolic
constants and
Georg Brandl ge...@python.org added the comment:
Okay. Would it then make sense to migrate those constants in the stat module
to posix, and deprecate the former?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7647
Georg Brandl ge...@python.org added the comment:
I'm attaching a patch that changes quote() logic. It also fixes #7476, the
empty argument case.
Strings with unsafe characters are now always quoted with single quotes. Single
quotes themselves are replaced by a single quote in double quotes,
Walter Dörwald wal...@livinglogic.de added the comment:
IMHO this is the wrong approach.
As Martin v. Löwis suggested here
http://mail.python.org/pipermail/python-dev/2010-January/094841.html the best
solution would be a new codec (which he named sniff), that autodetects the
encoding on
Changes by R. David Murray rdmur...@bitdance.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7498
___
___
Benjamin Peterson benja...@python.org added the comment:
This can wait.
--
priority: release blocker - deferred blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Michael Foord mich...@voidspace.org.uk added the comment:
Wouldn't this be a backwards incompatible change of tested behaviour though?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7559
Mark Dickinson dicki...@gmail.com added the comment:
Second patch, adding a fix for the rounding bug to the first patch.
--
Added file: http://bugs.python.org/file15796/issue7632_v2.patch
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
Here's the (rather crude) testing program that turned up these errors.
--
Added file: http://bugs.python.org/file15797/test_dtoa.py
___
Python tracker rep...@bugs.python.org
anatoly techtonik techto...@gmail.com added the comment:
New version detects DST using time.daylight flag.
utcoffset = -(time.altzone if time.daylight else time.timezone) // 60
--
Added file:
http://bugs.python.org/file15798/diff.py_iso_timestamps_true_with_dst.diff
R. David Murray rdmur...@bitdance.com added the comment:
Since there's no response I'm closing this as 'works for me'.
--
nosy: +r.david.murray
priority: - normal
resolution: - works for me
stage: - committed/rejected
___
Python tracker
Michael Foord mich...@voidspace.org.uk added the comment:
I'm unhappy with a straight change in behaviour because it will break code that
is currently catching AttributeError.
A slightly less invasive change would be to raise an AttributeError if the
module doesn't exist, otherwise letting
Changes by Michael Foord mich...@voidspace.org.uk:
--
assignee: - michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7559
___
___
New submission from anatoly techtonik techto...@gmail.com:
The proposal to add the function that will allow to get current UTC offset. Do
we need a PEP for this one?
def time.utcoffset():
Return current UTC offset in seconds
return -(time.altzone if time.daylight else time.timezone)
Changes by R. David Murray rdmur...@bitdance.com:
--
priority: - normal
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - smtplib is broken in Python3
___
Python tracker rep...@bugs.python.org
Changes by anatoly techtonik techto...@gmail.com:
--
title: time.utcoffset(dst=true) - time.utcoffset()
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7662
___
R. David Murray rdmur...@bitdance.com added the comment:
This turns out to be a duplicate of issue 5610, which has a better solution.
--
resolution: - duplicate
stage: patch review - committed/rejected
status: open - closed
superseder: - email feedparser.py CRLFLF bug: $ vs \Z
Nick Bastin nick.bas...@gmail.com added the comment:
A more appropriate patch should be (for 2.7 trunk - I'm grabbing a checkout of
3.2 trunk now):
Index: build_ext.py
===
--- build_ext.py(revision 77388)
+++ build_ext.py
Martin v. Löwis mar...@v.loewis.de added the comment:
configure.in has the same action for NetBSD*|FreeBSD*|DragonFly*, so I think
distutils should parallel that. Not sure what sys.platform would be on the
other BSDs, though.
--
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
Tests applied to trunk in r77391. Are you interested in producing a py3k
version of the patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7532
STINNER Victor victor.stin...@haypocalc.com added the comment:
So, would this fix be part of python 2.7?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7478
___
Changes by Mark Dickinson dicki...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3366
___
___
Changes by Mark Dickinson dicki...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4294
___
___
Changes by Benjamin Peterson benja...@python.org:
--
priority: deferred blocker - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
___
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Committed in r77394. Thank you for the good reviews!
--
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Christophe Simonis simonis.christo...@gmail.com added the comment:
I followed the advice of Raymond and implement a descriptor on partial.
--
keywords: +patch
Added file: http://bugs.python.org/file15800/issue4331.patch
___
Python tracker
Brian Curtin cur...@acm.org added the comment:
Using time.daylight is incorrect. time.daylight specifies the number of hours
that the daylight offset is, not a flag to specify whether or not daylight
savings time is in effect.
Steven's suggestion of using time.localtime().tm_isdst seems to be
Brian Curtin cur...@acm.org added the comment:
I think this would be nice, but see msg97471 from your diff.py ISO timestamp
issue. time.daylight should probably be time.localtime().tm_isdst.
--
nosy: +brian.curtin
type: - feature request
versions: -Python 3.1
Runar Tenfjord runar.tenfj...@gmail.com added the comment:
Multi threading:
According to http://www.sqlite.org/cvstrac/wiki?p=MultiThreading
we need to keep a connection for each thread to support multi threaded
access to the database.
I came across this when deploying an application in a
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Committed in r77398.
--
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6688
Florent Xicluna la...@yahoo.fr added the comment:
Here it is, with some cleaning and simple Bytes/Bytearray tests.
And Bytearray tests backported to 2.7.
--
Added file: http://bugs.python.org/file15801/issue7532_wontfix_tests_py3k.diff
___
Python
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file15802/issue7532_bytearray.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7532
___
Georg Brandl ge...@python.org added the comment:
Really adding the patch now.
--
keywords: +patch
Added file: http://bugs.python.org/file15803/pipes.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7507
Changes by Florent Xicluna la...@yahoo.fr:
Removed file: http://bugs.python.org/file15801/issue7532_wontfix_tests_py3k.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7532
___
Changes by Florent Xicluna la...@yahoo.fr:
Added file: http://bugs.python.org/file15804/issue7532_wontfix_tests_py3k.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7532
___
Nick Bastin nick.bas...@gmail.com added the comment:
NetBSD is netbsd* and DragonFly is dragonfly* (currently dragonfly2, although I
suspect in this way dragonfly1 was identical, if it ever existed).
--
___
Python tracker rep...@bugs.python.org
Alexandre Vassalotti alexan...@peadrop.com added the comment:
It been a long week, but this patch is now committed as r77400.
--
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
Florent Xicluna la...@yahoo.fr added the comment:
Proposed in the patch for issue #7622.
--
stage: needs patch -
superseder: - [patch] improve unicode methods: split() rsplit() and replace()
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
Here I come with a patch! nirai idea was the good one: prealloc PyThreadState
before creating the thread. Raise a MemoryError if the allocation fail, instead
of raising a *fatal* Python error.
Patch is quite simple and allow
Florent Xicluna la...@yahoo.fr added the comment:
Since nobody (and no bot) reported this error in twelve months,
we may close it.
--
resolution: - works for me
status: open - pending
___
Python tracker rep...@bugs.python.org
Changes by Florent Xicluna la...@yahoo.fr:
--
keywords: +patch
Added file: http://bugs.python.org/file15806/issue7643_remove_deprecation.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7643
STINNER Victor victor.stin...@haypocalc.com added the comment:
This issue was fixed by r68768 for issue #3321.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3311
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3311
___
___
Florent Xicluna la...@yahoo.fr added the comment:
Here is draft of the patch to do what is proposed by Marc André on msg97440
(add VT and FF).
Additionnally I upgraded the UCD 5.1 - 5.2.
The implementation uses field 16 as defined in py3k implementation of
makeunicodedata.py. It should
Skip Montanaro s...@pobox.com added the comment:
Updated the patch against the latest version of cPickle.c (r77393). All tests
pass on my Mac.
--
nosy: +skip.montanaro
Added file: http://bugs.python.org/file15808/cPickle.-r77393.patch
___
Python
Changes by Richard Hansen rhan...@bbn.com:
Removed file:
http://bugs.python.org/file15729/unicode_escape_single_and_double_quotes.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7615
___
Changes by Richard Hansen rhan...@bbn.com:
Removed file: http://bugs.python.org/file15771/unicode_escape_reorg.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7615
___
Changes by Richard Hansen rhan...@bbn.com:
Removed file: http://bugs.python.org/file15774/unicode_escape_tests.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7615
___
Changes by Richard Hansen rhan...@bbn.com:
Removed file: http://bugs.python.org/file15775/raw_unicode_escape_tests.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7615
___
Richard Hansen rhan...@bbn.com added the comment:
Attaching updated unit tests. The tests now check to make sure that single and
double quotes are escaped.
--
Added file: http://bugs.python.org/file15809/unicode_escape_tests.patch
___
Python
Richard Hansen rhan...@bbn.com added the comment:
Attaching a minimal patch:
* unicode_escape now backslash-escapes single and double quotes
* raw_unicode_escape now unicode-escapes single and double quotes
* raw_unicode_escape now unicode-escapes backslashes
* removes pickle's escaping
Richard Hansen rhan...@bbn.com added the comment:
Attaching a patch for an issue discovered while looking at the code:
* The UTF-16 decode logic in the Unicode escape encoders no longer reads past
the end of the provided Py_UNICODE buffer if the last character's value is
between 0xD800 and
Richard Hansen rhan...@bbn.com added the comment:
Attaching a patch for another issue discovered while looking at the code:
* The Unicode escape encoders now check to make sure that the provided size
is nonnegative.
* C API documentation updated to make it clear that size must be
R. David Murray rdmur...@bitdance.com added the comment:
The patch looks good to me, except that one test fails. You seem to have
inadvertently deleted the '=' from the safe chars list in the test.
We should also add a test for the '' case. And presumably the docs requested
in the other
Richard Hansen rhan...@bbn.com added the comment:
Attaching a patch that eliminates duplicate code:
* Merge unicodeescape_string(), PyUnicode_EncodeRawUnicodeEscape(), and
modified_EncodeRawUnicodeEscape() into one function called
_PyUnicode_EncodeCustomUnicodeEscape().
This patch is meant
STINNER Victor victor.stin...@haypocalc.com added the comment:
The patch was committed to py3k and 3.1. Thank you!
r76836 and r76838
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4757
Skip Montanaro s...@pobox.com added the comment:
Still applies cleanly (with a little fuzz) to the trunk after applying
the issue 5683 patch. Tests all still pass (including xpickle w/ 2.4,
2.5, 2.6 available).
--
nosy: +skip.montanaro
___
Python
Skip Montanaro s...@pobox.com added the comment:
LGTM. Nothing is quite as satisfying as simply deleting a bunch of
logic/lines.
--
nosy: +skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5372
Brett Cannon br...@python.org added the comment:
Committed in r77402. I am going to wait to see if any doc changes occur before
I commit in py3k.
For historical reasons, here is the thread that hashed out the reasonsing:
http://mail.python.org/pipermail/stdlib-sig/2009-November/000789.html
STINNER Victor victor.stin...@haypocalc.com added the comment:
Committed in all four branches.
trunk: r77352
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7455
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Ok, I've committed the tests after the patch for issue7462 removed the
offending code. Thanks!
r77241 and r77247 in trunk
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Hello
I read the diff for revision 77310 and noticed that arguments with parens
(I mean things like ``def spam((x, y))``, forgot the name) were replaced
by grab-all arguments that are unpacked later (``def spam(x_y)``). I was
wondering whether
Brett Cannon br...@python.org added the comment:
The documentation is still accurate. The translation is literal so there no
shift except where the unpacking exception occurs.
On Sat, Jan 9, 2010 at 20:13, Ãric Araujo rep...@bugs.python.org wrote:
Ãric Araujo mer...@netwok.org added the
New submission from Jean-Paul Calderone exar...@divmod.com:
This issue may extend beyond just unicode.upper() and unicode.lower(), but it's
very clear with these two methods, at least.
For example, consider DESERET SMALL LETTER EW. On a UTF-16 build, calling
upper on a string containing this
68 matches
Mail list logo