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
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
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
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
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
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
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
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)
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
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 &
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
Changes by Damien M Calloway :
--
nosy: +dmcalloway
___
Python tracker
<http://bugs.python.org/issue11152>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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:
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
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
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
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
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
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
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
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
Changes by Lorenzo M. Catucci :
Removed file: http://bugs.python.org/file12188/poplib_03_SSL_refactor.diff
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
Changes by Lorenzo M. Catucci :
Removed file: http://bugs.python.org/file12172/poplib.rst.patch
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
Python-bug
Changes by Lorenzo M. Catucci :
Removed file: http://bugs.python.org/file12187/poplib_02_sock_shutdown.diff
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
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
Changes by Lorenzo M. Catucci :
Added file: http://bugs.python.org/file26132/poplib_01_socket_shutdown.diff
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
Changes by Lorenzo M. Catucci :
Added file: http://bugs.python.org/file26134/poplib_03_starttls.diff
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
Pytho
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
Changes by Lorenzo M. Catucci :
Removed file: http://bugs.python.org/file12965/test_popnet.py
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
Python-bug
Changes by Lorenzo M. Catucci :
Removed file: http://bugs.python.org/file12966/test_popnet.py
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
Python-bug
Changes by Lorenzo M. Catucci :
Added file: http://bugs.python.org/file26133/poplib_02_server_capabilities.diff
___
Python tracker
<http://bugs.python.org/issue4
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
Changes by Lorenzo M. Catucci :
Added file: http://bugs.python.org/file26240/poplib_02_server_capabilities.diff
___
Python tracker
<http://bugs.python.org/issue4
Changes by Lorenzo M. Catucci :
Removed file:
http://bugs.python.org/file26133/poplib_02_server_capabilities.diff
___
Python tracker
<http://bugs.python.org/issue4
Changes by Lorenzo M. Catucci :
Removed file: http://bugs.python.org/file26134/poplib_03_starttls.diff
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
Pytho
Changes by Lorenzo M. Catucci :
Added file: http://bugs.python.org/file26241/poplib_03_starttls.diff
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
Pytho
Changes by Lorenzo M. Catucci :
Added file: http://bugs.python.org/file26242/poplib_03_starttls.diff
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
Pytho
Changes by Lorenzo M. Catucci :
Removed file: http://bugs.python.org/file26241/poplib_03_starttls.diff
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
Pytho
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
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
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
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
Changes by Lorenzo M. Catucci :
Removed file: http://bugs.python.org/file26132/poplib_01_socket_shutdown.diff
___
Python tracker
<http://bugs.python.org/issue4
Changes by Lorenzo M. Catucci :
Removed file:
http://bugs.python.org/file26240/poplib_02_server_capabilities.diff
___
Python tracker
<http://bugs.python.org/issue4
Changes by Lorenzo M. Catucci :
Removed file: http://bugs.python.org/file26242/poplib_03_starttls.diff
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
Pytho
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
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
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
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
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
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
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
Changes by Lorenzo M. Catucci :
Removed file: http://bugs.python.org/file26252/poplib_03_starttls_v3.diff
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
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
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
Changes by Lorenzo M. Catucci :
Removed file: http://bugs.python.org/file28026/poplib_03_starttls_v4.diff
___
Python tracker
<http://bugs.python.org/issue4473>
___
___
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
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
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
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
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-
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
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
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
___
Changes by Kevin M. Turner :
--
nosy: +acapnotic
___
Python tracker
<http://bugs.python.org/issue19352>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 -
Changes by Kathryn M Kowalski :
Added file: http://bugs.python.org/file34029/check_with_output.txt
___
Python tracker
<http://bugs.python.org/issue20587>
___
___
Pytho
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
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
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
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
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
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
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.
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
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
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
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
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
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.
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
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
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
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
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
M. Shuaib Khan added the comment:
Tried. Same failure.
--
___
Python tracker
<http://bugs.python.org/issue5875>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
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
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
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
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)
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
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
301 - 400 of 456 matches
Mail list logo