er years of using unittest, what would you say are the pros and
cons of nose?
Thank you,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
> Problem is, this line is not understood:
>
> mail.BodyFormat = OlBodyFormat.olFormatHTML
Try olBodyFormat (lower case 'o')
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Steven,
Well done!!!
Regards,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
gspot.in/2009/07/hard-drive-weight-increasing.html
--
http://mail.python.org/mailman/listinfo/python-list
> I will really appreciate if someone type the address of any of the following
> for use with python
> 1>Webhost
> 2>Shell Account
> 3>VPS
Check out webfaction.com - they provide great support for Python.
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
> Agreed - this is a really nice release, thanks to all who put it together.
+1
Thank you!
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
I have a problem with the standard "turtle" module. When a turtle has
a custom shape of type "compound", it doesn't seem to respond to click
events. No problem with polygon shapes.
Running python 3.2.3, turtle version 1.1b on Windows
Years ago I did a presentation on Python and then launched a browser to
give a tour of the Python website.
When I went to enter the URL, I accidentally typed in python.com (which
at the time was an adult website) vs. python.org.
Talk about getting your audience's attention!!
Malcolm
BTW: Gr
Van,
> ... harmonize the install layout for Python between platforms.
> 1) the 'Scripts' directory would change to 'bin';
> 2) python.exe would move to the 'bin' directory; and
> 3) the installer for Windows would get the optional ability to
add this di
Thanks for all your hard work - I learned a lot by visiting the links
you guys gathered over the years.
Best regards,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
ilman/listinfo/python-list
> Mark Lutz' "Programming Python" has extensive coverage of Tkinter (it's
a huge book and devotes several chapters to Tkinter), and has been
updated at regular intervals, most recently in the last year or two;
I've found it a very helpful reference and guide to
er/ttk is bundled with Python meaning distribution is almost
painless.
2. Tkinter/ttk are very light weight in terms of the size they add to a
distribution.
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
tamps and file sizes for the above files.
Background; 64-bit Windows 7; 32-bit Python 2.7.2
Any ideas on how I can retrieve timestamps and file sizes like
DIR without raising exceptions?
Thank you,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Luis,
Not the OP, but thank you for passing on the CoffeeScript recommendation
- looks very interesting!!
http://jashkenas.github.com/coffee-script/
Regards,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Looking for some real-world advice on what is the best way to
access MS SQL Server 2008R2 databases via Python 2.7 running
under Windows XP, Vista, and Windows 7 and Windows Server 2005
and 2008.
Based on my research, here's my list of choices:
mxODBC
[1]http://www.egenix.com/products/p
Just installed the 32-bit version Python 2.7.2 for Windows via
the python-2.7.2.msi download.
When I start Python via python.exe or Idle, the version info is
reported as 2.7.0 vs. 2.7.2.
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit
(Intel)] on win
32
Type "help",
Hi Benjamin,
> The file info is seems correct but I just checked the MSI and it's
reporting that it's 2.7.2. How exactly are you running python.exe and
IDLE- are you calling the full path, just calling "python" and using
whichever python version is first on your path, or ar
Benjamin,
I tried uninstalling and re-installing Python 2.7.2 without success ...
I kept getting the proper exe's, but when run, the Python version
continued to be reported as 2.7.0.
Finally I installed for current user only (vs. all users) - the
installation now correctly reports my versi
Hi Mark,
> The version info comes from the DLL - I wonder if the DLL being found is
> somehow old?
>
> Make sure:
>
> >>> import sys
> >>> win32api.GetModuleFileName(sys.dllhandle)
>
> Is the DLL you expect.
After uninstalling and reinstalling for
Benjamin,
> You'll have to install Tcl yourself. The 2.6 binaries were
compiled against a newer version than Apple ships.
Does this requirement apply to Python 2.7 or Python 3.2 for the
Mac or is this requirement Python 2.6 specific?
Thank you,
Malcolm
--
http://mail.python.org
Alain,
> I have written an article about parsing email using Python. The article is at
> http://blog.magiksys.net/Parsing-email-using-python-header
and the full content is here.
Very helpful - thank you!
Regards,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Looking for tips and lessons learned (advice on what to do and
not do) for writing a Python based DSL.
Googling python dsl yields some wonderful content which I've just
started to read. If there are specific articles or 3rd party
libraries that you used to implement a DSL, I would appre
lcolm
--
http://mail.python.org/mailman/listinfo/python-list
com/logix_kosmos.html
http://www.classiccmp.org/pipermail/cctech/2007-October/086682.html
http://www.computerhistory.org/collections/accession/102621921
http://www.classiccmp.org/dunfield/ (scanned manual)
--
http://mail.python.org/mailman/listinfo/python-list
there are multiple unclosed braces at EOF, is the answer you're
looking for the position of the first open brace that hasn't been closed
out yet?
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Peter,
How would your examples work with text being inserted or deleted via the
clipboard?
Is there anything special that would have to happen for changes to a
widget's value as the result of one of these events?
Thank you,
Malcolm (not the OP)
--
http://mail.python.org/mailman/listinfo/p
Hi Terry,
> Ethan's proposal was accepted on python-ideas. In Python 3.3, the classes for
> the singletons None, Ellipsis, and NotImplemented will be callables that
> return the singleton.
Thanks for sharing this news. Its motivating to see this type of
feedback loop because
Azrael,
> Isn't it maybe time to throw out TK once and for all? Python is missing one
> of the most important aspects of todays IT industry. GUI development native
> library (I mean a serious one).
Check out enhancements to Tk like Ttk included in Python 2.7 and 3.1 a
Croepha,
You may find it simpler and sufficiently efficient to compress your
objects in whatever format they exist (pickle, json, xml, etc) and send
the compressed equivalents vs. trying to diff on side and reassemble on
the other side.
Malcolm
--
http://mail.python.org/mailman/listinfo/python
I'm reviewing a lot of code that has thread acquire and release
locks scattered throughout the code base.
Would a better technique be to use
--
http://mail.python.org/mailman/listinfo/python-list
aking things too complicated?
Am I reinventing the wheel by creating my own versions of above
or are there off-the-shelf, debugged versions of above that one
can use?
Thank you,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
> Personally, I'm a major fan of Webfaction -- from price to plans to what's
> supported to actual effectiveness of their tech support.
+1
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Hi Fokke,
Disclaimer: I have no experience with the Python WebDAV package you're
using.
But a thought:
> In the config file it says:
> "# main directory
> directory = \Webdav"
Perhaps you should qualify your directory path with a drive letter?
I would try this 2 ways
Hi Alan,
Thanks for sharing that link - very interesting!
http://www.pytex.org/
Malcolm (former LaTeX/TeX user from early 90's)
--
http://mail.python.org/mailman/listinfo/python-list
Hi Simon,
> I am a applications developer - originally from Windows using primarily
Visual Foxpro, although I am familiar with a variety of other xbase
derivatives.
Check out dabodev.com. Dabo is a Python framework created by former VFP
developers.
Highly recommended.
Malcolm
--
h
that Tkinter's pack and
grid layout techniques will not be optimal for the above type of
animations.
Is there a Tkinter technique or underlying TCL technique that
might support these type of effects?
Thank you,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Jimmy,
How does VTD-XML compare to XML tools in the stdlib or to 3rd party
alternatives like lxml?
Thank you,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
ing) and MPI
support to CPython using the latest Microsoft API's for large scale data
and computing
Regards,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Peter,
Sorry I can't be of much help, but I share the same interest as you.
There may be some teaser info here although I can't claim to understand
the technique.
http://www.java2s.com/Open-Source/Python/3.1.2-Python/Demo/Demo/tkinter/ttk/notebook_closebtn.py.htm
If you have
I agree with previous comments.
There are plenty of good tutorials, I have
sometimes found more useful for learning than the manuals.
The manuals are good but I prefer examples.
http://www.tutorialspoint.com/python/python_reg_expressions.htm
http://www.awaretek.com/tutorials.html#regular
Bill
ib.request.ProxyHandler({"http": "10.242.38.251:80",
> > "username": "domain\username", "password": "password"})
>
> Remember that backslash is used for string escapes in Python; so that
> should be "domain\\username&quo
Candide,
Perhaps the Python Babel project has something that might help out?
http://babel.edgewall.org/
If this works out for you can you share your learning with the rest of
us? :)
Thanks and good luck!
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
I have looked a while for this answer. Sorry if it right before me.
I have move from Windows to os x. The thing I miss most is pywin.
I know you can purchase or download full IDE's for python or even use
Eclipse. I really liked the ability to switch from interactive
interpreter to e
On Apr 5, 1:26 pm, Detlev Offenbach wrote:
> python wrote:
> > I have looked a while for this answer. Sorry if it right before me.
>
> > I have move from Windows toosx. The thing I miss most is pywin.
> > I know you can purchase or download fullIDE'sfor python
.
>
> > --greg
>
> building the dictionary as a string seems like a hacky thing to do and
> you might want to reevaluate your methods. But if everything in the
> dict is a literal, you can do ast.literal_eval.
>
>
>
>
>
>
>
>
>
> > --
> >http://mail
On May 9, 9:33 pm, python wrote:
> On May 8, 12:43 pm, Benjamin Kaplan wrote:
>
>
>
>
>
>
>
>
>
> > On Sun, May 8, 2011 at 8:20 AM, Greg Lindstrom
> > wrote:
> > > Is it possible to create a dictionary from a string value? Somet
Irmen,
> I'm going to share this thread, and the funny slideshow about Uncomment your
> code, with my team at work :-) We're not a Python shop so I'm probably the
> only one reading this
Same here!
> but as usual there is a lot of wisdom going on in this new[
rious ways
including given a node, find its previous and next nodes
including moving up and down branches to find the next logical
node and the ability to quickly find an element by its unique id.
Thank you,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
gt; print(1,2,3)
123
--
https://mail.python.org/mailman/listinfo/python-list
objects is more fluid than in
other languages... You don't have constants, so you can arbitrarily
change any object's member values to anything, even to the point of
adding new ones at your whim.
This probably would make more sense for constants, if Python had them.
But you don't re
Hello Pythonistas,
I'm starting to play with ctypes, as I'd like to provide Python
interfaces to a C/C++ library I have. For now I'm just messing with a
very simple piece of code to get things sorted out. I'm working with
this example C++ library, which just
On Sat, Nov 18, 2017 at 10:47:55AM +1100, Chris Angelico wrote:
> On Sat, Nov 18, 2017 at 10:34 AM, Python wrote:
> > On Sat, Nov 18, 2017 at 09:50:29AM +1100, Chris Angelico wrote:
> >> Perhaps what we want is not so much "attach docstrings to floats" but
> >
On Sat, Nov 18, 2017 at 10:49:40AM +1100, Chris Angelico wrote:
> On Sat, Nov 18, 2017 at 9:11 AM, Python wrote:
> > Hello Pythonistas,
> >
> > I'm starting to play with ctypes, as I'd like to provide Python
> > interfaces to a C/C++ library I have. For
On Sat, Nov 18, 2017 at 02:19:25PM +1100, Chris Angelico wrote:
> On Sat, Nov 18, 2017 at 2:12 PM, Python wrote:
> > On Sat, Nov 18, 2017 at 10:47:55AM +1100, Chris Angelico wrote:
> >> On Sat, Nov 18, 2017 at 10:34 AM, Python wrote:
> >> > On Sat, Nov 18, 2
Eryk,
Thanks much for the excellent and highly detailed response! That made
a lot of things clear.
On Sat, Nov 18, 2017 at 10:56:27AM +, eryk sun wrote:
> On Fri, Nov 17, 2017 at 10:11 PM, Python wrote:
> >
> > I'm starting to play with ctypes, as I'd like to prov
my guess would be it is caching the DNS
response and/or maintaining persistent connections to the server,
whereas urllib isn't, though that's just a guess... I'm not familiar
with the implementations of either. But again, a packet sniffer
should show you exactly what's happening and who is being slow.
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Dec 05, 2017 at 06:23:04PM -0800, Rick Johnson wrote:
> [bunch of old, irrelevant context snipped]
> > item = seq[n:n+1]
> > if item:
> > process(item)
> > else:
> > do_without_item()
>
> When Python follows a logic clause like a train s
erent for any two users, or even for the same user,
given different application contexts. The latter is less true than it
used to be, but still true nonetheless.
Granted, this isn't a very useful answer, but it's the only one you
can give that is certainly correct, without more context.
--
https://mail.python.org/mailman/listinfo/python-list
t; if item:
> process(item)
> else:
> pass
>
THIS IS FALSE. CALLING A FUNCTION IS NOT FUNCTIONALLY EQUIVALENT TO
THE PASS STATEMENT. Therefore your entire premise is false, and the
remainder of what you said is meaningless.
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Dec 07, 2017 at 01:29:11PM +1100, Steve D'Aprano wrote:
> On Thu, 7 Dec 2017 08:22 am, Python wrote:
> >> > Linux doesn’t do “OS file associations”.
> >>
> >> Then how does my Linux box know that when I double-click on a text file, it
> >>
Hi Rick!
On Wed, Dec 06, 2017 at 04:05:42PM -0800, Rick Johnson wrote:
> Python wrote:
>
> [...]
>
> > THIS IS FALSE. CALLING A FUNCTION
>
> What *FUNCTION*?
In this snippet (which again, we agreed was an incomplete academic
example):
if item:
do_without_item() better.
Ned is right, you just need to be ingored.
--
https://mail.python.org/mailman/listinfo/python-list
my guess would be it is caching the DNS response
and/or maintaining persistent connections to the server, whereas urllib isn't,
though that's just a guess... I'm not familiar with the implementations of
either. But again, a packet sniffer should show you exactly what's happening
and who is being slow.
--
https://mail.python.org/mailman/listinfo/python-list
do that if you use text keys (but not impossible--you
could write a function that converts numbers to their text names).
This is Python 2.7, but there's very little difference from the 3.x
version:
-=-=-=-=-=-=-=-
#!/usr/bin/python
import random
def roll_die(times):
sides = {1:0, 2:0, 3:
On Fri, Dec 15, 2017 at 04:51:09PM -0500, Bill wrote:
> >I'm new to programming, can anyone guide me, how to start learning python
> >programming language,...plz suggest some books also.
> >
> >Thanks all
>
> Are you sure you want to learn Python first?
>
> This version does only 37, giving a misleading impression.
>
> Not overly misleading; the point of it is to show how trivially easy
> it is to memoize a function in Python.
This does not appear to me at all to be the point of the article. The
point of the article seems to be that th
algorithm
that is not optimal in pretty much any language, to a completely
different one with a much improved order of complexity, optimized
specifically for Python?
The article author even points out that the Fibonacci sequence problem
can be solved using the same technique as he used for his Python
ams, that's true. But the Julia
> >benchmarks are not practical programs; they are designed to compare
> >the performance of various language features across a range of
> >languages.
>
> If that were so, then the comparison should use the fastest *Python*
> implementatio
c. So there is almost no point in combining both in a
> naive drastically inefficient algorithm and declaring that Python is
> slower.
I never said the benchmarks chosen were awesome... :-) What I'm
saying is this:
1. Insistence that the most efficient python implementation of Fib
On Sat, Feb 24, 2018 at 03:42:43AM +1100, Chris Angelico wrote:
> >> If that were so, then the comparison should use the fastest *Python*
> >> implementation.
> >
> > Doing that would completely fail to accomplish the task of comparing
> > the performance of
On Fri, Feb 23, 2018 at 06:14:22PM +, Steven D'Aprano wrote:
> > I never said the benchmarks chosen were awesome... :-) What I'm saying
> > is this:
> >
> > 1. Insistence that the most efficient python implementation of Fib
> >completely misses th
(and very little of
anything else). Again, you can decide for yourself the suitability of
the benchmark, but I don't think you can really claim it doesn't
effectively test what it means to.
--
https://mail.python.org/mailman/listinfo/python-list
reading of their site was not exhaustive), but I can't see any
way an informed reader could conclude any different purpose other than
benchmarking recursion.
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Feb 23, 2018 at 01:41:17PM -0600, Python wrote:
> On Sat, Feb 24, 2018 at 06:16:38AM +1100, Chris Angelico wrote:
> > > It seems abundantly clear to me that testing recursion is the point of
> > > writing a benchmark implementing recursion (and very little of
> &g
On Mon, Feb 26, 2018 at 09:57:06AM +, Steven D'Aprano wrote:
> Besides, if you want Python with no GIL so you can run threaded code, why
> aren't you using IronPython or Jython?
But this is just another oversimplified argument. In the real world
there rather often exist c
On Sat, Mar 03, 2018 at 08:18:03AM +1100, Chris Angelico wrote:
> > Python is often a preferred solution because it is often fantastic for
> > rapid implementation and maintainability. The GIL's interference
> > with threaded code performance has, for me at least, on sev
On Wed, Jan 25, 2023 at 01:01:24PM +1100, Chris Angelico wrote:
> On Wed, 25 Jan 2023 at 12:43, wrote:
> > Python has a different philosophy than some other languages with strong
> > typing. In some of those, you would not be allowed to add or multiply at
> > random but
On Mon, Jan 30, 2023 at 09:41:03AM -, mutt...@dastardlyhq.com wrote:
> >Because print() returns nothing (i.e., the statement x is None is True).
>
> I don't understand this. What was the point of the upheaval of converting
> the print command in python 2 into a function
On Sat, Feb 11, 2023 at 08:30:22AM +1100, Chris Angelico wrote:
> On Sat, 11 Feb 2023 at 07:36, Python wrote:
> > You would do this instead:
> >
> > message = f"{username} has the occupation {job}."
> > message_length = len(message)
> >
On Fri, Feb 10, 2023 at 05:48:53PM -0500, Thomas Passin wrote:
> On 2/10/2023 4:55 PM, Python wrote:
> > However, Python's print() function is more analogous to C's printf(),
> > which returns the number of characters converted for an entirely
> > different reason..
e
last thing I want to do is spend 15 minutes to relocate and reconfgure
UI elements to where and how I like them before I can even start
working on a media project (or whatever).
--
https://mail.python.org/mailman/listinfo/python-list
to the notion
that Gnome Gnows better than you do how you should run your apps, so
when using Gnome all bets are off.
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Jan 14, 2021 at 11:58:34AM +1100, Chris Angelico wrote:
> On Thu, Jan 14, 2021 at 11:53 AM Python wrote:
> Have you actually done any research by (a) asking people what they
> actually prefer, and better still (b) silently watching over someone's
> shoulder and seein
On Thu, Jan 14, 2021 at 12:27:19PM +1100, Chris Angelico wrote:
> On Thu, Jan 14, 2021 at 12:11 PM Python wrote:
> >
> > On Tue, Jan 12, 2021 at 06:43:39PM -, Grant Edwards wrote:
> > > And those X11 users will swear at you if you override their window
> >
On Thu, Jan 14, 2021 at 03:02:05PM +1100, Chris Angelico wrote:
> On Thu, Jan 14, 2021 at 2:43 PM Python wrote:
> > > it is far FAR better to put control in the user's hands
> >
> > I love how you dismissed that the semantics I described gives MORE
> > con
llation step-by-step-guide video here:
https://www.youtube.com/channel/UCOE8xqYS_2azFsFjBVEwVMg
May I ask - how can I do that best? Thanks in advance and
Best Regards
Dominik
--
https://mail.python.org/mailman/listinfo/python-list
nd is from 2015.
Blythooon is still maintained and the last version is from February
2021.
2) winpython seems not to support Python 2.7.* anymore.
Blythooon supports Python 2.7.18.
3) When using Anaconda Python you might not only have to respect the
anaconda/miniconda licenses but also the t
t under "Other
parties have re-packaged CPython" listed here:
What makes it notable?
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
No, I am not encouraging, I am just offering the possibility.
Python and its community once was not dogmatic. At least this was my
impression when I started - after all Python originally had been
designed to be multi paradigmatic. This spirit of freedom was one mayor
reason for Python to grow
Chris,
you seem to imply, that I have compiled said versions without reason and
that the same would be possible on basis of Python 3 - which is simply
not true. Maybe you are not enough acquainted with Qt and belonging
libraries alike PyQtGraph. Maybe you are just not willing to see /
accept
t free IDE for Python as well as C# yet, if you ask me:) and just
parts of the backend with IronPython (which also is nice, although it
just has access to a limited set of libraries). It worked fine, but I do
not like mixing languages if not necessary as I deem that to be a
software design weakn
You write, that "Everyone claims that it's easier to move to some other
language rather than to migrate to Python 3".
Thank you for sharing this remarkable information!
On 2021-03-27 06:36, Chris Angelico wrote:
On Sat, Mar 27, 2021 at 4:20 PM wrote:
Chris,
you seem t
You say: "The point is that there are those who use Python 2 and don't
want to move to Python 3, claiming that it's easier to switch from
Python 2 to some other language than from Python 2 to Python 3. That's
what seems questionable."
And I say, forcing people to do t
hould be able to handle it.
--
https://mail.python.org/mailman/listinfo/python-list
s it possible to achieve this with f strings or any other
simple/efficient way?
'foo ' + ', '.join(f"{one} {two}" for one,two in zip(l1,l2)) + ' bar'
--
https://mail.python.org/mailman/listinfo/python-list
Abdur-Rahmaan Janhangeer wrote:
Greetings list.
Out of curiosity, why doesn't Python accept
def ():
return '---'
()
Where the function name is ''?
For the same reason an empty sequence of characters cannot
be a variable name. Do you know any language (or formal
Barry wrote:
On 20 Feb 2022, at 15:35, Abdur-Rahmaan Janhangeer wrote:
Greetings list.
Out of curiosity, why doesn't Python accept
def ():
return '---'
()
Where the function name is ''?
Because there is no variable that is holding a ref to the code.
So i
Kiran Kumar wrote:
Hi.
Pls check on below poython 3.9.x code & suggest how can i keep the string
intactst in 2nd loop... ? these are aws ec2 ids
Don't loop through it then.
--
https://mail.python.org/mailman/listinfo/python-list
= query_tickets_status['status']
labels_statut = query_tickets_status()['status']
--
https://mail.python.org/mailman/listinfo/python-list
1 - 100 of 4250 matches
Mail list logo