[issue36089] Formatting/Spelling errors in SimpleHTTPServer docs

2019-02-22 Thread Alan Grgic
New submission from Alan Grgic : The warning heading near the top of https://docs.python.org/2/library/simplehttpserver.html contains improperly formatted text and misspells SimpleHTTPServer as 'SimpleHTTServer'. -- assignee: docs@python components: Documentation messag

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-09 Thread Alan Evangelista
New submission from Alan Evangelista: If you have a argument named -- in a subparser and two arguments named -- in the main parser and call the Python executable with python -- argparse fails with: error: ambiguous option: -- could match --, -- This probably happens due to how the

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-10 Thread Alan Evangelista
Alan Evangelista added the comment: Adding the feature was just a workaround suggestion, but this is a bug. Arguments in the main parser should not "hide" an argument in a subparser in argument abbreviation. -- ___ Python trac

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-16 Thread Alan Evangelista
Alan Evangelista added the comment: PA> In http://bugs.python.org/issue14910#msg204678 I suggest a subclassing patch that might work with Py2. This solves my particular case. I do not use any argument with action='count', so the regression introduced by the new option does

[issue29777] argparse arguments in main parser hide an argument in subparser

2017-03-16 Thread Alan Evangelista
Alan Evangelista added the comment: s/Python 2.6/Python 2/ in last comment -- ___ Python tracker <http://bugs.python.org/issue29777> ___ ___ Python-bugs-list m

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-22 Thread Alan Pierce
Changes by Alan Pierce : -- nosy: +alangpierce ___ Python tracker <http://bugs.python.org/issue30392> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36704] logging.FileHandler currently hardcodes errors='strict'

2019-04-23 Thread Alan Jenkins
New submission from Alan Jenkins : ## Problem description ``` import os import logging logging.basicConfig(filename='example.log',level=logging.DEBUG) for name in os.listdir(): logging.error('Hypothetical syntax error at line 1 of file: {}'.format(name)) ```

[issue36704] logging.FileHandler currently hardcodes errors='strict'

2019-04-23 Thread Alan Jenkins
Alan Jenkins added the comment: > [**] dnf developers did not appear to work on the correctness issue they > found. It might be a bug in gettext. Nitpick: sorry, I read too quickly. dnf *did* fix the specific correctness issue, as well as setting raiseExceptions = false. It is exp

[issue36704] logging.FileHandler currently hardcodes errors='strict'

2019-04-26 Thread Alan Jenkins
Alan Jenkins added the comment: Oops. I assumed logging.raiseExceptions == True (the default) actually raises exceptions, but it doesn't. It prints the exception to stderr and continues. E.g. traditional UNIX daemons run with stderr connected to /dev/null. Consider during develo

[issue32585] Add ttk::spinbox to tkinter.ttk

2018-01-17 Thread Alan Moore
New submission from Alan Moore : Ttk has a spinbox widget, which is a themed version of Tkinter spinbox, but this is missing from Python's ttk implementation. -- components: Tkinter messages: 310198 nosy: Alan Moore priority: normal severity: normal status: open title: Add ttk::sp

[issue32585] Add ttk::spinbox to tkinter.ttk

2018-02-07 Thread Alan Moore
Alan Moore added the comment: Thanks, I'm guessing  the update_idletasks() needed to be called after changing the value of command, since the button clicks do this as part of the method. If that's not right, let me know. I've added the options to the list and pushed the ch

[issue32585] Add ttk::spinbox to tkinter.ttk

2018-02-10 Thread Alan Moore
Alan Moore added the comment: Thank you for all your help! On 02/09/2018 05:41 AM, Serhiy Storchaka wrote: > Serhiy Storchaka added the comment: > > Thank you for your contribution Alan! > > -- > resolution: -> fixed > stage: patch review -> resolv

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
New submission from Alan Du : I'd like to request a new option to the `dataclasses.dataclass` decorator to make the `__init__` keyword-only. The two use-cases I have in mind are: (1) Using as a dataclass big-bag-of-config. In this scenario, forcing the user to specify the keywords is

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
Alan Du added the comment: If this would be accepted, I'd be happy to contribute a patch adding a `kwarg_only` option to `dataclass` (although it might take me a while since I'm not super familiar with the Python development workflow). I believe I already have the code change ne

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
Alan Du added the comment: Err... the right link would actually be https://github.com/alanhdu/cpython/tree/bpo-33129. -- ___ Python tracker <https://bugs.python.org/issue33

[issue33129] Add kwarg-only option to dataclass

2018-03-25 Thread Alan Du
Change by Alan Du : -- keywords: +patch pull_requests: +5975 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33129> ___ ___ Python-

[issue33995] test_min_max_version in test_ssl.py fails when Python is built against LibreSSL; {min,max}imum_version behavior differs from OpenSSL

2018-06-28 Thread Alan Huang
New submission from Alan Huang : LibreSSL's implementation of the function used to get the minimum and maximum SSL versions supported differs from OpenSSL's. In short, the issue is in the implementations of `SSL_CTX_new` - OpenSSL initializes variables `ret->{min,max}_proto_

[issue34001] LibreSSL does not tolerate setting minimum_version greater than maximum_version

2018-06-29 Thread Alan Huang
New submission from Alan Huang : LibreSSL has a function called `ssl_clamp_version_range` that is called before attempting to set the minimum and maximum protocol versions in `ssl_version_set_{min,max}`. The function disallows setting ranges that are invalid (i.e., where minimum_version

[issue33995] test_min_max_version in test_ssl.py fails when Python is built against LibreSSL; {min,max}imum_version behavior differs from OpenSSL

2018-07-01 Thread Alan Huang
Change by Alan Huang : -- components: -Documentation versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue33995> ___ ___ Python-bugs-list m

[issue34001] LibreSSL does not tolerate setting minimum_version greater than maximum_version

2018-07-02 Thread Alan Huang
Alan Huang added the comment: Strangely, LibreSSL's `ssl_clamp_version_range` function is perfectly happy to accept minimum protocol versions lower than the lowest supported protocol version, and likewise is happy to accept maximum protocol versions higher than the highest supp

[issue33995] test_min_max_version in test_ssl.py fails when Python is built against LibreSSL; {min,max}imum_version behavior differs from OpenSSL

2018-07-02 Thread Alan Huang
Change by Alan Huang : -- keywords: +patch pull_requests: +7658 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33995> ___ ___ Python-

[issue33995] test_min_max_version in test_ssl.py fails when Python is built against LibreSSL; {min,max}imum_version behavior differs from OpenSSL

2018-07-02 Thread Alan Huang
Alan Huang added the comment: PR 8050 implements option 2a (use PY_PROTO_{MIN,MAX}IMUM_AVAILABLE). -- ___ Python tracker <https://bugs.python.org/issue33

[issue34001] LibreSSL does not tolerate setting minimum_version greater than maximum_version

2018-07-02 Thread Alan Huang
Change by Alan Huang : -- keywords: +patch pull_requests: +7663 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34001> ___ ___ Python-

[issue33808] ssl.get_server_certificate fails with openssl 1.1.0 but works with 1.0.2g for self-signed certificate

2018-07-18 Thread Alan Huang
Alan Huang added the comment: This is an issue of cipher support, not a Python bug. mail.mani.pt supports the following (outdated) ciphers: RC4-SHA (0x05) RC4-MD5 (0x04) DES-CBC3-SHA (0x0a) EXP1024-DES-CBC-SHA (0x62) DES-CBC-SHA (0x09) EXP1024-RC4-SHA (0x64) EXP-RC2-CBC-MD5 (0x06) EXP-RC4-MD5

[issue1539381] Add readinto method to StringIO and cStringIO

2018-07-24 Thread Alan Justino
Alan Justino added the comment: It affects SpooledTemporaryFile too. Because it switches between StringIO, BytesIO and TemporaryFile internally. Only StringIO have not this interface. Discovered trying to `pickle.load` a remote storage file. Please reopen. -- nosy: +alanjds

[issue1539381] Add readinto method to StringIO and cStringIO

2018-07-24 Thread Alan Justino
Alan Justino added the comment: Issued a related PR (https://github.com/python/cpython/pull/8451) to allow SpooledTemporaryFile to propagate `readinto` calls to TemporaryFile, BytesIO or StringIO. Of this ones, only StringIO will fail

[issue18844] allow weights in random.choice

2013-08-26 Thread Alan Isaac
New submission from Alan Isaac: The need for weighted random choices is so common that it is addressed as a "common task" in the docs: http://docs.python.org/dev/library/random.html This enhancement request is to add an optional argument to random.choice, which must be a seque

[issue18898] Apply the setobject optimizations to dictionaries

2013-09-03 Thread Alan Cristhian
Changes by Alan Cristhian : -- nosy: +Alan.Cristhian ___ Python tracker <http://bugs.python.org/issue18898> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1739648] zipfile.testzip() using progressive file reads

2012-04-28 Thread Alan McIntyre
Alan McIntyre added the comment: I'd be glad to do some code reviews or something in exchange for the time of somebody with commit rights. :-) If anybody is interested in getting this change committed, please let me know and I'll check that the patch is still vali

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-15 Thread Alan Kennedy
Changes by Alan Kennedy : -- nosy: +amak ___ Python tracker <http://bugs.python.org/issue14814> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16202] sys.path[0] security issues

2012-10-11 Thread Alan WiIliams
Changes by Alan WiIliams : -- nosy: +Alan.WiIliams ___ Python tracker <http://bugs.python.org/issue16202> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-03-31 Thread Alan Braithwaite
New submission from Alan Braithwaite: At wsgiref.simple_server:99, it uses the wrong field to get the headers from the request. In rfc822.Message.readheaders it describes that the headers attribute is an uninterrupted list of the lines in the header. The dict attribute of Message should

[issue21172] Unexpected behaviour with logging.LogRecord "first arg is dict" case

2014-04-07 Thread Alan Briolat
New submission from Alan Briolat: The logging.LogRecord class is more restrictive with its "first arg is dict" case than the formatting operator it uses requires. As far as I can tell, for "%(foo)s" % bar, the minimum contract is that bar.__getitem__("foo")

[issue21172] Unexpected behaviour with logging.LogRecord "first arg is dict" case

2014-04-08 Thread Alan Briolat
Alan Briolat added the comment: Because the object in question is not actually a dict, LogRecord is attempting, in this example, "%(bar)s" % (f,) instead of "%(bar)s" % f. In unicodeobject.c this causes the PyMapping_Check in PyUnicode_Format to fail because it&

[issue6839] zipfile can't extract file

2014-04-30 Thread Alan McIntyre
Changes by Alan McIntyre : -- nosy: -alanmcintyre ___ Python tracker <http://bugs.python.org/issue6839> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17226] libintl should also check for libiconv

2013-09-16 Thread Alan Hourihane
Alan Hourihane added the comment: This works for me... --- configure.ac.old2013-09-10 14:37:20.0 + +++ configure.ac2013-09-10 14:56:27.0 + @@ -2190,7 +2190,11 @@ AC_CHECK_LIB(intl, textdomain, [AC_DEFINE(WITH_LIBINTL, 1, [Define to 1 if

[issue19036] setlocale fails due to locale.h being wrapped up in LANGINFO check.

2013-09-16 Thread Alan Hourihane
New submission from Alan Hourihane: Patch --- Python/fileutils.c.old 2013-09-11 07:04:42.0 + +++ Python/fileutils.c 2013-09-11 07:05:01.0 + @@ -4,8 +4,8 @@ # include #endif -#ifdef HAVE_LANGINFO_H #include +#ifdef HAVE_LANGINFO_H #include #endif

[issue19036] setlocale fails due to locale.h being wrapped up in LANGINFO check.

2013-09-16 Thread Alan Hourihane
Alan Hourihane added the comment: Oops, meant to say. In pythonrun.c the setlocale() call is already wrapped inside the #ifdef so the problem ISN'T bumped into there. -- ___ Python tracker <http://bugs.python.org/is

[issue19036] setlocale fails due to locale.h being wrapped up in LANGINFO check.

2013-09-16 Thread Alan Hourihane
Alan Hourihane added the comment: Yes, it's a "Build" issue as mentioned using the "Components" field. But cut & pasting from other files is incorrect in this case because setlocale() is still used outside of the #ifdef. File attached. -- keyw

[issue19036] setlocale fails due to locale.h being wrapped up in LANGINFO check.

2013-09-16 Thread Alan Hourihane
Alan Hourihane added the comment: You'll see the error on any platform that doesn't include "locale.h" when it should, i.e. a platform that doesn't have NL_LANGINFO. This is the build error. Python/fileutils.c: In function 'check_force_ascii': Python/f

[issue19036] setlocale fails due to locale.h being wrapped up in LANGINFO check.

2013-09-16 Thread Alan Hourihane
Alan Hourihane added the comment: Sure, Look in the function. check_force_ascii() You'll see a hunk of code that is ifdef'd for ... #if defined(HAVE_LANGINFO_H) && defined(CODESET) Then you'll see setlocale() is called outside of that check, just before another

[issue1539925] warnings in interactive sessions

2013-10-13 Thread Alan Cristhian
Changes by Alan Cristhian : -- nosy: +Alan.Cristhian ___ Python tracker <http://bugs.python.org/issue1539925> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5342] packaging: add tests for old versions cleanup on update

2013-10-16 Thread Alan Cristhian
Changes by Alan Cristhian : -- nosy: +Alan.Cristhian ___ Python tracker <http://bugs.python.org/issue5342> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19346] Build fails when there are no shared extensions to be built

2013-10-22 Thread Alan Hourihane
New submission from Alan Hourihane: When building python with static extensions and therefore there are no shared extensions to be built the extension list can be NULL, and therefore 0 length. This results in this error running build running build_ext INFO: Can't locate Tcl/Tk libs a

[issue19348] Building _testcapimodule as a builtin results in compile error

2013-10-22 Thread Alan Hourihane
New submission from Alan Hourihane: When building _testcapimodule.c as a builtin module, the build fails with this error because it doesn't take into account Py_BUILD_CORE from datetime.h. m68k-atari-mint-gcc -I. -IInclude -I/j/var/tmp/portage/dev-lang/python-2.7.5-r2/work/Python-

[issue19441] itertools.tee improve documentation

2013-10-29 Thread Alan Cristhian
New submission from Alan Cristhian: I had some problems using itertools.tee function. Fortunately I found the following advice on the PEP-323: "Currently, the copied iterators remaintied to the original iterator. If the original advances, then so do all of the copies. Good practice

[issue19441] itertools.tee improve documentation

2013-11-11 Thread Alan Cristhian
Alan Cristhian added the comment: Ok, I agree. -- ___ Python tracker <http://bugs.python.org/issue19441> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22375] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect results

2014-09-09 Thread Alan Evangelista
New submission from Alan Evangelista: Examples in Python command line: Try 1 - >>> import urllib2 urllib2.urlopen('ftp://:@/packages/repodata').read().splitlines() Output: Try 2 - >>> import urllib2 urllib2.urlopen('ftp://:@/packages/repodata'

[issue22375] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect results

2014-09-09 Thread Alan Evangelista
Changes by Alan Evangelista : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue22375> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue22376] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect result

2014-09-09 Thread Alan Evangelista
New submission from Alan Evangelista: Examples in Python command line: Try 1 - >>> import urllib2 urllib2.urlopen('ftp://:@/packages/repodata').read().splitlines() Output: Try 2 - >>> import urllib2 urllib2.urlopen('ftp://:@/packages/repodata'

[issue22376] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect result

2014-09-10 Thread Alan Evangelista
Alan Evangelista added the comment: duplicate of #22375. I closed that one because I wanted to edit the original bug description and I could not, preferred to create a new bug. R. David Murray's comment in #22375: "I think this was already fixed in is

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2013-12-19 Thread Alan Justino
Alan Justino added the comment: Seems to affect 2.7 too. -- nosy: +alanjds versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue3566> ___ ___

[issue19346] Build fails when there are no shared extensions to be built

2014-01-09 Thread Alan Hourihane
Alan Hourihane added the comment: Anyone ? -- resolution: -> remind ___ Python tracker <http://bugs.python.org/issue19346> ___ ___ Python-bugs-list mai

[issue19036] setlocale fails due to locale.h being wrapped up in LANGINFO check.

2014-01-09 Thread Alan Hourihane
Changes by Alan Hourihane : -- resolution: -> remind ___ Python tracker <http://bugs.python.org/issue19036> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue19348] Building _testcapimodule as a builtin results in compile error

2014-01-09 Thread Alan Hourihane
Alan Hourihane added the comment: Anyone ? -- resolution: -> remind ___ Python tracker <http://bugs.python.org/issue19348> ___ ___ Python-bugs-list mai

[issue20496] function definition tutorial encourages bad practice

2014-02-02 Thread Alan Isaac
New submission from Alan Isaac: Section 4.6 of the tutorial introduces function definition: http://docs.python.org/3/tutorial/controlflow.html#defining-functions The first example defines a function that *prints* a Fibonacci series. A basic mistake made by students new to programming is to use

[issue20629] Python ctypes BigEndianStructure bitfield assignment misbehavior in Linux

2014-02-14 Thread Alan Ning
New submission from Alan Ning: I am seeing a strange issue with bitfields and BigEndianStructure under Ubuntu 12.04 x64, Python 2.7.3. This bug only occurs if I define my bitfields using c_uint. If I switch to c_ushort, it goes away. Below is a simple code that highlights the problem. I have

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-05 Thread Alan Isaac
New submission from Alan Isaac : In Python 2.6 if I subclass Exception and intialize my instances with a `message` attribute, I get a DeprecationError via BaseException. Of course there is no problem in Py3, because adding a `message` attribute to instances of a subclass is in fact **not** a

[issue1739648] zipfile.testzip() using progressive file reads

2009-09-06 Thread Alan McIntyre
Alan McIntyre added the comment: Attached is a patch that makes the zipfile module check the result of testzip when run as __main__ as well as in test_zipfile.py, and adds some tests in test_zipfile64.py. The changes to test_zipfile64.py increased its runtime from ~671 sec to ~1060 sec on my

[issue6839] zipfile can't extract file

2009-09-06 Thread Alan McIntyre
Alan McIntyre added the comment: FileRoller doesn't complain about the mismatched slashes either. Where did the ZIP come from, by the way? I seem to recall that there have been other instances in which ZIP applications were more "forgiving" than the zipfile module. How far sh

[issue6839] zipfile can't extract file

2009-09-06 Thread Alan McIntyre
Alan McIntyre added the comment: Sorry about the confusion--I think I confused myself by looking at the bit about CRC checksums in the "Info-ZIP Unicode Path Extra Field" section before I posted. I meant to say that the central directory name looks preferred over the per-file

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-07 Thread Alan Isaac
Alan Isaac added the comment: > The 'message' attribute itself is deprecated > as it didn't exist prior to being introduced in 2.5. That seems to me to be the wrong way to phrase it, and indeed that kind of phrasing implies the current bug. For example, it leads to th

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-12 Thread Alan Isaac
Alan Isaac added the comment: Since you are working on this, can you see if http://bugs.python.org/issue6108 is related or in any case can be fixed at the same time? Thanks. -- ___ Python tracker <http://bugs.python.org/issue6

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-16 Thread Alan Isaac
Alan Isaac added the comment: I hope it is not too annoying to link these ... I asked thhis of Jean-Paul but now I'll ask it of George. Since you are working on this, can you see if http://bugs.python.org/issue6108 is related or in any case can be fixed at the same time? T

[issue7289] bad import in redemo.py script in v3.1

2009-11-08 Thread Alan Gauld
New submission from Alan Gauld : The Tkinter import in redemo.py in Tools/Scripts folder of the 3.1 distribution uses the old spelling of Tkinter. Changing it to lower case fixes it. I've just noticed there is a 3.2 listed, I haven't checked whether it's been fixed there but it

[issue5716] Overzealous deprecation of BaseException.message

2009-12-11 Thread Alan Isaac
Alan Isaac added the comment: FYI a patch has been committed that should fix this. For discussion see http://bugs.python.org/issue6844 -- nosy: +aisaac ___ Python tracker <http://bugs.python.org/issue5

[issue706263] print raises exception when no console available

2010-01-08 Thread Alan Justino
Alan Justino added the comment: FWIW: I don't know if it changes anything, but when deploying Django projects on some clients who uses Windows as server, I'm using this piece of code to workarround this issue: ## Fixes "IOError: [Errno 9] Bad file descriptor" when in py

[issue1296434] Call by object reference sometimes call by value

2009-03-21 Thread Alan G
Alan G added the comment: Lol! After four years I could hardly claim to care anymore... -- ___ Python tracker <http://bugs.python.org/issue1296434> ___ ___ Pytho

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Alan Hourihane
New submission from Alan Hourihane : mathmodule.c fails to compile because math_log1p() is missing in mathmodule.c... gcc -fno-strict-aliasing -DNDEBUG -O2 -pipe -fomit-frame-pointer -I. -IInclude -I./Include -DPy_BUILD_CORE -c ./Modules/mathmodule.c -o Modules/mathmodule.o ./Modules

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Alan Hourihane
Alan Hourihane added the comment: I do have log1p() available... checking for log1p... yes And it's in math.h and libm.a on my system. I still can't see any reference to math_log1p() in mathmodule.c which is why it's barfing. -- ___

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Alan Hourihane
Alan Hourihane added the comment: Ah. right. I see what you mean about the macro expansion. So I'm on an Atari FreeMiNT platform which is an m68k box which has no shared libraries so I'm setting up for static only via Setup.dist. Note that cmathmodule.c compiles fine and that does

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Alan Hourihane
Alan Hourihane added the comment: It's ok, I see what the problem is. It's GCC's headers that are causing trouble. Closing. -- status: open -> closed ___ Python tracker <http://bugs

[issue5865] mathmodule.c fails to compile due to missing math_log1p() function

2009-04-28 Thread Alan Hourihane
Alan Hourihane added the comment: GCC was munging math.h when it did fixincludes. I'm fixing the GCC port now. Result of 1e16+2.9 is... 10002.00 -- ___ Python tracker <http://bugs.python.org/i

[issue1739648] zipfile.testzip() using progressive file reads

2009-05-13 Thread Alan McIntyre
Alan McIntyre added the comment: It would appear that the change to testzip has already been made: http://mail.python.org/pipermail/python-checkins/2008-August/072892.html http://mail.python.org/pipermail/python-3000-checkins/2008-August/004310.html I can add some tests, though. I'll s

[issue5912] import deadlocks when using fork

2009-05-14 Thread Alan Pevec
Alan Pevec added the comment: Issue is not reproducible with python 2.5, following patch fixes it on python 2.4: --- os.py-2.4 2009-05-14 12:54:08.0 + +++ os.py 2009-05-14 13:06:21.0 + @@ -351,8 +351,8 @@ __all__.extend(["execl","execle","

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

2009-05-15 Thread Douglas Alan
Douglas Alan added the comment: Antoine Pitrou wrote: > Nick Coghlan added the comment: > > Note that the problem with the read()+split() approach is that you > > either have to read the whole file into memory (which this RFE is trying > > to avoid) or you have to do y

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

2010-07-02 Thread Douglas Alan
Douglas Alan added the comment: Until this feature gets built into Python, you can use a Python-coded generator such as this one to accomplish the same effect: def fileLineIter(inputFile, inputNewline="\n", outputNewline=None, rea

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

2010-07-22 Thread Douglas Alan
Douglas Alan added the comment: Personally, I think that this functionality should be built into Python's readlines. That's where a typical person would expect it to be, and this is something that is supported by most other scripting language I've used. E.g., awk has the RS

[issue1739648] zipfile.testzip() using progressive file reads

2010-07-25 Thread Alan McIntyre
Alan McIntyre added the comment: Ok, I'll see if I can update that in the next week or so. -- ___ Python tracker <http://bugs.python.org/issue1739648> ___ ___

[issue1773632] Remove references to _xmlrpclib from xmlrpclib.py

2010-07-25 Thread Alan McIntyre
Alan McIntyre added the comment: Both 2.6 and 2.7 are in the maintenance-only stage at this point, aren't they? I personally don't think this important enough to worry about for 2.x. -- ___ Python tracker <http://bugs.python.org

[issue1710703] zipfile.ZipFile behavior inconsistent.

2010-07-31 Thread Alan McIntyre
Alan McIntyre added the comment: Sure thing; I'll see if I can have a look within the next week or so. -- ___ Python tracker <http://bugs.python.org/issu

[issue9504] signal.signal/signal.alarm not working as expected

2010-08-04 Thread Alan Wilter
New submission from Alan Wilter : I have this example code to illustrate a problem I am having with python3. It works fine with python 2.6 and 2.7 but does not with python 3.1. from __future__ import print_function import os, subprocess, signal def signal_handler( signum, frame ): print

[issue17226] libintl should also check for libiconv

2013-02-18 Thread Alan Hourihane
New submission from Alan Hourihane: The configure.ac script detects libintl but can depend on libiconv. I added this to force it and to demonstrate, but I think this is not 100% correct and should be massaged into the libintl tests. --- configure.ac.old2013-02-16 09:34:55.0 +

[issue17226] libintl should also check for libiconv

2013-02-18 Thread Alan Hourihane
Alan Hourihane added the comment: Hi Yes, when Python is built as static only, on a system when no dynamic loading is available. You have to explicitly link libiconv when libintl references it. -- ___ Python tracker <http://bugs.python.

[issue17226] libintl should also check for libiconv

2013-02-19 Thread Alan Hourihane
Alan Hourihane added the comment: Sure this is on an Atari m68k platform called FreeMiNT. Traditionally in configure scripts you'll see it checked as *-mint* -- ___ Python tracker <http://bugs.python.org/is

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Alan Hourihane
New submission from Alan Hourihane: On m68k this assert triggers in Python/unicodeobject.c:4658 because m68k architectures can align on 16bit boundaries. assert(!((size_t) dest & LONG_PTR_MASK)); I'm not sure of the wider implications in Python as to how to rectify. -- c

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Alan Hourihane
Alan Hourihane added the comment: I'm willing to help fix, but there are m68k emulators out there which I guess suffice for a test box. -- ___ Python tracker <http://bugs.python.org/is

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Alan Hourihane
Alan Hourihane added the comment: As mention in the versions. It is Python 3.3.0. -- ___ Python tracker <http://bugs.python.org/issue17237> ___ ___ Python-bug

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Alan Hourihane
Alan Hourihane added the comment: It must be about pointer alignment, because that's the whole point of the ASSERT. As for the backtrace, the gdb support on the platform isn't great yet, but here it is Breakpoint 1, ascii_decode (start=0x30c5b04 "__len__", end=0x3

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Alan Hourihane
Alan Hourihane added the comment: It's GCC 4.6.3. GCC has the -malign-int but mentions this isn't in best interest of m68k ABI compatibility if it's used. -- components: +Build -Unicode type: crash -> versions: -Python 3.4

[issue17237] m68k aligns on 16bit boundaries.

2013-02-19 Thread Alan Hourihane
Alan Hourihane added the comment: Oh, and as for pointer alignment, I probably just wasn't clear in the initial report. But we agree on m68k C ABI. -- ___ Python tracker <http://bugs.python.org/is

[issue17226] libintl should also check for libiconv

2013-04-24 Thread Alan Hourihane
Alan Hourihane added the comment: Bumping. How does Jeffrey's patch look folks ? -- ___ Python tracker <http://bugs.python.org/issue17226> ___ ___ Pytho

[issue23324] Python 3.4.2 running slow on Ubuntu 14.10

2015-01-26 Thread Alan Yorinks
New submission from Alan Yorinks: Folks, I am not trying to waste anyone's time. If this is not the correct mailing list to get this problem resolved, please point me to the correct one. To summarize my problem, if I run the configuration below with python 3.4.2 on Linux, the pr

[issue23324] Nonblocking serial io using Arduino and Ubuntu 14.10 (Python 3.4.2) performance slowdown

2015-01-27 Thread Alan Yorinks
Alan Yorinks added the comment: Additional information: When using another example from PyMata, examples/digital_analog_io/callback_digital_analog_io.py, by adding the line: if sys.platform == 'linux': # noinspection PyUnresolved

[issue23324] Nonblocking serial io using Arduino and Ubuntu 14.10 (Python 3.4.2) performance slowdown

2015-01-27 Thread Alan Yorinks
Alan Yorinks added the comment: I don't see the file I attached in the previous comment, so I have uploaded 4 files to google drive at: https://drive.google.com/folderview?id=0B0adDMMjxksDRGtiWFowVUh0RlE&usp=sharing These files are the result of running a cPr

[issue25310] End mark argument for StreamReader.readline() method

2015-10-03 Thread Alan Cristhian
New submission from Alan Cristhian: I use pickle to serialize data. The pickle.dumps() methods sometimes introduce the b"\n" character: >>> import pickle >>> tuple_with_10 = (10,) >>> result = pickle.dumps(tuple_with_10, protocol=4) >>

[issue26551] Regex.finditer infinite loops with certain input

2016-03-13 Thread Alan Mislove
New submission from Alan Mislove: I found a regex and input that causes re.finditer() to appear to get into an infinite loop. Please see the attached minimal python script that triggers the behavior. I've verified the bug exists on 2.7.6, 3.4.0, and 3.5.1; I haven't yet be ab

[issue26551] Regex.finditer infinite loops with certain input

2016-03-13 Thread Alan Mislove
Alan Mislove added the comment: Thanks for the quick reply, Serhiy! You're right -- after letting it run for even longer, it does complete. Sorry for the trouble. I have two quick followup questions: 1. Would this be considered a performance bug? On my machine, it runs for ov

[issue26838] sax.xmlreader.InputSource.setCharacterStream() does not work?

2016-04-24 Thread Alan Jenkins
New submission from Alan Jenkins: python3-3.4.3-5.fc23-x86_64 So far I spelunked here. Starting from <https://github.com/kurtmckee/feedparser/issues/30>. I experimented with using setCharacterStream() instead of setByteStream() setCharacterStream() is shown in documentation but exer

[issue26838] sax.xmlreader.InputSource.setCharacterStream() does not work?

2016-04-24 Thread Alan Jenkins
Alan Jenkins added the comment: Looks like this is documented elsewhere and fixed in 3.5. https://fossies.org/diffs/Python/3.4.3_vs_3.5.0/Doc/library/xml.sax.reader.rst-diff.html -- status: open -> closed ___ Python tracker <http://bugs.pyth

<    1   2   3   >