On 23.06.2016 10:17, Antoon Pardon wrote:
Op 23-06-16 om 09:05 schreef Steven D'Aprano:
On Thursday 23 June 2016 16:34, Andreas Röhler wrote:
Indeed, why should the result of 4 - 4 have a different truth-value than
4 - 3 ?
Because 4-4 is zero, which is "nothing", while 4-3 is
On 23.06.2016 09:05, Steven D'Aprano wrote:
On Thursday 23 June 2016 16:34, Andreas Röhler wrote:
Indeed, why should the result of 4 - 4 have a different truth-value than
4 - 3 ?
Because 4-4 is zero, which is "nothing",
Hmm, water freezes at zero degree celsiu
On 23.06.2016 06:47, Lawrence D’Oliveiro wrote:
On Thursday, June 23, 2016 at 3:12:52 PM UTC+12, Larry Hudson wrote:
On 06/22/2016 12:42 AM, Lawrence D’Oliveiro wrote:
* boolean operators don’t have to operate on boolean values. The
language spec
I suspect that one could produce a class that is not a type,
Say: has not a complete type definition. Think of type for example with
the distinction of strings and numbers.
Types start from low level units. A class definition must know about
strings and numbers, it inherits this knowledge
New submission from Andreas Röhler:
Shouldn't a named entity "vbar" or "vline" be part of dict in
htmlentitydefs.py?
Thanks,
Andreas
--
messages: 260003
nosy: andreas.roehler
priority: normal
severity: normal
status: open
title: Named entity "ver
Andreas Schwab added the comment:
Please use AC_LINK_IFELSE. No need for a runtime test that breaks cross
compilation.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24543
Changes by Andreas Schwab sch...@linux-m68k.org:
--
title: Configure script wrongly detects mc68881 with -flto option passed -
Configure script wrongly detects x64/x87/mc68881 with -flto option passed
___
Python tracker rep...@bugs.python.org
http
Andreas Schwab added the comment:
That means these tests are broken as well:
AC_MSG_CHECKING(for x64 gcc inline assembler)
AC_MSG_CHECKING(whether we can use gcc inline assembler to get and set x87
control word)
--
___
Python tracker rep
New submission from Andreas Hilboll:
Not sure if this is by design (or if I'm doing something utterly stupid), but I
often create a ConfigParser object for my application and then pass this around
(or make it global).
So when I do something like
cfg.set(input_filter, include_filtered
Andreas Nilsson added the comment:
Here is a decompressed example (use lmms -d file to decompress). Shouldn't
this be parsed as XML? Here's a log of my experiment with it:
Python 2.7.9 (default, Apr 2 2015, 15:33:21)
[GCC 4.9.2] on linux2
Type help, copyright, credits or license for more
New submission from Andreas Nilsson:
There is no support for recognizing LMMS project files (.mmpz / .mmp). Could
this be added for strict=False?
--
components: Library (Lib)
messages: 245556
nosy: Andreas Nilsson
priority: normal
severity: normal
status: open
title: Support LMMS
\\Andreas\\AppData\\Local\\Temp\\pip-xf9kwi7g-uninstall\\apps\\python35\\scripts\\pip.exe'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File C:\Apps\Python35\lib\site-packages\pip\basecommand.py, line 223, in
main
status = self.run
New submission from Andreas Sommer:
Reading over the section Replacing os.system()
(https://docs.python.org/2/library/subprocess.html#replacing-os-system), one
might assume that the return value of os.system and subprocess.call are
equivalent.
status = os.system(mycmd + myarg
I want to enter text msg and upload picture (so all friends can see and some
private pictures) to my Facebook acount.
I'm working with fbconsole (it's important that it is text based command line)
for setting up cron job on a Raspberry Pi.
My code:
import fbconsole
redirect_uri =
New submission from Andreas Kostyrka:
import datetime, pprint
pprint.pformat({datetime.datetime.now(): 1, None: 1})
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python2.7/pprint.py, line 63, in pformat
return PrettyPrinter(indent=indent, width=width
Andreas Kostyrka added the comment:
This also applies to sets.
--
title: pprint not handline uncomparable dictionary keys well - pprint not
handline uncomparable dictionary keys, set members well
___
Python tracker rep...@bugs.python.org
http
Andreas Schwab added the comment:
https://build.opensuse.org/package/show/openSUSE:Factory:ARM/python3-base
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17873
Andreas Schwab added the comment:
fficonfig.py.in isn't part of upstream.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17873
___
___
Python
Andreas Schwab added the comment:
There is an open bug about MINSIGSTKSZ being too small on aarch64
https://sourceware.org/bugzilla/show_bug.cgi?id=16850.
How much SIGSTKSZ can guarantee about nested signals is unclear. POSIX does
not appear give any guidance. On aarch64 SIGSTKSZ is defined
New submission from Andreas Schwab:
test_register_chain fails on aarch64 due to signal stack overflow, when
re-raising the signal in faulthandler_user. The problem is that the signal
stack can only handle a single signal frame, but faulthandler_user adds a
second one. _Py_Faulthandler_Init
Andreas Røsdal added the comment:
Is there any interest in this patch? it would be nice with a review of the
patch. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20215
Andreas Richter added the comment:
I think we can close this although there should be some kind of warning that
running an upgrade without an uninstall may not upgrade the files in some
cases. However I can't really tell what those cases are. Since I deleted all
the files and then did
Andreas Richter added the comment:
Well I know I tried the installation and uninstallation multiple times. I also
deleted the binaries and did a repair. Each time the old binaries came back. So
I suppose there could be an old registered msi database be getting in the way.
But since the non
Andreas Richter added the comment:
Ok, complete uninstallation of 2.7.8 and then reinstalling did give me the new
executable. In my use case I do not register extensions or add python to the
path so I did not expect anything to be left over as registration of 2.7.5
previously, but I guess
New submission from Andreas Richter:
Having the following problem.
1. Download 2.7.8 64-bit windows msi
2. Install it
3. Run python ... says it's 2.7.6
4. Execute import hmac
5. Error
Output:
C:\prototypepython
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on
win32
Andreas Richter added the comment:
Also note
Even though I install 2.7.8 msi the python command line says that it's running
2.7.5
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22139
Andreas Schwab added the comment:
Why does the configure test succeed?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22126
___
___
Python-bugs
Andreas Schwab added the comment:
Thanks, this is working now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21881
___
___
Python-bugs-list
Andreas Schwab added the comment:
_tkinter.create().getdouble(float('nan'))
nan
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21881
Andreas Schwab added the comment:
You will see this on any architecture where the canonical NaN has all bits set
(or a subset of them). This include mips and m68k.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21881
New submission from Andreas Schwab:
Lib/test/test_tcl.py fails with:
test test_tcl failed -- Traceback (most recent call last):
File /home/abuild/rpmbuild/BUILD/Python-2.7.7/Lib/test/test_tcl.py, line 430
, in test_user_command
check(float('nan'), 'NaN', eq=nan_eq)
File /home/abuild
Andreas van Cranenburgh added the comment:
Giampaolo, this patch is for ProcessPoolExecutor as well.
About keyboard interrupts, if my tests are correct, they work
in Python 3.3+ with both multiprocessing and concurrent.futures.
(Although for the latter I have to hit ctrl-c twice
Andreas van Cranenburgh added the comment:
Here's a patch. I have added initializer and initargs keywords to both
ThreadPoolExecutor and ProcessPoolExecutor, with the same semantics as
multiprocessing.Pool.
I couldn't figure out what to do if the initializer fails with a
ProcessPoolExecutor
Andreas van Cranenburgh added the comment:
Here's a version with tests. Detecting an execption in the initializer works
with ProcessPoolExecutor, but not with ThreadPoolExecutor.
--
Added file: http://bugs.python.org/file35181/pool_initializer_tests.patch
Andreas Gäer added the comment:
Is there any progress to the question if the problem should be fixed in
os.symlink or in tarfile?
Because this currently seems to break installing source packages that contain
symlinks with pip under Windows.
Try: pip install networkx==1.8.1 for example
Andreas van Cranenburgh added the comment:
Yes I did mean ProcessPoolExecutor, but indeed, it's good to have for threads
as well.
I could try to make a patch if it is likely that it would be accepted.
--
___
Python tracker rep...@bugs.python.org
Andreas Røsdal added the comment:
Here's a patch which implements support in SocketServer to set IPv6 socket
address family to AF_INET6 automatically if the TCPServer is specified to
listen to an IPv6 address. This means that users of the TCPServer class will
get the correct address family
New submission from Andreas van Cranenburgh:
It would be useful if concurrent.futures.ThreadPoolExecutor took an initializer
argument, like multiprocessing.Pool.
This is useful for example to load a large dataset once upon initialization of
each worker process, without have to pass
Andreas Schwab added the comment:
The only problem is that under some conditions involving denormalized numbers
the result may lose a bit of precision. But that is mostly irrelevant for this
issue, at least it wouldn't make it worse than it is now
Andreas Schwab added the comment:
Finn Thain fth...@telegraphics.com.au writes:
until Aranym gets fixed.
Aranym *is* fixed.
Andreas.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
Andreas Schwab added the comment:
The fixed version is here: git://git.code.sf.net/p/aranym/code
Andreas.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
Andreas Schwab added the comment:
There is nothing that fails. The emulator has always correctly implemented the
insn.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
Andreas Schwab added the comment:
Enabling this *will* break Python on Linux/m68k
??? It will not of course, it will *fix* it. You have no idea what you are
talking about.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Andreas Schwab added the comment:
There is no excuse for using a broken emulator.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
Andreas Schwab added the comment:
342 tests OK.
2 tests altered the execution environment:
test_site test_warnings
33 tests skipped:
test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp
test_codecmaps_kr test_codecmaps_tw test_curses test_dbm_gnu
test_dbm_ndbm test_devpoll
Andreas Schwab added the comment:
It's not just cosmetic, it's breaking the testsuite back and forth.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
Andreas Schwab added the comment:
I didn't bother since this one fixes it for me (and also other python modules).
IMHO it's the correct way to fix it, since no other architecture except these
two will have the problem. Since you say the non-short-float code is legacy
this will make it also
Andreas Schwab added the comment:
I guess they will get fixed over time, or declared unsupported. :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
Andreas Schwab added the comment:
That's what I call hostile.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
___
___
Python-bugs-list
Andreas Schwab added the comment:
We are actually talking about Linux here, I assume everyone knows what that is
:-)
Also the patch is 2 files changed, 32+ (if you ignore the autoconf generated
files), which is quite a bit smaller than the final version of the atheos patch
(which is 19 files
Changes by Andreas Schwab sch...@linux-m68k.org:
--
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21038
___
___
Python-bugs
New submission from Andreas Schwab:
The extra assertion doesn't check something new and can result in spurious
testsuite failures due to the stricter condition.
--
components: Tests
files: 0001-test_epoll.TestEPoll.test_control_and_wait-remove-ex.patch
keywords: patch
messages: 214580
Andreas Schwab added the comment:
The attached patch has been tested on
{i586,x86_64,ppc,ppc64,ppc64le,armv6hl,armv7hl,aarch64,m68k}-suse-linux.
--
keywords: +patch
Added file: http://bugs.python.org/file34589/pyasciiobject-align.patch
___
Python
Changes by Andreas Schwab sch...@linux-m68k.org:
Removed file: http://bugs.python.org/file32554/xx
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19537
Changes by Andreas Schwab sch...@linux-m68k.org:
Removed file: http://bugs.python.org/file34387/m68k-float-prec.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
Changes by Andreas Schwab sch...@linux-m68k.org:
--
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
___
___
Python-bugs
Andreas Schwab added the comment:
What do you mean with code churn?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
___
___
Python-bugs
Andreas Schwab added the comment:
That's a very broad definition, I didn't know that python is such a hostile
environment.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
New submission from Andreas Schwab:
The attached patch fixes some wrong alignment assumptions in the ctype tests.
It has been tested on
{ppc,ppc64,ppc64le,i586,x86_64,armv6hl,aarch64,m68k}-suse-linux.
--
components: Tests
files: ctypes-align.patch
keywords: patch
messages: 213735
New submission from Andreas Schwab:
This comment say it all:
CHECK_TIMINGS = False # making true makes tests take a lot longer
# and can sometimes cause some non-serious
# failures because some calls block a bit
Andreas Schwab added the comment:
test_io.CSignalsTest.check_interrupted_write can fail in an emulated
environment when the alarm races with the write call.
--
nosy: +schwab
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20910
Andreas Schwab added the comment:
Also, sometimes tests fail in non-verbose mode, but succeed in verbose mode.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20910
and I'm actively
looking for contributors, so feel free to get in touch with me (you can
find my e-mail on Github).
Best regards
Andreas
a href=http://blitz-db.readthedocs.org;BlitzDB 0.1/a BlitzDB 0.1 -
Embedabble, document-oriented database written entirely in Python
--
https://mail.python.org
Andreas Schwab added the comment:
I have modified the patch to include a configure check to set
HAVE_GCC_ASM_FOR_MC68881 and use that instead of __mc68000__.
--
Added file: http://bugs.python.org/file34412/m68k-float-prec.patch
___
Python tracker
New submission from Andreas Schwab:
m68k has the same problem as x86 with excess floating point precision. The
attached patch implements the necessary support for HAVE_PY_SET_53BIT_PRECISION.
--
components: Interpreter Core
files: m68k-float-prec.patch
keywords: patch
messages: 213359
Andreas Schwab added the comment:
I don't know of any other compiler on m68k.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20904
New submission from Andreas Stieger:
SQLite 3.8.4 fails test_sqlite on 2.7 and 3.4.
[ 296s] test test_sqlite failed -- Traceback (most recent call last):
[ 296s] File
/home/abuild/rpmbuild/BUILD/Python-2.7.6/Lib/sqlite3/test/hooks.py, line 165,
in CheckOpcodeCount
[ 296s] self.assertTrue
Andreas Pelme added the comment:
I agree with Danilo and Shai -- this behavior very surprising. I deal with
datetimes a lot, and this bug has bitten me a number of times.
I cannot really think of a single case where if timeobj: is useful with the
current behavior. It results in a check
Changes by Andreas Stührk andy-pyt...@hammerhartes.de:
--
nosy: +Trundle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20637
___
___
Python-bugs
.
Its possible that something I'm doing it causing it, but I have no idea
what. I can start emacs with no init file, load python mode, hit enter
and I get the error.
Has anyone else experienced this? I am sure that Andreas Roehler (the
maintainer of python-mode.el) fixed it, but am thinking
New submission from Andreas Kloeckner:
For tests and doctests, it is often desirable to show or verify that a certain
warning occurs. Unfortunately, if the warning has been hit previously, it will
not be issued again. It would be great if there were a documented, unified way
to reset
Changes by Andreas Kloeckner inf...@tiker.net:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20131
___
___
Python-bugs
digits are valid hours, minutes or seconds.
Bye, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
...
VALUES (..., STR_TO_DATE(%s, %m/%d/%Y %H:%M:%S.{%f}),
...)
cursor.execute(sql_stmt, (..., mydate_from_csv, ...))
(BTW: Do you mean microseconds instead of milliseconds? And are the
milliseconds really inside curly braces?)
Bye, Andreas
--
https://mail.python.org/mailman
://github.com/euske/pdfminer/blob/master/pdfminer/pdfpage.py
So just leave out that line and if you need that exception use
PDFPage.PDFTextExtractionNotAllowed instead of
PDFTextExtractionNotAllowed.
Bye, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
))
And please read
https://wiki.python.org/moin/GoogleGroupsPython
if you want to continue using Google Groups for accessing this list.
Bye, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
Andreas Schwab added the comment:
How about adding explicit padding to the bitfield in PyASCIIObject?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19537
()
... subprocess.call([cat, fp.name])
...
12
foo
bar
baz
0
Bye, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
/bounce_example.html
There is also a forum for VPython:
https://groups.google.com/forum/?fromgroupshl=en#!forum/vpython-users
Bye, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
, but subprocess expects a list of strings as
its first argument.
Bye, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
Andreas Schwab added the comment:
(gdb) p sizeof(PyUnicodeObject)
$1 = 38
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19537
___
___
Python
within one hour (you asked at 2013-11-14 17:27:33Z,
yoonix answered at 2013-11-14 18:19:54Z). But since he didn't spoonfed
you, no wonder that you ignore that answer.
Bye, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
Andreas Schwab added the comment:
(gdb) p sizeof(PyASCIIObject)
$1 = 22
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19537
___
___
Python-bugs
Andreas Schwab added the comment:
There is nothing wrong with that.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19537
___
___
Python-bugs
New submission from Andreas Schwab:
sizeof(foo) is never a good approximation for the alignment of foo
--
components: Interpreter Core
files: xx
messages: 202487
nosy: schwab
priority: normal
severity: normal
status: open
title: Fix misalignment in fastsearch_memchr_1char
type: behavior
?
Everything inside the triple quotes is MySQL specific, so it's a MySQL
problem whether you can use + to add an extra string to an already
existing array of strings(list).
This list is not a MySQL support forum.
Bye, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
and append
#q=python to that link and produce an output that is
www.google.com/#q=python.
For bitly links you need to use their API:
http://dev.bitly.com/links.html#v3_expand
There is a python module for interacting with it:
https://github.com/bitly/bitly-api-python
Bye, Andreas
--
https
I've been looking at TkInter and GTK to do some GUI programming, they're both
cross-platform compatible.
This might seem like a stupid question, but, how do people run the application?
I get that I have to compile it and make it an executable. But how do I make it
an executable? For Windows
New submission from Andreas Hilboll:
shutil.make_archive should be able to automatically determine the desired
*format* from the given filename. It would make life easier, because the
programmer wouldn't need to strip the extension from the filename before
passing it to make_archive. I'm
pattern only
matches up to the size. When you look for the referrer, the pattern
expects two quotes but in your string you have - (quote, dash, quote).
Thus there is no match (i.e. match is None) and the if-statement will
print not found.
Bye, Andreas
--
https://mail.python.org/mailman/listinfo
sys.stdin = sys.stdin.detach()
msg = message_from_file(sys.stdin)
Looking at the docs, I've found there is also message_from_binary_file
which works for me with your code.
http://docs.python.org/3/library/email.parser.html#email.message_from_binary_file
Bye, Andreas
--
https://mail.python.org/mailman
On 08.10.2013 17:25, Antoon Pardon wrote:
Op 08-10-13 16:24, Andreas Perstinger schreef:
Looking at the docs, I've found there is also message_from_binary_file
which works for me with your code.
http://docs.python.org/3/library/email.parser.html#email.message_from_binary_file
I can't try
, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
On 05.10.2013 17:31, Νίκος Αλεξόπουλος wrote:
Now i have it like this:
# connect to database
con = pymysql.connect( db = 'nikos_metrites', user = 'nikos_root',
passwd = 't1abhp2r!', charset = 'utf8', host = 'localhost' )
Just to be sure: That's not your real password, is it?
Bye, Andreas
)
True
c.items()
dict_items([('ID', Morsel: ID='42')])
Bye, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
(with three different levels: 1, 2, 3;
default value 0 means no debug output):
lexer = shlex.shlex(foo, bar, ...)
lexer.debug = 1
print lexer.get_token()
shlex: token='foo'
foo
print lexer.get_token()
shlex: popping token ','
,
Bye, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
ago:
https://mail.python.org/pipermail/python-list/2013-September/656318.html
So either do it like that (which is the reasonable way) or look for
another programming language.
Bye, Andreas
--
https://mail.python.org/mailman/listinfo/python-list
On 31.08.2013 10:17, candide wrote:
What is the equivalent in Python 3 to the following Python 2 code:
# -
for i in range(5):
print i,
# -
?
How about
print( .join(str(i) for i in range(5)))
0 1 2 3 4
Bye, Andreas
--
http
I've decided to go with Flask! It's now running on UWSGI with NGINX. Hopefully
I can get some stuff done :)
@Chris “Kwpolska” Warrick
I just don't like the big frameworks, for me there is too much magic going on.
--
http://mail.python.org/mailman/listinfo/python-list
On Thursday, August 29, 2013 3:10:03 PM UTC+2, Chris “Kwpolska” Warrick wrote:
On Thu, Aug 29, 2013 at 2:45 PM, Andreas Ecaz ecaz wrote:
I've decided to go with Flask! It's now running on UWSGI with NGINX.
Hopefully I can get some stuff done :)
How are you running uWSGI? On sane
101 - 200 of 1064 matches
Mail list logo