On Thu, Apr 16, 2015 at 1:14 AM, Alexander Belopolsky <
alexander.belopol...@gmail.com> wrote:
>
> On Wed, Apr 15, 2015 at 4:46 PM, Akira Li <4kir4...@gmail.com> wrote:
>
>> > Look what happened on July 1, 1990. At 2 AM, the clocks in Ukraine were
>> > mo
Isaac Schwabacher writes:
> On 15-04-15, Akira Li <4kir4...@gmail.com> wrote:
>> Isaac Schwabacher writes:
>> > ...
>> >
>> > I know that you can do datetime.now(tz), and you can do datetime(2013,
>> > 11, 3, 1, 30, tzinfo=zoneinfo('Americ
Alexander Belopolsky writes:
> ...
> For most world locations past discontinuities are fairly well documented
> for at least a century and future changes are published with at least 6
> months lead time.
It is important to note that the different versions of the tz database
may lead to different
Alexander Belopolsky writes:
> Sorry for a truncated message. Please scroll past the quoted portion.
>
> On Thu, Apr 9, 2015 at 10:21 PM, Alexander Belopolsky <
> alexander.belopol...@gmail.com> wrote:
>
>>
>> On Thu, Apr 9, 2015 at 4:51 PM, Isaac Schwabacher
>> wrote:
>>
>>> > > > Well, you ar
Isaac Schwabacher writes:
> ...
>
> I know that you can do datetime.now(tz), and you can do datetime(2013,
> 11, 3, 1, 30, tzinfo=zoneinfo('America/Chicago')), but not being able
> to add a time zone to an existing naive datetime is painful (and
> strptime doesn't even let you pass in a time zone)
Lennart Regebro writes:
> OK, so I realized another thing today, and that is that arithmetic
> doesn't necessarily round trip.
>
> For example, 2002-10-27 01:00 US/Eastern comes both in DST and STD.
>
> But 2002-10-27 01:00 US/Eastern STD minus two days is 2002-10-25 01:00
> US/Eastern DST
"two
Alexander Belopolsky writes:
> On Wed, Apr 8, 2015 at 3:57 PM, Isaac Schwabacher
> wrote:
>>
>> On 15-04-08, Alexander Belopolsky wrote:
>> > With datetime, we also have a problem that POSIX APIs don't have to
> deal with: local time
>> > arithmetics. What is t + timedelta(1) when t falls on the
ould
use bookmarks with hg
http://lostechies.com/jimmybogard/2010/06/03/translating-my-git-workflow-with-local-branches-to-mercurial/
http://stevelosh.com/blog/2009/08/a-guide-to-branching-in-mercurial/#branching-with-bookmarks
http://mercurial.selenic.com/wiki/BookmarksExtensi
n!”')
>>> h.encode('utf-8')
'=?utf-8?q?Subject=3A_=E2=80=9CNOBODY_expects_the_Spanish_Inquisition!?=\n
=?utf-8?q?=E2=80=9D?='
>>> h.encode()
'=?utf-8?q?Subject=3A_=E2=80=9CNOBODY_expects_the_Spanish_Inquisition!?=\n
=?utf-8?q?=E2=80=9D?='
e) #XXX unnecessary function
And (nested() can be implemented using ExitStack):
with nested(open(..),
open(..)) as (input_file, output_file):
... #XXX less readable
Here's an example where nested() won't help:
def get_integers(filename):
with (open(file
ports_dir_fd)).
Victor Stinner suggested [1] to allow scandir(fd) but I don't see it
being mentioned in the pep 471 [2]: it neither supports nor rejects the
idea.
[1] https://mail.python.org/pipermail/python-dev/2014-July/135283.html
[2] http:
27;), name)
There were issues in the past due to {get,has}attr silencing
non-AttributeError exceptions; therefore it is good that pickle breaks
when it gets RuntimeError instead of AttributeError.
--
Akira
___
Python-Dev mailing list
Python-Dev@pytho
ck the test suite again.
FYI, /bin/sh is not POSIX, see
http://bugs.python.org/issue16353#msg224514
--
Akira
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
n the discussion (maybe for a
reason). It might provide build-time information e.g.,
built_for_android = 'android' in sysconfig.get_config_var('MULTIARCH')
assuming the complete value is something like 'arm-linux-android'. It
says that the python binary is built f
en.wikipedia.org/wiki/Android_(operating_system)
btw, does it help adding os.get_shell_executable() [5] function, to
avoid hacking subprocess module, so that os.confstr('CS_PATH') or
os.defpath on Android could be defined to include /system/bin instead?
[5] http://bugs.python.org/issue16353
--
Akira
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
alk() in terms of it. Would
scandir() provide the same performance benefits as for os.walk()?
entry.stat() can be implemented without entry.path when entry._directory
(or whatever other DirEntry's attribute that stores the first parameter
to os.scandir(fd)) is an open file descriptor that refers to a directo
a directory.
[3] https://docs.python.org/3.4/library/os.html#os.listdir
[4] http://hg.python.org/cpython/file/3.4/Modules/posixmodule.c#l3736
--
Akira
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-d
sistent with coreutils commands such as `cp` that follows symlinks
for non-recursive actions but e.g., `du` utility that is inherently
recursive doesn't follow symlinks by default.
follow_symlinks=True as default for DirEntry.is_dir method allows to
avoid easy-to-introduce bugs while replacing old
python.org/issue21873
but it was closed as "not a bug" despite the corresponding behavior is
*not documented* anywhere.
--
Akira
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
ated
using::
entries = sorted(filter(sel, os.scandir(path)),
key=cmp_to_key(compar))
so that the above code snippet could be provided in the docs. We may
say that os.scandir is a pythonic analog of the POSIX function and
therefore there is no conflict even if os.scandir doesn
pports_dir_fd are different sets.
See also,
https://mail.python.org/pipermail/python-dev/2014-June/135265.html
--
Akira
P.S. Please, don't put your answer on top of the message you are
replying to.
>
> On Tue, Jul 1, 2014 at 3:44 AM, Victor Stinner
> wrote:
>> Hi,
>>
>
Chris Angelico writes:
> On Sat, Jun 28, 2014 at 11:05 PM, Akira Li <4kir4...@gmail.com> wrote:
>> Have you considered adding support for paths relative to directory
>> descriptors [1] via keyword only dir_fd=None parameter if it may lead to
>> more efficient implem
scandir(path='.') -> generator of DirEntry objects
>
Have you considered adding support for paths relative to directory
descriptors [1] via keyword only dir_fd=None parameter if it may lead to
more efficient implementations on some platforms?
[1]
llows Microsoft C/C++ startup
code rules [3] e.g., `^` is not special unlike in cmd.exe case).
[1]:
http://blogs.msdn.com/b/twistylittlepassagesallalike/archive/2011/04/23/everyone-quotes-arguments-the-wrong-way.aspx
[2]:
https://docs.python.org/3.4/library/subprocess.html#converting-an-argument-s
;hidden" C thread for the Tk loop.
Does it mean that non-thread-safe tests can't be run using a GUI test
runner that is implemented using tkinter?
--
akira
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/list
at is known
to be non-thread-safe. Is it acceptable for new tests?
--
akira
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%4
I didn't know distutils has its own list.
Forwarding.
-- Forwarded message --
From: Akira Kitada
Date: Thu, Nov 27, 2008 at 2:28 AM
Subject: distutils doesn't use some compiler options when building
To: python-dev@python.org
Hi,
I encountered a weird problem using
Hi,
I encountered a weird problem using distutils.
Generally, distutils try to use the same compiler options used for
building Python interpreter,
but it looks like some of them are omitted sometimes.
- CPPFLAGS are not retrieved from the config and only ones in env are used.
- OPT is retrieved f
28 matches
Mail list logo