'tsshbatch' Version 1.137 is now released and available for download at:
http://www.tundraware.com/Software/tsshbatch
WHATSNEW For 'tsshbatch' 1.137(Fri Feb 22 15:30:24 CST 2013)
--
- Changed error reporting to
Hi,
Yes true, i need to generate weight at run time rather than hard coding it,
following are some solution:
Since the max length of thenumber should be 25 and minimum should be 2 so
code will be in this way:
def is_valid_isbn13(isbn13):
if not len(checknum) = 2 and len(checknum) =25:
On 23.02.13 06:13, Steven D'Aprano wrote:
def is short for define.
Actually def is short for DEfine Function.
--
http://mail.python.org/mailman/listinfo/python-list
Hi all
I use a dictionary as a cache, and I thought that I could replace it
with collections.defaultdict, but it does not work the way I expected
(python 3.3.0).
my_cache = {}
def get_object(obj_id):
if obj_id not in my_cache:
my_object = fetch_object(obj_id) # expensive
On 23/02/2013 06:13, jitendra gupta wrote:
Hi,
I am working one tool, which will do compile/run the workspace (that
code is written on c/c++). on that my requirment is i need to compile
subfolder also, i have wrote code for that also.
My problem is , i am unable to write the Unit test case for
On Sat, Feb 23, 2013 at 9:13 PM, Frank Millman fr...@chagford.com wrote:
I thought I could replace this with -
from collections import defaultdict
my_cache = defaultdict(fetch_object)
my_obj = my_cache['a']
It does not work, because fetch_object() is called without any arguments.
A
Frank Millman wrote:
I use a dictionary as a cache, and I thought that I could replace it
with collections.defaultdict, but it does not work the way I expected
(python 3.3.0).
my_cache = {}
def get_object(obj_id):
if obj_id not in my_cache:
my_object = fetch_object(obj_id)
On 23/02/2013 12:13, Frank Millman wrote:
Hi all
I use a dictionary as a cache, and I thought that I could replace it
with collections.defaultdict, but it does not work the way I expected
(python 3.3.0).
[...]
from collections import defaultdict
my_cache = defaultdict(fetch_object)
my_obj =
On Fri, Feb 22, 2013 at 9:14 PM, Mark Lawrence breamore...@yahoo.co.uk wrote:
http://nedbatchelder.com/text/python-parsers.html
Hm, that list is missing information. e.g. ANTLR 4 doesn't support
python, and LEPL is dead now.
-- Devin
--
http://mail.python.org/mailman/listinfo/python-list
Frank Millman wrote:
On 23/02/2013 12:13, Frank Millman wrote:
Hi all
I use a dictionary as a cache, and I thought that I could replace it
with collections.defaultdict, but it does not work the way I expected
(python 3.3.0).
[...]
from collections import defaultdict
my_cache =
On 23/02/2013 13:02, Peter Otten wrote:
Frank Millman wrote:
On 23/02/2013 12:13, Frank Millman wrote:
Hi all
I use a dictionary as a cache, and I thought that I could replace it
with collections.defaultdict, but it does not work the way I expected
(python 3.3.0).
[...]
from
Hi
I have some convenient short place name IDs which would be handy for column
names. Unfortunately, many begin with a number.
I can work around this by appending a letter to each one, but should I escape
the number in such a way that I can use it directly as my column name, in the
same way
piterrr.dolin...@gmail.com wrote:
snip/
So far I am getting the impression that Python is a toy language of some
kind (similar to Basic of the early 80's), not really suitable for serious
work. The only difference between these languages (admittedly, a serious
one) is the existence of
Hello,
it seems that Python interactive console actually doesn't use sys.stdin to
read input (it just affects e.g. input() function). However it uses
sys.stdin.encoding. Intepreter actually freezes when an object without
encoding attribute is assigned to sys.stdin. Why is that? I that a correct
5 minutes introduction to islam
http://www.youtube.com/watch?feature=player_embeddedv=ZHujiWd49l4
thank you
--
http://mail.python.org/mailman/listinfo/python-list
I'm working with matplotlib.plot_date(), which represents time as
floats starting at January 1st, year 0001. Is there any
straight-forward way to get that out of a datetime?
datetime.toordinal() gives me the number of days since that epoch, but
as an integer. I figured it wouldn't be too
On 2013.02.23 07:00, Draic Kin wrote:
Intepreter actually freezes when an object without
encoding attribute is assigned to sys.stdin. Why is that? I that a
correct behavior? Is there any workaround to alter input object for
interactive console?
If you're going to replace something, the
On 23/02/2013 13:29, Roy Smith wrote:
I'm working with matplotlib.plot_date(), which represents time as
floats starting at January 1st, year 0001. Is there any
straight-forward way to get that out of a datetime?
datetime.toordinal() gives me the number of days since that epoch, but
as an
On Sun, Feb 24, 2013 at 12:29 AM, Roy Smith r...@panix.com wrote:
datetime.toordinal() gives me the number of days since that epoch, but
as an integer. I figured it wouldn't be too hard to just do:
t.toordinal() + t.time().total_seconds()
What about t.timestamp()? That's since 1970, but you
In article mailman.2342.1361626870.2939.python-l...@python.org,
Mark Lawrence breamore...@yahoo.co.uk wrote:
On 23/02/2013 13:29, Roy Smith wrote:
I'm working with matplotlib.plot_date(), which represents time as
floats starting at January 1st, year 0001. Is there any
straight-forward
If you're going to replace something, the replacement needs to at least
quack like the original...
That's for the freezing, even though an exception would be better. But still,
even when custon TextIO object is provided, interactive console doesn't read
from it (however input() does).
--
2013/2/23 Devin Jeanpierre jeanpierr...@gmail.com:
Hi folks,
I'm pretty unsure of myself when it comes to unicode. As I understand
it, you're generally supposed to compare things in a case insensitive
manner by case folding, right? So instead of a.lower() == b.lower()
(the ASCII way), you do
On Sat, Feb 23, 2013 at 10:11 AM, Vlastimil Brom
vlastimil.b...@gmail.com wrote:
you may check the new regex implementation
https://pypi.python.org/pypi/regex
which does support casefolding in case insensitive matches (beyond
many other features and improvements comparing to re)
Good point,
On Sat, Feb 23, 2013 at 10:26 AM, Devin Jeanpierre
jeanpierr...@gmail.com wrote:
However, regex has the same behavior.
My apologies, I forgot to set the VERSION1 flag.
Interesting. 'ss' matches 'ß', but 's+' does not.
Is this desirable behavior?
-- Devin
--
On 22/02/2013 22:37, piterrr.dolin...@gmail.com wrote:
So far I am getting the impression that Python is a toy language of some kind
(similar to Basic of the early 80's), not really suitable for serious work. The
only difference between these languages (admittedly, a serious one) is the
I need to transfer some data (nothing fancy, some dictionaries, strings,
numbers and lists, basically) between 2 Python processes. However, the data
(string values) is potentially not ASCII, but the transport is (I'm piping
between 2 processes, but thanks to nasty encoding issues, the only
On Sun, Feb 24, 2013 at 2:43 AM, Steve Simmons square.st...@gmail.com wrote:
I get the impression that you are a developer of some experience on a single
language. I wouldn't call myself a developer but I have written, modified
and/or debugged software in upwards of 20 languages and, from that
On Sun, Feb 24, 2013 at 2:45 AM, Paul Moore p.f.mo...@gmail.com wrote:
At the moment, I'm using
encoded = json.dumps([ord(c) for c in json.dumps(obj)])
decoded = json.loads(''.join([chr(n) for n in json.loads(encoded)]))
The double-encoding ensures that non-ASCII characters don't make it
For quite some time we had 2.7.4 and 3.2.4 planned on Python release calendar
and both scheduled for Feb 16th (last weekend). However they are not released
and also not scheduled for the future.
Are we going to have these releases ? Postponed or cancelled ?
--
On 23-2-2013 16:45, Paul Moore wrote:
I need to transfer some data (nothing fancy, some dictionaries, strings,
numbers and
lists, basically) between 2 Python processes. However, the data (string
values) is
potentially not ASCII, but the transport is (I'm piping between 2 processes,
but
Paul Moore writes:
I need to transfer some data (nothing fancy, some dictionaries,
strings, numbers and lists, basically) between 2 Python
processes. However, the data (string values) is potentially not
ASCII, but the transport is (I'm piping between 2 processes, but
thanks to nasty
On 23/02/2013 16:03, Perica Zivkovic wrote:
For quite some time we had 2.7.4 and 3.2.4 planned on Python release calendar
and both scheduled for Feb 16th (last weekend). However they are not released
and also not scheduled for the future.
Are we going to have these releases ? Postponed or
On Saturday, February 23, 2013 10:19:29 AM UTC-6, Mark Lawrence wrote:
On 23/02/2013 16:03, Perica Zivkovic wrote:
For quite some time we had 2.7.4 and 3.2.4 planned on Python release
calendar and both scheduled for Feb 16th (last weekend). However they are
not released and also not
On 02/23/2013 07:51 AM, Chris Angelico wrote:
Steve, why do you say you're not a developer? A score of languages
under your belt, choosing to write code in your spare time, and
speaking competently on the comparative merits of different languages
and why you made the decision you made - sounds
On Saturday 23 February 2013 12:03:00 Ethan Furman did opine:
On 02/23/2013 07:51 AM, Chris Angelico wrote:
Steve, why do you say you're not a developer? A score of languages
under your belt, choosing to write code in your spare time, and
speaking competently on the comparative merits of
On 23/02/2013 16:51, Chris Angelico wrote:
Steve, why do you say you're not a developer? A score of languages
under your belt, choosing to write code in your spare time, and
speaking competently on the comparative merits of different languages
and why you made the decision you made - sounds
On 2013-02-23 15:30, Devin Jeanpierre wrote:
On Sat, Feb 23, 2013 at 10:26 AM, Devin Jeanpierre
jeanpierr...@gmail.com wrote:
However, regex has the same behavior.
My apologies, I forgot to set the VERSION1 flag.
Interesting. 'ss' matches 'ß', but 's+' does not.
Is this desirable behavior?
On Sat, Feb 23, 2013 at 12:41 PM, MRAB pyt...@mrabarnett.plus.com wrote:
Getting full case folding to work can be tricky. There's always going to
be a limit to what's worth doing.
There are also areas where it's not clear what the result should be.
You've already mentioned matching 's'
On 23/02/2013 18:32, Gene Heskett wrote:
I am here because I was hoping some knowledge leakage would help me to
understand python, but at my age I am beginning to have to admit the
level of abstraction is something I may never fully grok. If I ever
find a python book that literally starts at
On 2013-02-23 17:51, Devin Jeanpierre wrote:
On Sat, Feb 23, 2013 at 12:41 PM, MRAB pyt...@mrabarnett.plus.com
wrote:
Getting full case folding to work can be tricky. There's always
going to be a limit to what's worth doing.
There are also areas where it's not clear what the result should
be.
I am using Ubuntu 12.10, and Python 2.7.3, GNU Radio Companion v3.6.3. I get
the this error in terminal:
in __init__
self.wxgui_waterfallsink2_0.set_callback(wxgui_waterfallsink2_0_callback)
File /usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py,
line 54, in __getattr__
On 02/21/2013 02:26 PM, Piterrr wrote:
Hi folks. I am a long time C sharp dev, just learning Python now due
to job requirements. My initial impression is that Python has got to
be the most ambiguous and vague language I have seen to date. I have
major issues with the fact that white space
In reply to my own question, postgres column names must begin with a letter or
an underscore. So this is what I have done:
for row in cursor_from:
... if row[8]:
... stn_list_short.append(_ + row[0])
I can now use stn_list_short to create my columns
--
On 23 fév, 16:43, Steve Simmons square.st...@gmail.com wrote:
On 22/02/2013 22:37, piterrr.dolin...@gmail.com wrote: So far I am getting
the impression
...
My main message to you would be : don't approach Python with a negative
attitude, give it a chance and I'm sure you'll come to enjoy
On Sat, Feb 23, 2013 at 1:12 PM, MRAB pyt...@mrabarnett.plus.com wrote:
The basic rule is that a series of characters in the regex must match a
series of characters in the text, with no partial matches in either.
For example, 'ss' can match 'ß', but 's' can't match 'ß' because that
would be
On 02/21/2013 04:34 PM, piterrr.dolin...@gmail.com wrote:
Thanks for this. Regarding ambiguity, you will never find me write
ambiguous code. I don't sabotage my own work. But the reality is
that in addition to writing my own code, I have to maintain existing.
I find it incredibly confusing
On Saturday, 23 February 2013 16:06:11 UTC, Jussi Piitulainen wrote:
I don't know much of these things but I've been using Python's
json.dump and json.load for a couple of weeks now and they seem to use
ASCII-friendly escapes automatically, writing a four-character string
as \u00e4\u00e4ni
On Sat, Feb 23, 2013 at 11:44 AM, jmfauth wxjmfa...@gmail.com wrote:
Until you realize this:
Py32:
timeit.timeit('abc需')
0.032749386495456466
sys.getsizeof('abc需')
42
Py33:
timeit.timeit('abc需')
0.04104208536801017
sys.getsizeof('abc需')
50
Very easy to explain: wrong,
On 02/23/2013 11:44 AM, jmfauth wrote:
Very easy to explain: wrong, incorrect, naive unicode
handling.
You should get together with ranging rick so that his python fork can
have unicode done properly then.
--
http://mail.python.org/mailman/listinfo/python-list
On 02/23/2013 11:10 AM, Steve Simmons wrote:
I'm using Rapid GUI Programming with Python Qt (Mark Summerfield ISBN
978-0-13-235418-9) - it fits for me because I needed something that
covered GUI development but also had an intro to the language.
Sounds fun. One thing about PyQt is that
On 02/23/2013 10:44 AM, jmfauth wrote:
[snip various stupidities]
jmf
Peter, jmfauth is one of our resident trolls. Feel free to ignore him.
--
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list
On 02/22/2013 02:37 PM, piterrr.dolin...@gmail.com wrote:
Thanks to everyone for all the posts, some friendly some not. I read
all of them with genuine interest.
I just finished reading this entire thread and I don't see any posts
that are unfriendly. Perhaps some of them are calling you on
In article 9d5b3646-2952-49a1-b8ad-3b44d37ea...@googlegroups.com,
Perica Zivkovic perica.zivko...@gmail.com wrote:
Any ideas on timelines? I was waiting on this to push out another Portable
Python release.
I suggest asking on the python-dev list. There have been no announced
new release
On 2013-02-23 18:57, Devin Jeanpierre wrote:
On Sat, Feb 23, 2013 at 1:12 PM, MRAB pyt...@mrabarnett.plus.com
wrote:
The basic rule is that a series of characters in the regex must
match a series of characters in the text, with no partial matches
in either.
For example, 'ss' can match 'ß', but
On 23 fév, 20:08, Ethan Furman et...@stoneleaf.us wrote:
On 02/23/2013 10:44 AM, jmfauth wrote:
[snip various stupidities]
jmf
Peter, jmfauth is one of our resident trolls. Feel free to ignore him.
--
~Ethan~
Sorry, what can say?
More memory and slow down!
If you see a progress, I'm
On Sun, Feb 24, 2013 at 5:29 AM, Dennis Lee Bieber
wlfr...@ix.netcom.com wrote:
Error codes under DEC VAX/VMS used odd integers for
success/information and even integers for warning/error (been too
many years, I think positive integers were success/warning, negative
integers were
On Sun, Feb 24, 2013 at 5:34 AM, Dennis Lee Bieber
wlfr...@ix.netcom.com wrote:
On Sat, 23 Feb 2013 13:18:56 +1100, Chris Angelico ros...@gmail.com
declaimed the following in gmane.comp.python.general:
awesome Fred's Awesome Internet Language is, it's not going to be as
Pardon, but
On Sun, Feb 24, 2013 at 7:53 AM, jmfauth wxjmfa...@gmail.com wrote:
On 23 fév, 20:08, Ethan Furman et...@stoneleaf.us wrote:
On 02/23/2013 10:44 AM, jmfauth wrote:
[snip various stupidities]
jmf
Peter, jmfauth is one of our resident trolls. Feel free to ignore him.
--
~Ethan~
Sorry,
On Sun, Feb 24, 2013 at 5:22 AM, matt.doolittl...@gmail.com wrote:
I am using Ubuntu 12.10, and Python 2.7.3, GNU Radio Companion v3.6.3. I get
the this error in terminal:
in __init__
self.wxgui_waterfallsink2_0.set_callback(wxgui_waterfallsink2_0_callback)
File
Hi,
Okey i will change the function name :) Do you have any suggestion to
generate the weight at run time rather than hard coding it...
-- Forwarded message --
From: Dennis Lee Bieber wlfr...@ix.netcom.com
To: python-list@python.org
Cc:
Date: Sat, 23 Feb 2013 14:03:23 -0500
On Saturday 23 February 2013 17:44:21 Steve Simmons did opine:
On 23/02/2013 18:32, Gene Heskett wrote:
I am here because I was hoping some knowledge leakage would help me to
understand python, but at my age I am beginning to have to admit the
level of abstraction is something I may never
On 02/23/2013 02:38 PM, Chris Angelico wrote:
On Sun, Feb 24, 2013 at 5:29 AM, Dennis Lee Bieber
wlfr...@ix.netcom.com wrote:
Error codes under DEC VAX/VMS used odd integers for
success/information and even integers for warning/error (been too
many years, I think positive integers
Here is one general and one specific question about creating GUIs using tkinter
from a newbie. I have created a class in which to hold some data. I want to
create a GUI to get the data from the user and store it in the object.
Browsing the web I see that a lot of examples on GUIs have the
On 02/21/2013 03:40 PM, piterrr.dolin...@gmail.com wrote:
Chris, you are (almost) spot on with the if blocks indentation. This
is what I do, and it has served me well for 15 years.
Most companies, development teams have unified coding style standards
that all programmers must adhere to in the
On Sun, Feb 24, 2013 at 9:52 AM, Michael Torrie torr...@gmail.com wrote:
On 02/23/2013 02:38 PM, Chris Angelico wrote:
On Sun, Feb 24, 2013 at 5:29 AM, Dennis Lee Bieber
wlfr...@ix.netcom.com wrote:
Error codes under DEC VAX/VMS used odd integers for
success/information and even
Hi all,
(Ethan, I like your resident troll statement. Highly exit-aining!)
Thanks for all the input. I did not expect to get so much constructive
feedback, the more so that my initial attitude towards Python has been less
than positive, diplomatically speaking.
Yes, it's true that I am trying
On 23/02/2013 21:48, Chris Angelico wrote:
On Sun, Feb 24, 2013 at 7:53 AM, jmfauth wxjmfa...@gmail.com wrote:
On 23 fév, 20:08, Ethan Furman et...@stoneleaf.us wrote:
On 02/23/2013 10:44 AM, jmfauth wrote:
[snip various stupidities]
jmf
Peter, jmfauth is one of our resident trolls. Feel
On 2013-02-23 23:18, Chris Angelico wrote:
On Sun, Feb 24, 2013 at 9:52 AM, Michael Torrie torr...@gmail.com wrote:
On 02/23/2013 02:38 PM, Chris Angelico wrote:
On Sun, Feb 24, 2013 at 5:29 AM, Dennis Lee Bieber
wlfr...@ix.netcom.com wrote:
Error codes under DEC VAX/VMS used odd
Date: Sat, 23 Feb 2013 10:22:54 -0800
Subject: AttributeError: ' ' object has no attribute ' '
From: matt.doolittl...@gmail.com
To: python-list@python.org
I am using Ubuntu 12.10, and Python 2.7.3, GNU Radio Companion v3.6.3. I get
the this error in terminal:
in __init__
Thanks all!
I believe C# appears to be a better language for this type of GUI creation.
Better Listview Express has a tonne of options.
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Feb 24, 2013 at 1:18 PM, Xx7 ...@gmail.com wrote:
Thanks all!
I believe C# appears to be a better language for this type of GUI creation.
Better Listview Express has a tonne of options.
No probs, glad that's settled. I hope that when you ask the C# people
for help, you provide
On 2/23/2013 1:14 PM, Alec Taylor wrote:
PEP257 defines docstring syntax,
It suggest a docstring format, which is not religiously followed even in
the stdlib. It explicitly disclaims being 'the law'. Do what works for you.
--
Terry Jan Reedy
--
yeah im not a programmer, i have not wrote anything here that i am trying to
use; i am an end user. my only interest in this code is to get the program
working. so i have to do what i have to do try to get it working. im just
hoping that what im going through here, this error thats coming up
On 02/23/2013 07:18 PM, Xx7 wrote:
Thanks all!
I believe C# appears to be a better language for this type of GUI
creation. Better Listview Express has a tonne of options.
It's a common misconception that a language has anything to do with a
GUI. I know of at least 3 different GUI
On 02/23/2013 03:46 PM, piterrr.dolin...@gmail.com wrote:
Hi all,
snip
... I have discovered today there is no do...while type loop. [Sigh]
No biggie. This is easily simulated with:
while True:
...
if exit condition:
break
Less easily simulated is the lack of a
thank you :)it worked well for small file but when i enter big file,, i obtain
this error:
Traceback (most recent call last):
File D:\Python27\yarab (4).py, line 46, in module
writer.add_document(**doc)
File build\bdist.win32\egg\whoosh\filedb\filewriting.py, line 369, in
add_document
On 02/23/2013 04:46 PM, piterrr.dolin...@gmail.com wrote:
Yes, it's true that I am trying to write C# code in Python. It is not
going to change any time soon, if at all - I have done too much
C#ing, C++ing before that and C-ing earlier still.
Unfortunately as long as do, you'll find Python a
Ezio Melotti added the comment:
I tried to reproduce the issue and copied
/usr/share/zoneinfo/posix/Asia/Calcutta to /etc/localtime as suggested in
msg134382, but test_imaplib passes on 2.7/3.2/3.3/3.4.
I wrote a C program to test the output of mktime:
$ cat mk.c
#include stdio.h
#include
Dan added the comment:
Guys, this looks really bad and inconveniences a lot of users. You install the
latest MinGW and Distutils from their default location, try using them on
**anything that requires compilation**, and get the cryptic gcc -mno-cygwin
error (after having to edit the obscure
Eric V. Smith added the comment:
I've just looked through the code for 2.7. It uses short float repr for both
%-formatting and for float.__format__. So they both use Gay's code, and both
should work the same as they do in 3.2+. In all cases, round-half-to-even is
used.
It's 2.6 that uses the
Dirkjan Ochtman added the comment:
I guess option 3 would be the best (in that people get more usable libraries).
Option 2 seems okay as well. I don't much like 1 or 4.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10213
Nick Coghlan added the comment:
+1 for Remove instead of Removes
For the online docs, :const:`__debug__` should work (resolving to
http://docs.python.org/3/library/constants.html#__debug__, which is currently
described using some slightly brain-bending phrasing)
We should also tweak the
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17267
___
___
Python-bugs-list mailing
Charles-François Natali added the comment:
Alright, here's what's going on.
When the main thread exits, it triggers the interpreter shutdown, which clears
all the tstates in PyInterpreterState_Clear():
void
PyInterpreterState_Clear(PyInterpreterState *interp)
{
PyThreadState *p;
Antoine Pitrou added the comment:
Albert, this happens because daemon threads continue running during interpreter
shutdown. I suppose the problem goes away if you make the thread non-daemonic?
This shouldn't be a problem in Python 3 where Python threads cannot switch
during shutdown.
Charles-François Natali added the comment:
This shouldn't be a problem in Python 3 where Python threads cannot switch
during shutdown.
What happens if the GIL is relased during shutdown?
Also, I'm a bit worried about this code:
void
PyThreadState_Clear(PyThreadState *tstate)
{
if
Carlo Bramini added the comment:
I have downloaded the latest sources with HG and, with the only exception of
the variable cookie now conditionally declared with an #ifdef HAVE_SXS,
yes, all these fixes are still actual.
--
status: pending - open
Charles-François Natali added the comment:
I'm closing, since issue #17025 proposes to do this as part of performance
optimization.
--
nosy: +neologix
status: open - closed
superseder: - reduce multiprocessing.Queue contention
___
Python tracker
Antoine Pitrou added the comment:
What happens if the GIL is relased during shutdown?
In PyEval_RestoreThread(), any thread other than the main thread trying to take
the GIL will immediately exit:
take_gil(tstate);
if (_Py_Finalizing tstate != _Py_Finalizing) {
Roumen Petrov added the comment:
yes
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10560
___
___
Python-bugs-list mailing list
Unsubscribe:
Roumen Petrov added the comment:
Dan added the comment:
Guys, this looks really bad and inconveniences a lot of users. You install
the latest MinGW and Distutils from their default location, try using them on
**anything that requires compilation**, and get the cryptic gcc -mno-cygwin
Changes by Antoine Pitrou pit...@free.fr:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5033
___
___
Eli Bendersky added the comment:
+1, I've been bothered by this description of optimization for a long time.
Terry's patch LGTM
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17232
New submission from Alex:
1. I created file (C:\Users\Alkor\Desktop\a3434.raw) on my desktop
2. Tried to get the file name from the absolute path
Actual result:
C:\Users\Alkorpython
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on
win32
Type help, copyright,
STINNER Victor added the comment:
print os.path.basename (C:\Users\Alkor\Desktop\a3434.raw)
Ah, it's a common trap of the Python syntax (and PHP, and C, and ...
languages). \ is a special character, you have to escape it: \\.
C:\\Users\\Alkor\\Desktop\\a3434.raw
or simply use the raw string
STINNER Victor added the comment:
-HINSTANCE hKernel32 = GetModuleHandleW(Lkernel32.dll);
+HINSTANCE hKernel32 = GetModuleHandle(TEXT(KERNEL32));
I prefer to be explicit and force the usage of the wide character API,
espacially in Python 3.
--
nosy: +haypo
Maciej Fijalkowski added the comment:
Also IMO -OO should stop talking about optimizations. Maybe Do what -O does
and discard docstrings?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17232
Ramchandra Apte added the comment:
+1000
--
nosy: +Ramchandra Apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2704
___
___
Python-bugs-list
Mark Dickinson added the comment:
Thanks, Ezio; I didn't get around to dealing with this as quickly as I meant
to.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15438
___
Albert Zeyer added the comment:
Note that in my original application where I encountered this (with sqlite),
the backtrace looks slightly different. It is at shutdown, but not at
interpreter shutdown - the main thread is still running.
https://github.com/albertz/music-player/issues/23
I was
1 - 100 of 222 matches
Mail list logo