Python-Dev
Threads by month
- ----- 2024 -----
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2003 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2002 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2001 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2000 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 1999 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
November 2007
- 77 participants
- 93 discussions
Hello people!
I'm following the issue 1259 (http://bugs.python.org/issue1259)
It basically says that this should be ok: "'asd'.find('s', None,
None)", as the documentation says that "start" and "end" arguments
behaves like in slices (right now it gives a TypeError).
I created a patch, that solves the problem presented in that patch, as
is suggested by Barry A. Warsaw.
The patch touches three files:
- Lib/test/string_tests.py: The test cases for this.
- Objects/stringobject.c: Here I modified the string_find_internal()
function, for PyArg_ParseTuple to not call directly to
PyEval_SliceIndex: I just call it if the function received an argument
and is not None.
- Objects/unicodeobject.c: Here I needed to make the same in
unicode_find(), unicode_rfind(), unicode_index(), and
unicode_rindex(), so I created another function called
_ParseTupleFinds(), for this family of functions, which handles the
arguments and returns the needed info for each function.
All the tests pass ok, I'm sending this mail to see if anybody could
please review the patch before I apply it, as this is the first patch
that I create in C. Feel free to ignore this mail if the patch is ok,
:)
Regards,
--
. Facundo
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
1
0
ACTIVITY SUMMARY (10/25/07 - 11/01/07)
Tracker at http://bugs.python.org/
To view or respond to any of the issues listed below, click on the issue
number. Do NOT respond to this message.
1314 open (+21) / 11538 closed (+22) / 12852 total (+43)
Open issues with patches: 415
Average duration of open issues: 683 days.
Median duration of open issues: 773 days.
Open Issues Breakdown
open 1310 (+21)
pending 4 ( +0)
Issues Created Or Reopened (43)
_______________________________
Python 2.4+ spends too much time in PyEval_EvalFrame w/ xmlrpmcl 10/25/07
http://bugs.python.org/issue1327 created eanxgeek
feature request: force BOM option 10/25/07
http://bugs.python.org/issue1328 created jgsack
Different 3.0a1 exit behavior 10/25/07
CLOSED http://bugs.python.org/issue1329 created MrJean1
Fix truncate on Windows, this time for real 10/26/07
CLOSED http://bugs.python.org/issue1330 created tiran
py3k, patch
More fixes for Windows 10/26/07
CLOSED http://bugs.python.org/issue1331 created tiran
py3k, patch
threading.RLock().aquire(0) fails with python-2.5.1.amd64.msi 10/26/07
http://bugs.python.org/issue1332 created delwarl
merge urllib and urlparse functionality 10/26/07
http://bugs.python.org/issue1333 created techtonik
IDLE - Fix several highlighting bugs 10/26/07
http://bugs.python.org/issue1334 created taleinat
patch
bytesiterator patch 10/26/07
CLOSED http://bugs.python.org/issue1335 created tiran
subprocess.Popen hangs when child writes to stderr 10/26/07
http://bugs.python.org/issue1336 created jba
Tools/msi/msi.py does not work with PCBuild8 10/26/07
http://bugs.python.org/issue1337 created kevinwatters
pickling bytes? 10/26/07
http://bugs.python.org/issue1338 created gvanrossum
py3k
smtplib starttls() should ehlo() if it needs to 10/26/07
http://bugs.python.org/issue1339 created fenner
correction for test_tempfile in py3k on Windows 10/28/07
CLOSED http://bugs.python.org/issue1340 reopened gvanrossum
correction for test_fileinput in py3k on Windows 10/26/07
CLOSED http://bugs.python.org/issue1341 created amaury.forgeotdarc
patch
Crash on Windows if Python runs from a directory with umlauts 10/27/07
http://bugs.python.org/issue1342 created tiran
XMLGenerator: nice <empty/> elements 10/27/07
http://bugs.python.org/issue1343 created panzi
subprocess.communication doc could use clarification 10/27/07
http://bugs.python.org/issue1344 created dsturtevant
Fix for test_netrc on Windows 10/27/07
http://bugs.python.org/issue1345 created tiran
patch
Error using >>> from OpenGL.GLUT import * 10/27/07
CLOSED http://bugs.python.org/issue1346 created neuralsensor
BaseHTTPServer writing strings to bytes interface 10/28/07
CLOSED http://bugs.python.org/issue1347 created janssen
py3k, patch
httplib closes socket, then tries to read from it 10/28/07
http://bugs.python.org/issue1348 created janssen
py3k, patch
more uses of ord() in plat-mac/ic.py 10/28/07
CLOSED http://bugs.python.org/issue1349 created janssen
py3k, patch
IDLE - CallTips enhancement - show full doc-string in new window 10/28/07
http://bugs.python.org/issue1350 created taleinat
patch
Add getsize() to io instances 10/28/07
http://bugs.python.org/issue1351 created tiran
Preliminary stderr patch 10/28/07
CLOSED http://bugs.python.org/issue1352 created tiran
mp4 missing from mimetypes.py 10/29/07
CLOSED http://bugs.python.org/issue1353 created kraft
windows installer problem 10/29/07
http://bugs.python.org/issue1354 created rajar
xml.dom refers to PyXML, which is no longer maintained 10/29/07
http://bugs.python.org/issue1355 created whooey1830
3.0a1 Solaris w/ SUN C/C++ 10/29/07
CLOSED http://bugs.python.org/issue1356 created MrJean1
3.0a1 make test Error on Solaris w/ SUN C/C++ 10/29/07
CLOSED http://bugs.python.org/issue1357 created MrJean1
Compile error on OS X 10.5 10/29/07
http://bugs.python.org/issue1358 created andres
py3k: out of bounds read in PyUnicode_DecodeUnicodeEscape 10/29/07
CLOSED http://bugs.python.org/issue1359 reopened gvanrossum
Queue.get() can't be interrupted with Ctrl-C unless timed out 10/30/07
CLOSED http://bugs.python.org/issue1360 created piro
please close: hashlib uses OpenSSL which is much slower than Aar 10/30/07
CLOSED http://bugs.python.org/issue1361 created Omnifarious
Simple mistake in http://docs.python.org/tut/node6.html 10/30/07
CLOSED http://bugs.python.org/issue1362 created dmazz
python 2.4.4 fails on solaris (sun4u sparc SUNW,Sun-Fire-880) 10/30/07
http://bugs.python.org/issue1363 created theoryno3
os.lstat documentation error 10/31/07
CLOSED http://bugs.python.org/issue1364 created billiejoex
bytes(<int>) constructor 10/31/07
CLOSED http://bugs.python.org/issue1365 created tiran
popen spawned process may not write to stdout under windows 10/31/07
http://bugs.python.org/issue1366 created pmezard
mkdir+chdir problem in multiple threads 10/31/07
CLOSED http://bugs.python.org/issue1367 created anonyprog
Bug tracker link in about tutorial page is wrong 11/01/07
CLOSED http://bugs.python.org/issue1368 created ksjohnson
Reference to Python24 path in Python 2.5 doc 11/01/07
CLOSED http://bugs.python.org/issue1369 created ksjohnson
Issues Now Closed (37)
______________________
PEP 3137 patch (repr, names, parser) 23 days
http://bugs.python.org/issue1247 gvanrossum
patch
Strange Python hangup 16 days
http://bugs.python.org/issue1255 kakacek
IDLE does not start if windows environment variable containing ' 17 days
http://bugs.python.org/issue1262 kbk
os.environ.pop doesn't work 10 days
http://bugs.python.org/issue1287 georg.brandl
Fixes for profile/cprofile 6 days
http://bugs.python.org/issue1302 tiran
py3k, patch
Remove os.tmpnam() and os.tempnam() 2 days
http://bugs.python.org/issue1318 gvanrossum
patch
py3k: file.truncate() changes the file position 1 days
http://bugs.python.org/issue1323 gvanrossum
patch
r58034 breaks building _ctypes with the upstream libffi. 1 days
http://bugs.python.org/issue1324 theller
patch
Different 3.0a1 exit behavior 5 days
http://bugs.python.org/issue1329 gvanrossum
Fix truncate on Windows, this time for real 1 days
http://bugs.python.org/issue1330 gvanrossum
py3k, patch
More fixes for Windows 0 days
http://bugs.python.org/issue1331 gvanrossum
py3k, patch
bytesiterator patch 0 days
http://bugs.python.org/issue1335 gvanrossum
correction for test_tempfile in py3k on Windows 1 days
http://bugs.python.org/issue1340 gvanrossum
correction for test_fileinput in py3k on Windows 3 days
http://bugs.python.org/issue1341 gvanrossum
patch
Error using >>> from OpenGL.GLUT import * 3 days
http://bugs.python.org/issue1346 nnorwitz
BaseHTTPServer writing strings to bytes interface 3 days
http://bugs.python.org/issue1347 janssen
py3k, patch
more uses of ord() in plat-mac/ic.py 3 days
http://bugs.python.org/issue1349 janssen
py3k, patch
Preliminary stderr patch 4 days
http://bugs.python.org/issue1352 georg.brandl
mp4 missing from mimetypes.py 0 days
http://bugs.python.org/issue1353 gvanrossum
3.0a1 Solaris w/ SUN C/C++ 0 days
http://bugs.python.org/issue1356 gvanrossum
3.0a1 make test Error on Solaris w/ SUN C/C++ 0 days
http://bugs.python.org/issue1357 gvanrossum
py3k: out of bounds read in PyUnicode_DecodeUnicodeEscape 0 days
http://bugs.python.org/issue1359 gvanrossum
Queue.get() can't be interrupted with Ctrl-C unless timed out 0 days
http://bugs.python.org/issue1360 piro
please close: hashlib uses OpenSSL which is much slower than Aar 0 days
http://bugs.python.org/issue1361 facundobatista
Simple mistake in http://docs.python.org/tut/node6.html 1 days
http://bugs.python.org/issue1362 georg.brandl
os.lstat documentation error 2 days
http://bugs.python.org/issue1364 billiejoex
bytes(<int>) constructor 0 days
http://bugs.python.org/issue1365 gvanrossum
mkdir+chdir problem in multiple threads 1 days
http://bugs.python.org/issue1367 gvanrossum
Bug tracker link in about tutorial page is wrong 0 days
http://bugs.python.org/issue1368 georg.brandl
Reference to Python24 path in Python 2.5 doc 0 days
http://bugs.python.org/issue1369 georg.brandl
Logic Variable Thread Synchronization 1630 days
http://bugs.python.org/issue738948 georg.brandl
threading.Thread.join() cannot be interrupted by a Ctrl-C 952 days
http://bugs.python.org/issue1167930 gvanrossum
Ctrl+C for copy does not work when caps-lock is on 713 days
http://bugs.python.org/issue1356720 kbk
Module uuid: reduce pickle footprint 486 days
http://bugs.python.org/issue1516327 gvanrossum
patch
Module uuid: functions for retrieving MAC addres 486 days
http://bugs.python.org/issue1516330 gvanrossum
patch
"Really print?" Dialog 170 days
http://bugs.python.org/issue1717170 taleinat
patch
Errors in site.py not reported properly 82 days
http://bugs.python.org/issue1771260 gvanrossum
py3k
Top Issues Most Discussed (10)
______________________________
38 Different 3.0a1 exit behavior 5 days
closed http://bugs.python.org/issue1329
12 threading.RLock().aquire(0) fails with python-2.5.1.amd64.msi 7 days
open http://bugs.python.org/issue1332
8 platform.dist() has unpredictable result under Linux 8 days
open http://bugs.python.org/issue1322
7 IDLE - patch Delegator to support callables 23 days
open http://bugs.python.org/issue1252
6 Enhanced tabbed pane widget 326 days
open http://bugs.python.org/issue1612746
6 Preliminary stderr patch 4 days
closed http://bugs.python.org/issue1352
6 feature request: force BOM option 7 days
open http://bugs.python.org/issue1328
5 Compile error on OS X 10.5 3 days
open http://bugs.python.org/issue1358
5 3.0a1 make test Error on Solaris w/ SUN C/C++ 0 days
closed http://bugs.python.org/issue1357
5 correction for test_tempfile in py3k on Windows 1 days
closed http://bugs.python.org/issue1340
1
0
01 Nov '07
At 07:01 AM 11/1/2007 -0700, Guido van Rossum wrote:
>However I don't approve of it. It has always been and will always
>continue to be my position that these are semantically unkosher,
>because it means that you can't wrap them in convenience functions or
>invoke them in different contexts, and that means that the semantics
>are hard to explain.
This is semi-random tangent, but what if there was a way to
explicitly refer to the current frame as a function argument? Then,
the implicitness that creates these problems becomes explicit, instead.
As it happens, I write virtually all my frame-oriented decorators to
take a 'frame' argument anyway, and only guess when it's not
supplied. So, having a convenient way to pass the argument would be
the only thing needed.
Unfortunately, to be really useful, the name or symbol used would
have to be more compact than the name or other data that you planned
to get from the frame in the first place. "sys._getframe()" itself,
for example, is way too long of a string. Even shortening this to
something like 'here()' still seems too inconvenient, but to go any
less than that invites the use of line-noise for syntax.
Oh well, it was worth a try.
1
0