On 01/04/2014 08:35 PM, Mark Lawrence wrote:
I first saw this when tring to run the command "py -3.4 -m ensurepip"
which gave me this lot.
Traceback (most recent call last):
...
from enum import IntEnum
ImportError: cannot import name 'IntEnum'
Before I raise an issue on the bug tracker
On Sat, Jan 4, 2014 at 6:27 PM, Steven D'Aprano
wrote:
> Fast is never more important than correct. It's just that sometimes you
> might compromise a little (or a lot) on what counts as correct in order for
> some speed.
Is this statement even falsifiable? Can you conceive of a circumstance
where
On 05/01/2014 07:38, luofeiyu wrote:
range(1,10)
range(1, 10)
print(range(1,10))
range(1, 10)
how can i get 1,2,3,4,5,6,7,8,9 in python3.3 ?
for i in range(1,10):
print(i, end=',')
print()
I hope you can cope with the comma at EOL :)
--
My fellow Pythonistas, ask not what our languag
On 04/01/2014 19:35, Mark Lawrence wrote:
Raised an issue anyway and then found a file caused enum.py. Whoops :(
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
Hi, Tim,
On Sat, Jan 4, 2014 at 5:37 PM, Tim Chase wrote:
> On 2014-01-04 15:30, Igor Korot wrote:
>> Does anybody here use django?
>
> Yes. However there's also a Django-users mailing list[1] for
> Django-specific questions. Folks there are friendly & helpful.
Thank you for that. I didn't loo
Let's say we have in livestocks.py
# livestocks.py stores all livestock classes
class cat()
...
class Dog()
...
class CanineDistemper(Exception)
'''
<<< Buddy = Dog(name = "Buddy")
<<< raise CanineDistemper(Buddy) # horrible test code!
'''
def __init__(self, dog)
Zhang Weiwu writes:
> 1. by definition only a canine (a dog) can have CanineDistemper, and
> 2. in no case can CanineDistemper be raised without specifying which
> object (canine) is having the problem,
>
> Thus, CanineDistemper is an integral part of Canine class
You haven't supported that clai
On Thursday, January 2, 2014 11:37:59 AM UTC, d ss wrote:
> dailystockselect.com needs a couple of talented python people for the
> development and implementation of new trading strategies. it may be also some
> pythonic design change for the displayed figures now the web app consists of
> 1 of
On Jan 5, 2014 1:04 AM, "Mark Lawrence" wrote:
>
> On 05/01/2014 07:38, luofeiyu wrote:
>
> range(1,10)
>>
>> range(1, 10)
>
> print(range(1,10))
>>
>> range(1, 10)
>>
>> how can i get 1,2,3,4,5,6,7,8,9 in python3.3 ?
>>
>
> for i in range(1,10):
> print(i, end=',')
> print()
>
Hi all.
I am after a module that manages keyboard input. I am aware of raw_input for
python 2.x and input for 3.x. They don't quite achieve what I want.
I want to except a single key without printing it to the screen and then the
key would perform an action. Sudo code:
print line of text
wait
Le dimanche 5 janvier 2014 03:54:29 UTC+1, Chris Angelico a écrit :
> On Sun, Jan 5, 2014 at 1:41 PM, Steven D'Aprano
>
> wrote:
>
> > wxjmfa...@gmail.com wrote:
>
> >
>
> >> The very interesting aspect in the way you are holding
>
> >> unicodes (strings). By comparing Python 2 with Python 3.
On 31.12.2013 10:53, Steven D'Aprano wrote:
> Mark Lawrence wrote:
>
>> http://blog.startifact.com/posts/alex-gaynor-on-python-3.html.
>
> I quote:
>
> "...perhaps a brave group of volunteers will stand up and fork Python 2, and
> take the incremental steps forward. This will have to remain just
Devin Jeanpierre wrote:
> On Sat, Jan 4, 2014 at 6:27 PM, Steven D'Aprano
> wrote:
>> Fast is never more important than correct. It's just that sometimes you
>> might compromise a little (or a lot) on what counts as correct in order
>> for some speed.
>
> Is this statement even falsifiable? Can
On Sun, Jan 5, 2014 at 11:28 PM, Steven D'Aprano
wrote:
> - "The Unix 'locate' command doesn't do a live search of the file
> system because that would be too slow, it uses a snapshot of the
> state of the file system."
>
>
> Is locate buggy because it tells you what files existed the last tim
On 31/12/2013 09:53, Steven D'Aprano wrote:
Mark Lawrence wrote:
http://blog.startifact.com/posts/alex-gaynor-on-python-3.html.
I quote:
"...perhaps a brave group of volunteers will stand up and fork Python 2, and
take the incremental steps forward. This will have to remain just an idle
sugg
http://lucumr.pocoo.org/2014/1/5/unicode-in-2-and-3/
Please don't shoot the messenger :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
On 1/5/14 8:14 AM, Mark Lawrence wrote:
http://lucumr.pocoo.org/2014/1/5/unicode-in-2-and-3/
Please don't shoot the messenger :)
With all of the talk about py 2 vs. py3 these days, this is the blog
post that I think deserves the most real attention. I haven't had to do
the kind of coding t
On Mon, Jan 6, 2014 at 12:14 AM, Mark Lawrence wrote:
> http://lucumr.pocoo.org/2014/1/5/unicode-in-2-and-3/
>
> Please don't shoot the messenger :)
Most of that is tiresome reiterations of the same arguments ("It
worked fine, there were just a few problems" - which means that you
haven't thought
On Mon, Jan 6, 2014 at 12:22 AM, Ned Batchelder wrote:
> If anyone wants Python 3 uptake improved, the best thing would be to either
> explain to Armin how he missed the easy way to do what he wants (seems
> unlikely), or advocate to the core devs why they should change things to
> improve this si
Johannes Bauer, 05.01.2014 13:14:
> I've pushed the
> migration of *large* projects at work to Python3 when support was pretty
> early and it really wasn't a huge deal.
I think there are two sides to consider. Those who can switch their code
base to Py3 and be happy (as you did, apparently), and t
Le samedi 4 janvier 2014 23:46:49 UTC+1, Terry Reedy a écrit :
> On 1/4/2014 2:10 PM, wxjmfa...@gmail.com wrote:
>
> > Le samedi 4 janvier 2014 15:17:40 UTC+1, Chris Angelico a écrit :
>
>
>
> >> any, and Python has only one, idiot like jmf who completely
>
>
>
> Chris, I appreciate the many
On Sun, 05 Jan 2014 08:22:38 -0500
Ned Batchelder wrote:
> On 1/5/14 8:14 AM, Mark Lawrence wrote:
> > http://lucumr.pocoo.org/2014/1/5/unicode-in-2-and-3/
> >
> > Please don't shoot the messenger :)
> >
>
> With all of the talk about py 2 vs. py3 these days, this is the blog
> post that I think
On 1/5/14 9:23 AM, wxjmfa...@gmail.com wrote:
Le samedi 4 janvier 2014 23:46:49 UTC+1, Terry Reedy a écrit :
On 1/4/2014 2:10 PM, wxjmfa...@gmail.com wrote:
I do not mind to be considered as an idiot, but
I'm definitively not blind.
And I could add, I *never* saw once one soul, who is
explaini
In article <52c94fec$0$29973$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> How do we tell when software is buggy? We compare what it actually does to
> the promised behaviour, or expected behaviour, and if there is a
> discrepancy, we call it a bug. We don't compare it to some id
SO, I'm still trying to make that tkinter code. I've come far enough, but I now
should place the elements in the window. But I'm having problems with anchor.
No matter how I use it, it always goes to the SW part. I want them to go to the
NW part. Any help please? I can provide any needed info.
In article ,
Chris Angelico wrote:
> On Sun, Jan 5, 2014 at 2:20 PM, Roy Smith wrote:
> > I've got a new sorting algorithm which is guaranteed to cut 10 seconds
> > off the sorting time (i.e. $0.10 per package). The problem is, it makes
> > a mistake 1% of the time.
>
> That's a valid line of
On Sun, 05 Jan 2014 20:25:11 +1100, Sean Murphy wrote:
> The module must work under dos for now. Eventually Mac.
Do you mean a windows command line terminal window, or some *nix shell?
As far as I know, dos as an operating system hasn't been around since
version 6.22 or thereabouts, although I
On Mon, Jan 6, 2014 at 3:34 AM, Roy Smith wrote:
> Amazon's (short-term) goal is to increase their market share by
> undercutting everybody on price. They have implemented a box-packing
> algorithm which clearly has a bug in it. You are complaining that they
> failed to deliver your purchase in
On 05/01/2014 09:25, Sean Murphy wrote:
Hi all.
I am after a module that manages keyboard input. I am aware of raw_input for
python 2.x and input for 3.x. They don't quite achieve what I want.
I want to except a single key without printing it to the screen and then the
key would perform an ac
Chris Angelico wrote:
> Can you really run a business by not caring about your customers?
http://snltranscripts.jt.org/76/76aphonecompany.phtml
--
https://mail.python.org/mailman/listinfo/python-list
> Thanks for all suggestions,
Two essential criteria:
If an ORM only allows 1:1 mapping between classes and tables à la
"active record", then it's entirely pointless.
And if an ORM allows only surrogate keys, then its developers don't
have a clue of databases or they don't give a darn. Or both.
So, I'm having this radio button issue in tkinter:
First I assign the IntVar:
var = []
while i < self.something:
var.append(IntVar())
i += 2
Later on I use them, but I get this error:
for r in var:
helper = var[r].get()
self.something_else[helper] += 1
Then, this happens:
Traceback
In article <8dca57e8-8258-4020-9788-987af332b...@googlegroups.com>,
eneskri...@gmail.com wrote:
I don't use tkinter, but here's what I can figure out from looking at
your code and http://effbot.org/tkinterbook/variable.htm
> var = []
> while i < self.something:
> var.append(IntVar())
>
On 1/5/14 1:18 PM, eneskri...@gmail.com wrote:
So, I'm having this radio button issue in tkinter:
First I assign the IntVar:
var = []
while i < self.something:
var.append(IntVar())
i += 2
Later on I use them, but I get this error:
for r in var:
helper = var[r].get()
self.somet
eneskri...@gmail.com wrote:
> So, I'm having this radio button issue in tkinter:
> First I assign the IntVar:
> var = []
> while i < self.something:
> var.append(IntVar())
> i += 2
> Later on I use them, but I get this error:
> for r in var:
> helper = var[r].get()
> self.something
On 01/05/2014 10:18 AM, eneskri...@gmail.com wrote:
So, I'm having this radio button issue in tkinter:
First I assign the IntVar:
var = []
while i < self.something:
var.append(IntVar())
i += 2
Later on I use them, but I get this error:
for r in var:
helper = var[r].get()
self.
Now it is giving me this error, after changing to helper = var[r.get()]
line 27, in submit_data
self.something_else[r][1] += 1
TypeError: list indices must be integers, not IntVar
--
https://mail.python.org/mailman/listinfo/python-list
Matěj,
Thanks for your efforts!
However, you should only have one 'p' in scraping and scraper. ;)
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
Il giorno venerdì 13 marzo 2009 08:52:39 UTC+1, koranthala ha scritto:
> Hi,
> Is it possible to convert a string to a function parameter?
> Ex:
> str = 'True, type=rect, sizes=[3, 4]'
> and I should be able to use it as:
> test(convert(str)) and the behaviour should be same as calling test
> w
On 01/05/2014 10:47 AM, eneskri...@gmail.com wrote:
Now it is giving me this error, after changing to helper = var[r.get()]
line 27, in submit_data
self.something_else[r][1] += 1
TypeError: list indices must be integers, not IntVar
In such an easy case, you really ought to be able to read
On 1/5/14 2:39 PM, pietrod...@gmail.com wrote:
Il giorno venerdì 13 marzo 2009 08:52:39 UTC+1, koranthala ha scritto:
Hi,
Is it possible to convert a string to a function parameter?
Ex:
str = 'True, type=rect, sizes=[3, 4]'
and I should be able to use it as:
test(convert(str)) and the behav
On 05/01/2014 19:12, Ethan Furman wrote:
Matěj,
Thanks for your efforts!
However, you should only have one 'p' in scraping and scraper. ;)
--
~Ethan~
My hopes were falsely raised when I first saw the title :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you
On 01/05/2014 11:39 AM, pietrod...@gmail.com wrote:
Il giorno venerdì 13 marzo 2009 08:52:39 UTC+1, koranthala ha scritto:
Hi,
Is it possible to convert a string to a function parameter?
Ex:
str = 'True, type=rect, sizes=[3, 4]'
and I should be able to use it as:
test(convert(str)) and the
Hi,
AFAIK, we do not have "postfix conditionals" in Python, i.e. a condition
appended to a
statement, which determines whether the statement runs or not:
py> for i in [False]:
... break if not i
The above piece of code is equivalent to this in Python:
py> for i in [False]:
...
In article ,
Göktu⬠Kayaalp wrote:
>py> for i in [False]:
>... break if not i
Python is not Perl.
--
https://mail.python.org/mailman/listinfo/python-list
On 05-01-2014 22:41, Roy Smith wrote:
In article ,
Göktu€ Kayaalp wrote:
py> for i in [False]:
... break if not i
Python is not Perl.
Well done! Good for you, that you know the fact; but you are not being
constructive.
Python is not C either, but we have the while loop.
On 1/5/2014 8:14 AM, Mark Lawrence wrote:
http://lucumr.pocoo.org/2014/1/5/unicode-in-2-and-3/
I disagree with the following claims:
"Looking at that you can see that Python 3 removed something: support
for non Unicode data text. "
I believe 2.7 str text methods like .upper only supported a
On Sun, Jan 5, 2014 at 12:41 PM, Roy Smith wrote:
> In article ,
> Göktu€ Kayaalp wrote:
>
>>py> for i in [False]:
>>... break if not i
>
> Python is not Perl.
Personally, I find the suggested syntax jarring. I'd prefer that it
not go into Python.
--
https://mail.python.org/mailma
On 1/5/2014 8:14 AM, Mark Lawrence wrote:
http://lucumr.pocoo.org/2014/1/5/unicode-in-2-and-3/
I meant to mention in my previous reply that Armin authored PEP 414,
Explicit Unicode Literal for Python 3.3, which brought back the u''
prefix. So it is not the case that core devs pay no attention
On behalf of the Python development team, I'm pleased to announce
the second beta release of Python 3.4.
This is a preview release, and its use is not recommended for
production settings.
Python 3.4 includes a range of improvements of the 3.x series, including
hundreds of small improvements and
On 2014-01-05 00:24, Igor Korot wrote:
> > While I prefer Django for larger projects, for a lighter-weight
> > project such as what you describe, I'd be tempted to go with
> > something a little more light-weight unless you need additional
> > interactivity. I've recently been impressed with Bottl
In article ,
Tim Chase wrote:
> Integration is one of the things that Django does particularly well:
> out of the box, you get a web framework, database abstraction (ORM),
> templating, out-of-the-box functionality, and PHENOMENAL
> documentation. The others just bring the web-framework to the t
Dennis,
Loose terminology. The Command terminal within windows which the app will be
executed in. Not native DOS.
On 06/01/2014, at 3:48 AM, Denis McMahon wrote:
> On Sun, 05 Jan 2014 20:25:11 +1100, Sean Murphy wrote:
>
>> The module must work under dos for now. Eventually Mac.
>
> Do you m
On Sun, Jan 5, 2014 at 12:24 PM, Göktuğ Kayaalp wrote:
> Hi,
>
> AFAIK, we do not have "postfix conditionals" in Python, i.e. a condition
> appended to a
> statement, which determines whether the statement runs or not:
>
> py> for i in [False]:
> ... break if not i
>
> The above piece of c
This was sent to me as a private reply to a question that I have posted
to python-list@python.org, so I am forwarding it to here.
Chris, please send your messages to the list, and cc the OP.
Original Message
Subject:Re: Postfix conditionals
Date: Sun, 5 Jan 2014 14:09
On 1/5/2014 9:23 AM, wxjmfa...@gmail.com wrote:
Le samedi 4 janvier 2014 23:46:49 UTC+1, Terry Reedy a écrit :
On 1/4/2014 2:10 PM, wxjmfa...@gmail.com wrote:
And I could add, I *never* saw once one soul, who is
explaining what I'm doing wrong in the gazillion
of examples I gave on this list.
On Sun, Jan 5, 2014 at 2:12 PM, Göktuğ Kayaalp wrote:
>
> This was sent to me as a private reply
No, it was sent as a public reply via Reply-All; note that python-list
was CC-ed, which works just fine:
https://mail.python.org/pipermail/python-list/2014-January/663858.html
> to a question that I
05.01.14 15:34, Chris Angelico написав(ла):
Why is a StopIteration bubbling up? (I don't have Flask, so I can't
verify this.) Is it as simple as "this should be raising from None",
or is there something else going on?
Yes, it is. Stdlib json module uses "from None".
--
https://mail.python.org/
I wonder why nobody complains about the absent of implicit conversion
between int and str. In PHP you can write 2 + "3" and got 5, but in
Python this is an error. So sad!
--
https://mail.python.org/mailman/listinfo/python-list
On 1/5/2014 9:23 AM, wxjmfa...@gmail.com wrote:
My examples are ONLY ILLUSTRATING, this FSR
is wrong by design,
Let me answer you a different way. If FSR is 'wrong by design', so are
the alternatives. Hence, the claim is, in itself, useless as a guide to
choosing. The choices:
* Keep the p
On 1/5/2014 11:51 AM, Chris Angelico wrote:
On Mon, Jan 6, 2014 at 3:34 AM, Roy Smith wrote:
Amazon's (short-term) goal is to increase their market share by
undercutting everybody on price. They have implemented a box-packing
algorithm which clearly has a bug in it. You are complaining that t
Chris Angelico wrote:
> But this bit looks odd:
>
> """
> For instance passing a urllib request object to Flask's JSON parse
> function breaks on Python 3 but works on Python 2 as a result of this:
>
from urllib.request import urlopen
r = urlopen('https://pypi.python.org/pypi/Flask/jso
Chris Angelico writes:
> Maybe it's the better way, but like trying to get people to switch
> from MS Word onto an open system, it's far easier to push for Open
> Office than for LaTeX.
If you're going to be pushing people to a free software system,
OpenOffice is no longer the one to choose; its
On 01/05/2014 02:32 PM, Serhiy Storchaka wrote:
I wonder why nobody complains about the absent of implicit conversion
between int and str. In PHP you can write 2 + "3" and got 5, but in
Python this is an error. So sad!
I'd want my implicit conversion of 2 + '3' to get '23'
That's why it's not
Matej Cepl writes:
> Did you try to archive email list hosted on the Google Groups? Were
> you endlessly frustrated by the black hole which is Google Groups,
> conscpicious by its absence on the Data Liberation Front website? Yes,
> I was too_
Yes, I am very frustrated by everything Google Group
On 01/05/2014 03:31 PM, Emile van Sebille wrote:
On 01/05/2014 02:32 PM, Serhiy Storchaka wrote:
I wonder why nobody complains about the absent of implicit conversion
between int and str. In PHP you can write 2 + "3" and got 5, but in
Python this is an error. So sad!
I'd want my implicit conv
On Mon, Jan 6, 2014 at 9:56 AM, Terry Reedy wrote:
> On 1/5/2014 11:51 AM, Chris Angelico wrote:
>>
>> On Mon, Jan 6, 2014 at 3:34 AM, Roy Smith wrote:
>>>
>>> Amazon's (short-term) goal is to increase their market share by
>>> undercutting everybody on price. They have implemented a box-packing
On Mon, Jan 6, 2014 at 9:56 AM, Steven D'Aprano
wrote:
>> Why is a StopIteration bubbling up? (I don't have Flask, so I can't
>> verify this.) Is it as simple as "this should be raising from None",
>> or is there something else going on?
>
> Remember that "raise Spam from None" only works from Pyt
Hi, ALL,
Well, my employer does not know anything about web programming and I
don't know anything about web programming and this is my first job
with python.
So since django is a well documented framework I guess it will be
easier to go with a well documented framework.
Thank you everybody for su
On Mon, Jan 6, 2014 at 10:45 AM, Ethan Furman wrote:
> On 01/05/2014 03:31 PM, Emile van Sebille wrote:
>>
>> On 01/05/2014 02:32 PM, Serhiy Storchaka wrote:
>>>
>>> I wonder why nobody complains about the absent of implicit conversion
>>> between int and str. In PHP you can write 2 + "3" and got
On Mon, Jan 6, 2014 at 10:30 AM, Ben Finney wrote:
> Chris Angelico writes:
>
>> Maybe it's the better way, but like trying to get people to switch
>> from MS Word onto an open system, it's far easier to push for Open
>> Office than for LaTeX.
>
> If you're going to be pushing people to a free so
On 01/05/2014 02:56 PM, Steven D'Aprano wrote:
Remember that "raise Spam from None" only works from Python 3.3 onwards.
Personally, I think that releasing nested tracebacks before having a way to
suppress the display was a strategic blunder [...]
I would just call it really really annoying. ;)
On Sun, Jan 5, 2014 at 2:32 PM, Serhiy Storchaka wrote:
> I wonder why nobody complains about the absent of implicit conversion
> between int and str. In PHP you can write 2 + "3" and got 5, but in Python
> this is an error. So sad!
I like Python strongly typed, thank you very much. Please don'
Chris Angelico wrote about Amazon:
> And yet I can't disagree with your final conclusion. Empirical
> evidence goes against my incredulous declaration that "surely this is
> a bad idea" - according to XKCD 1165, they're kicking out nearly a
> cubic meter a SECOND of packages.
Yes, but judging
On 1/5/14 8:22 AM, Ned Batchelder wrote:
On 1/5/14 8:14 AM, Mark Lawrence wrote:
http://lucumr.pocoo.org/2014/1/5/unicode-in-2-and-3/
Please don't shoot the messenger :)
With all of the talk about py 2 vs. py3 these days, this is the blog
post that I think deserves the most real attention.
Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> On Sun, Jan 5, 2014 at 2:20 PM, Roy Smith wrote:
>> > I've got a new sorting algorithm which is guaranteed to cut 10 seconds
>> > off the sorting time (i.e. $0.10 per package). The problem is, it
>> > makes a mistake 1% of the time.
On 01/05/2014 05:14 AM, Mark Lawrence wrote:
Please don't shoot the messenger :)
While I don't agree with his assessment of Python 3 in total, I definitely feel his pain with regards to bytestrings in
Py3 -- because they don't exist. 'bytes' /looks/ like a bytestring, but really it's just a
On Sun, 05 Jan 2014 20:24:53 -, Göktuğ Kayaalp
wrote:
AFAIK, we do not have "postfix conditionals" in Python, i.e. a condition
appended to a statement, which determines whether the statement runs or
not:
py> for i in [False]:
... break if not i
The above piece of code
On Mon, Jan 6, 2014 at 12:16 PM, Ned Batchelder wrote:
> So now we have two revered developers vocally having trouble with Python 3.
> You can dismiss their concerns as niche because it's only network
> programming, but that would be a mistake.
IMO, network programming (at least on the internet)
On Mon, Jan 6, 2014 at 12:23 PM, Steven D'Aprano
wrote:
> (However, to the extent that Amazon has gained monopoly power over the book
> market, that reasoning may not apply. Amazon is not *technically* a
> monopoly, but they are clearly well on the way to becoming one, at which
> point the custome
In article ,
Chris Angelico wrote:
> One time I implemented Oauth manually rather than using a library
Me too. You have my sympathy. What a mess.
--
https://mail.python.org/mailman/listinfo/python-list
On 1/5/14 8:48 PM, Chris Angelico wrote:
On Mon, Jan 6, 2014 at 12:16 PM, Ned Batchelder wrote:
So now we have two revered developers vocally having trouble with Python 3.
You can dismiss their concerns as niche because it's only network
programming, but that would be a mistake.
IMO, network
>> Most of the complaints about Py3 are "it's harder to get something
>> started (or port from Py2)". My answer is that it's easier to get
>> something finished.
>
> I like all of this logic, it makes sense to me. But Armin and Kenneth have
> more experience than I do actually writing networking s
On Sun, Jan 5, 2014 at 4:46 PM, Ethan Furman wrote:
> While I don't agree with his assessment of Python 3 in total, I definitely
> feel his pain with regards to bytestrings in Py3 -- because they don't
> exist. 'bytes' /looks/ like a bytestring, but really it's just a bunch of
> integers:
>
> -->
On 01/05/2014 05:48 PM, Chris Angelico wrote:
On Mon, Jan 6, 2014 at 12:16 PM, Ned Batchelder wrote:
So now we have two revered developers vocally having trouble with Python 3.
You can dismiss their concerns as niche because it's only network
programming, but that would be a mistake.
IMO, net
On Mon, Jan 6, 2014 at 1:23 PM, Ethan Furman wrote:
> The metadata fields are simple ascii, and in Py2 something like `if
> header[FIELD_TYPE] == 'C'` did the job just fine. In Py3 that compares an
> int (67) to the unicode letter 'C' and returns False. For me this is simply
> a major annoyance,
On 1/5/2014 3:24 PM, Göktuğ Kayaalp wrote:
Hi,
AFAIK, we do not have "postfix conditionals" in Python, i.e. a condition
appended to a
statement, which determines whether the statement runs or not:
py> for i in [False]:
... break if not i
The above piece of code is equivalent to this
In article ,
Mark Janssen wrote:
> I honestly think Python3 will have to be regressed despite all the
> [obscenity elided] about how "everyone's moving to Python 3 now".
This forum has seen a lot honest disagreement about issues, sometimes
hotly debated. That's OK. Sometimes the discussion
In article ,
Chris Angelico wrote:
> It can't be both things. It's either bytes or it's text.
I've never used Python 3, so forgive me if these are naive questions.
Let's say you had an input stream which contained the following hex
values:
$ hexdump data
000 d7 a8 a3 88 96 95
That's E
On 1/5/2014 8:16 PM, Ned Batchelder wrote:
OK, let's see what we got from three core developers on this list:
To me, the following is a partly unfair summary.
- Antoine dismissed the post as "a rant".
He called it a rant while acknowledging that there is a unsolved issue
with transforms.
On 2014-01-05 23:24, Roy Smith wrote:
> $ hexdump data
> 000 d7 a8 a3 88 96 95
>
> That's EBCDIC for "Python". What would I write in Python 3 to read
> that file and print it back out as utf-8 encoded Unicode?
>
> Or, how about a slightly different example:
>
> $ hexdump data
> 000 43 6
In article ,
Tim Chase wrote:
> On 2014-01-05 23:24, Roy Smith wrote:
> > $ hexdump data
> > 000 d7 a8 a3 88 96 95
> >
> > That's EBCDIC for "Python". What would I write in Python 3 to read
> > that file and print it back out as utf-8 encoded Unicode?
> >
> > Or, how about a slightly diff
On Mon, Jan 6, 2014 at 3:24 PM, Roy Smith wrote:
> I've never used Python 3, so forgive me if these are naive questions.
> Let's say you had an input stream which contained the following hex
> values:
>
> $ hexdump data
> 000 d7 a8 a3 88 96 95
>
> That's EBCDIC for "Python". What would I writ
On Mon, Jan 6, 2014 at 3:49 PM, Roy Smith wrote:
> Thanks. But, I see I didn't formulate my problem statement well. I was
> (naively) assuming there wouldn't be a built-in codec for rot-13. Let's
> assume there isn't; I was trying to find a case where you had to treat
> the data as integers in
Hi,
I'm creating GUI using python gtk, and which uses external library gtk ,
M2Crypto I want make executable file by using pyinstaller, Which is not
including external library
How to make external library include into executable file .
Can you give any suggestion how to import external library in
On 06/01/2014 01:54, Chris Angelico wrote:
On Mon, Jan 6, 2014 at 12:23 PM, Steven D'Aprano
wrote:
(However, to the extent that Amazon has gained monopoly power over the book
market, that reasoning may not apply. Amazon is not *technically* a
monopoly, but they are clearly well on the way to be
I came across this over the weekend
http://paddy3118.blogspot.co.uk/2013/10/unifying-pythons-string-and-list.html.
I couldn't come up with a solution to the fsplit function that seemed
in any way cleaner. What can our nest of avid Pythonistas come up with?
--
My fellow Pythonistas, ask not w
On 06-01-2014 03:40, Rhodri James wrote:
On Sun, 05 Jan 2014 20:24:53 -, Göktuğ Kayaalp
wrote:
AFAIK, we do not have "postfix conditionals" in Python, i.e. a
condition appended to a statement, which determines whether the
statement runs or not:
py> for i in [False]:
... bre
98 matches
Mail list logo