On Monday, July 16, 2018 at 3:52:09 PM UTC+3, iMath wrote:
> I also posted the question here
> https://stackoverflow.com/questions/51355926/send-pil-image-to-django-server-side-and-get-it-back
>
> I don't know what's under the hood of sending an image from client side to
> server side, so stuck
Χρήστος Γεωργίου (Christos Georgiou) added the comment:
Perhaps I'm missing something obvious here, but…
…
$(MAKE) build_all_merge_profile
@echo "Rebuilding with profile guided optimizations:"
$(MAKE) clean
$(MAKE) build_all_use_profile
…
the `$(MAKE) clean` d
Χρήστος Γεωργίου (Christos Georgiou) added the comment:
There are. (Check issue #26307 that explains this cpio file. This is a x32
build of Python, because the memory savings are very welcome for the multiple
worker processes of a project I work on.)
$ cpio -it <_modules.gcda.cpio
bu
Χρήστος Γεωργίου (Christos Georgiou) added the comment:
First, let's make sure we're on the same page.
- These files are created during the `$(MAKE) run_profile_task` stage.
- They get removed during the `$(MAKE) clean` stage, along with the build
directory.
- The build directory gets
New submission from Χρήστος Γεωργίου (Christos Georgiou):
https://docs.python.org/3.5/library/resource.html
https://docs.python.org/3.5/library/resource.html#resource.RLIMIT_FSIZE ends
with the sentence "This only affects the stack of the main thread in a
multi-threaded process."
Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net added the
comment:
This is not the proper place for it, but in the 3.2 and 2.7 news it is reported
that “The multi-argument form of operator.attrgetter() function now runs
slightly faster” while it should be “The multi-argument
New submission from Χρήστος Γεωργίου (Christos Georgiou)
t...@users.sourceforge.net:
The paths_seen object is a list; a set is more appropriate, since its
main use is a lookup as in path in paths_seen
--
components: Library (Lib)
files: posixpath.diff
keywords: patch
messages: 80570
Χρήστος Γεωργίου (Christos Georgiou) [EMAIL PROTECTED] added the comment:
A pointer to previous (minor) research:
http://groups.google.com/group/comp.lang.python/browse_frm/thread/72505e3cb6d9cb1a/e486759f06ec4ee5
esp. after Terry Reedy's post
--
nosy: +tzot
New submission from Χρήστος Γεωργίου (Christos Georgiou):
traceback.print_last() depends on the existence of sys.last_type,
sys.last_value, sys.last_traceback, which don't always exist when
called. See attached example file. I will shortly send the patch for
Lib/traceback.py
Χρήστος Γεωργίου (Christos Georgiou) added the comment:
I haven't submitted a patch since the transition from sf.net to
bugs.python.org; I assume that I don't have to open a new patch for
this, but if I have to, please let me know and I will gladly do it.
The unified diff is attached; the test
On 03 May 2006 06:05:46 +1000, rumours say that Gary Wessle
[EMAIL PROTECTED] might have written:
I was reading the Regular Expression HowTo, it refers to redemo.py if
you have Tkinter installed. a quick #locate redemo.py returned none on
my debian/testing, however #locate Tkinter returned many.
On Tue, 02 May 2006 17:15:05 GMT, rumours say that John Salerno
[EMAIL PROTECTED] might have written:
Another thing I'm trying to do is write a function that tests to see if
a list contains exactly one true item, and the rest are false (obviously
this would have to be a list of boolean values,
On 1 May 2006 07:19:48 -0700, rumours say that [EMAIL PROTECTED] might
have written:
I'm not sure what falls off the end of the function means, i searched
online, it seems to mean that the function has reached the end
prematurely and returned a default identifier to signal success or
not.. Can
On 2 May 2006 03:03:45 -0700, rumours say that Iain King
[EMAIL PROTECTED] might have written:
John Machin wrote:
# Doh! Looks like recursion not necessary. Google 'eliminate tail
recursion' :-)
I did, and found this:
http://www.biglist.com/lists/dssslist/archives/199907/msg00389.html
which
On 18 Apr 2006 05:00:55 -0700, rumours say that jelle
[EMAIL PROTECTED] might have written:
Hi Christos,
Thanks for your pointers there, impressive to see
-that a 12 year old thread still can make an interesting read
-you being able to remember trace it... impressive...
Thanks for your
Since there have been python limmericks, are there any Python lullabies that
I can sing to my newborn son (actually, born yesterday)? I tried to murmur
some select parts from the tutorial, but he somehow wasn't very interested
:)
--
TZOTZIOY, I speak England very best.
Dear Paul,
please stop
On 18 Apr 2006 01:37:03 -0700, rumours say that jelle
[EMAIL PROTECTED] might have written:
Hi,
I use python quite a bit to couple different programs together.
Doing so has been a _lot_ easier since subprocess came around, but
would really like to be able to use the succinct shell syntax; , , |
On Tue, 11 Apr 2006 07:37:23 -0400, rumours say that Steve Holden
[EMAIL PROTECTED] might have written:
James Stroud wrote:
Mirco Wahab wrote:
Jay wrote:
Malchick, you cracked your veshchs to classes, which is
not that gloopy. So rabbit on them and add class methods
that sloosh on beeing
On Wed, 12 Apr 2006 13:42:15 +0200, rumours say that gabor
[EMAIL PROTECTED] might have written:
i want the day that you get by intutively saying one month ago. means
usually picking the same day in the previous month. if that day does not
exist, i want the nearest day that exist and was BEFORE
On 11 Apr 2006 14:39:41 -0700, rumours say that CT [EMAIL PROTECTED]
might have written:
I installed python 2.4.3, Tcl 8.4 Tk8.4 and also with Tix 8.4
I got some error like _tkinter.TclError:ambigous option -col: must be
column, etc with my LabelFrame from Tix.
It seems that the python
On 12 Apr 2006 13:20:28 -0700, rumours say that Bill
[EMAIL PROTECTED] might have written:
Hello --
I'm parsing the output of the finger command, and was wondering
something...If I'm given a month abbrievation (such as Jan), what's
the best way to figure out the month number?
Try
import time
On Wed, 12 Apr 2006 15:59:05 -0400, rumours say that Chris F.A. Johnson
[EMAIL PROTECTED] might have written:
I still have a system which does not have tput.
And that justifies everything else. Of course.
If I want to write portable scripts, then yes, it does.
Well, either port your
On Tue, 11 Apr 2006 15:05:22 +1200, rumours say that Lawrence D'Oliveiro
[EMAIL PROTECTED] might have written:
In article [EMAIL PROTECTED],
Roy Smith [EMAIL PROTECTED] wrote:
One of the most basic
maxims on the Internet has always been, Be liberal in what you accept, be
conservative in what
On Sun, 09 Apr 2006 11:42:34 -0300, rumours say that Jorge Godoy
[EMAIL PROTECTED] might have written:
Indeed. This is correct. Fredrick's comment was related to the lack of
indentation in your code.
His code was indented fine, as you maybe noticed later on. The actual
problem was that he had
On 9 Apr 2006 20:32:07 -0700, rumours say that Ray [EMAIL PROTECTED]
might have written:
Dennis Lee Bieber wrote:
Or... just to save 3000 as a time way down the road... The next
major version of Python will be: Python PI (and each build will add
another digit... 3.1, 3.14, 3.141, ...)
I
On Sun, 9 Apr 2006 22:15:15 -0400, rumours say that Tim Peters
[EMAIL PROTECTED] might have written:
[John Salerno]
Is 'Python 3000' just a code name for version 3.0, or will it really be
called that when it's released?
The smart money is on changing the name to Ecstasy, to leverage
marketing
On Fri, 07 Apr 2006 11:11:14 +0200, rumours say that Azolex
[EMAIL PROTECTED] might have written:
At-least Pythetic isn't a word (yet).
:))) now that's quite pythetic !
Well, pythetic could become a synonym to un-pythonic.
--
TZOTZIOY, I speak England very best.
Dear Paul,
please stop
On Fri, 7 Apr 2006 22:52:06 +0200, rumours say that Arne
[EMAIL PROTECTED] might have written:
Peter Hansen [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Arne wrote:
Hello !
I am looking for a widget with the following properties:
- showing the tree file structure/
On Fri, 31 Mar 2006 15:10:11 -0800, rumours say that Scott David Daniels
[EMAIL PROTECTED] might have written:
Christos Georgiou wrote:
I did make a module based on imgseek, and together with PIL,
I manage my archive of email attachments (it's incredible how many
different versions
On 30 Mar 2006 11:40:08 -0800, rumours say that [EMAIL PROTECTED]
might have written:
thanks a lot for this solution.
Next thing: how may i find out that that address is multicast one? is
there some easy possibility or i have to use regex now?
To quote a Google reply:
IPv6 multicast addresses
On 29 Mar 2006 05:06:10 -0800, rumours say that Thomas W
[EMAIL PROTECTED] might have written:
How can I use python to find images that looks quite similar? Thought
I'd scale the images down to 32x32 and convert it to use a standard
palette of 256 colors then compare the result pixel for pixel
On Sun, 12 Mar 2006 20:15:19 -0600, rumours say that Ron Adam
[EMAIL PROTECTED] might have written:
[EMAIL PROTECTED] wrote:
Cheese (or the lack of cheese) is never silly, Thus the slogan... The
power of cheese.
Now if you want silliness, then the correct establishment for that is
The
On Fri, 10 Mar 2006 16:43:15 +0200, rumours say that Juho Schultz
[EMAIL PROTECTED] might have written:
VJ wrote:
Hi All
Basically i want to write into a file .If the permissions are not there
then print a error message.
How do i achive this ???
Thanks,
VJ
One way would be a
On 10 Mar 2006 06:08:37 -0800, rumours say that EdWhyatt
[EMAIL PROTECTED] might have written:
I attach my code for passing the information to msg.add_header:
(AttNum = 2)
for doatt in range(AttNum):
msg.add_header('Content-Disposition', 'attachment',
On 11 Mar 2006 03:22:42 -0800, rumours say that Paul Boddie
[EMAIL PROTECTED] might have written:
Tim Churches wrote:
Would it be possible to rename Cheese Shop as Bright Side of Life?
[Paul]
snip
So should a service for finding Python packages have a distinct
identity? It is possible that a
On Wed, 08 Mar 2006 06:20:42 +, rumours say that Steve Holden
[EMAIL PROTECTED] might have written:
If we
weren't paid thousands of dollars a week to answer questions on this
list we'd probably get snarky more often.
Steve, please, don't make me look like a liar in front of the children!
On Tue, 07 Mar 2006 10:23:59 +0100, rumours say that bruno at modulix
[EMAIL PROTECTED] might have written:
snip various python expressions
Now would you be kind enough to explain what's funny about all this ?
I would guess it's the statement: Funny, it works!
--
TZOTZIOY, I speak England very
On 25 Feb 2006 18:06:15 -0800, rumours say that [EMAIL PROTECTED] might
have written:
Hello,
snip
I do not know how to mount or unmount drives on Windows. I think that
it could possibly be done with a DOS command (using os.system()).
mountvol is the command you want. I know it's in winxp, I
On 2 Mar 2006 17:53:38 -0800, rumours say that Sullivan WxPyQtKinter
[EMAIL PROTECTED] might have written:
I do not know if there is any lib specially designed to process the
strings in scipt language.
for example:
I hope to process the stringprint a,b,c,d,e in the formcommand
argumentlist and
On 26 Feb 2006 22:30:28 -0800, rumours say that Crutcher
[EMAIL PROTECTED] might have written:
This seems great, except why can't I compare strings? It seems too
useful when dealing with user input, or parsing messages or config
files.
Weekdays = enum('sun', 'mon', 'tue', 'wed', 'thu', 'fri',
On Thu, 23 Feb 2006 17:49:31 -0600, rumours say that Larry Bates
[EMAIL PROTECTED] might have written:
IMHO leading and/or trailing spaces in filenames is asking for
incompatibilities with cross-platform file access. Much like
using single-quote in filenames which are perfectly legal in
On Tue, 21 Feb 2006 15:05:40 -0500, rumours say that Steve Holden
[EMAIL PROTECTED] might have written:
Chris Mellon wrote:
[...]
Torstens definition isn't useful for quantifying a difference between
interpeted and compiled - it's a rough sort of feel-test. It's like
how much of a naked body
On Tue, 14 Feb 2006 22:24:12 -0500, rumours say that Terry Reedy
[EMAIL PROTECTED] might have written:
id(Parrot.f) == id(Parrot.f)
True
id(Parrot.__dict__) == id(Parrot.__dict__)
True
A wrapper is created and passed to id() which returns an int object while
releasing the wrapper back to
On 13 Feb 2006 11:11:05 -0800, rumours say that [EMAIL PROTECTED]
[EMAIL PROTECTED] might have written:
hy...
if you dont know how to help people here... dont say google it.
I never said google it. I presume you mean this post as a reply to all
other posters in this thread, right? And you can
On Tue, 07 Feb 2006 12:36:11 -0500, rumours say that Steve Holden
[EMAIL PROTECTED] might have written:
[EMAIL PROTECTED] wrote:
y0!
question snipped
tks!
gOOgl3, man
PS: We tend to speak English here :-)
Actually, we tend to speak whatever language the OP's experience suggests.
I
On 7 Feb 2006 10:02:23 -0800, rumours say that [EMAIL PROTECTED]
[EMAIL PROTECTED] might have written:
_)_
On 7 Feb 2006 10:02:25 -0800, rumours say that [EMAIL PROTECTED]
[EMAIL PROTECTED] might have written:
_)_
You can't beat Steve with a pair of arses, because Steve's hand is
physically
On Thu, 9 Feb 2006 10:35:37 +0100, rumours say that Frithiof Andreas
Jensen [EMAIL PROTECTED] might have written:
If one was trying to detect fanatics of any creed, a certain indicator would
be that they have absolutely no sense of humour - they suffer from a
yet-to-be-described variant of autism
On 12 Feb 2006 05:11:02 -0800, rumours say that MKoool
[EMAIL PROTECTED] might have written:
I have an application with one function called compute, which given a
filename, goes through that file and performs various statistical
analyses. It uses arrays extensively and loops alot. it prints the
On Sun, 29 Jan 2006 14:51:18 -0800, rumours say that Michael Spencer
[EMAIL PROTECTED] might have written:
http://www.effbot.org/librarybook/marshal.htm
There's a typo in the text accompanying that example: img.get_magic() should
be
imp.get_magic().
The error is easy to explain: he's on
On 2 Feb 2006 08:03:14 -0800, rumours say that Tim N. van der Leeuw
[EMAIL PROTECTED] might have written:
So now what I need to know is, how do I find out in what encoding a
particular filename is? Is there a portable way for doing this?
You said the filename comes as data, and not as contents
On Wed, 08 Feb 2006 00:29:16 +0100, rumours say that Xavier Morel
[EMAIL PROTECTED] might have written:
You can also nest Raid arrays, the most common nesting are Raid 01
(creating Raid1 arrays of Raid0 arrays), Raid 10 (creating Raid0 arrays
of Raid1 arrays), Raid 50 (Raid0 array of Raid5
On Fri, 10 Feb 2006 09:59:43 +, rumours say that Ed Singleton
[EMAIL PROTECTED] might have written:
If speed is no issue (for example you can queue an mp3 while the
current one is playing), then Ben's solution is the classic one.
Store the total of all your scores (or calculate it on the fly
On Thu, 26 Jan 2006 14:09:54 GMT, rumours say that Roger L. Cauvin
[EMAIL PROTECTED] might have written:
Say I have some string that begins with an arbitrary sequence of characters
and then alternates repeating the letters 'a' and 'b' any number of times,
e.g.
xyz123aaabbaaabaaaabb
On Thu, 26 Jan 2006 16:26:57 GMT, rumours say that Roger L. Cauvin
[EMAIL PROTECTED] might have written:
Christos Georgiou [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Thu, 26 Jan 2006 14:09:54 GMT, rumours say that Roger L. Cauvin
[EMAIL PROTECTED] might have written:
Say I
On Thu, 26 Jan 2006 16:41:08 GMT, rumours say that Roger L. Cauvin
[EMAIL PROTECTED] might have written:
Good suggestion. Here are some test cases:
xyz123aaabbab accept
xyz123aabbaab reject
xayz123aaabab accept
xaaayz123abab reject
xaaayz123aaabab accept
Applying my last regex to your test
On Thu, 19 Jan 2006 10:47:35 GMT, rumours say that Giovanni Bajo
[EMAIL PROTECTED] might have written:
I have a generic solution for this (never submitted to the cookbook... should
I?)
This is by Andrew Durdin:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303439
This is by me:
On Thu, 26 Jan 2006 18:01:07 +0100, rumours say that Fredrik Lundh
[EMAIL PROTECTED] might have written:
Roger L. Cauvin wrote:
Good suggestion. Here are some test cases:
xyz123aaabbab accept
xyz123aabbaab reject
xayz123aaabab accept
xaaayz123abab reject
xaaayz123aaabab accept
$ more
On Thu, 26 Jan 2006 17:09:18 GMT, rumours say that Roger L. Cauvin
[EMAIL PROTECTED] might have written:
Thanks, but the second test case I listed contained a typo. It should have
contained a sequence of three of the letter 'a'. The test cases should be:
xyz123aaabbab accept
xyz123aabbaaab
On Thu, 12 Jan 2006 11:55:46 -0500, rumours say that Edward C. Jones
[EMAIL PROTECTED] might have written:
Do any of the Python GUIs have a super-high-level widget that displays a
directory tree? Most file managers or editors have this type of window.
If you have idle installed, you can check
On 1 Jan 2006 07:35:31 -0800, rumours say that zxo102 [EMAIL PROTECTED]
might have written:
dict.values()
['\xd6\xd0\xb9\xfa\xb6\xfe', '\xd6\xd0\xb9\xfa\xd2\xbb']
Since the result of dict.values will be inserted into web pages and
handled by javascript there, I want to show Chinese Characters
On Wed, 05 Oct 2005 21:36:47 -0600, rumours say that Mahesh Padmanabhan
[EMAIL PROTECTED] might have written:
In article [EMAIL PROTECTED],
Xah Lee [EMAIL PROTECTED] wrote:
snip lot of drivel
While I don't like to feed the trolls, I do find his posts amusing. He
is like a spoilt child seeking
On Wed, 10 Aug 2005 13:23:22 GMT, rumours say that [EMAIL PROTECTED] (Bengt
Richter) might have written:
BTW, my second post was doing ''.join(chr(int(h[i:i+2],16)) for i in
xrange(0,16,2))
to undo the hexlify you had done (I'd forgotten that there's a
binascii.unhexlify ;-)
And there's also
On Fri, 30 Sep 2005 20:50:06 +0200, rumours say that Stefan Behnel
[EMAIL PROTECTED] might have written:
Weird, though, the md5sum is the same as for the Python-2.4.2.tar.bz2 that I
downloaded late (late!) yesterday evening and had forgotten in my download
directory... just found it next to the
On Wed, 28 Sep 2005 21:58:15 -0400, rumours say that Jeff Schwab
[EMAIL PROTECTED] might have written:
For many (most?) applications in need of
serious scalability, multi-processor servers are preferable. IBM has
eServers available with up to 64 processors each, and Sun sells E25Ks
with 72
On Fri, 30 Sep 2005 07:50:45 +1000, rumours say that Delaney, Timothy
(Tim) [EMAIL PROTECTED] might have written:
You have to admit though, he's remarkably good at getting past
Spambayes. Despite classifying *every* Xah Lee post as spam, he still
manages to get most of his posts classified as 0%
On Tue, 20 Sep 2005 16:48:41 +0200, rumours say that Piet van Oostrum
[EMAIL PROTECTED] might have written:
And most smtp servers that I know also pass mail from any from-address to
any to-address if the IP number of he client machine belongs to a trusted
range (usually the range that belongs to
server trusted by your standard mail server and port-forward to it.
Don't know if this applies to your case, but it works for me :)
--
Christos Georgiou, Customer Support Engineer
Silicon Solutions, Medicon Ltd.
Melitonos 5, Gerakas 153 44 Greece
Tel +30 21 06606195 Fax +30 21 06606599 Mob +30 693
On Wed, 07 Sep 2005 23:28:13 -0400, rumours say that Peter Hansen
[EMAIL PROTECTED] might have written:
Martin P. Hellwig wrote:
The only thing I am disappointed at his writing style, most likely he
has a disrupted view on social acceptable behavior and communication.
These skills might be
On Tue, 06 Sep 2005 03:06:52 -, rumours say that Grant Edwards
[EMAIL PROTECTED] might have written:
There are very, very few pure exe
single-file executable windows apps. Putty is the only one
I've run across in a _long_ while.
Then you should also run across Media Player Classic (download
On Mon, 05 Sep 2005 12:54:35 +0200, rumours say that Diez B. Roggisch
[EMAIL PROTECTED] might have written:
As far as I understand there's no $1, $2... etc stuff right ?
Yes - but there is sys.argv
Try this
import this
print sys.argv
I believe this last line should be:
print
On Sat, 27 Aug 2005 04:45:25 GMT, rumours say that Stephen Prinster
[EMAIL PROTECTED] might have written:
Jonathon Blake wrote:
[ Editing/creating msaccess databases on a Linux Box, and WINE _not_
installed.]
I'm pretty sure I don't understand what you are wanting to do. You say
you have
On Wed, 24 Aug 2005 22:46:28 -0700, rumours say that David MacQuigg dmq
at pobox.com might have written:
I'm writing some scripts to check incoming mail against a registry of
reputable senders, using the new authentication methods. Python is
ideal for this because it will give mail-system admins
On 16 Aug 2005 01:32:16 -0700, rumours say that Paul Rubin
http://[EMAIL PROTECTED] might have written:
Erlang apparently uses microthreads,
probably allocating every call frame on the heap like SML/NJ did, so
they showed it with 80,000 connections open.
This is 8 TCP/IP v4 connections open?
it, that it makes no such suggestions.
Google isn't what it used to be when I was 6 yrs old.
That would make you, what, say 10 years old now?
When I was 6 yrs old, Google was inexistant. It isn't anymore, so my
assertion is correct (even though it's useless :) I'm 33 btw.
--
Christos Georgiou, Customer
74 matches
Mail list logo