On 7.2.2012 04:24, alex23 wrote:
Experience?
Are you seriously advocating something for which you've done nothing
more than watch a podcast?
No, I am not. If you reread my original post, you may find that I was
asking exactly for experience and explanation why something which seems
to me
Hi All,
I have the following problem, I have an appliance (A) which generates
records and write them into file (X), the appliance is accessible
throw ftp from a server (B). I have another central server (C) that
runs a Django App, that I need to get continuously the records from
file (A).
The
07.02.12 00:06, Matej Cepl написав(ла):
return seq[int(random.random() * len(seq))]
doesn't seem like something so terrible (and maintenance intense). :)
_choice('abc') returns 'a' with probability P('a') =
1501199875790165/4503599627370496 = 1/3 - 1/13510798882111488 and 'b' with
Vinay Sajip wrote:
On Jan 24, 2:52 pm, Rob Richardson rdrichard...@rad-con.com wrote:
I use PythonWin to debug the Python scripts we write. Our scripts often use
the log2pyloggingpackage. When running the scripts inside the debugger, we
seem to get oneloggingobject for every time we run
On 7 feb, 06:07, Roy Smith r...@panix.com wrote:
In article
e84f3af4-da6d-4ae9-8974-54354ec16...@b18g2000vbz.googlegroups.com,
Jean Dupont jeandupont...@gmail.com wrote:
I'd like to read in a stream of data which looks like this:
the device sends out a byte-string of 11 bytes roughly
I'm slightly confused about docstrings and HTML documentation. I used
to think that the library reference was (in part) generated from the
source code, but this does not seem to be the case.
Is there any tool support for keeping documentation and code in sync?
--
Hello experts,
I am having trouble accessing the content of my list.
my list content has 2-pair value with the exception of one which has single
value. here is an example ['a', 1, 'b', 1, 'c', 3, 'd']
I am unable to iterate through list to access invidual value pairs
I get an error message
On Tue, Feb 7, 2012 at 4:11 AM, Florian Weimer f...@deneb.enyo.de wrote:
I'm slightly confused about docstrings and HTML documentation. I used
to think that the library reference was (in part) generated from the
source code, but this does not seem to be the case.
Is there any tool support
On 7.2.2012 14:13, Jean Dupont wrote:
ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1,
rtscts=0, dsrdtr=0, timeout=15)
In Python, if you want to continue the source line into the next text
line, you must end the line to be continued with a backslash '\'.
So you should write:
Antti J Ylikoski wrote:
On 7.2.2012 14:13, Jean Dupont wrote:
ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1,
rtscts=0, dsrdtr=0, timeout=15)
In Python, if you want to continue the source line into the next text
line, you must end the line to be continued with a backslash
Am 07.02.2012 14:48, schrieb Antti J Ylikoski:
On 7.2.2012 14:13, Jean Dupont wrote:
ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1,
rtscts=0, dsrdtr=0, timeout=15)
In Python, if you want to continue the source line into the next text
line, you must end the line to be continued
On 02/07/2012 07:27 AM, Sammy Danso wrote:
Hello experts,
I am having trouble accessing the content of my list.
my list content has 2-pair value with the exception of one which has single
value. here is an example ['a', 1, 'b', 1, 'c', 3, 'd']
I am unable to iterate through list to access
On 7 feb, 15:04, Heiko Wundram modeln...@modelnine.org wrote:
Am 07.02.2012 14:48, schrieb Antti J Ylikoski:
On 7.2.2012 14:13, Jean Dupont wrote:
ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1,
rtscts=0, dsrdtr=0, timeout=15)
In Python, if you want to continue the source
Smart Baba special limited offer. We are the only world lowest-cost,
yet professional and elegant-designing website developing company.
Follow us for further details:
www.websitedeals.com
--
http://mail.python.org/mailman/listinfo/python-list
Am 06.02.2012 09:45, schrieb Matej Cepl:
Also, how could I write a re-implementation of random.choice which would
work same on python 2.6 and python 3.2? It is not only matter of unit
tests, but I would really welcome if the results on both versions
produce the same results.
Two approaches
On Feb 7, 8:46 am, Dave Angel d...@davea.name wrote:
On 02/07/2012 07:27 AM, Sammy Danso wrote: Hello experts,
I am having trouble accessing the content of my list.
my list content has 2-pair value with the exception of one which has single
value. here is an example ['a', 1, 'b', 1, 'c',
On Tue, Feb 7, 2012 at 5:27 AM, Sammy Danso samdans...@yahoo.com wrote:
Hello experts,
I am having trouble accessing the content of my list.
my list content has 2-pair value with the exception of one which has single
value. here is an example ['a', 1, 'b', 1, 'c', 3, 'd']
I am unable to
On 02/07/12 09:34, Rick Johnson wrote:
On Feb 7, 8:46 am, Dave Angeld...@davea.name wrote:
On 02/07/2012 07:27 AM, Sammy Danso wrote: Hello experts,
I am having trouble accessing the content of my list. my
list content has 2-pair value with the exception of one
which has single value. here
On 7.2.2012 16:02, Peter Otten wrote:
Antti J Ylikoski wrote:
On 7.2.2012 14:13, Jean Dupont wrote:
ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1,
rtscts=0, dsrdtr=0, timeout=15)
In Python, if you want to continue the source line into the next text
line, you must end the
Hello. I am admittedly a Python novice, and ran into some trouble
trying to write a program that will pull multiple excel files all into
one file, with each file on a different sheet.
I am confident most of the code is correct, as the program runs
without any errors and I found the base of it
On 02/07/2012 01:14 PM, smac2...@comcast.net wrote:
Hello. I am admittedly a Python novice, and ran into some trouble
trying to write a program that will pull multiple excel files all into
one file, with each file on a different sheet.
I am confident most of the code is correct, as the program
Hello all:
I have a couple questions. First, is there a way to know if connectTCP
failed? I am writing a client with Twisted and would like to be able to
notify the user if they couldn't connect.
Second, I set the protocol on my factory after a connection has been
made. So when I send my user
smac2...@comcast.net wrote:
Hello. I am admittedly a Python novice, and ran into some trouble
trying to write a program that will pull multiple excel files all into
one file, with each file on a different sheet.
I am confident most of the code is correct, as the program runs
without any
Thanks for the responses.
Below is the code I have thus far. while the program runs glitch-free,
it only results in the printing of the message: NOTE *** No xls files
in C:/Documents and Settings/smacdon/. as specified by my code. Any
idea as to why it might be unable to find the .xls documents
On 7 feb, 05:21, Terry Reedy tjre...@udel.edu wrote:
On 2/2/2012 3:57 PM, Jean Dupont wrote:
I'd like to read in the output of a voltcraft vc960 voltmeter
connected to a usb-port.
I found the perl-script below but I'd like to accomplish the same with
python:
The script below is for an
On Feb 7, 1:40 pm, Dave Angel d...@davea.name wrote:
On 02/07/2012 01:14 PM, smac2...@comcast.net wrote: Hello. I am admittedly a
Python novice, and ran into some trouble
trying to write a program that will pull multiple excel files all into
one file, with each file on a different sheet.
In f3f576e8-e608-4348-b6ee-fe775d9d1...@x19g2000yqh.googlegroups.com
smac2...@comcast.net writes:
Am I correct in thinking that I need to change the current working
directory to this folder in order for Python to read in these files,
then generate my output?
You don't have to do it that way,
On Feb 7, 11:44 am, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
[...]
Well, since readline() pretty much by definition wants a line-ending
character before returning, it obviously won't work. (Side comment:
readline() isn't even shown as part of the basic Serial class -- it is
in
In 9bfb3e39-2bc6-4399-90cc-1c53aa062...@h6g2000yqk.googlegroups.com
smac2...@comcast.net writes:
xls_files = glob.glob(in_dir + *.xls)
You may want to put a directory separator character in between the
directory name and the filename glob pattern.
--
John Gordon A is
smac2...@comcast.net wrote:
xls_files = glob.glob(in_dir + *.xls)
Try changing that to
pattern = os.path.join(in_dir, *.xls)
xls_files = glob.glob(pattern)
os.path.join() inserts a (back)slash between directory and filename if
necessary.
merge_xls(in_dir=C:\Documents and
Hi Expert,
Thanks for your responses and help. thought I should provide more information
for clarity.
Please find the error message below for more information
for (key, value) in wordFreq2:
ValueError: need more than 1 value to unpack
this is a sample of my data
['with', 3,
On 02/07/2012 03:23 PM, Sammy Danso wrote:
Please don't top-post. It hopelessly mixes responses out of order.
Hi Expert,
Thanks for your responses and help. thought I should provide more information
for clarity.
Please find the error message below for more information
for (key, value)
On 07/02/2012 20:23, Sammy Danso wrote:
Hi Expert,
Thanks for your responses and help. thought I should provide more
information for clarity.
Please find the error message below for more information
for (key, value) in wordFreq2:
ValueError: need more than 1 value to unpack
this is a
On 02/07/2012 10:13 PM, MRAB wrote:
On 07/02/2012 20:23, Sammy Danso wrote:
Hi Expert,
Thanks for your responses and help. thought I should provide more
information for clarity.
Please find the error message below for more information
for (key, value) in wordFreq2:
ValueError: need more
Thanks for your responses and help. thought I should provide
more information for clarity.
It sounds like you want the grouper function as defined here:
http://docs.python.org/library/itertools.html#recipes
which does what you describe.
-tkc
--
On 7 February 2012 20:23, Sammy Danso samdans...@yahoo.com wrote:
Hi Expert,
Thanks for your responses and help. thought I should provide more information
for clarity.
Please don't top-post.
Please find the error message below for more information
for (key, value) in wordFreq2:
On Wed, Feb 8, 2012 at 8:25 AM, Aaron France
a.france.mailingli...@gmail.com wrote:
for i in range(0, len(x), 2):
print x[i-1], x[i]
I think you want x[i], x[i+1] here, but in any case, this is a fairly
standard non-Python way to do this sort of thing. There's a variety of
more Pythonic ways
On 07/02/2012 21:25, Aaron France wrote:
for i in range(0, len(x), 2):
print x[i-1], x[i]
x = ['with', 3, 'which', 1, 'were', 2, 'well', 1, 'water', 1, 'was', 4,
'two', 1, 'to', 2, 'through', 1, 'thlabour', 1, 'these', 1, 'theat', 1,
'the', 8, 'tetanus', 1, 'started', 1, 'size', 1,
On 02/07/2012 11:09 PM, Mark Lawrence wrote:
On 07/02/2012 21:25, Aaron France wrote:
for i in range(0, len(x), 2):
print x[i-1], x[i]
x = ['with', 3, 'which', 1, 'were', 2, 'well', 1, 'water', 1, 'was', 4,
'two', 1, 'to', 2, 'through', 1, 'thlabour', 1, 'these', 1, 'theat', 1,
'the', 8,
On 7 February 2012 22:57, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
On Tue, 7 Feb 2012 21:37:20 +, Arnaud Delobelle arno...@gmail.com
wrote:
Your list is flat so the unpacking fails. For it to work, you need
your list to be of the form:
wordFreq2 = [('with', 3), ('which', 1),
On 7/02/2012 9:48 PM, Jean-Michel Pichavant wrote:
Vinay Sajip wrote:
On Jan 24, 2:52 pm, Rob Richardson rdrichard...@rad-con.com wrote:
I use PythonWin to debug the Python scripts we write. Our scripts
often use the log2pyloggingpackage. When running the scripts inside
the debugger, we seem
On Feb 4, 11:47 pm, Jean Dupont jeandupont...@gmail.com wrote:
I need to set the following options I found in a Perl-script in Python for
serial communication with a device (a voltmeter):
$port-handshake(none);
$port-rts_active(0);
$port-dtr_active(1);
I have thus far the following
Am 03.02.2012 14:11, schrieb Jean Dupont:
As my request might have been too much asked, I have started doing
some coding myself.
I'm in doubt about the readline statement -which doesn't show anything
received- as the meter sends continuously streams of 11 bytes
Is there a way to just monitor
I'm looking at a way of cycling around a sequence i.e. starting at some
given location in the middle of a sequence and running to the end before
coming back to the beginning and running to the start place. About the
best I could come up with is the following, any better ideas for some
On Feb 8, 2:41 am, Littlefield, Tyler ty...@tysdomain.com wrote:
Hello all:
I have a couple questions. First, is there a way to know if connectTCP
failed? I am writing a client with Twisted and would like to be able to
notify the user if they couldn't connect.
Second, I set the protocol on my
On Feb 8, 2:41 am, Littlefield, Tyler ty...@tysdomain.com wrote:
Hello all:
I have a couple questions. First, is there a way to know if connectTCP
failed? I am writing a client with Twisted and would like to be able to
notify the user if they couldn't connect.
Second, I set the protocol on my
On 2/7/2012 8:10 PM, Mark Lawrence wrote:
I'm looking at a way of cycling around a sequence i.e. starting at some
given location in the middle of a sequence and running to the end before
coming back to the beginning and running to the start place. About the
best I could come up with is the
Hi all,
In a py file, when to use import statements in the header, when to use
import statements in the blocks where they are used?
What are the best practices?
Thanks!
Pat
--
http://mail.python.org/mailman/listinfo/python-list
(Apologies in advance for breaking threading, but the original post in
this thread doesn't appear for me.)
On Tue, Feb 7, 2012 at 5:27 AM, Sammy Danso samdans...@yahoo.com
wrote:
Hello experts,
I am having trouble accessing the content of my list. my list content
has 2-pair value with the
Mark Lawrence schrieb:
I'm looking at a way of cycling around a sequence i.e. starting at some
given location in the middle of a sequence and running to the end before
coming back to the beginning and running to the start place. About the
best I could come up with is the following, any better
On 02/07/2012 08:48 PM, Lei Cheng wrote:
Hi all,
In a py file, when to use import statements in the header, when to use
import statements in the blocks where they are used?
What are the best practices?
Thanks!
Pat
Best practice is to put all the imports at the beginning of the
Dave Angel:
On Wed, Feb 8, 2012 at 10:05 AM, Dave Angel d...@davea.name wrote:
On 02/07/2012 08:48 PM, Lei Cheng wrote:
Hi all,
In a py file, when to use import statements in the header, when to use
import statements in the blocks where they are used?
What are the best practices?
You forgot to include the list in your reply, so I'm forwarding it for
you. One way you could have done it was to reply-all.
On 02/07/2012 09:32 PM, Patto wrote:
Dave Angel:
On Wed, Feb 8, 2012 at 10:05 AM, Dave Angeld...@davea.name wrote:
On 02/07/2012 08:48 PM, Lei Cheng wrote:
Hi
On 07Feb2012 01:33, silentnights silentqu...@gmail.com wrote:
| I have the following problem, I have an appliance (A) which generates
| records and write them into file (X), the appliance is accessible
| throw ftp from a server (B). I have another central server (C) that
| runs a Django App, that
Hey guys, someone asked me to maintain his old website, trouble is,
it's in python, more trouble is it's in turbogears 1. I'm not fluent
in python but all right, I can learn, but this turbogears
thing..
First of all, is it still alive? Looks like turbogears 2 is the most
recent version
In article mailman.5533.1328678241.27778.python-l...@python.org,
anon hung anonh...@gmail.com wrote:
Hey guys, someone asked me to maintain his old website, trouble is,
it's in python, more trouble is it's in turbogears 1. I'm not fluent
in python but all right, I can learn, but this
Thanks all for your replies.
I have now installed MSVC8 and YASM.
I was able to successfully run configure.bat and make.bat (including
make.bat check).
However, I'm unsure what to do about install, since there is no
install arg. Do I copy it across to my VC\bin folder, or does it need
it's own
On Wed, 08 Feb 2012 00:33:55 -0500, Roy Smith wrote:
In article mailman.5533.1328678241.27778.python-l...@python.org,
anon hung anonh...@gmail.com wrote:
Hey guys, someone asked me to maintain his old website, trouble is,
it's in python, more trouble is it's in turbogears 1. I'm not fluent
Hi Fellow Pythoners,
I'm trying to collect table data from an authenticated webpage (Tool) to
which I have access.
I will have the required data after 'click'ing a submit button on the tool
homepage.
When I inspect the submit button i see
form action=/Tool/index.do method=POST
Thus the tool's
Hi Cameron,
Thanks a lot for your help, I just forgot to state that the FTP server is
not under my command, I can't control how the file grow, or how the records
are added, I can only login to It, copy the whole file.
The reason why I am parsing the file and trying to get the diffs between
the
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13742
___
___
Nick Coghlan ncogh...@gmail.com added the comment:
This behaviour came up recently when implementing os.fwalk() [1]. There are
problems with all 3 possible approaches (list as dirs, list as files, don't
list at all) when followlinks is False. Since all alternatives are potentially
surprising,
New submission from Ezio Melotti ezio.melo...@gmail.com:
html.parser fails to handle the following invalid comments:
! foo
! bar --
! -- baz --
The attached patch follows the HTML5 specs [0], and parses them as bogus
comments. Currently the patch fixes the problem only when strict=False, but
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: - ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6210
___
___
Python-bugs-list
anatoly techtonik techto...@gmail.com added the comment:
All right, I've found some time to grep conversation related to COLUMNS/ROWS
environment/shell variable.
+1 for low level system wrapper to get current stdout console size
-1 on COLUMN/ROWS business logic
My user story 001:
I need
STINNER Victor victor.stin...@haypocalc.com added the comment:
+1 for low level system wrapper to get current stdout console size
So use os.get_terminal_size()
-1 on COLUMN/ROWS business logic
So don't use shutil.get_terminal_size(), but it looks like their is a
use case for this feature.
Nick Coghlan ncogh...@gmail.com added the comment:
I started work on integrating this into 3.3 this evening, but ran into too many
issues to finish it.
Problems found and fixed:
- traceback.py displayed the wrong exception (test added and impl fixed)
Additional changes:
- eliminated duplicate
New submission from Brett Cannon br...@python.org:
The new os.replace() function should be used by importlib.
--
components: Library (Lib)
messages: 152810
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: Have importlib use os.replace()
versions: Python 3.3
Dave Malcolm dmalc...@redhat.com added the comment:
On Mon, 2012-02-06 at 23:00 +, Marc-Andre Lemburg wrote:
Marc-Andre Lemburg m...@egenix.com added the comment:
Alex Gaynor wrote:
There's no need to cover any container types, because if their constituent
types are securely hashable
New submission from Ray rpq...@hotmail.com:
I'm opening a new ticket based on ticket 13511
(http://bugs.python.org/issue13511) since the last one was closed. Read
ronaldoussoren's post in Ticket 13511 in case you're still confused.
There is no way to specify multiple lib and include
New submission from Dave Malcolm dmalc...@redhat.com:
I've been waiting for patch review of my work on
http://bugs.python.org/issue13703 only to discover that people *have* been
reviewing it.
It turns out that next to some of the patches in the issue tracker there's a
review link, which
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13963
___
___
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13963
___
___
Changes by Raghuram Devarakonda draghu...@gmail.com:
--
nosy: -draghuram
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6210
___
___
Brett Cannon br...@python.org added the comment:
On Mon, Feb 6, 2012 at 17:06, STINNER Victor rep...@bugs.python.org wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
Is there a benchmark for import? How slow is importlib? :)
importlib.test.benchmark
--
Changes by Hynek Schlawack h...@ox.cx:
--
nosy: +hynek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10287
___
___
Python-bugs-list mailing list
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
hmm, issue 13511 is perfectly closed as invalid.
Ray you misunderstood meaning on configure flags --XXXdir.
You properly found that LDFLAGS is what is required bug correct for headers is
CPPFLAGS .
Is ./configure --help not clear
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 376ce937823c by Victor Stinner in branch 'default':
Issue #13846: Add time.monotonic(), monotonic clock.
http://hg.python.org/cpython/rev/376ce937823c
--
nosy: +python-dev
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13846
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset bee7943d38c6 by Victor Stinner in branch 'default':
Issue #13845: time.time() now uses GetSystemTimeAsFileTime() instead of ftime()
http://hg.python.org/cpython/rev/bee7943d38c6
--
nosy: +python-dev
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13845
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Updated patch (version 11).
--
Added file: http://bugs.python.org/file24445/time_decimal-11.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13882
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file24404/time_decimal-9.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13882
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file24407/time_decimal-10.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13882
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
+ encoding = locale.getpreferredencoding()
It should be locale.getpreferredencoding(False).
Fixed in patch version 3.
--
Added file: http://bugs.python.org/file24446/locale_encoding-3.patch
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file23985/locale_encoding.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13619
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file23987/locale_encoding-2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13619
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Alright, Nick agreed on python-dev to remove the logging hack.
You mean removing complelty debug logging from the threading module? Or just to
simplify the code to decide if we should log or not?
--
STINNER Victor victor.stin...@haypocalc.com added the comment:
The code was fixed in importlib. I don't think that this borderline case should
be documented anywhere, so I close this issue.
--
resolution: - wont fix
status: open - closed
___
Python
STINNER Victor victor.stin...@haypocalc.com added the comment:
bench_startup.py: short script to compute the best startup time (I wrote the
original script for the hash collision issue, #13703). Result on my PC:
- original: 22.2 ms
- importlib: 27.9 ms
So importlib adds an overhead of 25.7%
STINNER Victor victor.stin...@haypocalc.com added the comment:
os.stat().st_birthtime should depend on the timestamp argument.
A timestamp optional argument should also be added to os.wait3() and os.wait4()
for the utime and stime fields of the rusage tuple.
--
Nick Coghlan ncogh...@gmail.com added the comment:
I believe Charles-François was referring to this message:
http://mail.python.org/pipermail/python-dev/2012-January/115372.html
We shouldn't be encumbering threading *all the time* with stuff that might be
useful sometimes. Adding selective
New submission from STINNER Victor victor.stin...@haypocalc.com:
Python 3.3 has 4 new functions to set the access and modification time of a
file (only os.utime() was already present in Python 3.2). New functions taking
timestamp with a nanonsecond resolution use a tuple of int because the
STINNER Victor victor.stin...@haypocalc.com added the comment:
I created the issue #13964 to cleanup the API of os.*utime*() functions.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13882
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13964
___
New submission from Raymond Hettinger raymond.hettin...@gmail.com:
On the downloader page, http://www.python.org/download/releases/2.7.2/ there is
an entry •Windows X86-64 MSI Installer that links to
http://www.python.org/ftp/python/2.7.2/python-2.7.2.amd64.msi
Running this installer succeeds
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset d297f9b10c64 by Victor Stinner in branch 'default':
Issue #13964: Write tests for new os.*utime*() functions
http://hg.python.org/cpython/rev/d297f9b10c64
--
nosy: +python-dev
STINNER Victor victor.stin...@haypocalc.com added the comment:
Current API:
Oh, I forgot:
- futimesat(dirfd, path[, (atime, mtime)])
This API looks fine.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13964
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset c6e9c4d18b36 by Victor Stinner in branch 'default':
Issue #13964: Test also os.futimesat()
http://hg.python.org/cpython/rev/c6e9c4d18b36
--
___
Python tracker
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
I suggest to support the following functions:
futimes(fd, (atime, mtime), flags=0)
utimes(path, (atime, mtime), flags=0)
utimesat(dirfd, path, (atime, mtime), flags=0)
And deprecate other functions already present in
1 - 100 of 110 matches
Mail list logo