On Monday 20 April 2015 16:20, Chris Angelico wrote:
> Looking for comments, recommendations, advice that I've just wasted
> half a day on something utterly useless, whatever it be!
>
> I've just posted a new (single-module) package to PyPI that simplifies
> the creation of an argparse UI for a p
On Mon, Apr 20, 2015 at 5:22 PM, Steven D'Aprano
wrote:
> On Monday 20 April 2015 16:20, Chris Angelico wrote:
>
>> Looking for comments, recommendations, advice that I've just wasted
>> half a day on something utterly useless, whatever it be!
>>
>> I've just posted a new (single-module) package t
On behalf of the Python development community and the Python 3.5 release
team, I'm thrilled to announce the availability of Python 3.5.0a4.
Python 3.5.0a4 is the fourth and alpha release of Python 3.5, which will
be the next major release of Python. Python 3.5 is still under
development, a
Hi,
i am having a problem when i try to access lotus notes with python, think i do
all ok but it seems something is going wrong because i can't print any db title
even if i've opened the .nsf file.
My code:
import win32com.client
from win32com.client import Dispatch
notesServer='Mail\wed\new\
Steven D'Aprano wrote:
Wheels have been round for thousands of years! Why can't we
try something modern, like triangular wheels?
http://en.wikipedia.org/wiki/Reuleaux_triangle
http://blog.geomblog.org/2004/04/square-wheels.html
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
Hi Larry,
On Mon, 20 Apr 2015 01:16:00 -0700
Larry Hastings wrote:
[snip]
> * There is now a third type of Windows installer for Python 3.5. In
> addition to the conventional installer and the web-based installer,
> Python 3.5 now has an embeddable installer designed to be run as
>
Hi
I liked the addon "Picture-flasher" written for anki very much
and I was wondering if the same thing could be done with mp3 and/or
flac files. Means I am looking for an addon that chooses a random mp3
and/or flac file from a directory provided by me (to the addon as we
have to provide in "Pictu
Mahesh Chiramure writes:
> I liked the addon "Picture-flasher" written for anki very much
> and I was wondering if the same thing could be done with mp3 and/or
> flac files.
Quite probably.
That sounds like a good small project to tackle: you've found a
free-software program, it has an existing
ANNOUNCING
mxODBC Plone/Zope Database Adapter
Version 2.2.1
for the Plone CMS and Zope server platform
Available for Plone 4.0-4.3 and Plone 5.0,
On 04/20/2015 04:29 AM, gianluca.pu...@gmail.com wrote:
Hi,
Hi and welcome.
I don't know Lotus Notes, but i can at least comment on some of your
code, pointing out at least some problems.
i am having a problem when i try to access lotus notes with python, think i do
all ok but it seems so
I work in research and mainly use Fortran and Python.
I haven't had any problem with the python indentation. I like it, I find it
simple and easy.
Well, sometimes I may forget to close an IF block with an ENDIF, in Fortran, so
used I am on ending a block just decreasing the indentation, not a
On Monday 20 April 2015 18:38, Gregory Ewing wrote:
> Steven D'Aprano wrote:
>> Wheels have been round for thousands of years! Why can't we
>> try something modern, like triangular wheels?
>
> http://en.wikipedia.org/wiki/Reuleaux_triangle
>
> http://blog.geomblog.org/2004/04/square-wheels.html
On Monday 20 April 2015 12:43, Rustom Mody wrote:
> You've a 10-file python project in which you want to replace function 'f'
> by function 'longname'
> How easy is it?
About a thousand times easier than the corresponding situation:
You have ten PDF files in which you want to replace the word "f
On Monday, April 20, 2015 at 4:00:16 PM UTC+5:30, Steven D'Aprano wrote:
> On Monday 20 April 2015 12:43, Rustom Mody wrote:
>
> > You've a 10-file python project in which you want to replace function 'f'
> > by function 'longname'
> > How easy is it?
>
> About a thousand times easier than the co
Dear Group,
I am trying to open multiple files at one time.
I am trying to do it as,
for item in [ "one", "two", "three" ]:
f = open (item + "world.txt", "w")
f.close()
This is fine. But I was looking if I do not know the number of
text files I would create beforehand, so not tr
On 20/04/2015 11:30, Steven D'Aprano wrote:
On Monday 20 April 2015 12:43, Rustom Mody wrote:
You've a 10-file python project in which you want to replace function 'f'
by function 'longname'
How easy is it?
About a thousand times easier than the corresponding situation:
You have ten PDF file
Il giorno lunedì 20 aprile 2015 10:29:42 UTC+2, gianluc...@gmail.com ha scritto:
> Hi,
>
> i am having a problem when i try to access lotus notes with python, think i
> do all ok but it seems something is going wrong because i can't print any db
> title even if i've opened the .nsf file.
>
> My
On Sun, Apr 19, 2015 at 9:01 PM, Mark Lawrence
wrote:
> Rather sad to see those three initials in that post as well [image: 😢]
>
We miss John at TradeLink.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Hi
I wonder if someone could help me with this problem please?
On an Ubuntu 10.04 platform, I want to run the latest version of Meld, which is
a Python program.
Ubuntu 10.04 runs Python 2.6 as standard. Meld requires Python 2.7. So I have
installed Python 2.7 under /usr/local/bin and Python
On 4/20/2015 8:31 AM, David Aldrich wrote:
> Cannot import: GTK+
>
> No module named gi
>
> So I need to install the gtk package and do so in such a way that it
> is visible to /usr/local/bin/python2.7.
>
> How would I do that please?
This should get you going:
See http://faq.pygtk.org/index.
David Aldrich wrote:
>Hi
>
>I wonder if someone could help me with this problem please?
>
>On an Ubuntu 10.04 platform, I want to run the latest version of Meld, which
>is a Python program.
>
>Ubuntu 10.04 runs Python 2.6 as standard. Meld requires Python 2.7. So I
>have installed Python 2.7
On Monday, April 20, 2015 at 5:00:15 AM UTC-7, subhabrat...@gmail.com wrote:
> Dear Group,
>
> I am trying to open multiple files at one time.
> I am trying to do it as,
>
> for item in [ "one", "two", "three" ]:
>f = open (item + "world.txt", "w")
>f.close()
>
> This is fine.
On 04/20/2015 07:59 AM, subhabrata.bane...@gmail.com wrote:
Dear Group,
I am trying to open multiple files at one time.
I am trying to do it as,
for item in [ "one", "two", "three" ]:
f = open (item + "world.txt", "w")
f.close()
This is fine.
But it does not open multiple
Announcing Hooked
Hooked is a pure python hotkey module. There are some great options such as
pyHook, and pyhk, but I wanted a pure Python version so all Python
implementations could use hotkeys.
Now, an example!
def foo():
print "I was triggered by Ctrl+B!"
from hooked import hook
hk=ho
Chris Angelico writes:
> @cmdline
> def adduser(user: "Name of user to add", password: "Password for the
> new user"=""):
> """Add a new user"""
Does this conflict with type signature proposals using that annotation
mechanism? I guess that means PEP 0484 but I've lost track of what's
where.
On Tue, Apr 21, 2015 at 11:13 AM, Paul Rubin wrote:
> Chris Angelico writes:
>> @cmdline
>> def adduser(user: "Name of user to add", password: "Password for the
>> new user"=""):
>> """Add a new user"""
>
> Does this conflict with type signature proposals using that annotation
> mechanism? I
I have program that generates about 100 relatively complex graphics and
writes then to a pdf book.
It takes a while!
Is there any possibility of using multiprocessing to build the graphics
and then use several calls to savefig(), i.e. some kind of graphic's
objects?
Thanks for any help/comments.
-
On Monday, April 20, 2015 at 9:14:23 AM UTC+5:30, Chris Angelico wrote:
> I definitely don't see how a non-text source code format would improve
> on it. Feel like elaborating?
You are putting emphasis on the 'non'. This puts you into an oscillatory system
between tautology and contradiction:
How
Chris Angelico writes:
>> Does this conflict with type signature proposals
> In the sense that you can't use both together, yes. But docstringargs
> follows the rule of "if you're going to use annotations, also use a
> decorator"; and the decorator removes all the annotations it uses.
This makes
On Tue, Apr 21, 2015 at 1:44 PM, Paul Rubin wrote:
> Chris Angelico writes:
>>> Does this conflict with type signature proposals
>> In the sense that you can't use both together, yes. But docstringargs
>> follows the rule of "if you're going to use annotations, also use a
>> decorator"; and the d
Chris Angelico writes:
> @cmdline
> def adduser(
> user: {cmdline: "Name of user to add", typing: str},
> password: {cmdline: "Password for the new user", typing: str}=""):
> """Add a new user"""
In the case of just one decorator, the dictionary could be omitted. The
decorato
On Tue, Apr 21, 2015 at 2:33 PM, Paul Rubin wrote:
> Chris Angelico writes:
>> @cmdline
>> def adduser(
>> user: {cmdline: "Name of user to add", typing: str},
>> password: {cmdline: "Password for the new user", typing: str}=""):
>> """Add a new user"""
>
> In the case of just
Chris Angelico writes:
> PEP 484 says that type hints don't need a decorator, but if it were
> anything else, then yes, it'd need a second decorator. But what if one
> of the annotation usages wants to be a dictionary? How can you elide
> the outer dictionary and still recognize what's going on?
On Tue, Apr 21, 2015 at 3:08 PM, Paul Rubin wrote:
> Chris Angelico writes:
>> PEP 484 says that type hints don't need a decorator, but if it were
>> anything else, then yes, it'd need a second decorator. But what if one
>> of the annotation usages wants to be a dictionary? How can you elide
>> t
Paul Rubin writes:
> If there's only one annotation it can take a dictionary without an outer
> one. If there's more than one annotation
Hmm, I see what you might be getting at: the decorators run
innermost-first so only the outer ones can tell if there are multiple
ones without some pretty bad
If you were asked to right a song to teach new python programmers the core
concepts of python to new pythonistas could you?
What would be your song?
song and mnemonics are a key to learning and memorizing but very rarely used,
at least in my experience with programming.
Yet everyone knows
On Tue, Apr 21, 2015 at 3:43 PM, Sayth wrote:
> If you were asked to right a song to teach new python programmers the core
> concepts of python to new pythonistas could you?
>
> What would be your song?
>
> song and mnemonics are a key to learning and memorizing but very rarely used,
> at least
Chris Angelico writes:
> Other decorators have to be able to recognize whether there's an outer
> dictionary or not. That means they have to dig into the annotating
> object to inquire as to whether or not their thing is there.
I'm imagining the annotation consumers themselves being wrapped by
so
On Tue, Apr 21, 2015 at 3:54 PM, Paul Rubin wrote:
> Chris Angelico writes:
>> Other decorators have to be able to recognize whether there's an outer
>> dictionary or not. That means they have to dig into the annotating
>> object to inquire as to whether or not their thing is there.
>
> I'm imagi
Chris Angelico writes:
> Ow, this is getting extremely complicated. And you still haven't
> actually answered the fundamental problem, which is: When will you
> need this? When will you actually want to put two different
> annotations onto the same function's parameters?
You've posted this cool a
40 matches
Mail list logo