[issue24132] Direct sub-classing of pathlib.Path

2017-11-08 Thread Stephen M. Gava
Stephen M. Gava added the comment: @paul.moore is the original contributor mia? i seem to remember pathlib as once being marked 'provisional', i think it should have stayed that way until this problem was resolved. easy to say i know ;) when i don't have a patch. @projet

Re: [issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-22 Thread M.-A. Lemburg
On 22.11.2017 08:40, Serhiy Storchaka wrote: > Usually the read() method of a file-like object takes one optional argument > which limits the amount of data (the number of bytes or characters) returned > if specified. > > codecs.StreamReader.read() also has such parameter. But this is the second

Re: [issue32429] Outdated Modules/Setup warning is invisible

2017-12-27 Thread M.-A. Lemburg
On 27.12.2017 00:24, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> +1 - do you have any thoughts on that? > > I think the current scheme may have been useful at a time where DVCS didn't > exist. You would maintain an unversioned copy of Modules/Setup.dist in your > work-tr

[issue29708] support reproducible Python builds

2018-07-03 Thread Bernhard M. Wiedemann
Bernhard M. Wiedemann added the comment: also related to this topic: https://github.com/pypa/pip/pull/5525 for pip's RECORD file. -- ___ Python tracker <https://bugs.python.org/is

[issue34299] argparse description formatting

2018-07-31 Thread Phillip M. Feldman
New submission from Phillip M. Feldman : With `argparse`, I'm providing a triple-quoted string via the `description` argument of the constructor. When I invoke the script with the -h or --help argument, all formatting in the triple-quoted string is lost, i.e., all paragraphs ar

[issue34299] argparse description formatting

2018-07-31 Thread Phillip M. Feldman
Phillip M. Feldman added the comment: That works. Thanks! I think that this boils down to a documentation issue. The following says that the default behavior is to line-wrap the help messages. At least to me, this doesn't imply that whitespace is getting eaten. RawDescriptionHelpForm

[issue34417] imp.find_module reacts badly to iterator

2018-08-16 Thread Phillip M. Feldman
New submission from Phillip M. Feldman : `imp.find_module` goes down in flames if one tries to pass an iterator rather than a list of folders. Firstly, the message that it produces is somewhat misleading: RuntimeError: sys.path must be a list of directory names Secondly, it would be

[issue34417] imp.find_module reacts badly to iterator

2018-08-20 Thread Phillip M. Feldman
Phillip M. Feldman added the comment: It appears that the `importlib` package has the same issue: One can't provide an iterator for the path. When searching a large folder tree for an item that is likely to be found early in the search process (i.e., at a high level in the folder tree)

[issue34417] imp.find_module reacts badly to iterator

2018-08-21 Thread Phillip M. Feldman
Phillip M. Feldman added the comment: My apologies for the tone of my remark. I am grateful to you and others who donate their time to develop the code. I'm attaching the wrapper code that I created to work around the problem. Phillip def expander(paths='./*'): "&qu

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Bernhard M. Wiedemann
New submission from Bernhard M. Wiedemann : To reproduce: touch -d 2038-01-20 /usr/lib/python3.6/site-packages/six.py python3 /usr/lib64/python3.6/compileall.py File "/usr/lib64/python3.6/compileall.py", line 198, in compile_path legacy=legacy, optimize=optimize) File &

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Bernhard M. Wiedemann
Bernhard M. Wiedemann added the comment: It does not need to be fixed tomorrow, but 2037 is too late, because by then there will be a lot of legacy systems around. (Un)fortunately many systems live 10+ years now -- ___ Python tracker <ht

[issue11152] pb in zipfile module

2013-07-26 Thread Damien M Calloway
Changes by Damien M Calloway : -- nosy: +dmcalloway ___ Python tracker <http://bugs.python.org/issue11152> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11152] pb in zipfile module

2013-07-28 Thread Damien M Calloway
Damien M Calloway added the comment: I believe I have isolated the bug - I added a blank string to the SMALL TEST DATA list, since empty strings will not compress. Test now fails on lines 645 and 663 when "extract" and "extract_all" assertions fail. This appears to

[issue18997] Crash when using pickle and ElementTree

2013-09-10 Thread Germán M . Bravo
New submission from Germán M. Bravo: On the tip of 3.3, I've found `Element.__getstate__` doesn't work and neither as `pickle.dumps(Element)` under certain circumstances. This crashes: e1 = ElementTree().parse('houses.xml') e1.__getstate__() This doesn't crash:

[issue18998] iter() not working in ElementTree

2013-09-10 Thread Germán M . Bravo
New submission from Germán M. Bravo: The added iter/itertext methods in Element are not working under certain circumstances (crashes): This crashes: e = ElementTree().parse('/Users/kronuz/Desktop/tests/houses.xml') e.iter() But the problem is not there if I use bootstrapped

[issue18997] Crash when using pickle and ElementTree

2013-09-10 Thread Germán M . Bravo
Germán M. Bravo added the comment: The attached patch fixes the problem (there were some missing JOIN_OBJ()) -- keywords: +patch Added file: http://bugs.python.org/file31723/join_obj.diff ___ Python tracker <http://bugs.python.org/issue18

[issue18998] iter() not working in ElementTree

2013-09-10 Thread Germán M . Bravo
Germán M. Bravo added the comment: It crashes when I run that code snippet I posted (using the attached xml file) The problem was introduced by the commit that added iterator support. -- ___ Python tracker <http://bugs.python.org/issue18

[issue18997] Crash when using pickle and ElementTree

2013-09-10 Thread Germán M . Bravo
Changes by Germán M. Bravo : Removed file: http://bugs.python.org/file31723/join_obj.diff ___ Python tracker <http://bugs.python.org/issue18997> ___ ___ Python-bugs-list m

[issue18997] Crash when using pickle and ElementTree

2013-09-10 Thread Germán M . Bravo
Changes by Germán M. Bravo : Added file: http://bugs.python.org/file31725/join_obj.diff ___ Python tracker <http://bugs.python.org/issue18997> ___ ___ Python-bugs-list m

[issue14704] NameError Issue in Multiprocessing

2012-05-01 Thread David M. Rogers
New submission from David M. Rogers : Python Devs, There is an issue relating to variable lookup using exec from within multiprocessing's fork()-ed process. I'm attempting to use the forked process as a generic remote python shell, but exec is unable to reach variables fr

[issue15128] inspect raises exception when frames are misleading about source line numbers

2012-06-21 Thread Kevin M. Turner
New submission from Kevin M. Turner : The attached example shows how inspect.findsource fails when given a stack frame that points to a non-existent source line, and how inspect.getframeinfo and getinnerframes do not handle that failure. On the one hand, yes, this code was asking for it by

[issue15128] inspect raises exception when frames are misleading about source line numbers

2012-06-21 Thread Kevin M. Turner
Kevin M. Turner added the comment: patch attached (against python 2.7 tip) -- keywords: +patch Added file: http://bugs.python.org/file26077/15128-inspect-source-linenum.diff ___ Python tracker <http://bugs.python.org/issue15

[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file12188/poplib_03_SSL_refactor.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___

[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file12172/poplib.rst.patch ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Python-bug

[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file12187/poplib_02_sock_shutdown.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___

[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file12189/poplib_04_STLS.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Python-bug

[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file26132/poplib_01_socket_shutdown.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___

[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file26134/poplib_03_starttls.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Pytho

[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file12192/poplib_01_CAPA.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Python-bug

[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file12965/test_popnet.py ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Python-bug

[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file12966/test_popnet.py ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Python-bug

[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file26133/poplib_02_server_capabilities.diff ___ Python tracker <http://bugs.python.org/issue4

[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci
Lorenzo M. Catucci added the comment: I've refreshed the patches to apply on 3.3, and adapted the to the unit-test framework by giampaolo.rodola. -- ___ Python tracker <http://bugs.python.org/i

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file26240/poplib_02_server_capabilities.diff ___ Python tracker <http://bugs.python.org/issue4

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file26133/poplib_02_server_capabilities.diff ___ Python tracker <http://bugs.python.org/issue4

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file26134/poplib_03_starttls.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Pytho

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file26241/poplib_03_starttls.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Pytho

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file26242/poplib_03_starttls.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Pytho

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file26241/poplib_03_starttls.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Pytho

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Lorenzo M. Catucci added the comment: I've refreshed once more the patches, adding the implementation of the stls command in test_poplib.py. IMHO, the changes as they stand now are low risk, and could as well go into 3.3. With many thanks to Giampaolo for implementing the asynchat/asy

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file26250/poplib_01_socket_shutdown_v3.diff ___ Python tracker <http://bugs.python.org/issue4

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file26251/poplib_02_server_capabilities_v3.diff ___ Python tracker <http://bugs.python.org/issue4

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file26252/poplib_03_starttls_v3.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Pytho

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file26132/poplib_01_socket_shutdown.diff ___ Python tracker <http://bugs.python.org/issue4

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file26240/poplib_02_server_capabilities.diff ___ Python tracker <http://bugs.python.org/issue4

[issue4473] POP3 missing support for starttls

2012-07-03 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file26242/poplib_03_starttls.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Pytho

[issue9762] PEP 3149 related build failures

2012-08-20 Thread Stephen M McQuay
Stephen M McQuay added the comment: I cobbled together a mix of what I found here: http://ubuntuforums.org/showthread.php?t=1976837 http://blog.schmichael.com/2012/05/29/building-python-2-6-8-on-ubuntu-12-04/ and got python 2.6 to build fine on modern Ubuntu : % python -mplatform Linux-3.2.0

Re: [issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread M.-A. Lemburg
te("SELECT NOW()") > timeRow = mysqlCursor.fetchall() > currentDateTime = datetime.datetime.strptime(timeRow[0]["NOW()"], "%Y-%m-%d > %H:%M:%S") > > I get the following error: > > TypeError: must be string, not datetime.datetime > > HOWE

Re: [issue11322] encoding package's normalize_encoding() function is too slow

2014-06-15 Thread M.-A. Lemburg
On 15.06.2014 15:02, Mark Lawrence wrote: > > What's the status of this issue, as we've lived with this really slow > implementation for well over three years? I guess it just needs someone to write a patch. Note that encoding lookups are cached, so the slowness only becomes an issue if you loo

[issue14621] Hash function is not randomized properly

2012-11-06 Thread John M Camara
John M Camara added the comment: How about using a secure hash algorithm that's implemented in HW when available. It doesn't eliminate the issue on systems that lack this support but at least it limits the scope of the problem. Of course some testing would need to be done to mak

[issue4473] POP3 missing support for starttls

2012-11-18 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file28025/poplib_02_server_capabilities_v4.diff ___ Python tracker <http://bugs.python.org/issue4

[issue4473] POP3 missing support for starttls

2012-11-18 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Added file: http://bugs.python.org/file28026/poplib_03_starttls_v4.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___ Pytho

[issue4473] POP3 missing support for starttls

2012-11-18 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file26251/poplib_02_server_capabilities_v3.diff ___ Python tracker <http://bugs.python.org/issue4

[issue4473] POP3 missing support for starttls

2012-11-18 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file26252/poplib_03_starttls_v3.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___

[issue4473] POP3 missing support for starttls

2012-11-18 Thread Lorenzo M. Catucci
Lorenzo M. Catucci added the comment: Updated 02 and 03 patches (mostly) in line with Antoine's review comments: > 2) poplib_02_server_capabilities_v3.diff: > - please try to follow PEP 8 (i.e. `capa = {}` not `capa={}`) > - I think the capa() result should be a dict mapping s

[issue4473] POP3 missing support for starttls

2012-11-23 Thread Lorenzo M. Catucci
Lorenzo M. Catucci added the comment: OK, I'm uploading poplib_03_starttls_v5.diff; I only changed the "caps=self.capa()" into "caps = self.capa()" in the "@@ -352,21 +360,42 @@ class POP3:" hunk. Thank you for pointing at the line; I tried to run pep8.py on

[issue4473] POP3 missing support for starttls

2012-11-23 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci : Removed file: http://bugs.python.org/file28026/poplib_03_starttls_v4.diff ___ Python tracker <http://bugs.python.org/issue4473> ___ ___

[issue16856] Segfault from calling repr() on a dict with a key whose repr raise an exception

2013-01-03 Thread David M. Cooke
New submission from David M. Cooke: The following segfaults: class A(int): def __repr__(self): raise Exception() a = A() d = {a : 1} repr(d) This is with Python 3.3.0, running on Mac OS 10.7.5, from MacPorts: Python 3.3.0 (default, Sep 29 2012, 08:16:08) [GCC 4.2.1 Compatible

[issue4590] 2to3 strips trailing L for long iterals in two fixers

2013-01-28 Thread Fábio M . Costa
Fábio M. Costa added the comment: I believe that since this change the 2to3 documentation is outdated. http://docs.python.org/2/library/2to3.html#2to3fixer-long http://docs.python.org/2/library/2to3.html#2to3fixer-numliterals http://docs.python.org/3/library/2to3.html#2to3fixer-long http

[issue17155] Logging throwing UnicodeEncodeError exception

2013-02-07 Thread Germán M . Bravo
New submission from Germán M. Bravo: I've seen *a lot* of people using `logging.exception(exc)` to log exceptions. It all seems okay, until the exc object contains unicode strings, at which point logging throes a UnicodeEncodeError exception. Example: `exc = Exception(u'op

[issue19033] Python 3 won't go on PC-BSD 9.1

2013-09-15 Thread Robert M. Koretsky
New submission from Robert M. Koretsky: I use the instructions in the README file that gets unzipped with Python-3.0.tgz to install on PC-BSD 9.1 ./configure, make, make test, sudo make install and it does not work! Error messages too verbose to include here. My path includes the directory that

[issue19135] Check out my profile on LinkedIn

2013-10-01 Thread Andre M. Descombes
New submission from Andre M. Descombes: LinkedIn I'd like to include you in my network to share updates and stay in touch. - Andre Andre Descombes DQM at Coheris Paris Area, France Confirm that you know Andre Descombes: https://www.linkedin.com/e/-3qcne3-hm8s7jcj-

[issue21830] ssl.wrap_socket fails on Windows 7 when specifying ca_certs

2014-06-23 Thread David M Noriega
New submission from David M Noriega: When trying to use python3-ldap package on Windows 7, found I could not get a TLS connection to work and traced it to its use of ssl.wrap_socket. Trying out the following simple socket test fails import socket import ssl sock = socket.socket() sock.connect

[issue21830] ssl.wrap_socket fails on Windows 7 when specifying ca_certs

2014-06-24 Thread David M Noriega
David M Noriega added the comment: Oops, thats what I get for running with scissors. Yes, the cert file is in pem format. Its the same file in use on my ldap server and all my servers and workstations that authenticate against it. I have an existing python 2.x script using the python-ldap

Re: [issue21772] platform.uname() not EINTR safe

2014-07-08 Thread M.-A. Lemburg
On 08.07.2014 11:40, Stefano Borini wrote: > > You can't use subprocess. platform is used during build. subprocess needs > select, but select is a compiled module and at that specific time in the > build process is not compiled yet. Good point :-) -- Marc-Andre Lemburg eGenix.com ___

[issue19352] unittest loader barfs on symlinks

2014-02-06 Thread Kevin M. Turner
Changes by Kevin M. Turner : -- nosy: +acapnotic ___ Python tracker <http://bugs.python.org/issue19352> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20587] sqlite3 converter not being called

2014-02-10 Thread Kathryn M Kowalski
New submission from Kathryn M Kowalski: I have a timestamp converter that works on 2.5 but doesn't on 2.7.2 (ActiveState 2.7.2.5 Attached is some pared down test code and output from a machine running 2.5 and one running 2.7. At one point I even put print statements in the converter -

[issue20587] sqlite3 converter not being called

2014-02-10 Thread Kathryn M Kowalski
Changes by Kathryn M Kowalski : Added file: http://bugs.python.org/file34029/check_with_output.txt ___ Python tracker <http://bugs.python.org/issue20587> ___ ___ Pytho

[issue20587] sqlite3 converter not being called

2014-02-11 Thread Kathryn M Kowalski
Kathryn M Kowalski added the comment: Worked on my machine too - but if you add "union all" AND "order by" it breaks -- Added file: http://bugs.python.org/file34047/demo2.py ___ Python tracker <http://bug

[issue20587] sqlite3 converter not being called

2014-02-12 Thread Kathryn M Kowalski
Kathryn M Kowalski added the comment: See attached file with output from both python versions. It is using the converter as shown in demo2a. The code using the converter was working on 2.5 for years - it quit working on the move to 2.7 because it couldn't compare a datetime to the

[issue6652] missing cmath functions

2009-08-05 Thread Phillip M. Feldman
New submission from Phillip M. Feldman : The online documentation describes functions cmath.phase and cmath.polar, but when I try to import these, I get "cannot import name" errors. -- assignee: georg.brandl components: Documentation messages: 91330 nosy: georg.bra

[issue6663] re.findall does not always return a list of strings

2009-08-06 Thread Phillip M. Feldman
New submission from Phillip M. Feldman : As per the Python documentation, the following regular expression should produce a list containing the strings '6.7', 7.33', and '9': re.findall('(-?\d+[.]\d+)|(-?\d+[.]?)|(-?[.]\d+)', 'asdf6.77.33ff9&#

[issue6663] re.findall does not always return a list of strings

2009-08-07 Thread Phillip M. Feldman
Phillip M. Feldman added the comment: You are right-- the documentation does say this, although it took me a while to understand what it means. Thanks! It seems as though there's a flaw in the design here, because there should be some mechanism for grouping elements of a regular expre

[issue7021] subprocess.Popen doesn't work without "executable="

2009-09-29 Thread Konstantin M. Khankin
New submission from Konstantin M. Khankin : I'm need to call sendmail. So I wrote: http://paste.org.ru/?imuoia os.stat there is to confirm that python can have access to sendmail executable That code returned an exception: http://paste.org.ru/?jbxadp But documentation says, that I can

[issue7021] subprocess.Popen doesn't work without "executable="

2009-09-29 Thread Konstantin M. Khankin
Konstantin M. Khankin added the comment: And I still can't make it works. Now sendmail is called but says that "Recipient addresses must be specified on the command line or via the - -- ___ Python tracker <http://bugs.python.

[issue7021] subprocess.Popen doesn't work without "executable="

2009-09-29 Thread Konstantin M. Khankin
Konstantin M. Khankin added the comment: Sorry, it's my fault. I must write it as list, not as string -- status: open -> closed ___ Python tracker <http://bugs.python.or

[issue1104249] configure doesn't set up CFLAGS properly

2009-10-14 Thread M Joonas Pihlaja
M Joonas Pihlaja added the comment: Here's a test case: $ CFLAGS="--haflkhlaiuhfnafkghnaf" ./configure; make [... configure does its thing... ] [... make does its thing and completes successfully ...] Expected result: The build fails due to an unknown flag in CFLAGS. W

[issue3079] sys.exit() called from optparse - bad, bad, bad

2009-10-15 Thread Phillip M. Feldman
Phillip M. Feldman added the comment: The current behavior of optparse is contrary to how most of Python works. optparse should throw a named exception that can be trapped and identified by the calling program. Doing a SystemExit is unacceptable. I can't believe that this is such a hard

[issue3079] sys.exit() called from optparse - bad, bad, bad

2009-10-15 Thread Phillip M. Feldman
Phillip M. Feldman added the comment: Thanks for the response! I can indeed catch SystemExit, but I would like to be able to take one action (terminate the program) if the user supplied an unknown option, and another action (prompt for a new value) if the user supplied a bad value for an

[issue7322] Socket timeout can cause file-like readline() method to lose data

2009-11-14 Thread David M. Beazley
New submission from David M. Beazley : Consider a socket that has had a file-like wrapper placed around it using makefile() # s is a socket created previously f = s.makefile() Now, suppose that this socket has had a timeout placed on it. s.settimeout(15) If you try to read data from f, but

[issue1859] textwrap doesn't linebreak on "\n"

2009-11-29 Thread Phillip M. Feldman
Phillip M. Feldman added the comment: As a temporary workaround, you can use the `wrap` function in my strnum module (http://pypi.python.org/pypi/strnum/2.4). Phillip -- nosy: +pfeld...@verizon.net ___ Python tracker <http://bugs.python.

[issue7411] allow import from file having name containing hyphen or blank

2009-11-29 Thread Phillip M. Feldman
New submission from Phillip M. Feldman : It appears that there is currently no way to import from a file whose name contains a hyphen or blank. This makes it difficult to encode a version number or date in the file name. The solution that I favor would be to allow the name of the file to be

[issue4758] Python 3.x internet documentation needs work

2009-12-28 Thread David M. Beazley
David M. Beazley added the comment: An apology on the delay. Things have been rather hectic. Regarding a patch, I don't really have a patch so much as a suggested procedure. Basically, I'm suggesting that the maintainers of the library documentation simply do a quick survey

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan
New submission from M. Shuaib Khan : Hi, Running test_distutils as a non root user fails for me. Running it as a root user works. System information: uname -a Linux Matrix 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC i686 i686 i386 GNU/Linux ./python --version Python 3.1a2

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan
Changes by M. Shuaib Khan : Added file: http://bugs.python.org/file13811/rpm-tmp.15210 ___ Python tracker <http://bugs.python.org/issue5875> ___ ___ Python-bugs-list m

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan
Changes by M. Shuaib Khan : Added file: http://bugs.python.org/file13812/rpm-tmp.15211 ___ Python tracker <http://bugs.python.org/issue5875> ___ ___ Python-bugs-list m

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan
M. Shuaib Khan added the comment: Tried. Same failure. -- ___ Python tracker <http://bugs.python.org/issue5875> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan
M. Shuaib Khan added the comment: drwxrwxrwt 5 root root 4096 2009-04-29 15:46 tmp And after a number of failed test runs... -rw-r--r-- 1 shuaib users 893 2009-04-29 16:01 rpm-tmp.11523 -rw-r--r-- 1 shuaib users 893 2009-04-29 16:01 rpm-tmp.11524 -rw-r--r-- 1 shuaib users 893 2009-04-29

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2009-04-29 Thread M. Shuaib Khan
M. Shuaib Khan added the comment: I've already tried the removal of foo... directory. Failed. I think the following might be interesing... drw-rw-rw- 3 shuaib users 4096 2009-04-29 15:46 null Permissions for null/lib are as follows: drwxr-xr-x 3 shuaib users 4096 2009-04-29 15:4

Re: [issue29410] Moving to SipHash-1-3

2017-02-01 Thread M.-A. Lemburg
On 01.02.2017 10:14, Christian Heimes wrote: > > PEP 456 defines an API to add more hashing algorithms and make the selection > of hash algorithm a compile time option. We can easily add SipHash-1-3 and > make it the default algorithm. Vendors then can select between FNV2, > SipHash-1-3 and Sip

Re: [issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread M.-A. Lemburg
On 17.02.2017 13:06, STINNER Victor wrote: >> Alternatively, sysconfig data could be made available via a C lookup >> function; with the complete dictionary only being created on demand. >> get_config_var() already is such a lookup API which could be used as >> front-end. > > I don't think that

Re: [issue26839] Python 3.5 running on Linux kernel 3.17+ can block at startup or on importing the random module on getrandom()

2016-06-07 Thread M.-A. Lemburg
On 07.06.2016 22:27, Theodore Tso wrote: > > Secondly, when I decided to add this behavior to getrandom(2), it was because > people were really worried that people would be using /dev/urandom for > security-critical things (e.g., initializing ssh host session keys, when > they'd _really_ rather

[issue4470] smtplib SMTP_SSL not working.

2013-05-19 Thread Lorenzo M. Catucci
Lorenzo M. Catucci added the comment: On Sun, 19 May 2013, R. David Murray wrote: RDM> RDM> R. David Murray added the comment: RDM> RDM> Lorenzo, any chance you could supply a unit test that fails without RDM> smtplib_05_shutdown_socket.diff applied? RDM> It would real

Re: [issue22980] C extension naming doesn't take bitness into account

2014-12-16 Thread M.-A. Lemburg
ptive than it's worth, especially since untagged pyds are > still supported but the debug tag is still necessary. 'm' is always the case > in Windows and is benign for a correct extension anyway, and AFAICT 'u' is > totally unused. You may have misread my comme

Re: [issue14014] codecs.StreamWriter.reset contract not fulfilled

2015-01-14 Thread M.-A. Lemburg
Adding a note to the documentation is fine. The .reset() method doesn't have anything to do with the underlying stream. It's only meant to work at the codec level and needed for codecs that keep internal state. -- Marc-Andre Lemburg eGenix.com ___ Pyt

Re: [issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder

2015-01-15 Thread M.-A. Lemburg
On 15.01.2015 05:43, Martin Panter wrote: > > New patch that also fixes StreamWriter.writelines() in general for the byte > codecs Could you explain this new undocumented class ? +class _IncrementalBasedWriter(StreamWriter): +"""Generic StreamWriter implementation. + +The _EncoderCl

Re: [issue24534] disable executing code in .pth files

2015-06-30 Thread M.-A. Lemburg
On 01.07.2015 00:16, Min RK wrote: > >> Just because a feature can be misused doesn't make it a bad feature. > > That's fair. I'm just not aware of any uses of this feature that aren't > misuses, hence the patch. I don't remember the details of why this feature was added, but can imagine that i

Re: [issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-17 Thread M.-A. Lemburg
On 15.08.2015 22:41, Steve Dower wrote: > > Marc-Andre: there are a few concerns with including DLLs that aren't new with > any of the 3.5 changes. > > * depending on another CRT version is fine *if* it is available (users may > have to be told/helped to install the redistributable themselves)

Re: [issue22798] time.mktime doesn't update time.tzname

2015-09-29 Thread M.-A. Lemburg
On 29.09.2015 11:31, Akira Li wrote: > > Akira Li added the comment: > >> Would issue22798.diff patch address your issue? > > No. The issue is that C mktime() may update C tzname on some platforms > but time.mktime() does not update time.tzname on these platforms while > the time module docs su

[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-10-23 Thread Jose M. Alcaide
Jose M. Alcaide added the comment: This issue continues unfixed. After uninstalling ActiveTcl 8.5.18 and then installing ActiveTcl 8.5.17, IDLE completion and call tips work again. Tested with Python 3.5 and 3.4.1. -- nosy: +jmas ___ Python

<    1   2   3   4   5   >