In message <[EMAIL PROTECTED]>, Pete Forman wrote:
> Maybe someone would like to play with the data URL scheme (RFC 2397)
> to meet the OP's desire to embed the image. AFAIK a downside is that
> MS are only starting to support that in IE8.
Firefox, Konqueror and Safari already support it. So it'
Scott David Daniels <[EMAIL PROTECTED]> writes:
> or you could even use:
> '''
> 1234567890ABCDEF...
> '''
> A comment _not_ a docstring (only found by scanning the source).
> which is easy enough to hunt for.
-1 for XML based syntax, we should instead look to reST. It al
André:
> A more complete example is now available at
> http://code.activestate.com/recipes/576538/
Nice.
>The idea for this recipe was mentioned on the Python mailing list as something
>desirable and apparently done by someone<
That someone has a nickname you can use, I am known in the cookboo
On Oct 14, 11:56 am, [EMAIL PROTECTED] wrote:
> André:
>
> > Ok, the following is my first attempt at implementing this idea.
>
> I suggest you to change the program you use to encode your images,
> because it's 1000 bytes, while with my program the same 256 colors
> image needs just 278 bytes:
>
>
On Oct 14, 1:56 pm, [EMAIL PROTECTED] wrote:
> André:
>
> > Ok, the following is my first attempt at implementing this idea.
>
> I suggest you to change the program you use to encode your images,
> because it's 1000 bytes, while with my program the same 256 colors
> image needs just 278 bytes:
>
>
André:
> Ok, the following is my first attempt at implementing this idea.
I suggest you to change the program you use to encode your images,
because it's 1000 bytes, while with my program the same 256 colors
image needs just 278 bytes:
iVBORw0KGgoNSUhEUgAAABYeCAMfOR5kBGdBTUEAAL
GP
On Oct 14, 10:58 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Tue, 14 Oct 2008 06:12:59 -0700, Scott David Daniels wrote:
> > Steven D'Aprano wrote:
> >> And if not, it's no big deal. Your help string has a clearly labeled
> >> few lines of hex:
>
> >> Help on function spa
Steven D'Aprano:
> Unless bearophile is willing to share his code,
There's no code: all I do is written in my post, and so far I have
done it "manually" :-)
Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 14 Oct 2008 06:12:59 -0700, Scott David Daniels wrote:
> Steven D'Aprano wrote:
>> And if not, it's no big deal. Your help string has a clearly labeled
>> few lines of hex:
>>
>> Help on function spam:
>>
>> spam(...)
>> spam spam spam spam spam spam
>> spam spam spam spam with a
Steven D'Aprano wrote:
And if not, it's no big deal. Your help string has a clearly labeled few
lines of hex:
Help on function spam:
spam(...)
spam spam spam spam spam spam
spam spam spam spam with a fried egg on top
=== begin docpicture ===
1234567890ABCDEF...
=== end d
On Mon, 13 Oct 2008 16:41:58 -0500, skip wrote:
>>> Nothing. It's just a doc string containing a bunch of hex codes. Doc
>>> strings are ignored by the interpreter (AIUI).
>
> Benjamin> I mean what happens when you type help() into the
> interactive Benjamin> console on the command line
>> Nothing. It's just a doc string containing a bunch of hex codes. Doc
>> strings are ignored by the interpreter (AIUI).
Benjamin> I mean what happens when you type help() into the interactive
Benjamin> console on the command line? You will see the docstrings, and
Benjamin>
On Oct 13, 2008, at 2:43 PM, Benjamin Kaplan wrote:
I mean what happens when you type help() into the interactive
console on the command line? You will see the docstrings, and there
will be a whole bunch of random hex characters there.
Good point. It might be better put in a specially-tag
On Mon, Oct 13, 2008 at 2:48 PM, Joe Strout <[EMAIL PROTECTED]> wrote:
> On Oct 13, 2008, at 12:09 PM, Benjamin Kaplan wrote:
>
> Heck, if you go to the point of including a docpicture module, might as
>> well
>> just support the feature in IDLE... Other IDEs would probably pick up the
>> featur
Benjamin> So, the IDEs will support it. what happens when you run the
Benjamin> interpreter from the command line?
Probably get ignored. What else would you propose? It's not executable
code anyway, just a special comment or portion of a docstring.
S
--
http://mail.python.org/mailman/l
On Mon, Oct 13, 2008 at 1:43 PM, <[EMAIL PROTECTED]> wrote:
>
>Steven> I can't imagine Python having direct syntactic support for it,
>Steven> but I don't see any reason why the standard library couldn't
>Steven> some day grow a "docpicture" module, complete with a tiny (?)
>Steven
Steven> I can't imagine Python having direct syntactic support for it,
Steven> but I don't see any reason why the standard library couldn't
Steven> some day grow a "docpicture" module, complete with a tiny (?)
Steven> Tkinter app to display the diagram when requested.
Heck, if you
On Mon, 13 Oct 2008 08:34:03 -0700, bearophileHUGS wrote:
> So in this situation I have sometimes created a quite small image (1
> bit/pixel) that encoded in png image format may require just few hundred
> bytes. With Python I encode is binary data string in base64, and I paste
> that as a string
18 matches
Mail list logo