Steve D'Aprano writes:
> On Sat, 4 Feb 2017 10:13 am, Ben Finney wrote:
> > See https://www.python.org/dev/peps/pep-0328/>, in particular
> > https://www.python.org/dev/peps/pep-0328/#guido-s-decision>.
>
> I think you are conflating the package directory and . the current
> working directory.
I
On 04Feb2017 13:59, Steve D'Aprano wrote:
On Sat, 4 Feb 2017 01:13 pm, Cameron Simpson wrote:
1. In your .bashrc file, or equivalent, set the environment
variable PYTHONPATH:
export PYTHONPATH='./;$PYTHONPATH'
You want double quotes (allowing parameter substitution) instead of single
quote
On Sat, 4 Feb 2017 10:13 am, Ben Finney wrote:
> So, for the past ten years and more, Python supports import of modules
> from the current directory with an explicit *relative* path::
>
> # Absolute imports, searching ‘sys.path’.
> import datetime
> from collections import namedtuple
On Sat, 4 Feb 2017 01:13 pm, Cameron Simpson wrote:
>>1. In your .bashrc file, or equivalent, set the environment
>> variable PYTHONPATH:
>>export PYTHONPATH='./;$PYTHONPATH'
>
> You want double quotes (allowing parameter substitution) instead of single
> quotes here. Or, of course, no quotes a
CCed to Neal: could you confirm or refute my suppositions below, or further
clarify? Thanks.
On 04Feb2017 12:46, Steve D'Aprano wrote:
On Sat, 4 Feb 2017 10:13 am, Ben Finney wrote:
Neal Becker writes:
I want to make sure any modules I build in the current directory
overide any others. To d
On 04Feb2017 12:16, Steve D'Aprano wrote:
On Sat, 4 Feb 2017 03:06 am, Neal Becker wrote:
I want to make sure any modules I build in the current directory overide
any
others. To do this, I'd like sys.path to always have './' at the
beginning.
What's the best way to ensure this is always true
On Sat, 4 Feb 2017 10:13 am, Ben Finney wrote:
> Neal Becker writes:
>
>> I want to make sure any modules I build in the current directory
>> overide any others. To do this, I'd like sys.path to always have './'
>> at the beginning.
>
> The ‘sys.path’ list is used only for *absolute* imports. M
On 03Feb2017 17:21, Wildman wrote:
On Sat, 04 Feb 2017 09:25:42 +1100, Cameron Simpson wrote:
Also, what you describe with rc.local wouldn't work anyway, even if it had
ben
what was asked.
Of course, you are correct. I don't know where my head
was. I think my tongue got in front of my eye
On Sat, 4 Feb 2017 03:06 am, Neal Becker wrote:
> I want to make sure any modules I build in the current directory overide
> any
> others. To do this, I'd like sys.path to always have './' at the
> beginning.
>
> What's the best way to ensure this is always true whenever I run python3?
For som
On 04Feb2017 10:13, Ben Finney wrote:
Neal Becker writes:
I want to make sure any modules I build in the current directory
overide any others. To do this, I'd like sys.path to always have './'
at the beginning.
The ‘sys.path’ list is used only for *absolute* imports. Modules in the
current d
On Sat, 04 Feb 2017 09:25:42 +1100, Cameron Simpson wrote:
> On 03Feb2017 14:55, Wildman wrote:
>>On Fri, 03 Feb 2017 13:19:30 -0700, Michael Torrie wrote:
>>
>>> On 02/03/2017 12:07 PM, Wildman via Python-list wrote:
Sorry, I forgot something important. If you use
/etc/rc.local, the e
Neal Becker writes:
> I want to make sure any modules I build in the current directory
> overide any others. To do this, I'd like sys.path to always have './'
> at the beginning.
The ‘sys.path’ list is used only for *absolute* imports. Modules in the
current directory should not be imported with
Hi,
We've just released Wing version 6.0.2 which expands and improves
support for remote development, adds a drop down of found Python
installations, introduces symbol name style refactoring operations,
improves multi-selection with the mouse, fixes debugging Jupyter
notebooks, and makes many
On 03Feb2017 14:55, Wildman wrote:
On Fri, 03 Feb 2017 13:19:30 -0700, Michael Torrie wrote:
On 02/03/2017 12:07 PM, Wildman via Python-list wrote:
Sorry, I forgot something important. If you use
/etc/rc.local, the execute bit must be set.
I don't think this is what Neal Becker was asking
On Fri, 03 Feb 2017 13:19:30 -0700, Michael Torrie wrote:
> On 02/03/2017 12:07 PM, Wildman via Python-list wrote:
>> Sorry, I forgot something important. If you use
>> /etc/rc.local, the execute bit must be set.
>
> I don't think this is what Neal Becker was asking about. He's talking
> about
On 02/03/2017 12:07 PM, Wildman via Python-list wrote:
> Sorry, I forgot something important. If you use
> /etc/rc.local, the execute bit must be set.
I don't think this is what Neal Becker was asking about. He's talking
about the Python module search path (sys.path) not the operating system
PAT
On Fri, 03 Feb 2017 12:58:15 -0600, Wildman wrote:
> On Fri, 03 Feb 2017 11:06:00 -0500, Neal Becker wrote:
>
>> I want to make sure any modules I build in the current directory overide any
>> others. To do this, I'd like sys.path to always have './' at the beginning.
>>
>> What's the best way
On Fri, 03 Feb 2017 11:06:00 -0500, Neal Becker wrote:
> I want to make sure any modules I build in the current directory overide any
> others. To do this, I'd like sys.path to always have './' at the beginning.
>
> What's the best way to ensure this is always true whenever I run python3?
In p
On 03/02/2017 18:15, Tim Chase wrote:
However, despite seeing messages appearing in the online archives,
I'm not receiving anything via email. When I send a "subscribe"
message to mailman, it responds telling me that I'm already
subscribed (and checking the settings on the web interface confirm
Thanks to an abysmal failure of my hosting service (Site5), I was
without email for multiple days, and when it came back up, the SPF
record was pointed at the wrong place. I normally get a steady
stream of comp.lang.python/python-list@ messages at my email address,
so when they/I finally got thing
I want to make sure any modules I build in the current directory overide any
others. To do this, I'd like sys.path to always have './' at the beginning.
What's the best way to ensure this is always true whenever I run python3?
--
https://mail.python.org/mailman/listinfo/python-list
On 2/3/2017 8:10 AM, Antonio wrote:
I have python version 3.6.0 installed into my desktop)windows 7) but the
menu/context (file,edit..etc) is missing.
Run IDLE (there should be a Start menu icon) or install or run another IDE.
--
Terry Jan Reedy
--
https://mail.python.org/mailman/listinfo/p
> On Feb 3, 2017, at 8:10 AM, Antonio wrote:
>
> From: Antonio
> Sent: Friday, February 3, 2017 1:02 PM
> To: python-list@python.org
> Subject: Context
>
> I have python version 3.6.0 installed into my desktop)windows 7) but the
> menu/context (file,edit..etc) i
Can I find those modules in the FreeBSD ports?
--
https://mail.python.org/mailman/listinfo/python-list
On 2/2/17 6:30 PM, Charles Heizer wrote:
Hello,
I'm embedding python in to my Objective-C app and I need to know how do I
convert a PyDictObject (PyObject) to a NSDictionary?
Thanks!
Does the PyObjC library provide any support for this? It allows
integration between the Cocoa API's and Python
From: Antonio
Sent: Friday, February 3, 2017 1:02 PM
To: python-list@python.org
Subject: Context
I have python version 3.6.0 installed into my desktop)windows 7) but the
menu/context (file,edit..etc) is missing.
How to fix this problem?
Thanks
Antonio
Hello guys,
Here i am creating a GUI which will act as a search engine.
When you search for a data in search box it will fetch the results from the
very first page in browser and it is displayed in a Text widget
When the TOP value is 10 it should display only the first 10 results based on
numbers
Dear all,
I have an ASCII file (f1) with 100M lines with columns x,y,z ( new data points)
and then I have a second ASCII file (f2) with 2M lines with columns x,y,z and
VALUE (v10).(known data points). I need to interpolate f1 over f2, that is I
need to have values for v10 for all coordinated
28 matches
Mail list logo