On Mar 13, 6:50 pm, Terry Reedy wrote:
> On 3/13/2011 7:27 PM, bukzor wrote:
>
>
>
>
>
>
>
>
>
> > I think this touches on my core problem. It's dead simple (and
> > natural) to use .py files simultaneously as both scripts and
> > libraries, as long as they're in a flat organization (all piled int
On Mar 13, 10:52 pm, "eryksun ()" wrote:
> On Sunday, March 13, 2011 7:27:47 PM UTC-4, bukzor wrote:
> > e) create custom boilerplate in each script that addresses the
> > issues in a-d. This seems to be the best practice at the moment...
>
> The boilerplate should be pretty simple. For examp
"bukzor" wrote
Let's walk through it, to make it more concrete:
1) we have a bunch of scripts in a directory
2) we organize these scripts into a hierarchy of directories. This
works except for where scripts use code that exists in a different
directory.
3) we move the re-used code causin
I did not even realize such a change occurred in Python 3. I'm still
currently blissful in Python 2 land. I'd be concerned about the impact in
ported libraries (memory footprint? others?)...
~/santa
On Sun, Mar 13, 2011 at 1:35 PM, Dave Abrahams wrote:
> Steven D'Aprano pearwood.info> writes:
On Sunday, March 13, 2011 7:27:47 PM UTC-4, bukzor wrote:
> e) create custom boilerplate in each script that addresses the
> issues in a-d. This seems to be the best practice at the moment...
The boilerplate should be pretty simple. For example, if the base path is the
parent directory, the
Ian Kelly wrote:
> Yow. You're designing a Maya 2012 website to help some travel company
> bilk gullible people out of thousands of dollars? I would be ashamed
> to have anything to do with this.
To be fair, he _does_ appear to be bilking the company out of
thousands of dollars by pretending to
Steven D'Aprano pearwood.info> writes:
> If anyone has any use-cases for sorting with a comparison function that
> either can't be written using a key function, or that perform really
> badly when done so, this would be a good time to speak up.
I think it's probably provable that there are no
Hi I'm struggling to get a good understanding of styles as used in
ttk. I have read the tutorial section on using styles but haven't been
able to solve this problem.
I am attempting to create a Checkbutton with the indicatoron=false
option. Using ttk the documentation is clear that you have to cre
On 3/13/2011 7:27 PM, bukzor wrote:
I think this touches on my core problem. It's dead simple (and
natural) to use .py files simultaneously as both scripts and
libraries, as long as they're in a flat organization (all piled into a
single directory). Because of this, I never expected it to be so
I've written a script to do just this, called switchpy.bat.
It's described here:
http://apipes.blogspot.com/2010/10/switchpy.html
Or you can just grab the latest version at:
https://bitbucket.org/tlesher/mpath/src/3edcff0e8197/switchpy.bat
--
http://mail.python.org/mailman/listinfo/python-list
* Ben Finney [110313 17:15]:
> Tim Johnson writes:
>
> > I need to be better informed on naming conventions for modules. For
> > instance, I need to create a new module and I want to make sure that
> > the module name will not conflict with any future or current python
> > system module names.
>
s...@pobox.com writes:
> […] I got a hit on an Ubuntu bug tracker about a SpamBayes bug. As it
> turns out, Ubuntu distributes an outdated (read: no longer maintained)
> version of SpamBayes. The bug had been fixed over three years ago in
> the current version. Had I known this I could probably ha
Tim Johnson writes:
> I need to be better informed on naming conventions for modules. For
> instance, I need to create a new module and I want to make sure that
> the module name will not conflict with any future or current python
> system module names.
You'll never be able to make sure of that,
Steven D'Aprano writes:
> I think you give the user-agent string too much credit. Despite what
> some people think, including some browser developers, it's a free-form
> string and can contain anything the browser wants. There's no
> guarantee that fields will appear in a particular order, or eve
* bukzor [110313 15:48]:
>
> Thanks Tim.
>
> I believe I understand it. You create loaders in a flat organization,
> in the same directory as your shared library, so that it's found
Not in the same directory as shared libraries.
> naturally. These loaders use custom code to find and run the
* Terry Reedy [110313 13:46]:
> On 3/13/2011 3:17 PM, Tim Johnson wrote:
> >* Tim Johnson [110313 08:27]:
>
> Your fundamental problem is that you changed the api of your module.
> When you do that,
No. I created a 'fork' of the original so that the 'fork' uses
a different interface. The or
On Mar 12, 12:37 pm, Tim Johnson wrote:
> * Phat Fly Alanna [110312 07:22]:
>
>
>
>
>
>
>
> > We've been doing a fair amount of Python scripting, and now we have a
> > directory with almost a hundred loosely related scripts. It's
> > obviously time to organize this, but there's a problem. These s
> From: pa...@cruzio.com
> To: santacruz-...@hotmail.com
> Subject: Fw: Python Tools for Visual Studio from Microsoft - Free & Open
> Source
> Date: Thu, 10 Mar 2011 18:47:19 -0800
>
>
> - Original Message -
> From:
> To: "roland garros" ;
> Sent: Thursday, March 10, 2011 2:03 AM
>
On Mar 12, 12:01 pm, "eryksun ()" wrote:
> bukzor wrote:
> > This only works if you can edit the PYTHONPATH. With thousands of
> > users and dozens of groups each with their own custom environments,
> > this is a herculean effort.
>
> ... I don't think it's recommended to directly run a script tha
Dave Abrahams writes:
list(chain( *(((x,n) for n in range(3)) for x in 'abc') ))
> [('c', 0), ('c', 1), ('c', 2), ('c', 0), ('c', 1), ('c', 2), ('c', 0), ('c',
> 1), ('c', 2)]
>
> Huh? Can anyone explain why the last result is different?
list(chain(*EXPR)) is constructing a tuple out of
Dave Abrahams wrote:
list(chain( *(((x,n) for n in range(3)) for x in 'abc') ))
> [('c', 0), ('c', 1), ('c', 2), ('c', 0), ('c', 1), ('c', 2), ('c', 0),
> [('c', 1), ('c', 2)]
>
> Huh? Can anyone explain why the last result is different?
> (This is with Python 2.6)
The *-operator is not
Here is my environment:
Windows 7 x64 SP1
Python 3.2
adodbapi 2.4.2
MS Access
Although the above environment is what I am currently using I have
encountered this same problem with Python 3.1.1. It is not a problem
with Python 2.x.
The problem is as follows:
If you are using a select statement
On 3/13/2011 3:17 PM, Tim Johnson wrote:
* Tim Johnson [110313 08:27]:
One other thing I just realized:
The process stops inside of a function call to another object
method, if that method call is removed, the process teminates.
:) I may have a solution later today, and will relay i
Please consider:
>>> from itertools import chain
>>> def enum3(x): return ((x,n) for n in range(3))
...
>>> list(enum3('a'))
[('a', 0), ('a', 1), ('a', 2)]
# Rewrite the same expression four different ways:
>>> list(chain( enum3('a'), enum3('b'), enum3('c') ))
[('a', 0), ('a', 1), ('a', 2),
* Tim Johnson [110313 08:27]:
> One other thing I just realized:
> The process stops inside of a function call to another object
> method, if that method call is removed, the process teminates.
> :) I may have a solution later today, and will relay it to you if
> found. Must have coffee
Anssi Saari wrote in
news:vg3tyf75eq1@pepper.modeemi.fi:
> rzed writes:
>
>> Did you say "was"? The last time I did any programming on a VMS
>> system was ... about 5 1/2 hours ago. Our shop runs OpenVMS now,
>> programs mostly in C and BASIC. I've quietly insinuated Python
>> into the mix
Thanks that helps. I've tried the first option. Not doing much Python stuff at
the moment, but I'll follow up if I experience any issues with this approach.
I'm very excited that both the language and tools support is forging ahead -
thanks all.
-Original Message-
From: users-boun...@li
The PTVS release is really an extended version of the tools in IronPython 2.7.
It adds support for CPython including debugging, profiling, etc... while still
supporting IronPython as well. We'll likely either replace the tools
distributed w/ IronPython with this version (maybe minus things li
Can someone on the list clarify differences or overlap between the tools
included in this release, and the PTVS release?
--
http://mail.python.org/mailman/listinfo/python-list
* Terry Reedy [110312 17:45]:
> >## code below
> > import cgi
> > self.form = cgi.FieldStorage(keep_blank_values=1)
> >## /code
> And cgitools is a class therein?
Code above is called with/from cgitools
> > Hmm! I'm unsure what you mean here, but
>
> If the name 'cgitools' is used
If someone want to know about Bollywood Hot actress and the biography,
Just
www.hotpics00.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 13, 2011, at 11:46 AM, Stefan Behnel wrote:
> Francesco Bochicchio, 13.03.2011 10:37:
>> On 13 Mar, 10:14, kuangye wrote:
>>> Hi, all. I need to generate other programming language source code
>>> from C++ source code for a project. To achieve this, the first step is
>>> to "understand" t
Francesco Bochicchio, 13.03.2011 10:37:
On 13 Mar, 10:14, kuangye wrote:
Hi, all. I need to generate other programming language source code
from C++ source code for a project. To achieve this, the first step is
to "understand" the c++ source code at least in formally. Thus is
there any library
rzed writes:
> Did you say "was"? The last time I did any programming on a VMS system
> was ... about 5 1/2 hours ago. Our shop runs OpenVMS now, programs
> mostly in C and BASIC. I've quietly insinuated Python into the mix
> over the last few months, and that has helped my sanity considerably
The removal of cmp from the sort method of lists is probably the most
disliked change in Python 3. On the python-dev mailing list at the
moment, Guido is considering whether or not it was a mistake.
If anyone has any use-cases for sorting with a comparison function that
either can't be written
On Sun, 13 Mar 2011 00:52:24 -0800, Robert Maas, http://tinyurl.com/uh3t
wrote:
> Exercise to the reader: Combine those nine-decimal-digit and
> ten-decimal-digit numbers appropriately to express exactly how many
> wavelengths of the hyperfine transition equals one meter. Hint: You
> either multip
Hi all, how do i fix this?
$ sudo pip install lightblue
Downloading/unpacking lightblue
Downloading lightblue-0.4.tar.gz (204Kb): 204Kb downloaded
Running setup.py egg_info for package lightblue
Installing collected packages: lightblue
Running setup.py install for lightblue
Build setti
On 13 Mar, 10:14, kuangye wrote:
> Hi, all. I need to generate other programming language source code
> from C++ source code for a project. To achieve this, the first step is
> to "understand" the c++ source code at least in formally. Thus is
> there any library to parse the C++ source code static
Hi, all. I need to generate other programming language source code
from C++ source code for a project. To achieve this, the first step is
to "understand" the c++ source code at least in formally. Thus is
there any library to parse the C++ source code statically. So I can
developer on this library.
Hi, all. I need to generate other programming language source code
from C++ source code for a project. To achieve this, the first step is
to "understand" the c++ source code at least in formally. Thus is
there any library to parse the C++ source code statically. So I can
developer on this library.
> From: rantingrick
> Anyone with half a brain understands the metric system is far
> superior (on many levels) then any of the other units of
> measurement.
Anyone with a *whole* brain can see that you are mistaken. The
current "metric" system has two serious flaws:
It's based on powers of ten
41 matches
Mail list logo