On Mon, 06 Jan 2014 22:41:26 +, Nicholas Cole wrote:
[...]
> Like everyone else, when Python 3 came out I was nervous. A lot of my
> code broke - but it broke for a good reason. I had been being cavalier
> about strings and ASCII and bytes. A lot of my code was working by
> accident rather
Le mercredi 8 janvier 2014 01:02:22 UTC+1, Terry Reedy a écrit :
> On 1/7/2014 9:54 AM, Terry Reedy wrote:
>
> > On 1/7/2014 8:34 AM, wxjmfa...@gmail.com wrote:
>
> >> Le dimanche 5 janvier 2014 23:14:07 UTC+1, Terry Reedy a écrit :
>
> >
>
> >>> Memory: Point 2. A *design goal* of FSR was to s
On 07/01/2014 19:48, Serhiy Storchaka wrote:
data[0] == b'\xE1'[0] works as expected in both Python 2.7 and 3.x.
I have been porting a lot of python 2 only code to a python2.7 + 3.3 version for
a few months now. Bytes indexing was a particular problem. PDF uses quite a lot
of single
On Friday, 23 November 2001 04:13:40 UTC+5:30, MANUEL FERNANDEZ PEREZ wrote:
> Hello,
> I'm looking for an editor for Python.I' m interested it works on Windows.Can
> anybody help me?
>
> Thank you
>
> Manuel
--
https://mail.python.org/mailman/listinfo/python-list
- Original Message -
> On Friday, 23 November 2001 04:13:40 UTC+5:30, MANUEL FERNANDEZ PEREZ
> wrote:
> > Hello,
> > I'm looking for an editor for Python.I' m interested it works on
> > Windows.Can
> > anybody help me?
> >
> > Thank you
> >
> > Manuel
http://lmgtfy.com/?q=python+editor+
Hi there,
On 01/07/2014 06:00 PM, Chris Angelico wrote:
I'm still not sure how Python 2.8 needs to differ from 2.7. Maybe the
touted upgrade path is simply a Python 2.7 installer plus a few handy
libraries/modules that will now be preinstalled? These modules look
great (I can't say, as I don't h
On Wed, Jan 8, 2014 at 11:36 PM, Martijn Faassen wrote:
> Well, in the original article I argue that it may be risky for the Python
> community to leave the large 2.7 projects behind because they tend to be the
> ones that pay us in the end.
>
> I also argue that for those projects to move anywher
Martijn Faassen wrote:
> I also argue that for those projects to move anywhere, they need a
> clear, blessed, official, as simple as possible, incremental upgrade
> path. That's why I argue for a Python 2.8.
That incremental upgrade path is Python 2.7.
Remember, when Python 3 first came out, the
Hello!
I've written some tiny script using Python 3 and it used to work perfectly.
Then I realized it needs to run on my Debian Stable server too, which offers
only Python 2. Ok, most backporting was a matter of minutes, but I'm becoming
desperate on some Unicode error...
i use scikit-learn to
On Thu, Jan 9, 2014 at 12:14 AM, Florian Lindner wrote:
> I've written some tiny script using Python 3 and it used to work perfectly.
> Then I realized it needs to run on my Debian Stable server too, which offers
> only Python 2. Ok, most backporting was a matter of minutes, but I'm becoming
>
On 08/01/2014 13:01, Steven D'Aprano wrote:
Martijn Faassen wrote:
I also argue that for those projects to move anywhere, they need a
clear, blessed, official, as simple as possible, incremental upgrade
path. That's why I argue for a Python 2.8.
That incremental upgrade path is Python 2.7.
R
Long time Windows developer making the move to Apple platform. My new
development environment is a 15" MacBook Pro with 16 Gb RAM and a 512
Gb SSD. I'm totally new to the world of Apple hardware and software and
am looking for advice on what apps, utilities and hardware I should
consider for my new
On 08/01/2014 12:36, Martijn Faassen wrote:
Hi there,
On 01/07/2014 06:00 PM, Chris Angelico wrote:
I'm still not sure how Python 2.8 needs to differ from 2.7. Maybe the
touted upgrade path is simply a Python 2.7 installer plus a few handy
libraries/modules that will now be preinstalled? These
As somebody who is still firmly in the 2.x world, I'm worried about the
idea of a 2.x fork. While I have my doubts that 3.x was a good idea,
the fact is, it's here. Having the community fractured between the two
camps is not good. Let's say I'm somebody who wants to contribute some
OSS. I h
On 08/01/2014 14:15, Roy Smith wrote:
As somebody who is still firmly in the 2.x world, I'm worried about the
idea of a 2.x fork. While I have my doubts that 3.x was a good idea,
the fact is, it's here. Having the community fractured between the two
camps is not good. Let's say I'm somebody wh
I've been pleased with Komodo, and certainly prefer it over Notepad++.
Komodo:
http://www.activestate.com/komodo-ide?gclid=COHE4eLj7rsCFQISMwodOUQAiw
On Wed, Jan 8, 2014 at 7:23 AM, Jean-Michel Pichavant <
jeanmic...@sequans.com> wrote:
> - Original Message -
> > On Friday, 23 November
I think for new projects one should go with 3.x this is the right thing to
do. If you require a module that's 2.x only it's easy enough to port it
unless it depends on some monster like protobuf which doesn't have
python3.x support
Pedro.
On Wed, Jan 8, 2014 at 3:30 PM, Mark Lawrence wrote:
>
On Thu, Jan 9, 2014 at 1:30 AM, Mark Lawrence wrote:
> But to be serious why not stick with 2.x if there's no compelling reason to
> move? Whatever happened to "if it ain't broke, don't fix it"? And before
> anyone says anything please don't start on about the bytes versus string
> debate, I'm f
On 01/08/2014 01:46 PM, Chris Angelico wrote:
On Wed, Jan 8, 2014 at 11:36 PM, Martijn Faassen wrote:
Well, in the original article I argue that it may be risky for the Python
community to leave the large 2.7 projects behind because they tend to be the
ones that pay us in the end.
I also argue
On 2014-01-08, Chris Angelico wrote:
> Two reasons for moving:
>
> 1) Support for newer hardware
How does Python 3.x support newer hardware than Python 2.7?
--
Grant Edwards grant.b.edwardsYow! Psychoanalysis??
at I thought
- Original Message -
> I've been pleased with Komodo, and certainly prefer it over
> Notepad++.
> Komodo:
> http://www.activestate.com/komodo-ide?gclid=COHE4eLj7rsCFQISMwodOUQAiw
Komodo is an IDE and costs 385$. I certainly expect it to better than notepad++.
JM
-- IMPORTANT NOTICE:
On Wed, 08 Jan 2014 16:13:09 +0100, Jean-Michel Pichavant wrote:
> - Original Message -
>
>> I've been pleased with Komodo, and certainly prefer it over Notepad++.
>
>> Komodo:
>> http://www.activestate.com/komodo-ide?gclid=COHE4eLj7rsCFQISMwodOUQAiw
>
> Komodo is an IDE and costs 385$.
Hey,
I'm pointing out possible improvements that Python 2.8 could offer that
would help incremental porting efforts of applications. I'm pointing
about that helping application developers move forward incrementally may
be a worthwhile consideration. Like, there's money there.
You can point o
Hey,
On 01/08/2014 03:30 PM, Mark Lawrence wrote:
But to be serious why not stick with 2.x if there's no compelling reason
to move? Whatever happened to "if it ain't broke, don't fix it"?
That's fine for static applications that don't have to change.
Successful applications tend to grow new
On Thu, Jan 9, 2014 at 2:06 AM, Grant Edwards wrote:
> On 2014-01-08, Chris Angelico wrote:
>
>> Two reasons for moving:
>>
>> 1) Support for newer hardware
>
> How does Python 3.x support newer hardware than Python 2.7?
At the moment, I would say there's no difference between those two
versions
On Thu, Jan 9, 2014 at 2:22 AM, Martijn Faassen wrote:
> I'm pointing out possible improvements that Python 2.8 could offer that
> would help incremental porting efforts of applications. I'm pointing about
> that helping application developers move forward incrementally may be a
> worthwhile consi
On 08/01/2014 15:39, Chris Angelico wrote:
On Thu, Jan 9, 2014 at 2:22 AM, Martijn Faassen wrote:
I'm pointing out possible improvements that Python 2.8 could offer that
would help incremental porting efforts of applications. I'm pointing about
that helping application developers move forward i
Le mercredi 8 janvier 2014 12:05:49 UTC+1, Robin Becker a écrit :
> On 07/01/2014 19:48, Serhiy Storchaka wrote:
>
>
>
> > data[0] == b'\xE1'[0] works as expected in both Python 2.7 and 3.x.
>
> >
>
> >
>
> I have been porting a lot of python 2 only code to a python2.7 + 3.3 version
On Wed, Jan 8, 2014 at 10:53 AM, Jean-Michel Pichavant <
jeanmic...@sequans.com> wrote:
> > > -- IMPORTANT NOTICE:
> > >
> > > The contents of this email and any attachments are confidential and
> > > may
> > > also be privileged. If you are not the intended recipient, please
> > > notify
> > > th
> > -- IMPORTANT NOTICE:
> >
> > The contents of this email and any attachments are confidential and
> > may
> > also be privileged. If you are not the intended recipient, please
> > notify
> > the sender immediately and do not disclose the contents to any
> > other
> > person, use it for any purp
So yeah, if you know of a good one; please share.
Thanks
On Sun, Jan 5, 2014 at 2:50 PM, Alec Taylor wrote:
> Because I'm thinking that something with a much less expressive query
> interface would serve me better in the long run... e.g.: Redis or
> maybe Hadoop
>
> On Sat, Jan 4, 2014 at 5:35 P
On Jan 8, 2014, at 9:11 AM, pyt...@bdurham.com wrote:
> Long time Windows developer making the move to Apple platform. My new
> development environment is a 15" MacBook Pro with 16 Gb RAM and a 512 Gb SSD.
> I'm totally new to the world of Apple hardware and software and am looking
> for advice
On Wed, Jan 8, 2014 at 4:53 PM, Jean-Michel Pichavant
wrote:
> I tried to negotiate this with my IT guys, but it looks like it's now
> mandatory, something related to being in the USA stock market.
> I have no way to remove it, it's added by the email server. I apologise for
> the noise.
But yo
On Thu, Jan 9, 2014 at 3:40 AM, Joel Goldstick wrote:
> What is wrong with this world that some over paid lawyer requires a useless,
> silly statement to justify his employment. The money that person is being
> paid should be given to someone else.
Good luck. Guess who would be suing you for wro
On Thu, Jan 9, 2014 at 2:45 AM, William Ray Wing wrote:
> Two external disks. One dedicated to TimeMachine for continuous backups of
> code as you write it, and one dedicated to either CarbonCopy Cloner or
> SuperDuper. Whichever you choose, set it up to do once-a-week clones at say
> 2:00 AM
On 1/8/14 11:08 AM, wxjmfa...@gmail.com wrote:
Byte strings (encoded code points) or native unicode is one
thing.
But on the other side, the problem is elsewhere. These very
talented ascii narrow minded, unicode illiterate devs only
succeded to produce this (I, really, do not wish to be rude).
On 01/08/2014 09:08 AM, wxjmfa...@gmail.com wrote:
> Byte strings (encoded code points) or native unicode is one
> thing.
Byte strings are not necessarily "encoded code points." Most byte
streams I work with are definitely not unicode! They are in fact things
such as BER-encoded ASN.1 data struct
"4. Best visual diff utility for Mac?"
opendiff. I think it's part of xcode.
Regarding Python IDEs, I really like PyCharm. It's written in Java, and
sometimes you can tell that by its performance, but it's very featureful
and has a great debugger, and your 16 GB box should support it nicely.
Am Donnerstag, 9. Januar 2014, 00:26:15 schrieb Chris Angelico:
> On Thu, Jan 9, 2014 at 12:14 AM, Florian Lindner wrote:
> > I've written some tiny script using Python 3 and it used to work perfectly.
> > Then I realized it needs to run on my Debian Stable server too, which
> > offers only Pyth
Hello,
I use argparse from Python 3.3.3 with a custom action that normalizes path
arguments:
http://docs.python.org/3/library/argparse.html#action
def norm_path(*parts):
""" Returns the normalized, absolute, expanded and joined path, assembled
of all parts. """
parts = [ str(p) for p i
For working in a startup environment.
Immediate incorporation.
Please send your CV to tal...@zocko.com
--
https://mail.python.org/mailman/listinfo/python-list
On Jan 8, 2014, at 12:26 PM, Bob Hartwig wrote:
> "4. Best visual diff utility for Mac?"
>
> opendiff. I think it's part of xcode.
>
> Regarding Python IDEs, I really like PyCharm. It's written in Java, and
> sometimes you can tell that by its performance, but it's very featureful and
> has
Florian Lindner wrote:
> I use argparse from Python 3.3.3 with a custom action that normalizes path
arguments:
>
> http://docs.python.org/3/library/argparse.html#action
>
> def norm_path(*parts):
> """ Returns the normalized, absolute, expanded and joined path,
assembled of all parts. """
Dennis Lee Bieber wrote:
> On Mon, 30 Dec 2013 18:38:20 +, Bischoop
> declaimed the following:
>
>>I have a txt file with some words, and need simply program that will
>>print me words containing provided letters.
>>
>>For example:
>>Type the letters:
>> (I type: g,m,o)
>>open the dictionary
Walter Hurry wrote:
> On Mon, 30 Dec 2013 18:38:20 +, Bischoop wrote:
>
>> I have a txt file with some words, and need simply program that will
>> print me words containing provided letters.
>>
>> For example:
>> Type the letters:
>> (I type: g,m,o)
>> open the dictionary.txt
>> check words
On 1/8/2014 4:59 AM, wxjmfa...@gmail.com wrote:
[responding to me]
The FSR acts more as an coding scheme selector
That is what PEP 393 describes and what I and many others have said. The
FSR saves memory by selecting from three choices the most compact coding
scheme for each string.
I ask a
On Jan 8, 2014, at 10:53 AM, Jean-Michel Pichavant
wrote:
>>> -- IMPORTANT NOTICE:
>>>
>>
>> too late you have sent this to a public forum
>
> No pb with that, the python list is the intended recipient :)
>
> I tried to negotiate this with my IT guys, but it looks like it's now
> mandatory
I'm working with ipython's pylab mode, which replaces the builtin sum() with
the one from numpy:
In [105]:
sum
Out[105]:
Is there any way to recover a reference to the builtin sum()?
---
Roy Smith
r...@panix.com
--
https://mail.python.org/mailman/listinfo/python-list
can someone please explain why the following works, in contrast to the second
example?
def decorator(func):
def on_call(*args):
print args
return func(args)
return on_call
class Foo:
@decorator
def bar(self, param1):
print 'inside bar'
f=Foo()
f.bar(4)
On 07/01/2014 13:34, wxjmfa...@gmail.com wrote:
Le dimanche 5 janvier 2014 23:14:07 UTC+1, Terry Reedy a écrit :
Ned : this has already been explained and illustrated.
jmf
This has never been explained and illustrated. Roughly 30 minutes ago
Terry Reedy once again completely shot your argu
On 08/01/2014 19:52, Roy Smith wrote:
I'm working with ipython's pylab mode, which replaces the builtin sum() with
the one from numpy:
In [105]:
sum
Out[105]:
Is there any way to recover a reference to the builtin sum()?
---
Roy Smith
r...@panix.com
Grab it from here I suppose.
>>> hel
In article ,
Roy Smith wrote:
>I'm working with ipython's pylab mode, which replaces the builtin sum() =
>with the one from numpy:
>[...]
>Is there any way to recover a reference to the builtin sum()?
Sigh. I figured this out myself. What you want is __builtins__.sum ...
BUT, not only does py
On 08/01/2014 19:50, David Robinow wrote:
On Jan 8, 2014, at 10:53 AM, Jean-Michel Pichavant
wrote:
-- IMPORTANT NOTICE:
too late you have sent this to a public forum
No pb with that, the python list is the intended recipient :)
I tried to negotiate this with my IT guys, but it looks l
Roy Smith wrote:
> I'm working with ipython's pylab mode, which replaces the builtin sum()
> with the one from numpy:
>
> In [105]:
> sum
>
> Out[105]:
>
>
> Is there any way to recover a reference to the builtin sum()?
>>> from numpy import *
>>> sum
>>> del sum
>>> sum
Doing it more than
On 1/8/2014 9:15 AM, Roy Smith wrote:
As somebody who is still firmly in the 2.x world, I'm worried about the
idea of a 2.x fork. While I have my doubts that 3.x was a good idea,
the fact is, it's here. Having the community fractured between the two
camps is not good. Let's say I'm somebody wh
On 1/8/2014 6:27 AM, ayushpokha...@gmail.com wrote:
On Friday, 23 November 2001 04:13:40 UTC+5:30, MANUEL FERNANDEZ PEREZ wrote:
I do not seem to have the original
I'm looking for an editor for Python. I' m interested it works on Windows.
For a Python editor, as opposed to a general code e
On 1/8/2014 12:47 PM, Terry Reedy wrote:
For a Python editor, as opposed to a general code editor, the Idle
editor works pretty well and has some advantages with respect to
integration with the interpreter.
While true, ISTM in the past there have been 'leakage' related issues
with idle -- are
On 08/01/2014 20:47, Terry Reedy wrote:
On 1/8/2014 6:27 AM, ayushpokha...@gmail.com wrote:
On Friday, 23 November 2001 04:13:40 UTC+5:30, MANUEL FERNANDEZ PEREZ
wrote:
I do not seem to have the original
You mean to say you don't keep 12 year old emails? :)
--
My fellow Pythonistas, ask no
I use Spyder both in Windows as in Linux.
Pretty good programing environment, lots of features, simple enough,
works on both platforms and it's free.
El 08/01/14 08:27, ayushpokha...@gmail.com escribió:
On Friday, 23 November 2001 04:13:40 UTC+5:30, MANUEL FERNANDEZ PEREZ wrote:
Hello,
I'm
I am trying to write a program in python which searches for user specified
words in a txt file and copies the selected lines containing that word into
another file.
Also the user will have an option to exclude any word.
(e.g Suppose the user searches for the word "exception" and want to exclude
Martijn Faassen wrote:
> Hey,
>
> I'm pointing out possible improvements that Python 2.8 could offer that
> would help incremental porting efforts of applications. I'm pointing
> about that helping application developers move forward incrementally may
> be a worthwhile consideration. Like, there'
On Thu, Jan 9, 2014 at 7:15 AM, Roy Smith wrote:
> BUT, not only does pylab overwrite sum(), it overwrites __builtins__
> as well! Instead of a module, it's now a dict. You can still get at
> the builtin sum, but you need to do __builtins__["sum"]
That probably means that it _only_ overrides th
I'm trying to learn about socket, how to create and handle connections in
python.
This is the best I could come up with on my own, please take a look and give me
critique:
Server script:
http://pastebin.com/KtapYfM0
Client script:
http://pastebin.com/t4dYygmX
How to run it:
I open 3 terminals,
In
sagarnild...@gmail.com writes:
> But I don't know how to:
> Include multiple search word and exclude words
> How to denote them by -e and -s. I have seen the argparse and the getopt
> tutorial. But there's no tutorial on this specific topic.
This should help you get started:
import arg
On 08/01/2014 21:51, sagarnild...@gmail.com wrote:
I am trying to write a program in python which searches for user specified
words in a txt file and copies the selected lines containing that word into
another file.
Also the user will have an option to exclude any word.
(e.g Suppose the user
On Friday, November 23, 2001 6:43:40 AM UTC+8, MANUEL FERNANDEZ PEREZ wrote:
> Hello,
> I'm looking for an editor for Python.I' m interested it works on Windows.Can
> anybody help me?
>
> Thank you
>
> Manuel
OK, try the notepad++ at
notepad-plus-plus.org/ or use IDLE
with the pycrust.
--
ht
On 08/01/2014 19:56, axis.of.wea...@gmail.com wrote:
can someone please explain why the following works, in contrast to the second
example?
def decorator(func):
def on_call(*args):
print args
return func(args)
return on_call
class Foo:
@decorator
def bar(s
On 1/8/2014 1:20 PM, Florian Lindner wrote:
I use argparse from Python 3.3.3 with a custom action that normalizes
path arguments:
This works fine when there is actually a --config=path supplied. But
it's not being applied on default arguments.
This behavior is how I interpret the doc.
http:
Chris A wrote:
I'm not sure that there is an "easy way". See, here's the deal. If all
your data is ASCII, you can shut your eyes to the difference between
bytes and text and Python 2 will work perfectly for you. Then some day
you'll get a non-ASCII character come up (or maybe you'll get all of
On Thu, Jan 9, 2014 at 9:27 AM, Paul Pittlerson wrote:
> I'm trying to learn about socket, how to create and handle connections in
> python.
Awesome! I *love* socket networking. (Really. It's awesome. I've
written a couple of MUD servers and quite a few MUD clients.)
> This is the best I could
I'm so sorry for the mess in my post above, I apologize to all, I accidentally
hit return ...
I just meant to say that internet programming using ASCII urls is so common and
important that it hurts that Python 3 makes it so much harder. It sure would be
great if Python 3 could be improved to al
On 1/8/14, 9:30 AM, Mark Lawrence wrote:
But to be serious why not stick with 2.x if there's no compelling reason
to move? Whatever happened to "if it ain't broke, don't fix it"? And
before anyone says anything please don't start on about the bytes versus
string debate, I'm fairly certain that
On 1/8/2014 3:56 PM, Emile van Sebille wrote:
On 1/8/2014 12:47 PM, Terry Reedy wrote:
For a Python editor, as opposed to a general code editor, the Idle
editor works pretty well and has some advantages with respect to
integration with the interpreter.
While true, ISTM in the past there have
On Thu, Jan 9, 2014 at 10:34 AM, wrote:
> I just meant to say that internet programming using ASCII urls is so common
> and important that it hurts that Python 3 makes it so much harder. It sure
> would be great if Python 3 could be improved to allow such programming to be
> done using ASCII u
Nice response Chris. Seriously.
On Wed, Jan 8, 2014 at 3:29 PM, Chris Angelico wrote:
> One extremely critical point about your protocol. TCP is a stream -
> you don't have message boundaries. You can't depend on one send()
> becoming one recv() at the other end. It might happen to work when you
On 08/01/2014 23:34, rdst...@mac.com wrote:
I'm so sorry for the mess in my post above, I apologize to all, I accidentally
hit return ...
I just meant to say that internet programming using ASCII urls is so common and
important that it hurts that Python 3 makes it so much harder. It sure would
On Wed, 8 Jan 2014 13:51:40 -0800 (PST), sagarnild...@gmail.com wrote:
I am trying to write a program in python which searches for user
specified words in a txt file and copies the selected lines
containing that word into another file.
John Gordon has given you a good start on argument parsing
On Wed, 8 Jan 2014 14:52:10 -0500, Roy Smith wrote:
I'm working with ipython's pylab mode, which replaces the builtin
sum() with the one from numpy:
In [105]:
sum
Out[105]:
Is there any way to recover a reference to the builtin sum()?
goodsum=__builtins__.sum
--
DaveA
--
https://ma
On 1/8/2014 3:46 PM, Terry Reedy wrote:
On 1/8/2014 3:56 PM, Emile van Sebille wrote:
On 1/8/2014 12:47 PM, Terry Reedy wrote:
For a Python editor, as opposed to a general code editor, the Idle
editor works pretty well and has some advantages with respect to
integration with the interpreter.
On 1/8/2014 2:56 PM, axis.of.wea...@gmail.com wrote:
can someone please explain why the following works, in contrast to the second
example?
Because function attributes of classes become instance methods, with
special behavior, when accessed via an instance of the class.
def decorator(func)
On Thu, Jan 9, 2014 at 11:13 AM, Dennis Lee Bieber
wrote:
> #generate search re expression representing
> # .* any character/multiple -- leading
> # [l|e|t|t|e|r] match any of the letters supplied
> # .* any character/mu
On Thu, Jan 9, 2014 at 11:19 AM, Emile van Sebille wrote:
> As I recall it had something to do with both idle and the application
> running in the same namespace? So the leakage was from within idle
> affecting the running of the script under development?
>
> Admittedly, it was a while back. But
On Thu, Jan 9, 2014 at 10:53 AM, Dan Stromberg wrote:
>> Using Python 3.4 (which isn't yet
>> stable, but you can download betas) also gives you an asyncio module,
>> but I'd leave that aside for the moment; first figure out threading,
>> it's likely to be easier.
>
> Personally, I don't like asyn
In article ,
Kevin Walzer wrote:
> I haven't updated my Python apps to 3.x because there's nothing in 3.x
> that offers benefits to my users.
I almost found a reason to move to Python 3 today. Then I got smacked.
I had a datetime. I needed a unix timestamp. People need to go back
and fort
I've been browsing for the fun on it and came across "[Python-Dev]
SF:1463370 add .format() method to str and unicode" here
https://mail.python.org/pipermail/python-dev/2006-April/063329.html
I've vague recollections of seeing something along these lines fairly
recently, a PEP I think, can som
On Thu, Jan 9, 2014 at 12:27 PM, Roy Smith wrote:
> Anyway, I discovered that Python 3.3's datetime has a .timestamp()
> method. Yeah. Finally. Exactly what the world had needed for years.
> Then I kept reading and found:
>
> Note: There is no method to obtain the POSIX timestamp directly from
On 1/8/2014 7:19 PM, Emile van Sebille wrote:
On 1/8/2014 3:46 PM, Terry Reedy wrote:
On 1/8/2014 3:56 PM, Emile van Sebille wrote:
On 1/8/2014 12:47 PM, Terry Reedy wrote:
For a Python editor, as opposed to a general code editor, the Idle
editor works pretty well and has some advantages with
On 01/08/2014 05:27 PM, Roy Smith wrote:
In article ,
Kevin Walzer wrote:
I haven't updated my Python apps to 3.x because there's nothing in 3.x
that offers benefits to my users.
I almost found a reason to move to Python 3 today. Then I got smacked.
[snip]
Naive datetimes are what eve
On Thu, Jan 9, 2014 at 12:52 PM, Ethan Furman wrote:
> as soon as you try to mix different timezone datetimes that are naive, you
> have a mess (temporal-bake, anyone?).
Doctor Who gets into cookies?
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
In article ,
Chris Angelico wrote:
> Why not simply use a UTC datetime instead of a naive one?
[Pet peeve of mine: uses of "simple" or "just" to imply that something
is easy, when it's not. "Why not just get the Arabs and the Jews to be
friends?" "Why not simply find a safe way to store nuc
On Thu, Jan 9, 2014 at 1:25 PM, Roy Smith wrote:
> Because it's easy to get a naive one. You call datetime.utcnow(). If
> utcnow() returned an aware datetime, that's probably what we would be
> using. Why didn't utcnow() just return an aware datetime to begin with?
>
> Conversely, it's a pain i
Chris Angelico writes:
> On Thu, Jan 9, 2014 at 1:25 PM, Roy Smith wrote:
> > Because it's easy to get a naive one. You call datetime.utcnow(). If
> > utcnow() returned an aware datetime, that's probably what we would
> > be using. Why didn't utcnow() just return an aware datetime to begin
> > w
In article ,
Chris Angelico wrote:
> On Thu, Jan 9, 2014 at 1:25 PM, Roy Smith wrote:
> > Because it's easy to get a naive one. You call datetime.utcnow(). If
> > utcnow() returned an aware datetime, that's probably what we would be
> > using. Why didn't utcnow() just return an aware datetim
On Thu, Jan 9, 2014 at 2:34 PM, Ben Finney wrote:
> [ a bunch of stuff that I totally agree with ]
No response needed here :)
So I was wrong on the specific example of .today(), but asking the
question the other way is at least helpful. Maybe the best solution is
exactly what Roy already posted,
In article ,
Ben Finney wrote:
> Chris Angelico writes:
>
> > On Thu, Jan 9, 2014 at 1:25 PM, Roy Smith wrote:
> > > Because it's easy to get a naive one. You call datetime.utcnow(). If
> > > utcnow() returned an aware datetime, that's probably what we would
> > > be using. Why didn't utcnow(
On Wed, Jan 8, 2014 at 4:07 PM, Chris Angelico wrote:
> Maybe it's not the best way to do things, but it can be extremely
> simple in the code.
For small projects, the added complexity doesn't bite you. At least, not much.
For large projects, with thousands or millions of callbacks, it can be
v
Chris Angelico writes:
> On Thu, Jan 9, 2014 at 2:34 PM, Ben Finney wrote:
> > With time zones, as with text encodings, there is a single
> > technically elegant solution (for text: Unicode; for time zones:
> > twelve simple, static zones that never change)
>
> Twelve or twenty-four?
Twenty-fou
On Thu, Jan 9, 2014 at 2:35 PM, Roy Smith wrote:
>> Yes, it *is* simple. It *is* easy. I've been working with pure-UTC
>> times (either called time_t, or TIMESTAMP WITH TIME ZONE, or even just
>> float) for decades. Like with so many other things, the easiest
>> solution is also the best, because
On Thu, Jan 9, 2014 at 2:54 PM, Ben Finney wrote:
> I'm approaching it with the goal of knowing better what I'm talking
> about when I advocate scrapping the whole DST system :-)
I would definitely support the scrapping of DST. I'm less sure that we
need exactly 24 timezones around the world, tho
On Thu, Jan 9, 2014 at 2:49 PM, Dan Stromberg wrote:
> The third quote, from Brian Kernighan, seems to underestimate the
> complexity of asynchronous programming in the large - it's probably
> not just twice as hard.
Yeah, which is why I recommended a threaded approach to the OP. It
won't scale t
1 - 100 of 115 matches
Mail list logo