[issue28159] Deprecate isdst argument in email.utils.localtime

2022-02-08 Thread Alan WiIliams
Alan WiIliams added the comment: Hi, I'd like to work on this issue. Based on the discussion, the main thing to do here is to raise a deprecation warning when isdst is used? -- nosy: +Alan.Williams ___ Python tracker <https://bugs.python.

[issue28708] Low FD_SETSIZE limit on Windows

2021-04-11 Thread Alan
Alan added the comment: The big innovation with poll() is that it takes an array of descriptors like a normal function. https://www.geometrydash.me/ -- nosy: +alanpreston ___ Python tracker <https://bugs.python.org/issue28

[issue43240] IDLE Classic Unix keyboard shortcuts broken

2021-02-17 Thread Alan Moore
Alan Moore added the comment: Spent some time today with IDLE and PDB, and I've ruled out any other program on my system as the culprit: - I can create a tkinter GUI that will respond to a binding like and it works fine. - In pdb, I can bind <> to a callback and it is getting fire

[issue43240] IDLE Classic Unix keyboard shortcuts broken

2021-02-17 Thread Alan Moore
Alan Moore added the comment: Ok, sorry to keep poking at this issue, but I think I was too hasty in blaming firefox. As I previously mentioned, IDLE "forgot" that Ctrl-N meant "next line" and reverted it to "new window". I fixed that behavior by chang

[issue43240] IDLE Classic Unix keyboard shortcuts broken

2021-02-17 Thread Alan Moore
Alan Moore added the comment: An interesting note this morning, and again I don't know if this is actually an IDLE bug; I had left IDLE running overnight and opened a new code window this morning. Somehow IDLE "forgot" that Ctrl-N means "next line" and not "new

[issue43240] IDLE Classic Unix keyboard shortcuts broken

2021-02-16 Thread Alan Moore
Alan Moore added the comment: OK, it seems that closing all my firefox windows restored correct behavior to IDLE. I can only guess that somehow firefox was eating the Ctrl-x. Not sure if this is a firefox issue, a window manager issue, or an IDLE issue. If you think it's not the latter

[issue43240] IDLE Classic Unix keyboard shortcuts broken

2021-02-16 Thread Alan Moore
New submission from Alan Moore : Using IDLE 3.9.1 on Arch Linux. In IDLE I've selected the "classic unix" key set. It worked for a while, then stopped registering key combinations for more than one key (e.g. Ctrl-x Ctrl-s). Have tried creating a custom key set and manual

[issue43155] PyCMethod_New not defined in python3.lib

2021-02-13 Thread Barry Alan Scott
Barry Alan Scott added the comment: Thanks Petr, I'll watch for the PEP. FYI: I work on the assumption that if I use Py_LIMITED_API and the header files provide an API guarded by an #if then its "offical". -- ___ Python track

[issue43155] PyCMethod_New not defined in python3.lib

2021-02-10 Thread Barry Alan Scott
Barry Alan Scott added the comment: Is there a test suite that checks that the limited API functions can all be linked against? -- ___ Python tracker <https://bugs.python.org/issue43

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-09 Thread Barry Alan Scott
Barry Alan Scott added the comment: Understood that changing the status quo may have problems. Maybe you do an HTTP redirect from the old name to the new name? Or have the installed available under both names but only advertise the new name

[issue43168] macOS python install shares /usr/local with homebrew and can conflict

2021-02-08 Thread Barry Alan Scott
Barry Alan Scott added the comment: I was wondering what the bottom text box was for. The usual UX for check boxes is to toggle when the text of the control is clicked. Because of that I avoid clicking on check boxes that I do not know if I want to change. Hence I did not get to see

[issue43167] Add a note to the macOS installer welcome window about customize options

2021-02-08 Thread Barry Alan Scott
Barry Alan Scott added the comment: The readme page is a good 2nd best is PKG install has not option to control the text on the INstallation type page. My guess is that the info would need be in visible without scrolling for people to notice it. (UX is hard

[issue43168] macOS python install shares /usr/local with homebrew and can conflict

2021-02-08 Thread Barry Alan Scott
Barry Alan Scott added the comment: >From "UNIX command-line tools" its not clear to me that that prevents symlinks in /usr/local/bin. Maybe word it as "Add python to /usr/local/bin". Is this documented anywhere? I just looked at the download page https://www.pyt

[issue43167] macOS python install need mechanism to prevent editing shell profile files

2021-02-08 Thread Barry Alan Scott
Barry Alan Scott added the comment: It was not obvious that I could do that with Customise. Indeed I installed 3.10a5 just so that I could remind myself of what the installer did. It would help is the Installation type page told the user why they might want to use the Customise

[issue43168] macOS python install shares /usr/local with homebrew and can conflict

2021-02-08 Thread Barry Alan Scott
New submission from Barry Alan Scott : The popular homebrew system installs its binaries into /usr/local/bin. The macOS python install also defaults to /usr/local/bin where it puts symlinks to Python like: % ls -l /usr/local/bin/python3.10 lrwxr-xr-x 1 root 73 8 Feb 19:45:50 2021 /usr

[issue43167] macOS python install need mechanism to prevent editing shell profile files

2021-02-08 Thread Barry Alan Scott
New submission from Barry Alan Scott : By default the python macOS installer will edit .bash_profile and .zsh_profile to add Python to the path. For many users this is a problem that requires the added lines to be removed after each install. I suggest that there is a mechanism that the user

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-07 Thread Barry Alan Scott
Barry Alan Scott added the comment: I happy with your names. I think they are better then my version. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-07 Thread Barry Alan Scott
New submission from Barry Alan Scott : New users of Python on Windows frequently confuse the Python installation program with Python itself. They also can end up with the wrong 32 or 64 bit version. I suggest that the installation program name is changed to include "setup" in

[issue43155] PyCMethod_New not defined in python3.lib

2021-02-07 Thread Barry Alan Scott
New submission from Barry Alan Scott : When using the limited API PyCMethod_New is not defined in python3.lib. This leads to a link error. This error is in 3.9 and 3.10a5 Discovered when I improved the PyCXX test suite. Example output: Link obj\simple.pyd cl /nologo /W4 /LD /Zi /MT

[issue38780] SysLogHandler crash atexit

2021-01-06 Thread Alan Robertson
Alan Robertson added the comment: As far as I know, this only happens during shutdown. During shutdown it has already removed the attribute as part of the teardown process. In this case adding the attribute at the begining will do no good. On Wed, Jan 6, 2021, at 10:30 AM, Vinay Sajip wrote

[issue38780] SysLogHandler crash atexit

2021-01-06 Thread Alan Robertson
Alan Robertson added the comment: On Wed, Jan 6, 2021, at 10:30 AM, Vinay Sajip wrote: > > Vinay Sajip added the comment: > > TBH as I said in the now-closed PR, using a NullSocket seems overkill. > As mentioned in msg359594, it seems to make more sense to assign a >

[issue1178136] cgitb.py support for frozen images

2020-11-16 Thread Barry Alan Scott
Barry Alan Scott added the comment: Ok. I'll add this to my todo list. -- status: pending -> open ___ Python tracker <https://bugs.python.org/issue1

[issue42173] Drop Solaris support

2020-10-29 Thread Alan Coopersmith
Change by Alan Coopersmith : -- nosy: +alanc ___ Python tracker <https://bugs.python.org/issue42173> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42110] race condition in ThreadChildWatcher (default) and MultiLoopChildWatcher

2020-10-22 Thread Alan Jenkins
Alan Jenkins added the comment: Put the other way, if you wanted to fix this bug in ThreadedChildWatcher, and go as far as allowing cancelling Process.wait(), followed by kill() / send_signal(), then I think you need - * siginterrupt(SIGCHLD, 1) * not to mind about any random C code

[issue42110] race condition in ThreadChildWatcher (default) and MultiLoopChildWatcher

2020-10-22 Thread Alan Jenkins
Alan Jenkins added the comment: There's one way to fix this in MultiLoopChildWatcher (but not ThreadedChildWatcher). Make sure the waitpid() runs on the same thread that created the subprocess. Prototype: https://github.com/sourcejedi/cpython/commit

[issue42110] race condition in ThreadChildWatcher (default) and MultiLoopChildWatcher

2020-10-21 Thread Alan Jenkins
New submission from Alan Jenkins : ## Test program ## import asyncio import time import os import signal import sys # This bug happens with the default, ThreadedChildWatcher # It also happens with MultiLoopChildWatcher, # but not the other three watcher types. #asyncio.set_child_watcher

[issue35749] Rewrite asyncio signal handler

2020-10-21 Thread Alan Jenkins
Alan Jenkins added the comment: Here's a simple test case that fails on the main branch. https://github.com/sourcejedi/cpython/commit/50184ea3b354fd775866d036ccee058ec6734927 > the patch assumes that python signal handler will be called *before* reading > from self-pipe. >

[issue41339] make queue.Queue objects iterable

2020-07-19 Thread Alan Iwi
New submission from Alan Iwi : It is possible to make `queue.Queue` and `queue.SimpleQueue` objects iterable by adding simple `__iter__` and `__next__` methods. This is to suggest adding these methods to the existing `Queue` and `SimpleQueue` so that they are iterable by default. ``` class

[issue40815] Multiprocessing docs don't describe thread-safety

2020-05-29 Thread Alan Briolat
Change by Alan Briolat : -- nosy: +alan.briolat ___ Python tracker <https://bugs.python.org/issue40815> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40260] modulefinder traceback regression starting on Windows

2020-04-22 Thread Barry Alan Scott
Barry Alan Scott added the comment: Anthony, Now that everything is opened using open_code that returns bytes its not clear to me why this breaks for you. Further the data must be bytes for the codings to be figured out. Removing the b'\n' may be reasonable, but not for the reason given. I

[issue40260] modulefinder traceback regression starting on Windows

2020-04-19 Thread Barry Alan Scott
Barry Alan Scott added the comment: I have pushed the fix onto https://github.com/python/cpython/pull/19595 with an API test case and the changes to keep the debain subclassing working. I'm new the the work flow. Let me know if I need to change anything

[issue40260] modulefinder traceback regression starting on Windows

2020-04-19 Thread Barry Alan Scott
Change by Barry Alan Scott : -- pull_requests: +18931 pull_request: https://github.com/python/cpython/pull/19595 ___ Python tracker <https://bugs.python.org/issue40

[issue40260] modulefinder traceback regression starting on Windows

2020-04-16 Thread Barry Alan Scott
Barry Alan Scott added the comment: I have the fix coded and tested. I run out of git knowledge to update the PR branch so that I can push the fix. I'll work on it more later in the day. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40260] modulefinder traceback regression starting on Windows

2020-04-16 Thread Barry Alan Scott
Change by Barry Alan Scott : -- pull_requests: +18895 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19549 ___ Python tracker <https://bugs.python.org/issu

[issue40260] modulefinder traceback regression starting on Windows

2020-04-15 Thread Barry Alan Scott
Barry Alan Scott added the comment: Regarding test case. I will need to know what pymindeps is doing to be able to design a suitable test case. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40260] modulefinder traceback regression starting on Windows

2020-04-15 Thread Barry Alan Scott
Barry Alan Scott added the comment: I need to see the code of pymindeps to understand what you are doing and how to fix this. Can you post a URL to the source please? Are you aware that load_module() changed in other ways that are required to fix the bug? You may have to change yout

[issue40260] modulefinder traceback regression starting on Windows

2020-04-14 Thread Barry Alan Scott
Barry Alan Scott added the comment: io.open_code() used in the patch. -- components: -Windows ___ Python tracker <https://bugs.python.org/issue40260> ___ ___

[issue40260] modulefinder traceback regression starting on Windows

2020-04-12 Thread Barry Alan Scott
New submission from Barry Alan Scott : modulefinder.py does not open source files in "rb" which prevents compile() from applying the encoding rules. This first showed up for me on Windows with Python 3.8. Here is my test case and the results on Windows with 3.8. import mo

[issue39841] "as" variable in except block deletes local variables with same name

2020-03-03 Thread Alan Robertson
Alan Robertson added the comment: Thanks for your kind explanation. I may even vaguely remember seeing this sometime in the past. Thanks much for your time! -- ___ Python tracker <https://bugs.python.org/issue39

[issue39841] "as" variable in except block deletes local variables with same name

2020-03-03 Thread Alan Robertson
New submission from Alan Robertson : When an exception "as" variable occurs, it deletes local variables with the same name. This is certainly surprising, and doesn't appear to be a documented behavior (but maybe I don't know where to look). The word "bug" comes to mind.

[issue38780] SysLogHandler crash atexit

2020-01-08 Thread Alan Robertson
Alan Robertson added the comment: There are a variety of different reasons this can fail, not just on MacOS. You could give it a bad IP address of a server, etc. [That was my particular case]. The constructor should create an attribute 'socket' and initialize it to None early

[issue37256] urllib.request.Request documentation erroneously refers to the "final two"

2019-06-12 Thread Alan De Smet
Alan De Smet added the comment: Oops, used to GitHub/GitLab, where Markdown is fair game. Sorry about that. :-) -- ___ Python tracker <https://bugs.python.org/issue37

[issue37256] urllib.request.Request documentation erroneously refers to the "final two"

2019-06-12 Thread Alan De Smet
New submission from Alan De Smet : In Doc/library/urllib.request.rst, in the documentation for the class `Request`, it says ``` The final two arguments are only of interest for correct handling of third-party HTTP cookies: ``` However, three arguments follow, not two, and the last

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

2019-06-06 Thread Alan Yorinks
Alan Yorinks added the comment: Hi Carol,     Thanks for the update. I retested on Python 3.7 and the problem seems to have been resolved some where along the way. BTW, I am using MicroPython on an ESP8266 remotely controlled from a Python program on a PC. You can read about it here: https

[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 development

[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-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)) ``` The above program

[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 messages: 336358

[issue35045] test_min_max_version (test.test_ssl.ContextTests) fails on Fedora 29+ and openssl 1.1.1

2019-01-25 Thread Alan Huang
Change by Alan Huang : -- pull_requests: +11509, 11510 ___ Python tracker <https://bugs.python.org/issue35045> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35045] test_min_max_version (test.test_ssl.ContextTests) fails on Fedora 29+ and openssl 1.1.1

2019-01-25 Thread Alan Huang
Change by Alan Huang : -- pull_requests: +11509 ___ Python tracker <https://bugs.python.org/issue35045> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34991] variable type list [] referential integrity data loss

2018-10-16 Thread Alan
Alan added the comment: Thank you for your feedback steven.daprano and eric.smith. My first experience with a computer was 22 years ago and started as a computer science student 13 years ago. I began in the Visual Basic programming community in 2008, so I apologize as I am new to the Python

[issue34991] variable type list [] referential integrity data loss

2018-10-15 Thread Alan
New submission from Alan : Dear PythonDev, Thank you for your tremendous work in building a simpler programming language for all. As an avid user of lists, I am upset that my list cannot preserve its referential integrity in the attached pythonissue.txt file. In the following, (EXPECTED

[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

[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

[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

[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-

[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

[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-

[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 supported

[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-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-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_version` t

[issue33129] Add kwarg-only option to dataclass

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

[issue33129] Add kwarg-only option to dataclass

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

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
Alan Du <ahd2...@columbia.edu> 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 th

[issue33129] Add kwarg-only option to dataclass

2018-03-23 Thread Alan Du
New submission from Alan Du <ahd2...@columbia.edu>: 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 s

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

2018-02-10 Thread Alan Moore
Alan Moore <m...@alandmoore.com> added the comment: Thank you for all your help! On 02/09/2018 05:41 AM, Serhiy Storchaka wrote: > Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: > > Thank you for your contribution Alan! > > -- > resolu

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

2018-02-07 Thread Alan Moore
Alan Moore <m...@alandmoore.com> 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

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

2018-01-17 Thread Alan Moore
New submission from Alan Moore <m...@alandmoore.com>: 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

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-22 Thread Alan Pierce
Changes by Alan Pierce <alangpie...@gmail.com>: -- nosy: +alangpierce ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30392> ___ _

[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 <rep...@bugs.python.org> <http://bugs.python.org/i

[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 not affect

[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 tr

[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 --<any_suffix)> in the main parser and call the Python executable with python -- argparse fails with: error: ambiguous option: -- could match --, -- This probably happe

[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 <rep...@bugs.pyth

[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

[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 over 20

[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 able to test

[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) >>

[issue25037] ValueError: invalid literal for int() with base 16: b'[\r\n'

2015-09-08 Thread Alan
New submission from Alan: I've written a piece of code to POST request to a web service. === import json import urllib from urllib import request from urllib import parse def Payload(start_date, end_date, pnode_list

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2015-03-29 Thread Barry Alan Scott
Barry Alan Scott added the comment: I should point out using Python2.7 with wxPython I do not see this issue. This issue was exposed during my efforts to port pysvn from py2.7+wxPython to py3.4+wxpython-phoenix. I do setup locale on the main thread very early before starting the background

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2015-03-29 Thread Barry Alan Scott
Barry Alan Scott added the comment: Mac OS X use the __CF_USER_TEXT_ENCODING env var to setup the locale in for native libraries. I found that for GUI python code I needed to convert the value in __CF_USER_TEXT_ENCODING into a suitable call to setlocale(). The code I use is attached

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2015-03-28 Thread Barry Alan Scott
New submission from Barry Alan Scott: I'm seeing a random traceback when starting a new thread on Mac OS X 10.10.2 with python 3.4.3 final. Exception in thread Thread-1: Traceback (most recent call last): File /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/threading.py

[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 PyUnresolvedReferences

[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=0B0adDMMjxksDRGtiWFowVUh0RlEusp=sharing These files are the result of running a cProfile

[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 program

[issue22990] bdist installation dialog

2014-12-03 Thread Alan
New submission from Alan: The Select Python Installations dialog box contains the line Select the Python locations where distribution_name should be installed. If distribution_name is anything other than a very short string, the line is truncated, due to the following factors: - the line

[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 issue 15002

[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://user:password@server/packages/repodata').read().splitlines() Output: list of files Try 2 - import urllib2 urllib2.urlopen('ftp://user:password@server/packages

[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 ala...@br.ibm.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22375 ___ ___ Python-bugs

[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://user:password@server/packages/repodata').read().splitlines() Output: list of files Try 2 - import urllib2 urllib2.urlopen('ftp://user:password@server/packages

[issue6839] zipfile can't extract file

2014-04-30 Thread Alan McIntyre
Changes by Alan McIntyre alan.mcint...@gmail.com: -- nosy: -alanmcintyre ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6839 ___ ___ Python-bugs

[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's a tuple (note

[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) succeeds, not that bar is an instance

[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

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue19346 ___ ___ Python-bugs-list

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

2014-01-09 Thread Alan Hourihane
Changes by Alan Hourihane al...@fairlite.co.uk: -- resolution: - remind ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19036 ___ ___ Python-bugs

[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 rep...@bugs.python.org http://bugs.python.org/issue19348 ___ ___ Python-bugs-list

  1   2   3   >