[issue4604] close() seems to have limited effect

2008-12-09 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Here's a test case (diff against Lib/test/test_io.py). This fails for me on OS X 10.5.5 with the tip of the py3k branch. -- keywords: +patch Added file: http://bugs.python.org/file12305

[issue4604] close() seems to have limited effect

2008-12-09 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: -- stage: test needed -> needs patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue4604] close() seems to have limited effect

2008-12-09 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: fixed patch. I'm still a bit clumsy with the assertRaises stuff. Added file: http://bugs.python.org/file12306/iobug.diff ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue4604] close() seems to have limited effect

2008-12-09 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Here's a minimal patch to BufferedReader.read() which causes the test to pass. I will leave it for smarter people to decided whether or not all the other read() methods need the same test. Added file: http://bugs.python.or

[issue4604] close() seems to have limited effect

2008-12-09 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file12305/iobug.diff ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4604] close() seems to have limited effect

2008-12-09 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: -- stage: needs patch -> patch review ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue4587] Need to rework the dbm lib/include selection process

2008-12-09 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Thanks Roumen. Can I get a verdict on this approach from one of the main Python developers? I'm thinking a better way to control this would be to add a --flag to the build command to control the search order.

[issue4604] close() seems to have limited effect

2008-12-09 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Amaury> - It should use Amaury>self._checkClosed() Amaury> which already raises the same exception with the same message. I think some other places will need this change then. Note that I don't know the io

[issue4620] Memory leak with datetime used with time.strptime

2008-12-10 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Can you reproduce this with a script that does nothing more than while True: myDate = datetime.datetime(*(time.strptime("2008-12-10T14:00:03", "%Y-%m-%dT%H:%M:%S")[:6])) I tried with both Python 2.4.5 on Solaris

[issue3999] Real segmentation fault handler

2008-12-10 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: -- nosy: +skip.montanaro ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3999> ___ __

[issue4620] Memory leak with datetime used with time.strptime

2008-12-11 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: A number of people on a number of platforms and versions can't reproduce this. -- resolution: -> works for me stage: -> committed/rejected status: open -> closed ___ Py

[issue4575] Py_IS_INFINITY defect causes test_cmath failure on x86

2008-12-14 Thread Skip Montanaro
Skip Montanaro added the comment: Mark> Skip, could you give it a try? Works for me on Solaris 10/x86. Based on Roumen's comment I am preparing to try it on Mac OS X/x86 and Solaris 10/sparc. Skip ___ Python tracker <http://bugs.python.or

[issue4665] Failure to compile trunk on Solaris10/SPARC using C++ compiler

2008-12-14 Thread Skip Montanaro
New submission from Skip Montanaro : I don't know if the Python source is supposed to be compilable with a C++ compiler or not, but I'm having trouble finding a C compiler on the Solaris10/SPARC machines at work. I decided to give a C++ compiler a whirl: /opt/gnu/bin/c++ -c -

[issue4575] Py_IS_INFINITY defect causes test_cmath failure on x86

2008-12-15 Thread Skip Montanaro
Skip Montanaro added the comment: Took me awhile to locate a SPARC C compiler on our dwindling set of Solaris/SPARC boxes at work, but I eventually found one and got Subversion trunk to compile. test_cmath and test_math both pass with the force_to_memory2 patch. I don't know if I mention

[issue3439] create a numbits() method for int and long types

2008-12-16 Thread Skip Montanaro
Skip Montanaro added the comment: Regarding the last few posts: * Raymond's implementation, while ugly, provides a completely orthogonal way to test compute numbits, useful in unit tests if nothing else. * Using x >> 1 in a reference implementation is perfectly reasonable

[issue3439] create a numbits() method for int and long types

2008-12-17 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: -skip.montanaro ___ Python tracker <http://bugs.python.org/issue3439> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4755] Common path prefix

2008-12-26 Thread Skip Montanaro
New submission from Skip Montanaro : os.path.commonprefix returns the common prefix of a list of paths taken character-by-character. This can return invalid paths. For example, os.path.commonprefix(["/export/home/dave", "/etc/passwd"]) will return "/e", which l

[issue4755] Common path prefix

2008-12-30 Thread Skip Montanaro
Skip Montanaro added the comment: I think we need to recognize the inherent limitations of what we can expect to do. It is perfectly reasonable for a user on Windows to import posixpath and call posixpath.commonpathprefix. The function won't have access to the actual filesystems

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2008-12-30 Thread Skip Montanaro
Changes by Skip Montanaro : -- title: Is shared lib building broken on trunk? -> Is shared lib building broken on trunk for Mac OS X? ___ Python tracker <http://bugs.python.org/iss

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2008-12-31 Thread Skip Montanaro
Skip Montanaro added the comment: The patch seemed to work for me. Should I worry that I don't see -fPIC or -fpic in the compile commands? Also, running "make test" before at least installing libpython2.7.dylib appears to be impossible: % otool -L python.exe python.exe:

[issue4753] Faster opcode dispatch on gcc

2008-12-31 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: +skip.montanaro ___ Python tracker <http://bugs.python.org/issue4753> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4753] Faster opcode dispatch on gcc

2008-12-31 Thread Skip Montanaro
Skip Montanaro added the comment: Works pretty well for me on my MacBook Pro, but on my G5 it performed abysmally. In fact, it ran so much worse that I cleaned up my sandbox and did both checks all over again to make sure I didn't mess something up. It looks like my MacBook Pro saw ab

[issue4753] Faster opcode dispatch on gcc

2008-12-31 Thread Skip Montanaro
Changes by Skip Montanaro : ___ Python tracker <http://bugs.python.org/issue4753> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue4753] Faster opcode dispatch on gcc

2008-12-31 Thread Skip Montanaro
Skip Montanaro added the comment: Works pretty well for me on my MacBook Pro, but on my G5 it performed abysmally. In fact, it ran so much worse that I cleaned up my sandbox and did both checks all over again to make sure I didn't mess something up. It looks like my MacBook Pro saw abou

[issue4753] Faster opcode dispatch on gcc

2008-12-31 Thread Skip Montanaro
Skip Montanaro added the comment: Antoine> You're sure you didn't compile in debug mode or something? Just Antoine> checking. There was a cut-n-paste error in that one which I noticed right after submitting (man, do I hate the crappy editing capability of widgets). I rem

[issue4753] Faster opcode dispatch on gcc

2008-12-31 Thread Skip Montanaro
Skip Montanaro added the comment: Paolo> (2.5 is in bugfix-only mode, and as far as I can see this patch Paolo> cannot be accepted there, sadly). You could backport it to 2.4 & 2.5 and just put it up on PyPI... ___ Python trac

[issue4753] Faster opcode dispatch on gcc

2009-01-01 Thread Skip Montanaro
Skip Montanaro added the comment: Skip> You could backport it to 2.4 & 2.5 and just put it up on PyPI... Paolo> I was thinking to a private backport as well. I didn't know Paolo> about PyPI, it looks like PyPI is more for contributed modules Paolo> than for

[issue4753] Faster opcode dispatch on gcc

2009-01-02 Thread Skip Montanaro
Skip Montanaro added the comment: Antoine> I fear that with a configure option, disabled by default, the Antoine> code will get very poor testing and perhaps get broken in some Antoine> subtle way without anyone noticing. That can be fixed by enabling that option on the buildb

[issue4810] timeit needs "official" '--' flag

2009-01-02 Thread Skip Montanaro
New submission from Skip Montanaro : Consider this timeit run: % python -m timeit '-1.0e-3 < -0.0001 < 1.0e-3' option -1 not recognized use -h/--help for command line help As it turns out this works: % python -m timeit -- '-1.0e-3 < -0.0001 < 1.0e-

[issue4753] Faster opcode dispatch on gcc

2009-01-02 Thread Skip Montanaro
Skip Montanaro added the comment: OK, I think I'm misreading the output of pybench. Let me reset. Ignore anything I've written previously on this topic. Instead, I will just post the output of my pybench comparison runs and let more expert people interpret as appropriate. The fir

[issue4753] Faster opcode dispatch on gcc

2009-01-02 Thread Skip Montanaro
Skip Montanaro added the comment: The next is the result of running on my MacBook Pro (Intel Core 2 Duo). Added file: http://bugs.python.org/file12546/pybench.sum.Intel ___ Python tracker <http://bugs.python.org/issue4

[issue4753] Faster opcode dispatch on gcc

2009-01-02 Thread Skip Montanaro
Skip Montanaro added the comment: Antoine> Ok, so the threaded version is actually faster by 20% on your Antoine> PPC, and slower by 5% on your Core 2 Duo. Thanks for doing the Antoine> measurements! Confirmed by pystone runs as well. Sorry for the earlier misdirecti

[issue4753] Faster opcode dispatch on gcc

2009-01-02 Thread Skip Montanaro
Skip Montanaro added the comment: Alexandre's last comment reminded me I forgot to post the PPC assembler code. Next two files are the output as requested by Antoine. Added file: http://bugs.python.org/file12553/ceval.i.unthreaded ___ Python tracker

[issue4753] Faster opcode dispatch on gcc

2009-01-02 Thread Skip Montanaro
Changes by Skip Montanaro : Added file: http://bugs.python.org/file12555/ceval.i.threaded ___ Python tracker <http://bugs.python.org/issue4753> ___ ___ Python-bugs-list m

[issue4824] test_cmd_line failure on Mac OS X for py3k

2009-01-03 Thread Skip Montanaro
New submission from Skip Montanaro : test_cmd_line.test_run_code fails for me on Mac OS X: % ./python.exe -bb Lib/test/regrtest.py -v test_cmd_line test_cmd_line test_directories (test.test_cmd_line.CmdLineTest) ... ok test_optimize (test.test_cmd_line.CmdLineTest) ... ok

[issue4824] test_cmd_line failure on Mac OS X for py3k

2009-01-03 Thread Skip Montanaro
Skip Montanaro added the comment: Here is another data point. I added some print calls to the subprocess module and ran the key call from the interpreter: % ./python.exe Python 3.1a0 (py3k:68218, Jan 3 2009, 15:06:30) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type "

[issue4753] Faster opcode dispatch on gcc

2009-01-04 Thread Skip Montanaro
Skip Montanaro added the comment: I'm sure this is the wrong place to bring this up, but I had a thought about simple JIT compilation coupled with the opcode dispatch changes in this issue. Consider this silly function: >>> def f(a, b): ... result = 0

[issue3783] dbm.sqlite proof of concept

2009-01-04 Thread Skip Montanaro
Skip Montanaro added the comment: Hopefully I'm not picking at a scab here. I updated the dbm.sqlite module in the sandbox. It now orders by rowid instead of by key. (I saw no performance penalty for the small table sizes I was using to ordering. I switched from ordering by key to ord

[issue4834] Trouble configuring with icc on Mac OS X 10.5

2009-01-04 Thread Skip Montanaro
New submission from Skip Montanaro : I get this error when trying to configure with Intel's icc on my Mac (Intel, 10.5.6, Xcode 3.1.2): >> configure:10332: checking size of size_t >> configure:10637: icc -o conftest -g -O2 conftest.c >&5 >> ld:

[issue4835] SIZEOF_SOCKET_T not defined

2009-01-04 Thread Skip Montanaro
New submission from Skip Montanaro : Compiling with Intel's icc I get lots of remarks like this: icc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I../Include -DPy_BUILD_CORE -o Parser/acceler.o ../Parser/acceler.c ../Include/longobject

[issue4824] test_cmd_line failure on Mac OS X for py3k

2009-01-04 Thread Skip Montanaro
Skip Montanaro added the comment: Yeah, looks like it. Closing. -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue4834] Trouble configuring with icc on Mac OS X 10.5

2009-01-04 Thread Skip Montanaro
Skip Montanaro added the comment: Martin> I don't think this is a bug. The change actually dates from Martin> r45800; I believe the intention is that the Python binaries work Martin> on 10.3 and newer, unless you use 10.2 or older to build them Martin> (in which ca

[issue4863] deprecate/delete distutils.mwerkscompiler...

2009-01-06 Thread Skip Montanaro
New submission from Skip Montanaro : I was just poking around the distutils documentation and came across the distutils.mwerkscompiler module. Surely that can't be useful anymore, can it? The doc reads, in its entirety: Contains MWerksCompiler, an implementation of the abstract CCom

[issue4753] Faster opcode dispatch on gcc

2009-01-07 Thread Skip Montanaro
Skip Montanaro added the comment: Paolo> Various techniques allow to create binary code from the Paolo> interpreter binary, by just pasting together the code for the Paolo> common interpreters cases and producing calls to the other. But, Paolo> guess what, on most platf

[issue4888] misplaced (or misleading) assert in ceval.c

2009-01-08 Thread Skip Montanaro
New submission from Skip Montanaro : There is what I believe is a misplaced - or at least misleading - assert in the while loop following the fast_block_end label. If why != WHY_YIELD before the loop starts I don't see how that relationship could change within the loop. Proposed patch ag

[issue4896] Faster why variable manipulation in ceval.c

2009-01-09 Thread Skip Montanaro
New submission from Skip Montanaro : The why_code enum in ceval.c has values which form a bit set. Comparison of the why variable against multiple values is going to be faster using bitwise operations instead of logical ones. For example, instead of why == WHY_RETURN || why

[issue4896] Faster why variable manipulation in ceval.c

2009-01-09 Thread Skip Montanaro
Skip Montanaro added the comment: Antoine> The label "why_not_here" should be renamed to something more Antoine> meaningful IMO. Or you could just kill the label and use Antoine> "continue" instead. I thought "why_not_here" was meaningful. &qu

[issue4896] Faster why variable manipulation in ceval.c

2009-01-09 Thread Skip Montanaro
Skip Montanaro added the comment: >> I thought "why_not_here" was meaningful. Antoine> I don't know, when I see "goto why_not_here" it looks like a Antoine> joke to me :) Well, I think the enum name WHY_NOT is kind of a joke itself, but it's

[issue4472] Is shared lib building broken on trunk for Mac OS X?

2009-01-10 Thread Skip Montanaro
Skip Montanaro added the comment: Works for me. Thanks Ronald. Closing... -- assignee: -> ronaldoussoren status: pending -> closed ___ Python tracker <http://bugs.python.org/

[issue4896] Faster why variable manipulation in ceval.c

2009-01-11 Thread Skip Montanaro
Skip Montanaro added the comment: Pystone results: apply why patch py3k% rm $TMPDIR/*.[coi] ; make python.exe && rm -f /tmp/trash ; ./python.exe Lib/test/pystone.py rm: /tmp/*.[coi]: No such file or directory make: `python.exe' is up to date. Pystone(1.1) time for 5 passes =

[issue4896] Faster why variable manipulation in ceval.c

2009-01-11 Thread Skip Montanaro
Skip Montanaro added the comment: pybench comparison... % ./python.exe Tools/pybench/pybench.py -s stock.out -c why.out - -- PYBENCH 2.0

[issue4753] Faster opcode dispatch on gcc

2009-01-16 Thread Skip Montanaro
Skip Montanaro added the comment: Antoine> (sorry, the patch is very long because it seems running Antoine> autoconf changes a lot of things in the configure script) Normal practice is to not include the configure script in such patches and indicate to people that they will need

[issue4989] 'calendar' module is crummy and should be removed

2009-01-18 Thread Skip Montanaro
Skip Montanaro added the comment: Look at the oldest checkin comment for a line still in the module: r2166 | guido | 1990-10-13 14:23:40 -0500 (Sat, 13 Oct 1990) | 2 lines Initial revision In short, it's been there for a long, long time. Long before PEPs. Long before Tkinter.

[issue4111] Add DTrace probes

2009-01-22 Thread Skip Montanaro
Skip Montanaro added the comment: So I completely dropped the ball on this. It appears we have some folks from Sun and Brett surmised that Ronald Oussoren would be the likely person to do the heavy lifting on the Apple side of things. Ronald, I've made you nosy. I will try to get the So

[issue4111] Add DTrace probes

2009-01-22 Thread Skip Montanaro
Skip Montanaro added the comment: After applying the patch and reconfiguring I get compilation errors in Python/ceval.c. I suspect it's because there is a new header file, Python/python.h. That's probably found by the #include directive in favor of Include/Python.h because of the

[issue4111] Add DTrace probes

2009-01-22 Thread Skip Montanaro
Skip Montanaro added the comment: me> I get an error later running dtrace which I have yet to investigate. Apple's dtrace program doesn't support the -G flag. When I remove it from Makefile.pre.in and rebuild I get an error about privileges: dtrace -o Python/dtrace.o -

[issue4111] Add DTrace probes

2009-01-24 Thread Skip Montanaro
Skip Montanaro added the comment: Laca> Please see here for discussion about the -G flag on OS X: Laca> http://markmail.org/message/4nheqnexjr2o6mcx Laca> If I read it correctly, on OS X, you will need to use -h instead Laca> of -G and it won't emit an object file

[issue5047] Remove Monterey support from configure.in

2009-01-24 Thread Skip Montanaro
New submission from Skip Montanaro : The attached patch removes vestiges of Monterey compiler support from configure.in. Apparently Monterey was some ill-conceived 64-bit SCO/IBM operating system which died in 2000. Can't see why we need to support it. Skip ===File ~/src/python/

[issue5047] Remove Monterey support from configure.in

2009-01-24 Thread Skip Montanaro
Skip Montanaro added the comment: Martin> You might want to take a look at r16962. It changed a few other Martin> things as well. Will do. Martin> Please do put patches into attachments, rather than including Martin> them in the message. Yeah, that's new mai

[issue5047] Remove Monterey support from configure.in

2009-01-24 Thread Skip Montanaro
Skip Montanaro added the comment: Here's the original patch as an attachment. -- keywords: +patch Added file: http://bugs.python.org/file12850/configure.in.diff ___ Python tracker <http://bugs.python.org/i

[issue5047] Remove Monterey support from configure.in

2009-01-24 Thread Skip Montanaro
Skip Montanaro added the comment: And a diff for README. The other changes in r16962 seem to be bug fixes which, while exposed by the Monterey port, don't appear to be platform- dependent. Added file: http://bugs.python.org/file12851/README

[issue4111] Add DTrace probes

2009-01-25 Thread Skip Montanaro
Skip Montanaro added the comment: Here's a patch against the current trunk (2.7) which compiles on my Mac. It adds a --with-dtrace configure option. The code checks to see if the -G option is understood by the dtrace command. If so, dtrace support is added Sun-style. If not we do t

[issue4111] Add DTrace probes

2009-01-27 Thread Skip Montanaro
Skip Montanaro added the comment: Ted> I tried building this on my Mac and got this; Forgive me if I'm preaching to the choir here. Did you run autoconf or autoreconf after applying the patch? If not, @DTRACEOBJS@ would not be a substitutable string. It's fairly common (at

[issue3610] Fix gdbinit for Python 3.0

2009-01-30 Thread Skip Montanaro
Skip Montanaro added the comment: The gdbinit file for Python 3 is still broken. I've not been able to figure out how to get a string encoded as utf-8 from a Unicode object without needing a process around. If you require a process then gdbinit becomes much less useful since it won&#

[issue3783] dbm.sqlite proof of concept

2009-01-30 Thread Skip Montanaro
Skip Montanaro added the comment: Unassigning myself. I don't have time for this. I've taken my sandbox version about as far as I can, and the subject of this ticket has gone a bit far afield from just adding a sqlite module to the dbm pkg. -- assignee: skip

[issue4753] Faster opcode dispatch on gcc

2009-02-03 Thread Skip Montanaro
Skip Montanaro added the comment: This has been checked in, right? Might I suggest that the TARGET and TARGET_WITH_IMPL macros not include the trailing colon? I think that will make it more friendly toward "smart" editors such as Emacs' C mode. I definitely get better i

[issue5148] gzip.open breaks with 'U' flag

2009-02-04 Thread Skip Montanaro
Skip Montanaro added the comment: Seems like this should be fairly easy to do right. 'U' needs to be removed from the flags but then applied to the lines read from the stream. -- keywords: +easy nosy: +skip.montanaro stage: ->

[issue5148] gzip.open breaks with 'U' flag

2009-02-04 Thread Skip Montanaro
Skip Montanaro added the comment: Here's a patch against trunk. Extra test case and minor doc tweak included. -- keywords: +patch Added file: http://bugs.python.org/file12945/gzipU.diff ___ Python tracker <http://bugs.python.org/i

[issue5148] gzip.open breaks with 'U' flag

2009-02-04 Thread Skip Montanaro
Changes by Skip Montanaro : -- keywords: +needs review stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue5148> ___ ___ Python-

[issue4753] Faster opcode dispatch on gcc

2009-02-07 Thread Skip Montanaro
Skip Montanaro added the comment: Antoine> Skip, removing the colon doesn't work if the macro adds code Antoine> after the colon :) When I looked I thought both TARGET and TARGET_WITH_IMPL ended with a colon, but I see that's not the case. How about removing TARGET_WI

[issue1098732] Enhance tracebacks and stack traces with vars

2009-02-15 Thread Skip Montanaro
Skip Montanaro added the comment: How about reformulating it as a function appropriate as sys.excepthook? ___ Python tracker <http://bugs.python.org/issue1098732> ___ ___

[issue1152248] Enhance file.readlines by making line separator selectable

2009-02-15 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: -montanaro.historic ___ Python tracker <http://bugs.python.org/issue1152248> ___ ___ Python-bugs-list mailing list Unsub

[issue1214879] Support non-file source/dest in marshal

2009-02-15 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: -skip.montanaro ___ Python tracker <http://bugs.python.org/issue1214879> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue849662] reading shelves is really slow

2009-02-15 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: -skip.montanaro ___ Python tracker <http://bugs.python.org/issue849662> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1098732] Enhance tracebacks and stack traces with vars

2009-02-16 Thread Skip Montanaro
Skip Montanaro added the comment: Martin> If it becomes a sys.excepthook, it doesn't need to be part of Martin> Python anymore; any user could install it as a recipe if they Martin> desire. Martin> Hence I'm rejecting the patch. It could still be a nice add

[issue47190] Integrating tkinter and asyncio event loops

2022-04-01 Thread Skip Montanaro
New submission from Skip Montanaro : After looking around and asking, it appears there is no built-in integration of the tkinter and asyncio event loops. That would seem to be a good thing, at least as an example. I wrote a simple hello world which creates an AsyncTk class and uses asyncio

[issue47190] Integrating tkinter and asyncio event loops

2022-04-03 Thread Skip Montanaro
Change by Skip Montanaro : -- keywords: +patch pull_requests: +30355 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32293 ___ Python tracker <https://bugs.python.org/issu

[issue47190] Integrating tkinter and asyncio event loops

2022-04-04 Thread Skip Montanaro
Skip Montanaro added the comment: That's fine. My brief search didn't turn up https://bugs.python.org/issue27546 I'm happy to close this. -- stage: patch review -> resolved status: open -> closed ___ Python tracker <

[issue27546] Integrate tkinter and asyncio (and async)

2022-04-04 Thread Skip Montanaro
Skip Montanaro added the comment: See also (perhaps) https://bugs.python.org/issue47190 -- nosy: +skip.montanaro ___ Python tracker <https://bugs.python.org/issue27

[issue27546] Integrate tkinter and asyncio (and async)

2022-04-04 Thread Skip Montanaro
Change by Skip Montanaro : -- nosy: -skip.montanaro ___ Python tracker <https://bugs.python.org/issue27546> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43494] Minor changes to Objects/lnotab_notes.txt

2021-03-14 Thread Skip Montanaro
New submission from Skip Montanaro : For the VM work I'm doing I need to adapt to Mark's new line number table format. (I stalled for several months, hence this rather late report.) As I was reading Objects/lnotab_notes.txt I noticed a couple typos, fixed those and threw in a co

[issue43494] Minor changes to Objects/lnotab_notes.txt

2021-03-14 Thread Skip Montanaro
Change by Skip Montanaro : -- keywords: +patch pull_requests: +23621 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24861 ___ Python tracker <https://bugs.python.org/issu

[issue43494] Minor changes to Objects/lnotab_notes.txt

2021-03-14 Thread Skip Montanaro
Skip Montanaro added the comment: When I submitted the PR one check failed with this error: No news entry in Misc/NEWS.d/next/ or "skip news" label found I'd be surprised if this was important enough for a news entry, and I'm pretty sure I can'

[issue43494] Minor changes to Objects/lnotab_notes.txt

2021-03-19 Thread Skip Montanaro
Skip Montanaro added the comment: Closing, per Terry's comment. -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.

[issue43627] What are the requirements for a test_sunry-testable script in Tools/scripts?

2021-03-25 Thread Skip Montanaro
New submission from Skip Montanaro : In my fork of python/cpython I recently created a simple script to help me with my work (I am messing around in the internals and sometimes get blindsided by opcode changes). I stuck the script in Tools/script which caused test_tools.test_sundry to hang

[issue43625] CSV has_headers heuristic could be improved

2021-03-25 Thread Skip Montanaro
Skip Montanaro added the comment: I assume the OP is referring to this sort of usage: >>> sniffer = csv.Sniffer() >>> raw = open("mixed.csv").read() >>> sniffer.has_header(raw) False *sigh* I really wish the Sniffer class had never been added to the CSV

[issue43627] What are the requirements for a test_sundry-testable script in Tools/scripts?

2021-03-25 Thread Skip Montanaro
Change by Skip Montanaro : -- title: What are the requirements for a test_sunry-testable script in Tools/scripts? -> What are the requirements for a test_sundry-testable script in Tools/scripts? ___ Python tracker <https://bugs.pyth

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-03 Thread Skip Montanaro
Skip Montanaro added the comment: The latest commit seems to break the build if configured --with-trace-refs. -- nosy: +skip.montanaro ___ Python tracker <https://bugs.python.org/issue41

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-03 Thread Skip Montanaro
Skip Montanaro added the comment: I should revise that comment. The xxlimited and xxlimited_35 modules fail to build. That seems suboptimal, but perhaps is to be expected. Perhaps it would be better that compiling them not be attempted with configuring --with-trace-refs

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-06 Thread Skip Montanaro
Skip Montanaro added the comment: > > Skip: By the way, I'm curious, why do you use --with-trace-refs? > I'm still horsing around with register opcodes and got in the habit of building with pydebug and trace refs enabled. -- ___

[issue44058] 'master' refs in 3.10 version of .azure-pipelines

2021-05-06 Thread Skip Montanaro
New submission from Skip Montanaro : Should these references to "master" be changed to "main"? % git co 3.10 Switched to branch '3.10' Your branch is up to date with 'origin/3.10'. % egrep master .azure-pipelines/* .azure-pipelines/ci.yml:trigger: ['

[issue44060] Define TARGET macro the same even when computed goto support is not enabled

2021-05-06 Thread Skip Montanaro
New submission from Skip Montanaro : When the interpreter is compiled with computed goto support, the TARGET macro is defined like this: #define TARGET(op) op: TARGET_##op If computed gotos are disabled, the implementation is simpler: #define TARGET(op) op I'm finding it useful to use

[issue44060] Define TARGET macro the same even when computed goto support is not enabled

2021-05-06 Thread Skip Montanaro
Change by Skip Montanaro : -- keywords: +patch pull_requests: +24612 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25949 ___ Python tracker <https://bugs.python.org/issu

[issue44058] 'master' refs in 3.10 version of .azure-pipelines

2021-05-07 Thread Skip Montanaro
Skip Montanaro added the comment: Perhaps I should point out that this doesn't matter to me. I just noticed the old name. I can't claim anything is broken that I need. -- ___ Python tracker <https://bugs.python.o

[issue23041] csv needs more quoting rules

2021-06-28 Thread Skip Montanaro
Skip Montanaro added the comment: Okay, I'll reopen this, at least for the discussion of QUOTE_NONNULL. @erdnaxeli please given an example of how PostgreSQL distinguishes between the empty string and None cases. Is it a quoted empty string vs an empty field? If so, modifying @samw

[issue23041] csv needs more quoting rules

2021-06-28 Thread Skip Montanaro
Skip Montanaro added the comment: Missed tweaking a couple settings. -- resolution: rejected -> stage: resolved -> needs patch versions: +Python 3.11 -Python 3.8 ___ Python tracker <https://bugs.python.org/i

[issue23041] csv needs more quoting rules

2021-06-28 Thread Skip Montanaro
Skip Montanaro added the comment: Ugh... s/QUOTE_NONNULL/QUOTE_NOTNULL/ Not, Non, None... Perl would treat them all the same, right? -- ___ Python tracker <https://bugs.python.org/issue23

[issue43625] CSV has_headers heuristic could be improved

2021-06-29 Thread Skip Montanaro
Skip Montanaro added the comment: Thanks @andrei.avk. You are right, only the complex test is required. I suppose it's okay to commit this, but reviewing the full code of the has_header method leaves me thinking this is just putting lipstick on a pig. If I read the code correctly, ther

[issue43625] CSV has_headers heuristic could be improved

2021-06-29 Thread Skip Montanaro
Skip Montanaro added the comment: I retract my comment about fixed length strings in the non-numeric case. There are clearly test cases (which I probably wrote, considering the values) where the sample as a header but the values are of varying length. Misread of the code on my part. I have

[issue43625] CSV has_headers heuristic could be improved

2021-06-29 Thread Skip Montanaro
Skip Montanaro added the comment: Here is a change to the has_header documentation and an extra test case documenting the behavior when the sample contains strings. I'm not sure about the wording of the doc change, perhaps you can tweak it? Seems kind of clumsy to me. If it seems ok

<    1   2   3   4   5   6   7   8   9   >