[issue1653416] OS X print f, Hello produces no error: normal?
Ronald Oussoren ronaldousso...@mac.com added the comment: This is not an issue for 3.x because the io library doesn't use stdio. I'd say this is unlikely to get fixed in 2.7 as every call to stdio functions needs to be checked and updated. -- versions: -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1653416 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9786] Native TLS support for pthreads
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Ok, here is a patch. key creation returns -1 on error, and the caller can detect this and raise a fatal error. -- Added file: http://bugs.python.org/file18906/pthread_tls.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9786 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1653416] OS X print f, Hello produces no error on read-only f: normal?
Changes by Eric O. LEBIGOT eric.lebi...@normalesup.org: -- title: OS X print f, Hello produces no error: normal? - OS X print f, Hello produces no error on read-only f: normal? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1653416 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: For some reason your file os.pyc is corrupted: I loaded it with a working python2.7: import marshal, dis pyc = open('bados.pyc', 'rb').read() code = marshal.loads(pyc[8:]) dis.dis(code) And it appears that all the jump instructions are wrong: the address is either 0, or something around 65536. Which compiler do you use? I remember subtle bugs caused by some version of gcc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9880 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5113] 2.5.4.3 / test_posix failing on HPUX systems
Charles-Francois Natali neolo...@free.fr added the comment: Actually, looking at the man page, this seems to be normal: --- In order to change the owner or group, you must own the file and have the CHOWN privilege (see setprivgrp(1M)). [...] Note that a given user's or group's ability to use this command can be restricted by setprivgrp (see setprivgrp(1M)). --- So depending on the setting of setprivgrp, chown'ing a file to root may be allowed or not. It might be a good idea to skip this test on HP-UX. Solaris apparently behaves in the same way. -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9884] The 4th parameter of method always None or 0 on x64 Windows.
New submission from Owen j2.n...@gmail.com: OS: Windows 2003STD x64 en I have try to call python method from c++ dll by WINFUNCTYPE. But the 4th parameter is always None or 0 if the type is int or void* (float is works fine). Following is the part of source code: ==code== import sys from ctypes import * windll.LoadLibrary(testPy2.dll) # def test3(param1,param2,param3,param4,param5,param6,param7,param8,param9,param10): print() print(param1) print(param2) print(param3) # the 4th param4 is always 0. print(param4) print(param5) print(param6) print(param7) print(param8) print(param9) print(param10) print() return 20 C_METHOD_TYPE4 = WINFUNCTYPE(c_int32, c_int32, c_int32, c_int32, c_int32, c_int32, c_int32, c_int32, c_int32, c_int32, c_int32) windll.testPy2.fntestPy7(9,C_METHOD_TYPE4(test3)) ==code== To my knowledge, both visual c++ and gcc use registers for the first few parameters, and then after that use the stack. Maybe this is the reason. I have attached some simple codes for reproduce this issue. issues - testPy2 - source code of the dll - test.py - python file to reproduce the issue - testPy2.dll - the dll to reproduce the issue -- components: Windows files: issues.zip messages: 116649 nosy: J2.NETe priority: normal severity: normal status: open title: The 4th parameter of method always None or 0 on x64 Windows. versions: Python 2.7, Python 3.1 Added file: http://bugs.python.org/file18907/issues.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9884 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9884] The 4th parameter of method always None or 0 on x64 Windows.
Changes by Owen j2.n...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9884 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode
Tom Browder tom.brow...@gmail.com added the comment: I'm using gcc-4.5.1. I'll try an older version: gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9880 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode
Tom Browder tom.brow...@gmail.com added the comment: The build succeeded with the older version of gcc. I either have a mis-compiled gcc-4.5.1 (but the same version on another host worked okay) or gcc has a very subtle bug. I think this issue can be considered closed; however, it may be worth a note in a FAQ or build instructions. Good catch Amaury! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9880 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode
Tom Browder tom.brow...@gmail.com added the comment: Correction on the bad gcc compiler: the actual version was a non-released version off the gcc-4.6 branch: gcc version 4.6.0 20100908 (experimental) (GCC). I'm filing a bug with gcc. Sorry for the wasted time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9880 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9872] `a.b.my_function is not b.my_function` when `a` and `b` are both on `sys.path`
Ram Rachum cool...@cool-rr.com added the comment: Benjamin, This behavior is involved in a problem I have with Django. When using Django, you have apps that live inside a project: my_project\ __init__.py my_app\ __init__.py views.py So if you have a view function in `views.py`, it will have two separate identities, and that causes problems. Do you have an idea what I can do about it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9872 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: You're welcome. Please join a link to the gcc bug when you have one. -- resolution: - invalid status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9880 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9872] `a.b.my_function is not b.my_function` when `a` and `b` are both on `sys.path`
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I suggest to report this to the Django team. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9872 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9885] Function Round does not work properly in some conditions
New submission from paontis paor...@gmail.com: For example round(10., 1) returns 10.301 and round(1., 2)returns 1.3301 I exect they return 10.3 and 1.33 rispectively NOTE: other combinations work fine eg. round(10., 2) or round(1., 3) See IDLE commands in the attached file round.txt Used Python 2.6.6 for Windows -- files: round.txt messages: 116656 nosy: paontis priority: normal severity: normal status: open title: Function Round does not work properly in some conditions type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file18908/round.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9885 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9880] Python 2.7 Won't Build: SystemError: unknown opcode
Tom Browder tom.brow...@gmail.com added the comment: Here is a link to the thread I started on the gcc-help mailing list concerning the issue: http://gcc.gnu.org/ml/gcc-help/2010-09/msg00170.html If I don't get a successful build with the current gcc trunk, I imagine this thread will transfer to the gcc (dev) list--I'll try to keep the links up. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9880 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9886] Make operator.itemgetter/attrgetter/methodcaller easier to discover
New submission from Nick Coghlan ncogh...@gmail.com: The observation has been made that there are some idioms related to key functions passed to various methods and functions that aren't particularly easy to discover. One suggestion is to create a key function glossary entry that provides examples of standard library operations that exist primarily for use as key functions (i.e. the three functions mentioned in the issue title), as well as mentioning some of the APIs that accept key functions (e.g. sorted, list.sort, min, max). The documentation of these various could then cross link to the key function glossary entry to make this idioms more discoverable without needing to repeat ourselves in the documentation of every method that accepts a key function. As per discussion on python-ideas, including the glossary entry suggestion from Terry Reedy: http://mail.python.org/pipermail/python-ideas/2010-September/008093.html -- assignee: d...@python components: Documentation messages: 116658 nosy: d...@python, ncoghlan priority: normal severity: normal status: open title: Make operator.itemgetter/attrgetter/methodcaller easier to discover versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9886 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9886] Make operator.itemgetter/attrgetter/methodcaller easier to discover
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9886 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1690840] xmlrpclib methods submit call on __str__, __repr__
Mark Lawrence breamore...@yahoo.co.uk added the comment: This has been fixed in py3k but not 2.7. Is it worth backporting the change? -- nosy: +BreamoreBoy resolution: - fixed stage: - committed/rejected status: open - pending type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1690840 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1692335 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1693546] email.Message set_param rfc2231 encoding incorrect
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1693546 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9887] distutil's build_scripts doesn't read utf-8 in all locales
New submission from Hagen Fürstenau hfuerste...@gmx.net: LANG=C python3 setup.py build_scripts chokes on UTF-8 encoded scripts. The problem is that copy_scripts uses open without specifying an encoding. This issue may be related to #9561. -- assignee: tarek components: Distutils messages: 116660 nosy: eric.araujo, hagen, tarek priority: normal severity: normal status: open title: distutil's build_scripts doesn't read utf-8 in all locales versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9887 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1699594] shlex fails to parse strings correctly
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Georg: seems like your r55549 and r0 fixed this, am I correct? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1699594 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1703592] have a way to ignore nonexisting locales in locale.setlocale
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is this still an issue on Debian and Ubuntu? -- nosy: +BreamoreBoy, lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1703592 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9873] Allow bytes in some APIs that use string literals internally
Nick Coghlan ncogh...@gmail.com added the comment: From the python-dev thread (http://mail.python.org/pipermail/python-dev/2010-September/103780.html): == So the domain of any polymorphic text manipulation functions we define would be: - Unicode strings - byte sequences where the encoding is either: - a single byte ASCII superset (e.g. iso-8859-*, cp1252, koi8*, mac*) - an ASCII compatible multibyte encoding (e.g. UTF-8, EUC-JP) Passing in byte sequences that are encoded using an ASCII incompatible multibyte encoding (e.g. CP932, UTF-7, UTF-16, UTF-32, shift-JIS, big5, iso-2022-*, EUC-CN/KR/TW) or a single byte encoding that is not an ASCII superset (e.g. EBCDIC) will have undefined results. == -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9873 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1704474] optparse tests fail under Jython
Mark Lawrence breamore...@yahoo.co.uk added the comment: How do we find out which versions of optparse and test_optparse jython is currently using? -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1704474 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1705393] Select() failure (race condition)
Mark Lawrence breamore...@yahoo.co.uk added the comment: I've changed things in reply to msg85311, feel free to alter things again if you disagree. -- assignee: - d...@python components: +Documentation -Extension Modules, Library (Lib) nosy: +BreamoreBoy, d...@python versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1705393 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1705520] pyunit should allow __unittest in locals to trim stackframes
Mark Lawrence breamore...@yahoo.co.uk added the comment: is this still relevant? -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1705520 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1705520] pyunit should allow __unittest in locals to trim stackframes
Michael Foord mich...@voidspace.org.uk added the comment: It is relevant and would be *possible* to implement. I'm not 100% convinced it is a good *enough* idea to make it worth adding though. I'd like to leave the issue open for the moment in case other people want to comment. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1705520 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1703592] have a way to ignore nonexisting locales in locale.setlocale
Colin Watson cjwat...@users.sourceforge.net added the comment: Yes, the same symptoms are still present. I'd argue that it generally isn't an error in practice for applications, and thus the net effect of this exception is negative; it's extraordinarily rare for a crash to be preferable to running without localisation. Adding a new function would help because I think it would be easier to persuade people to call a new function that just does what they want (turn on localisation if possible) than to catch an exception (at which point they have to think hm, could that exception be for some other reason than you-just-don't-have-that-locale, etc.). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1703592 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9885] Function Round does not work properly in some conditions
R. David Murray rdmur...@bitdance.com added the comment: Please read http://docs.python.org/tutorial/floatingpoint.html Although your case isn't directly covered there, the root cause is the same. Floating point can't exactly represent 10.3. Note that in Python2.7 and 3.x, the repr will be shortened to 10.3, so if you'd tried this there you would never have noticed the underlying issue. If you need exact decimal arithmetic, use the Decimal module. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9885 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9885] Function Round does not work properly in some conditions
paontis paon...@gmail.com added the comment: ok thx very much for the explaination -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9885 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6627] threading.local() does not work with C-created threads
Swapnil Talekar swapnil...@gmail.com added the comment: As far as I know, the thread creation done in the file is not correct. While creating threads in C extension, there are certain rules to follow. Firstly, Python should be made thread-aware if it is not already i.e. call PyEval_InitThreads in the C callback function. After its creation, the thread should bootstrap to be able to execute Python code. It should create a new PyThreadState for itself by calling PyThreadState_New. For this, the thread should be passed the InterpreterState* through the entry function. Before executing any Python code, the thread should make sure that the current ThreadState * is corresponding to it by calling PyEval_RestoreThread. Refer http://docs.python.org/c-api/init.html#thread-state-and-the-global-interpreter-lock -- nosy: +swapnil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9877] Expose sysconfig._get_makefile_filename() in public API
Changes by Barry A. Warsaw ba...@python.org: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9877 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6627] threading.local() does not work with C-created threads
Nick Coghlan ncogh...@gmail.com added the comment: Swapnil's analysis looks correct to me - there are certain rules you have to follow before calling back into the Python interpreter core. If you don't follow them, the behaviour you will get is completely undefined. If the problem still occurs even when the C thread is correctly initialised for calling into the Python C API then this issue can be reopened. -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6627] threading.local() does not work with C-created threads
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: One more thing: in the sample code, the thread initializes no PyThreadState. So the ctypes callback creates a temporary PyThreadState just for the duration of the call. This explains the difference between threading.local and _threading_local: - threading.local() uses the PyThreadState to store its data: You get a new value on each call. - _threading_local.local() uses a global dictionary indexed by the thread id: the same value is retained across call. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9882] abspath from directory
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1706323] Updated ASTVisitor Classes
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is this still relevant given the addition of the ast module in r64064? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1706323 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1708652] Exact matching
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1708652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1709112] test_1686475 of test_os pagefile.sys
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Brian/Tim the attached patches have not been applied, what do you make of this one? -- components: +Extension Modules -Windows nosy: +BreamoreBoy, brian.curtin, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1709112 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1708652] Exact matching
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: Does this request still stand? If so then I'll add it to the new regex module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1708652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1710703] zipfile.ZipFile behavior inconsistent.
Mark Lawrence breamore...@yahoo.co.uk added the comment: I don't think the latest patch has been committed, could someone wave their magic wand please :) -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1710703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2236] Distutils' mkpath implementation ignoring the mode parameter
Senthil Kumaran orsent...@gmail.com added the comment: Fixed for py3k in r84861, release31-maint in r84863 and release27-maint in r84862. Thanks for patch, Carlos Henrique Romano. -- nosy: +orsenthil resolution: - fixed stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2236 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1724822] provide a shlex.split alternative for Windows shell syntax
Mark Lawrence breamore...@yahoo.co.uk added the comment: Already fixed by r55549 and r0. -- nosy: +BreamoreBoy resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1724822 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1727418] xmlrpclib waits indefinately
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can this be closed due to work on #6267? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1727418 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1724822] provide a shlex.split alternative for Windows shell syntax
R. David Murray rdmur...@bitdance.com added the comment: No, this feature request has not been satisfied. Georg fixed some subsidiary issues, but they did not in fact address the feature request for an shlex.split equivalent for Windows. Since no one has expressed interest in working on this, even though model code has been offered, I'm changing the resolution to languishing rather than reopening it. Perhaps someone with an itch to scratch will decide to pick it up eventually. -- assignee: georg.brandl - nosy: +r.david.murray resolution: fixed - status: closed - languishing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1724822 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1729930] 2.5.1 latest svn fails test_curses and test_timeout
Mark Lawrence breamore...@yahoo.co.uk added the comment: I can't believe that this is still relevant. -- nosy: +BreamoreBoy resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1729930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1730136] tkFont.__eq__ gives type error
Mark Lawrence breamore...@yahoo.co.uk added the comment: I think this one line patch still needs applying. -- nosy: +BreamoreBoy type: - behavior versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1730136 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1729930] 2.5.1 latest svn fails test_curses and test_timeout
R. David Murray rdmur...@bitdance.com added the comment: The bug probably does still exist (see issue 7038 for a recent similar report). However, without a repeatable test case we can't fix it, so leaving this closed is fine. If the OP can still reproduce it we can try working on it again. -- nosy: +r.david.murray resolution: out of date - works for me ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1729930 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1730372] Mesa with NPTL makes Python extensions crash with std::cerr
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could a Linux guru try to reproduce this with the latest trunk, thanks. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1730372 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1732367] Document the constants in the socket module
Mark Lawrence breamore...@yahoo.co.uk added the comment: msg67121 states proposed changes were lost :( -- nosy: +BreamoreBoy resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1732367 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1724822] provide a shlex.split alternative for Windows shell syntax
Eric Smith e...@trueblade.com added the comment: Raymond Chen's blog today discusses CommandLineToArgvW, which is apparently an API that can parse command lines. It's not clear to me if this is actually called by the MSFT CRT: http://blogs.msdn.com/b/oldnewthing/archive/2010/09/17/10063629.aspx Here's the documentation for it: http://msdn.microsoft.com/en-us/library/bb776391%28VS.85%29.aspx I don't know if we could call this directly (or via ctypes), or if we could emulate it based on the documentation, which doesn't seem very complete. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1724822 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1708652] Exact matching
R. David Murray rdmur...@bitdance.com added the comment: I would say you should make the call on whether or not it is worth adding. IIUC it would mean there was more than one way to do something (\Z vs 'exact'), so I personally am -0 on the feature request. But I'm not a frequent regex user, so I don't think my opinion should count for much. -- assignee: niemeyer - nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1708652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1735509] Newer reply format for imap commands in imaplib.py
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is there any interest in the change proposed here? If not I'll close in a few weeks time. Note the patch does not include doc or unit test changes. -- nosy: +BreamoreBoy status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1735509 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1732367] Document the constants in the socket module
R. David Murray rdmur...@bitdance.com added the comment: Resolution won't fix is inappropriate. We'd love to fix it, but someone has to volunteer to (re)write the doc update... -- nosy: +r.david.murray resolution: wont fix - type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1732367 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1736792] dict reentrant/threading request
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is this something that should be taken up on python-dev? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1736792 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1735509] Newer reply format for imap commands in imaplib.py
Eric Smith e...@trueblade.com added the comment: I'm not sure what fetch command does not contain literal means. If the OP can clarify, I'd be interested in this issue. -- nosy: +eric.smith status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1735509 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1724822] provide a shlex.split alternative for Windows shell syntax
Eric Smith e...@trueblade.com added the comment: Now that I think about this some more, we wouldn't want to call this API. I'd rather this hypothetical function be available on non-Windows platforms, so we'd have to implement the semantics of CommandLineToArgvW or whichever CRT we decide to match. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1724822 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1739789] Accelerate attr dict lookups
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is there any interest in this or can it be closed as implied in msg52790? -- nosy: +BreamoreBoy, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1739789 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1742205] ZipFile.writestr writes incorrect extended local headers
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +alanmcintyre versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1742205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1744456] Patch for feat. 1713877 Expose callbackAPI in readline module
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is there anyone who'd like to see this functionality exposed who could review this C code patch? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1744456 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1744752] Newline skipped in for line in file for huge file
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Brian/Tim any thoughts on this? -- nosy: +BreamoreBoy, brian.curtin, tim.golden title: Newline skipped in for line in file - Newline skipped in for line in file for huge file versions: +Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1744752 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1745035] DoS smtpd vulnerability
Mark Lawrence breamore...@yahoo.co.uk added the comment: Given the title, type and severity shouldn't someone take a look at this? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745035 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1745761] Bad attributes/data handling in SGMLib
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can we close this as sgmllib only supported htmllib which has been superseded by HTMLParser? -- nosy: +BreamoreBoy versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745761 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9888] int overflow in datetime causes seg fault from datetime.ctime()
New submission from Brian Bernstein bernie9...@gmail.com: When creating an int overflow via a subtraction operation with a datetime object and a timedelta object, the resulting datetime object can cause a segmentation fault when the ctime method is called. Segmentation Fault occurred on python 2.6.5 on 64 bit ubuntu lucid. Code as follows: from datetime import datetime, timedelta (datetime.now() - timedelta(734395)).ctime() -- components: None files: segfault.py messages: 116700 nosy: bernie9998 priority: normal severity: normal status: open title: int overflow in datetime causes seg fault from datetime.ctime() type: crash versions: Python 2.6 Added file: http://bugs.python.org/file18909/segfault.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1749512] imaplib cannot handle mailboxes with ACL: lrs
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Florian this won't go anywhere unles the patch includes doc and unit test changes. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1749512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2236] Distutils' mkpath implementation ignoring the mode parameter
R. David Murray rdmur...@bitdance.com added the comment: This update appears to be turning the windows buildbots red. See for example http://www.python.org/dev/buildbot/all/builders/x86 XP-4 3.1/builds/1230/steps/test/logs/stdio. -- nosy: +r.david.murray status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2236 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1751519] curses - new window methods: addchstr and addchnstr
Mark Lawrence breamore...@yahoo.co.uk added the comment: Doc additions haven't been included with the patches. -- nosy: +BreamoreBoy stage: - patch review type: - feature request versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1751519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1752919] Exception in HTMLParser for special JavaScript code
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can't see much sense in keeping a duplicate open. -- nosy: +BreamoreBoy status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1752919 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9886] Make operator.itemgetter/attrgetter/methodcaller easier to discover
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: d...@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9886 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1753718] base64 legacy functions violate RFC 3548
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- assignee: barry - d...@python nosy: +d...@python versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1753718 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1757057] IDLE + BeautifulSoup = Error
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can we close this given This is caused by a bug in BeautifulSoup which was fixed in version 3.0.5. from msg84412? -- nosy: +BreamoreBoy resolution: - invalid status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1757057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1739789] Accelerate attr dict lookups
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: This was an interesting idea. Essentially, it created cell-style objects for entries in a global dict so that functions using load_global could access and update the values directly. All dicts paid a price for this, but only module dicts would benefit. A more refined approach would be to create a custom dict type just for module globals. Mark, you're right. The patch appears to have been abandoned and not generated interest. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1739789 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1744456] Patch for feat. 1713877 Expose callbackAPI in readline module
Ned Deily n...@acm.org added the comment: This appears to be a duplicate of Issue1175004; both supply patches to implement readline callbacks. Suggest that anyone moving forward with this review both patches. -- nosy: +ned.deily resolution: - duplicate superseder: - Export more libreadline API functions ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1744456 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1175004] Export more libreadline API functions
Ned Deily n...@acm.org added the comment: Issue1744456 contains a different patch to implement readline callbacks. Suggest that anyone moving forward with this review both patches. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1175004 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1744752] Newline skipped in for line in file for huge file
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: We need a reproducible test before being able to go forward with this. At the very least, that would help isolate whether this is a build specific C library issue. -- nosy: +rhettinger resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1744752 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6627] threading.local() does not work with C-created threads
Nikolaus Rath nikol...@rath.org added the comment: @Swapnil: the rules you quote are correct for the C extension, but do not apply when using ctypes, because ctypes is doing the required initializations automatically. However, if Amaury is correct, ctypes performs the initializations in a way that break the threading.local functionality. I think the best way to address this bug would therefore be to add a warning to the ctypes documentation that C created threads will not support threading.local(). -- assignee: - d...@python components: +Documentation -Library (Lib) nosy: +d...@python status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6627] threading.local() does not work with C-created threads
Changes by Nikolaus Rath nikol...@rath.org: -- resolution: invalid - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9441] increase logging handlers test coverage
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Okay, the tests now pass and I've committed the path to py3k (r84864). Thanks, Tom and Alexander. -- resolution: - fixed stage: - committed/rejected status: open - closed type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9441 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9888] int overflow in datetime causes seg fault from datetime.ctime()
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9888] int overflow in datetime causes seg fault from datetime.ctime()
R. David Murray rdmur...@bitdance.com added the comment: This does not reproduce for me on python2.6.5 gentoo linux; however, gentoo linux does have some additional post 2.6.5 patches applied. It also does not reproduce on 2.7. -- nosy: +barry, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9441] increase logging handlers test coverage
R. David Murray rdmur...@bitdance.com added the comment: It looks like we are getting buildbot failures as a result of this checkin: http://www.python.org/dev/buildbot/all/builders/i386 Ubuntu 3.x/builds/2216/steps/test/logs/stdio -- nosy: +r.david.murray status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9441 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9889] PyUnicode_FormatV and Py_UNICODE*?
New submission from Michael Kleehammer mich...@kleehammer.com: Using Py_UNICODE* in Python 3 C extensions is significantly more cumbersome than using char* was in Python 2.x. One addition that could help would be a Py_UNICODE* format type for PyUnicode_FormatV. Many printf libraries us %S for wchar_t which would have been nicely analogous, but that is already taken for str(obj). -- components: Extension Modules, Interpreter Core messages: 116714 nosy: mkleehammer priority: normal severity: normal status: open title: PyUnicode_FormatV and Py_UNICODE*? type: feature request versions: Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9889 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9888] int overflow in datetime causes seg fault from datetime.ctime()
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1757057] Unexpected maximum recursion depth exceeded in IDLE shell with objects that cannot be pickled
Ned Deily n...@acm.org added the comment: While BeautifulSoup may have been fixed, the issue here still points to an underlying problem in IDLE being vulnerable to pickling errors. The given test case still fails in 2.7 (I didn't try to construct a test for Python 3). -- nosy: +kbk, ned.deily resolution: invalid - status: pending - open title: IDLE + BeautifulSoup = Error - Unexpected maximum recursion depth exceeded in IDLE shell with objects that cannot be pickled versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1757057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9889] PyUnicode_FormatV and Py_UNICODE*?
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9889 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1744752] Newline skipped in for line in file for huge file
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I think there's actually a bug in the MSVCRT read() function, which was not too hard to spot (see explanation below). In short, a CRLF file opened in text mode may skip a newline after 4GB. I'm re-closing the issue as won't fix. There's really nothing we can do about it. But note that Python 3.x is not affected (raw files are always opened in binary mode and CRLF translation is done by Python); with 2.7, you may use io.open(). Other issues: issue1142, issue1672853, issue1451466 also report the same end-of-line issue on Windows (I just searched for windows gb in the tracker...) I'll close them as well. Now, the explanation of the bug; it's not easy to reproduce because it depends both on the internal FILE buffer size and the number of chars passed to fread(). In the Microsoft CRT source code, in open.c, there is a block starting with this encouraging comment This is the hard part. We found a CR at end of buffer. We must peek ahead to see if next char is an LF. Oddly, there is an almost exact copy of this function in Perl source code: http://perl5.git.perl.org/perl.git/blob/4342f4d6df6a7dfa22a470aa21e54a5622c009f3:/win32/win32.c#l3668 The problem is in the call to SetFilePointer(), used to step back one position after the lookahead; it will fail because it is unable to return the current position in a 32bit DWORD. [The fix is easy; do you see it?] At this point, the function thinks that the next read() will return the LF, but it won't because the file pointer was not moved back. -- nosy: +amaury.forgeotdarc resolution: invalid - wont fix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1744752 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1142] code sample showing errors reading large files with py 2.5/3.0
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: issue1744752 describes why it's probably a bug in the C library. possible workarounds are to open the files in universal mode, to use io.open(), or to switch to python 3! -- nosy: +amaury.forgeotdarc resolution: - wont fix status: open - closed superseder: - Newline skipped in for line in file for huge file ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1142 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1672853] Error reading files larger than 4GB
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: issue1744752 describes why it's probably a bug in the C library. possible workarounds are to open the files in universal mode, to use io.open(), or to switch to python 3! -- nosy: +amaury.forgeotdarc resolution: - wont fix status: open - closed superseder: - Newline skipped in for line in file for huge file ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1672853 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1451466] reading very large files
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: issue1744752 describes why it's probably a bug in the C library. possible workarounds are to open the files in universal mode, to use io.open(), or to switch to python 3! -- nosy: +amaury.forgeotdarc resolution: - wont fix status: open - closed superseder: - Newline skipped in for line in file for huge file ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1451466 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6627] threading.local() does not work with C-created threads
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: ctypes performs the initializations in a way that break the threading.local functionality. Not quite. ctypes (or more exactly: the PyGILState_Ensure() and PyGILState_Release() functions, which are the standard API to do this) is in a situation where it must call Python code from a thread which has no PyThreadState. So it creates a thread state, runs the code, and destroys the thread state; is this wrong? If you want to keep Python state during your C thread, there are 4 lines to add to your function: void *async_cb(void *dummy) { PyGILState_STATE gstate = PyGILState_Ensure(); Py_BEGIN_ALLOW_THREADS (*callback_fn)(); (*callback_fn)(); Py_END_ALLOW_THREADS PyGILState_Release(gstate); pthread_exit(NULL); } -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6627] threading.local() does not work with C-created threads
Nikolaus Rath nikol...@rath.org added the comment: No, I am not saying that the behaviour of ctypes is wrong. It just happens to have some effects on threading.local that I think should be documented. That's why I reassigned this as a documentation bug. Please reconsider closing this bug. I'm also happy to change the type to Feature request. As an aside: I think in most cases one uses ctypes to call functions that are already compiled, so changing the source is not an option. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6627] threading.local() does not work with C-created threads
Nikolaus Rath nikol...@rath.org added the comment: To be a bit more constructive, why not add something like this in paragraph to http://docs.python.org/library/ctypes.html#callback-functions: Note that if the callback function is called in a new thread that has been created outside of Python's control (i.e., by the foreign code that calls the callback), ctypes creates a new dummy Python thread on every invocation. That means that values stored with `threading.local` will *not* survive across different callbacks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9888] int overflow in datetime causes seg fault from datetime.ctime()
Brian Bernstein bernie9...@gmail.com added the comment: After further investigation, it appears the cause is the ability to overflow the datetime object by almost a year. I've modified the test to demonstrate this relative to the current date: from datetime import date, datetime, timedelta (datetime.now()-timedelta((date.today()-date(1,1,1)).days+364)).ctime() It seems the date can be overflowed by up to a year without throwing an Exception. The result of which is a seg fault when calling the bound ctime method. Note that anything above 364 results in OverFlowError. Below 18 still overflows, but does not seg fault, instead resulting in a weird result,e.g.: 'Tue (null) 240 17:25:37 0001' I'll update the script to demonstrate the edge cases where this occurs. -- Added file: http://bugs.python.org/file18910/segfault.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1708652] Exact matching
Tom Lynn tl...@users.sourceforge.net added the comment: I don't know whether it should stand, I'm somewhere around 0 on it myself. So I guess that means it shouldn't, since it's easier to add features than remove them. The problem is that once you're aware of the need for it you need it less. In case other people are +1, I'll note that exact isn't a very nice name either, not being a verb. exact_match is a bit long but probably better (and better than match_exact). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1708652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6627] threading.local() does not work with C-created threads
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This is not specific to ctypes. Please read http://docs.python.org/c-api/init.html#thread-state-and-the-global-interpreter-lock specially the paragraph that says ...when threads are created from C Is it explicit enough? How would you change it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6627] threading.local() does not work with C-created threads
Nikolaus Rath nikol...@rath.org added the comment: One point of ctypes is to save the user the trouble of having to create a full blown C extension, so I don't think it's reasonable to expect a ctypes user to have read the full C API documentation as well. Only a very small subset of the page that you gave is actually relevant for use with ctypes. Why not put this information where a ctypes user can find it easily? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8998] add crypto routines to stdlib
lorph lor...@gmail.com added the comment: May I recommend using libtomcrypt instead of openssl because of the advertising problem outlined here? http://bugs.python.org/issue9119 In my opinion, libtomcrypt is easier to use and cleaner. It compiles on Windows without requiring Perl, and is free of the advertising clause in OpenSSL since it is public domain. http://libtom.org/?page=featuresnewsitems=5whatfile=crypt -- nosy: +lorph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8998 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1736792] dict reentrant/threading request
Adam Olsen rha...@gmail.com added the comment: I don't believe there's anything to debate on this, so all it really needs is a patch, followed by getting someone to review and commit it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1736792 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1706323] Updated ASTVisitor Classes
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Indeed, this module has little value now that ast.py is in stdlib. -- nosy: +amaury.forgeotdarc resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1706323 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8998] add crypto routines to stdlib
Antoine Pitrou pit...@free.fr added the comment: May I recommend using libtomcrypt instead of openssl because of the advertising problem outlined here? Changing libraries because of an advertising problem doesn't sound reasonable. The latter is much more easily solved than the former. Besides, libtomcrypt doesn't seem to provide SSL or TLS support (at least the Web page you linked to doesn't say so), so OpenSSL would still be needed for the ssl module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8998 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com