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
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
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
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
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
Changes by Alan Pierce :
--
nosy: +alangpierce
___
Python tracker
<http://bugs.python.org/issue30392>
___
___
Python-bugs-list mailing list
Unsubscribe:
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))
```
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
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
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
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
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
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
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
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
Change by Alan Du :
--
keywords: +patch
pull_requests: +5975
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33129>
___
___
Python-
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_
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
Change by Alan Huang :
--
components: -Documentation
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue33995>
___
___
Python-bugs-list m
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
Change by Alan Huang :
--
keywords: +patch
pull_requests: +7658
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33995>
___
___
Python-
Alan Huang added the comment:
PR 8050 implements option 2a (use PY_PROTO_{MIN,MAX}IMUM_AVAILABLE).
--
___
Python tracker
<https://bugs.python.org/issue33
Change by Alan Huang :
--
keywords: +patch
pull_requests: +7663
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34001>
___
___
Python-
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
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
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
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
Changes by Alan Cristhian :
--
nosy: +Alan.Cristhian
___
Python tracker
<http://bugs.python.org/issue18898>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Alan Kennedy :
--
nosy: +amak
___
Python tracker
<http://bugs.python.org/issue14814>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Alan WiIliams :
--
nosy: +Alan.WiIliams
___
Python tracker
<http://bugs.python.org/issue16202>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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")
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&
Changes by Alan McIntyre :
--
nosy: -alanmcintyre
___
Python tracker
<http://bugs.python.org/issue6839>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
Changes by Alan Cristhian :
--
nosy: +Alan.Cristhian
___
Python tracker
<http://bugs.python.org/issue1539925>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Alan Cristhian :
--
nosy: +Alan.Cristhian
___
Python tracker
<http://bugs.python.org/issue5342>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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-
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
Alan Cristhian added the comment:
Ok, I agree.
--
___
Python tracker
<http://bugs.python.org/issue19441>
___
___
Python-bugs-list mailing list
Unsubscribe:
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'
Changes by Alan Evangelista :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue22375>
___
___
Python-bugs-list mailing list
Unsubscrib
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'
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
Alan Justino added the comment:
Seems to affect 2.7 too.
--
nosy: +alanjds
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/issue3566>
___
___
Alan Hourihane added the comment:
Anyone ?
--
resolution: -> remind
___
Python tracker
<http://bugs.python.org/issue19346>
___
___
Python-bugs-list mai
Changes by Alan Hourihane :
--
resolution: -> remind
___
Python tracker
<http://bugs.python.org/issue19036>
___
___
Python-bugs-list mailing list
Unsubscrib
Alan Hourihane added the comment:
Anyone ?
--
resolution: -> remind
___
Python tracker
<http://bugs.python.org/issue19348>
___
___
Python-bugs-list mai
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
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
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
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
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
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
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
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
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
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
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
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
Alan G added the comment:
Lol! After four years I could hardly claim to care anymore...
--
___
Python tracker
<http://bugs.python.org/issue1296434>
___
___
Pytho
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
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.
--
___
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
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
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
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
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","
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
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
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
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>
___
___
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
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
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
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 +
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.
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
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
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
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
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
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
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
Alan Hourihane added the comment:
Bumping. How does Jeffrey's patch look folks ?
--
___
Python tracker
<http://bugs.python.org/issue17226>
___
___
Pytho
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
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
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
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)
>>
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
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
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
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
101 - 200 of 256 matches
Mail list logo