Hi,
Happy new year! :)
New year, new release: Nanpy 0.7 is out with some changes:
- Now we use the official version of edam's Arduino makefile
(http://ed.am/dev/make/arduino-mk)
- Added support to the CapacitiveSensor library
Terry Reedy wrote:
[a-z_][a-z0-9_]{2,30}$) - so I suppose it wants this name to end with an
underscore ?
No, it allows underscores. As I read that re, 'rx', etc, do match. They
No, it's one leading letter or underscore [a-z_] plus at least two letters,
underscores or digits [a-z0-9_]{2,30}
Does 'from __future__ import barry_as_FLUFL' do anything? Despite PEP
401, using print as a statement still raises a SyntaxError.
Where is 'from __future__ import braces' implemented in CPython (it's
not in __future__.py)?
--
CPython 3.3.0 | Windows NT 6.2.9200.16461
--
On Thursday, 3 January 2013 15:13:44 UTC+5:30, Ramchandra Apte wrote:
On Thursday, 3 January 2013 14:57:42 UTC+5:30, Andrew Berg wrote:
Does 'from __future__ import barry_as_FLUFL' do anything? Despite PEP
401, using print as a statement still raises a SyntaxError.
Where
On Thursday, 3 January 2013 14:57:42 UTC+5:30, Andrew Berg wrote:
Does 'from __future__ import barry_as_FLUFL' do anything? Despite PEP
401, using print as a statement still raises a SyntaxError.
Where is 'from __future__ import braces' implemented in CPython (it's
not in
Wayne Werner wa...@waynewerner.com wrote:
Yep. That's how I feel. I had used ViEmu in Visual Studio for coding in .NET at
work - but I found that the buffers macros were more powerful. So now I do
most of my programming in Vim, and only head to VS if I need autocomplete or
some of it's
On Thu, Jan 3, 2013 at 2:27 AM, Andrew Berg bahamutzero8...@gmail.com wrote:
Does 'from __future__ import barry_as_FLUFL' do anything? Despite PEP
401, using print as a statement still raises a SyntaxError.
I think it only replaces the != operator with .
Where is 'from __future__ import
On Thu, 03 Jan 2013 03:27:42 -0600, Andrew Berg wrote:
Does 'from __future__ import barry_as_FLUFL' do anything?
Yes, it re-enables and disables != as not equal:
py sys.version
'3.3.0rc3 (default, Sep 27 2012, 18:44:58) \n[GCC 4.1.2 20080704 (Red Hat
4.1.2-52)]'
py 1 2
File stdin, line 1
On 01/03/2013 03:55 AM, Ian Kelly wrote:
On Wed, Jan 2, 2013 at 7:24 PM, someone newsbo...@gmail.com wrote:
3) self.rx / rself.ry / self.rz: Invalid name rx (should match
[a-z_][a-z0-9_]{2,30}$) - so I suppose it wants this name to end with an
underscore ?
It wants the name to be at least 3
On 01/03/2013 10:00 AM, Peter Otten wrote:
Terry Reedy wrote:
[a-z_][a-z0-9_]{2,30}$) - so I suppose it wants this name to end with an
underscore ?
No, it allows underscores. As I read that re, 'rx', etc, do match. They
No, it's one leading letter or underscore [a-z_] plus at least two
On Thu, Jan 3, 2013 at 10:19 PM, someone newsbo...@gmail.com wrote:
Doesn't this [ ... ] mean something optional?
What does {2,30}$ mean?
I think $ means that the {2,30} is something in the end of the sentence...
You can find regular expression primers all over the internet, but to
answer
someone wrote:
On 01/03/2013 10:00 AM, Peter Otten wrote:
Terry Reedy wrote:
[a-z_][a-z0-9_]{2,30}$) - so I suppose it wants this name to end with
[an
underscore ?
No, it allows underscores. As I read that re, 'rx', etc, do match. They
No, it's one leading letter or underscore [a-z_]
On Tuesday, 27 November 2012 15:00:29 UTC+5:30, Avrajit Chatterjee wrote:
I have multiple list and want to invoke a single prinout which will give a
print preview of all list in Grid format in a different pages. I have tried
wx.lib.printout.PrintTable but it takes only one table at a time.
This is exactly what you want:
https://cliff.readthedocs.org/en/latest/
Bob/Julius Flywheel
On Wednesday, December 21, 2005 11:34:38 PM UTC+11, planetthoughtful wrote:
Hello All,
Newbie to Python, and I'm wondering if it's possible to create a Python
console app that prompts for further
Mitya Sirenef wrote:
So, how many instances do you want to make.. what kind of different
functionality / properties they will have?
- mitya
I am porting a modeling system I created using POV-Ray scene description
language available at sourceforge at
On Wed, 02 Jan 2013 23:32:33 -0500
Kene Meniru kene.men...@illom.org wrote:
This sounds so simple but being new to python I am finding it hard to
get started. I want to create a module which I will call B. There
will be other modules called C, D, etc, which will most likely be
imported in B.
---
Release of PyGreSQL version 4.1
---
It has been a long time coming but PyGreSQL v4.1 has been released.
It is available at: http://pygresql.org/files/PyGreSQL-4.1.tgz.
If you are running NetBSD, look in the packages directory under
D'Arcy J.M. Cain wrote:
OK, global variables is the clue that you need to rethink this. Try
to stay away from global variables as much as possible except for maybe
some simple setup variables within the same file. Consider something
like this instead.
The global variable is not part of
On 13-01-02 08:53 PM, someone wrote:
On 01/02/2013 10:57 PM, Michael Torrie wrote:
On 01/01/2013 04:49 PM, someone wrote:
On 01/01/2013 12:13 PM, Chris Angelico wrote:
You could simply
import OpenGL.GL as GL
You're right - but I forgot to write that even though this maybe
should/is
On 13-01-02 09:48 PM, Terry Reedy wrote:
...
2) self.lightDone: Invalid name lightDone (should match
[a-z_][a-z0-9_]{2,30}$)
So I can now understand that pylint doesn't like my naming convention
with a capital letter in the middle of the variable name, like:
lightDone = a boolean value. I
(original post from planetthoughtful didn't seem to arrive here, so
replying to Bob's reply)
Newbie to Python, and I'm wondering if it's possible to create a
Python console app that prompts for further input on the command
line when run (in Windows XP, if that's important)?
While Bob's
On Thu, 03 Jan 2013 09:06:55 -0500
Kene Meniru kene.men...@illom.org wrote:
OK, global variables is the clue that you need to rethink this.
Try to stay away from global variables as much as possible except
for maybe some simple setup variables within the same file.
Consider something like
On 01/03/2013 09:24 AM, Tim Chase wrote:
(original post from planetthoughtful didn't seem to arrive here, so
replying to Bob's reply)
Newbie to Python, and I'm wondering if it's possible to create a
Python console app that prompts for further input on the command
line when run (in Windows
For those building python from source what are some tests you do to make
sure the compilation and installation is up to standard. For instance here
are some thing I do:
Tk functionality
sqlite module
Python is compiled with shared object (important for wsgi)
Proper preloading of python libraries
Run the unittests. the test___all___.py test runner can be found under
your python installation directory's lib/python-X.X/test/.
*Matt Jones*
On Thu, Jan 3, 2013 at 8:43 AM, Rita rmorgan...@gmail.com wrote:
For those building python from source what are some tests you do to make
sure the
D'Arcy J.M. Cain wrote:
As I mentioned, the file A can be considered a scene file. I do not
I don't know what a scene file is.
A scene file is applicable to programs like POV-Ray at www.povray.org. It is
a file that is used to describe 3D objects such as box, sphere, polygon,
etc. My
On Thu, 03 Jan 2013 09:04:16 -0500, D'Arcy J.M. Cain wrote:
---
Release of PyGreSQL version 4.1 ---
It has been a long time coming but PyGreSQL v4.1 has been released.
It is available at: http://pygresql.org/files/PyGreSQL-4.1.tgz.
I'm working on a quite complex web app that uses django and bottle
(bottle for the API which is also restful).
Before I came they started to use a staging server to be able to try out
things properly before they get published, but now we would like to have
the possibility to see multiple
On 1/3/2013 9:19 AM, Mike C. Fletcher wrote:
On 13-01-02 09:48 PM, Terry Reedy wrote:
...
2) self.lightDone: Invalid name lightDone (should match
[a-z_][a-z0-9_]{2,30}$)
So I can now understand that pylint doesn't like my naming convention
with a capital letter in the middle of the variable
On Thu, 03 Jan 2013 09:59:04 -0500
Kene Meniru kene.men...@illom.org wrote:
Yes, I guess that is the main thing. I do not want users to have to
write python code unless they are interested in customizing how the
That works too. It's just that you had users writing Python code but
assumed that
D'Arcy J.M. Cain wrote:
That works too. It's just that you had users writing Python code but
assumed that a three line subclass was beyond them. Not requiring them
to write any Python code is a better option than the first one (global
variables) that you proposed. That's all I am trying to
On Thu, 3 Jan 2013 15:06:29 + (UTC)
Walter Hurry walterhu...@lavabit.com wrote:
Sounds good. Thanks for your efforts.
I wasn't alone but I accept your thanks on behalf of the team.
Does it offer advantages oiver Psycopg2?
Well, it has two interfaces, the DB-API 2.0 and the Classic one.
On 01/03/2013 07:53 AM, Kene Meniru wrote:
Mitya Sirenef wrote:
So, how many instances do you want to make.. what kind of different
functionality / properties they will have?
- mitya
I am porting a modeling system I created using POV-Ray scene description
language available at
On 01/03/13 08:41, Dave Angel wrote:
The two replies in 2005 mentioned both raw_input and the cmd module (in
case that's what he was implying). They were posted within 90 minutes
of the original.
Ah. 2005 would explain why my newsreader has purged them as ancient
history :) Thanks for the
Hello List:
I seem to be missing something obvious in terms of using proxies with the
requests module.
I'm using requests 1.4 and Python 2.7. Have tried this on Centos 6 and Windows
XP.
Here's the sample code, right out of the manual:
import requests
proxies = {
'https':
Mitya Sirenef wrote:
I'm not familiar with POV-Ray. I want to note that with python standard
style, class names look like this: ClassName, instances look like this:
instance_name; it sounds like you want LMark to be an instance? Or you
want instances in A to use class naming style?
Think
---
Release of PyGreSQL version 4.1
---
It has been a long time coming but PyGreSQL v4.1 has been released.
It is available at: http://pygresql.org/files/PyGreSQL-4.1.tgz.
If you are running NetBSD, look in the packages directory
Dear Group,
If I take a list like the following:
fruits = ['banana', 'apple', 'mango']
for fruit in fruits:
print 'Current fruit :', fruit
Now,
if I want variables like var1,var2,var3 be assigned to them, we may take,
var1=banana,
var2=apple,
var3=mango
but can we do something to
On 2013-01-03 20:04, subhabangal...@gmail.com wrote:
Dear Group,
If I take a list like the following:
fruits = ['banana', 'apple', 'mango']
for fruit in fruits:
print 'Current fruit :', fruit
Now,
if I want variables like var1,var2,var3 be assigned to them, we may take,
var1=banana,
subhabangal...@gmail.com wrote:
Dear Group,
If I take a list like the following:
fruits = ['banana', 'apple', 'mango']
for fruit in fruits:
print 'Current fruit :', fruit
Now,
if I want variables like var1,var2,var3 be assigned to them, we may take,
var1=banana,
var2=apple,
Yeah, this seems like a bad idea. What exactly are you trying to do here?
Maybe using a dictionary is what you want?
d = {
'first' : 'banana',
'second' : 'apple',
'third' : 'mango'
}
for key, value in d.items():
print key, value
However I'm still not sure why you'd want to
On Thu, 03 Jan 2013 13:07:40 -0500, D'Arcy J.M. Cain wrote:
On Thu, 3 Jan 2013 15:06:29 + (UTC)
Walter Hurry walterhu...@lavabit.com wrote:
Sounds good. Thanks for your efforts.
I wasn't alone but I accept your thanks on behalf of the team.
Does it offer advantages oiver Psycopg2?
0
Hi,
I've just uploaded pypiserver 1.0.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
On 01/03/2013 02:30 PM, Kene Meniru wrote:
Mitya Sirenef wrote:
I'm not familiar with POV-Ray. I want to note that with python standard
style, class names look like this: ClassName, instances look like this:
instance_name; it sounds like you want LMark to be an instance? Or you
want
The shipped python library code does not work.
See http://bugs.python.org/issue7291 for patches.
Barry
On 3 Jan 2013, at 18:53, Ray Cote rgac...@appropriatesolutions.com wrote:
Hello List:
I seem to be missing something obvious in terms of using proxies with the
requests module.
I'm
I'm interested to know why you're trying this as well. Is this something that
would be helped by creating a class and then dynamically creating instances of
that class? Something like...
class Fruit:
def __init__(self, name):
self.name = name
for fruit in ['banana', 'apple',
I've written a small assembler in Python 2.[67], and it needs to
evaluate integer-valued arithmetic expressions in the context of a
symbol table that defines integer values for a set of names. The
right thing is probably an expression parser/evaluator using ast,
but it looked like that would
Mitya Sirenef wrote:
Ok but if the user creates two sites, how does he then manipulate them,
if you are not binding instances in A? (e.g. you are not doing site1 =
Site(New Site)).
If the user only ever needs one site, that's fine.
-m
There can only be one site for each
Mitya Sirenef wrote:
Ok but if the user creates two sites, how does he then manipulate them,
if you are not binding instances in A? (e.g. you are not doing site1 =
Site(New Site)).
If the user only ever needs one site, that's fine.
-m
In case of situations where the user needs to
On 2 Jan 2013, at 08:01, Victor Hooi victorh...@gmail.com wrote:
Hi,
I'm using pysvn to checkout a specific revision based on date - pysvn will
only accept a date in terms of seconds since the epoch.
I'm attempting to use time.mktime() to convert a date (e.g. 2012-02-01) to
seconds
On 01/03/2013 07:08 PM, Kene Meniru wrote:
LinearSide.put(Dining, (x,y,z)) # moves 'Dining' to x,y,z location
The put function of the LinearSide boundary class finds Dining (which is
an entity class called LinearSideData) in the dictionary and then allows
this LinearSideData class to calculate
Mitya Sirenef wrote:
That's what I thought, just wanted to confirm.
However, if your objective to make it as easy for the user as possible,
is it not easier to bind dining to a name and then do this?:
dining.move(x, y, z)
Absolutely. I just found that out after replying to your
On Jan 4, 6:04 am, subhabangal...@gmail.com wrote:
but can we do something to assign the variables dynamically I was thinking
of
var_series=['var1','var2','var3']
for var in var_series:
for fruit in fruits:
print var,fruits
Before trying to do this, write the next bit of code where
On 01/03/2013 07:43 PM, Kene Meniru wrote:
Mitya Sirenef wrote:
That's what I thought, just wanted to confirm.
However, if your objective to make it as easy for the user as possible,
is it not easier to bind dining to a name and then do this?:
dining.move(x, y, z)
Absolutely. I just found
On 01/03/13 17:25, Grant Edwards wrote:
def lessDangerousEval(expr):
global symbolTable
if 'import' in expr:
raise ParseError(operand expressions are not allowed to contain the string
'import')
globals = {'__builtins__': None}
locals = symbolTable
return
Thank you.
--Ray
- Original Message -
From: Barry Scott ba...@barrys-emacs.org
To: Ray Cote rgac...@appropriatesolutions.com
Cc: python-list@python.org
Sent: Thursday, January 3, 2013 5:48:52 PM
Subject: Re: Missing something obvious with python-requests
The shipped python library code
On 2013-01-04, Tim Chase python.l...@tim.thechases.com wrote:
On 01/03/13 17:25, Grant Edwards wrote:
def lessDangerousEval(expr):
global symbolTable
if 'import' in expr:
raise ParseError(operand expressions are not allowed to contain
the string 'import')
globals =
On Fri, Jan 4, 2013 at 5:53 AM, Ray Cote
rgac...@appropriatesolutions.com wrote:
proxies = {
'https': '192.168.24.25:8443',
'http': '192.168.24.25:8443', }
a = requests.get('http://google.com/', proxies=proxies)
When I look at the proxy log, I see a GET being performed -- when it
On Thu, 03 Jan 2013 12:04:03 -0800, subhabangalore wrote:
Dear Group,
If I take a list like the following:
fruits = ['banana', 'apple', 'mango']
for fruit in fruits:
print 'Current fruit :', fruit
Now,
if I want variables like var1,var2,var3 be assigned to them, we may
take,
On Thu, 03 Jan 2013 23:25:51 +, Grant Edwards wrote:
I've written a small assembler in Python 2.[67], and it needs to
evaluate integer-valued arithmetic expressions in the context of a
symbol table that defines integer values for a set of names. The
right thing is probably an expression
On Thu, Jan 3, 2013 at 3:25 PM, Grant Edwards invalid@invalid.invalid wrote:
I've written a small assembler in Python 2.[67], and it needs to
evaluate integer-valued arithmetic expressions in the context of a
symbol table that defines integer values for a set of names. The
right thing is
Georg Brandl added the comment:
It's still a valid bug.
--
nosy: +georg.brandl
resolution: fixed -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8952
___
Марк Коренберг added the comment:
Yes, re-writing windows IO to direct API, without intemediate layer is still
needed.
Please don't close bug. Maybe someone will implement this.
--
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
The attached patch adds a couple of section about the single and multiple
clones approaches. The patch is still incomplete, because the rest of the page
should be adapted to the new content (in particular the old sections should be
removed, and the whole
Roundup Robot added the comment:
New changeset 944e86223d1f by Christian Heimes in branch '3.3':
Issue #16847: Fixed improper use of _PyUnicode_CheckConsistency() in
http://hg.python.org/cpython/rev/944e86223d1f
New changeset 4b42d7f288c5 by Christian Heimes in branch 'default':
Issue #16847:
Changes by Christian Heimes li...@cheimes.de:
--
assignee: christian.heimes -
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16847
Ronald Oussoren added the comment:
That's quick, thank :-).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16847
___
___
Python-bugs-list
Chris Jerdonek added the comment:
Content-wise the patch looks pretty good. I agree with the recommendations. A
couple suggestions though: I would break up the 20 lines of command-line
commands. Right now that chunk is a bit too long to grasp meaningfully. My
suggestion would be to break
Ezio Melotti added the comment:
I would break up the 20 lines of command-line commands.
I would have to find a compromise for this, because on one hand it's convenient
to have all the commands in a single place (so it's easy to get an overview),
but on the other hand that block includes
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +Windows
nosy: +ezio.melotti
stage: - needs patch
type: - enhancement
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12939
Serhiy Storchaka added the comment:
You can accept the patch. You can reject the patch. It doesn't matter.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8821
___
Serhiy Storchaka added the comment:
Sorry, I mixed up the issues. For this issue I have not a patch yet. I wait for
some suggestions and decisions first.
See also related issue16638.
--
stage: patch review - needs patch
___
Python tracker
Serhiy Storchaka added the comment:
A subclass with a custom representation, as I suggested above, is even
simpler and involves no change to inspect or docstring conventions.
Agree, but this is a particular and cumbersome solution.
I open new issue16842 for docstring conventions.
--
Serhiy Storchaka added the comment:
See also test_functools, test_xml_etree, test_bisect, test_bz2, test_warnings,
test_decimal, test_datetime, json_tests, test_io, test_concurrent_futures, and
many, many other undiscoverable tests.
--
stage: committed/rejected - patch review
Samuel John added the comment:
Hello from Homebrew (Mac)!
Indeed we also patch setup.py (but right now only for python2.7) and
uncommented the detect_tkinter_darwin related lines to support linking
against a Tkinter build with homebrew (optionally with X11 support).
(Our patch:
Serhiy Storchaka added the comment:
Well, I take care of this. I have the own patch for raw_unicode_escape()
optimization, but microbenchmarks don't show any speed up. Maybe your approach
will be better.
--
___
Python tracker rep...@bugs.python.org
Vinay Sajip added the comment:
You are apparently not using the logging in stdlib, but the older, standalone
logging package intended to be used in versions of Python older than 2.3 - note
the presence of site-packages/logging-0.4.9.6-py2.6.egg in the traceback.
If you are using Python 2.6,
New submission from Samuel John:
Some tools use `python-config --ldflags` to get the flags in order to link
against the Python lib on OS X (for example gst-python from pygtk (2.x).
For framework builds, `python-config --ldflags` returns (among few other):
-u _PyMac_Error
Ronald Oussoren added the comment:
Using '-framework Python' is suboptimal because this doesn't control which
framework is used for linking (in particular, if you have both Python 2.7 and
3.3 installed '-framework Python' will link against the one installed last).
For Python 3.3 I get:
$
R. David Murray added the comment:
The FAQ (as in, this question gets asked again and again) is something like
why do the lambdas I define in a loop all return the same result when the
input value was different when each one was defined?
The same applies to regular functions, but people
New submission from Franck Michea:
Documentation:
-
http://docs.python.org/3.3/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.get
-
http://docs.python.org/3.3/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.iter
These two functions are documented with
R. David Murray added the comment:
Could you give more information about what you see as the bug, here? I'm not
understanding the problem because there doesn't appear to be enough context.
What is your directory structure? Where is the import happening?
--
components: +Interpreter
Serhiy Storchaka added the comment:
Shouldn't this be applied to 3.3?
As for optimization, I made some benchmarks and didn't saw any significant
difference. Usually this function used to check short ASCII heads and tails and
any optimization will not be seen even under a microscope.
Richard Oudkerk added the comment:
Note that on Windows there is an O_NOINHERIT flag which almost corresponds to
O_CLOEXEC on Linux.
I don't think there is a need to use the win32 api.
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
Richard Oudkerk added the comment:
A while ago I did write a PipeIO class which subclasses io.RawIOBase and works
for overlapped pipe handles. (It was intended for multiprocessing and doing
asynchronous IO with subprocess.)
As it is it would not work with normal files because when you do
STINNER Victor added the comment:
Shouldn't this be applied to 3.3?
It's just a cleanup, it doesn't fix any real bug. I prefer to not
pollute old versions with cleanup.
As for optimization, I made some benchmarks and didn't saw any significant
difference. Usually this function used to
Georg Brandl added the comment:
David, the issue is that Python only allows relative imports within packages.
The OP wants to have a.py and b.py in the same directory and then be able to
said from . import b in the a module.
This is a design decision and will not change without a PEP.
Eli Bendersky added the comment:
On Tue, Jan 1, 2013 at 2:56 PM, Daniel Shahaf rep...@bugs.python.orgwrote:
Daniel Shahaf added the comment:
Eli Bendersky wrote on Tue, Jan 01, 2013 at 15:54:00 +:
Why did you change the class name, by the way, I don't think it's
a valid change at
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: -haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8952
___
___
Python-bugs-list
Zachary Ware added the comment:
Here's version 2 of the genericpath patch.
Should I try to fix everything in one patch, or one patch per test module (or
group of test modules like test_(generic|mac|nt|posix)path.py)? And if
separate, should each one get its own issue, or just keep them all
Zachary Ware added the comment:
Thanks for the review, new patch attached.
You're quite welcome. Is there anything I've missed in the process of
reviewing itself? This is the first time I've reviewed a patch here...
I did miss another nit in the prose, though; the tests methods in the
New submission from STINNER Victor:
Recent version on different operating systems support opening a file with
close-on-exec flag set immediatly (atomic). This feature fixes a race condition
when the process calls execv() between open() and fcntl() (to set the
FD_CLOEXEC flag to the newly
Changes by Zachary Ware zachary.w...@gmail.com:
Removed file: http://bugs.python.org/file27829/sqlite3_cleanup_2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15067
___
Changes by Zachary Ware zachary.w...@gmail.com:
Removed file: http://bugs.python.org/file27830/sqlite3_cleanup_3.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15067
___
STINNER Victor added the comment:
Note that on Windows there is an O_NOINHERIT flag which
almost corresponds to O_CLOEXEC on Linux.
I don't think there is a need to use the win32 api.
Ah yes. Because this issue is closed, I created the issue #16850 which is more
specific to open +
Samuel John added the comment:
Agreed. My patch, I did for Homebrew is to use the full path like so:
PYTHONFRAMEWORKDIR= full/path/to/Frameworks/Python.framework
instead of just `Python.framework`.
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
The problem is the find a portable and safe way to expose the feature
A solution is to add a e mode to open() which would raise a
NotImplementedError if the platform is not known to support this feature. For
example, if the OS is linux, we would check if the
Christian Heimes added the comment:
You could do both: use the O_CLOEXEC flag and do a fcntl() call on POSIX. In my
opinion it's enough to document that the x flag may be affected by a race
condition issue on some operation systems.
--
nosy: +christian.heimes
STINNER Victor added the comment:
x Open the file exclusively (like the O_EXCL flag of open(2)).
If the file already exists, fopen() fails, and sets errno to EEXIST.
This flag is ignored for fdopen().
Python 3.3 adds support for this mode: see issue #12760.
e (since glibc 2.7)
Ralf Schmitt added the comment:
Would you want to provide a patch for this?
No, sorry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16836
___
1 - 100 of 175 matches
Mail list logo