Τη Τετάρτη, 12 Ιουνίου 2013 9:36:41 π.μ. UTC+3, ο χρήστης Phil Connell έγραψε:
> On 12 Jun 2013 02:20, wrote:
>
> >
>
> > How can i be able to answer you guys posts by my mail client?
>
> Don't delete mails that you might want to reply to.
>
> If you do anything else, you're just making it di
Hello,
I am trying to write a script which will parse a code segment (with
ast.parse()), locate the correct function/method node (by name) in the
resulting tree and replace this function (node) with another function (node),
e.g.:
MyMod1.py:
class FooBar():
def Foo(self): #I want to replace
Adam Mercer wrote:
> Hi
>
> I'm trying to update one of my scripts so that it runs under python2
> and python3, but I'm running into an issue that the following example
> illustrates:
>
> $ cat test.py
> try:
> # python-2.x
> from urllib2 import urlopen
> from ConfigParser import ConfigPar
On 06/11/2013 08:47 AM, Eam onn wrote:
Is there a PyGame tutorial out there? I've seen TheNewBoston's tuts, but he
didn't finish his. MetalX100 did a VERY good tutorial. I've been having trouble
with some player movement because he isn't moving smoothly, he jumps. If I add
5 pixels to his X po
On Tue, 11 Jun 2013 22:49:05 -0600, Michael Torrie wrote:
> What do each of these functions return? When you print out
> re.search('=', name) what happens?
First of all i have changed the code to the following because using a
regex
to detect a single char was an overkill.
if '=' not in name a
On Wed, Jun 12, 2013 at 5:45 PM, Νικόλαος Κούρας wrote:
> First of all i have changed the code to the following because using a
> regex
> to detect a single char was an overkill.
>
> if '=' not in name and '=' not in month and '=' not in year:
It'd be courteous to acknowledge those who made that
#
# Collect directory and its filenames as bytes
path = b'/home/nikos/public_html/data/apps/'
files = os.listdir( path )
for filename in files:
# Compute 'path/to/filename'
filepath_bytes = path + filename
for
On 06/11/2013 01:09 PM, Νικόλαος Κούρας wrote:
Τη Τρίτη, 11 Ιουνίου 2013 10:52:02 π.μ. UTC+3, ο χρήστης Larry Hudson έγραψε:
On 06/10/2013 06:56 AM, Νικόλαος Κούρας wrote:
i think your suggestions works only if you have a mail handy in TB and you hit
follow-up what if you dont have the mail
On Wed, 12 Jun 2013 08:02:24 +, Νικόλαος Κούρας wrote:
> i tried to insert
> print( filename )
> sys.exit(0)
That's not very useful. That will just print ONE file name, then stop.
You have how many files in there? Two? Twenty? What if the problem does
not lie with the first one?
> just bef
On Tue, 11 Jun 2013 13:20:52 -0700, Νικόλαος Κούρας wrote:
> The above if structure works correctly *only* if the user sumbits by
> form:
>
> name, month, year or month, year
>
> If, he just enter a year in the form and sumbit then, i get no error,
> but no results displayed back.
>
> Any ideas
On 06/12/2013 01:20 AM, Larry Hudson wrote:
On 06/11/2013 01:09 PM, Νικόλαος Κούρας wrote:
Τη Τρίτη, 11 Ιουνίου 2013 10:52:02 π.μ. UTC+3, ο χρήστης Larry Hudson έγραψε:
On 06/10/2013 06:56 AM, Νικόλαος Κούρας wrote:
I forgot to specify I'm talking about using Thunderbird Newsgroups, not the E
I've done some tests: i've simulated a serial transmission with
1. Terminal.exe
https://sites.google.com/site/terminalbpp/
2. Com0com
I've made a script that transmit a char every 5ms. The test system is
Terminal---Com0Com---Terminal
so i haven't used my program.
After 3-4minutes the terminal progr
On 12/6/2013 11:27 πμ, Denis McMahon wrote:
On Tue, 11 Jun 2013 13:20:52 -0700, Νικόλαος Κούρας wrote:
The above if structure works correctly *only* if the user sumbits by
form:
name, month, year or month, year
If, he just enter a year in the form and sumbit then, i get no error,
but no resul
Ronny Mandal wrote:
> Hello,
>
> I am trying to write a script which will parse a code segment (with
> ast.parse()), locate the correct function/method node (by name) in the
> resulting tree and replace this function (node) with another function
> (node), e.g.:
>
> MyMod1.py:
>
> class FooBar()
On 12/6/2013 11:31 πμ, Steven D'Aprano wrote:
On Wed, 12 Jun 2013 08:02:24 +, Νικόλαος Κούρας wrote:
i tried to insert
print( filename )
sys.exit(0)
That's not very useful. That will just print ONE file name, then stop.
You have how many files in there? Two? Twenty? What if the problem do
root@nikos [/home/nikos/www/data/apps]# ls -l
total 412788
drwxr-xr-x 2 nikos nikos 4096 Jun 12 12:03 ./
drwxr-xr-x 6 nikos nikos 4096 May 26 21:13 ../
-rwxr-xr-x 1 nikos nikos 13157283 Mar 17 12:57 100\ Mythoi\ tou\
Aiswpou.pdf*
-rwxr-xr-x 1 nikos nikos 29524686 Mar 11 18:17 Anekdotolog
On Wed, Jun 12, 2013 at 9:54 AM, Νικόλαος Κούρας wrote:
> but if enumerate yields 0 instead of '==' then elif '=' not in
> year of course fails.
>
> So, i must tell:
>
> for i, month in enumerate(months):
> print(' %s ' % (i, month) )
>
> to somehow return '==' instead of 0 but
>> (*) infact UTF8 also indicates the end of each character
> Up to a point. The initial byte encodes the length and the top few
> bits, but the subsequent octets aren’t distinguishable as final in
> isolation. 0x80-0xBF can all be either medial or final.
So, the first high-bits are a directiv
On Wed, 12 Jun 2013 08:02:24 +, Νικόλαος Κούρας wrote:
> # Collect directory and its filenames as bytes
> path = b'/home/nikos/public_html/data/apps/'
> files = os.listdir( path )
[snip code]
I realised that the version I gave you earlier, or rather the modified
version you came up with, wa
On Wed, 12 Jun 2013 12:00:38 +0300, Νικόλαος Κούρας wrote:
> On 12/6/2013 11:31 πμ, Steven D'Aprano wrote:
>> On Wed, 12 Jun 2013 08:02:24 +, Νικόλαος Κούρας wrote:
>>> and the output is just Pacman.exe as seen in
>>>
>>> http://superhost.gr/?page=files.py
>>
>> Wrong. The output is:
>>
>> In
On 12/6/2013 12:07 μμ, F�bio Santos wrote:
On Wed, Jun 12, 2013 at 9:54 AM, Νικόλαος Κούρας wrote:
but if enumerate yields 0 instead of '==' then elif '=' not in
year of course fails.
So, i must tell:
for i, month in enumerate(months):
print(' %s ' % (i, month) )
to somehow retu
On 12/6/2013 12:17 μμ, Steven D'Aprano wrote:
On Wed, 12 Jun 2013 12:00:38 +0300, Νικόλαος Κούρας wrote:
On 12/6/2013 11:31 πμ, Steven D'Aprano wrote:
On Wed, 12 Jun 2013 08:02:24 +, Νικόλαος Κούρας wrote:
and the output is just Pacman.exe as seen in
http://superhost.gr/?page=files.py
On Wed, 12 Jun 2013 09:09:05 +, Νικόλαος Κούρας wrote:
> Isn't 14 bits way to many to store a character ?
No.
There are 1114111 possible characters in Unicode. (And in Japan, they
sometimes use TRON instead of Unicode, which has even more.)
If you list out all the combinations of 14 bits:
On Wed, 12 Jun 2013 12:24:24 +0300, Νικόλαος Κούρας wrote:
> On 12/6/2013 12:17 μμ, Steven D'Aprano wrote:
>> On Wed, 12 Jun 2013 12:00:38 +0300, Νικόλαος Κούρας wrote:
>>
>>> On 12/6/2013 11:31 πμ, Steven D'Aprano wrote:
On Wed, 12 Jun 2013 08:02:24 +, Νικόλαος Κούρας wrote:
>>
> and
On 12 Jun 2013 10:29, "Νικόλαος Κούρας" wrote:
>
> On 12/6/2013 12:07 μμ, F�bio Santos wrote:
>>
>> On Wed, Jun 12, 2013 at 9:54 AM, Νικόλαος Κούρας
wrote:
>>>
>>> but if enumerate yields 0 instead of '==' then elif '=' not in
>>> year of course fails.
>>>
>>> So, i must tell:
>>>
>>> for
[Please trim your replies to the relevant parts.]
On 12.06.2013 10:54, Νικόλαος Κούρας wrote:
But when it comes to select '==' from month instead of
'==' to be submitted a zero gets submitted and i think the
problem is the way i'm filling up months into the drop down menu which i
On Monday, June 10, 2013 7:01:30 PM UTC+2, Zachary Ware wrote:
> On Mon, Jun 10, 2013 at 10:37 AM, Yunfei Dai
> wrote:
>
> > Hi all,
>
>
>
> Hi Yunfei,
>
>
>
> >
>
> > I have some questions on "import":
>
> >
>
> > 1."from datetime import datetime" works well. But I am confused why "imp
> I think the main problem is that you have to return the unchanged node (you
>
> return None which might be an indentation accident). I also had to take the
>
> add() FunctionDef out of the enclosing Module. So (I don't have codegen or
>
> is it part of the stdlib?):
Thank you, my problem i
Thanks Steven , i made some alternations to the variables names and at
the end of the way that i check a database filename against and hdd
filename. Here is the code:
#
=
# Convert
On Monday, June 10, 2013 9:10:16 PM UTC+2, Dave Angel wrote:
> On 06/10/2013 01:01 PM, Zachary Ware wrote:
>
> > On Mon, Jun 10, 2013 at 10:37 AM, Yunfei Dai
> > wrote:
>
> >> Hi all,
>
> >
>
> > Hi Yunfei,
>
> >
>
> >>
>
> >> I have some questions on "import":
>
> >>
>
> >> 1."from date
On 11Jun2013 18:25, Nikos wrote:
| > What are the values of 'name', 'month' and 'year' in each of the cases?
| >
| > Printing out ascii(name), ascii(month) and ascii(year), will be helpful.
| >
| > Then try stepping through those lines in your head.
|
| i hav epribted all values of those variab
Original Message
Subject: Re: A certainl part of an if() structure never gets executed.
Date: Wed, 12 Jun 2013 10:07:39 +0100
From: Fábio Santos
To: Νικόλαος Κούρας
CC: python-list@python.org
Newsgroups: comp.lang.python
References: <2bc90d3b-09c2-4315-9357-ff7f03946...@goog
On 12/6/2013 1:07 μμ, Andreas Perstinger wrote:
So, i must tell:
for i, month in enumerate(months):
print(' %s ' % (i, month) )
to somehow return '==' instead of 0 but don't know how.
As with most of your problems you are barking up the wrong tree.
Why not use the actual value
Oh my God!
i just need to do this:
for i, month in enumerate( months ):
print(' %s ' % (month, month) )
--
http://mail.python.org/mailman/listinfo/python-list
this idea seemed perfect but it turned out that you have to execute the module
as a package (python -m scripts.myscript) otherwise I get an error on the
relative import.
Unfortunately I am working in a team and I do not have control on how the
module is launched.
On Tuesday, June 11, 2013 6:1
Am Mittwoch, 12. Juni 2013 12:07:54 UTC+2 schrieb Andreas Perstinger:
> [Please trim your replies to the relevant parts.]
> On 12.06.2013 10:54, Νικόλαος Κούρας wrote:
> > But when it comes to select '==' from month instead of
> > '==' to be submitted a zero gets submitted and i thi
this idea seemed perfect but it turned out that you have to execute the module
as a package (python -m py.myscripts.any_script) otherwise I get an error on
the relative import.
Unfortunately I am working in a team and I do not have control on how the
module is launched.
On Tuesday, June 11, 2
As with most of your problems you are barking up the wrong tree.
Why not use the actual value you get from the form to check whether you
have a valid month?
Do you understand why "0" is submitted instead of "=="?
Bye, Andreas
I have corrected the enumerate loop but it seems thet now t
On 12/6/2013 12:24 μμ, Steven D'Aprano wrote:
On Wed, 12 Jun 2013 09:09:05 +, Νικόλαος Κούρας wrote:
Isn't 14 bits way to many to store a character ?
No.
There are 1114111 possible characters in Unicode. (And in Japan, they
sometimes use TRON instead of Unicode, which has even more.)
If
On 12/6/2013 12:37 μμ, Steven D'Aprano wrote:
On Wed, 12 Jun 2013 12:24:24 +0300, Νικόλαος Κούρας wrote:
[1] Correction. While I was typing this, it came good, for about 20
seconds, and displayed a hideously ugly background pattern and a cute
smiling face waving, and then broke again.
Ah s
In article ,
Phil Connell wrote:
> > Well, continuing down this somewhat bizarre path:
> >
> > new_songs, old_songs = [], []
> > itertools.takewhile(
> > lambda x: True,
> > (new_songs if s.is_new() else old_songs).append(s) for s in songs)
> > )
> >
> > I'm not sure I got the syntax
On 12 Jun 2013 12:08, "Νικόλαος Κούρας" wrote:
>
> Oh my God!
>
> i just need to do this:
>
>
> for i, month in enumerate( months ):
> print(' %s ' % (month, month) )
Usually what goes in is an ID of something. You should
keep using (i, month) and then do months[id] to get the month stri
On 12 Jun 2013 12:43, "Roy Smith" wrote:
>
> In article ,
> Phil Connell wrote:
>
> > > Well, continuing down this somewhat bizarre path:
> > >
> > > new_songs, old_songs = [], []
> > > itertools.takewhile(
> > > lambda x: True,
> > > (new_songs if s.is_new() else old_songs).append(s) fo
On Jun 12, 4:10 pm, jacopo wrote:
> this idea seemed perfect but it turned out that you have to execute the
> module as a package
> (python -m py.myscripts.any_script) otherwise I get an error on the relative
> import.
> Unfortunately I am working in a team and I do not have control on how the
Roy Smith writes:
> We've been in the twilight zone for a while. That's when the fun
> starts. But, somewhat more seriously, I wonder what, exactly, it is
> that freaks people out about:
>
> [(new_songs if s.is_new() else old_songs).append(s) for s in songs]
>
> Clearly, it's not the fact
On Wed, Jun 12, 2013 at 2:26 AM, Peter Otten <__pete...@web.de> wrote:
> Applying these findings to your script:
>
> from contextlib import contextmanager
> try:
> # python-2.x
> from urllib2 import urlopen
> from ConfigParser import ConfigParser
>
> @contextmanager
> def my_urlopen(url)
On Sun, May 26, 2013 at 1:30 AM, Roy Smith wrote:
> In article <51a0caac$0$30002$c3e8da3$54964...@news.astraweb.com>,
> Steven D'Aprano wrote:
>
>> On Sat, 25 May 2013 16:41:58 +1000, Chris Angelico wrote:
>>
>> > On Sat, May 25, 2013 at 4:38 PM, zoom wrote:
>> >> But why would anyone want to u
- Original Message -
> In article ,
> Dave Angel wrote:
>
> > On 05/23/2013 09:09 AM, Roy Smith wrote:
> > >
> > >
> > >
> > > nosetests --process-timeout=60 --processes=40 test_api.py
> > >
> >
> > Do you have a 40-processor system?
>
> No, but many of the tests are I/O bound.
On 05/25/2013 09:49 PM, Roy Smith wrote:
In article <15a1bb3a-514c-454e-a966-243c84123...@googlegroups.com>,
John Ladasky wrote:
Because someone's got to say it... "The generation of random numbers is too
important to be left to chance." ‹ Robert R. Coveyou
Absolutely. I know just enough
On Fri, May 24, 2013 at 11:23 PM, Peter Brooks
wrote:
> Actually, thinking about
> it, there is probably a source of non-algorithmically-derived 'random'
> numbers somewhere on the net that would do the job nicely.
True entropy is usually provided by a source such as /dev/random (on
Unix systems)
On 05/24/2013 08:38 PM, Carlos Nepomuceno wrote:
Date: Fri, 24 May 2013 17:11:18 -0700
Subject: Re: Survey of Python-in-browser technologies
From: drsali...@gmail.com
To: carlosnepomuc...@outlook.com
CC: python-list@python.org
Security is an important topic...
I don't think IPv6 will change anything about NAPT usage. In fact, I guess, it
will probably will make NAPT usage even more important and needed.
--
http://mail.python.org/mailman/listinfo/python-list
> Date: Fri, 24 May 2013 17:28:07 -0700
> Subject: Re: Simple algorithm question - how to reorder a sequence
> economically
> From: peter.h.m.bro...@gmail.com
> To: python-list@python.org
[...]
> If the scenario could be modelled mathematically, then there'
On 20 May 2013 00:36, wrote:
> One more question. Function np.argmax returns max of non-complex numbers ?
> Because FFT array of my signal is complex.
Use abs() like in my example. This will give the absolute value of the
complex numbers:
>>> z = 1+1j
>>> z
(1+1j)
>>> abs(z)
1.4142135623730951
On Sun, May 26, 2013 at 12:16 PM, Carlos Nepomuceno
wrote:
> list(range(13 * 4 * decks)) == range(13 * 4 * decks)
Not in Python 3.
--
http://mail.python.org/mailman/listinfo/python-list
> Date: Sun, 26 May 2013 15:17:11 +1000
> Subject: Re: Python Magazine
> From: ros...@gmail.com
[...]
>> Blocking a whole network (/65) is totally undesirable and may even become
>> illegal.
>
> Blocking a /64 is exactly the same as blocking a /32 with NAT
On Sun, May 26, 2013 at 12:17 PM, RVic wrote:
> Ah, brilliant -- yes, this is so much more elegant in Python:
>
> #now cut the cards
> x = random.randrange(2,range(13 * 4 * decks))
> cards = cards[x:]+cards[:x]
Or if for some reason you want to do it in place:
cards[x:], cards[:x] = cards[:x], c
> From: usenetm...@solar-empire.de
> Subject: Re: Cutting a deck of cards
> Date: Sun, 26 May 2013 22:13:55 +0200
> To: python-list@python.org
>
> Carlos Nepomuceno wrote:
>>
>>> From: usenetm...@solar-empire.de
>> [
> To: python-list@python.org
> From: breamore...@yahoo.co.uk
[...]
> See this
> http://docs.python.org/3/whatsnew/3.3.html#pep-397-python-launcher-for-windows
>
> --
> If you're using GoogleCrap™ please read this
> http://wiki.python.org/moin/GoogleGroupsPyt
On Mon, May 27, 2013 at 4:16 AM, Carlos Nepomuceno
wrote:
> list(range(13 * 4 * decks)) == range(13 * 4 * decks)
>
> ;)
Not in Python 3.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
> Date: Tue, 28 May 2013 08:18:06 +1000
> Subject: Re: Encodign issue in Python 3.3.1 (once again)
> From: ros...@gmail.com
> To: python-list@python.org
[...]
>
> This is something that's utterly trivial, yet a window to your mind.
> It's like boarding an ai
> Date: Mon, 27 May 2013 21:26:21 -0700
> Subject: Re: How to: Setuptools
> From: rustompm...@gmail.com
> To: python-list@python.org
>
> On May 28, 9:09 am, Carlos Nepomuceno
> wrote:
>>
>>
>>> Date: Mon, 27 May 2013
> Date: Tue, 28 May 2013 07:40:07 +0100
> Subject: RE: Total Beginner - Extracting Data from a Database Online
> (Screenshot)
> From: pconn...@gmail.com
[...]
> >
> > c11 = [tables[0][r][10] for r in range(len(tables[0]))]
>
> Or rather:
>
> c11 = [row[1
On 31 May 2013, at 13:11, DRJ Reddy wrote:
> Hello all,
>Was busy with work. Finally finished the job of registering the domain
> name.
> Will be live soon. The url is http://pythonmagazine.org. Hope we will be live
> soon.
I was surprised when I saw it is running on ASP.NET, can this be
don't ya have something intelligent to say motherfucker?
2013/5/28 rusi
> On May 28, 10:55 am, Νίκος Γκρ33κ wrote:
> > Ôç Ôñßôç, 28 ÌáÀïõ 2013 1:18:06 ð.ì. UTC+3, ï ÷ñÞóôçò Chris Angelico
> Ýãñáøå:
> >
> > > You're effectively asking people to put in a few minutes' work,
> > > sometimes quite
> To: python-list@python.org
> From: breamore...@yahoo.co.uk
> Subject: Re: Changing filenames from Greeklish => Greek (subprocess complain)
> Date: Sun, 2 Jun 2013 15:51:31 +0100
[...]
> "Steve is going for the pink ball - and for those of you who are
> wat
Hi,
I've just uploaded pypiserver 1.1.1 to the python package index.
pypiserver is a minimal PyPI compatible server. It can be used to serve
a set of packages and eggs to easy_install or pip.
pypiserver is easy to install (i.e. just 'pip install pypiserver'). It
doesn't have any external depende
> Date: Mon, 3 Jun 2013 12:05:49 +1000
> Subject: Re: Python #ifdef
> From: ros...@gmail.com
> To: python-list@python.org
[...]
> Ah. I actually wasn't aware of m4's use with sendmail. I first met it
> as the aforementioned PHP preprocessor, simply by Googli
On 05/30/2013 10:03 AM, Eternaltheft wrote:
do you think ti would be better if i call drawBoard?
Better is meaningless without context.
Are you being charged per keystroke?
--
DaveA
--
http://mail.python.org/mailman/listinfo/python-list
On 4 June 2013 14:35, Mark Lawrence wrote:
> On 04/06/2013 14:29, rusi wrote:
>> The Clash of the Titans
>>
>> Lé jmf chârgeth with mightƴ might
>> And le Mond underneath trembleth
>> Now RR mounts his sturdy steed
>> And the windmill yonder turneth
>>
>
> +1 funniest poem of the week :)
Week? Do
On 30 May 2013 22:03, Carlos Nepomuceno wrote:
>> Here's another way, mathematically equivalent (although not necessarily
>> equivalent using floating point computations!) which avoids the divide-by-
>> zero problem:
>>
>> abs(a - b) < epsilon*a
>
> That's wrong! If abs(a) < abs(a-b)/epsilon you w
> list = []
> Reading further, one sees that the function works with two lists, a list of
> file names, unfortunately called 'list',
That is very good advice in general: never choose a variable name
that is a keyword.
--
MarkJ
Tacoma, Washington
--
http://mail.python.org/mailman/listinf
> From: oscar.j.benja...@gmail.com
> Date: Thu, 30 May 2013 23:57:28 +0100
> Subject: Re: Short-circuit Logic
> To: carlosnepomuc...@outlook.com
> CC: python-list@python.org
>
> On 30 May 2013 22:03, Carlos Nepomuceno wrote:
>>> Here's another way, mathemat
On Tue, Jun 11, 2013 at 1:30 PM, rusi wrote:
> Or by example:
>
> def foo(x)...
> def bar(x,y)...
> there is no reason to confuse the two xes.
>
> Whereas
>
> x = ...
> def foo(x)...
> Now there is!
>
> The first should be encouraged, the second discouraged.
Again, there can be good reason for it
On Sunday 02 June 2013 13:10:30 Chris Angelico did opine:
> On Mon, Jun 3, 2013 at 2:21 AM, حéêüëلïٍ تïٌلٍ
wrote:
> > Paying for someone to just remove a dash to get the script working is
> > too much to ask for
>
> One dash: 1c
> Knowing where to remove it: $99.99
> Total bill: $100.00
>
> K
On Tue, Jun 4, 2013 at 9:53 PM, Carlos Nepomuceno
wrote:
> Are there any benefits from using dict() instead of {}?
Not for what you're doing, but you can use dict() with an iterable.
Most of the time, use the literal.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
' Server: ApacheBooster/1.6' isn't a signature of httpd. I think you are
really running something different.
> From: nob...@nowhere.com
> Subject: Re: Changing filenames from Greeklish => Greek (subprocess complain)
> Date: Tue, 4 Jun 2013 14:01:48 +0100
> To: python-list@python.org
>
> On Tue,
On Tue, Jun 4, 2013 at 1:12 PM, Νικόλαος Κούρας wrote:
> Τη Τρίτη, 4 Ιουνίου 2013 8:09:18 μ.μ. UTC+3, ο χρήστης Chris Angelico
> έγραψε:
> > On Wed, Jun 5, 2013 at 3:02 AM, Νικόλαος Κούρας
> wrote:
> >
> > > I'm willing to let someone with full root access to my webhost to see
> thigns from the i
On 06/12/2013 05:24 AM, Steven D'Aprano wrote:
On Wed, 12 Jun 2013 09:09:05 +, Νικόλαος Κούρας wrote:
Isn't 14 bits way to many to store a character ?
No.
There are 1114111 possible characters in Unicode. (And in Japan, they
sometimes use TRON instead of Unicode, which has even more.)
I
On Tue, Jun 4, 2013 at 3:49 PM, Chris Angelico wrote:
> So... can we cite http://xkcd.com/859/ in two threads at once, or does
> that create twice as much tension?
No, you just look at one of them upside-down, and then they cancel
each other out.
--
http://mail.python.org/mailman/listinfo/python
On 2013-06-12, Chris Angelico wrote:
> On Wed, Jun 12, 2013 at 5:45 PM, ?? wrote:
>> First of all i have changed the code to the following because using a
>> regex
>> to detect a single char was an overkill.
>>
>> if '=' not in name and '=' not in month and '=' not in year:
>
> It'd
Is "Rick Johnson" the alter ego of Xah Lee, or is he the result of a cross
breeding experiement with a troll by Saruman at Isengard?--
http://mail.python.org/mailman/listinfo/python-list
Am 12.06.2013 13:23, schrieb Νικόλαος Κούρας:
So, how many bytes does UTF-8 stored for codepoints > 127 ?
What has your research turned up? I personally consider it lazy and
respectless to get lots of pointers that you could use for further
research and ask for more info before you even follo
Op 05-06-13 11:06, Νικόλαος Κούρας schreef:
> Τη Τετάρτη, 5 Ιουνίου 2013 11:59:28 π.μ. UTC+3, ο χρήστης alex23 έγραψε:
>> On Jun 5, 6:41 pm, Chris Angelico wrote:
>>
>>> This matter is far more serious than you seem to be giving it
>>> consideration for. You complain that I violated your trust; yo
>> At least partially, my confusion seems to be caused by the dichotomy of
>> the concepts of copyright and license. How do these relate to each other?
>
> A license emerges out of the commercial domain is purely about
> commercial protections.
I should clarify, that "commercial protections" here
On Mon, 27 May 2013 13:43:36 -0700 (PDT)
Romila Anamaria wrote:
> I am beginner
> in Python programming
Are you a beginner in using the Internet too? You just sent a 2.69MB
message to a mailing list. You shouldn't send huge files like that in
email at all but especially not to a mailing list th
On 5 Jun 2013 06:23, "Tim Roberts" wrote:
> A single machine word was 60 bits, so a single register read got you 10
> characters.
10 characters! Now that sounds like it's enough to actually store a word.
However long words can inadverten be cropped.
--
http://mail.python.org/mailman/listinfo/pyt
On 12/6/2013 2:49 μμ, F�bio Santos wrote:
On 12 Jun 2013 12:08, " ��" mailto:supp...@superhost.gr>> wrote:
>
> Oh my God!
>
> i just need to do this:
>
>
> for i, month in enumerate( months ):
> � � � � print(' %s ' % (month, month) )
Usually what goes in is an ID of someth
On 12/6/2013 2:32 μμ, Νικόλαος Κούρας wrote:
On 12/6/2013 12:37 μμ, Steven D'Aprano wrote:
On Wed, 12 Jun 2013 12:24:24 +0300, Νικόλαος Κούρας wrote:
[1] Correction. While I was typing this, it came good, for about 20
seconds, and displayed a hideously ugly background pattern and a cute
smil
On 2013-05-24 14:43, Chris Angelico wrote:
On Fri, May 24, 2013 at 11:23 PM, Peter Brooks
wrote:
Actually, thinking about
it, there is probably a source of non-algorithmically-derived 'random'
numbers somewhere on the net that would do the job nicely.
True entropy is usually provided by a sou
> 1. How you run -- 'launch' -- the code -- from py and from prod
when I have to test I use "python any_script.py" but in production there is a
c++ program that is able to wrap and run python code (the technical details are
a bit beyond my knowledge)
> 2. What error you get
when I run as "pyt
On 2013-06-11, dhyams wrote:
>> You would use StringIO instead of writing a temp file.
>
> I don't think that would work...py_compile takes a filename as
> input, not a file object.
Dang. Sorry for the misinfo.
--
Neil Cerutti
--
http://mail.python.org/mailman/listinfo/python-list
On 12/06/2013 14:05, Neil Cerutti wrote:
Also, I wish he would stop fudging his From info. I've got
something like 8 entries for this ass in my killfile, and it
seems I need a new one every day.
An ass eh, when did he get promoted to that position?
--
"Steve is going for the pink ball - and
On 2013-06-11, Mark Janssen wrote:
>> list = []
>> Reading further, one sees that the function works with two lists, a list of
>> file names, unfortunately called 'list',
>
> That is very good advice in general: never choose a variable name
> that is a keyword.
You can't choose a vriable
On 2013-06-12, F?bio Santos wrote:
> On 5 Jun 2013 06:23, "Tim Roberts" wrote:
>> A single machine word was 60 bits, so a single register read got you 10
>> characters.
>
> 10 characters! Now that sounds like it's enough to actually store a word.
> However long words can inadverten be cropped.
O
On 12/06/2013 13:42, Νικόλαος Κούρας wrote:
Something you want me to try?
I'd suggest suicide but that would no doubt start another stream of
questions along the lines of "How do I do it?".
--
"Steve is going for the pink ball - and for those of you who are
watching in black and white, the
On 2013-06-12, Grant Edwards wrote:
> On 2013-06-12, Tim Roberts wrote:
>> ?? wrote:
>>>
>>>[code]
>>> if not re.search( '=', name ) and not re.search( '=', month )
>>> and not re.search( '=', year ):
>>> cur.execute( '''SELECT * FROM works WHERE cli
On 2013-06-12, Tim Roberts wrote:
> ?? wrote:
>>
>>[code]
>> if not re.search( '=', name ) and not re.search( '=', month )
>> and not re.search( '=', year ):
>> cur.execute( '''SELECT * FROM works WHERE clientsID =
>> (SELECT id FROM clients WHERE
In article ,
Roy Smith wrote:
>setup(
>name = "Mongo Reporter",
>version = "0.0",
>entry_points = {
>'nose.plugins.1.10': ['mongoreporter = mongo_reporter.MongoReporter'],
>},
>)
The problem turned out to be the syntax of the entry_point
declaration. It should h
On Jun 12, 6:29 pm, jacopo wrote:
> > 1. How you run -- 'launch' -- the code -- from py and from prod
>
> when I have to test I use "python any_script.py" but in production there is
> a c++ program that is able to wrap and run python code (the technical details
> are a bit beyond my knowledge)
1 - 100 of 199 matches
Mail list logo