Re: Operator Precedence/Boolean Logic

2016-06-23 Thread Andreas Röhler
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

Re: Operator Precedence/Boolean Logic

2016-06-23 Thread Andreas Röhler
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

Re: Operator Precedence/Boolean Logic

2016-06-23 Thread Andreas Röhler
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

Re: Distinction between “class” and “type”

2016-05-14 Thread Andreas Röhler
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

[issue26326] Named entity "vertical line" missed in 2.7 htmlentitydefs.py

2016-02-10 Thread Andreas Röhler
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

[issue24543] Configure script wrongly detects x64/x87/mc68881 with -flto option passed

2015-07-02 Thread Andreas Schwab
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

[issue24543] Configure script wrongly detects x64/x87/mc68881 with -flto option passed

2015-07-01 Thread Andreas Schwab
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

[issue24543] Configure script wrongly detects mc68881 with -flto option passed

2015-07-01 Thread Andreas Schwab
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

[issue24488] ConfigParser.getboolean fails on boolean options

2015-06-22 Thread Andreas Hilboll
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

[issue24479] Support LMMS project files in mimetypes.guess_type

2015-06-21 Thread Andreas Nilsson
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

[issue24479] Support LMMS project files in mimetypes.guess_type

2015-06-20 Thread Andreas Nilsson
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

Python 3.5.0b2 - permission error after pip upgrade

2015-06-11 Thread Andreas Balogh
\\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

[issue23750] Clarify difference between os.system/subprocess.call in section Replacing os.system()

2015-03-23 Thread Andreas Sommer
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

Probem with fbconsole

2015-01-04 Thread Ole Andreas Gløersen
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 =

[issue22718] pprint not handline uncomparable dictionary keys well

2014-10-24 Thread Andreas Kostyrka
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

[issue22718] pprint not handline uncomparable dictionary keys, set members well

2014-10-24 Thread Andreas Kostyrka
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

[issue17873] _ctypes/libffi missing bits for aarch64 support

2014-10-01 Thread Andreas Schwab
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

[issue17873] _ctypes/libffi missing bits for aarch64 support

2014-09-30 Thread Andreas Schwab
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

[issue22503] Signal stack overflow in faulthandler_user

2014-09-28 Thread Andreas Schwab
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

[issue22503] Signal stack overflow in faulthandler_user

2014-09-27 Thread Andreas Schwab
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

[issue20215] Python2.7 socketserver can not listen IPv6 address

2014-09-01 Thread Andreas Røsdal
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

[issue22139] python windows 2.7.8 64-bit did not install

2014-08-13 Thread Andreas Richter
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

[issue22139] python windows 2.7.8 64-bit did not install

2014-08-08 Thread Andreas Richter
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

[issue22139] python windows 2.7.8 64-bit did not install

2014-08-08 Thread Andreas Richter
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

[issue22139] python windows 2.7.8 64-bit wrong binary version

2014-08-05 Thread Andreas Richter
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

[issue22139] python windows 2.7.8 64-bit wrong binary version

2014-08-05 Thread Andreas Richter
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

[issue22126] mc68881 fpcr inline asm breaks clang -flto build

2014-08-03 Thread Andreas Schwab
Andreas Schwab added the comment: Why does the configure test succeed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22126 ___ ___ Python-bugs

[issue21881] python cannot parse tcl value

2014-07-05 Thread Andreas Schwab
Andreas Schwab added the comment: Thanks, this is working now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21881 ___ ___ Python-bugs-list

[issue21881] python cannot parse tcl value

2014-07-04 Thread Andreas Schwab
Andreas Schwab added the comment: _tkinter.create().getdouble(float('nan')) nan -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21881

[issue21881] python cannot parse tcl value

2014-06-30 Thread Andreas Schwab
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

[issue21881] python cannot parse tcl value

2014-06-29 Thread Andreas Schwab
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

[issue21423] concurrent.futures.ThreadPoolExecutor should accept an initializer argument

2014-05-14 Thread Andreas van Cranenburgh
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

[issue21423] concurrent.futures.ThreadPoolExecutor should accept an initializer argument

2014-05-07 Thread Andreas van Cranenburgh
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

[issue21423] concurrent.futures.ThreadPoolExecutor should accept an initializer argument

2014-05-07 Thread Andreas van Cranenburgh
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

[issue13702] relative symlinks in tarfile.extract broken (windows)

2014-05-06 Thread Andreas Gäer
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

[issue21423] concurrent.futures.ThreadPoolExecutor should accept an initializer argument

2014-05-06 Thread Andreas van Cranenburgh
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

[issue20215] Python2.7 socketserver can not listen IPv6 address

2014-05-03 Thread Andreas Røsdal
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

[issue21423] concurrent.futures.ThreadPoolExecutor should accept an initializer argument

2014-05-03 Thread Andreas van Cranenburgh
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-09 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-03 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-03 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-28 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-24 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-24 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-24 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-24 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-24 Thread Andreas Schwab
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

[issue21038] test_epoll.TestEPoll.test_control_and_wait: remove extra assertion

2014-03-23 Thread Andreas Schwab
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

[issue21038] test_epoll.TestEPoll.test_control_and_wait: remove extra assertion

2014-03-23 Thread Andreas Schwab
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

[issue19537] Fix misalignment in fastsearch_memchr_1char

2014-03-23 Thread Andreas Schwab
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

[issue19537] Fix misalignment in fastsearch_memchr_1char

2014-03-23 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-23 Thread Andreas Schwab
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

[issue20946] ctypes test fixes

2014-03-16 Thread Andreas Schwab
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

[issue20934] test_multiprocessing is broken by design

2014-03-15 Thread Andreas Schwab
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

[issue20910] Make sleep configurable in tests

2014-03-15 Thread Andreas Schwab
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

[issue20910] Make sleep configurable in tests

2014-03-15 Thread Andreas Schwab
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

ANN: BlitzDB 0.1 - Embedabble, document-oriented database written entirely in Python

2014-03-14 Thread andreas . d
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-14 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-13 Thread Andreas Schwab
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

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-03-13 Thread Andreas Schwab
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

[issue20901] test_sqlite fails with SQLite 3.8.4

2014-03-12 Thread Andreas Stieger
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

[issue13936] datetime.time(0, 0, 0) evaluates to False despite being a valid time

2014-03-04 Thread Andreas Pelme
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

[issue20637] Support key-sharing dictionaries in subclasses

2014-02-16 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20637 ___ ___ Python-bugs

Re: Emacs python-mode.el bug #1207470

2014-02-14 Thread Andreas Röhler
. 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

[issue20131] warnings module offers no documented, programmatic way to reset seen-warning flag

2014-01-05 Thread Andreas Kloeckner
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

[issue20131] warnings module offers no documented, programmatic way to reset seen-warning flag

2014-01-05 Thread Andreas Kloeckner
Changes by Andreas Kloeckner inf...@tiker.net: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20131 ___ ___ Python-bugs

Re: How to check the date validity?

2013-12-23 Thread Andreas Perstinger
digits are valid hours, minutes or seconds. Bye, Andreas -- https://mail.python.org/mailman/listinfo/python-list

Re: Datetime string reformatting

2013-12-22 Thread Andreas Perstinger
... 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

Re: PDFMiner install question

2013-12-20 Thread Andreas Perstinger
://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

Re: Need Help with the BeautifulSoup problem, please

2013-12-16 Thread Andreas Perstinger
)) 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

[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-12-15 Thread Andreas Schwab
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

Re: using ffmpeg command line with python's subprocess module

2013-12-10 Thread Andreas Perstinger
() ... subprocess.call([cat, fp.name]) ... 12 foo bar baz 0 Bye, Andreas -- https://mail.python.org/mailman/listinfo/python-list

Re: problem with graph of python(show)

2013-12-10 Thread Andreas Perstinger
/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

Re: using ffmpeg command line with python's subprocess module

2013-12-04 Thread Andreas Perstinger
, but subprocess expects a list of strings as its first argument. Bye, Andreas -- https://mail.python.org/mailman/listinfo/python-list

[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-25 Thread Andreas Schwab
Andreas Schwab added the comment: (gdb) p sizeof(PyUnicodeObject) $1 = 38 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19537 ___ ___ Python

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Andreas Perstinger
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

[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-10 Thread Andreas Schwab
Andreas Schwab added the comment: (gdb) p sizeof(PyASCIIObject) $1 = 22 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19537 ___ ___ Python-bugs

[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-10 Thread Andreas Schwab
Andreas Schwab added the comment: There is nothing wrong with that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19537 ___ ___ Python-bugs

[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-09 Thread Andreas Schwab
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

Re: How to add a current string into an already existing list

2013-11-02 Thread Andreas Perstinger
? 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

Re: How to get final URL after redirection

2013-10-31 Thread Andreas Perstinger
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

Python TkInter, GTK, GUI overall

2013-10-16 Thread Andreas Ecaz
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

[issue19214] shutil.make_archive should recognize extensions in filenames

2013-10-10 Thread Andreas Hilboll
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

Re: Re for Apache log file format

2013-10-08 Thread Andreas Perstinger
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

Re: parsing email from stdin

2013-10-08 Thread Andreas Perstinger
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

Re: parsing email from stdin

2013-10-08 Thread Andreas Perstinger
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

Re: How to streamingly read text file and display whenever updated text

2013-10-07 Thread Andreas Perstinger
, Andreas -- https://mail.python.org/mailman/listinfo/python-list

Re: Select fails when cookie tried to get a numeric value

2013-10-05 Thread Andreas Perstinger
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

Re: Select fails when cookie tried to get a numeric value

2013-10-05 Thread Andreas Perstinger
) True c.items() dict_items([('ID', Morsel: ID='42')]) Bye, Andreas -- https://mail.python.org/mailman/listinfo/python-list

Re: Weird bahaviour from shlex - line no

2013-09-28 Thread Andreas Perstinger
(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

Re: Handling 3 operands in an expression without raising an exception

2013-09-28 Thread Andreas Perstinger
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

Re: print function and unwanted trailing space

2013-08-31 Thread Andreas Perstinger
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

Re: Moving to Python for web

2013-08-29 Thread Andreas Ecaz
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

Re: Moving to Python for web

2013-08-29 Thread Andreas Ecaz
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

<    1   2   3   4   5   6   7   8   9   10   >