Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54425

Re: Stripping characters from windows clipboard with win32clipboard from excel

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <random832@fastmail.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'binary': 0.07; 'string': 0.09; 'defines': 0.09; 'library?': 0.09; 'null,': 0.09; 'received:internal': 0.09; 'subject:characters': 0.09; 'windows,': 0.09; 'python': 0.11; 'bug': 0.12; 'windows': 0.15; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'subject: \n ': 0.16; 'subject:windows': 0.16; 'size,': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'example': 0.22; 'defined': 0.27; 'header:In-Reply- To:1': 0.27; 'to:2**1': 0.27; 'argue': 0.31; 'sep': 0.31; 'interface': 0.32; 'text': 0.33; 'used,': 0.33; 'maybe': 0.34; 'subject:from': 0.34; 'could': 0.34; 'received:66': 0.35; 'subject:with': 0.35; 'but': 0.35; 'should': 0.36; 'example,': 0.37; 'received:10': 0.37; 'somebody': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'dave': 0.60; 'from:no real name:2**0': 0.61; 'matter': 0.61; 'first': 0.61; 'header :Message-Id:1': 0.63; 'become': 0.64; 'different': 0.65; 'ending': 0.78; 'excel,': 0.84; 'facto': 0.84; 'job;': 0.84; 'specs.': 0.84; '2013,': 0.91; 'angel': 0.91; 'numerous': 0.93
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= LCGKwAiMI7WukddBKwDH4sjw514=; b=nTTmY3JhOGHq/sLAMj9HFkDUMNFcHUFQ FUs3Rbyof6dVoNww7/sotKHDkRgliV9oiC5w50OdzfX3o5zV+idX0CJiK6A6KvsP I+RsaLL9m2obDXn+3H3+hE3QY97jOzAqTp/S8c2NmGIXVPlTm2d8GqC2JAgtH+Gp gZWUikQiecE=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=LCGKwAiMI7WukddBKwDH4sjw514=; b=aRJ xZyPQKuagXE1hYBA9HjE7B9BFmGj3USrDZIVIxzmbD0WHrSaQALW8KwBtNjcX+pc MsjDKBMTAbdS0Wpx5ll69NgBsSdN1cvMIKgHVwWM7vohfxWlRWXnc31pV2QoYY32 zxUHHF6eRhktDhQAsC4nFcljneVajDhGy+Hi3oEg=
X-Sasl-Enc 2iDE7+A/ZDyxUGU5xNmTcYPkIxsd+eZhn2f8AbBMh3jD 1379601567
From random832@fastmail.us
To Dave Angel <davea@davea.name>, python-list@python.org
MIME-Version 1.0
Content-Transfer-Encoding 7bit
Content-Type text/plain
X-Mailer MessagingEngine.com Webmail Interface - ajax-d310b333
In-Reply-To <l1d1gu$588$1@ger.gmane.org>
References <13c19665-6dc9-49fe-88c8-52c643892eba@googlegroups.com> <a468f029-0345-425b-a9d1-5fc2f03d8be7@googlegroups.com> <523A01C5.4080705@mrabarnett.plus.com> <l1d1gu$588$1@ger.gmane.org>
Subject Re: Stripping characters from windows clipboard with win32clipboard from excel
Date Thu, 19 Sep 2013 10:39:27 -0400
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.151.1379601570.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1379601570 news.xs4all.nl 15883 [2001:888:2000:d::a6]:55335
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:54425

Show key headers only | View raw


On Wed, Sep 18, 2013, at 16:13, Dave Angel wrote:
> So is the bug in Excel, in Windows, or in the Python library?  Somebody
> is falling down on the job;  if Windows defines the string as ending at
> the first null, then the Python interface should use that when defining
> the text defined with CF_UNICODETEXT.
> 
> Or maybe it's an example of ill-defined Windows specs.

I think it's a matter of ill-defined windows specs - the clipboard data
has an exact size, and in principle that size is always used, for
example, for numerous binary formats. But the text clipboard has often
been treated as a C string by a wide variety of different applications,
so one could argue that has become a de facto standard.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Stripping characters from windows clipboard with win32clipboard from excel stephen.boulet@gmail.com - 2013-09-12 16:01 -0700
  Re: Stripping characters from windows clipboard with win32clipboard from excel Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-13 00:19 +0000
  Re: Stripping characters from windows clipboard with win32clipboard from excel stephen.boulet@gmail.com - 2013-09-12 17:58 -0700
    Re: Stripping characters from windows clipboard with win32clipboard from excel MRAB <python@mrabarnett.plus.com> - 2013-09-13 02:56 +0100
    Re: Stripping characters from windows clipboard with win32clipboard from excel Neil Hodgson <nhodgson@iinet.net.au> - 2013-09-13 13:43 +1000
      Re: Stripping characters from windows clipboard with win32clipboard from excel stephen.boulet@gmail.com - 2013-09-13 07:31 -0700
        Re: Stripping characters from windows clipboard with win32clipboard from excel Neil Cerutti <neilc@norwich.edu> - 2013-09-13 14:37 +0000
        Re: Stripping characters from windows clipboard with win32clipboard from excel stephen.boulet@gmail.com - 2013-09-13 07:38 -0700
          Re: Stripping characters from windows clipboard with win32clipboard from excel random832@fastmail.us - 2013-09-13 12:09 -0400
          Re: Stripping characters from windows clipboard with win32clipboard from excel random832@fastmail.us - 2013-09-18 15:19 -0400
  Re: Stripping characters from windows clipboard with win32clipboard from excel stephen.boulet@gmail.com - 2013-09-17 09:00 -0700
  Re: Stripping characters from windows clipboard with win32clipboard from excel stephen.boulet@gmail.com - 2013-09-18 12:28 -0700
    Re: Stripping characters from windows clipboard with win32clipboard from excel MRAB <python@mrabarnett.plus.com> - 2013-09-18 20:40 +0100
    Re: Stripping characters from windows clipboard with win32clipboard from excel Dave Angel <davea@davea.name> - 2013-09-18 20:13 +0000
      Re: Stripping characters from windows clipboard with win32clipboard from excel Neil Hodgson <nhodgson@iinet.net.au> - 2013-09-19 07:40 +1000
        Re: Stripping characters from windows clipboard with win32clipboard from excel Dave Angel <davea@davea.name> - 2013-09-18 23:51 +0000
          Re: Stripping characters from windows clipboard with win32clipboard from excel Neil Cerutti <neilc@norwich.edu> - 2013-09-19 15:53 +0000
            Re: Stripping characters from windows clipboard with win32clipboard from excel Dave Angel <davea@davea.name> - 2013-09-19 19:58 +0000
    Re: Stripping characters from windows clipboard with win32clipboard from excel random832@fastmail.us - 2013-09-19 10:39 -0400

csiph-web