-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm happy to announce the release of Pygments 2.0.
Pygments is a generic syntax highlighter written in Python.
There is a lot of news in the 2.0 release, please have a look at the
changelog http://pygments.org/docs/changelog.
There are over 50 new
Hi,
We are happy to announce Pint 0.6. Pint is a Python package to define,
operate and manipulate physical quantities: the product of a numerical
value and a unit of measurement.
Check out the blog post for more details about this release:
Hi,
Why do I get different output for locale.getlocale() in Idle vs. cmd.exe?
# IDLE
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on
win32
Type copyright, credits or license() for more information.
import locale
locale.getdefaultlocale()
('nl_NL', 'cp1252')
Hey,
I've been using the latest mac ppc/i386 binaries from python.org
(https://www.python.org/ftp/python/2.7.8/python-2.7.8-macosx10.5.dmg).
From what I can tell this version is linked against a pretty old
version of OpenSSL (OpenSSL 0.9.7l 28 Sep 2006) which doesn't seem to
be able to handle new
My kids want to celebrate Halloween party at one of the best party venue. Can
you please help us and recommend me best Halloween party nyc
https://www.toshislivingroom.com/t/best-halloween-party-nyc.php with
good food supplies arrangements?
--
View this message in context:
I don't understand the following phenomenon. Could someone kindly
explain it? Thanks in advance.
M. K. Shen
-
count=5
def test():
print(count)
if count==5:
count+=0 ### Error message if this line is active, otherwise ok.
On Mon, 10 Nov 2014 12:07:58 +0100, Mok-Kong Shen wrote:
I don't understand the following phenomenon. Could someone kindly
explain it? Thanks in advance.
M. K. Shen
-
count=5
def test():
print(count)
if count==5:
count+=0
On Sun, 09 Nov 2014 17:49:29 -0800, Syed Khalid wrote:
Albert,
Code is not removing empty lines containing blank characters and not
removing leading and trailing spaces present in each line.
import glob, codecs, re, os
regex = re.compile(rAge: |Sex: |House No: ) # etc etc
My crystal ball is currently in for repair and is not expected back in
the foreseeable future.
Without a crystal ball, this prediction might be not well founded.
--
https://mail.python.org/mailman/listinfo/python-list
You may want to read:
https://docs.python.org/3/faq/programming.html?highlight=global#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value
from the Python docs Programming FAQ section.
It explains your problem pretty well.
As others have hinted at, always provide concrete Python
In article i0h06a9pj8h3olo5rnrgc64i7ckpvtv...@4ax.com,
Steve Hayes hayes...@telkomsa.net wrote:
I have a book on Python that advocates dividing programs into modules, and
importing them when needed.
Yes, this is a good idea. Breaking your program down into modules, each
of which does a
On Tue, Nov 11, 2014 at 12:36 AM, Roy Smith r...@panix.com wrote:
Yes, exactly. When you deploy your application someplace, you need to
include all the things it depends on. In the simple case of a few
python files (say, a main program and a few modules that you're
written), the easiest
On Mon, Nov 10, 2014 at 6:39 AM, Wolfgang Maier
wolfgang.ma...@biologie.uni-freiburg.de wrote:
You may want to read:
https://docs.python.org/3/faq/programming.html?highlight=global#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value
from the Python docs Programming FAQ
On 2014-11-10, David Palao dpalao.pyt...@gmail.com wrote:
My crystal ball is currently in for repair and is not expected back
in the foreseeable future.
Without a crystal ball, this prediction might be not well founded.
That isn't a prediction. It's an explicit statement of no prediction.
On Tue, Nov 11, 2014 at 1:35 AM, Joel Goldstick
joel.goldst...@gmail.com wrote:
Your problem is that count is not local. You are reading count from
an outer scope. When you try to increment count in your function, it
can't because it doesn't exist.
Don't use globals.
False analysis, I'm
On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote:
On 2014-11-10, David Palao dpalao.pyt...@gmail.com wrote:
My crystal ball is currently in for repair and is not expected back in
the foreseeable future.
Without a crystal ball, this prediction might be not well founded.
That isn't
On Mon, 10 Nov 2014 14:54:55 +, alister wrote:
On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote:
On 2014-11-10, David Palao dpalao.pyt...@gmail.com wrote:
My crystal ball is currently in for repair and is not expected back
in the foreseeable future.
Without a crystal ball,
Joel Goldstick wrote:
On Mon, Nov 10, 2014 at 6:39 AM, Wolfgang Maier
wolfgang.ma...@biologie.uni-freiburg.de wrote:
You may want to read:
https://docs.python.org/3/faq/programming.html?highlight=global#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value
from the Python
On Mon, Nov 10, 2014 at 9:54 AM, Chris Angelico ros...@gmail.com wrote:
On Tue, Nov 11, 2014 at 1:35 AM, Joel Goldstick
joel.goldst...@gmail.com wrote:
Your problem is that count is not local. You are reading count from
an outer scope. When you try to increment count in your function, it
On 2014-11-10, alister alister.nospam.w...@ntlworld.com wrote:
On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote:
On 2014-11-10, David Palao dpalao.pyt...@gmail.com wrote:
My crystal ball is currently in for repair and is not expected back in
the foreseeable future.
Without a
On Tue, Nov 11, 2014 at 3:11 AM, Grant Edwards invalid@invalid.invalid wrote:
I know, but in c.l.p, even jokes get nicely pednatic answers.
And in c.l.p, odd jokes get even more pedantic spelling corrections.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
Ben Finney wrote:
Steve Dower steve.do...@microsoft.com writes:
Ben Finney wrote:
The restrictions of the license terms make MS Windows an
unacceptable risk on any machine I'm responsible for.
Just out of interest, which restrictions would those be?
It has been a long time since I
On 11/09/2014 11:44 AM, satishmlm...@gmail.com wrote:
What does zip return in the following piece of code?
To help you understanding what is the `zip` builtin,
please forget about PKZip etc and think about the
_zip fastener_ or _zipper_ in your bag or in your trousers
In the bag you have two
On 2014-11-10, giacomo boffi giacomo_bo...@inwind.it wrote:
On 11/09/2014 11:44 AM, satishmlm...@gmail.com wrote:
What does zip return in the following piece of code?
To help you understanding what is the `zip` builtin, please forget
about PKZip etc and think about the _zip fastener_ or
Hi, I do agree with
Raymond H. about the relative merits of cmp= and key= in
sort/sorted, but I decided to also not let natural uses of cmp= pass silently.
In answering this question,
Please help me this assignment is due in an hour. Don't give me hints, just
give me the answer because I only want a grade. I'm not actually interested in
learning how to program, but I know software engineers make lots of money so I
want to be one.
--
Paddy wrote:
Hi, I do agree with
Raymond H. about the relative merits of cmp= and key= in
sort/sorted, but I decided to also not let natural uses of cmp= pass
silently.
In answering this question,
sohcahto...@gmail.com wrote:
Please help me this assignment is due in an hour. Don't give me hints,
just give me the answer because I only want a grade. I'm not actually
interested in learning how to program, but I know software engineers make
lots of money so I want to be one.
I'm sorry I
On Mon, Nov 10, 2014 at 12:19 PM, Peter Otten __pete...@web.de wrote:
I'm not sure this works. I tried:
Here's a simpler failure case.
ineq = f2 f3
... f3 f1
[Previously posted code elided]
greater_thans
set([('f3', 'f1'), ('f2', 'f3')])
sorted(all_f, cmp=lambda t1, t2: 0 if t1==t2 else
In article mailman.15627.1415636743.18130.python-l...@python.org,
Chris Angelico ros...@gmail.com wrote:
On Tue, Nov 11, 2014 at 3:11 AM, Grant Edwards invalid@invalid.invalid
wrote:
I know, but in c.l.p, even jokes get nicely pednatic answers.
And in c.l.p, odd jokes get even more
In article b509998d-c547-4638-8810-0388c0894...@googlegroups.com,
sohcahto...@gmail.com wrote:
Please help me this assignment is due in an hour. Don't give me hints, just
give me the answer because I only want a grade. I'm not actually interested
in learning how to program, but I know
My name is Charles Weitzer. I do recruiting for machine learning teams
worldwide. One of my clients is a startup quantitative hedge
fund located in Northern, California. The founders previous worked together at
one of the most successful quantitative hedge funds
in the world in New York City.
On Mon, Nov 10, 2014 at 2:49 PM, Roy Smith r...@panix.com wrote:
In article b509998d-c547-4638-8810-0388c0894...@googlegroups.com,
sohcahto...@gmail.com wrote:
Please help me this assignment is due in an hour. Don't give me hints, just
give me the answer because I only want a grade. I'm
On 10/11/2014 19:24, Peter Otten wrote:
sohcahto...@gmail.com wrote:
Please help me this assignment is due in an hour. Don't give me hints,
just give me the answer because I only want a grade. I'm not actually
interested in learning how to program, but I know software engineers make
lots of
On 10/11/2014 11:31, David Palao wrote:
My crystal ball is currently in for repair and is not expected back in
the foreseeable future.
Without a crystal ball, this prediction might be not well founded.
Especially in the future when sombody asks Who the hell was he replying
to?.
--
My
On 11/10/2014 11:59 AM, Larry Martell wrote:
On Mon, Nov 10, 2014 at 2:49 PM, Roy Smith r...@panix.com wrote:
In article b509998d-c547-4638-8810-0388c0894...@googlegroups.com,
sohcahto...@gmail.com wrote:
Please help me this assignment is due in an hour. Don't give me hints, just
give me
On 2014-11-10 20:08, Mark Lawrence wrote:
On 10/11/2014 11:31, David Palao wrote:
My crystal ball is currently in for repair and is not expected
back in the foreseeable future.
Without a crystal ball, this prediction might be not well founded.
Especially in the future when sombody
On 11/10/2014 4:22 AM, Albert-Jan Roskam wrote:
Hi,
Why do I get different output for locale.getlocale() in Idle vs. cmd.exe?
# IDLE
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on
win32
Type copyright, credits or license() for more information.
import locale
Grant Edwards wrote:
What the zipper on a coat does is convert two separate sequences into
a single sequence where the members alternate between the two input
sequences.
True, the zipper analogy isn't quite accurate. It's
hard to think of an equally concise and suggestive
name, however.
--
On 2014-11-10, sohcahto...@gmail.com sohcahto...@gmail.com wrote:
Please help me this assignment is due in an hour. Don't give me
hints, just give me the answer because I only want a grade. I'm not
actually interested in learning how to program, but I know software
engineers make lots of
On 10Nov2014 17:19, Grant Edwards invalid@invalid.invalid wrote:
On 2014-11-10, giacomo boffi giacomo_bo...@inwind.it wrote:
To help you understanding what is the `zip` builtin, please forget
about PKZip etc and think about the _zip fastener_ or _zipper_ in
your bag or in your trousers
In the
On Mon, 10 Nov 2014 10:56:18 -0800, sohcahtoa82 wrote:
... I know software engineers
make lots of money so I want to be one.
I hear that pretty boy male escorts can make even more money than
software engineers.
They also don't need to learn how to program, which is something software
On Monday, November 10, 2014 1:01:05 PM UTC-8, Grant Edwards wrote:
On 2014-11-10, sohcahtoa82 sohcahtoa82 wrote:
Please help me this assignment is due in an hour. Don't give me
hints, just give me the answer because I only want a grade. I'm not
actually interested in learning how to
On Mon, Nov 10, 2014 at 2:45 PM, sohcahto...@gmail.com wrote:
On Monday, November 10, 2014 1:01:05 PM UTC-8, Grant Edwards wrote:
On 2014-11-10, sohcahtoa82 sohcahtoa82 wrote:
Please help me this assignment is due in an hour. Don't give me
hints, just give me the answer because I only
In article
CACgdh2iG9+cLjj7mZ7qeALQd==pcrknnv8i_eerj6ahjvg3...@mail.gmail.com,
Paul Wiseman poal...@gmail.com wrote:
I've been using the latest mac ppc/i386 binaries from python.org
(https://www.python.org/ftp/python/2.7.8/python-2.7.8-macosx10.5.dmg).
From what I can tell this version is
On 2014-11-10 20:16, Ethan Furman wrote:
On 11/10/2014 11:59 AM, Larry Martell wrote:
On Mon, Nov 10, 2014 at 2:49 PM, Roy Smith r...@panix.com wrote:
In article b509998d-c547-4638-8810-0388c0894...@googlegroups.com,
sohcahto...@gmail.com wrote:
Please help me this assignment is due in an
What does ?P and part1 match in the following piece of code?
re.search('(?Ppart1\w*)/(?Ppart2\w*)', '...aaa/bbb/ccc]').groups()
--
https://mail.python.org/mailman/listinfo/python-list
satishmlm...@gmail.com writes:
What does ?P and part1 match in the following piece of code?
Learn about Python's regular expression features from the documentation
URL:https://docs.python.org/3/library/re.html.
Experiment with regular expressions using online tools such as
On 11/10/2014 3:36 PM, Cameron Simpson wrote:
On 10Nov2014 17:19, Grant Edwards invalid@invalid.invalid wrote:
On 2014-11-10, giacomo boffi giacomo_bo...@inwind.it wrote:
To help you understanding what is the `zip` builtin, please forget
about PKZip etc and think about the _zip fastener_ or
On Monday, 10 November 2014 19:44:39 UTC, Ian wrote:
On Mon, Nov 10, 2014 at 12:19 PM, Peter Otten xxx@yyy wrote:
I'm not sure this works. I tried:
Here's a simpler failure case.
ineq = f2 f3
... f3 f1
[Previously posted code elided]
greater_thans
set([('f3', 'f1'), ('f2',
On Monday, 10 November 2014 18:45:15 UTC, Paddy wrote:
Hi, I do agree with
Raymond H. about the relative merits of cmp= and key= in
sort/sorted, but I decided to also not let natural uses of cmp= pass silently.
In
On Mon, Nov 10, 2014 at 8:09 PM, Paddy paddy3...@gmail.com wrote:
On Monday, 10 November 2014 18:45:15 UTC, Paddy wrote:
Hi, I do agree with
Raymond H. about the relative merits of cmp= and key= in
sort/sorted, but I
On Sat, Nov 8, 2014 at 3:31 PM, Gregory Ewing
greg.ew...@canterbury.ac.nz wrote:
(BTW, I'm actually surprised that this technique makes c callable.
There must be more going on that just look up __call__ in the class
object, because evaluating C.__call__ just returns the descriptor
and doesn't
On Tuesday, 11 November 2014 06:37:18 UTC, Ian wrote:
On Mon, Nov 10, 2014 at 8:09 PM, Paddy paddyxxx-at-xmail.com wrote:
On Monday, 10 November 2014 18:45:15 UTC, Paddy wrote:
Hi, I do agree with
Raymond H. about
Roundup Robot added the comment:
New changeset fc7dbba57869 by Serhiy Storchaka in branch 'default':
Issue #22434: Constants in sre_constants are now named constants (enum-like).
https://hg.python.org/cpython/rev/fc7dbba57869
--
nosy: +python-dev
___
Serhiy Storchaka added the comment:
The repr of empty array() should be fixed too.
--
nosy: +serhiy.storchaka
Added file: http://bugs.python.org/file37165/issue22824_3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22824
Wolfgang Langner added the comment:
expandvars(), and expanduser() is part of os.path.
Boot functions are needed for path objects and very useful.
And yes it is a simple string substitution but very common.
--
nosy: +tds333
___
Python tracker
Wolfgang Langner added the comment:
Why not implement this pattern with
def dirs(pattern)
and
def files(pattern)
where both are a simple shortcut for
(p for p in mypath.glob(pattern) if p is_file())
or is_dir()
?
--
nosy: +tds333
___
Python
Roundup Robot added the comment:
New changeset 61e99438c237 by Serhiy Storchaka in branch '2.7':
Issue #22821: Fixed fcntl() with integer argument on 64-bit big-endian
https://hg.python.org/cpython/rev/61e99438c237
New changeset 45e8aed69767 by Serhiy Storchaka in branch '3.4':
Issue #22821:
Serhiy Storchaka added the comment:
Fixed in 3.5 as part of 6e6532d313a1 as it was easier to integrate it as
part of the Clinic patch.
6e6532d313a1 has introduced other bug (l was parsed to int). Changed to I
for reasons described in the comment in fcntl_ioctl_impl().
--
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
resolution: - fixed
stage: commit review - resolved
status: open - closed
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
Ronald Oussoren added the comment:
The environment variable itself cannot be removed from CPython, it is necessary
to implement the correct behavior of pyvenv with framework builds of Python.
That said, I do think that the environment variable should be unset as soon as
possible in the
Michael Foord added the comment:
The point is that it is easy to have unintentional dependencies between tests.
Test a sets up some state that test b relies on. This means that test b passes,
so long as test a has already run. This is bad, tests should be isolated - it
also means you can
Michael Foord added the comment:
mock in the Python standard library is licensed under the PSF license.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22827
___
New submission from Florian Bruhin:
When there's an unraisable exception (e.g. in __del__), and there's an
exception in __repr__ as well, PyErr_WriteUnraisable returns after writing
Exception ignored in: immediately.
I'd expect it to fall back to the default __repr__ instead.
See the
Roundup Robot added the comment:
New changeset 4caa695af94c by Serhiy Storchaka in branch '2.7':
Issue #12728: Different Unicode characters having the same uppercase but
https://hg.python.org/cpython/rev/4caa695af94c
New changeset 47b3084dd6aa by Serhiy Storchaka in branch '3.4':
Issue #12728:
Serhiy Storchaka added the comment:
This solution (with hardcoded table of equivalent lowercases) is temporary. In
future re engine will be changed to support correct caseless matching of
different lowercase forms internally.
--
resolution: - fixed
stage: patch review - resolved
Ezio Melotti added the comment:
LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22578
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Florian Bruhin:
When using getpass.getpass() on Windows and typing a tilde (~) with a layout
with dead keys (e.g. Swiss German), one would typically type ~ to get a
single tilde.
However, this returns '\x00\x83~' with getpass. It seems this is what
msvcrt.getch()
Martin Panter added the comment:
This is one that has often bugged me. When your repr() implementation is
broken, it is quite confusing figuring out what is going wrong. Falling back to
object.__repr__() is one option, however I would probably be happy with a
simple “exception in repr()”
Changes by Robert Muil robertm...@gmail.com:
--
nosy: +robertmuil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21724
___
___
Python-bugs-list
Changes by Florian Bruhin python@the-compiler.org:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22836
___
___
Changes by Florian Bruhin python@the-compiler.org:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22837
___
___
Roundup Robot added the comment:
New changeset 292c4d853662 by Serhiy Storchaka in branch 'default':
Issue #22578: Added attributes to the re.error class.
https://hg.python.org/cpython/rev/292c4d853662
--
nosy: +python-dev
___
Python tracker
Michael Foord added the comment:
I agree with Robert that the text output of the default runner should not be
considered a part of the api that we make backwards compatible guarantees
about. People who want to customise that should be customising the text
runner/result. (Unfortunately it
Roundup Robot added the comment:
New changeset 07f082b200a7 by Serhiy Storchaka in branch 'default':
Fixed IDLE tests after changing re error messages (issue #22578).
https://hg.python.org/cpython/rev/07f082b200a7
--
___
Python tracker
Petr Viktorin added the comment:
ping, could someone please review the patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22198
___
___
Serhiy Storchaka added the comment:
Thank you Ezio for your review.
--
assignee: - serhiy.storchaka
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22578
Florian Bruhin added the comment:
Maybe this is related: U+0083 is the no break here char:
http://www.fileformat.info/info/unicode/char/0083/index.htm
http://en.wikipedia.org/wiki/C0_and_C1_control_codes#C1_set
From wikipedia: Follows the graphic character that is not to be broken.
--
R. David Murray added the comment:
This is a duplicate of issue 6302. Re-reading that issue (again), I'm not
quite sure why we didn't fix it, but it may be too late to fix it now for
backward compatibility reasons.
Since that issue strayed off into other topics, I'm going to leave this one
R. David Murray added the comment:
Looks like importlib doesn't handle the case of a directory on the path being
deleted? If so, I'm surprised this hasn't been reported before.
--
nosy: +brett.cannon, eric.snow, r.david.murray
___
Python tracker
R. David Murray added the comment:
If you haven't updated Python, then it is hard to see how this could be a
python bug. Not impossible, but you'll have to narrow down the problem before
you'd be able to demonstrate it as a python bug, I'm afraid.
If you want help diagnosing this, you might
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22836
___
___
Serhiy Storchaka added the comment:
Here is a patch which makes re error messages match regex. It doesn't look to
me that all these changes are enhancements.
--
keywords: +patch
Added file: http://bugs.python.org/file37167/re_errors_regex.patch
___
New submission from Serhiy Storchaka:
Current re tests consists of two parts. One part use unittest and other part
import test cases from Lib/test/re_tests.py, checks conditions and prints
messages to stdout if they are false.
Proposed patch converts all test_re to using unittest.
--
Domen Kožar added the comment:
Note: same bug is relevant to DatagramHandler since it uses UDP transport.
--
nosy: +iElectric
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11907
___
New submission from Jonathan Sharpe:
The link to statistics in the documentation for
tracemalloc.Snapshot.compare_to
(https://docs.python.org/3/library/tracemalloc.html#tracemalloc.Snapshot.compare_to)
should be to the statistics method
pmoody added the comment:
# We only support CIDR for IPv6, because expanded netmasks are not
# standard notation.
Yes, that's correct. I can double check this, but when I wrote ipaddress, I had
yet to encounter a v6 netmask in anything other than cider notation.
--
pmoody added the comment:
Hey Chris,
What's the usecase for this? the netmask notation doesn't appear to be common
for v6 (at all), so I'm hesitant to add support for this if it's just something
like an academic exercise.
Cheers,
peter
--
___
Chris PeBenito added the comment:
I understand the resistance; I'm fine closing this as won't implement, though
this is not for academic use. In a nutshell, my package currently has a set of
classes to represent an SELinux policy, and the SELinux policy language
represents networks with
pmoody added the comment:
If you have the ability to use cidr, then closing this as wontfix is my
preference. I've heard that there might be some network vendors that are
starting support the mask notation for v6 addresses though, so this may end up
getting implemented at some point in future
Serhiy Storchaka added the comment:
Here is a patch which fixes remnants. It also corrects descriptions of parsing
arguments format units.
--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file37169/bytes_like.patch
Roundup Robot added the comment:
New changeset 387bbada31e8 by Berker Peksag in branch '3.4':
Issue #22839: Fix Snapshot.statistics() link.
https://hg.python.org/cpython/rev/387bbada31e8
New changeset 524a004e93dd by Berker Peksag in branch 'default':
Issue #22839: Fix Snapshot.statistics()
Berker Peksag added the comment:
Fixed. Thanks for the report, Jonathan.
--
nosy: +berker.peksag
resolution: - fixed
stage: - resolved
status: open - closed
type: - behavior
versions: -Python 3.6
___
Python tracker rep...@bugs.python.org
py.user added the comment:
R. David Murray wrote:
Is there a reason you are choosing not to use the new API?
My program is for Python 3.x. I need to decode wild headers to pretty unicode
strings. Now, I do it by decode_header() and try...except for AttributeError,
since a unicode string has
New submission from Doug Gorley:
strptime() is returning the wrong date if I try to parse today's date
(2014-11-10) as a string with no separators, and if I ask strpdate() to look
for nonexistent hour and minute fields.
datetime.datetime.strptime('20141110', '%Y%m%d').isoformat()
'2014-11
Antoine Pitrou added the comment:
No upgrades on the server either?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22835
___
___
Ethan Furman added the comment:
What result did you expect?
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22840
___
___
Doug Gorley added the comment:
I expected the second call to strpdate() to throw an exception, because %Y
consumed '2014', %m consumed '11', and %d consumed '10', leaving nothing for %H
and %M to match. That would be consistent with the first call.
--
R. David Murray added the comment:
Certainly not with 3.0, but nobody in their right mind should be using that
version any more :).
The new API for decoding headers is available as of Python 3.3, with additional
new API features in 3.4. See
1 - 100 of 124 matches
Mail list logo